@credo-ts/core 0.6.0-pr-2392-20251010173905 → 0.6.0-pr-2457-20251016083534

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 (985) hide show
  1. package/build/agent/Agent.d.mts +1 -1
  2. package/build/agent/Agent.d.mts.map +1 -1
  3. package/build/agent/Agent.d.ts +1 -1
  4. package/build/agent/Agent.d.ts.map +1 -1
  5. package/build/agent/Agent.js +2 -2
  6. package/build/agent/Agent.mjs +2 -2
  7. package/build/agent/Agent.mjs.map +1 -1
  8. package/build/agent/AgentConfig.d.mts +1 -1
  9. package/build/agent/AgentConfig.d.mts.map +1 -1
  10. package/build/agent/AgentConfig.d.ts +1 -1
  11. package/build/agent/AgentConfig.d.ts.map +1 -1
  12. package/build/agent/AgentConfig.mjs.map +1 -1
  13. package/build/agent/AgentModules.d.mts +4 -4
  14. package/build/agent/AgentModules.d.mts.map +1 -1
  15. package/build/agent/AgentModules.d.ts +4 -4
  16. package/build/agent/AgentModules.d.ts.map +1 -1
  17. package/build/agent/AgentModules.mjs.map +1 -1
  18. package/build/agent/BaseAgent.d.mts +4 -4
  19. package/build/agent/BaseAgent.d.ts +4 -4
  20. package/build/agent/BaseAgent.mjs.map +1 -1
  21. package/build/agent/EventEmitter.d.mts +1 -1
  22. package/build/agent/EventEmitter.d.mts.map +1 -1
  23. package/build/agent/EventEmitter.d.ts +1 -1
  24. package/build/agent/EventEmitter.d.ts.map +1 -1
  25. package/build/agent/EventEmitter.mjs.map +1 -1
  26. package/build/agent/context/AgentContext.d.mts.map +1 -1
  27. package/build/agent/context/AgentContext.d.ts.map +1 -1
  28. package/build/agent/context/AgentContext.mjs.map +1 -1
  29. package/build/agent/context/DefaultAgentContextProvider.d.mts.map +1 -1
  30. package/build/agent/context/DefaultAgentContextProvider.d.ts.map +1 -1
  31. package/build/agent/context/DefaultAgentContextProvider.js +1 -1
  32. package/build/agent/context/DefaultAgentContextProvider.mjs +1 -1
  33. package/build/agent/context/DefaultAgentContextProvider.mjs.map +1 -1
  34. package/build/crypto/JwsService.d.mts +5 -5
  35. package/build/crypto/JwsService.d.mts.map +1 -1
  36. package/build/crypto/JwsService.d.ts +5 -5
  37. package/build/crypto/JwsService.d.ts.map +1 -1
  38. package/build/crypto/JwsService.js +3 -3
  39. package/build/crypto/JwsService.mjs +3 -3
  40. package/build/crypto/JwsService.mjs.map +1 -1
  41. package/build/crypto/KmsKeyPair.js +1 -5
  42. package/build/crypto/KmsKeyPair.mjs +1 -2
  43. package/build/crypto/KmsKeyPair.mjs.map +1 -1
  44. package/build/crypto/hashes/Hasher.d.mts +4 -2
  45. package/build/crypto/hashes/Hasher.d.mts.map +1 -1
  46. package/build/crypto/hashes/Hasher.d.ts +4 -2
  47. package/build/crypto/hashes/Hasher.d.ts.map +1 -1
  48. package/build/crypto/hashes/Hasher.js +8 -3
  49. package/build/crypto/hashes/Hasher.mjs +8 -3
  50. package/build/crypto/hashes/Hasher.mjs.map +1 -1
  51. package/build/crypto/hashes/IHash.d.mts +3 -1
  52. package/build/crypto/hashes/IHash.d.mts.map +1 -1
  53. package/build/crypto/hashes/IHash.d.ts +3 -1
  54. package/build/crypto/hashes/IHash.d.ts.map +1 -1
  55. package/build/crypto/hashes/Sha1.d.mts +2 -1
  56. package/build/crypto/hashes/Sha1.d.mts.map +1 -1
  57. package/build/crypto/hashes/Sha1.d.ts +2 -1
  58. package/build/crypto/hashes/Sha1.d.ts.map +1 -1
  59. package/build/crypto/hashes/Sha1.js +3 -3
  60. package/build/crypto/hashes/Sha1.mjs +1 -1
  61. package/build/crypto/hashes/Sha1.mjs.map +1 -1
  62. package/build/crypto/hashes/Sha256.d.mts +2 -1
  63. package/build/crypto/hashes/Sha256.d.mts.map +1 -1
  64. package/build/crypto/hashes/Sha256.d.ts +2 -1
  65. package/build/crypto/hashes/Sha256.d.ts.map +1 -1
  66. package/build/crypto/hashes/Sha256.js +3 -3
  67. package/build/crypto/hashes/Sha256.mjs +1 -1
  68. package/build/crypto/hashes/Sha256.mjs.map +1 -1
  69. package/build/crypto/hashes/Sha384.d.mts +10 -0
  70. package/build/crypto/hashes/Sha384.d.mts.map +1 -0
  71. package/build/crypto/hashes/Sha384.d.ts +10 -0
  72. package/build/crypto/hashes/Sha384.d.ts.map +1 -0
  73. package/build/crypto/hashes/Sha384.js +15 -0
  74. package/build/crypto/hashes/Sha384.mjs +14 -0
  75. package/build/crypto/hashes/Sha384.mjs.map +1 -0
  76. package/build/crypto/hashes/Sha512.d.mts +2 -1
  77. package/build/crypto/hashes/Sha512.d.mts.map +1 -1
  78. package/build/crypto/hashes/Sha512.d.ts +2 -1
  79. package/build/crypto/hashes/Sha512.d.ts.map +1 -1
  80. package/build/crypto/hashes/Sha512.js +3 -3
  81. package/build/crypto/hashes/Sha512.mjs +1 -1
  82. package/build/crypto/hashes/Sha512.mjs.map +1 -1
  83. package/build/crypto/hashes/index.js +1 -0
  84. package/build/crypto/hashes/index.mjs +1 -0
  85. package/build/crypto/index.js +1 -0
  86. package/build/crypto/index.mjs +1 -0
  87. package/build/crypto/jose/jwt/Jwt.d.mts.map +1 -1
  88. package/build/crypto/jose/jwt/Jwt.d.ts.map +1 -1
  89. package/build/crypto/jose/jwt/Jwt.js +1 -1
  90. package/build/crypto/jose/jwt/Jwt.mjs +1 -1
  91. package/build/crypto/jose/jwt/Jwt.mjs.map +1 -1
  92. package/build/crypto/webcrypto/CredoSubtle.d.mts.map +1 -1
  93. package/build/crypto/webcrypto/CredoSubtle.d.ts.map +1 -1
  94. package/build/crypto/webcrypto/CredoSubtle.js +1 -1
  95. package/build/crypto/webcrypto/CredoSubtle.mjs +1 -1
  96. package/build/crypto/webcrypto/CredoSubtle.mjs.map +1 -1
  97. package/build/crypto/webcrypto/CredoWalletWebCrypto.d.mts +7 -7
  98. package/build/crypto/webcrypto/CredoWalletWebCrypto.d.mts.map +1 -1
  99. package/build/crypto/webcrypto/CredoWalletWebCrypto.d.ts +7 -7
  100. package/build/crypto/webcrypto/CredoWalletWebCrypto.d.ts.map +1 -1
  101. package/build/crypto/webcrypto/CredoWalletWebCrypto.js +6 -9
  102. package/build/crypto/webcrypto/CredoWalletWebCrypto.mjs +5 -6
  103. package/build/crypto/webcrypto/CredoWalletWebCrypto.mjs.map +1 -1
  104. package/build/crypto/webcrypto/CredoWebCrypto.d.mts.map +1 -1
  105. package/build/crypto/webcrypto/CredoWebCrypto.d.ts.map +1 -1
  106. package/build/crypto/webcrypto/CredoWebCrypto.js +1 -1
  107. package/build/crypto/webcrypto/CredoWebCrypto.mjs +1 -1
  108. package/build/crypto/webcrypto/CredoWebCrypto.mjs.map +1 -1
  109. package/build/crypto/webcrypto/CredoWebCryptoKey.d.mts.map +1 -1
  110. package/build/crypto/webcrypto/CredoWebCryptoKey.d.ts.map +1 -1
  111. package/build/crypto/webcrypto/CredoWebCryptoKey.mjs.map +1 -1
  112. package/build/crypto/webcrypto/providers/CredoEcdsaProvider.js +4 -2
  113. package/build/crypto/webcrypto/providers/CredoEcdsaProvider.mjs +4 -2
  114. package/build/crypto/webcrypto/providers/CredoEcdsaProvider.mjs.map +1 -1
  115. package/build/crypto/webcrypto/providers/CredoEd25519Provider.js +4 -2
  116. package/build/crypto/webcrypto/providers/CredoEd25519Provider.mjs +4 -2
  117. package/build/crypto/webcrypto/providers/CredoEd25519Provider.mjs.map +1 -1
  118. package/build/crypto/webcrypto/providers/CredoSha1Provider.mjs.map +1 -1
  119. package/build/crypto/webcrypto/providers/CredoSha256Provider.mjs.map +1 -1
  120. package/build/crypto/webcrypto/providers/index.js +1 -1
  121. package/build/crypto/webcrypto/providers/index.mjs +1 -1
  122. package/build/crypto/webcrypto/types.d.mts +2 -1
  123. package/build/crypto/webcrypto/types.d.mts.map +1 -1
  124. package/build/crypto/webcrypto/types.d.ts +2 -1
  125. package/build/crypto/webcrypto/types.d.ts.map +1 -1
  126. package/build/crypto/webcrypto/types.mjs.map +1 -1
  127. package/build/crypto/webcrypto/utils/keyAlgorithmConversion.js +4 -4
  128. package/build/crypto/webcrypto/utils/keyAlgorithmConversion.mjs +4 -4
  129. package/build/crypto/webcrypto/utils/keyAlgorithmConversion.mjs.map +1 -1
  130. package/build/error/index.js +2 -2
  131. package/build/error/index.mjs +2 -2
  132. package/build/index.d.mts +161 -157
  133. package/build/index.d.mts.map +1 -1
  134. package/build/index.d.ts +161 -157
  135. package/build/index.d.ts.map +1 -1
  136. package/build/index.js +67 -62
  137. package/build/index.mjs +66 -62
  138. package/build/index.mjs.map +1 -1
  139. package/build/logger/BaseLogger.mjs.map +1 -1
  140. package/build/logger/ConsoleLogger.mjs.map +1 -1
  141. package/build/logger/Logger.mjs.map +1 -1
  142. package/build/modules/cache/CacheModule.mjs.map +1 -1
  143. package/build/modules/cache/CachedStorageService.mjs.map +1 -1
  144. package/build/modules/cache/InMemoryLruCache.d.mts.map +1 -1
  145. package/build/modules/cache/InMemoryLruCache.d.ts.map +1 -1
  146. package/build/modules/cache/InMemoryLruCache.js +1 -1
  147. package/build/modules/cache/InMemoryLruCache.mjs +1 -1
  148. package/build/modules/cache/InMemoryLruCache.mjs.map +1 -1
  149. package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.d.mts.map +1 -1
  150. package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.d.ts.map +1 -1
  151. package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.mjs.map +1 -1
  152. package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.d.mts.map +1 -1
  153. package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.d.ts.map +1 -1
  154. package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.js +1 -1
  155. package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.mjs +1 -1
  156. package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.mjs.map +1 -1
  157. package/build/modules/dcql/DcqlModule.d.mts.map +1 -1
  158. package/build/modules/dcql/DcqlModule.d.ts.map +1 -1
  159. package/build/modules/dcql/DcqlModule.mjs.map +1 -1
  160. package/build/modules/dcql/DcqlService.d.mts.map +1 -1
  161. package/build/modules/dcql/DcqlService.d.ts.map +1 -1
  162. package/build/modules/dcql/DcqlService.js +2 -2
  163. package/build/modules/dcql/DcqlService.mjs +2 -2
  164. package/build/modules/dcql/DcqlService.mjs.map +1 -1
  165. package/build/modules/dcql/models/DcqlCredentialsForRequest.d.mts +3 -3
  166. package/build/modules/dcql/models/DcqlCredentialsForRequest.d.ts +3 -3
  167. package/build/modules/dcql/models/index.d.mts +2 -2
  168. package/build/modules/dcql/models/index.d.mts.map +1 -1
  169. package/build/modules/dcql/models/index.d.ts +2 -2
  170. package/build/modules/dcql/models/index.d.ts.map +1 -1
  171. package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.mts +2 -2
  172. package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.ts +2 -2
  173. package/build/modules/dids/DidsApi.d.mts +2 -2
  174. package/build/modules/dids/DidsApi.d.mts.map +1 -1
  175. package/build/modules/dids/DidsApi.d.ts +2 -2
  176. package/build/modules/dids/DidsApi.d.ts.map +1 -1
  177. package/build/modules/dids/DidsApi.js +1 -1
  178. package/build/modules/dids/DidsApi.mjs +1 -1
  179. package/build/modules/dids/DidsApi.mjs.map +1 -1
  180. package/build/modules/dids/DidsModule.d.mts.map +1 -1
  181. package/build/modules/dids/DidsModule.d.ts.map +1 -1
  182. package/build/modules/dids/DidsModule.mjs.map +1 -1
  183. package/build/modules/dids/DidsModuleConfig.js +2 -2
  184. package/build/modules/dids/DidsModuleConfig.mjs +2 -2
  185. package/build/modules/dids/domain/DidDocument.d.mts +1 -1
  186. package/build/modules/dids/domain/DidDocument.d.mts.map +1 -1
  187. package/build/modules/dids/domain/DidDocument.d.ts +1 -1
  188. package/build/modules/dids/domain/DidDocument.d.ts.map +1 -1
  189. package/build/modules/dids/domain/DidDocument.js +6 -6
  190. package/build/modules/dids/domain/DidDocument.mjs +6 -6
  191. package/build/modules/dids/domain/DidDocument.mjs.map +1 -1
  192. package/build/modules/dids/domain/DidDocumentBuilder.d.mts.map +1 -1
  193. package/build/modules/dids/domain/DidDocumentBuilder.d.ts.map +1 -1
  194. package/build/modules/dids/domain/DidDocumentBuilder.mjs.map +1 -1
  195. package/build/modules/dids/domain/index.js +11 -11
  196. package/build/modules/dids/domain/index.mjs +11 -11
  197. package/build/modules/dids/domain/key-type/ed25519.mjs.map +1 -1
  198. package/build/modules/dids/domain/key-type/keyDidJsonWebKey.mjs.map +1 -1
  199. package/build/modules/dids/domain/key-type/keyDidMapping.d.mts +1 -1
  200. package/build/modules/dids/domain/key-type/keyDidMapping.d.mts.map +1 -1
  201. package/build/modules/dids/domain/key-type/keyDidMapping.d.ts +1 -1
  202. package/build/modules/dids/domain/key-type/keyDidMapping.d.ts.map +1 -1
  203. package/build/modules/dids/domain/key-type/keyDidMapping.mjs.map +1 -1
  204. package/build/modules/dids/domain/key-type/secp256k1.js +1 -1
  205. package/build/modules/dids/domain/key-type/secp256k1.mjs +1 -1
  206. package/build/modules/dids/domain/key-type/secp256k1.mjs.map +1 -1
  207. package/build/modules/dids/domain/key-type/x25519.js +1 -1
  208. package/build/modules/dids/domain/key-type/x25519.mjs +1 -1
  209. package/build/modules/dids/domain/key-type/x25519.mjs.map +1 -1
  210. package/build/modules/dids/domain/keyDidDocument.js +1 -1
  211. package/build/modules/dids/domain/keyDidDocument.mjs +1 -1
  212. package/build/modules/dids/domain/keyDidDocument.mjs.map +1 -1
  213. package/build/modules/dids/domain/parse.d.mts.map +1 -1
  214. package/build/modules/dids/domain/parse.d.ts.map +1 -1
  215. package/build/modules/dids/domain/parse.mjs.map +1 -1
  216. package/build/modules/dids/domain/service/DidCommV2Service.d.mts +1 -1
  217. package/build/modules/dids/domain/service/DidCommV2Service.d.mts.map +1 -1
  218. package/build/modules/dids/domain/service/DidCommV2Service.d.ts +1 -1
  219. package/build/modules/dids/domain/service/DidCommV2Service.d.ts.map +1 -1
  220. package/build/modules/dids/domain/service/DidCommV2Service.mjs.map +1 -1
  221. package/build/modules/dids/domain/service/DidDocumentService.mjs.map +1 -1
  222. package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.d.mts +1 -1
  223. package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.d.ts +1 -1
  224. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.mts +1 -1
  225. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.mts.map +1 -1
  226. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.ts +1 -1
  227. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.ts.map +1 -1
  228. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.mjs.map +1 -1
  229. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.mts +1 -1
  230. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.mts.map +1 -1
  231. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.ts +1 -1
  232. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.ts.map +1 -1
  233. package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.mjs.map +1 -1
  234. package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts +1 -1
  235. package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts.map +1 -1
  236. package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts +1 -1
  237. package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts.map +1 -1
  238. package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.mjs.map +1 -1
  239. package/build/modules/dids/domain/verificationMethod/Multikey.d.mts +1 -1
  240. package/build/modules/dids/domain/verificationMethod/Multikey.d.mts.map +1 -1
  241. package/build/modules/dids/domain/verificationMethod/Multikey.d.ts +1 -1
  242. package/build/modules/dids/domain/verificationMethod/Multikey.d.ts.map +1 -1
  243. package/build/modules/dids/domain/verificationMethod/Multikey.mjs.map +1 -1
  244. package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.d.mts.map +1 -1
  245. package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.d.ts.map +1 -1
  246. package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.mjs.map +1 -1
  247. package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.mts +1 -1
  248. package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.mts.map +1 -1
  249. package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.ts +1 -1
  250. package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.ts.map +1 -1
  251. package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.mjs.map +1 -1
  252. package/build/modules/dids/domain/verificationMethod/index.js +3 -3
  253. package/build/modules/dids/domain/verificationMethod/index.mjs +3 -3
  254. package/build/modules/dids/findMatchingEd25519Key.d.mts +1 -1
  255. package/build/modules/dids/findMatchingEd25519Key.d.ts +1 -1
  256. package/build/modules/dids/findMatchingEd25519Key.js +1 -1
  257. package/build/modules/dids/findMatchingEd25519Key.mjs +1 -1
  258. package/build/modules/dids/findMatchingEd25519Key.mjs.map +1 -1
  259. package/build/modules/dids/helpers.mjs.map +1 -1
  260. package/build/modules/dids/index.js +15 -15
  261. package/build/modules/dids/index.mjs +15 -15
  262. package/build/modules/dids/methods/index.js +5 -5
  263. package/build/modules/dids/methods/index.mjs +5 -5
  264. package/build/modules/dids/methods/jwk/DidJwk.d.mts +1 -1
  265. package/build/modules/dids/methods/jwk/DidJwk.d.ts +1 -1
  266. package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.mts +2 -2
  267. package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.mts.map +1 -1
  268. package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.ts +2 -2
  269. package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.ts.map +1 -1
  270. package/build/modules/dids/methods/jwk/JwkDidRegistrar.js +1 -1
  271. package/build/modules/dids/methods/jwk/JwkDidRegistrar.mjs +1 -1
  272. package/build/modules/dids/methods/jwk/JwkDidRegistrar.mjs.map +1 -1
  273. package/build/modules/dids/methods/jwk/didJwkDidDocument.js +1 -1
  274. package/build/modules/dids/methods/jwk/didJwkDidDocument.mjs +1 -1
  275. package/build/modules/dids/methods/jwk/didJwkDidDocument.mjs.map +1 -1
  276. package/build/modules/dids/methods/key/DidKey.d.mts +1 -1
  277. package/build/modules/dids/methods/key/DidKey.d.ts +1 -1
  278. package/build/modules/dids/methods/key/KeyDidRegistrar.d.mts +2 -2
  279. package/build/modules/dids/methods/key/KeyDidRegistrar.d.mts.map +1 -1
  280. package/build/modules/dids/methods/key/KeyDidRegistrar.d.ts +2 -2
  281. package/build/modules/dids/methods/key/KeyDidRegistrar.d.ts.map +1 -1
  282. package/build/modules/dids/methods/key/KeyDidRegistrar.js +1 -1
  283. package/build/modules/dids/methods/key/KeyDidRegistrar.mjs +1 -1
  284. package/build/modules/dids/methods/key/KeyDidRegistrar.mjs.map +1 -1
  285. package/build/modules/dids/methods/peer/PeerDidRegistrar.d.mts +2 -2
  286. package/build/modules/dids/methods/peer/PeerDidRegistrar.d.mts.map +1 -1
  287. package/build/modules/dids/methods/peer/PeerDidRegistrar.d.ts +2 -2
  288. package/build/modules/dids/methods/peer/PeerDidRegistrar.d.ts.map +1 -1
  289. package/build/modules/dids/methods/peer/PeerDidRegistrar.mjs.map +1 -1
  290. package/build/modules/dids/methods/peer/PeerDidResolver.d.mts.map +1 -1
  291. package/build/modules/dids/methods/peer/PeerDidResolver.d.ts.map +1 -1
  292. package/build/modules/dids/methods/peer/PeerDidResolver.mjs.map +1 -1
  293. package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.mts +1 -1
  294. package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.mts.map +1 -1
  295. package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts +1 -1
  296. package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts.map +1 -1
  297. package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.js +1 -1
  298. package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.mjs +1 -1
  299. package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.mjs.map +1 -1
  300. package/build/modules/dids/methods/peer/index.js +1 -1
  301. package/build/modules/dids/methods/peer/index.mjs +1 -1
  302. package/build/modules/dids/methods/peer/peerDidNumAlgo0.mjs.map +1 -1
  303. package/build/modules/dids/methods/peer/peerDidNumAlgo1.js +1 -1
  304. package/build/modules/dids/methods/peer/peerDidNumAlgo1.mjs +1 -1
  305. package/build/modules/dids/methods/peer/peerDidNumAlgo2.js +2 -2
  306. package/build/modules/dids/methods/peer/peerDidNumAlgo2.mjs +2 -2
  307. package/build/modules/dids/methods/peer/peerDidNumAlgo2.mjs.map +1 -1
  308. package/build/modules/dids/methods/peer/peerDidNumAlgo4.js +7 -8
  309. package/build/modules/dids/methods/peer/peerDidNumAlgo4.mjs +4 -4
  310. package/build/modules/dids/methods/peer/peerDidNumAlgo4.mjs.map +1 -1
  311. package/build/modules/dids/methods/web/WebDidResolver.d.mts.map +1 -1
  312. package/build/modules/dids/methods/web/WebDidResolver.d.ts.map +1 -1
  313. package/build/modules/dids/methods/web/WebDidResolver.mjs.map +1 -1
  314. package/build/modules/dids/repository/DidRecord.d.mts.map +1 -1
  315. package/build/modules/dids/repository/DidRecord.d.ts.map +1 -1
  316. package/build/modules/dids/repository/DidRecord.js +1 -1
  317. package/build/modules/dids/repository/DidRecord.mjs +1 -1
  318. package/build/modules/dids/repository/DidRecord.mjs.map +1 -1
  319. package/build/modules/dids/repository/DidRepository.d.mts +3 -3
  320. package/build/modules/dids/repository/DidRepository.d.mts.map +1 -1
  321. package/build/modules/dids/repository/DidRepository.d.ts +3 -3
  322. package/build/modules/dids/repository/DidRepository.d.ts.map +1 -1
  323. package/build/modules/dids/repository/DidRepository.js +1 -1
  324. package/build/modules/dids/repository/DidRepository.mjs +1 -1
  325. package/build/modules/dids/repository/DidRepository.mjs.map +1 -1
  326. package/build/modules/dids/services/DidRegistrarService.d.mts.map +1 -1
  327. package/build/modules/dids/services/DidRegistrarService.d.ts.map +1 -1
  328. package/build/modules/dids/services/DidRegistrarService.mjs.map +1 -1
  329. package/build/modules/dids/services/DidResolverService.d.mts.map +1 -1
  330. package/build/modules/dids/services/DidResolverService.d.ts.map +1 -1
  331. package/build/modules/dids/services/DidResolverService.js +1 -1
  332. package/build/modules/dids/services/DidResolverService.mjs +1 -1
  333. package/build/modules/dids/services/DidResolverService.mjs.map +1 -1
  334. package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.d.mts.map +1 -1
  335. package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.d.ts.map +1 -1
  336. package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.mjs.map +1 -1
  337. package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts +5 -5
  338. package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts.map +1 -1
  339. package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts +5 -5
  340. package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts.map +1 -1
  341. package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js +9 -5
  342. package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.mjs +9 -5
  343. package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.mjs.map +1 -1
  344. package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.mts +3 -3
  345. package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.ts +3 -3
  346. package/build/modules/dif-presentation-exchange/models/index.d.mts +4 -4
  347. package/build/modules/dif-presentation-exchange/models/index.d.ts +4 -4
  348. package/build/modules/dif-presentation-exchange/utils/credentialSelection.mjs.map +1 -1
  349. package/build/modules/dif-presentation-exchange/utils/index.js +1 -1
  350. package/build/modules/dif-presentation-exchange/utils/index.mjs +1 -1
  351. package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts +5 -5
  352. package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts.map +1 -1
  353. package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts +5 -5
  354. package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts.map +1 -1
  355. package/build/modules/dif-presentation-exchange/utils/presentationSelection.js +1 -1
  356. package/build/modules/dif-presentation-exchange/utils/presentationSelection.mjs +1 -1
  357. package/build/modules/dif-presentation-exchange/utils/presentationSelection.mjs.map +1 -1
  358. package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.mjs.map +1 -1
  359. package/build/modules/dif-presentation-exchange/utils/transform.mjs.map +1 -1
  360. package/build/modules/generic-records/GenericRecordsApi.d.mts +1 -1
  361. package/build/modules/generic-records/GenericRecordsApi.d.mts.map +1 -1
  362. package/build/modules/generic-records/GenericRecordsApi.d.ts +1 -1
  363. package/build/modules/generic-records/GenericRecordsApi.d.ts.map +1 -1
  364. package/build/modules/generic-records/GenericRecordsApi.mjs.map +1 -1
  365. package/build/modules/generic-records/services/GenericRecordService.d.mts.map +1 -1
  366. package/build/modules/generic-records/services/GenericRecordService.d.ts.map +1 -1
  367. package/build/modules/generic-records/services/GenericRecordService.mjs.map +1 -1
  368. package/build/modules/kms/KeyManagementApi.d.mts +7 -7
  369. package/build/modules/kms/KeyManagementApi.d.mts.map +1 -1
  370. package/build/modules/kms/KeyManagementApi.d.ts +7 -7
  371. package/build/modules/kms/KeyManagementApi.d.ts.map +1 -1
  372. package/build/modules/kms/KeyManagementApi.js +7 -7
  373. package/build/modules/kms/KeyManagementApi.mjs +7 -7
  374. package/build/modules/kms/KeyManagementApi.mjs.map +1 -1
  375. package/build/modules/kms/KeyManagementModule.d.mts +2 -2
  376. package/build/modules/kms/KeyManagementModule.d.mts.map +1 -1
  377. package/build/modules/kms/KeyManagementModule.d.ts +2 -2
  378. package/build/modules/kms/KeyManagementModule.d.ts.map +1 -1
  379. package/build/modules/kms/KeyManagementModule.mjs.map +1 -1
  380. package/build/modules/kms/KeyManagementModuleConfig.d.mts +0 -1
  381. package/build/modules/kms/KeyManagementModuleConfig.d.mts.map +1 -1
  382. package/build/modules/kms/KeyManagementModuleConfig.d.ts +0 -1
  383. package/build/modules/kms/KeyManagementModuleConfig.d.ts.map +1 -1
  384. package/build/modules/kms/KeyManagementModuleConfig.js +0 -6
  385. package/build/modules/kms/KeyManagementModuleConfig.mjs +0 -6
  386. package/build/modules/kms/KeyManagementModuleConfig.mjs.map +1 -1
  387. package/build/modules/kms/KeyManagementService.d.mts +6 -6
  388. package/build/modules/kms/KeyManagementService.d.ts +6 -6
  389. package/build/modules/kms/error/KeyManagementKeyNotFoundError.d.mts +1 -1
  390. package/build/modules/kms/error/KeyManagementKeyNotFoundError.d.ts +1 -1
  391. package/build/modules/kms/error/KeyManagementKeyNotFoundError.js +5 -2
  392. package/build/modules/kms/error/KeyManagementKeyNotFoundError.mjs +5 -2
  393. package/build/modules/kms/error/KeyManagementKeyNotFoundError.mjs.map +1 -1
  394. package/build/modules/kms/index.d.mts +25 -25
  395. package/build/modules/kms/index.d.ts +25 -25
  396. package/build/modules/kms/index.js +10 -10
  397. package/build/modules/kms/index.mjs +10 -10
  398. package/build/modules/kms/index.mjs.map +1 -1
  399. package/build/modules/kms/jwk/PublicJwk.d.mts +3 -4
  400. package/build/modules/kms/jwk/PublicJwk.d.mts.map +1 -1
  401. package/build/modules/kms/jwk/PublicJwk.d.ts +3 -4
  402. package/build/modules/kms/jwk/PublicJwk.d.ts.map +1 -1
  403. package/build/modules/kms/jwk/PublicJwk.js +2 -5
  404. package/build/modules/kms/jwk/PublicJwk.mjs +2 -5
  405. package/build/modules/kms/jwk/PublicJwk.mjs.map +1 -1
  406. package/build/modules/kms/jwk/alg/encryption.d.mts +1 -1
  407. package/build/modules/kms/jwk/alg/encryption.d.mts.map +1 -1
  408. package/build/modules/kms/jwk/alg/encryption.d.ts +1 -1
  409. package/build/modules/kms/jwk/alg/encryption.d.ts.map +1 -1
  410. package/build/modules/kms/jwk/alg/encryption.mjs.map +1 -1
  411. package/build/modules/kms/jwk/alg/index.js +1 -1
  412. package/build/modules/kms/jwk/alg/index.mjs +1 -1
  413. package/build/modules/kms/jwk/alg/keyDerivation.d.mts +1 -1
  414. package/build/modules/kms/jwk/alg/keyDerivation.d.mts.map +1 -1
  415. package/build/modules/kms/jwk/alg/keyDerivation.d.ts +1 -1
  416. package/build/modules/kms/jwk/alg/keyDerivation.d.ts.map +1 -1
  417. package/build/modules/kms/jwk/alg/keyDerivation.mjs.map +1 -1
  418. package/build/modules/kms/jwk/alg/signing.d.mts +1 -1
  419. package/build/modules/kms/jwk/alg/signing.d.mts.map +1 -1
  420. package/build/modules/kms/jwk/alg/signing.d.ts +1 -1
  421. package/build/modules/kms/jwk/alg/signing.d.ts.map +1 -1
  422. package/build/modules/kms/jwk/alg/signing.mjs.map +1 -1
  423. package/build/modules/kms/jwk/assertSupported.d.mts +2 -2
  424. package/build/modules/kms/jwk/assertSupported.d.ts +2 -2
  425. package/build/modules/kms/jwk/humanDescription.d.mts.map +1 -1
  426. package/build/modules/kms/jwk/humanDescription.d.ts.map +1 -1
  427. package/build/modules/kms/jwk/humanDescription.mjs.map +1 -1
  428. package/build/modules/kms/jwk/index.js +8 -8
  429. package/build/modules/kms/jwk/index.mjs +8 -8
  430. package/build/modules/kms/jwk/jwkThumbprint.js +2 -2
  431. package/build/modules/kms/jwk/jwkThumbprint.mjs +2 -2
  432. package/build/modules/kms/jwk/jwkThumbprint.mjs.map +1 -1
  433. package/build/modules/kms/jwk/keyOps.d.mts.map +1 -1
  434. package/build/modules/kms/jwk/keyOps.d.ts.map +1 -1
  435. package/build/modules/kms/jwk/keyOps.js +1 -1
  436. package/build/modules/kms/jwk/keyOps.mjs +1 -1
  437. package/build/modules/kms/jwk/keyOps.mjs.map +1 -1
  438. package/build/modules/kms/jwk/knownJwk.d.mts +1 -1
  439. package/build/modules/kms/jwk/knownJwk.d.mts.map +1 -1
  440. package/build/modules/kms/jwk/knownJwk.d.ts +1 -1
  441. package/build/modules/kms/jwk/knownJwk.d.ts.map +1 -1
  442. package/build/modules/kms/jwk/knownJwk.js +1 -1
  443. package/build/modules/kms/jwk/knownJwk.mjs +1 -1
  444. package/build/modules/kms/jwk/knownJwk.mjs.map +1 -1
  445. package/build/modules/kms/jwk/kty/PublicJwk.d.mts +3 -2
  446. package/build/modules/kms/jwk/kty/PublicJwk.d.mts.map +1 -1
  447. package/build/modules/kms/jwk/kty/PublicJwk.d.ts +3 -2
  448. package/build/modules/kms/jwk/kty/PublicJwk.d.ts.map +1 -1
  449. package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts +7 -6
  450. package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts.map +1 -1
  451. package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts +7 -6
  452. package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts.map +1 -1
  453. package/build/modules/kms/jwk/kty/ec/P256PublicJwk.mjs.map +1 -1
  454. package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts +7 -6
  455. package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts.map +1 -1
  456. package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.ts +7 -6
  457. package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.ts.map +1 -1
  458. package/build/modules/kms/jwk/kty/ec/P384PublicJwk.mjs.map +1 -1
  459. package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts +7 -6
  460. package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts.map +1 -1
  461. package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.ts +7 -6
  462. package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.ts.map +1 -1
  463. package/build/modules/kms/jwk/kty/ec/P521PublicJwk.mjs.map +1 -1
  464. package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts +7 -6
  465. package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts.map +1 -1
  466. package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts +7 -6
  467. package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts.map +1 -1
  468. package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.mjs.map +1 -1
  469. package/build/modules/kms/jwk/kty/ec/ecPublicKey.mjs.map +1 -1
  470. package/build/modules/kms/jwk/kty/ec/ecSignature.d.mts +3 -2
  471. package/build/modules/kms/jwk/kty/ec/ecSignature.d.mts.map +1 -1
  472. package/build/modules/kms/jwk/kty/ec/ecSignature.d.ts +3 -2
  473. package/build/modules/kms/jwk/kty/ec/ecSignature.d.ts.map +1 -1
  474. package/build/modules/kms/jwk/kty/ec/ecSignature.js +2 -2
  475. package/build/modules/kms/jwk/kty/ec/ecSignature.mjs +2 -2
  476. package/build/modules/kms/jwk/kty/ec/ecSignature.mjs.map +1 -1
  477. package/build/modules/kms/jwk/kty/index.js +1 -1
  478. package/build/modules/kms/jwk/kty/index.mjs +1 -1
  479. package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts +6 -5
  480. package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts.map +1 -1
  481. package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.ts +6 -5
  482. package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.ts.map +1 -1
  483. package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.mjs.map +1 -1
  484. package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts +6 -5
  485. package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts.map +1 -1
  486. package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts +6 -5
  487. package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts.map +1 -1
  488. package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.mjs.map +1 -1
  489. package/build/modules/kms/jwk/kty/okp/okpPublicKey.mjs.map +1 -1
  490. package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.mts +8 -7
  491. package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.mts.map +1 -1
  492. package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.ts +8 -7
  493. package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.ts.map +1 -1
  494. package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.mjs.map +1 -1
  495. package/build/modules/kms/jwk/kty/rsa/rsaPublicKey.mjs.map +1 -1
  496. package/build/modules/kms/options/KmsCreateKeyOptions.d.mts +1 -1
  497. package/build/modules/kms/options/KmsCreateKeyOptions.d.mts.map +1 -1
  498. package/build/modules/kms/options/KmsCreateKeyOptions.d.ts +1 -1
  499. package/build/modules/kms/options/KmsCreateKeyOptions.d.ts.map +1 -1
  500. package/build/modules/kms/options/KmsCreateKeyOptions.mjs.map +1 -1
  501. package/build/modules/kms/options/KmsDecryptOptions.d.mts +169 -168
  502. package/build/modules/kms/options/KmsDecryptOptions.d.mts.map +1 -1
  503. package/build/modules/kms/options/KmsDecryptOptions.d.ts +169 -168
  504. package/build/modules/kms/options/KmsDecryptOptions.d.ts.map +1 -1
  505. package/build/modules/kms/options/KmsDecryptOptions.js +13 -12
  506. package/build/modules/kms/options/KmsDecryptOptions.mjs +13 -12
  507. package/build/modules/kms/options/KmsDecryptOptions.mjs.map +1 -1
  508. package/build/modules/kms/options/KmsEncryptOptions.d.mts +123 -122
  509. package/build/modules/kms/options/KmsEncryptOptions.d.mts.map +1 -1
  510. package/build/modules/kms/options/KmsEncryptOptions.d.ts +123 -122
  511. package/build/modules/kms/options/KmsEncryptOptions.d.ts.map +1 -1
  512. package/build/modules/kms/options/KmsEncryptOptions.js +13 -12
  513. package/build/modules/kms/options/KmsEncryptOptions.mjs +13 -12
  514. package/build/modules/kms/options/KmsEncryptOptions.mjs.map +1 -1
  515. package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.mts +49 -48
  516. package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.mts.map +1 -1
  517. package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.ts +49 -48
  518. package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.ts.map +1 -1
  519. package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.js +3 -2
  520. package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.mjs +3 -2
  521. package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.mjs.map +1 -1
  522. package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.mts +25 -24
  523. package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.mts.map +1 -1
  524. package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.ts +25 -24
  525. package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.ts.map +1 -1
  526. package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.js +5 -4
  527. package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.mjs +5 -4
  528. package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.mjs.map +1 -1
  529. package/build/modules/kms/options/KmsOperation.d.mts +3 -3
  530. package/build/modules/kms/options/KmsOperation.d.ts +3 -3
  531. package/build/modules/kms/options/KmsOperation.mjs.map +1 -1
  532. package/build/modules/kms/options/KmsSignOptions.d.mts +5 -4
  533. package/build/modules/kms/options/KmsSignOptions.d.mts.map +1 -1
  534. package/build/modules/kms/options/KmsSignOptions.d.ts +5 -4
  535. package/build/modules/kms/options/KmsSignOptions.d.ts.map +1 -1
  536. package/build/modules/kms/options/KmsSignOptions.js +2 -1
  537. package/build/modules/kms/options/KmsSignOptions.mjs +2 -1
  538. package/build/modules/kms/options/KmsSignOptions.mjs.map +1 -1
  539. package/build/modules/kms/options/KmsVerifyOptions.d.mts +7 -6
  540. package/build/modules/kms/options/KmsVerifyOptions.d.mts.map +1 -1
  541. package/build/modules/kms/options/KmsVerifyOptions.d.ts +7 -6
  542. package/build/modules/kms/options/KmsVerifyOptions.d.ts.map +1 -1
  543. package/build/modules/kms/options/KmsVerifyOptions.js +3 -2
  544. package/build/modules/kms/options/KmsVerifyOptions.mjs +3 -2
  545. package/build/modules/kms/options/KmsVerifyOptions.mjs.map +1 -1
  546. package/build/modules/mdoc/Mdoc.d.mts +1 -3
  547. package/build/modules/mdoc/Mdoc.d.mts.map +1 -1
  548. package/build/modules/mdoc/Mdoc.d.ts +1 -3
  549. package/build/modules/mdoc/Mdoc.d.ts.map +1 -1
  550. package/build/modules/mdoc/Mdoc.js +1 -7
  551. package/build/modules/mdoc/Mdoc.mjs +1 -7
  552. package/build/modules/mdoc/Mdoc.mjs.map +1 -1
  553. package/build/modules/mdoc/MdocApi.d.mts +1 -1
  554. package/build/modules/mdoc/MdocApi.d.mts.map +1 -1
  555. package/build/modules/mdoc/MdocApi.d.ts +1 -1
  556. package/build/modules/mdoc/MdocApi.d.ts.map +1 -1
  557. package/build/modules/mdoc/MdocApi.mjs.map +1 -1
  558. package/build/modules/mdoc/MdocContext.js +9 -11
  559. package/build/modules/mdoc/MdocContext.mjs +6 -7
  560. package/build/modules/mdoc/MdocContext.mjs.map +1 -1
  561. package/build/modules/mdoc/MdocDeviceResponse.d.mts +1 -1
  562. package/build/modules/mdoc/MdocDeviceResponse.d.mts.map +1 -1
  563. package/build/modules/mdoc/MdocDeviceResponse.d.ts +1 -1
  564. package/build/modules/mdoc/MdocDeviceResponse.d.ts.map +1 -1
  565. package/build/modules/mdoc/MdocDeviceResponse.mjs.map +1 -1
  566. package/build/modules/mdoc/MdocModule.d.mts.map +1 -1
  567. package/build/modules/mdoc/MdocModule.d.ts.map +1 -1
  568. package/build/modules/mdoc/MdocModule.mjs.map +1 -1
  569. package/build/modules/mdoc/MdocOptions.d.mts +4 -3
  570. package/build/modules/mdoc/MdocOptions.d.mts.map +1 -1
  571. package/build/modules/mdoc/MdocOptions.d.ts +4 -3
  572. package/build/modules/mdoc/MdocOptions.d.ts.map +1 -1
  573. package/build/modules/mdoc/MdocService.d.mts +1 -1
  574. package/build/modules/mdoc/MdocService.d.mts.map +1 -1
  575. package/build/modules/mdoc/MdocService.d.ts +1 -2
  576. package/build/modules/mdoc/MdocService.d.ts.map +1 -1
  577. package/build/modules/mdoc/MdocService.mjs.map +1 -1
  578. package/build/modules/mdoc/index.d.mts +3 -3
  579. package/build/modules/mdoc/index.d.ts +3 -3
  580. package/build/modules/mdoc/repository/MdocRecord.d.mts +1 -1
  581. package/build/modules/mdoc/repository/MdocRecord.d.mts.map +1 -1
  582. package/build/modules/mdoc/repository/MdocRecord.d.ts +1 -1
  583. package/build/modules/mdoc/repository/MdocRecord.d.ts.map +1 -1
  584. package/build/modules/mdoc/repository/MdocRecord.mjs.map +1 -1
  585. package/build/modules/sd-jwt-vc/SdJwtVcApi.d.mts +2 -4
  586. package/build/modules/sd-jwt-vc/SdJwtVcApi.d.mts.map +1 -1
  587. package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts +2 -4
  588. package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts.map +1 -1
  589. package/build/modules/sd-jwt-vc/SdJwtVcApi.mjs.map +1 -1
  590. package/build/modules/sd-jwt-vc/SdJwtVcModule.d.mts.map +1 -1
  591. package/build/modules/sd-jwt-vc/SdJwtVcModule.d.ts.map +1 -1
  592. package/build/modules/sd-jwt-vc/SdJwtVcModule.mjs.map +1 -1
  593. package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.mts +5 -1
  594. package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.mts.map +1 -1
  595. package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts +5 -1
  596. package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts.map +1 -1
  597. package/build/modules/sd-jwt-vc/SdJwtVcService.d.mts +4 -5
  598. package/build/modules/sd-jwt-vc/SdJwtVcService.d.mts.map +1 -1
  599. package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts +4 -5
  600. package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts.map +1 -1
  601. package/build/modules/sd-jwt-vc/SdJwtVcService.js +40 -48
  602. package/build/modules/sd-jwt-vc/SdJwtVcService.mjs +41 -49
  603. package/build/modules/sd-jwt-vc/SdJwtVcService.mjs.map +1 -1
  604. package/build/modules/sd-jwt-vc/decodeSdJwtVc.mjs.map +1 -1
  605. package/build/modules/sd-jwt-vc/disclosureFrame.mjs.map +1 -1
  606. package/build/modules/sd-jwt-vc/index.js +1 -1
  607. package/build/modules/sd-jwt-vc/index.mjs +1 -1
  608. package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts +1 -1
  609. package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts.map +1 -1
  610. package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts +1 -1
  611. package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts.map +1 -1
  612. package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.mjs.map +1 -1
  613. package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.mts +1 -1
  614. package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.ts +1 -1
  615. package/build/modules/sd-jwt-vc/utils.js +1 -1
  616. package/build/modules/sd-jwt-vc/utils.mjs +1 -1
  617. package/build/modules/sd-jwt-vc/utils.mjs.map +1 -1
  618. package/build/modules/vc/W3cCredentialService.d.mts +2 -2
  619. package/build/modules/vc/W3cCredentialService.d.mts.map +1 -1
  620. package/build/modules/vc/W3cCredentialService.d.ts +2 -2
  621. package/build/modules/vc/W3cCredentialService.d.ts.map +1 -1
  622. package/build/modules/vc/W3cCredentialService.mjs.map +1 -1
  623. package/build/modules/vc/W3cCredentialServiceOptions.d.mts +2 -2
  624. package/build/modules/vc/W3cCredentialServiceOptions.d.ts +2 -2
  625. package/build/modules/vc/W3cCredentialsApi.d.mts +1 -1
  626. package/build/modules/vc/W3cCredentialsApi.d.mts.map +1 -1
  627. package/build/modules/vc/W3cCredentialsApi.d.ts +1 -1
  628. package/build/modules/vc/W3cCredentialsApi.d.ts.map +1 -1
  629. package/build/modules/vc/W3cCredentialsApi.mjs.map +1 -1
  630. package/build/modules/vc/W3cCredentialsModule.d.mts.map +1 -1
  631. package/build/modules/vc/W3cCredentialsModule.d.ts.map +1 -1
  632. package/build/modules/vc/W3cCredentialsModule.mjs.map +1 -1
  633. package/build/modules/vc/W3cV2CredentialService.d.mts +3 -3
  634. package/build/modules/vc/W3cV2CredentialService.d.ts +3 -3
  635. package/build/modules/vc/W3cV2CredentialService.js +1 -1
  636. package/build/modules/vc/W3cV2CredentialService.mjs +1 -1
  637. package/build/modules/vc/W3cV2CredentialService.mjs.map +1 -1
  638. package/build/modules/vc/W3cV2CredentialServiceOptions.d.mts +3 -3
  639. package/build/modules/vc/W3cV2CredentialServiceOptions.d.mts.map +1 -1
  640. package/build/modules/vc/W3cV2CredentialServiceOptions.d.ts +3 -3
  641. package/build/modules/vc/W3cV2CredentialServiceOptions.d.ts.map +1 -1
  642. package/build/modules/vc/W3cV2CredentialsApi.d.mts +1 -1
  643. package/build/modules/vc/W3cV2CredentialsApi.d.mts.map +1 -1
  644. package/build/modules/vc/W3cV2CredentialsApi.d.ts +1 -1
  645. package/build/modules/vc/W3cV2CredentialsApi.d.ts.map +1 -1
  646. package/build/modules/vc/W3cV2CredentialsApi.mjs.map +1 -1
  647. package/build/modules/vc/W3cV2CredentialsModule.mjs.map +1 -1
  648. package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.mts +2 -2
  649. package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.mts.map +1 -1
  650. package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts +2 -2
  651. package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts.map +1 -1
  652. package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js +6 -6
  653. package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.mjs +6 -6
  654. package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.mjs.map +1 -1
  655. package/build/modules/vc/data-integrity/deriveProof.d.mts +1 -1
  656. package/build/modules/vc/data-integrity/deriveProof.d.ts +1 -1
  657. package/build/modules/vc/data-integrity/deriveProof.js +1 -1
  658. package/build/modules/vc/data-integrity/deriveProof.mjs +1 -1
  659. package/build/modules/vc/data-integrity/deriveProof.mjs.map +1 -1
  660. package/build/modules/vc/data-integrity/index.js +8 -8
  661. package/build/modules/vc/data-integrity/index.mjs +8 -8
  662. package/build/modules/vc/data-integrity/jsonldUtil.d.mts.map +1 -1
  663. package/build/modules/vc/data-integrity/jsonldUtil.d.ts.map +1 -1
  664. package/build/modules/vc/data-integrity/jsonldUtil.js +1 -1
  665. package/build/modules/vc/data-integrity/jsonldUtil.mjs +1 -1
  666. package/build/modules/vc/data-integrity/jsonldUtil.mjs.map +1 -1
  667. package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.js +1 -1
  668. package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs +1 -1
  669. package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs.map +1 -1
  670. package/build/modules/vc/data-integrity/libraries/documentLoader.d.mts.map +1 -1
  671. package/build/modules/vc/data-integrity/libraries/documentLoader.d.ts.map +1 -1
  672. package/build/modules/vc/data-integrity/libraries/documentLoader.mjs.map +1 -1
  673. package/build/modules/vc/data-integrity/libraries/index.js +1 -1
  674. package/build/modules/vc/data-integrity/libraries/index.mjs +1 -1
  675. package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.mts.map +1 -1
  676. package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.ts.map +1 -1
  677. package/build/modules/vc/data-integrity/libraries/jsonld-signatures.mjs.map +1 -1
  678. package/build/modules/vc/data-integrity/libraries/jsonld.mjs.map +1 -1
  679. package/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.mjs.map +1 -1
  680. package/build/modules/vc/data-integrity/libraries/vc.d.mts.map +1 -1
  681. package/build/modules/vc/data-integrity/libraries/vc.d.ts.map +1 -1
  682. package/build/modules/vc/data-integrity/libraries/vc.js +1 -1
  683. package/build/modules/vc/data-integrity/libraries/vc.mjs +1 -1
  684. package/build/modules/vc/data-integrity/libraries/vc.mjs.map +1 -1
  685. package/build/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.mts +2 -2
  686. package/build/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.ts +2 -2
  687. package/build/modules/vc/data-integrity/models/LdKeyPair.d.mts +5 -4
  688. package/build/modules/vc/data-integrity/models/LdKeyPair.d.mts.map +1 -1
  689. package/build/modules/vc/data-integrity/models/LdKeyPair.d.ts +5 -4
  690. package/build/modules/vc/data-integrity/models/LdKeyPair.d.ts.map +1 -1
  691. package/build/modules/vc/data-integrity/models/LdKeyPair.mjs.map +1 -1
  692. package/build/modules/vc/data-integrity/models/ProofTransformer.mjs.map +1 -1
  693. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.mts +2 -2
  694. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.mts.map +1 -1
  695. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts +2 -2
  696. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts.map +1 -1
  697. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js +1 -1
  698. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.mjs +1 -1
  699. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.mjs.map +1 -1
  700. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.mts +2 -2
  701. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.mts.map +1 -1
  702. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts +2 -2
  703. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts.map +1 -1
  704. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.js +1 -1
  705. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.mjs +1 -1
  706. package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.mjs.map +1 -1
  707. package/build/modules/vc/data-integrity/models/index.js +2 -2
  708. package/build/modules/vc/data-integrity/models/index.mjs +2 -2
  709. package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.mts +1 -1
  710. package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.ts +1 -1
  711. package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.mjs.map +1 -1
  712. package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.mts +3 -2
  713. package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.mts.map +1 -1
  714. package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.ts +3 -2
  715. package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.ts.map +1 -1
  716. package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.mjs.map +1 -1
  717. package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.mts.map +1 -1
  718. package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.ts.map +1 -1
  719. package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.mjs.map +1 -1
  720. package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts +3 -2
  721. package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts.map +1 -1
  722. package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.ts +3 -2
  723. package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.ts.map +1 -1
  724. package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.mjs.map +1 -1
  725. package/build/modules/vc/index.js +14 -14
  726. package/build/modules/vc/index.mjs +14 -14
  727. package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.mts +2 -2
  728. package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.mts.map +1 -1
  729. package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts +2 -2
  730. package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts.map +1 -1
  731. package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js +4 -4
  732. package/build/modules/vc/jwt-vc/W3cJwtCredentialService.mjs +4 -4
  733. package/build/modules/vc/jwt-vc/W3cJwtCredentialService.mjs.map +1 -1
  734. package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.mts +4 -4
  735. package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.mts.map +1 -1
  736. package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts +4 -4
  737. package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts.map +1 -1
  738. package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.mjs.map +1 -1
  739. package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts +1 -1
  740. package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts.map +1 -1
  741. package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts +1 -1
  742. package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts.map +1 -1
  743. package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.mjs.map +1 -1
  744. package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.d.mts +2 -2
  745. package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.d.ts +2 -2
  746. package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.js +4 -4
  747. package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.mjs +4 -4
  748. package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.mjs.map +1 -1
  749. package/build/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.mts +1 -1
  750. package/build/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.ts +1 -1
  751. package/build/modules/vc/jwt-vc/credentialTransformer.mjs.map +1 -1
  752. package/build/modules/vc/jwt-vc/index.js +1 -1
  753. package/build/modules/vc/jwt-vc/index.mjs +1 -1
  754. package/build/modules/vc/jwt-vc/presentationTransformer.mjs.map +1 -1
  755. package/build/modules/vc/models/credential/W3cCredential.d.mts +3 -3
  756. package/build/modules/vc/models/credential/W3cCredential.d.mts.map +1 -1
  757. package/build/modules/vc/models/credential/W3cCredential.d.ts +3 -3
  758. package/build/modules/vc/models/credential/W3cCredential.d.ts.map +1 -1
  759. package/build/modules/vc/models/credential/W3cCredential.js +1 -1
  760. package/build/modules/vc/models/credential/W3cCredential.mjs +1 -1
  761. package/build/modules/vc/models/credential/W3cCredential.mjs.map +1 -1
  762. package/build/modules/vc/models/credential/W3cCredentialSubject.d.mts.map +1 -1
  763. package/build/modules/vc/models/credential/W3cCredentialSubject.d.ts.map +1 -1
  764. package/build/modules/vc/models/credential/W3cCredentialSubject.mjs.map +1 -1
  765. package/build/modules/vc/models/credential/W3cIssuer.d.mts.map +1 -1
  766. package/build/modules/vc/models/credential/W3cIssuer.d.ts.map +1 -1
  767. package/build/modules/vc/models/credential/W3cIssuer.mjs.map +1 -1
  768. package/build/modules/vc/models/credential/W3cV2Credential.d.mts +1 -1
  769. package/build/modules/vc/models/credential/W3cV2Credential.d.ts +1 -1
  770. package/build/modules/vc/models/credential/W3cV2Credential.js +1 -1
  771. package/build/modules/vc/models/credential/W3cV2Credential.mjs +1 -1
  772. package/build/modules/vc/models/credential/W3cV2Credential.mjs.map +1 -1
  773. package/build/modules/vc/models/credential/W3cV2CredentialSchema.js +2 -2
  774. package/build/modules/vc/models/credential/W3cV2CredentialSchema.mjs +2 -2
  775. package/build/modules/vc/models/credential/W3cV2CredentialSchema.mjs.map +1 -1
  776. package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.mts +1 -1
  777. package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.ts +1 -1
  778. package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.mjs.map +1 -1
  779. package/build/modules/vc/models/credential/W3cV2Evidence.js +2 -2
  780. package/build/modules/vc/models/credential/W3cV2Evidence.mjs +2 -2
  781. package/build/modules/vc/models/credential/W3cV2Evidence.mjs.map +1 -1
  782. package/build/modules/vc/models/credential/W3cV2Issuer.mjs.map +1 -1
  783. package/build/modules/vc/models/credential/W3cV2LocalizedValue.mjs.map +1 -1
  784. package/build/modules/vc/models/credential/W3cVerifiableCredential.d.mts.map +1 -1
  785. package/build/modules/vc/models/credential/W3cVerifiableCredential.d.ts.map +1 -1
  786. package/build/modules/vc/models/credential/W3cVerifiableCredential.mjs.map +1 -1
  787. package/build/modules/vc/models/credential/index.js +1 -1
  788. package/build/modules/vc/models/credential/index.mjs +1 -1
  789. package/build/modules/vc/models/index.js +1 -1
  790. package/build/modules/vc/models/index.mjs +1 -1
  791. package/build/modules/vc/models/presentation/W3cHolder.d.mts.map +1 -1
  792. package/build/modules/vc/models/presentation/W3cHolder.d.ts.map +1 -1
  793. package/build/modules/vc/models/presentation/W3cHolder.mjs.map +1 -1
  794. package/build/modules/vc/models/presentation/W3cJsonPresentation.d.mts +1 -1
  795. package/build/modules/vc/models/presentation/W3cJsonPresentation.d.ts +1 -1
  796. package/build/modules/vc/models/presentation/W3cPresentation.d.mts +2 -2
  797. package/build/modules/vc/models/presentation/W3cPresentation.d.mts.map +1 -1
  798. package/build/modules/vc/models/presentation/W3cPresentation.d.ts +2 -2
  799. package/build/modules/vc/models/presentation/W3cPresentation.d.ts.map +1 -1
  800. package/build/modules/vc/models/presentation/W3cPresentation.mjs.map +1 -1
  801. package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.mts +2 -2
  802. package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.ts +2 -2
  803. package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.js +1 -1
  804. package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.mjs +1 -1
  805. package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.mjs.map +1 -1
  806. package/build/modules/vc/models/presentation/W3cV2Holder.mjs.map +1 -1
  807. package/build/modules/vc/models/presentation/W3cV2JsonPresentation.d.mts +1 -1
  808. package/build/modules/vc/models/presentation/W3cV2JsonPresentation.d.ts +1 -1
  809. package/build/modules/vc/models/presentation/W3cV2Presentation.d.mts +1 -1
  810. package/build/modules/vc/models/presentation/W3cV2Presentation.d.ts +1 -1
  811. package/build/modules/vc/models/presentation/W3cV2Presentation.js +1 -1
  812. package/build/modules/vc/models/presentation/W3cV2Presentation.mjs +1 -1
  813. package/build/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.mts +1 -1
  814. package/build/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.ts +1 -1
  815. package/build/modules/vc/repository/W3cCredentialRecord.d.mts.map +1 -1
  816. package/build/modules/vc/repository/W3cCredentialRecord.d.ts.map +1 -1
  817. package/build/modules/vc/repository/W3cCredentialRecord.mjs.map +1 -1
  818. package/build/modules/vc/repository/W3cV2CredentialRecord.js +1 -1
  819. package/build/modules/vc/repository/W3cV2CredentialRecord.mjs +1 -1
  820. package/build/modules/vc/repository/W3cV2CredentialRecord.mjs.map +1 -1
  821. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.mts +2 -2
  822. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.mts.map +1 -1
  823. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.ts +2 -2
  824. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.ts.map +1 -1
  825. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.mjs.map +1 -1
  826. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.mts +1 -1
  827. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.ts +1 -1
  828. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.js +3 -3
  829. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.mjs +3 -3
  830. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.mjs.map +1 -1
  831. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtVerifiableCredential.mjs.map +1 -1
  832. package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.mjs.map +1 -1
  833. package/build/modules/vc/v2-jwt-utils.js +2 -2
  834. package/build/modules/vc/v2-jwt-utils.mjs +2 -2
  835. package/build/modules/vc/v2-jwt-utils.mjs.map +1 -1
  836. package/build/modules/vc/validators.mjs.map +1 -1
  837. package/build/modules/x509/X509Api.d.mts +1 -1
  838. package/build/modules/x509/X509Api.d.ts +1 -1
  839. package/build/modules/x509/X509Api.js +1 -1
  840. package/build/modules/x509/X509Api.mjs +1 -1
  841. package/build/modules/x509/X509Certificate.d.mts +5 -5
  842. package/build/modules/x509/X509Certificate.d.mts.map +1 -1
  843. package/build/modules/x509/X509Certificate.d.ts +5 -5
  844. package/build/modules/x509/X509Certificate.d.ts.map +1 -1
  845. package/build/modules/x509/X509Certificate.js +4 -7
  846. package/build/modules/x509/X509Certificate.mjs +3 -6
  847. package/build/modules/x509/X509Certificate.mjs.map +1 -1
  848. package/build/modules/x509/X509Module.d.mts.map +1 -1
  849. package/build/modules/x509/X509Module.d.ts.map +1 -1
  850. package/build/modules/x509/X509Module.js +1 -1
  851. package/build/modules/x509/X509Module.mjs +1 -1
  852. package/build/modules/x509/X509Module.mjs.map +1 -1
  853. package/build/modules/x509/X509ModuleConfig.d.mts +2 -2
  854. package/build/modules/x509/X509ModuleConfig.d.ts +2 -2
  855. package/build/modules/x509/X509Service.d.mts +1 -1
  856. package/build/modules/x509/X509Service.d.mts.map +1 -1
  857. package/build/modules/x509/X509Service.d.ts +1 -1
  858. package/build/modules/x509/X509Service.d.ts.map +1 -1
  859. package/build/modules/x509/X509Service.js +4 -4
  860. package/build/modules/x509/X509Service.mjs +3 -3
  861. package/build/modules/x509/X509Service.mjs.map +1 -1
  862. package/build/modules/x509/extraction.d.mts +1 -1
  863. package/build/modules/x509/extraction.d.ts +1 -1
  864. package/build/modules/x509/index.js +3 -3
  865. package/build/modules/x509/index.mjs +3 -3
  866. package/build/modules/x509/utils/extensions.d.mts.map +1 -1
  867. package/build/modules/x509/utils/extensions.d.ts.map +1 -1
  868. package/build/modules/x509/utils/extensions.js +1 -1
  869. package/build/modules/x509/utils/extensions.mjs +1 -1
  870. package/build/modules/x509/utils/extensions.mjs.map +1 -1
  871. package/build/modules/x509/utils/index.js +1 -1
  872. package/build/modules/x509/utils/index.mjs +1 -1
  873. package/build/modules/x509/utils/nameConversion.d.mts.map +1 -1
  874. package/build/modules/x509/utils/nameConversion.d.ts.map +1 -1
  875. package/build/modules/x509/utils/nameConversion.mjs.map +1 -1
  876. package/build/plugins/DependencyManager.d.mts.map +1 -1
  877. package/build/plugins/DependencyManager.d.ts.map +1 -1
  878. package/build/plugins/DependencyManager.mjs.map +1 -1
  879. package/build/storage/BaseRecord.mjs.map +1 -1
  880. package/build/storage/Metadata.mjs.map +1 -1
  881. package/build/storage/Repository.d.mts.map +1 -1
  882. package/build/storage/Repository.d.ts.map +1 -1
  883. package/build/storage/Repository.js +1 -1
  884. package/build/storage/Repository.mjs +1 -1
  885. package/build/storage/Repository.mjs.map +1 -1
  886. package/build/storage/RepositoryEvents.mjs.map +1 -1
  887. package/build/storage/StorageService.d.mts +1 -1
  888. package/build/storage/StorageService.d.ts +1 -1
  889. package/build/storage/index.js +1 -1
  890. package/build/storage/index.mjs +1 -1
  891. package/build/storage/migration/StorageUpdateService.d.mts.map +1 -1
  892. package/build/storage/migration/StorageUpdateService.d.ts.map +1 -1
  893. package/build/storage/migration/StorageUpdateService.js +1 -1
  894. package/build/storage/migration/StorageUpdateService.mjs +1 -1
  895. package/build/storage/migration/StorageUpdateService.mjs.map +1 -1
  896. package/build/storage/migration/UpdateAssistant.d.mts +1 -1
  897. package/build/storage/migration/UpdateAssistant.d.mts.map +1 -1
  898. package/build/storage/migration/UpdateAssistant.d.ts +1 -1
  899. package/build/storage/migration/UpdateAssistant.d.ts.map +1 -1
  900. package/build/storage/migration/UpdateAssistant.js +1 -1
  901. package/build/storage/migration/UpdateAssistant.mjs +1 -1
  902. package/build/storage/migration/UpdateAssistant.mjs.map +1 -1
  903. package/build/storage/migration/index.js +1 -1
  904. package/build/storage/migration/index.mjs +1 -1
  905. package/build/storage/migration/isUpToDate.d.mts.map +1 -1
  906. package/build/storage/migration/isUpToDate.d.ts.map +1 -1
  907. package/build/storage/migration/isUpToDate.js +1 -1
  908. package/build/storage/migration/isUpToDate.mjs +1 -1
  909. package/build/storage/migration/isUpToDate.mjs.map +1 -1
  910. package/build/storage/migration/updates/0.3.1-0.4/cache.mjs.map +1 -1
  911. package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.mjs.map +1 -1
  912. package/build/storage/migration/updates.d.mts +1 -1
  913. package/build/storage/migration/updates.d.mts.map +1 -1
  914. package/build/storage/migration/updates.d.ts +1 -1
  915. package/build/storage/migration/updates.d.ts.map +1 -1
  916. package/build/storage/migration/updates.js +4 -4
  917. package/build/storage/migration/updates.mjs +1 -1
  918. package/build/storage/migration/updates.mjs.map +1 -1
  919. package/build/types.d.mts +12 -1
  920. package/build/types.d.mts.map +1 -1
  921. package/build/types.d.ts +12 -1
  922. package/build/types.d.ts.map +1 -1
  923. package/build/types.mjs.map +1 -1
  924. package/build/utils/HashlinkEncoder.d.mts +1 -1
  925. package/build/utils/HashlinkEncoder.d.mts.map +1 -1
  926. package/build/utils/HashlinkEncoder.d.ts +1 -1
  927. package/build/utils/HashlinkEncoder.d.ts.map +1 -1
  928. package/build/utils/HashlinkEncoder.mjs.map +1 -1
  929. package/build/utils/JsonEncoder.d.mts +3 -2
  930. package/build/utils/JsonEncoder.d.mts.map +1 -1
  931. package/build/utils/JsonEncoder.d.ts +3 -2
  932. package/build/utils/JsonEncoder.d.ts.map +1 -1
  933. package/build/utils/JsonEncoder.js +8 -8
  934. package/build/utils/JsonEncoder.mjs +4 -3
  935. package/build/utils/JsonEncoder.mjs.map +1 -1
  936. package/build/utils/JsonTransformer.mjs.map +1 -1
  937. package/build/utils/MessageValidator.mjs.map +1 -1
  938. package/build/utils/MultiBaseEncoder.d.mts +4 -2
  939. package/build/utils/MultiBaseEncoder.d.mts.map +1 -1
  940. package/build/utils/MultiBaseEncoder.d.ts +4 -2
  941. package/build/utils/MultiBaseEncoder.d.ts.map +1 -1
  942. package/build/utils/MultiBaseEncoder.mjs.map +1 -1
  943. package/build/utils/MultiHashEncoder.d.mts +5 -5
  944. package/build/utils/MultiHashEncoder.d.mts.map +1 -1
  945. package/build/utils/MultiHashEncoder.d.ts +5 -5
  946. package/build/utils/MultiHashEncoder.d.ts.map +1 -1
  947. package/build/utils/MultiHashEncoder.js +5 -7
  948. package/build/utils/MultiHashEncoder.mjs +5 -4
  949. package/build/utils/MultiHashEncoder.mjs.map +1 -1
  950. package/build/utils/TypedArrayEncoder.d.mts +12 -9
  951. package/build/utils/TypedArrayEncoder.d.mts.map +1 -1
  952. package/build/utils/TypedArrayEncoder.d.ts +12 -9
  953. package/build/utils/TypedArrayEncoder.d.ts.map +1 -1
  954. package/build/utils/TypedArrayEncoder.js +22 -17
  955. package/build/utils/TypedArrayEncoder.mjs +7 -1
  956. package/build/utils/TypedArrayEncoder.mjs.map +1 -1
  957. package/build/utils/VarintEncoder.js +1 -4
  958. package/build/utils/VarintEncoder.mjs +1 -2
  959. package/build/utils/VarintEncoder.mjs.map +1 -1
  960. package/build/utils/base58.mjs.map +1 -1
  961. package/build/utils/buffer.d.mts +1 -1
  962. package/build/utils/buffer.d.ts +1 -1
  963. package/build/utils/buffer.mjs +1 -1
  964. package/build/utils/deepEquality.mjs.map +1 -1
  965. package/build/utils/index.js +10 -11
  966. package/build/utils/index.mjs +9 -9
  967. package/build/utils/objectEquality.mjs.map +1 -1
  968. package/build/utils/timestamp.d.mts +10 -2
  969. package/build/utils/timestamp.d.mts.map +1 -1
  970. package/build/utils/timestamp.d.ts +10 -2
  971. package/build/utils/timestamp.d.ts.map +1 -1
  972. package/build/utils/timestamp.js +9 -1
  973. package/build/utils/timestamp.mjs +8 -2
  974. package/build/utils/timestamp.mjs.map +1 -1
  975. package/build/utils/transformers.d.mts.map +1 -1
  976. package/build/utils/transformers.d.ts.map +1 -1
  977. package/build/utils/transformers.mjs.map +1 -1
  978. package/build/utils/validators.d.mts.map +1 -1
  979. package/build/utils/validators.d.ts.map +1 -1
  980. package/build/utils/validators.mjs.map +1 -1
  981. package/build/utils/zod.js +2 -0
  982. package/build/utils/zod.mjs +2 -1
  983. package/build/utils/zod.mjs.map +1 -1
  984. package/package.json +25 -25
  985. package/build/utils/buffer.js +0 -5
@@ -1 +1 @@
1
- {"version":3,"file":"updates.d.mts","names":[],"sources":["../../../src/storage/migration/updates.ts"],"sourcesContent":[],"mappings":";;;;;;;UASiB,YAAA;cACH;;AADG,UAIA,MAAA,CAJY;EAIZ,WAAM,EACR,aADQ;EAAA,SAAA,EAEV,aAFU;UACR,EAAA,CAAA,cAEY,SAFZ,CAAA,CAAA,KAAA,EAE8B,KAF9B,EAAA,YAAA,EAEmD,YAFnD,EAAA,GAEoE,OAFpE,CAAA,IAAA,CAAA;;AAEY,UAGV,sBAAA,CAHU;6BAAkB,EAAA,aAAA,GAAA,cAAA,GAAA,qBAAA,GAAA,aAAA;;AAA6C,cAa7E,gBAb6E,EAAA,SAAA,CAAA;EAGzE,SAAA,WAAA,EAAA,KAAsB;EAU1B,SAAA,SAAA,EA0BH,KAAA;EAAA,SAAA,QAAA,EAAA,GAAA,GAAA,IAAA;;;;;AAUV,CAAA,EAAA;;;;;;;;;;;;;KAAY,eAAA,WAA0B"}
1
+ {"version":3,"file":"updates.d.mts","names":[],"sources":["../../../src/storage/migration/updates.ts"],"sourcesContent":[],"mappings":";;;;;;;UAQiB,YAAA;cACH;;AADG,UAIA,MAAA,CAJY;EAIZ,WAAM,EACR,aADQ;EAAA,SAAA,EAEV,aAFU;UACR,EAAA,CAAA,cAEY,SAFZ,CAAA,CAAA,KAAA,EAE8B,KAF9B,EAAA,YAAA,EAEmD,YAFnD,EAAA,GAEoE,OAFpE,CAAA,IAAA,CAAA;;AAEY,UAGV,sBAAA,CAHU;6BAAkB,EAAA,aAAA,GAAA,cAAA,GAAA,qBAAA,GAAA,aAAA;;AAA6C,cAa7E,gBAb6E,EAAA,SAAA,CAAA;EAGzE,SAAA,WAAA,EAAA,KAAsB;EAU1B,SAAA,SAAA,EA0BH,KAAA;EAAA,SAAA,QAAA,EAAA,GAAA,GAAA,IAAA;;;;;AAUV,CAAA,EAAA;;;;;;;;;;;;;KAAY,eAAA,WAA0B"}
@@ -1,7 +1,7 @@
1
1
  import { BaseAgent } from "../../agent/BaseAgent.js";
2
2
  import { VersionString } from "../../utils/version.js";
3
- import { updateV0_3ToV0_3_1 } from "./updates/0.3-0.3.1/index.js";
4
3
  import { updateV0_3_1ToV0_4 } from "./updates/0.3.1-0.4/index.js";
4
+ import { updateV0_3ToV0_3_1 } from "./updates/0.3-0.3.1/index.js";
5
5
  import { updateV0_4ToV0_5 } from "./updates/0.4-0.5/index.js";
6
6
 
7
7
  //#region src/storage/migration/updates.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"updates.d.ts","names":[],"sources":["../../../src/storage/migration/updates.ts"],"sourcesContent":[],"mappings":";;;;;;;UASiB,YAAA;EAAA,UAAA,EACH,sBAAA;AAGd;AAAuB,UAAN,MAAA,CAAM;aACR,EAAA,aAAA;WACF,EAAA,aAAA;UACc,EAAA,CAAA,cAAA,SAAA,CAAA,CAAA,KAAA,EAAkB,KAAlB,EAAA,YAAA,EAAuC,YAAvC,EAAA,GAAwD,OAAxD,CAAA,IAAA,CAAA;;AAAuC,UAGjD,sBAAA,CAHiD;6BAAiB,EAAA,aAAA,GAAA,cAAA,GAAA,qBAAA,GAAA,aAAA;;AAatE,cAAA,gBA0BH,EAAA,SAAA,CAAA;EAAA,SAAA,WAAA,EAAA,KAAA;;;;;EAUE,SAAA,SAAe,EAAA,KAAA;;;;;;;;;;;;;;;KAAf,eAAA,WAA0B"}
1
+ {"version":3,"file":"updates.d.ts","names":[],"sources":["../../../src/storage/migration/updates.ts"],"sourcesContent":[],"mappings":";;;;;;;UAQiB,YAAA;EAAA,UAAA,EACH,sBAAA;AAGd;AAAuB,UAAN,MAAA,CAAM;aACR,EAAA,aAAA;WACF,EAAA,aAAA;UACc,EAAA,CAAA,cAAA,SAAA,CAAA,CAAA,KAAA,EAAkB,KAAlB,EAAA,YAAA,EAAuC,YAAvC,EAAA,GAAwD,OAAxD,CAAA,IAAA,CAAA;;AAAuC,UAGjD,sBAAA,CAHiD;6BAAiB,EAAA,aAAA,GAAA,cAAA,GAAA,qBAAA,GAAA,aAAA;;AAatE,cAAA,gBA0BH,EAAA,SAAA,CAAA;EAAA,SAAA,WAAA,EAAA,KAAA;;;;;EAUE,SAAA,SAAe,EAAA,KAAA;;;;;;;;;;;;;;;KAAf,eAAA,WAA0B"}
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
- const require_index = require('./updates/0.3-0.3.1/index.js');
4
- const require_index$1 = require('./updates/0.3.1-0.4/index.js');
3
+ const require_index = require('./updates/0.3.1-0.4/index.js');
4
+ const require_index$1 = require('./updates/0.3-0.3.1/index.js');
5
5
  const require_index$2 = require('./updates/0.4-0.5/index.js');
6
6
 
7
7
  //#region src/storage/migration/updates.ts
@@ -21,12 +21,12 @@ const supportedUpdates = [
21
21
  {
22
22
  fromVersion: "0.3",
23
23
  toVersion: "0.3.1",
24
- doUpdate: require_index.updateV0_3ToV0_3_1
24
+ doUpdate: require_index$1.updateV0_3ToV0_3_1
25
25
  },
26
26
  {
27
27
  fromVersion: "0.3.1",
28
28
  toVersion: "0.4",
29
- doUpdate: require_index$1.updateV0_3_1ToV0_4
29
+ doUpdate: require_index.updateV0_3_1ToV0_4
30
30
  },
31
31
  {
32
32
  fromVersion: "0.4",
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
- import { updateV0_3ToV0_3_1 } from "./updates/0.3-0.3.1/index.mjs";
4
3
  import { updateV0_3_1ToV0_4 } from "./updates/0.3.1-0.4/index.mjs";
4
+ import { updateV0_3ToV0_3_1 } from "./updates/0.3-0.3.1/index.mjs";
5
5
  import { updateV0_4ToV0_5 } from "./updates/0.4-0.5/index.mjs";
6
6
 
7
7
  //#region src/storage/migration/updates.ts
@@ -1 +1 @@
1
- {"version":3,"file":"updates.mjs","names":["DEFAULT_UPDATE_CONFIG: UpdateConfig"],"sources":["../../../src/storage/migration/updates.ts"],"sourcesContent":["import type { BaseAgent } from '../../agent/BaseAgent'\nimport type { VersionString } from '../../utils/version'\n\nimport { updateV0_3ToV0_3_1 } from './updates/0.3-0.3.1'\nimport { updateV0_3_1ToV0_4 } from './updates/0.3.1-0.4'\nimport { updateV0_4ToV0_5 } from './updates/0.4-0.5'\n\nexport const INITIAL_STORAGE_VERSION = '0.1'\n\nexport interface UpdateConfig {\n v0_1ToV0_2: V0_1ToV0_2UpdateConfig\n}\n\nexport interface Update {\n fromVersion: VersionString\n toVersion: VersionString\n doUpdate: <Agent extends BaseAgent>(agent: Agent, updateConfig: UpdateConfig) => Promise<void>\n}\n\nexport interface V0_1ToV0_2UpdateConfig {\n mediationRoleUpdateStrategy: 'allMediator' | 'allRecipient' | 'recipientIfEndpoint' | 'doNotChange'\n}\n\nexport const DEFAULT_UPDATE_CONFIG: UpdateConfig = {\n v0_1ToV0_2: {\n mediationRoleUpdateStrategy: 'recipientIfEndpoint',\n },\n}\n\nexport const supportedUpdates = [\n {\n fromVersion: '0.1',\n toVersion: '0.2',\n doUpdate: () => {}, // Nothing to do in Core module\n },\n {\n fromVersion: '0.2',\n toVersion: '0.3',\n doUpdate: () => {}, // Nothing to do in Core module\n },\n {\n fromVersion: '0.3',\n toVersion: '0.3.1',\n doUpdate: updateV0_3ToV0_3_1,\n },\n {\n fromVersion: '0.3.1',\n toVersion: '0.4',\n doUpdate: updateV0_3_1ToV0_4,\n },\n {\n fromVersion: '0.4',\n toVersion: '0.5',\n doUpdate: updateV0_4ToV0_5,\n },\n] as const\n\n// Current version is last toVersion from the supported updates\nexport const CURRENT_FRAMEWORK_STORAGE_VERSION = supportedUpdates[supportedUpdates.length - 1].toVersion as LastItem<\n typeof supportedUpdates\n>['toVersion']\n\nexport const STORAGE_VERSION_RECORD_ID = 'STORAGE_VERSION_RECORD_ID'\n\ntype LastItem<T extends readonly unknown[]> = T extends readonly [...infer _, infer U] ? U : T[0] | undefined\nexport type UpdateToVersion = (typeof supportedUpdates)[number]['toVersion']\n"],"mappings":";;;;;;;AAOA,MAAa,0BAA0B;AAgBvC,MAAaA,wBAAsC,EACjD,YAAY,EACV,6BAA6B,uBAC9B,EACF;AAED,MAAa,mBAAmB;CAC9B;EACE,aAAa;EACb,WAAW;EACX,gBAAgB;EACjB;CACD;EACE,aAAa;EACb,WAAW;EACX,gBAAgB;EACjB;CACD;EACE,aAAa;EACb,WAAW;EACX,UAAU;EACX;CACD;EACE,aAAa;EACb,WAAW;EACX,UAAU;EACX;CACD;EACE,aAAa;EACb,WAAW;EACX,UAAU;EACX;CACF;AAGD,MAAa,oCAAoC,iBAAiB,iBAAiB,SAAS,GAAG;AAI/F,MAAa,4BAA4B"}
1
+ {"version":3,"file":"updates.mjs","names":["DEFAULT_UPDATE_CONFIG: UpdateConfig"],"sources":["../../../src/storage/migration/updates.ts"],"sourcesContent":["import type { BaseAgent } from '../../agent/BaseAgent'\nimport type { VersionString } from '../../utils/version'\nimport { updateV0_3_1ToV0_4 } from './updates/0.3.1-0.4'\nimport { updateV0_3ToV0_3_1 } from './updates/0.3-0.3.1'\nimport { updateV0_4ToV0_5 } from './updates/0.4-0.5'\n\nexport const INITIAL_STORAGE_VERSION = '0.1'\n\nexport interface UpdateConfig {\n v0_1ToV0_2: V0_1ToV0_2UpdateConfig\n}\n\nexport interface Update {\n fromVersion: VersionString\n toVersion: VersionString\n doUpdate: <Agent extends BaseAgent>(agent: Agent, updateConfig: UpdateConfig) => Promise<void>\n}\n\nexport interface V0_1ToV0_2UpdateConfig {\n mediationRoleUpdateStrategy: 'allMediator' | 'allRecipient' | 'recipientIfEndpoint' | 'doNotChange'\n}\n\nexport const DEFAULT_UPDATE_CONFIG: UpdateConfig = {\n v0_1ToV0_2: {\n mediationRoleUpdateStrategy: 'recipientIfEndpoint',\n },\n}\n\nexport const supportedUpdates = [\n {\n fromVersion: '0.1',\n toVersion: '0.2',\n doUpdate: () => {}, // Nothing to do in Core module\n },\n {\n fromVersion: '0.2',\n toVersion: '0.3',\n doUpdate: () => {}, // Nothing to do in Core module\n },\n {\n fromVersion: '0.3',\n toVersion: '0.3.1',\n doUpdate: updateV0_3ToV0_3_1,\n },\n {\n fromVersion: '0.3.1',\n toVersion: '0.4',\n doUpdate: updateV0_3_1ToV0_4,\n },\n {\n fromVersion: '0.4',\n toVersion: '0.5',\n doUpdate: updateV0_4ToV0_5,\n },\n] as const\n\n// Current version is last toVersion from the supported updates\nexport const CURRENT_FRAMEWORK_STORAGE_VERSION = supportedUpdates[supportedUpdates.length - 1].toVersion as LastItem<\n typeof supportedUpdates\n>['toVersion']\n\nexport const STORAGE_VERSION_RECORD_ID = 'STORAGE_VERSION_RECORD_ID'\n\ntype LastItem<T extends readonly unknown[]> = T extends readonly [...infer _, infer U] ? U : T[0] | undefined\nexport type UpdateToVersion = (typeof supportedUpdates)[number]['toVersion']\n"],"mappings":";;;;;;;AAMA,MAAa,0BAA0B;AAgBvC,MAAaA,wBAAsC,EACjD,YAAY,EACV,6BAA6B,uBAC9B,EACF;AAED,MAAa,mBAAmB;CAC9B;EACE,aAAa;EACb,WAAW;EACX,gBAAgB;EACjB;CACD;EACE,aAAa;EACb,WAAW;EACX,gBAAgB;EACjB;CACD;EACE,aAAa;EACb,WAAW;EACX,UAAU;EACX;CACD;EACE,aAAa;EACb,WAAW;EACX,UAAU;EACX;CACD;EACE,aAAa;EACb,WAAW;EACX,UAAU;EACX;CACF;AAGD,MAAa,oCAAoC,iBAAiB,iBAAiB,SAAS,GAAG;AAI/F,MAAa,4BAA4B"}
package/build/types.d.mts CHANGED
@@ -24,6 +24,17 @@ type JsonArray = Array<JsonValue>;
24
24
  interface JsonObject {
25
25
  [property: string]: JsonValue;
26
26
  }
27
+ /**
28
+ * Typescript 5.7/5.9 made the Uint8Array generic. This causes a lot of type errors
29
+ * and is also not backwards compatible with older TypeScript versions.
30
+ *
31
+ * This type util infers the return type, so that in older versions the non generic
32
+ * Uint8Array is used, and in newer version the generic Uint8Array is used.
33
+ *
34
+ * See https://github.com/microsoft/typescript/issues/62240
35
+ */
36
+ type Uint8ArrayBuffer = ReturnType<typeof Uint8Array.from>;
37
+ type AnyUint8Array = Uint8Array;
27
38
  /**
28
39
  * Create an exclusive or, setting the other params to 'never' which helps with
29
40
  * type narrowing
@@ -52,5 +63,5 @@ type NonEmptyArray<T> = [T, ...T[]];
52
63
  declare function mapNonEmptyArray<U, M extends (item: U, index: number) => unknown>(array: NonEmptyArray<U>, mapFunction: M): NonEmptyArray<ReturnType<M>>;
53
64
  declare function isNonEmptyArray<U>(array: U[]): array is NonEmptyArray<U>;
54
65
  //#endregion
55
- export { CanBePromise, InitConfig, JsonArray, JsonObject, JsonValue, NonEmptyArray, Optional, ResolvedDidCommService, SingleOrArray, XOR, isJsonObject, isNonEmptyArray, mapNonEmptyArray };
66
+ export { AnyUint8Array, CanBePromise, InitConfig, JsonArray, JsonObject, JsonValue, NonEmptyArray, Optional, ResolvedDidCommService, SingleOrArray, Uint8ArrayBuffer, XOR, isJsonObject, isNonEmptyArray, mapNonEmptyArray };
56
67
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;UAGiB,UAAA;WACN;;;;AADX;AAkBA;;;;;AACA;;;uBAAwB,CAAA,EAAA,OAAA;;AACP,KAFL,SAAA,GAEe,MACL,GAAA,MAAS,GAAA,OAAA,GAAA,IAAA,GAH4B,UAG5B,GAHyC,SAGzC;AA4BnB,KA9BA,SAAA,GAAY,KA8BT,CA9Be,SA8Bf,CAAA;AAAA,UA7BE,UAAA,CA6BF;WACV,EAAA,MAAA,CAAA,EA7BiB,SA6BjB;;;;;AAoBL;AAIA;;;;;AACA;;;;AAAkD,KA1BtC,GA0BsC,CAAA,CAAA,EAAA,CAAA,CAAA,GAAA,CAzB7C,CAyB6C,GAAA,QAAY,MAzBvC,IAyBuC,CAzBlC,CAyBkC,EAAA,MAzBzB,CAyByB,CAAA,IAAA,KAAA,OAxBzD,CAwBwC,GAAA,QAA2B,MAxBjD,IAwBiD,CAxB5C,CAwB4C,EAAA,MAxBnC,CAwBmC,CAAA,IAAA,KAAA;AAG5D,UAfK,sBAAA,CAeQ;EAAA,EAAA,EAAA,MAAA;iBAAO,EAAA,MAAA;eAAM,EAZrB,SAYqB,CAZX,gBAYW,CAAA,EAAA;EAAC,WAAA,EAXxB,SAWwB,CAXd,gBAWc,CAAA,EAAA;AACvC;AAAgC,cATnB,YASmB,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,KAAA,IATuB,UASvB;AAAqB,KALzC,aAKyC,CAAA,CAAA,CAAA,GALtB,CAKsB,GALlB,CAKkB,EAAA;AAC9B,KALX,QAKW,CAAA,CAAA,EAAA,UAAA,MALiB,CAKjB,CAAA,GALsB,IAKtB,CAL2B,OAK3B,CALmC,CAKnC,CAAA,EALuC,CAKvC,CAAA,GAL4C,IAK5C,CALiD,CAKjD,EALoD,CAKpD,CAAA;AAAd,KAJG,YAIH,CAAA,CAAA,CAAA,GAJqB,CAIrB,GAJyB,OAIzB,CAJiC,CAIjC,CAAA;AACM,KAHH,aAGG,CAAA,CAAA,CAAA,GAAA,CAHiB,CAGjB,EAAA,GAHuB,CAGvB,EAAA,CAAA;AACa,iBAHZ,gBAGY,CAAA,CAAA,EAAA,UAAA,CAAA,IAAA,EAHyB,CAGzB,EAAA,KAAA,EAAA,MAAA,EAAA,GAAA,OAAA,CAAA,CAAA,KAAA,EAFnB,aAEmB,CAFL,CAEK,CAAA,EAAA,WAAA,EADb,CACa,CAAA,EAAzB,aAAyB,CAAX,UAAW,CAAA,CAAA,CAAA,CAAA;AAAX,iBAGD,eAHC,CAAA,CAAA,CAAA,CAAA,KAAA,EAGyB,CAHzB,EAAA,CAAA,EAAA,KAAA,IAGwC,aAHxC,CAGsD,CAHtD,CAAA"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;UAGiB,UAAA;WACN;;;;AADX;AAkBA;;;;;AACA;;;uBAAwB,CAAA,EAAA,OAAA;;AACP,KAFL,SAAA,GAEe,MACL,GAAA,MAAS,GAAA,OAAA,GAAA,IAAA,GAH4B,UAG5B,GAHyC,SAGzC;AAYnB,KAdA,SAAA,GAAY,KAcI,CAdE,SAcF,CAAA;AAAA,UAbX,UAAA,CAaW;WAAqB,EAAA,MAAW,CAAA,EAZtC,SAYsC;;;AAE5D;AA2BA;;;;;;;AAE4B,KA/BhB,gBAAA,GAAmB,UA+BH,CAAA,OA/BqB,UAAA,CAAW,IA+BhC,CAAA;AAAS,KA7BzB,aAAA,GAAgB,UA6BS;;;;;AAwBrC;;;;;;;;;AAAmE,KA1BvD,GA0BuD,CAAA,CAAA,EAAA,CAAA,CAAA,GAAA,CAzB9D,CAyB8D,GAAA,QAAI,MAzBhD,IAyBgD,CAzB3C,CAyB2C,EAAA,MAzBlC,CAyBkC,CAAA,IAAA,KAAA,EACvE,CAAA,GAAY,CAzBP,CAyBO,GAAA,QAAY,MAzBD,IAyBC,CAzBI,CAyBJ,EAAA,MAzBa,CAyBb,CAAA,IAAA,KAAA;AAGR,UAhBC,sBAAA,CAgBe;EAAA,EAAA,EAAA,MAAA;iBAAqB,EAAA,MAAA;eAC9B,EAdN,SAcM,CAdI,gBAcJ,CAAA,EAAA;aAAd,EAbM,SAaN,CAbgB,gBAahB,CAAA,EAAA;;AAEmB,cAZf,YAYe,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,KAAA,IAZ2B,UAY3B;AAAX,KARL,aAQK,CAAA,CAAA,CAAA,GARc,CAQd,GARkB,CAQlB,EAAA;AAAd,KAPS,QAOT,CAAA,CAAA,EAAA,UAAA,MAPqC,CAOrC,CAAA,GAP0C,IAO1C,CAP+C,OAO/C,CAPuD,CAOvD,CAAA,EAP2D,CAO3D,CAAA,GAPgE,IAOhE,CAPqE,CAOrE,EAPwE,CAOxE,CAAA;AAAa,KANJ,YAMI,CAAA,CAAA,CAAA,GANc,CAMd,GANkB,OAMlB,CAN0B,CAM1B,CAAA;AAGA,KAPJ,aAOmB,CAAA,CAAA,CAAA,GAAA,CAPC,CAOD,EAAA,GAPO,CAOP,EAAA,CAAA;AAAA,iBANf,gBAMe,CAAA,CAAA,EAAA,UAAA,CAAA,IAAA,EANsB,CAMtB,EAAA,KAAA,EAAA,MAAA,EAAA,GAAA,OAAA,CAAA,CAAA,KAAA,EALtB,aAKsB,CALR,CAKQ,CAAA,EAAA,WAAA,EAJhB,CAIgB,CAAA,EAH5B,aAG4B,CAHd,UAGc,CAHH,CAGG,CAAA,CAAA;AAAW,iBAA1B,eAA0B,CAAA,CAAA,CAAA,CAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,IAAe,aAAf,CAA6B,CAA7B,CAAA"}
package/build/types.d.ts CHANGED
@@ -24,6 +24,17 @@ type JsonArray = Array<JsonValue>;
24
24
  interface JsonObject {
25
25
  [property: string]: JsonValue;
26
26
  }
27
+ /**
28
+ * Typescript 5.7/5.9 made the Uint8Array generic. This causes a lot of type errors
29
+ * and is also not backwards compatible with older TypeScript versions.
30
+ *
31
+ * This type util infers the return type, so that in older versions the non generic
32
+ * Uint8Array is used, and in newer version the generic Uint8Array is used.
33
+ *
34
+ * See https://github.com/microsoft/typescript/issues/62240
35
+ */
36
+ type Uint8ArrayBuffer = ReturnType<typeof Uint8Array.from>;
37
+ type AnyUint8Array = Uint8Array;
27
38
  /**
28
39
  * Create an exclusive or, setting the other params to 'never' which helps with
29
40
  * type narrowing
@@ -52,5 +63,5 @@ type NonEmptyArray<T> = [T, ...T[]];
52
63
  declare function mapNonEmptyArray<U, M extends (item: U, index: number) => unknown>(array: NonEmptyArray<U>, mapFunction: M): NonEmptyArray<ReturnType<M>>;
53
64
  declare function isNonEmptyArray<U>(array: U[]): array is NonEmptyArray<U>;
54
65
  //#endregion
55
- export { CanBePromise, InitConfig, JsonArray, JsonObject, JsonValue, NonEmptyArray, Optional, ResolvedDidCommService, SingleOrArray, XOR, isJsonObject, isNonEmptyArray, mapNonEmptyArray };
66
+ export { AnyUint8Array, CanBePromise, InitConfig, JsonArray, JsonObject, JsonValue, NonEmptyArray, Optional, ResolvedDidCommService, SingleOrArray, Uint8ArrayBuffer, XOR, isJsonObject, isNonEmptyArray, mapNonEmptyArray };
56
67
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;UAGiB,UAAA;WACN;;EADM;AAkBjB;;;;;AACA;;;;;EACiB,qBAAU,CAAA,EACL,OAAA;AA4BtB;AAAe,KA/BH,SAAA,GA+BG,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,IAAA,GA/B4C,UA+B5C,GA/ByD,SA+BzD;AACV,KA/BO,SAAA,GAAY,KA+BnB,CA/ByB,SA+BzB,CAAA;AAAuB,UA9BX,UAAA,CA8BW;WAAS,EAAA,MAAA,CAAA,EA7Bf,SA6Be;;;AAoBrC;AAIA;;;;;AACA;;;;;;AAA6C,KA1BjC,GA0BiC,CAAA,CAAA,EAAA,CAAA,CAAA,GAAA,CAzBxC,CAyBwC,GAAA,QAA2B,MAzBjD,IAyBiD,CAzB5C,CAyB4C,EAAA,MAzBnC,CAyBmC,CAAA,IAAA,KAAA,OAxBnE,CAwBsE,GAAA,QAAR,MAxB5C,IAwB4C,CAxBvC,CAwBuC,EAAA,MAxB9B,CAwB8B,CAAA,IAAA,KAAA,EAAI,CAAA;AAGvC,UAff,sBAAA,CAee;MAAM,MAAA;EAAC,eAAA,EAAA,MAAA;EACvB,aAAA,EAbC,SAae,CAbL,gBAaK,CAAA,EAAA;EAAA,WAAA,EAZjB,SAYiB,CAZP,gBAYO,CAAA,EAAA;;AACT,cAVV,YAUU,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,KAAA,IAVgC,UAUhC;AAAd,KANG,aAMH,CAAA,CAAA,CAAA,GANsB,CAMtB,GAN0B,CAM1B,EAAA;AACM,KANH,QAMG,CAAA,CAAA,EAAA,UAAA,MANyB,CAMzB,CAAA,GAN8B,IAM9B,CANmC,OAMnC,CAN2C,CAM3C,CAAA,EAN+C,CAM/C,CAAA,GANoD,IAMpD,CANyD,CAMzD,EAN4D,CAM5D,CAAA;AACa,KANhB,YAMgB,CAAA,CAAA,CAAA,GANE,CAMF,GANM,OAMN,CANc,CAMd,CAAA;AAAX,KAJL,aAIK,CAAA,CAAA,CAAA,GAAA,CAJe,CAIf,EAAA,GAJqB,CAIrB,EAAA,CAAA;AAAd,iBAHa,gBAGb,CAAA,CAAA,EAAA,UAAA,CAAA,IAAA,EAHkD,CAGlD,EAAA,KAAA,EAAA,MAAA,EAAA,GAAA,OAAA,CAAA,CAAA,KAAA,EAFM,aAEN,CAFoB,CAEpB,CAAA,EAAA,WAAA,EADY,CACZ,CAAA,EAAA,aAAA,CAAc,UAAd,CAAyB,CAAzB,CAAA,CAAA;AAAa,iBAGA,eAHA,CAAA,CAAA,CAAA,CAAA,KAAA,EAG0B,CAH1B,EAAA,CAAA,EAAA,KAAA,IAGyC,aAHzC,CAGuD,CAHvD,CAAA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;UAGiB,UAAA;WACN;;EADM;AAkBjB;;;;;AACA;;;;;EACiB,qBAAU,CAAA,EACL,OAAA;AAYtB;AAA4B,KAfhB,SAAA,GAegB,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,IAAA,GAf+B,UAe/B,GAf4C,SAe5C;AAAqB,KAdrC,SAAA,GAAY,KAcoC,CAd9B,SAc8B,CAAA;AAA7B,UAbd,UAAA,CAac;EAAU,CAAA,QAAA,EAAA,MAAA,CAAA,EAZnB,SAYmB;AAEzC;AA2BA;;;;;;;;;AAEuB,KA/BX,gBAAA,GAAmB,UA+BR,CAAA,OA/B0B,UAAA,CAAW,IA+BrC,CAAA;AAAI,KA7Bf,aAAA,GAAgB,UA6BD;;;AAwB3B;;;;;;;;;;;AACY,KA3BA,GA2BA,CAAA,CAAA,EAAY,CAAA,CAAA,GAAA,CA1BnB,CA0BmB,GAAA,QAAA,MA1BD,IA0BC,CA1BI,CA0BJ,EAAA,MA1Ba,CA0Bb,CAAA,IAAA,KAAA,OAzBnB,CAyByB,GAAA,QAAY,MAzBnB,IAyBmB,CAzBd,CAyBc,EAAA,MAzBL,CAyBK,CAAA,IAAA,KAAA;AAGW,UAhBpC,sBAAA,CAgBoC;MAC9B,MAAA;iBAAd,EAAA,MAAA;eACM,EAfE,SAeF,CAfY,gBAeZ,CAAA,EAAA;aACa,EAfb,SAea,CAfH,gBAeG,CAAA,EAAA;;AAAzB,cAZU,YAYV,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,KAAA,IAZoD,UAYpD;AAAa,KARJ,aAQI,CAAA,CAAA,CAAA,GARe,CAQf,GARmB,CAQnB,EAAA;AAGA,KAVJ,QAUI,CAAA,CAAe,EAAA,UAAA,MAVS,CAUT,CAAA,GAVc,IAUd,CAVmB,OAUnB,CAV2B,CAU3B,CAAA,EAV+B,CAU/B,CAAA,GAVoC,IAUpC,CAVyC,CAUzC,EAV4C,CAU5C,CAAA;AAAA,KATnB,YASmB,CAAA,CAAA,CAAA,GATD,CASC,GATG,OASH,CATW,CASX,CAAA;AAAW,KAP9B,aAO8B,CAAA,CAAA,CAAA,GAAA,CAPV,CAOU,EAAA,GAPJ,CAOI,EAAA,CAAA;AAA6B,iBANvD,gBAMuD,CAAA,CAAA,EAAA,UAAA,CAAA,IAAA,EANlB,CAMkB,EAAA,KAAA,EAAA,MAAA,EAAA,GAAA,OAAA,CAAA,CAAA,KAAA,EAL9D,aAK8D,CALhD,CAKgD,CAAA,EAAA,WAAA,EAJxD,CAIwD,CAAA,EAHpE,aAGoE,CAHtD,UAGsD,CAH3C,CAG2C,CAAA,CAAA;AAAd,iBAAzC,eAAyC,CAAA,CAAA,CAAA,CAAA,KAAA,EAAf,CAAe,EAAA,CAAA,EAAA,KAAA,IAAA,aAAA,CAAc,CAAd,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { Logger } from './logger'\nimport { Ed25519PublicJwk, PublicJwk } from './modules/kms'\n\nexport interface InitConfig {\n logger?: Logger\n autoUpdateStorageOnStartup?: boolean\n\n /**\n * Allow insecure http urls in places where this is usually required.\n * Unsecure http urls may still be allowed in places where this is not checked (e.g. didcomm)\n *\n * For some flows this config option is set globally, which means that different agent configurations\n * will fight for the configuration. It is meant as a local development option.\n *\n * Use with caution\n *\n * @default false\n */\n allowInsecureHttpUrls?: boolean\n}\n\nexport type JsonValue = string | number | boolean | null | JsonObject | JsonArray\nexport type JsonArray = Array<JsonValue>\nexport interface JsonObject {\n [property: string]: JsonValue\n}\n\n/**\n * Flatten an array of arrays\n * @example\n * ```\n * type Flattened = FlatArray<[[1], [2]]>\n *\n * // is the same as\n * type Flattened = 1 | 2\n * ```\n */\nexport type FlatArray<Arr> = Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr> : Arr\n\n/**\n * Create an exclusive or, setting the other params to 'never' which helps with\n * type narrowing\n *\n * @example\n * ```\n * type Options = XOR<{ name: string }, { dateOfBirth: Date }>\n *\n * type Options =\n * | { name: string; dateOfBirth?: never }\n * | { name?: never; dateOfBirth: Date }\n * ```\n */\nexport type XOR<T, U> =\n | (T & { [P in keyof Omit<U, keyof T>]?: never })\n | (U & { [P in keyof Omit<T, keyof U>]?: never })\n\n/**\n * Get the awaited (resolved promise) type of Promise type.\n */\nexport type Awaited<T> = T extends Promise<infer U> ? U : never\n\n/**\n * Type util that returns `true` or `false` based on whether the input type `T` is of type `any`\n */\nexport type IsAny<T> = unknown extends T ? ([keyof T] extends [never] ? false : true) : false\n\nexport interface ResolvedDidCommService {\n id: string\n serviceEndpoint: string\n recipientKeys: PublicJwk<Ed25519PublicJwk>[]\n routingKeys: PublicJwk<Ed25519PublicJwk>[]\n}\n\nexport const isJsonObject = (value: unknown): value is JsonObject => {\n return value !== undefined && typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nexport type SingleOrArray<T> = T | T[]\nexport type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>\nexport type CanBePromise<T> = T | Promise<T>\n\nexport type NonEmptyArray<T> = [T, ...T[]]\nexport function mapNonEmptyArray<U, M extends (item: U, index: number) => unknown>(\n array: NonEmptyArray<U>,\n mapFunction: M\n): NonEmptyArray<ReturnType<M>> {\n return array.map(mapFunction) as NonEmptyArray<ReturnType<M>>\n}\nexport function isNonEmptyArray<U>(array: U[]): array is NonEmptyArray<U> {\n return array.length > 0\n}\n"],"mappings":";;;;;AAyEA,MAAa,gBAAgB,UAAwC;AACnE,QAAO,UAAU,UAAa,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,MAAM;;AAQpG,SAAgB,iBACd,OACA,aAC8B;AAC9B,QAAO,MAAM,IAAI,YAAY;;AAE/B,SAAgB,gBAAmB,OAAuC;AACxE,QAAO,MAAM,SAAS"}
1
+ {"version":3,"file":"types.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { Logger } from './logger'\nimport { Ed25519PublicJwk, PublicJwk } from './modules/kms'\n\nexport interface InitConfig {\n logger?: Logger\n autoUpdateStorageOnStartup?: boolean\n\n /**\n * Allow insecure http urls in places where this is usually required.\n * Unsecure http urls may still be allowed in places where this is not checked (e.g. didcomm)\n *\n * For some flows this config option is set globally, which means that different agent configurations\n * will fight for the configuration. It is meant as a local development option.\n *\n * Use with caution\n *\n * @default false\n */\n allowInsecureHttpUrls?: boolean\n}\n\nexport type JsonValue = string | number | boolean | null | JsonObject | JsonArray\nexport type JsonArray = Array<JsonValue>\nexport interface JsonObject {\n [property: string]: JsonValue\n}\n\n/**\n * Typescript 5.7/5.9 made the Uint8Array generic. This causes a lot of type errors\n * and is also not backwards compatible with older TypeScript versions.\n *\n * This type util infers the return type, so that in older versions the non generic\n * Uint8Array is used, and in newer version the generic Uint8Array is used.\n *\n * See https://github.com/microsoft/typescript/issues/62240\n */\nexport type Uint8ArrayBuffer = ReturnType<typeof Uint8Array.from>\n\nexport type AnyUint8Array = Uint8Array\n\n/**\n * Flatten an array of arrays\n * @example\n * ```\n * type Flattened = FlatArray<[[1], [2]]>\n *\n * // is the same as\n * type Flattened = 1 | 2\n * ```\n */\nexport type FlatArray<Arr> = Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr> : Arr\n\n/**\n * Create an exclusive or, setting the other params to 'never' which helps with\n * type narrowing\n *\n * @example\n * ```\n * type Options = XOR<{ name: string }, { dateOfBirth: Date }>\n *\n * type Options =\n * | { name: string; dateOfBirth?: never }\n * | { name?: never; dateOfBirth: Date }\n * ```\n */\nexport type XOR<T, U> =\n | (T & { [P in keyof Omit<U, keyof T>]?: never })\n | (U & { [P in keyof Omit<T, keyof U>]?: never })\n\n/**\n * Get the awaited (resolved promise) type of Promise type.\n */\nexport type Awaited<T> = T extends Promise<infer U> ? U : never\n\n/**\n * Type util that returns `true` or `false` based on whether the input type `T` is of type `any`\n */\nexport type IsAny<T> = unknown extends T ? ([keyof T] extends [never] ? false : true) : false\n\nexport interface ResolvedDidCommService {\n id: string\n serviceEndpoint: string\n recipientKeys: PublicJwk<Ed25519PublicJwk>[]\n routingKeys: PublicJwk<Ed25519PublicJwk>[]\n}\n\nexport const isJsonObject = (value: unknown): value is JsonObject => {\n return value !== undefined && typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nexport type SingleOrArray<T> = T | T[]\nexport type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>\nexport type CanBePromise<T> = T | Promise<T>\n\nexport type NonEmptyArray<T> = [T, ...T[]]\nexport function mapNonEmptyArray<U, M extends (item: U, index: number) => unknown>(\n array: NonEmptyArray<U>,\n mapFunction: M\n): NonEmptyArray<ReturnType<M>> {\n return array.map(mapFunction) as NonEmptyArray<ReturnType<M>>\n}\nexport function isNonEmptyArray<U>(array: U[]): array is NonEmptyArray<U> {\n return array.length > 0\n}\n"],"mappings":";;;;;AAsFA,MAAa,gBAAgB,UAAwC;AACnE,QAAO,UAAU,UAAa,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,MAAM;;AAQpG,SAAgB,iBACd,OACA,aAC8B;AAC9B,QAAO,MAAM,IAAI,YAAY;;AAE/B,SAAgB,gBAAmB,OAAuC;AACxE,QAAO,MAAM,SAAS"}
@@ -1,6 +1,6 @@
1
+ import { HashName } from "../crypto/hashes/Hasher.mjs";
1
2
  import { Buffer } from "./buffer.mjs";
2
3
  import { BaseName } from "./MultiBaseEncoder.mjs";
3
- import { HashName } from "../crypto/hashes/Hasher.mjs";
4
4
 
5
5
  //#region src/utils/HashlinkEncoder.d.ts
6
6
  type Metadata = {
@@ -1 +1 @@
1
- {"version":3,"file":"HashlinkEncoder.d.mts","names":[],"sources":["../../src/utils/HashlinkEncoder.ts"],"sourcesContent":[],"mappings":";;;;;KAUK,QAAA;;;;AAAA,KAKO,YAAA,GALC;EAKD,QAAA,EAAA,MAAY;EAWX,QAAA,CAAA,EATA,QASe;CAAA;AAYhB,cAZC,eAAA,CAYD;;;;;;;;;;;wBAAA,SAAS,2BACF,yBACD,qBACH;;;;;;;;mCAe2B"}
1
+ {"version":3,"file":"HashlinkEncoder.d.mts","names":[],"sources":["../../src/utils/HashlinkEncoder.ts"],"sourcesContent":[],"mappings":";;;;;KASK,QAAA;;;;AAAA,KAKO,YAAA,GALC;EAKD,QAAA,EAAA,MAAY;EAWX,QAAA,CAAA,EATA,QASe;CAAA;AAYhB,cAZC,eAAA,CAYD;;;;;;;;;;;wBAAA,SAAS,2BACF,yBACD,qBACH;;;;;;;;mCAe2B"}
@@ -1,6 +1,6 @@
1
+ import { HashName } from "../crypto/hashes/Hasher.js";
1
2
  import { Buffer } from "./buffer.js";
2
3
  import { BaseName } from "./MultiBaseEncoder.js";
3
- import { HashName } from "../crypto/hashes/Hasher.js";
4
4
 
5
5
  //#region src/utils/HashlinkEncoder.d.ts
6
6
  type Metadata = {
@@ -1 +1 @@
1
- {"version":3,"file":"HashlinkEncoder.d.ts","names":[],"sources":["../../src/utils/HashlinkEncoder.ts"],"sourcesContent":[],"mappings":";;;;;KAUK,QAAA;;EAAA,WAAQ,CAAA,EAAA,MAAA;AAKb,CAAA;AAWa,KAXD,YAAA,GAWgB;EAAA,QAAA,EAAA,MAAA;UAYhB,CAAA,EArBC,QAqBD;;AACO,cAbN,eAAA,CAaM;;;;;;;;;;;wBADP,SAAS,2BACF,yBACD,qBACH;;;;;;;;mCAe2B"}
1
+ {"version":3,"file":"HashlinkEncoder.d.ts","names":[],"sources":["../../src/utils/HashlinkEncoder.ts"],"sourcesContent":[],"mappings":";;;;;KASK,QAAA;;EAAA,WAAQ,CAAA,EAAA,MAAA;AAKb,CAAA;AAWa,KAXD,YAAA,GAWgB;EAAA,QAAA,EAAA,MAAA;UAYhB,CAAA,EArBC,QAqBD;;AACO,cAbN,eAAA,CAaM;;;;;;;;;;;wBADP,SAAS,2BACF,yBACD,qBACH;;;;;;;;mCAe2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"HashlinkEncoder.mjs","names":[],"sources":["../../src/utils/HashlinkEncoder.ts"],"sourcesContent":["import type { HashName } from '../crypto'\nimport type { BaseName } from './MultiBaseEncoder'\nimport type { Buffer } from './buffer'\n\n// @ts-ignore ts is giving me headaches because this package has no types\nimport cbor from 'borc'\n\nimport { MultiBaseEncoder } from './MultiBaseEncoder'\nimport { MultiHashEncoder } from './MultiHashEncoder'\n\ntype Metadata = {\n urls?: string[]\n contentType?: string\n}\n\nexport type HashlinkData = {\n checksum: string\n metadata?: Metadata\n}\n\nconst hexTable = {\n urls: 0x0f,\n contentType: 0x0e,\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>\nexport class HashlinkEncoder {\n /**\n * Encodes a buffer, with optional metadata, into a hashlink\n *\n * @param buffer the buffer to encode into a hashlink\n * @param hashAlgorithm the name of the hashing algorithm 'sha-256'\n * @param baseEncoding the name of the base encoding algorithm 'base58btc'\n * @param metadata the optional metadata in the hashlink\n *\n * @returns hashlink hashlink with optional metadata\n */\n public static encode(\n buffer: Buffer | Uint8Array,\n hashAlgorithm: HashName,\n baseEncoding: BaseName = 'base58btc',\n metadata?: Metadata\n ) {\n const checksum = HashlinkEncoder.encodeMultiHash(buffer, hashAlgorithm, baseEncoding)\n const mbMetadata =\n metadata && Object.keys(metadata).length > 0 ? HashlinkEncoder.encodeMetadata(metadata, baseEncoding) : null\n return mbMetadata ? `hl:${checksum}:${mbMetadata}` : `hl:${checksum}`\n }\n\n /**\n * Decodes a hashlink into HashlinkData object\n *\n * @param hashlink the hashlink that needs decoding\n *\n * @returns object the decoded hashlink\n */\n public static decode(hashlink: string): HashlinkData {\n if (HashlinkEncoder.isValid(hashlink)) {\n const hashlinkList = hashlink.split(':')\n const [, checksum, encodedMetadata] = hashlinkList\n return encodedMetadata ? { checksum, metadata: HashlinkEncoder.decodeMetadata(encodedMetadata) } : { checksum }\n }\n throw new Error(`Invalid hashlink: ${hashlink}`)\n }\n\n /**\n * Validates a hashlink\n *\n * @param hashlink the hashlink that needs validating\n *\n * @returns a boolean whether the hashlink is valid\n *\n * */\n public static isValid(hashlink: string): boolean {\n const hashlinkList = hashlink.split(':')\n const validMultiBase = MultiBaseEncoder.isValid(hashlinkList[1])\n if (!validMultiBase) {\n return false\n }\n const { data } = MultiBaseEncoder.decode(hashlinkList[1])\n const validMultiHash = MultiHashEncoder.isValid(data)\n return !!validMultiHash\n }\n\n private static encodeMultiHash(\n data: Buffer | Uint8Array,\n hashName: HashName,\n baseEncoding: BaseName = 'base58btc'\n ): string {\n const mh = MultiHashEncoder.encode(data, hashName)\n const mb = MultiBaseEncoder.encode(mh, baseEncoding)\n return mb\n }\n\n private static encodeMetadata(metadata: Metadata, baseEncoding: BaseName): string {\n const metadataMap = new Map<number, unknown>()\n\n for (const key of Object.keys(metadata)) {\n if (key === 'urls' || key === 'contentType') {\n metadataMap.set(hexTable[key], metadata[key])\n } else {\n throw new Error(`Invalid metadata: ${metadata}`)\n }\n }\n\n const cborData = cbor.encode(metadataMap)\n\n const multibaseMetadata = MultiBaseEncoder.encode(cborData, baseEncoding)\n\n return multibaseMetadata\n }\n\n private static decodeMetadata(mb: string): Metadata {\n const obj = { urls: [] as string[], contentType: '' }\n const { data } = MultiBaseEncoder.decode(mb)\n try {\n // biome-ignore lint/suspicious/noExplicitAny: <explanation>\n const cborData: Map<number, any> = cbor.decode(data)\n cborData.forEach((value, key) => {\n if (key === hexTable.urls) {\n obj.urls = value\n } else if (key === hexTable.contentType) {\n obj.contentType = value\n } else {\n throw new Error(`Invalid metadata property: ${key}:${value}`)\n }\n })\n return obj\n } catch (error) {\n throw new Error(`Invalid metadata: ${mb}, ${error}`)\n }\n }\n}\n"],"mappings":";;;;;;;AAoBA,MAAM,WAAW;CACf,MAAM;CACN,aAAa;CACd;AAGD,IAAa,kBAAb,MAAa,gBAAgB;;;;;;;;;;;CAW3B,OAAc,OACZ,QACA,eACA,eAAyB,aACzB,UACA;EACA,MAAM,WAAW,gBAAgB,gBAAgB,QAAQ,eAAe,aAAa;EACrF,MAAM,aACJ,YAAY,OAAO,KAAK,SAAS,CAAC,SAAS,IAAI,gBAAgB,eAAe,UAAU,aAAa,GAAG;AAC1G,SAAO,aAAa,MAAM,SAAS,GAAG,eAAe,MAAM;;;;;;;;;CAU7D,OAAc,OAAO,UAAgC;AACnD,MAAI,gBAAgB,QAAQ,SAAS,EAAE;GAErC,MAAM,GAAG,UAAU,mBADE,SAAS,MAAM,IAAI;AAExC,UAAO,kBAAkB;IAAE;IAAU,UAAU,gBAAgB,eAAe,gBAAgB;IAAE,GAAG,EAAE,UAAU;;AAEjH,QAAM,IAAI,MAAM,qBAAqB,WAAW;;;;;;;;;;CAWlD,OAAc,QAAQ,UAA2B;EAC/C,MAAM,eAAe,SAAS,MAAM,IAAI;AAExC,MAAI,CADmB,iBAAiB,QAAQ,aAAa,GAAG,CAE9D,QAAO;EAET,MAAM,EAAE,SAAS,iBAAiB,OAAO,aAAa,GAAG;AAEzD,SAAO,CAAC,CADe,iBAAiB,QAAQ,KAAK;;CAIvD,OAAe,gBACb,MACA,UACA,eAAyB,aACjB;EACR,MAAM,KAAK,iBAAiB,OAAO,MAAM,SAAS;AAElD,SADW,iBAAiB,OAAO,IAAI,aAAa;;CAItD,OAAe,eAAe,UAAoB,cAAgC;EAChF,MAAM,8BAAc,IAAI,KAAsB;AAE9C,OAAK,MAAM,OAAO,OAAO,KAAK,SAAS,CACrC,KAAI,QAAQ,UAAU,QAAQ,cAC5B,aAAY,IAAI,SAAS,MAAM,SAAS,KAAK;MAE7C,OAAM,IAAI,MAAM,qBAAqB,WAAW;EAIpD,MAAM,WAAW,KAAK,OAAO,YAAY;AAIzC,SAF0B,iBAAiB,OAAO,UAAU,aAAa;;CAK3E,OAAe,eAAe,IAAsB;EAClD,MAAM,MAAM;GAAE,MAAM,EAAE;GAAc,aAAa;GAAI;EACrD,MAAM,EAAE,SAAS,iBAAiB,OAAO,GAAG;AAC5C,MAAI;AAGF,GADmC,KAAK,OAAO,KAAK,CAC3C,SAAS,OAAO,QAAQ;AAC/B,QAAI,QAAQ,SAAS,KACnB,KAAI,OAAO;aACF,QAAQ,SAAS,YAC1B,KAAI,cAAc;QAElB,OAAM,IAAI,MAAM,8BAA8B,IAAI,GAAG,QAAQ;KAE/D;AACF,UAAO;WACA,OAAO;AACd,SAAM,IAAI,MAAM,qBAAqB,GAAG,IAAI,QAAQ"}
1
+ {"version":3,"file":"HashlinkEncoder.mjs","names":[],"sources":["../../src/utils/HashlinkEncoder.ts"],"sourcesContent":["// @ts-expect-error ts is giving me headaches because this package has no types\nimport cbor from 'borc'\nimport type { HashName } from '../crypto'\nimport type { Buffer } from './buffer'\nimport type { BaseName } from './MultiBaseEncoder'\n\nimport { MultiBaseEncoder } from './MultiBaseEncoder'\nimport { MultiHashEncoder } from './MultiHashEncoder'\n\ntype Metadata = {\n urls?: string[]\n contentType?: string\n}\n\nexport type HashlinkData = {\n checksum: string\n metadata?: Metadata\n}\n\nconst hexTable = {\n urls: 0x0f,\n contentType: 0x0e,\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: no explanation\nexport class HashlinkEncoder {\n /**\n * Encodes a buffer, with optional metadata, into a hashlink\n *\n * @param buffer the buffer to encode into a hashlink\n * @param hashAlgorithm the name of the hashing algorithm 'sha-256'\n * @param baseEncoding the name of the base encoding algorithm 'base58btc'\n * @param metadata the optional metadata in the hashlink\n *\n * @returns hashlink hashlink with optional metadata\n */\n public static encode(\n buffer: Buffer | Uint8Array,\n hashAlgorithm: HashName,\n baseEncoding: BaseName = 'base58btc',\n metadata?: Metadata\n ) {\n const checksum = HashlinkEncoder.encodeMultiHash(buffer, hashAlgorithm, baseEncoding)\n const mbMetadata =\n metadata && Object.keys(metadata).length > 0 ? HashlinkEncoder.encodeMetadata(metadata, baseEncoding) : null\n return mbMetadata ? `hl:${checksum}:${mbMetadata}` : `hl:${checksum}`\n }\n\n /**\n * Decodes a hashlink into HashlinkData object\n *\n * @param hashlink the hashlink that needs decoding\n *\n * @returns object the decoded hashlink\n */\n public static decode(hashlink: string): HashlinkData {\n if (HashlinkEncoder.isValid(hashlink)) {\n const hashlinkList = hashlink.split(':')\n const [, checksum, encodedMetadata] = hashlinkList\n return encodedMetadata ? { checksum, metadata: HashlinkEncoder.decodeMetadata(encodedMetadata) } : { checksum }\n }\n throw new Error(`Invalid hashlink: ${hashlink}`)\n }\n\n /**\n * Validates a hashlink\n *\n * @param hashlink the hashlink that needs validating\n *\n * @returns a boolean whether the hashlink is valid\n *\n * */\n public static isValid(hashlink: string): boolean {\n const hashlinkList = hashlink.split(':')\n const validMultiBase = MultiBaseEncoder.isValid(hashlinkList[1])\n if (!validMultiBase) {\n return false\n }\n const { data } = MultiBaseEncoder.decode(hashlinkList[1])\n const validMultiHash = MultiHashEncoder.isValid(data)\n return !!validMultiHash\n }\n\n private static encodeMultiHash(\n data: Buffer | Uint8Array,\n hashName: HashName,\n baseEncoding: BaseName = 'base58btc'\n ): string {\n const mh = MultiHashEncoder.encode(data, hashName)\n const mb = MultiBaseEncoder.encode(mh, baseEncoding)\n return mb\n }\n\n private static encodeMetadata(metadata: Metadata, baseEncoding: BaseName): string {\n const metadataMap = new Map<number, unknown>()\n\n for (const key of Object.keys(metadata)) {\n if (key === 'urls' || key === 'contentType') {\n metadataMap.set(hexTable[key], metadata[key])\n } else {\n throw new Error(`Invalid metadata: ${metadata}`)\n }\n }\n\n const cborData = cbor.encode(metadataMap)\n\n const multibaseMetadata = MultiBaseEncoder.encode(cborData, baseEncoding)\n\n return multibaseMetadata\n }\n\n private static decodeMetadata(mb: string): Metadata {\n const obj = { urls: [] as string[], contentType: '' }\n const { data } = MultiBaseEncoder.decode(mb)\n try {\n // biome-ignore lint/suspicious/noExplicitAny: no explanation\n const cborData: Map<number, any> = cbor.decode(data)\n cborData.forEach((value, key) => {\n if (key === hexTable.urls) {\n obj.urls = value\n } else if (key === hexTable.contentType) {\n obj.contentType = value\n } else {\n throw new Error(`Invalid metadata property: ${key}:${value}`)\n }\n })\n return obj\n } catch (error) {\n throw new Error(`Invalid metadata: ${mb}, ${error}`)\n }\n }\n}\n"],"mappings":";;;;;;;AAmBA,MAAM,WAAW;CACf,MAAM;CACN,aAAa;CACd;AAGD,IAAa,kBAAb,MAAa,gBAAgB;;;;;;;;;;;CAW3B,OAAc,OACZ,QACA,eACA,eAAyB,aACzB,UACA;EACA,MAAM,WAAW,gBAAgB,gBAAgB,QAAQ,eAAe,aAAa;EACrF,MAAM,aACJ,YAAY,OAAO,KAAK,SAAS,CAAC,SAAS,IAAI,gBAAgB,eAAe,UAAU,aAAa,GAAG;AAC1G,SAAO,aAAa,MAAM,SAAS,GAAG,eAAe,MAAM;;;;;;;;;CAU7D,OAAc,OAAO,UAAgC;AACnD,MAAI,gBAAgB,QAAQ,SAAS,EAAE;GAErC,MAAM,GAAG,UAAU,mBADE,SAAS,MAAM,IAAI;AAExC,UAAO,kBAAkB;IAAE;IAAU,UAAU,gBAAgB,eAAe,gBAAgB;IAAE,GAAG,EAAE,UAAU;;AAEjH,QAAM,IAAI,MAAM,qBAAqB,WAAW;;;;;;;;;;CAWlD,OAAc,QAAQ,UAA2B;EAC/C,MAAM,eAAe,SAAS,MAAM,IAAI;AAExC,MAAI,CADmB,iBAAiB,QAAQ,aAAa,GAAG,CAE9D,QAAO;EAET,MAAM,EAAE,SAAS,iBAAiB,OAAO,aAAa,GAAG;AAEzD,SAAO,CAAC,CADe,iBAAiB,QAAQ,KAAK;;CAIvD,OAAe,gBACb,MACA,UACA,eAAyB,aACjB;EACR,MAAM,KAAK,iBAAiB,OAAO,MAAM,SAAS;AAElD,SADW,iBAAiB,OAAO,IAAI,aAAa;;CAItD,OAAe,eAAe,UAAoB,cAAgC;EAChF,MAAM,8BAAc,IAAI,KAAsB;AAE9C,OAAK,MAAM,OAAO,OAAO,KAAK,SAAS,CACrC,KAAI,QAAQ,UAAU,QAAQ,cAC5B,aAAY,IAAI,SAAS,MAAM,SAAS,KAAK;MAE7C,OAAM,IAAI,MAAM,qBAAqB,WAAW;EAIpD,MAAM,WAAW,KAAK,OAAO,YAAY;AAIzC,SAF0B,iBAAiB,OAAO,UAAU,aAAa;;CAK3E,OAAe,eAAe,IAAsB;EAClD,MAAM,MAAM;GAAE,MAAM,EAAE;GAAc,aAAa;GAAI;EACrD,MAAM,EAAE,SAAS,iBAAiB,OAAO,GAAG;AAC5C,MAAI;AAGF,GADmC,KAAK,OAAO,KAAK,CAC3C,SAAS,OAAO,QAAQ;AAC/B,QAAI,QAAQ,SAAS,KACnB,KAAI,OAAO;aACF,QAAQ,SAAS,YAC1B,KAAI,cAAc;QAElB,OAAM,IAAI,MAAM,8BAA8B,IAAI,GAAG,QAAQ;KAE/D;AACF,UAAO;WACA,OAAO;AACd,SAAM,IAAI,MAAM,qBAAqB,GAAG,IAAI,QAAQ"}
@@ -1,3 +1,4 @@
1
+ import { AnyUint8Array, Uint8ArrayBuffer } from "../types.mjs";
1
2
  import { Buffer } from "./buffer.mjs";
2
3
 
3
4
  //#region src/utils/JsonEncoder.d.ts
@@ -37,13 +38,13 @@ declare class JsonEncoder {
37
38
  *
38
39
  * @param json the json object to encode into buffer format
39
40
  */
40
- static toBuffer(json: unknown): Buffer;
41
+ static toBuffer(json: unknown): Uint8ArrayBuffer;
41
42
  /**
42
43
  * Decode buffer into json object
43
44
  *
44
45
  * @param buffer the buffer to decode into json
45
46
  */
46
- static fromBuffer(buffer: Buffer | Uint8Array): any;
47
+ static fromBuffer(buffer: Buffer | AnyUint8Array): any;
47
48
  }
48
49
  //#endregion
49
50
  export { JsonEncoder };
@@ -1 +1 @@
1
- {"version":3,"file":"JsonEncoder.d.mts","names":[],"sources":["../../src/utils/JsonEncoder.ts"],"sourcesContent":[],"mappings":";;;cAIa,WAAA;;;;AAAb;;SAmDsC,QAAA,CAAA,IAAA,EAAA,OAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAA;;;;;;4BASH,SAAS"}
1
+ {"version":3,"file":"JsonEncoder.d.mts","names":[],"sources":["../../src/utils/JsonEncoder.ts"],"sourcesContent":[],"mappings":";;;;cAMa,WAAA;;;;AAAb;;SAmDyC,QAAA,CAAA,IAAA,EAAA,OAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAA;;;;;;4BASN,SAAS"}
@@ -1,3 +1,4 @@
1
+ import { AnyUint8Array, Uint8ArrayBuffer } from "../types.js";
1
2
  import { Buffer } from "./buffer.js";
2
3
 
3
4
  //#region src/utils/JsonEncoder.d.ts
@@ -37,13 +38,13 @@ declare class JsonEncoder {
37
38
  *
38
39
  * @param json the json object to encode into buffer format
39
40
  */
40
- static toBuffer(json: unknown): Buffer;
41
+ static toBuffer(json: unknown): Uint8ArrayBuffer;
41
42
  /**
42
43
  * Decode buffer into json object
43
44
  *
44
45
  * @param buffer the buffer to decode into json
45
46
  */
46
- static fromBuffer(buffer: Buffer | Uint8Array): any;
47
+ static fromBuffer(buffer: Buffer | AnyUint8Array): any;
47
48
  }
48
49
  //#endregion
49
50
  export { JsonEncoder };
@@ -1 +1 @@
1
- {"version":3,"file":"JsonEncoder.d.ts","names":[],"sources":["../../src/utils/JsonEncoder.ts"],"sourcesContent":[],"mappings":";;;cAIa,WAAA;;AAAb;;;;SA4D4C,QAAA,CAAA,IAAA,EAAA,OAAA,CAAA,EAAA,MAAA;EAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAThB;;;;;;4BASH,SAAS"}
1
+ {"version":3,"file":"JsonEncoder.d.ts","names":[],"sources":["../../src/utils/JsonEncoder.ts"],"sourcesContent":[],"mappings":";;;;cAMa,WAAA;;AAAb;;;;SA4D4C,QAAA,CAAA,IAAA,EAAA,OAAA,CAAA,EAAA,MAAA;EAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAThB;;;;;;4BASN,SAAS"}
@@ -2,9 +2,9 @@
2
2
 
3
3
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
4
4
  const require_base64 = require('./base64.js');
5
- require('./buffer.js');
6
- let buffer_index_js = require("buffer/index.js");
7
- buffer_index_js = require_rolldown_runtime.__toESM(buffer_index_js);
5
+ const require_TypedArrayEncoder = require('./TypedArrayEncoder.js');
6
+ let buffer = require("buffer");
7
+ buffer = require_rolldown_runtime.__toESM(buffer);
8
8
 
9
9
  //#region src/utils/JsonEncoder.ts
10
10
  var JsonEncoder = class JsonEncoder {
@@ -14,7 +14,7 @@ var JsonEncoder = class JsonEncoder {
14
14
  * @param json the json object to encode into base64 string
15
15
  */
16
16
  static toBase64(json) {
17
- return JsonEncoder.toBuffer(json).toString("base64");
17
+ return buffer.Buffer.from(JsonEncoder.toString(json)).toString("base64");
18
18
  }
19
19
  /**
20
20
  * Encode json object into base64url string.
@@ -30,7 +30,7 @@ var JsonEncoder = class JsonEncoder {
30
30
  * @param base64 the base64 or base64url string to decode into json
31
31
  */
32
32
  static fromBase64(base64) {
33
- return JsonEncoder.fromBuffer(buffer_index_js.Buffer.from(base64, "base64"));
33
+ return JsonEncoder.fromBuffer(require_TypedArrayEncoder.TypedArrayEncoder.fromBase64(base64));
34
34
  }
35
35
  /**
36
36
  * Encode json object into string
@@ -54,15 +54,15 @@ var JsonEncoder = class JsonEncoder {
54
54
  * @param json the json object to encode into buffer format
55
55
  */
56
56
  static toBuffer(json) {
57
- return buffer_index_js.Buffer.from(JsonEncoder.toString(json));
57
+ return buffer.Buffer.from(JsonEncoder.toString(json));
58
58
  }
59
59
  /**
60
60
  * Decode buffer into json object
61
61
  *
62
62
  * @param buffer the buffer to decode into json
63
63
  */
64
- static fromBuffer(buffer) {
65
- return JsonEncoder.fromString(buffer_index_js.Buffer.from(buffer).toString("utf-8"));
64
+ static fromBuffer(buffer$1) {
65
+ return JsonEncoder.fromString(buffer.Buffer.from(buffer$1).toString("utf-8"));
66
66
  }
67
67
  };
68
68
 
@@ -1,7 +1,8 @@
1
1
 
2
2
 
3
- import { base64ToBase64URL } from "./base64.mjs";
4
3
  import { Buffer } from "./buffer.mjs";
4
+ import { base64ToBase64URL } from "./base64.mjs";
5
+ import { TypedArrayEncoder } from "./TypedArrayEncoder.mjs";
5
6
 
6
7
  //#region src/utils/JsonEncoder.ts
7
8
  var JsonEncoder = class JsonEncoder {
@@ -11,7 +12,7 @@ var JsonEncoder = class JsonEncoder {
11
12
  * @param json the json object to encode into base64 string
12
13
  */
13
14
  static toBase64(json) {
14
- return JsonEncoder.toBuffer(json).toString("base64");
15
+ return Buffer.from(JsonEncoder.toString(json)).toString("base64");
15
16
  }
16
17
  /**
17
18
  * Encode json object into base64url string.
@@ -27,7 +28,7 @@ var JsonEncoder = class JsonEncoder {
27
28
  * @param base64 the base64 or base64url string to decode into json
28
29
  */
29
30
  static fromBase64(base64) {
30
- return JsonEncoder.fromBuffer(Buffer.from(base64, "base64"));
31
+ return JsonEncoder.fromBuffer(TypedArrayEncoder.fromBase64(base64));
31
32
  }
32
33
  /**
33
34
  * Encode json object into string
@@ -1 +1 @@
1
- {"version":3,"file":"JsonEncoder.mjs","names":[],"sources":["../../src/utils/JsonEncoder.ts"],"sourcesContent":["import { base64ToBase64URL } from './base64'\nimport { Buffer } from './buffer'\n\n// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>\nexport class JsonEncoder {\n /**\n * Encode json object into base64 string.\n *\n * @param json the json object to encode into base64 string\n */\n public static toBase64(json: unknown) {\n return JsonEncoder.toBuffer(json).toString('base64')\n }\n\n /**\n * Encode json object into base64url string.\n *\n * @param json the json object to encode into base64url string\n */\n public static toBase64URL(json: unknown) {\n return base64ToBase64URL(JsonEncoder.toBase64(json))\n }\n\n /**\n * Decode base64 string into json object. Also supports base64url\n *\n * @param base64 the base64 or base64url string to decode into json\n */\n public static fromBase64(base64: string) {\n return JsonEncoder.fromBuffer(Buffer.from(base64, 'base64'))\n }\n\n /**\n * Encode json object into string\n *\n * @param json the json object to encode into string\n */\n public static toString(json: unknown) {\n return JSON.stringify(json)\n }\n\n /**\n * Decode string into json object\n *\n * @param string the string to decode into json\n */\n public static fromString(string: string) {\n return JSON.parse(string)\n }\n\n /**\n * Encode json object into buffer\n *\n * @param json the json object to encode into buffer format\n */\n public static toBuffer(json: unknown) {\n return Buffer.from(JsonEncoder.toString(json))\n }\n\n /**\n * Decode buffer into json object\n *\n * @param buffer the buffer to decode into json\n */\n public static fromBuffer(buffer: Buffer | Uint8Array) {\n return JsonEncoder.fromString(Buffer.from(buffer).toString('utf-8'))\n }\n}\n"],"mappings":";;;;;;AAIA,IAAa,cAAb,MAAa,YAAY;;;;;;CAMvB,OAAc,SAAS,MAAe;AACpC,SAAO,YAAY,SAAS,KAAK,CAAC,SAAS,SAAS;;;;;;;CAQtD,OAAc,YAAY,MAAe;AACvC,SAAO,kBAAkB,YAAY,SAAS,KAAK,CAAC;;;;;;;CAQtD,OAAc,WAAW,QAAgB;AACvC,SAAO,YAAY,WAAW,OAAO,KAAK,QAAQ,SAAS,CAAC;;;;;;;CAQ9D,OAAc,SAAS,MAAe;AACpC,SAAO,KAAK,UAAU,KAAK;;;;;;;CAQ7B,OAAc,WAAW,QAAgB;AACvC,SAAO,KAAK,MAAM,OAAO;;;;;;;CAQ3B,OAAc,SAAS,MAAe;AACpC,SAAO,OAAO,KAAK,YAAY,SAAS,KAAK,CAAC;;;;;;;CAQhD,OAAc,WAAW,QAA6B;AACpD,SAAO,YAAY,WAAW,OAAO,KAAK,OAAO,CAAC,SAAS,QAAQ,CAAC"}
1
+ {"version":3,"file":"JsonEncoder.mjs","names":[],"sources":["../../src/utils/JsonEncoder.ts"],"sourcesContent":["import type { AnyUint8Array, Uint8ArrayBuffer } from '../types'\nimport { base64ToBase64URL } from './base64'\nimport { Buffer } from './buffer'\nimport { TypedArrayEncoder } from './TypedArrayEncoder'\n\n// biome-ignore lint/complexity/noStaticOnlyClass: no explanation\nexport class JsonEncoder {\n /**\n * Encode json object into base64 string.\n *\n * @param json the json object to encode into base64 string\n */\n public static toBase64(json: unknown) {\n return Buffer.from(JsonEncoder.toString(json)).toString('base64')\n }\n\n /**\n * Encode json object into base64url string.\n *\n * @param json the json object to encode into base64url string\n */\n public static toBase64URL(json: unknown) {\n return base64ToBase64URL(JsonEncoder.toBase64(json))\n }\n\n /**\n * Decode base64 string into json object. Also supports base64url\n *\n * @param base64 the base64 or base64url string to decode into json\n */\n public static fromBase64(base64: string) {\n return JsonEncoder.fromBuffer(TypedArrayEncoder.fromBase64(base64))\n }\n\n /**\n * Encode json object into string\n *\n * @param json the json object to encode into string\n */\n public static toString(json: unknown) {\n return JSON.stringify(json)\n }\n\n /**\n * Decode string into json object\n *\n * @param string the string to decode into json\n */\n public static fromString(string: string) {\n return JSON.parse(string)\n }\n\n /**\n * Encode json object into buffer\n *\n * @param json the json object to encode into buffer format\n */\n public static toBuffer(json: unknown): Uint8ArrayBuffer {\n return Buffer.from(JsonEncoder.toString(json))\n }\n\n /**\n * Decode buffer into json object\n *\n * @param buffer the buffer to decode into json\n */\n public static fromBuffer(buffer: Buffer | AnyUint8Array) {\n return JsonEncoder.fromString(Buffer.from(buffer).toString('utf-8'))\n }\n}\n"],"mappings":";;;;;;;AAMA,IAAa,cAAb,MAAa,YAAY;;;;;;CAMvB,OAAc,SAAS,MAAe;AACpC,SAAO,OAAO,KAAK,YAAY,SAAS,KAAK,CAAC,CAAC,SAAS,SAAS;;;;;;;CAQnE,OAAc,YAAY,MAAe;AACvC,SAAO,kBAAkB,YAAY,SAAS,KAAK,CAAC;;;;;;;CAQtD,OAAc,WAAW,QAAgB;AACvC,SAAO,YAAY,WAAW,kBAAkB,WAAW,OAAO,CAAC;;;;;;;CAQrE,OAAc,SAAS,MAAe;AACpC,SAAO,KAAK,UAAU,KAAK;;;;;;;CAQ7B,OAAc,WAAW,QAAgB;AACvC,SAAO,KAAK,MAAM,OAAO;;;;;;;CAQ3B,OAAc,SAAS,MAAiC;AACtD,SAAO,OAAO,KAAK,YAAY,SAAS,KAAK,CAAC;;;;;;;CAQhD,OAAc,WAAW,QAAgC;AACvD,SAAO,YAAY,WAAW,OAAO,KAAK,OAAO,CAAC,SAAS,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"JsonTransformer.mjs","names":[],"sources":["../../src/utils/JsonTransformer.ts"],"sourcesContent":["import { instanceToInstance, instanceToPlain, plainToInstance } from 'class-transformer'\n\nimport { ClassValidationError } from '../error/ClassValidationError'\n\nimport { MessageValidator } from './MessageValidator'\n\ninterface Validate {\n validate?: boolean\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>\nexport class JsonTransformer {\n public static toJSON<T>(classInstance: T) {\n return instanceToPlain(classInstance, {\n exposeDefaultValues: true,\n })\n }\n\n public static fromJSON<T>(\n // biome-ignore lint/suspicious/noExplicitAny: <explanation>\n json: any,\n // biome-ignore lint/suspicious/noExplicitAny: <explanation>\n cls: { new (...args: any[]): T },\n { validate = true }: Validate = {}\n ): T {\n const instance = plainToInstance(cls, json, { exposeDefaultValues: true })\n\n // Skip validation\n if (!validate) return instance\n\n if (!instance) {\n throw new ClassValidationError('Cannot validate instance of ', { classType: Object.getPrototypeOf(cls).name })\n }\n MessageValidator.validateSync(instance)\n\n return instance\n }\n\n public static clone<T>(classInstance: T): T {\n return instanceToInstance(classInstance, {\n exposeDefaultValues: true,\n enableCircularCheck: true,\n enableImplicitConversion: true,\n ignoreDecorators: true,\n })\n }\n\n public static serialize<T>(classInstance: T): string {\n return JSON.stringify(JsonTransformer.toJSON(classInstance))\n }\n\n public static deserialize<T>(\n jsonString: string,\n // biome-ignore lint/suspicious/noExplicitAny: <explanation>\n cls: { new (...args: any[]): T },\n { validate = true }: Validate = {}\n ): T {\n return JsonTransformer.fromJSON(JSON.parse(jsonString), cls, { validate })\n }\n}\n"],"mappings":";;;;;;;AAWA,IAAa,kBAAb,MAAa,gBAAgB;CAC3B,OAAc,OAAU,eAAkB;AACxC,SAAO,gBAAgB,eAAe,EACpC,qBAAqB,MACtB,CAAC;;CAGJ,OAAc,SAEZ,MAEA,KACA,EAAE,WAAW,SAAmB,EAAE,EAC/B;EACH,MAAM,WAAW,gBAAgB,KAAK,MAAM,EAAE,qBAAqB,MAAM,CAAC;AAG1E,MAAI,CAAC,SAAU,QAAO;AAEtB,MAAI,CAAC,SACH,OAAM,IAAI,qBAAqB,gCAAgC,EAAE,WAAW,OAAO,eAAe,IAAI,CAAC,MAAM,CAAC;AAEhH,mBAAiB,aAAa,SAAS;AAEvC,SAAO;;CAGT,OAAc,MAAS,eAAqB;AAC1C,SAAO,mBAAmB,eAAe;GACvC,qBAAqB;GACrB,qBAAqB;GACrB,0BAA0B;GAC1B,kBAAkB;GACnB,CAAC;;CAGJ,OAAc,UAAa,eAA0B;AACnD,SAAO,KAAK,UAAU,gBAAgB,OAAO,cAAc,CAAC;;CAG9D,OAAc,YACZ,YAEA,KACA,EAAE,WAAW,SAAmB,EAAE,EAC/B;AACH,SAAO,gBAAgB,SAAS,KAAK,MAAM,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC"}
1
+ {"version":3,"file":"JsonTransformer.mjs","names":[],"sources":["../../src/utils/JsonTransformer.ts"],"sourcesContent":["import { instanceToInstance, instanceToPlain, plainToInstance } from 'class-transformer'\n\nimport { ClassValidationError } from '../error/ClassValidationError'\n\nimport { MessageValidator } from './MessageValidator'\n\ninterface Validate {\n validate?: boolean\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: no explanation\nexport class JsonTransformer {\n public static toJSON<T>(classInstance: T) {\n return instanceToPlain(classInstance, {\n exposeDefaultValues: true,\n })\n }\n\n public static fromJSON<T>(\n // biome-ignore lint/suspicious/noExplicitAny: no explanation\n json: any,\n // biome-ignore lint/suspicious/noExplicitAny: no explanation\n cls: { new (...args: any[]): T },\n { validate = true }: Validate = {}\n ): T {\n const instance = plainToInstance(cls, json, { exposeDefaultValues: true })\n\n // Skip validation\n if (!validate) return instance\n\n if (!instance) {\n throw new ClassValidationError('Cannot validate instance of ', { classType: Object.getPrototypeOf(cls).name })\n }\n MessageValidator.validateSync(instance)\n\n return instance\n }\n\n public static clone<T>(classInstance: T): T {\n return instanceToInstance(classInstance, {\n exposeDefaultValues: true,\n enableCircularCheck: true,\n enableImplicitConversion: true,\n ignoreDecorators: true,\n })\n }\n\n public static serialize<T>(classInstance: T): string {\n return JSON.stringify(JsonTransformer.toJSON(classInstance))\n }\n\n public static deserialize<T>(\n jsonString: string,\n // biome-ignore lint/suspicious/noExplicitAny: no explanation\n cls: { new (...args: any[]): T },\n { validate = true }: Validate = {}\n ): T {\n return JsonTransformer.fromJSON(JSON.parse(jsonString), cls, { validate })\n }\n}\n"],"mappings":";;;;;;;AAWA,IAAa,kBAAb,MAAa,gBAAgB;CAC3B,OAAc,OAAU,eAAkB;AACxC,SAAO,gBAAgB,eAAe,EACpC,qBAAqB,MACtB,CAAC;;CAGJ,OAAc,SAEZ,MAEA,KACA,EAAE,WAAW,SAAmB,EAAE,EAC/B;EACH,MAAM,WAAW,gBAAgB,KAAK,MAAM,EAAE,qBAAqB,MAAM,CAAC;AAG1E,MAAI,CAAC,SAAU,QAAO;AAEtB,MAAI,CAAC,SACH,OAAM,IAAI,qBAAqB,gCAAgC,EAAE,WAAW,OAAO,eAAe,IAAI,CAAC,MAAM,CAAC;AAEhH,mBAAiB,aAAa,SAAS;AAEvC,SAAO;;CAGT,OAAc,MAAS,eAAqB;AAC1C,SAAO,mBAAmB,eAAe;GACvC,qBAAqB;GACrB,qBAAqB;GACrB,0BAA0B;GAC1B,kBAAkB;GACnB,CAAC;;CAGJ,OAAc,UAAa,eAA0B;AACnD,SAAO,KAAK,UAAU,gBAAgB,OAAO,cAAc,CAAC;;CAG9D,OAAc,YACZ,YAEA,KACA,EAAE,WAAW,SAAmB,EAAE,EAC/B;AACH,SAAO,gBAAgB,SAAS,KAAK,MAAM,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageValidator.mjs","names":[],"sources":["../../src/utils/MessageValidator.ts"],"sourcesContent":["import { validateSync } from 'class-validator'\n\nimport { ClassValidationError } from '../error'\nimport { isValidationErrorArray } from '../error/ValidationErrorUtils'\n\n// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>\nexport class MessageValidator {\n /**\n *\n * @param classInstance the class instance to validate\n * @returns void\n * @throws array of validation errors {@link ValidationError}\n */\n public static validateSync<T extends object>(classInstance: T & {}) {\n // NOTE: validateSync returns an Array of errors.\n // We have to transform that into an error of choice and throw that.\n const errors = validateSync(classInstance)\n if (isValidationErrorArray(errors)) {\n throw new ClassValidationError('Failed to validate class.', {\n classType: classInstance.constructor.name,\n validationErrors: errors,\n })\n }\n if (errors.length !== 0) {\n throw new ClassValidationError('An unknown validation error occurred.', {\n classType: Object.prototype.constructor(classInstance).name,\n })\n }\n }\n}\n"],"mappings":";;;;;;;;AAMA,IAAa,mBAAb,MAA8B;;;;;;;CAO5B,OAAc,aAA+B,eAAuB;EAGlE,MAAM,SAAS,aAAa,cAAc;AAC1C,MAAI,uBAAuB,OAAO,CAChC,OAAM,IAAI,qBAAqB,6BAA6B;GAC1D,WAAW,cAAc,YAAY;GACrC,kBAAkB;GACnB,CAAC;AAEJ,MAAI,OAAO,WAAW,EACpB,OAAM,IAAI,qBAAqB,yCAAyC,EACtE,WAAW,OAAO,UAAU,YAAY,cAAc,CAAC,MACxD,CAAC"}
1
+ {"version":3,"file":"MessageValidator.mjs","names":[],"sources":["../../src/utils/MessageValidator.ts"],"sourcesContent":["import { validateSync } from 'class-validator'\n\nimport { ClassValidationError } from '../error'\nimport { isValidationErrorArray } from '../error/ValidationErrorUtils'\n\n// biome-ignore lint/complexity/noStaticOnlyClass: no explanation\nexport class MessageValidator {\n /**\n *\n * @param classInstance the class instance to validate\n * @returns void\n * @throws array of validation errors {@link ValidationError}\n */\n public static validateSync<T extends object>(classInstance: T & {}) {\n // NOTE: validateSync returns an Array of errors.\n // We have to transform that into an error of choice and throw that.\n const errors = validateSync(classInstance)\n if (isValidationErrorArray(errors)) {\n throw new ClassValidationError('Failed to validate class.', {\n classType: classInstance.constructor.name,\n validationErrors: errors,\n })\n }\n if (errors.length !== 0) {\n throw new ClassValidationError('An unknown validation error occurred.', {\n classType: Object.prototype.constructor(classInstance).name,\n })\n }\n }\n}\n"],"mappings":";;;;;;;;AAMA,IAAa,mBAAb,MAA8B;;;;;;;CAO5B,OAAc,aAA+B,eAAuB;EAGlE,MAAM,SAAS,aAAa,cAAc;AAC1C,MAAI,uBAAuB,OAAO,CAChC,OAAM,IAAI,qBAAqB,6BAA6B;GAC1D,WAAW,cAAc,YAAY;GACrC,kBAAkB;GACnB,CAAC;AAEJ,MAAI,OAAO,WAAW,EACpB,OAAM,IAAI,qBAAqB,yCAAyC,EACtE,WAAW,OAAO,UAAU,YAAY,cAAc,CAAC,MACxD,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { AnyUint8Array, Uint8ArrayBuffer } from "../types.mjs";
2
+
1
3
  //#region src/utils/MultiBaseEncoder.d.ts
2
4
  type BaseName = 'base58btc';
3
5
  declare class MultiBaseEncoder {
@@ -8,7 +10,7 @@ declare class MultiBaseEncoder {
8
10
  * @param buffer the buffer that has to be encoded
9
11
  * @param baseName the encoding algorithm
10
12
  */
11
- static encode(buffer: Uint8Array, baseName: BaseName): string;
13
+ static encode(buffer: AnyUint8Array, baseName: BaseName): string;
12
14
  /**
13
15
  *
14
16
  * Decodes a multibase into a Uint8Array
@@ -18,7 +20,7 @@ declare class MultiBaseEncoder {
18
20
  * @returns decoded data and the multi base name
19
21
  */
20
22
  static decode(data: string): {
21
- data: Uint8Array;
23
+ data: Uint8ArrayBuffer;
22
24
  baseName: string;
23
25
  };
24
26
  static isValid(data: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"MultiBaseEncoder.d.mts","names":[],"sources":["../../src/utils/MultiBaseEncoder.ts"],"sourcesContent":[],"mappings":";KAEY,QAAA;cAmBC,gBAAA;;AAnBb;AAmBA;;;;;EA0BwD,OAAA,MAAA,CAAA,MAAA,EAlBzB,UAkByB,EAAA,QAAA,EAlBH,QAkBG,CAAA,EAAA,MAAA;;;;;;;;;;UAAV"}
1
+ {"version":3,"file":"MultiBaseEncoder.d.mts","names":[],"sources":["../../src/utils/MultiBaseEncoder.ts"],"sourcesContent":[],"mappings":";;;KAGY,QAAA;cAmBC,gBAAA;;;AAnBb;AAmBA;;;;SA0B8C,MAAA,CAAA,MAAA,EAlBf,aAkBe,EAAA,QAAA,EAlBU,QAkBV,CAAA,EAAA,MAAA;EAAgB;;;;;;;;;UAAhB"}
@@ -1,3 +1,5 @@
1
+ import { AnyUint8Array, Uint8ArrayBuffer } from "../types.js";
2
+
1
3
  //#region src/utils/MultiBaseEncoder.d.ts
2
4
  type BaseName = 'base58btc';
3
5
  declare class MultiBaseEncoder {
@@ -8,7 +10,7 @@ declare class MultiBaseEncoder {
8
10
  * @param buffer the buffer that has to be encoded
9
11
  * @param baseName the encoding algorithm
10
12
  */
11
- static encode(buffer: Uint8Array, baseName: BaseName): string;
13
+ static encode(buffer: AnyUint8Array, baseName: BaseName): string;
12
14
  /**
13
15
  *
14
16
  * Decodes a multibase into a Uint8Array
@@ -18,7 +20,7 @@ declare class MultiBaseEncoder {
18
20
  * @returns decoded data and the multi base name
19
21
  */
20
22
  static decode(data: string): {
21
- data: Uint8Array;
23
+ data: Uint8ArrayBuffer;
22
24
  baseName: string;
23
25
  };
24
26
  static isValid(data: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"MultiBaseEncoder.d.ts","names":[],"sources":["../../src/utils/MultiBaseEncoder.ts"],"sourcesContent":[],"mappings":";KAEY,QAAA;AAAA,cAmBC,gBAAA,CAnBO;EAmBP;;;;;;;wBAQkB,sBAAsB;;;;;;;;;;UAkBP"}
1
+ {"version":3,"file":"MultiBaseEncoder.d.ts","names":[],"sources":["../../src/utils/MultiBaseEncoder.ts"],"sourcesContent":[],"mappings":";;;KAGY,QAAA;cAmBC,gBAAA;EAnBD;AAmBZ;;;;;;wBAQ+B,yBAAyB;;;;;;;;;;UAkBV"}
@@ -1 +1 @@
1
- {"version":3,"file":"MultiBaseEncoder.mjs","names":["multibaseEncodingMap: EncodingMap","multibaseDecodingMap: DecodingMap"],"sources":["../../src/utils/MultiBaseEncoder.ts"],"sourcesContent":["import { decodeFromBase58, encodeToBase58 } from './base58'\n\nexport type BaseName = 'base58btc'\n\ntype EncodingMap = {\n [key in BaseName]: (data: Uint8Array) => string\n}\n\ntype DecodingMap = {\n [key: string]: (data: string) => { data: Uint8Array; baseName: BaseName }\n}\n\nconst multibaseEncodingMap: EncodingMap = {\n base58btc: (data) => `z${encodeToBase58(data)}`,\n}\n\nconst multibaseDecodingMap: DecodingMap = {\n z: (data) => ({ data: decodeFromBase58(data.substring(1)), baseName: 'base58btc' }),\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>\nexport class MultiBaseEncoder {\n /**\n *\n * Encodes a buffer into a multibase\n *\n * @param buffer the buffer that has to be encoded\n * @param baseName the encoding algorithm\n */\n public static encode(buffer: Uint8Array, baseName: BaseName) {\n const encode = multibaseEncodingMap[baseName]\n\n if (!encode) {\n throw new Error(`Unsupported encoding '${baseName}'`)\n }\n\n return encode(buffer)\n }\n\n /**\n *\n * Decodes a multibase into a Uint8Array\n *\n * @param data the multibase that has to be decoded\n *\n * @returns decoded data and the multi base name\n */\n public static decode(data: string): { data: Uint8Array; baseName: string } {\n const prefix = data[0]\n const decode = multibaseDecodingMap[prefix]\n\n if (!decode) {\n throw new Error(`No decoder found for multibase prefix '${prefix}'`)\n }\n\n return decode(data)\n }\n\n public static isValid(data: string): boolean {\n try {\n MultiBaseEncoder.decode(data)\n return true\n } catch (_error) {\n return false\n }\n }\n}\n"],"mappings":";;;;;AAYA,MAAMA,uBAAoC,EACxC,YAAY,SAAS,IAAI,eAAe,KAAK,IAC9C;AAED,MAAMC,uBAAoC,EACxC,IAAI,UAAU;CAAE,MAAM,iBAAiB,KAAK,UAAU,EAAE,CAAC;CAAE,UAAU;CAAa,GACnF;AAGD,IAAa,mBAAb,MAAa,iBAAiB;;;;;;;;CAQ5B,OAAc,OAAO,QAAoB,UAAoB;EAC3D,MAAM,SAAS,qBAAqB;AAEpC,MAAI,CAAC,OACH,OAAM,IAAI,MAAM,yBAAyB,SAAS,GAAG;AAGvD,SAAO,OAAO,OAAO;;;;;;;;;;CAWvB,OAAc,OAAO,MAAsD;EACzE,MAAM,SAAS,KAAK;EACpB,MAAM,SAAS,qBAAqB;AAEpC,MAAI,CAAC,OACH,OAAM,IAAI,MAAM,0CAA0C,OAAO,GAAG;AAGtE,SAAO,OAAO,KAAK;;CAGrB,OAAc,QAAQ,MAAuB;AAC3C,MAAI;AACF,oBAAiB,OAAO,KAAK;AAC7B,UAAO;WACA,QAAQ;AACf,UAAO"}
1
+ {"version":3,"file":"MultiBaseEncoder.mjs","names":["multibaseEncodingMap: EncodingMap","multibaseDecodingMap: DecodingMap"],"sources":["../../src/utils/MultiBaseEncoder.ts"],"sourcesContent":["import type { AnyUint8Array, Uint8ArrayBuffer } from '../types'\nimport { decodeFromBase58, encodeToBase58 } from './base58'\n\nexport type BaseName = 'base58btc'\n\ntype EncodingMap = {\n [key in BaseName]: (data: AnyUint8Array) => string\n}\n\ntype DecodingMap = {\n [key: string]: (data: string) => { data: Uint8ArrayBuffer; baseName: BaseName }\n}\n\nconst multibaseEncodingMap: EncodingMap = {\n base58btc: (data) => `z${encodeToBase58(data)}`,\n}\n\nconst multibaseDecodingMap: DecodingMap = {\n z: (data) => ({ data: decodeFromBase58(data.substring(1)), baseName: 'base58btc' }),\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: no explanation\nexport class MultiBaseEncoder {\n /**\n *\n * Encodes a buffer into a multibase\n *\n * @param buffer the buffer that has to be encoded\n * @param baseName the encoding algorithm\n */\n public static encode(buffer: AnyUint8Array, baseName: BaseName) {\n const encode = multibaseEncodingMap[baseName]\n\n if (!encode) {\n throw new Error(`Unsupported encoding '${baseName}'`)\n }\n\n return encode(buffer)\n }\n\n /**\n *\n * Decodes a multibase into a Uint8Array\n *\n * @param data the multibase that has to be decoded\n *\n * @returns decoded data and the multi base name\n */\n public static decode(data: string): { data: Uint8ArrayBuffer; baseName: string } {\n const prefix = data[0]\n const decode = multibaseDecodingMap[prefix]\n\n if (!decode) {\n throw new Error(`No decoder found for multibase prefix '${prefix}'`)\n }\n\n return decode(data)\n }\n\n public static isValid(data: string): boolean {\n try {\n MultiBaseEncoder.decode(data)\n return true\n } catch (_error) {\n return false\n }\n }\n}\n"],"mappings":";;;;;AAaA,MAAMA,uBAAoC,EACxC,YAAY,SAAS,IAAI,eAAe,KAAK,IAC9C;AAED,MAAMC,uBAAoC,EACxC,IAAI,UAAU;CAAE,MAAM,iBAAiB,KAAK,UAAU,EAAE,CAAC;CAAE,UAAU;CAAa,GACnF;AAGD,IAAa,mBAAb,MAAa,iBAAiB;;;;;;;;CAQ5B,OAAc,OAAO,QAAuB,UAAoB;EAC9D,MAAM,SAAS,qBAAqB;AAEpC,MAAI,CAAC,OACH,OAAM,IAAI,MAAM,yBAAyB,SAAS,GAAG;AAGvD,SAAO,OAAO,OAAO;;;;;;;;;;CAWvB,OAAc,OAAO,MAA4D;EAC/E,MAAM,SAAS,KAAK;EACpB,MAAM,SAAS,qBAAqB;AAEpC,MAAI,CAAC,OACH,OAAM,IAAI,MAAM,0CAA0C,OAAO,GAAG;AAGtE,SAAO,OAAO,KAAK;;CAGrB,OAAc,QAAQ,MAAuB;AAC3C,MAAI;AACF,oBAAiB,OAAO,KAAK;AAC7B,UAAO;WACA,QAAQ;AACf,UAAO"}
@@ -1,4 +1,4 @@
1
- import { Buffer } from "./buffer.mjs";
1
+ import { AnyUint8Array, Uint8ArrayBuffer } from "../types.mjs";
2
2
  import { HashName } from "../crypto/hashes/Hasher.mjs";
3
3
 
4
4
  //#region src/utils/MultiHashEncoder.d.ts
@@ -12,7 +12,7 @@ declare class MultiHashEncoder {
12
12
  *
13
13
  * @returns a multihash
14
14
  */
15
- static encode(data: Uint8Array, hashName: HashName): Buffer;
15
+ static encode(data: AnyUint8Array, hashName: HashName): Uint8ArrayBuffer;
16
16
  /**
17
17
  *
18
18
  * Decodes the multihash
@@ -21,8 +21,8 @@ declare class MultiHashEncoder {
21
21
  *
22
22
  * @returns object with the data and the hashing algorithm
23
23
  */
24
- static decode(data: Uint8Array): {
25
- data: Buffer;
24
+ static decode(data: AnyUint8Array): {
25
+ data: Uint8ArrayBuffer;
26
26
  hashName: string;
27
27
  };
28
28
  /**
@@ -33,7 +33,7 @@ declare class MultiHashEncoder {
33
33
  *
34
34
  * @returns a boolean whether the multihash is valid
35
35
  */
36
- static isValid(data: Uint8Array): boolean;
36
+ static isValid(data: AnyUint8Array): boolean;
37
37
  }
38
38
  //#endregion
39
39
  export { MultiHashEncoder };
@@ -1 +1 @@
1
- {"version":3,"file":"MultiHashEncoder.d.mts","names":[],"sources":["../../src/utils/MultiHashEncoder.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,gBAAA;;;;AAAb;;;;;;SA4BkD,MAAA,CAAA,IAAA,EAlBrB,UAkBqB,EAAA,QAAA,EAlBC,QAkBD,CAAA,EAlBY,MAkBZ;;;;;;;;;sBAArB;UAAqB;;;;;;;;;;;uBA2BpB"}
1
+ {"version":3,"file":"MultiHashEncoder.d.mts","names":[],"sources":["../../src/utils/MultiHashEncoder.ts"],"sourcesContent":[],"mappings":";;;;cA6Ba,gBAAA;;;;AAAb;;;;;;SA4BqD,MAAA,CAAA,IAAA,EAlBxB,aAkBwB,EAAA,QAAA,EAlBC,QAkBD,CAAA,EAlBY,gBAkBZ;;;;;;;;;sBAAxB;UAAwB;;;;;;;;;;;uBA2BvB"}
@@ -1,4 +1,4 @@
1
- import { Buffer } from "./buffer.js";
1
+ import { AnyUint8Array, Uint8ArrayBuffer } from "../types.js";
2
2
  import { HashName } from "../crypto/hashes/Hasher.js";
3
3
 
4
4
  //#region src/utils/MultiHashEncoder.d.ts
@@ -12,7 +12,7 @@ declare class MultiHashEncoder {
12
12
  *
13
13
  * @returns a multihash
14
14
  */
15
- static encode(data: Uint8Array, hashName: HashName): Buffer;
15
+ static encode(data: AnyUint8Array, hashName: HashName): Uint8ArrayBuffer;
16
16
  /**
17
17
  *
18
18
  * Decodes the multihash
@@ -21,8 +21,8 @@ declare class MultiHashEncoder {
21
21
  *
22
22
  * @returns object with the data and the hashing algorithm
23
23
  */
24
- static decode(data: Uint8Array): {
25
- data: Buffer;
24
+ static decode(data: AnyUint8Array): {
25
+ data: Uint8ArrayBuffer;
26
26
  hashName: string;
27
27
  };
28
28
  /**
@@ -33,7 +33,7 @@ declare class MultiHashEncoder {
33
33
  *
34
34
  * @returns a boolean whether the multihash is valid
35
35
  */
36
- static isValid(data: Uint8Array): boolean;
36
+ static isValid(data: AnyUint8Array): boolean;
37
37
  }
38
38
  //#endregion
39
39
  export { MultiHashEncoder };
@@ -1 +1 @@
1
- {"version":3,"file":"MultiHashEncoder.d.ts","names":[],"sources":["../../src/utils/MultiHashEncoder.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,gBAAA;;AAAb;;;;;;;;EAuDwC,OAAA,MAAA,CAAA,IAAA,EA7CX,UA6CW,EAAA,QAAA,EA7CW,QA6CX,CAAA,EA7CsB,MA6CtB;;;;;;;;;sBA3BX;UAAqB;;;;;;;;;;;uBA2BpB"}
1
+ {"version":3,"file":"MultiHashEncoder.d.ts","names":[],"sources":["../../src/utils/MultiHashEncoder.ts"],"sourcesContent":[],"mappings":";;;;cA6Ba,gBAAA;;AAAb;;;;;;;;EAuD2C,OAAA,MAAA,CAAA,IAAA,EA7Cd,aA6Cc,EAAA,QAAA,EA7CW,QA6CX,CAAA,EA7CsB,gBA6CtB;;;;;;;;;sBA3Bd;UAAwB;;;;;;;;;;;uBA2BvB"}
@@ -1,18 +1,16 @@
1
1
 
2
2
 
3
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
3
+ const require_TypedArrayEncoder = require('./TypedArrayEncoder.js');
4
4
  const require_Hasher = require('../crypto/hashes/Hasher.js');
5
5
  require('../crypto/hashes/index.js');
6
- require('./buffer.js');
7
6
  const require_VarintEncoder = require('./VarintEncoder.js');
8
- let buffer_index_js = require("buffer/index.js");
9
- buffer_index_js = require_rolldown_runtime.__toESM(buffer_index_js);
10
7
 
11
8
  //#region src/utils/MultiHashEncoder.ts
12
9
  const multiHashNameMap = {
13
10
  "sha-1": 17,
14
11
  "sha-256": 18,
15
- "sha-512": 19
12
+ "sha-512": 19,
13
+ "sha-384": 32
16
14
  };
17
15
  const multiHashCodeMap = Object.entries(multiHashNameMap).reduce((map, [hashName, hashCode]) => ({
18
16
  ...map,
@@ -33,7 +31,7 @@ var MultiHashEncoder = class MultiHashEncoder {
33
31
  const hashCode = multiHashNameMap[hashName];
34
32
  const hashPrefix = require_VarintEncoder.VarintEncoder.encode(hashCode);
35
33
  const hashLengthPrefix = require_VarintEncoder.VarintEncoder.encode(hash.length);
36
- return buffer_index_js.Buffer.concat([
34
+ return require_TypedArrayEncoder.TypedArrayEncoder.concat([
37
35
  hashPrefix,
38
36
  hashLengthPrefix,
39
37
  hash
@@ -54,7 +52,7 @@ var MultiHashEncoder = class MultiHashEncoder {
54
52
  const withoutLengthPrefix = withoutHashPrefix.slice(lengthPrefixByteLength);
55
53
  if (!multiHashCodeMap[hashPrefix]) throw new Error(`Unsupported hash code 0x${hashPrefix.toString(16)}`);
56
54
  return {
57
- data: buffer_index_js.Buffer.from(withoutLengthPrefix),
55
+ data: new Uint8Array(withoutLengthPrefix),
58
56
  hashName: multiHashCodeMap[hashPrefix]
59
57
  };
60
58
  }