@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.
- package/build/agent/Agent.d.mts +1 -1
- package/build/agent/Agent.d.mts.map +1 -1
- package/build/agent/Agent.d.ts +1 -1
- package/build/agent/Agent.d.ts.map +1 -1
- package/build/agent/Agent.js +2 -2
- package/build/agent/Agent.mjs +2 -2
- package/build/agent/Agent.mjs.map +1 -1
- package/build/agent/AgentConfig.d.mts +1 -1
- package/build/agent/AgentConfig.d.mts.map +1 -1
- package/build/agent/AgentConfig.d.ts +1 -1
- package/build/agent/AgentConfig.d.ts.map +1 -1
- package/build/agent/AgentConfig.mjs.map +1 -1
- package/build/agent/AgentModules.d.mts +4 -4
- package/build/agent/AgentModules.d.mts.map +1 -1
- package/build/agent/AgentModules.d.ts +4 -4
- package/build/agent/AgentModules.d.ts.map +1 -1
- package/build/agent/AgentModules.mjs.map +1 -1
- package/build/agent/BaseAgent.d.mts +4 -4
- package/build/agent/BaseAgent.d.ts +4 -4
- package/build/agent/BaseAgent.mjs.map +1 -1
- package/build/agent/EventEmitter.d.mts +1 -1
- package/build/agent/EventEmitter.d.mts.map +1 -1
- package/build/agent/EventEmitter.d.ts +1 -1
- package/build/agent/EventEmitter.d.ts.map +1 -1
- package/build/agent/EventEmitter.mjs.map +1 -1
- package/build/agent/context/AgentContext.d.mts.map +1 -1
- package/build/agent/context/AgentContext.d.ts.map +1 -1
- package/build/agent/context/AgentContext.mjs.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.d.mts.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.d.ts.map +1 -1
- package/build/agent/context/DefaultAgentContextProvider.js +1 -1
- package/build/agent/context/DefaultAgentContextProvider.mjs +1 -1
- package/build/agent/context/DefaultAgentContextProvider.mjs.map +1 -1
- package/build/crypto/JwsService.d.mts +5 -5
- package/build/crypto/JwsService.d.mts.map +1 -1
- package/build/crypto/JwsService.d.ts +5 -5
- package/build/crypto/JwsService.d.ts.map +1 -1
- package/build/crypto/JwsService.js +3 -3
- package/build/crypto/JwsService.mjs +3 -3
- package/build/crypto/JwsService.mjs.map +1 -1
- package/build/crypto/KmsKeyPair.js +1 -5
- package/build/crypto/KmsKeyPair.mjs +1 -2
- package/build/crypto/KmsKeyPair.mjs.map +1 -1
- package/build/crypto/hashes/Hasher.d.mts +4 -2
- package/build/crypto/hashes/Hasher.d.mts.map +1 -1
- package/build/crypto/hashes/Hasher.d.ts +4 -2
- package/build/crypto/hashes/Hasher.d.ts.map +1 -1
- package/build/crypto/hashes/Hasher.js +8 -3
- package/build/crypto/hashes/Hasher.mjs +8 -3
- package/build/crypto/hashes/Hasher.mjs.map +1 -1
- package/build/crypto/hashes/IHash.d.mts +3 -1
- package/build/crypto/hashes/IHash.d.mts.map +1 -1
- package/build/crypto/hashes/IHash.d.ts +3 -1
- package/build/crypto/hashes/IHash.d.ts.map +1 -1
- package/build/crypto/hashes/Sha1.d.mts +2 -1
- package/build/crypto/hashes/Sha1.d.mts.map +1 -1
- package/build/crypto/hashes/Sha1.d.ts +2 -1
- package/build/crypto/hashes/Sha1.d.ts.map +1 -1
- package/build/crypto/hashes/Sha1.js +3 -3
- package/build/crypto/hashes/Sha1.mjs +1 -1
- package/build/crypto/hashes/Sha1.mjs.map +1 -1
- package/build/crypto/hashes/Sha256.d.mts +2 -1
- package/build/crypto/hashes/Sha256.d.mts.map +1 -1
- package/build/crypto/hashes/Sha256.d.ts +2 -1
- package/build/crypto/hashes/Sha256.d.ts.map +1 -1
- package/build/crypto/hashes/Sha256.js +3 -3
- package/build/crypto/hashes/Sha256.mjs +1 -1
- package/build/crypto/hashes/Sha256.mjs.map +1 -1
- package/build/crypto/hashes/Sha384.d.mts +10 -0
- package/build/crypto/hashes/Sha384.d.mts.map +1 -0
- package/build/crypto/hashes/Sha384.d.ts +10 -0
- package/build/crypto/hashes/Sha384.d.ts.map +1 -0
- package/build/crypto/hashes/Sha384.js +15 -0
- package/build/crypto/hashes/Sha384.mjs +14 -0
- package/build/crypto/hashes/Sha384.mjs.map +1 -0
- package/build/crypto/hashes/Sha512.d.mts +2 -1
- package/build/crypto/hashes/Sha512.d.mts.map +1 -1
- package/build/crypto/hashes/Sha512.d.ts +2 -1
- package/build/crypto/hashes/Sha512.d.ts.map +1 -1
- package/build/crypto/hashes/Sha512.js +3 -3
- package/build/crypto/hashes/Sha512.mjs +1 -1
- package/build/crypto/hashes/Sha512.mjs.map +1 -1
- package/build/crypto/hashes/index.js +1 -0
- package/build/crypto/hashes/index.mjs +1 -0
- package/build/crypto/index.js +1 -0
- package/build/crypto/index.mjs +1 -0
- package/build/crypto/jose/jwt/Jwt.d.mts.map +1 -1
- package/build/crypto/jose/jwt/Jwt.d.ts.map +1 -1
- package/build/crypto/jose/jwt/Jwt.js +1 -1
- package/build/crypto/jose/jwt/Jwt.mjs +1 -1
- package/build/crypto/jose/jwt/Jwt.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoSubtle.js +1 -1
- package/build/crypto/webcrypto/CredoSubtle.mjs +1 -1
- package/build/crypto/webcrypto/CredoSubtle.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.mts +7 -7
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.ts +7 -7
- package/build/crypto/webcrypto/CredoWalletWebCrypto.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWalletWebCrypto.js +6 -9
- package/build/crypto/webcrypto/CredoWalletWebCrypto.mjs +5 -6
- package/build/crypto/webcrypto/CredoWalletWebCrypto.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.js +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.mjs +1 -1
- package/build/crypto/webcrypto/CredoWebCrypto.mjs.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.d.mts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.d.ts.map +1 -1
- package/build/crypto/webcrypto/CredoWebCryptoKey.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.js +4 -2
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.mjs +4 -2
- package/build/crypto/webcrypto/providers/CredoEcdsaProvider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.js +4 -2
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.mjs +4 -2
- package/build/crypto/webcrypto/providers/CredoEd25519Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoSha1Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/CredoSha256Provider.mjs.map +1 -1
- package/build/crypto/webcrypto/providers/index.js +1 -1
- package/build/crypto/webcrypto/providers/index.mjs +1 -1
- package/build/crypto/webcrypto/types.d.mts +2 -1
- package/build/crypto/webcrypto/types.d.mts.map +1 -1
- package/build/crypto/webcrypto/types.d.ts +2 -1
- package/build/crypto/webcrypto/types.d.ts.map +1 -1
- package/build/crypto/webcrypto/types.mjs.map +1 -1
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.js +4 -4
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.mjs +4 -4
- package/build/crypto/webcrypto/utils/keyAlgorithmConversion.mjs.map +1 -1
- package/build/error/index.js +2 -2
- package/build/error/index.mjs +2 -2
- package/build/index.d.mts +161 -157
- package/build/index.d.mts.map +1 -1
- package/build/index.d.ts +161 -157
- package/build/index.d.ts.map +1 -1
- package/build/index.js +67 -62
- package/build/index.mjs +66 -62
- package/build/index.mjs.map +1 -1
- package/build/logger/BaseLogger.mjs.map +1 -1
- package/build/logger/ConsoleLogger.mjs.map +1 -1
- package/build/logger/Logger.mjs.map +1 -1
- package/build/modules/cache/CacheModule.mjs.map +1 -1
- package/build/modules/cache/CachedStorageService.mjs.map +1 -1
- package/build/modules/cache/InMemoryLruCache.d.mts.map +1 -1
- package/build/modules/cache/InMemoryLruCache.d.ts.map +1 -1
- package/build/modules/cache/InMemoryLruCache.js +1 -1
- package/build/modules/cache/InMemoryLruCache.mjs +1 -1
- package/build/modules/cache/InMemoryLruCache.mjs.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.d.mts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.d.ts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextLruCacheRecord.mjs.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.d.mts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.d.ts.map +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.js +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.mjs +1 -1
- package/build/modules/cache/singleContextLruCache/SingleContextStorageLruCache.mjs.map +1 -1
- package/build/modules/dcql/DcqlModule.d.mts.map +1 -1
- package/build/modules/dcql/DcqlModule.d.ts.map +1 -1
- package/build/modules/dcql/DcqlModule.mjs.map +1 -1
- package/build/modules/dcql/DcqlService.d.mts.map +1 -1
- package/build/modules/dcql/DcqlService.d.ts.map +1 -1
- package/build/modules/dcql/DcqlService.js +2 -2
- package/build/modules/dcql/DcqlService.mjs +2 -2
- package/build/modules/dcql/DcqlService.mjs.map +1 -1
- package/build/modules/dcql/models/DcqlCredentialsForRequest.d.mts +3 -3
- package/build/modules/dcql/models/DcqlCredentialsForRequest.d.ts +3 -3
- package/build/modules/dcql/models/index.d.mts +2 -2
- package/build/modules/dcql/models/index.d.mts.map +1 -1
- package/build/modules/dcql/models/index.d.ts +2 -2
- package/build/modules/dcql/models/index.d.ts.map +1 -1
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.mts +2 -2
- package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.ts +2 -2
- package/build/modules/dids/DidsApi.d.mts +2 -2
- package/build/modules/dids/DidsApi.d.mts.map +1 -1
- package/build/modules/dids/DidsApi.d.ts +2 -2
- package/build/modules/dids/DidsApi.d.ts.map +1 -1
- package/build/modules/dids/DidsApi.js +1 -1
- package/build/modules/dids/DidsApi.mjs +1 -1
- package/build/modules/dids/DidsApi.mjs.map +1 -1
- package/build/modules/dids/DidsModule.d.mts.map +1 -1
- package/build/modules/dids/DidsModule.d.ts.map +1 -1
- package/build/modules/dids/DidsModule.mjs.map +1 -1
- package/build/modules/dids/DidsModuleConfig.js +2 -2
- package/build/modules/dids/DidsModuleConfig.mjs +2 -2
- package/build/modules/dids/domain/DidDocument.d.mts +1 -1
- package/build/modules/dids/domain/DidDocument.d.mts.map +1 -1
- package/build/modules/dids/domain/DidDocument.d.ts +1 -1
- package/build/modules/dids/domain/DidDocument.d.ts.map +1 -1
- package/build/modules/dids/domain/DidDocument.js +6 -6
- package/build/modules/dids/domain/DidDocument.mjs +6 -6
- package/build/modules/dids/domain/DidDocument.mjs.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.d.mts.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.d.ts.map +1 -1
- package/build/modules/dids/domain/DidDocumentBuilder.mjs.map +1 -1
- package/build/modules/dids/domain/index.js +11 -11
- package/build/modules/dids/domain/index.mjs +11 -11
- package/build/modules/dids/domain/key-type/ed25519.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidJsonWebKey.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.mts +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.mts.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.ts +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.d.ts.map +1 -1
- package/build/modules/dids/domain/key-type/keyDidMapping.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.js +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.mjs +1 -1
- package/build/modules/dids/domain/key-type/secp256k1.mjs.map +1 -1
- package/build/modules/dids/domain/key-type/x25519.js +1 -1
- package/build/modules/dids/domain/key-type/x25519.mjs +1 -1
- package/build/modules/dids/domain/key-type/x25519.mjs.map +1 -1
- package/build/modules/dids/domain/keyDidDocument.js +1 -1
- package/build/modules/dids/domain/keyDidDocument.mjs +1 -1
- package/build/modules/dids/domain/keyDidDocument.mjs.map +1 -1
- package/build/modules/dids/domain/parse.d.mts.map +1 -1
- package/build/modules/dids/domain/parse.d.ts.map +1 -1
- package/build/modules/dids/domain/parse.mjs.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.mts +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.mts.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.ts +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.d.ts.map +1 -1
- package/build/modules/dids/domain/service/DidCommV2Service.mjs.map +1 -1
- package/build/modules/dids/domain/service/DidDocumentService.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/EcdsaSecp256k1VerificationKey2019.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2018.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Ed25519VerificationKey2020.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/JsonWebKey2020.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/Multikey.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/VerificationMethodTransformer.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.mts +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.mts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.ts +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.d.ts.map +1 -1
- package/build/modules/dids/domain/verificationMethod/X25519KeyAgreementKey2019.mjs.map +1 -1
- package/build/modules/dids/domain/verificationMethod/index.js +3 -3
- package/build/modules/dids/domain/verificationMethod/index.mjs +3 -3
- package/build/modules/dids/findMatchingEd25519Key.d.mts +1 -1
- package/build/modules/dids/findMatchingEd25519Key.d.ts +1 -1
- package/build/modules/dids/findMatchingEd25519Key.js +1 -1
- package/build/modules/dids/findMatchingEd25519Key.mjs +1 -1
- package/build/modules/dids/findMatchingEd25519Key.mjs.map +1 -1
- package/build/modules/dids/helpers.mjs.map +1 -1
- package/build/modules/dids/index.js +15 -15
- package/build/modules/dids/index.mjs +15 -15
- package/build/modules/dids/methods/index.js +5 -5
- package/build/modules/dids/methods/index.mjs +5 -5
- package/build/modules/dids/methods/jwk/DidJwk.d.mts +1 -1
- package/build/modules/dids/methods/jwk/DidJwk.d.ts +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.js +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.mjs +1 -1
- package/build/modules/dids/methods/jwk/JwkDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.js +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.mjs +1 -1
- package/build/modules/dids/methods/jwk/didJwkDidDocument.mjs.map +1 -1
- package/build/modules/dids/methods/key/DidKey.d.mts +1 -1
- package/build/modules/dids/methods/key/DidKey.d.ts +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/key/KeyDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.js +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.mjs +1 -1
- package/build/modules/dids/methods/key/KeyDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.mts +2 -2
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.ts +2 -2
- package/build/modules/dids/methods/peer/PeerDidRegistrar.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidRegistrar.mjs.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/PeerDidResolver.mjs.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.mts +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.mts.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.d.ts.map +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.js +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.mjs +1 -1
- package/build/modules/dids/methods/peer/createPeerDidDocumentFromServices.mjs.map +1 -1
- package/build/modules/dids/methods/peer/index.js +1 -1
- package/build/modules/dids/methods/peer/index.mjs +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo0.mjs.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.js +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo1.mjs +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.js +2 -2
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.mjs +2 -2
- package/build/modules/dids/methods/peer/peerDidNumAlgo2.mjs.map +1 -1
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.js +7 -8
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.mjs +4 -4
- package/build/modules/dids/methods/peer/peerDidNumAlgo4.mjs.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.d.mts.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.d.ts.map +1 -1
- package/build/modules/dids/methods/web/WebDidResolver.mjs.map +1 -1
- package/build/modules/dids/repository/DidRecord.d.mts.map +1 -1
- package/build/modules/dids/repository/DidRecord.d.ts.map +1 -1
- package/build/modules/dids/repository/DidRecord.js +1 -1
- package/build/modules/dids/repository/DidRecord.mjs +1 -1
- package/build/modules/dids/repository/DidRecord.mjs.map +1 -1
- package/build/modules/dids/repository/DidRepository.d.mts +3 -3
- package/build/modules/dids/repository/DidRepository.d.mts.map +1 -1
- package/build/modules/dids/repository/DidRepository.d.ts +3 -3
- package/build/modules/dids/repository/DidRepository.d.ts.map +1 -1
- package/build/modules/dids/repository/DidRepository.js +1 -1
- package/build/modules/dids/repository/DidRepository.mjs +1 -1
- package/build/modules/dids/repository/DidRepository.mjs.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.d.mts.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.d.ts.map +1 -1
- package/build/modules/dids/services/DidRegistrarService.mjs.map +1 -1
- package/build/modules/dids/services/DidResolverService.d.mts.map +1 -1
- package/build/modules/dids/services/DidResolverService.d.ts.map +1 -1
- package/build/modules/dids/services/DidResolverService.js +1 -1
- package/build/modules/dids/services/DidResolverService.mjs +1 -1
- package/build/modules/dids/services/DidResolverService.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeModule.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts +5 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts +5 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.js +9 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.mjs +9 -5
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.mts +3 -3
- package/build/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.d.ts +3 -3
- package/build/modules/dif-presentation-exchange/models/index.d.mts +4 -4
- package/build/modules/dif-presentation-exchange/models/index.d.ts +4 -4
- package/build/modules/dif-presentation-exchange/utils/credentialSelection.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/index.js +1 -1
- package/build/modules/dif-presentation-exchange/utils/index.mjs +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts +5 -5
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts +5 -5
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.ts.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.js +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.mjs +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationsToCreate.mjs.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/transform.mjs.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.mts +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.mts.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.ts +1 -1
- package/build/modules/generic-records/GenericRecordsApi.d.ts.map +1 -1
- package/build/modules/generic-records/GenericRecordsApi.mjs.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.d.mts.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.d.ts.map +1 -1
- package/build/modules/generic-records/services/GenericRecordService.mjs.map +1 -1
- package/build/modules/kms/KeyManagementApi.d.mts +7 -7
- package/build/modules/kms/KeyManagementApi.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementApi.d.ts +7 -7
- package/build/modules/kms/KeyManagementApi.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementApi.js +7 -7
- package/build/modules/kms/KeyManagementApi.mjs +7 -7
- package/build/modules/kms/KeyManagementApi.mjs.map +1 -1
- package/build/modules/kms/KeyManagementModule.d.mts +2 -2
- package/build/modules/kms/KeyManagementModule.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementModule.d.ts +2 -2
- package/build/modules/kms/KeyManagementModule.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementModule.mjs.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.mts +0 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.ts +0 -1
- package/build/modules/kms/KeyManagementModuleConfig.d.ts.map +1 -1
- package/build/modules/kms/KeyManagementModuleConfig.js +0 -6
- package/build/modules/kms/KeyManagementModuleConfig.mjs +0 -6
- package/build/modules/kms/KeyManagementModuleConfig.mjs.map +1 -1
- package/build/modules/kms/KeyManagementService.d.mts +6 -6
- package/build/modules/kms/KeyManagementService.d.ts +6 -6
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.d.mts +1 -1
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.d.ts +1 -1
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.js +5 -2
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.mjs +5 -2
- package/build/modules/kms/error/KeyManagementKeyNotFoundError.mjs.map +1 -1
- package/build/modules/kms/index.d.mts +25 -25
- package/build/modules/kms/index.d.ts +25 -25
- package/build/modules/kms/index.js +10 -10
- package/build/modules/kms/index.mjs +10 -10
- package/build/modules/kms/index.mjs.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.d.mts +3 -4
- package/build/modules/kms/jwk/PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.d.ts +3 -4
- package/build/modules/kms/jwk/PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/PublicJwk.js +2 -5
- package/build/modules/kms/jwk/PublicJwk.mjs +2 -5
- package/build/modules/kms/jwk/PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.mts +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.ts +1 -1
- package/build/modules/kms/jwk/alg/encryption.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/encryption.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/index.js +1 -1
- package/build/modules/kms/jwk/alg/index.mjs +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.mts +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.ts +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/keyDerivation.mjs.map +1 -1
- package/build/modules/kms/jwk/alg/signing.d.mts +1 -1
- package/build/modules/kms/jwk/alg/signing.d.mts.map +1 -1
- package/build/modules/kms/jwk/alg/signing.d.ts +1 -1
- package/build/modules/kms/jwk/alg/signing.d.ts.map +1 -1
- package/build/modules/kms/jwk/alg/signing.mjs.map +1 -1
- package/build/modules/kms/jwk/assertSupported.d.mts +2 -2
- package/build/modules/kms/jwk/assertSupported.d.ts +2 -2
- package/build/modules/kms/jwk/humanDescription.d.mts.map +1 -1
- package/build/modules/kms/jwk/humanDescription.d.ts.map +1 -1
- package/build/modules/kms/jwk/humanDescription.mjs.map +1 -1
- package/build/modules/kms/jwk/index.js +8 -8
- package/build/modules/kms/jwk/index.mjs +8 -8
- package/build/modules/kms/jwk/jwkThumbprint.js +2 -2
- package/build/modules/kms/jwk/jwkThumbprint.mjs +2 -2
- package/build/modules/kms/jwk/jwkThumbprint.mjs.map +1 -1
- package/build/modules/kms/jwk/keyOps.d.mts.map +1 -1
- package/build/modules/kms/jwk/keyOps.d.ts.map +1 -1
- package/build/modules/kms/jwk/keyOps.js +1 -1
- package/build/modules/kms/jwk/keyOps.mjs +1 -1
- package/build/modules/kms/jwk/keyOps.mjs.map +1 -1
- package/build/modules/kms/jwk/knownJwk.d.mts +1 -1
- package/build/modules/kms/jwk/knownJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/knownJwk.d.ts +1 -1
- package/build/modules/kms/jwk/knownJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/knownJwk.js +1 -1
- package/build/modules/kms/jwk/knownJwk.mjs +1 -1
- package/build/modules/kms/jwk/knownJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/PublicJwk.d.mts +3 -2
- package/build/modules/kms/jwk/kty/PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/PublicJwk.d.ts +3 -2
- package/build/modules/kms/jwk/kty/PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts +7 -6
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts +7 -6
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecPublicKey.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.mts +3 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.ts +3 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/ec/ecSignature.js +2 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.mjs +2 -2
- package/build/modules/kms/jwk/kty/ec/ecSignature.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/index.js +1 -1
- package/build/modules/kms/jwk/kty/index.mjs +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts +6 -5
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.ts +6 -5
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts +6 -5
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts +6 -5
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/okp/okpPublicKey.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.mts +8 -7
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.mts.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.ts +8 -7
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.d.ts.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/RsaPublicJwk.mjs.map +1 -1
- package/build/modules/kms/jwk/kty/rsa/rsaPublicKey.mjs.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.mts +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.ts +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsCreateKeyOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.d.mts +169 -168
- package/build/modules/kms/options/KmsDecryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.d.ts +169 -168
- package/build/modules/kms/options/KmsDecryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsDecryptOptions.js +13 -12
- package/build/modules/kms/options/KmsDecryptOptions.mjs +13 -12
- package/build/modules/kms/options/KmsDecryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.d.mts +123 -122
- package/build/modules/kms/options/KmsEncryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.d.ts +123 -122
- package/build/modules/kms/options/KmsEncryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsEncryptOptions.js +13 -12
- package/build/modules/kms/options/KmsEncryptOptions.mjs +13 -12
- package/build/modules/kms/options/KmsEncryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.mts +49 -48
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.ts +49 -48
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.js +3 -2
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.mjs +3 -2
- package/build/modules/kms/options/KmsKeyAgreementDecryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.mts +25 -24
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.ts +25 -24
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.js +5 -4
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.mjs +5 -4
- package/build/modules/kms/options/KmsKeyAgreementEncryptOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsOperation.d.mts +3 -3
- package/build/modules/kms/options/KmsOperation.d.ts +3 -3
- package/build/modules/kms/options/KmsOperation.mjs.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.d.mts +5 -4
- package/build/modules/kms/options/KmsSignOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.d.ts +5 -4
- package/build/modules/kms/options/KmsSignOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsSignOptions.js +2 -1
- package/build/modules/kms/options/KmsSignOptions.mjs +2 -1
- package/build/modules/kms/options/KmsSignOptions.mjs.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.d.mts +7 -6
- package/build/modules/kms/options/KmsVerifyOptions.d.mts.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.d.ts +7 -6
- package/build/modules/kms/options/KmsVerifyOptions.d.ts.map +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.js +3 -2
- package/build/modules/kms/options/KmsVerifyOptions.mjs +3 -2
- package/build/modules/kms/options/KmsVerifyOptions.mjs.map +1 -1
- package/build/modules/mdoc/Mdoc.d.mts +1 -3
- package/build/modules/mdoc/Mdoc.d.mts.map +1 -1
- package/build/modules/mdoc/Mdoc.d.ts +1 -3
- package/build/modules/mdoc/Mdoc.d.ts.map +1 -1
- package/build/modules/mdoc/Mdoc.js +1 -7
- package/build/modules/mdoc/Mdoc.mjs +1 -7
- package/build/modules/mdoc/Mdoc.mjs.map +1 -1
- package/build/modules/mdoc/MdocApi.d.mts +1 -1
- package/build/modules/mdoc/MdocApi.d.mts.map +1 -1
- package/build/modules/mdoc/MdocApi.d.ts +1 -1
- package/build/modules/mdoc/MdocApi.d.ts.map +1 -1
- package/build/modules/mdoc/MdocApi.mjs.map +1 -1
- package/build/modules/mdoc/MdocContext.js +9 -11
- package/build/modules/mdoc/MdocContext.mjs +6 -7
- package/build/modules/mdoc/MdocContext.mjs.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.mts +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.mts.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.ts +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.d.ts.map +1 -1
- package/build/modules/mdoc/MdocDeviceResponse.mjs.map +1 -1
- package/build/modules/mdoc/MdocModule.d.mts.map +1 -1
- package/build/modules/mdoc/MdocModule.d.ts.map +1 -1
- package/build/modules/mdoc/MdocModule.mjs.map +1 -1
- package/build/modules/mdoc/MdocOptions.d.mts +4 -3
- package/build/modules/mdoc/MdocOptions.d.mts.map +1 -1
- package/build/modules/mdoc/MdocOptions.d.ts +4 -3
- package/build/modules/mdoc/MdocOptions.d.ts.map +1 -1
- package/build/modules/mdoc/MdocService.d.mts +1 -1
- package/build/modules/mdoc/MdocService.d.mts.map +1 -1
- package/build/modules/mdoc/MdocService.d.ts +1 -2
- package/build/modules/mdoc/MdocService.d.ts.map +1 -1
- package/build/modules/mdoc/MdocService.mjs.map +1 -1
- package/build/modules/mdoc/index.d.mts +3 -3
- package/build/modules/mdoc/index.d.ts +3 -3
- package/build/modules/mdoc/repository/MdocRecord.d.mts +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.mts.map +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.ts +1 -1
- package/build/modules/mdoc/repository/MdocRecord.d.ts.map +1 -1
- package/build/modules/mdoc/repository/MdocRecord.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.mts +2 -4
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts +2 -4
- package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcApi.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcModule.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.mts +5 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts +5 -1
- package/build/modules/sd-jwt-vc/SdJwtVcOptions.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.mts +4 -5
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts +4 -5
- package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/SdJwtVcService.js +40 -48
- package/build/modules/sd-jwt-vc/SdJwtVcService.mjs +41 -49
- package/build/modules/sd-jwt-vc/SdJwtVcService.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/decodeSdJwtVc.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/disclosureFrame.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/index.js +1 -1
- package/build/modules/sd-jwt-vc/index.mjs +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.mjs.map +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.mts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRepository.d.ts +1 -1
- package/build/modules/sd-jwt-vc/utils.js +1 -1
- package/build/modules/sd-jwt-vc/utils.mjs +1 -1
- package/build/modules/sd-jwt-vc/utils.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialService.d.mts +2 -2
- package/build/modules/vc/W3cCredentialService.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialService.d.ts +2 -2
- package/build/modules/vc/W3cCredentialService.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialService.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialServiceOptions.d.mts +2 -2
- package/build/modules/vc/W3cCredentialServiceOptions.d.ts +2 -2
- package/build/modules/vc/W3cCredentialsApi.d.mts +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.ts +1 -1
- package/build/modules/vc/W3cCredentialsApi.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialsApi.mjs.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.d.mts.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.d.ts.map +1 -1
- package/build/modules/vc/W3cCredentialsModule.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialService.d.mts +3 -3
- package/build/modules/vc/W3cV2CredentialService.d.ts +3 -3
- package/build/modules/vc/W3cV2CredentialService.js +1 -1
- package/build/modules/vc/W3cV2CredentialService.mjs +1 -1
- package/build/modules/vc/W3cV2CredentialService.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.mts +3 -3
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.mts.map +1 -1
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.ts +3 -3
- package/build/modules/vc/W3cV2CredentialServiceOptions.d.ts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.mts +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.mts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.ts +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.d.ts.map +1 -1
- package/build/modules/vc/W3cV2CredentialsApi.mjs.map +1 -1
- package/build/modules/vc/W3cV2CredentialsModule.mjs.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.mts +2 -2
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts +2 -2
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.js +6 -6
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.mjs +6 -6
- package/build/modules/vc/data-integrity/W3cJsonLdCredentialService.mjs.map +1 -1
- package/build/modules/vc/data-integrity/deriveProof.d.mts +1 -1
- package/build/modules/vc/data-integrity/deriveProof.d.ts +1 -1
- package/build/modules/vc/data-integrity/deriveProof.js +1 -1
- package/build/modules/vc/data-integrity/deriveProof.mjs +1 -1
- package/build/modules/vc/data-integrity/deriveProof.mjs.map +1 -1
- package/build/modules/vc/data-integrity/index.js +8 -8
- package/build/modules/vc/data-integrity/index.mjs +8 -8
- package/build/modules/vc/data-integrity/jsonldUtil.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.js +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.mjs +1 -1
- package/build/modules/vc/data-integrity/jsonldUtil.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.js +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/documentLoader.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/index.js +1 -1
- package/build/modules/vc/data-integrity/libraries/index.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld-signatures.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/jsonld.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/nativeDocumentLoader.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.js +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.mjs +1 -1
- package/build/modules/vc/data-integrity/libraries/vc.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.mts +5 -4
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.ts +5 -4
- package/build/modules/vc/data-integrity/models/LdKeyPair.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/LdKeyPair.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/ProofTransformer.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.js +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.mjs +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.mts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts +2 -2
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.js +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.mjs +1 -1
- package/build/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/data-integrity/models/index.js +2 -2
- package/build/modules/vc/data-integrity/models/index.mjs +2 -2
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.mts +1 -1
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.d.ts +1 -1
- package/build/modules/vc/data-integrity/proof-purposes/CredentialIssuancePurpose.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.mts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.ts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/JwsLinkedDataSignature.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2018.mjs.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.mts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.ts +3 -2
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.d.ts.map +1 -1
- package/build/modules/vc/data-integrity/signature-suites/ed25519/Ed25519Signature2020.mjs.map +1 -1
- package/build/modules/vc/index.js +14 -14
- package/build/modules/vc/index.mjs +14 -14
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.mts +2 -2
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts +2 -2
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.js +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.mjs +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.mts +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts +4 -4
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.ts.map +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.d.mts +2 -2
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.d.ts +2 -2
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.js +4 -4
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.mjs +4 -4
- package/build/modules/vc/jwt-vc/W3cV2JwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.mts +1 -1
- package/build/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.ts +1 -1
- package/build/modules/vc/jwt-vc/credentialTransformer.mjs.map +1 -1
- package/build/modules/vc/jwt-vc/index.js +1 -1
- package/build/modules/vc/jwt-vc/index.mjs +1 -1
- package/build/modules/vc/jwt-vc/presentationTransformer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.d.mts +3 -3
- package/build/modules/vc/models/credential/W3cCredential.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.d.ts +3 -3
- package/build/modules/vc/models/credential/W3cCredential.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredential.js +1 -1
- package/build/modules/vc/models/credential/W3cCredential.mjs +1 -1
- package/build/modules/vc/models/credential/W3cCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cCredentialSubject.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cIssuer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.d.mts +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.d.ts +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.js +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.mjs +1 -1
- package/build/modules/vc/models/credential/W3cV2Credential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.js +2 -2
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.mjs +2 -2
- package/build/modules/vc/models/credential/W3cV2CredentialSchema.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.mts +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.ts +1 -1
- package/build/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Evidence.js +2 -2
- package/build/modules/vc/models/credential/W3cV2Evidence.mjs +2 -2
- package/build/modules/vc/models/credential/W3cV2Evidence.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2Issuer.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cV2LocalizedValue.mjs.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.d.mts.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.d.ts.map +1 -1
- package/build/modules/vc/models/credential/W3cVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/models/credential/index.js +1 -1
- package/build/modules/vc/models/credential/index.mjs +1 -1
- package/build/modules/vc/models/index.js +1 -1
- package/build/modules/vc/models/index.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.d.mts.map +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.d.ts.map +1 -1
- package/build/modules/vc/models/presentation/W3cHolder.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cJsonPresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cJsonPresentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.d.mts +2 -2
- package/build/modules/vc/models/presentation/W3cPresentation.d.mts.map +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.d.ts +2 -2
- package/build/modules/vc/models/presentation/W3cPresentation.d.ts.map +1 -1
- package/build/modules/vc/models/presentation/W3cPresentation.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.mts +2 -2
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.ts +2 -2
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.js +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2Holder.mjs.map +1 -1
- package/build/modules/vc/models/presentation/W3cV2JsonPresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2JsonPresentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.d.ts +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.js +1 -1
- package/build/modules/vc/models/presentation/W3cV2Presentation.mjs +1 -1
- package/build/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.mts +1 -1
- package/build/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.ts +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.d.mts.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.d.ts.map +1 -1
- package/build/modules/vc/repository/W3cCredentialRecord.mjs.map +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.js +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.mjs +1 -1
- package/build/modules/vc/repository/W3cV2CredentialRecord.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.mts +2 -2
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.mts.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.ts +2 -2
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.d.ts.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwt.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.mts +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.ts +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.js +3 -3
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.mjs +3 -3
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtVerifiableCredential.mjs.map +1 -1
- package/build/modules/vc/sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.mjs.map +1 -1
- package/build/modules/vc/v2-jwt-utils.js +2 -2
- package/build/modules/vc/v2-jwt-utils.mjs +2 -2
- package/build/modules/vc/v2-jwt-utils.mjs.map +1 -1
- package/build/modules/vc/validators.mjs.map +1 -1
- package/build/modules/x509/X509Api.d.mts +1 -1
- package/build/modules/x509/X509Api.d.ts +1 -1
- package/build/modules/x509/X509Api.js +1 -1
- package/build/modules/x509/X509Api.mjs +1 -1
- package/build/modules/x509/X509Certificate.d.mts +5 -5
- package/build/modules/x509/X509Certificate.d.mts.map +1 -1
- package/build/modules/x509/X509Certificate.d.ts +5 -5
- package/build/modules/x509/X509Certificate.d.ts.map +1 -1
- package/build/modules/x509/X509Certificate.js +4 -7
- package/build/modules/x509/X509Certificate.mjs +3 -6
- package/build/modules/x509/X509Certificate.mjs.map +1 -1
- package/build/modules/x509/X509Module.d.mts.map +1 -1
- package/build/modules/x509/X509Module.d.ts.map +1 -1
- package/build/modules/x509/X509Module.js +1 -1
- package/build/modules/x509/X509Module.mjs +1 -1
- package/build/modules/x509/X509Module.mjs.map +1 -1
- package/build/modules/x509/X509ModuleConfig.d.mts +2 -2
- package/build/modules/x509/X509ModuleConfig.d.ts +2 -2
- package/build/modules/x509/X509Service.d.mts +1 -1
- package/build/modules/x509/X509Service.d.mts.map +1 -1
- package/build/modules/x509/X509Service.d.ts +1 -1
- package/build/modules/x509/X509Service.d.ts.map +1 -1
- package/build/modules/x509/X509Service.js +4 -4
- package/build/modules/x509/X509Service.mjs +3 -3
- package/build/modules/x509/X509Service.mjs.map +1 -1
- package/build/modules/x509/extraction.d.mts +1 -1
- package/build/modules/x509/extraction.d.ts +1 -1
- package/build/modules/x509/index.js +3 -3
- package/build/modules/x509/index.mjs +3 -3
- package/build/modules/x509/utils/extensions.d.mts.map +1 -1
- package/build/modules/x509/utils/extensions.d.ts.map +1 -1
- package/build/modules/x509/utils/extensions.js +1 -1
- package/build/modules/x509/utils/extensions.mjs +1 -1
- package/build/modules/x509/utils/extensions.mjs.map +1 -1
- package/build/modules/x509/utils/index.js +1 -1
- package/build/modules/x509/utils/index.mjs +1 -1
- package/build/modules/x509/utils/nameConversion.d.mts.map +1 -1
- package/build/modules/x509/utils/nameConversion.d.ts.map +1 -1
- package/build/modules/x509/utils/nameConversion.mjs.map +1 -1
- package/build/plugins/DependencyManager.d.mts.map +1 -1
- package/build/plugins/DependencyManager.d.ts.map +1 -1
- package/build/plugins/DependencyManager.mjs.map +1 -1
- package/build/storage/BaseRecord.mjs.map +1 -1
- package/build/storage/Metadata.mjs.map +1 -1
- package/build/storage/Repository.d.mts.map +1 -1
- package/build/storage/Repository.d.ts.map +1 -1
- package/build/storage/Repository.js +1 -1
- package/build/storage/Repository.mjs +1 -1
- package/build/storage/Repository.mjs.map +1 -1
- package/build/storage/RepositoryEvents.mjs.map +1 -1
- package/build/storage/StorageService.d.mts +1 -1
- package/build/storage/StorageService.d.ts +1 -1
- package/build/storage/index.js +1 -1
- package/build/storage/index.mjs +1 -1
- package/build/storage/migration/StorageUpdateService.d.mts.map +1 -1
- package/build/storage/migration/StorageUpdateService.d.ts.map +1 -1
- package/build/storage/migration/StorageUpdateService.js +1 -1
- package/build/storage/migration/StorageUpdateService.mjs +1 -1
- package/build/storage/migration/StorageUpdateService.mjs.map +1 -1
- package/build/storage/migration/UpdateAssistant.d.mts +1 -1
- package/build/storage/migration/UpdateAssistant.d.mts.map +1 -1
- package/build/storage/migration/UpdateAssistant.d.ts +1 -1
- package/build/storage/migration/UpdateAssistant.d.ts.map +1 -1
- package/build/storage/migration/UpdateAssistant.js +1 -1
- package/build/storage/migration/UpdateAssistant.mjs +1 -1
- package/build/storage/migration/UpdateAssistant.mjs.map +1 -1
- package/build/storage/migration/index.js +1 -1
- package/build/storage/migration/index.mjs +1 -1
- package/build/storage/migration/isUpToDate.d.mts.map +1 -1
- package/build/storage/migration/isUpToDate.d.ts.map +1 -1
- package/build/storage/migration/isUpToDate.js +1 -1
- package/build/storage/migration/isUpToDate.mjs +1 -1
- package/build/storage/migration/isUpToDate.mjs.map +1 -1
- package/build/storage/migration/updates/0.3.1-0.4/cache.mjs.map +1 -1
- package/build/storage/migration/updates/0.4-0.5/w3cCredentialRecord.mjs.map +1 -1
- package/build/storage/migration/updates.d.mts +1 -1
- package/build/storage/migration/updates.d.mts.map +1 -1
- package/build/storage/migration/updates.d.ts +1 -1
- package/build/storage/migration/updates.d.ts.map +1 -1
- package/build/storage/migration/updates.js +4 -4
- package/build/storage/migration/updates.mjs +1 -1
- package/build/storage/migration/updates.mjs.map +1 -1
- package/build/types.d.mts +12 -1
- package/build/types.d.mts.map +1 -1
- package/build/types.d.ts +12 -1
- package/build/types.d.ts.map +1 -1
- package/build/types.mjs.map +1 -1
- package/build/utils/HashlinkEncoder.d.mts +1 -1
- package/build/utils/HashlinkEncoder.d.mts.map +1 -1
- package/build/utils/HashlinkEncoder.d.ts +1 -1
- package/build/utils/HashlinkEncoder.d.ts.map +1 -1
- package/build/utils/HashlinkEncoder.mjs.map +1 -1
- package/build/utils/JsonEncoder.d.mts +3 -2
- package/build/utils/JsonEncoder.d.mts.map +1 -1
- package/build/utils/JsonEncoder.d.ts +3 -2
- package/build/utils/JsonEncoder.d.ts.map +1 -1
- package/build/utils/JsonEncoder.js +8 -8
- package/build/utils/JsonEncoder.mjs +4 -3
- package/build/utils/JsonEncoder.mjs.map +1 -1
- package/build/utils/JsonTransformer.mjs.map +1 -1
- package/build/utils/MessageValidator.mjs.map +1 -1
- package/build/utils/MultiBaseEncoder.d.mts +4 -2
- package/build/utils/MultiBaseEncoder.d.mts.map +1 -1
- package/build/utils/MultiBaseEncoder.d.ts +4 -2
- package/build/utils/MultiBaseEncoder.d.ts.map +1 -1
- package/build/utils/MultiBaseEncoder.mjs.map +1 -1
- package/build/utils/MultiHashEncoder.d.mts +5 -5
- package/build/utils/MultiHashEncoder.d.mts.map +1 -1
- package/build/utils/MultiHashEncoder.d.ts +5 -5
- package/build/utils/MultiHashEncoder.d.ts.map +1 -1
- package/build/utils/MultiHashEncoder.js +5 -7
- package/build/utils/MultiHashEncoder.mjs +5 -4
- package/build/utils/MultiHashEncoder.mjs.map +1 -1
- package/build/utils/TypedArrayEncoder.d.mts +12 -9
- package/build/utils/TypedArrayEncoder.d.mts.map +1 -1
- package/build/utils/TypedArrayEncoder.d.ts +12 -9
- package/build/utils/TypedArrayEncoder.d.ts.map +1 -1
- package/build/utils/TypedArrayEncoder.js +22 -17
- package/build/utils/TypedArrayEncoder.mjs +7 -1
- package/build/utils/TypedArrayEncoder.mjs.map +1 -1
- package/build/utils/VarintEncoder.js +1 -4
- package/build/utils/VarintEncoder.mjs +1 -2
- package/build/utils/VarintEncoder.mjs.map +1 -1
- package/build/utils/base58.mjs.map +1 -1
- package/build/utils/buffer.d.mts +1 -1
- package/build/utils/buffer.d.ts +1 -1
- package/build/utils/buffer.mjs +1 -1
- package/build/utils/deepEquality.mjs.map +1 -1
- package/build/utils/index.js +10 -11
- package/build/utils/index.mjs +9 -9
- package/build/utils/objectEquality.mjs.map +1 -1
- package/build/utils/timestamp.d.mts +10 -2
- package/build/utils/timestamp.d.mts.map +1 -1
- package/build/utils/timestamp.d.ts +10 -2
- package/build/utils/timestamp.d.ts.map +1 -1
- package/build/utils/timestamp.js +9 -1
- package/build/utils/timestamp.mjs +8 -2
- package/build/utils/timestamp.mjs.map +1 -1
- package/build/utils/transformers.d.mts.map +1 -1
- package/build/utils/transformers.d.ts.map +1 -1
- package/build/utils/transformers.mjs.map +1 -1
- package/build/utils/validators.d.mts.map +1 -1
- package/build/utils/validators.d.ts.map +1 -1
- package/build/utils/validators.mjs.map +1 -1
- package/build/utils/zod.js +2 -0
- package/build/utils/zod.mjs +2 -1
- package/build/utils/zod.mjs.map +1 -1
- package/package.json +25 -25
- package/build/utils/buffer.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cV2Credential.mjs","names":["status","evidence"],"sources":["../../../../../src/modules/vc/models/credential/W3cV2Credential.ts"],"sourcesContent":["import { Expose, Type, plainToClassFromExist } from 'class-transformer'\nimport { IsOptional, IsRFC3339, ValidateNested } from 'class-validator'\nimport type { JsonObject, SingleOrArray } from '../../../../types'\nimport { JsonTransformer, asArray, mapSingleOrArray } from '../../../../utils'\nimport {\n IsInstanceOrArrayOfInstances,\n IsNever,\n IsStringOrInstanceOrArrayOfInstances,\n IsUri,\n} from '../../../../utils/validators'\nimport { CREDENTIALS_CONTEXT_V2_URL } from '../../constants'\nimport { IsCredentialJsonLdContext, IsCredentialType } from '../../validators'\nimport { W3cV2CredentialSchema, type W3cV2CredentialSchemaOptions } from './W3cV2CredentialSchema'\nimport { W3cV2CredentialStatus, type W3cV2CredentialStatusOptions } from './W3cV2CredentialStatus'\nimport { W3cV2CredentialSubject, type W3cV2CredentialSubjectOptions } from './W3cV2CredentialSubject'\nimport { W3cV2Evidence, type W3cV2EvidenceOptions } from './W3cV2Evidence'\nimport { IsW3cV2Issuer, W3cV2Issuer, type W3cV2IssuerOptions, W3cV2IssuerTransformer } from './W3cV2Issuer'\nimport type { W3cV2JsonCredential } from './W3cV2JsonCredential'\nimport {\n W3cV2LocalizedValue,\n type W3cV2LocalizedValueOptions,\n W3cV2LocalizedValueTransformer,\n} from './W3cV2LocalizedValue'\nimport { W3cV2RefreshService, type W3cV2RefreshServiceOptions } from './W3cV2RefreshService'\nimport { W3cV2TermsOfUse, type W3cV2TermsOfUseOptions } from './W3cV2TermsOfUse'\n\nexport interface W3cV2CredentialOptions {\n context?: Array<string | JsonObject>\n id?: string\n type: Array<string>\n name?: string | SingleOrArray<W3cV2LocalizedValueOptions>\n description?: string | SingleOrArray<W3cV2LocalizedValueOptions>\n issuer: string | W3cV2IssuerOptions\n credentialSubject: SingleOrArray<W3cV2CredentialSubjectOptions>\n validFrom?: string\n validUntil?: string\n status?: SingleOrArray<W3cV2CredentialStatusOptions>\n credentialSchema?: SingleOrArray<W3cV2CredentialSchemaOptions>\n refreshService?: SingleOrArray<W3cV2RefreshServiceOptions>\n termsOfUse?: SingleOrArray<W3cV2TermsOfUseOptions>\n evidence?: SingleOrArray<W3cV2EvidenceOptions>\n [property: string]: unknown\n}\n\nexport class W3cV2Credential {\n public constructor(options: W3cV2CredentialOptions) {\n if (options) {\n const {\n context,\n id,\n type,\n name,\n description,\n issuer,\n credentialSubject,\n validFrom,\n validUntil,\n status,\n credentialSchema,\n refreshService,\n termsOfUse,\n evidence,\n ...rest\n } = options\n\n plainToClassFromExist(this, rest)\n\n this.context = context ?? [CREDENTIALS_CONTEXT_V2_URL]\n this.id = id\n this.type = type || ['VerifiableCredential']\n\n if (name) {\n this.name =\n typeof name === 'string'\n ? name\n : mapSingleOrArray(name, (n) => (n instanceof W3cV2LocalizedValue ? n : new W3cV2LocalizedValue(n)))\n }\n\n if (description) {\n this.description =\n typeof description === 'string'\n ? description\n : mapSingleOrArray(description, (n) => (n instanceof W3cV2LocalizedValue ? n : new W3cV2LocalizedValue(n)))\n }\n\n this.issuer = typeof issuer === 'string' || issuer instanceof W3cV2Issuer ? issuer : new W3cV2Issuer(issuer)\n\n this.credentialSubject = mapSingleOrArray(credentialSubject, (subject) =>\n subject instanceof W3cV2CredentialSubject\n ? subject\n : // NOTE: type assertion is needed here since TS cannot properly infer the type.\n new W3cV2CredentialSubject(subject as W3cV2CredentialSubjectOptions)\n )\n\n this.validFrom = validFrom\n this.validUntil = validUntil\n\n if (status) {\n this.status = mapSingleOrArray(status, (status) =>\n status instanceof W3cV2CredentialStatus ? status : new W3cV2CredentialStatus(status)\n )\n }\n\n if (credentialSchema) {\n this.credentialSchema = mapSingleOrArray(credentialSchema, (schema) =>\n schema instanceof W3cV2CredentialSchema ? schema : new W3cV2CredentialSchema(schema)\n )\n }\n\n if (refreshService) {\n this.refreshService = mapSingleOrArray(refreshService, (service) =>\n service instanceof W3cV2RefreshService ? service : new W3cV2RefreshService(service)\n )\n }\n\n if (termsOfUse) {\n this.termsOfUse = mapSingleOrArray(termsOfUse, (tos) =>\n tos instanceof W3cV2TermsOfUse ? tos : new W3cV2TermsOfUse(tos)\n )\n }\n\n if (evidence) {\n this.evidence = mapSingleOrArray(evidence, (evidence) =>\n evidence instanceof W3cV2Evidence ? evidence : new W3cV2Evidence(evidence)\n )\n }\n }\n }\n\n @Expose({ name: '@context' })\n @IsCredentialJsonLdContext({ credentialContext: CREDENTIALS_CONTEXT_V2_URL })\n public context!: Array<string | JsonObject>\n\n @IsOptional()\n @IsUri()\n public id?: string\n\n @IsCredentialType()\n public type!: SingleOrArray<string>\n\n @IsOptional()\n @IsStringOrInstanceOrArrayOfInstances({ classType: W3cV2LocalizedValue, allowEmptyArray: true })\n @W3cV2LocalizedValueTransformer()\n public name?: string | SingleOrArray<W3cV2LocalizedValue>\n\n @IsOptional()\n @IsStringOrInstanceOrArrayOfInstances({ classType: W3cV2LocalizedValue, allowEmptyArray: true })\n @W3cV2LocalizedValueTransformer()\n public description?: string | SingleOrArray<W3cV2LocalizedValue>\n\n @IsW3cV2Issuer()\n @W3cV2IssuerTransformer()\n public issuer!: string | W3cV2Issuer\n\n @Type(() => W3cV2CredentialSubject)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2CredentialSubject })\n public credentialSubject!: SingleOrArray<W3cV2CredentialSubject>\n\n @IsRFC3339()\n @IsOptional()\n public validFrom?: string\n\n @IsRFC3339()\n @IsOptional()\n public validUntil?: string\n\n @IsOptional()\n @Type(() => W3cV2CredentialStatus)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2CredentialStatus, allowEmptyArray: true })\n public status?: SingleOrArray<W3cV2CredentialStatus>\n\n @IsOptional()\n @Type(() => W3cV2CredentialSchema)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2CredentialSchema, allowEmptyArray: true })\n public credentialSchema?: SingleOrArray<W3cV2CredentialSchema>\n\n @IsOptional()\n @Type(() => W3cV2RefreshService)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2RefreshService, allowEmptyArray: true })\n public refreshService?: SingleOrArray<W3cV2RefreshService>\n\n @IsOptional()\n @Type(() => W3cV2Evidence)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2Evidence, allowEmptyArray: true })\n public evidence?: SingleOrArray<W3cV2Evidence>\n\n @IsOptional()\n @Type(() => W3cV2TermsOfUse)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2TermsOfUse, allowEmptyArray: true })\n public termsOfUse?: SingleOrArray<W3cV2TermsOfUse>\n\n @IsNever()\n public vc?: never\n\n @IsNever()\n public vp?: never;\n\n [property: string]: unknown\n\n public get issuerId(): string {\n return this.issuer instanceof W3cV2Issuer ? this.issuer.id : this.issuer\n }\n\n public get credentialSchemaIds(): string[] {\n if (!this.credentialSchema) {\n return []\n }\n\n if (Array.isArray(this.credentialSchema)) {\n return this.credentialSchema.map((credentialSchema) => credentialSchema.id)\n }\n\n return [this.credentialSchema.id]\n }\n\n public get credentialSubjectIds(): string[] {\n if (Array.isArray(this.credentialSubject)) {\n return this.credentialSubject\n .map((credentialSubject) => credentialSubject.id)\n .filter((v): v is string => v !== undefined)\n }\n\n return this.credentialSubject.id ? [this.credentialSubject.id] : []\n }\n\n public get contexts(): Array<string | JsonObject> {\n return asArray(this.context)\n }\n\n public toJSON(): W3cV2JsonCredential {\n return JsonTransformer.toJSON(this) as W3cV2JsonCredential\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4CA,IAAa,kBAAb,MAA6B;CAC3B,AAAO,YAAY,SAAiC;AAClD,MAAI,SAAS;GACX,MAAM,EACJ,SACA,IACA,MACA,MACA,aACA,QACA,mBACA,WACA,YACA,QACA,kBACA,gBACA,YACA,SACA,GAAG,SACD;AAEJ,yBAAsB,MAAM,KAAK;AAEjC,QAAK,UAAU,WAAW,CAAC,2BAA2B;AACtD,QAAK,KAAK;AACV,QAAK,OAAO,QAAQ,CAAC,uBAAuB;AAE5C,OAAI,KACF,MAAK,OACH,OAAO,SAAS,WACZ,OACA,iBAAiB,OAAO,MAAO,aAAa,sBAAsB,IAAI,IAAI,oBAAoB,EAAE,CAAE;AAG1G,OAAI,YACF,MAAK,cACH,OAAO,gBAAgB,WACnB,cACA,iBAAiB,cAAc,MAAO,aAAa,sBAAsB,IAAI,IAAI,oBAAoB,EAAE,CAAE;AAGjH,QAAK,SAAS,OAAO,WAAW,YAAY,kBAAkB,cAAc,SAAS,IAAI,YAAY,OAAO;AAE5G,QAAK,oBAAoB,iBAAiB,oBAAoB,YAC5D,mBAAmB,yBACf,UAEA,IAAI,uBAAuB,QAAyC,CACzE;AAED,QAAK,YAAY;AACjB,QAAK,aAAa;AAElB,OAAI,OACF,MAAK,SAAS,iBAAiB,SAAS,aACtCA,oBAAkB,wBAAwBA,WAAS,IAAI,sBAAsBA,SAAO,CACrF;AAGH,OAAI,iBACF,MAAK,mBAAmB,iBAAiB,mBAAmB,WAC1D,kBAAkB,wBAAwB,SAAS,IAAI,sBAAsB,OAAO,CACrF;AAGH,OAAI,eACF,MAAK,iBAAiB,iBAAiB,iBAAiB,YACtD,mBAAmB,sBAAsB,UAAU,IAAI,oBAAoB,QAAQ,CACpF;AAGH,OAAI,WACF,MAAK,aAAa,iBAAiB,aAAa,QAC9C,eAAe,kBAAkB,MAAM,IAAI,gBAAgB,IAAI,CAChE;AAGH,OAAI,SACF,MAAK,WAAW,iBAAiB,WAAW,eAC1CC,sBAAoB,gBAAgBA,aAAW,IAAI,cAAcA,WAAS,CAC3E;;;CAiFP,IAAW,WAAmB;AAC5B,SAAO,KAAK,kBAAkB,cAAc,KAAK,OAAO,KAAK,KAAK;;CAGpE,IAAW,sBAAgC;AACzC,MAAI,CAAC,KAAK,iBACR,QAAO,EAAE;AAGX,MAAI,MAAM,QAAQ,KAAK,iBAAiB,CACtC,QAAO,KAAK,iBAAiB,KAAK,qBAAqB,iBAAiB,GAAG;AAG7E,SAAO,CAAC,KAAK,iBAAiB,GAAG;;CAGnC,IAAW,uBAAiC;AAC1C,MAAI,MAAM,QAAQ,KAAK,kBAAkB,CACvC,QAAO,KAAK,kBACT,KAAK,sBAAsB,kBAAkB,GAAG,CAChD,QAAQ,MAAmB,MAAM,OAAU;AAGhD,SAAO,KAAK,kBAAkB,KAAK,CAAC,KAAK,kBAAkB,GAAG,GAAG,EAAE;;CAGrE,IAAW,WAAuC;AAChD,SAAO,QAAQ,KAAK,QAAQ;;CAG9B,AAAO,SAA8B;AACnC,SAAO,gBAAgB,OAAO,KAAK;;;;CA3GpC,OAAO,EAAE,MAAM,YAAY,CAAC;CAC5B,0BAA0B,EAAE,mBAAmB,4BAA4B,CAAC;;;;CAG5E,YAAY;CACZ,OAAO;;;YAGP,kBAAkB;;CAGlB,YAAY;CACZ,qCAAqC;EAAE,WAAW;EAAqB,iBAAiB;EAAM,CAAC;CAC/F,gCAAgC;;;;CAGhC,YAAY;CACZ,qCAAqC;EAAE,WAAW;EAAqB,iBAAiB;EAAM,CAAC;CAC/F,gCAAgC;;;;CAGhC,eAAe;CACf,wBAAwB;;;;CAGxB,WAAW,uBAAuB;CAClC,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B,EAAE,WAAW,wBAAwB,CAAC;;;;CAGnE,WAAW;CACX,YAAY;;;;CAGZ,WAAW;CACX,YAAY;;;;CAGZ,YAAY;CACZ,WAAW,sBAAsB;CACjC,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAuB,iBAAiB;EAAM,CAAC;;;;CAGzF,YAAY;CACZ,WAAW,sBAAsB;CACjC,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAuB,iBAAiB;EAAM,CAAC;;;;CAGzF,YAAY;CACZ,WAAW,oBAAoB;CAC/B,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAqB,iBAAiB;EAAM,CAAC;;;;CAGvF,YAAY;CACZ,WAAW,cAAc;CACzB,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAe,iBAAiB;EAAM,CAAC;;;;CAGjF,YAAY;CACZ,WAAW,gBAAgB;CAC3B,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAiB,iBAAiB;EAAM,CAAC;;;YAGnF,SAAS;YAGT,SAAS"}
|
|
1
|
+
{"version":3,"file":"W3cV2Credential.mjs","names":["status","evidence"],"sources":["../../../../../src/modules/vc/models/credential/W3cV2Credential.ts"],"sourcesContent":["import { Expose, plainToClassFromExist, Type } from 'class-transformer'\nimport { IsOptional, IsRFC3339, ValidateNested } from 'class-validator'\nimport type { JsonObject, SingleOrArray } from '../../../../types'\nimport { asArray, JsonTransformer, mapSingleOrArray } from '../../../../utils'\nimport {\n IsInstanceOrArrayOfInstances,\n IsNever,\n IsStringOrInstanceOrArrayOfInstances,\n IsUri,\n} from '../../../../utils/validators'\nimport { CREDENTIALS_CONTEXT_V2_URL } from '../../constants'\nimport { IsCredentialJsonLdContext, IsCredentialType } from '../../validators'\nimport { W3cV2CredentialSchema, type W3cV2CredentialSchemaOptions } from './W3cV2CredentialSchema'\nimport { W3cV2CredentialStatus, type W3cV2CredentialStatusOptions } from './W3cV2CredentialStatus'\nimport { W3cV2CredentialSubject, type W3cV2CredentialSubjectOptions } from './W3cV2CredentialSubject'\nimport { W3cV2Evidence, type W3cV2EvidenceOptions } from './W3cV2Evidence'\nimport { IsW3cV2Issuer, W3cV2Issuer, type W3cV2IssuerOptions, W3cV2IssuerTransformer } from './W3cV2Issuer'\nimport type { W3cV2JsonCredential } from './W3cV2JsonCredential'\nimport {\n W3cV2LocalizedValue,\n type W3cV2LocalizedValueOptions,\n W3cV2LocalizedValueTransformer,\n} from './W3cV2LocalizedValue'\nimport { W3cV2RefreshService, type W3cV2RefreshServiceOptions } from './W3cV2RefreshService'\nimport { W3cV2TermsOfUse, type W3cV2TermsOfUseOptions } from './W3cV2TermsOfUse'\n\nexport interface W3cV2CredentialOptions {\n context?: Array<string | JsonObject>\n id?: string\n type: Array<string>\n name?: string | SingleOrArray<W3cV2LocalizedValueOptions>\n description?: string | SingleOrArray<W3cV2LocalizedValueOptions>\n issuer: string | W3cV2IssuerOptions\n credentialSubject: SingleOrArray<W3cV2CredentialSubjectOptions>\n validFrom?: string\n validUntil?: string\n status?: SingleOrArray<W3cV2CredentialStatusOptions>\n credentialSchema?: SingleOrArray<W3cV2CredentialSchemaOptions>\n refreshService?: SingleOrArray<W3cV2RefreshServiceOptions>\n termsOfUse?: SingleOrArray<W3cV2TermsOfUseOptions>\n evidence?: SingleOrArray<W3cV2EvidenceOptions>\n [property: string]: unknown\n}\n\nexport class W3cV2Credential {\n public constructor(options: W3cV2CredentialOptions) {\n if (options) {\n const {\n context,\n id,\n type,\n name,\n description,\n issuer,\n credentialSubject,\n validFrom,\n validUntil,\n status,\n credentialSchema,\n refreshService,\n termsOfUse,\n evidence,\n ...rest\n } = options\n\n plainToClassFromExist(this, rest)\n\n this.context = context ?? [CREDENTIALS_CONTEXT_V2_URL]\n this.id = id\n this.type = type || ['VerifiableCredential']\n\n if (name) {\n this.name =\n typeof name === 'string'\n ? name\n : mapSingleOrArray(name, (n) => (n instanceof W3cV2LocalizedValue ? n : new W3cV2LocalizedValue(n)))\n }\n\n if (description) {\n this.description =\n typeof description === 'string'\n ? description\n : mapSingleOrArray(description, (n) => (n instanceof W3cV2LocalizedValue ? n : new W3cV2LocalizedValue(n)))\n }\n\n this.issuer = typeof issuer === 'string' || issuer instanceof W3cV2Issuer ? issuer : new W3cV2Issuer(issuer)\n\n this.credentialSubject = mapSingleOrArray(credentialSubject, (subject) =>\n subject instanceof W3cV2CredentialSubject\n ? subject\n : // NOTE: type assertion is needed here since TS cannot properly infer the type.\n new W3cV2CredentialSubject(subject as W3cV2CredentialSubjectOptions)\n )\n\n this.validFrom = validFrom\n this.validUntil = validUntil\n\n if (status) {\n this.status = mapSingleOrArray(status, (status) =>\n status instanceof W3cV2CredentialStatus ? status : new W3cV2CredentialStatus(status)\n )\n }\n\n if (credentialSchema) {\n this.credentialSchema = mapSingleOrArray(credentialSchema, (schema) =>\n schema instanceof W3cV2CredentialSchema ? schema : new W3cV2CredentialSchema(schema)\n )\n }\n\n if (refreshService) {\n this.refreshService = mapSingleOrArray(refreshService, (service) =>\n service instanceof W3cV2RefreshService ? service : new W3cV2RefreshService(service)\n )\n }\n\n if (termsOfUse) {\n this.termsOfUse = mapSingleOrArray(termsOfUse, (tos) =>\n tos instanceof W3cV2TermsOfUse ? tos : new W3cV2TermsOfUse(tos)\n )\n }\n\n if (evidence) {\n this.evidence = mapSingleOrArray(evidence, (evidence) =>\n evidence instanceof W3cV2Evidence ? evidence : new W3cV2Evidence(evidence)\n )\n }\n }\n }\n\n @Expose({ name: '@context' })\n @IsCredentialJsonLdContext({ credentialContext: CREDENTIALS_CONTEXT_V2_URL })\n public context!: Array<string | JsonObject>\n\n @IsOptional()\n @IsUri()\n public id?: string\n\n @IsCredentialType()\n public type!: SingleOrArray<string>\n\n @IsOptional()\n @IsStringOrInstanceOrArrayOfInstances({ classType: W3cV2LocalizedValue, allowEmptyArray: true })\n @W3cV2LocalizedValueTransformer()\n public name?: string | SingleOrArray<W3cV2LocalizedValue>\n\n @IsOptional()\n @IsStringOrInstanceOrArrayOfInstances({ classType: W3cV2LocalizedValue, allowEmptyArray: true })\n @W3cV2LocalizedValueTransformer()\n public description?: string | SingleOrArray<W3cV2LocalizedValue>\n\n @IsW3cV2Issuer()\n @W3cV2IssuerTransformer()\n public issuer!: string | W3cV2Issuer\n\n @Type(() => W3cV2CredentialSubject)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2CredentialSubject })\n public credentialSubject!: SingleOrArray<W3cV2CredentialSubject>\n\n @IsRFC3339()\n @IsOptional()\n public validFrom?: string\n\n @IsRFC3339()\n @IsOptional()\n public validUntil?: string\n\n @IsOptional()\n @Type(() => W3cV2CredentialStatus)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2CredentialStatus, allowEmptyArray: true })\n public status?: SingleOrArray<W3cV2CredentialStatus>\n\n @IsOptional()\n @Type(() => W3cV2CredentialSchema)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2CredentialSchema, allowEmptyArray: true })\n public credentialSchema?: SingleOrArray<W3cV2CredentialSchema>\n\n @IsOptional()\n @Type(() => W3cV2RefreshService)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2RefreshService, allowEmptyArray: true })\n public refreshService?: SingleOrArray<W3cV2RefreshService>\n\n @IsOptional()\n @Type(() => W3cV2Evidence)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2Evidence, allowEmptyArray: true })\n public evidence?: SingleOrArray<W3cV2Evidence>\n\n @IsOptional()\n @Type(() => W3cV2TermsOfUse)\n @ValidateNested({ each: true })\n @IsInstanceOrArrayOfInstances({ classType: W3cV2TermsOfUse, allowEmptyArray: true })\n public termsOfUse?: SingleOrArray<W3cV2TermsOfUse>\n\n @IsNever()\n public vc?: never\n\n @IsNever()\n public vp?: never;\n\n [property: string]: unknown\n\n public get issuerId(): string {\n return this.issuer instanceof W3cV2Issuer ? this.issuer.id : this.issuer\n }\n\n public get credentialSchemaIds(): string[] {\n if (!this.credentialSchema) {\n return []\n }\n\n if (Array.isArray(this.credentialSchema)) {\n return this.credentialSchema.map((credentialSchema) => credentialSchema.id)\n }\n\n return [this.credentialSchema.id]\n }\n\n public get credentialSubjectIds(): string[] {\n if (Array.isArray(this.credentialSubject)) {\n return this.credentialSubject\n .map((credentialSubject) => credentialSubject.id)\n .filter((v): v is string => v !== undefined)\n }\n\n return this.credentialSubject.id ? [this.credentialSubject.id] : []\n }\n\n public get contexts(): Array<string | JsonObject> {\n return asArray(this.context)\n }\n\n public toJSON(): W3cV2JsonCredential {\n return JsonTransformer.toJSON(this) as W3cV2JsonCredential\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4CA,IAAa,kBAAb,MAA6B;CAC3B,AAAO,YAAY,SAAiC;AAClD,MAAI,SAAS;GACX,MAAM,EACJ,SACA,IACA,MACA,MACA,aACA,QACA,mBACA,WACA,YACA,QACA,kBACA,gBACA,YACA,SACA,GAAG,SACD;AAEJ,yBAAsB,MAAM,KAAK;AAEjC,QAAK,UAAU,WAAW,CAAC,2BAA2B;AACtD,QAAK,KAAK;AACV,QAAK,OAAO,QAAQ,CAAC,uBAAuB;AAE5C,OAAI,KACF,MAAK,OACH,OAAO,SAAS,WACZ,OACA,iBAAiB,OAAO,MAAO,aAAa,sBAAsB,IAAI,IAAI,oBAAoB,EAAE,CAAE;AAG1G,OAAI,YACF,MAAK,cACH,OAAO,gBAAgB,WACnB,cACA,iBAAiB,cAAc,MAAO,aAAa,sBAAsB,IAAI,IAAI,oBAAoB,EAAE,CAAE;AAGjH,QAAK,SAAS,OAAO,WAAW,YAAY,kBAAkB,cAAc,SAAS,IAAI,YAAY,OAAO;AAE5G,QAAK,oBAAoB,iBAAiB,oBAAoB,YAC5D,mBAAmB,yBACf,UAEA,IAAI,uBAAuB,QAAyC,CACzE;AAED,QAAK,YAAY;AACjB,QAAK,aAAa;AAElB,OAAI,OACF,MAAK,SAAS,iBAAiB,SAAS,aACtCA,oBAAkB,wBAAwBA,WAAS,IAAI,sBAAsBA,SAAO,CACrF;AAGH,OAAI,iBACF,MAAK,mBAAmB,iBAAiB,mBAAmB,WAC1D,kBAAkB,wBAAwB,SAAS,IAAI,sBAAsB,OAAO,CACrF;AAGH,OAAI,eACF,MAAK,iBAAiB,iBAAiB,iBAAiB,YACtD,mBAAmB,sBAAsB,UAAU,IAAI,oBAAoB,QAAQ,CACpF;AAGH,OAAI,WACF,MAAK,aAAa,iBAAiB,aAAa,QAC9C,eAAe,kBAAkB,MAAM,IAAI,gBAAgB,IAAI,CAChE;AAGH,OAAI,SACF,MAAK,WAAW,iBAAiB,WAAW,eAC1CC,sBAAoB,gBAAgBA,aAAW,IAAI,cAAcA,WAAS,CAC3E;;;CAiFP,IAAW,WAAmB;AAC5B,SAAO,KAAK,kBAAkB,cAAc,KAAK,OAAO,KAAK,KAAK;;CAGpE,IAAW,sBAAgC;AACzC,MAAI,CAAC,KAAK,iBACR,QAAO,EAAE;AAGX,MAAI,MAAM,QAAQ,KAAK,iBAAiB,CACtC,QAAO,KAAK,iBAAiB,KAAK,qBAAqB,iBAAiB,GAAG;AAG7E,SAAO,CAAC,KAAK,iBAAiB,GAAG;;CAGnC,IAAW,uBAAiC;AAC1C,MAAI,MAAM,QAAQ,KAAK,kBAAkB,CACvC,QAAO,KAAK,kBACT,KAAK,sBAAsB,kBAAkB,GAAG,CAChD,QAAQ,MAAmB,MAAM,OAAU;AAGhD,SAAO,KAAK,kBAAkB,KAAK,CAAC,KAAK,kBAAkB,GAAG,GAAG,EAAE;;CAGrE,IAAW,WAAuC;AAChD,SAAO,QAAQ,KAAK,QAAQ;;CAG9B,AAAO,SAA8B;AACnC,SAAO,gBAAgB,OAAO,KAAK;;;;CA3GpC,OAAO,EAAE,MAAM,YAAY,CAAC;CAC5B,0BAA0B,EAAE,mBAAmB,4BAA4B,CAAC;;;;CAG5E,YAAY;CACZ,OAAO;;;YAGP,kBAAkB;;CAGlB,YAAY;CACZ,qCAAqC;EAAE,WAAW;EAAqB,iBAAiB;EAAM,CAAC;CAC/F,gCAAgC;;;;CAGhC,YAAY;CACZ,qCAAqC;EAAE,WAAW;EAAqB,iBAAiB;EAAM,CAAC;CAC/F,gCAAgC;;;;CAGhC,eAAe;CACf,wBAAwB;;;;CAGxB,WAAW,uBAAuB;CAClC,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B,EAAE,WAAW,wBAAwB,CAAC;;;;CAGnE,WAAW;CACX,YAAY;;;;CAGZ,WAAW;CACX,YAAY;;;;CAGZ,YAAY;CACZ,WAAW,sBAAsB;CACjC,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAuB,iBAAiB;EAAM,CAAC;;;;CAGzF,YAAY;CACZ,WAAW,sBAAsB;CACjC,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAuB,iBAAiB;EAAM,CAAC;;;;CAGzF,YAAY;CACZ,WAAW,oBAAoB;CAC/B,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAqB,iBAAiB;EAAM,CAAC;;;;CAGvF,YAAY;CACZ,WAAW,cAAc;CACzB,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAe,iBAAiB;EAAM,CAAC;;;;CAGjF,YAAY;CACZ,WAAW,gBAAgB;CAC3B,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,6BAA6B;EAAE,WAAW;EAAiB,iBAAiB;EAAM,CAAC;;;YAGnF,SAAS;YAGT,SAAS"}
|
|
@@ -21,8 +21,8 @@ var W3cV2CredentialSchema = class {
|
|
|
21
21
|
if (options) {
|
|
22
22
|
const { id, type,...rest } = options;
|
|
23
23
|
(0, class_transformer.plainToClassFromExist)(this, rest);
|
|
24
|
-
this.id =
|
|
25
|
-
this.type =
|
|
24
|
+
this.id = id;
|
|
25
|
+
this.type = type;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cV2CredentialSchema.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2CredentialSchema.ts"],"sourcesContent":["import { plainToClassFromExist } from 'class-transformer'\nimport { IsString } from 'class-validator'\nimport { IsUri } from '../../../../utils'\n\nexport interface W3cV2CredentialSchemaOptions {\n id: string\n type: string\n [property: string]: unknown\n}\n\n/**\n * Represents a credential schema.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#data-schemas\n */\nexport class W3cV2CredentialSchema {\n public constructor(options: W3cV2CredentialSchemaOptions) {\n if (options) {\n const { id, type, ...rest } = options\n\n plainToClassFromExist(this, rest)\n\n this.id =
|
|
1
|
+
{"version":3,"file":"W3cV2CredentialSchema.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2CredentialSchema.ts"],"sourcesContent":["import { plainToClassFromExist } from 'class-transformer'\nimport { IsString } from 'class-validator'\nimport { IsUri } from '../../../../utils'\n\nexport interface W3cV2CredentialSchemaOptions {\n id: string\n type: string\n [property: string]: unknown\n}\n\n/**\n * Represents a credential schema.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#data-schemas\n */\nexport class W3cV2CredentialSchema {\n public constructor(options: W3cV2CredentialSchemaOptions) {\n if (options) {\n const { id, type, ...rest } = options\n\n plainToClassFromExist(this, rest)\n\n this.id = id\n this.type = type\n }\n }\n\n @IsUri()\n public id!: string\n\n @IsString()\n public type!: string;\n\n [property: string]: unknown\n}\n"],"mappings":";;;;;;;;;;;;;;;AAeA,IAAa,wBAAb,MAAmC;CACjC,AAAO,YAAY,SAAuC;AACxD,MAAI,SAAS;GACX,MAAM,EAAE,IAAI,KAAM,GAAG,SAAS;AAE9B,yBAAsB,MAAM,KAAK;AAEjC,QAAK,KAAK;AACV,QAAK,OAAO;;;;YAIf,OAAO;YAGP,UAAU"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { JsonObject, SingleOrArray } from "../../../../types.mjs";
|
|
1
2
|
import { ClaimFormat } from "../ClaimFormat.mjs";
|
|
2
3
|
import { W3cV2Credential } from "./W3cV2Credential.mjs";
|
|
3
4
|
import { W3cV2JwtVerifiableCredential } from "../../jwt-vc/W3cV2JwtVerifiableCredential.mjs";
|
|
4
5
|
import { W3cV2SdJwtVerifiableCredential } from "../../sd-jwt-vc/W3cV2SdJwtVerifiableCredential.mjs";
|
|
5
|
-
import { JsonObject, SingleOrArray } from "../../../../types.mjs";
|
|
6
6
|
import { ValidationOptions } from "class-validator";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { JsonObject, SingleOrArray } from "../../../../types.js";
|
|
1
2
|
import { ClaimFormat } from "../ClaimFormat.js";
|
|
2
3
|
import { W3cV2Credential } from "./W3cV2Credential.js";
|
|
3
4
|
import { W3cV2JwtVerifiableCredential } from "../../jwt-vc/W3cV2JwtVerifiableCredential.js";
|
|
4
5
|
import { W3cV2SdJwtVerifiableCredential } from "../../sd-jwt-vc/W3cV2SdJwtVerifiableCredential.js";
|
|
5
|
-
import { JsonObject, SingleOrArray } from "../../../../types.js";
|
|
6
6
|
import { ValidationOptions } from "class-validator";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cV2EnvelopedVerifiableCredential.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.ts"],"sourcesContent":["import { Exclude, Expose,
|
|
1
|
+
{"version":3,"file":"W3cV2EnvelopedVerifiableCredential.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2EnvelopedVerifiableCredential.ts"],"sourcesContent":["import { Exclude, Expose, instanceToPlain, plainToInstance, Transform, TransformationType } from 'class-transformer'\nimport { buildMessage, IsDataURI, isInstance, ValidateBy, type ValidationOptions } from 'class-validator'\nimport { CredoError } from '../../../../error'\nimport type { JsonObject, SingleOrArray } from '../../../../types'\nimport { CREDENTIALS_CONTEXT_V2_URL, ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE } from '../../constants'\nimport { W3cV2JwtVerifiableCredential } from '../../jwt-vc/W3cV2JwtVerifiableCredential'\nimport { W3cV2SdJwtVerifiableCredential } from '../../sd-jwt-vc/W3cV2SdJwtVerifiableCredential'\nimport { IsCredentialJsonLdContext } from '../../validators'\nimport { ClaimFormat } from '../ClaimFormat'\nimport { W3cV2Credential } from './W3cV2Credential'\n\nexport interface W3cV2EnvelopedVerifiableCredentialOptions {\n id: string\n context?: string | Array<string | JsonObject>\n type?: SingleOrArray<string>\n}\n\nexport class W3cV2EnvelopedVerifiableCredential {\n @Exclude()\n private _envelopedCredential?: W3cV2SdJwtVerifiableCredential | W3cV2JwtVerifiableCredential\n\n public constructor(options: W3cV2EnvelopedVerifiableCredentialOptions) {\n if (options) {\n this.context = options.context ?? CREDENTIALS_CONTEXT_V2_URL\n this.id = options.id\n this.type = options.type ?? ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE\n this._envelopedCredential = credentialFromDataUri(options.id)\n }\n }\n\n public static fromVerifiableCredential(\n credential: W3cV2SdJwtVerifiableCredential | W3cV2JwtVerifiableCredential\n ): W3cV2EnvelopedVerifiableCredential {\n return new W3cV2EnvelopedVerifiableCredential({\n id: credentialToDataUri(credential),\n context: CREDENTIALS_CONTEXT_V2_URL,\n type: ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE,\n })\n }\n\n @Expose({ name: '@context' })\n @IsCredentialJsonLdContext({ allowString: true, credentialContext: CREDENTIALS_CONTEXT_V2_URL })\n public context!: string | Array<string | JsonObject>\n\n @IsDataURI()\n public id!: string\n\n @IsEnvelopedVerifiableCredentialType()\n public type!: SingleOrArray<string>\n\n /**\n * Gets the enveloped credential.\n */\n public get envelopedCredential() {\n if (!this._envelopedCredential) {\n this._envelopedCredential = credentialFromDataUri(this.id)\n }\n\n return this._envelopedCredential\n }\n\n /**\n * Resolved credential is the fully resolved {@link W3cV2Credential} instance.\n */\n public get resolvedCredential(): W3cV2Credential {\n return this.envelopedCredential.resolvedCredential\n }\n\n /**\n * The {@link ClaimFormat} of the enveloped credential.\n */\n public get claimFormat(): ClaimFormat.SdJwtW3cVc | ClaimFormat.JwtW3cVc {\n return this.envelopedCredential.claimFormat\n }\n}\n\nconst jsonToClass = (v: unknown) => {\n if (!v || typeof v !== 'object') {\n throw new CredoError('Invalid plain W3cV2EnvelopedVerifiableCredential')\n }\n\n if (isInstance(v, W3cV2EnvelopedVerifiableCredential)) {\n return v\n }\n\n return plainToInstance(W3cV2EnvelopedVerifiableCredential, v)\n}\n\nconst classToJson = (v: unknown) => {\n return instanceToPlain(v)\n}\n\nexport function W3cV2EnvelopedVerifiableCredentialTransformer() {\n return Transform(({ value, type }: { value: SingleOrArray<unknown>; type: TransformationType }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n return Array.isArray(value) ? value.map(jsonToClass) : jsonToClass(value)\n }\n\n if (type === TransformationType.CLASS_TO_PLAIN) {\n if (Array.isArray(value)) return value.map(classToJson)\n return classToJson(value)\n }\n\n // PLAIN_TO_PLAIN\n return value\n })\n}\n\nexport function IsEnvelopedVerifiableCredentialType(validationOptions?: ValidationOptions): PropertyDecorator {\n return ValidateBy(\n {\n name: 'IsEnvelopedVerifiableCredentialType',\n validator: {\n validate: (value): boolean => {\n return Array.isArray(value)\n ? value.includes(ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE) && value.every((v) => typeof v === 'string')\n : value === ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE\n },\n defaultMessage: buildMessage(\n (eachPrefix) =>\n `${eachPrefix}$property must be a string that equals, or an array of strings which includes \"${ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE}\"`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n\nfunction credentialFromDataUri(uri: string) {\n if (!uri.startsWith('data:')) {\n throw new CredoError('Invalid Enveloped Verifiable Credential: \"id\" is not a valid data URI')\n }\n\n const mimetypeData = uri.slice(5)\n const commaIndex = mimetypeData.indexOf(',')\n if (commaIndex === -1) {\n throw new CredoError('Invalid Enveloped Verifiable Credential: \"id\" data URI is missing comma separator')\n }\n\n const mimetype = mimetypeData.slice(0, commaIndex)\n const data = mimetypeData.slice(commaIndex + 1)\n\n switch (mimetype) {\n case 'application/vc+sd-jwt':\n return W3cV2SdJwtVerifiableCredential.fromCompact(data)\n\n case 'application/vc+jwt':\n return W3cV2JwtVerifiableCredential.fromCompact(data)\n\n default:\n throw new CredoError(`Unsupported Enveloped Verifiable Credential: ${mimetype} not recognized`)\n }\n}\n\nfunction credentialToDataUri(presentation: W3cV2SdJwtVerifiableCredential | W3cV2JwtVerifiableCredential) {\n if (presentation instanceof W3cV2SdJwtVerifiableCredential) {\n return `data:application/vc+sd-jwt,${presentation.encoded}`\n }\n\n if (presentation instanceof W3cV2JwtVerifiableCredential) {\n return `data:application/vc+jwt,${presentation.encoded}`\n }\n\n throw new CredoError('Unsupported Verifiable Credential instance')\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiBA,IAAa,qCAAb,MAAa,mCAAmC;CAI9C,AAAO,YAAY,SAAoD;AACrE,MAAI,SAAS;AACX,QAAK,UAAU,QAAQ,WAAW;AAClC,QAAK,KAAK,QAAQ;AAClB,QAAK,OAAO,QAAQ,QAAQ;AAC5B,QAAK,uBAAuB,sBAAsB,QAAQ,GAAG;;;CAIjE,OAAc,yBACZ,YACoC;AACpC,SAAO,IAAI,mCAAmC;GAC5C,IAAI,oBAAoB,WAAW;GACnC,SAAS;GACT,MAAM;GACP,CAAC;;;;;CAgBJ,IAAW,sBAAsB;AAC/B,MAAI,CAAC,KAAK,qBACR,MAAK,uBAAuB,sBAAsB,KAAK,GAAG;AAG5D,SAAO,KAAK;;;;;CAMd,IAAW,qBAAsC;AAC/C,SAAO,KAAK,oBAAoB;;;;;CAMlC,IAAW,cAA6D;AACtE,SAAO,KAAK,oBAAoB;;;YAtDjC,SAAS;;CAsBT,OAAO,EAAE,MAAM,YAAY,CAAC;CAC5B,0BAA0B;EAAE,aAAa;EAAM,mBAAmB;EAA4B,CAAC;;;YAG/F,WAAW;YAGX,qCAAqC;AA6BxC,MAAM,eAAe,MAAe;AAClC,KAAI,CAAC,KAAK,OAAO,MAAM,SACrB,OAAM,IAAI,WAAW,mDAAmD;AAG1E,KAAI,WAAW,GAAG,mCAAmC,CACnD,QAAO;AAGT,QAAO,gBAAgB,oCAAoC,EAAE;;AAG/D,MAAM,eAAe,MAAe;AAClC,QAAO,gBAAgB,EAAE;;AAG3B,SAAgB,gDAAgD;AAC9D,QAAO,WAAW,EAAE,OAAO,WAAwE;AACjG,MAAI,SAAS,mBAAmB,eAC9B,QAAO,MAAM,QAAQ,MAAM,GAAG,MAAM,IAAI,YAAY,GAAG,YAAY,MAAM;AAG3E,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,MAAM,QAAQ,MAAM,CAAE,QAAO,MAAM,IAAI,YAAY;AACvD,UAAO,YAAY,MAAM;;AAI3B,SAAO;GACP;;AAGJ,SAAgB,oCAAoC,mBAA0D;AAC5G,QAAO,WACL;EACE,MAAM;EACN,WAAW;GACT,WAAW,UAAmB;AAC5B,WAAO,MAAM,QAAQ,MAAM,GACvB,MAAM,SAAS,qCAAqC,IAAI,MAAM,OAAO,MAAM,OAAO,MAAM,SAAS,GACjG,UAAU;;GAEhB,gBAAgB,cACb,eACC,GAAG,WAAW,iFAAiF,qCAAqC,IACtI,kBACD;GACF;EACF,EACD,kBACD;;AAGH,SAAS,sBAAsB,KAAa;AAC1C,KAAI,CAAC,IAAI,WAAW,QAAQ,CAC1B,OAAM,IAAI,WAAW,0EAAwE;CAG/F,MAAM,eAAe,IAAI,MAAM,EAAE;CACjC,MAAM,aAAa,aAAa,QAAQ,IAAI;AAC5C,KAAI,eAAe,GACjB,OAAM,IAAI,WAAW,sFAAoF;CAG3G,MAAM,WAAW,aAAa,MAAM,GAAG,WAAW;CAClD,MAAM,OAAO,aAAa,MAAM,aAAa,EAAE;AAE/C,SAAQ,UAAR;EACE,KAAK,wBACH,QAAO,+BAA+B,YAAY,KAAK;EAEzD,KAAK,qBACH,QAAO,6BAA6B,YAAY,KAAK;EAEvD,QACE,OAAM,IAAI,WAAW,gDAAgD,SAAS,iBAAiB;;;AAIrG,SAAS,oBAAoB,cAA6E;AACxG,KAAI,wBAAwB,+BAC1B,QAAO,8BAA8B,aAAa;AAGpD,KAAI,wBAAwB,6BAC1B,QAAO,2BAA2B,aAAa;AAGjD,OAAM,IAAI,WAAW,6CAA6C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cV2Evidence.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2Evidence.ts"],"sourcesContent":["import { plainToClassFromExist } from 'class-transformer'\nimport { IsOptional, IsString } from 'class-validator'\nimport { IsUri } from '../../../../utils'\n\nexport interface W3cV2EvidenceOptions {\n id?: string\n type: string\n [property: string]: unknown\n}\n\n/**\n * Represents an evidence.\n *\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#evidence\n */\nexport class W3cV2Evidence {\n public constructor(options: W3cV2EvidenceOptions) {\n if (options) {\n const { id, type, ...rest } = options\n\n plainToClassFromExist(this, rest)\n\n this.id =
|
|
1
|
+
{"version":3,"file":"W3cV2Evidence.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2Evidence.ts"],"sourcesContent":["import { plainToClassFromExist } from 'class-transformer'\nimport { IsOptional, IsString } from 'class-validator'\nimport { IsUri } from '../../../../utils'\n\nexport interface W3cV2EvidenceOptions {\n id?: string\n type: string\n [property: string]: unknown\n}\n\n/**\n * Represents an evidence.\n *\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#evidence\n */\nexport class W3cV2Evidence {\n public constructor(options: W3cV2EvidenceOptions) {\n if (options) {\n const { id, type, ...rest } = options\n\n plainToClassFromExist(this, rest)\n\n this.id = id\n this.type = type\n }\n }\n\n @IsOptional()\n @IsUri()\n public id?: string\n\n @IsString()\n public type!: string;\n\n [property: string]: unknown\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAgBA,IAAa,gBAAb,MAA2B;CACzB,AAAO,YAAY,SAA+B;AAChD,MAAI,SAAS;GACX,MAAM,EAAE,IAAI,KAAM,GAAG,SAAS;AAE9B,yBAAsB,MAAM,KAAK;AAEjC,QAAK,KAAK;AACV,QAAK,OAAO;;;;;CAIf,YAAY;CACZ,OAAO;;;YAGP,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cV2Issuer.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2Issuer.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"W3cV2Issuer.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2Issuer.ts"],"sourcesContent":["import {\n instanceToPlain,\n plainToClassFromExist,\n plainToInstance,\n Transform,\n TransformationType,\n} from 'class-transformer'\nimport type { ValidationOptions } from 'class-validator'\nimport { buildMessage, isInstance, isString, ValidateBy } from 'class-validator'\nimport { IsUri, isUri } from '../../../../utils'\n\nexport interface W3cV2IssuerOptions {\n id: string\n [property: string]: unknown\n}\n\n/**\n * Represents a credential issuer.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#issuer\n */\nexport class W3cV2Issuer {\n public constructor(options: W3cV2IssuerOptions) {\n if (options) {\n const { id, ...rest } = options\n\n plainToClassFromExist(this, rest)\n\n this.id = id\n }\n }\n\n @IsUri()\n public id!: string;\n\n [property: string]: unknown\n}\n\nexport function W3cV2IssuerTransformer() {\n return Transform(({ value, type }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n if (isString(value)) return value\n return plainToInstance(W3cV2Issuer, value)\n }\n\n if (type === TransformationType.CLASS_TO_PLAIN) {\n if (isString(value)) return value\n return instanceToPlain(value)\n }\n\n // PLAIN_TO_PLAIN\n return value\n })\n}\n\nexport function IsW3cV2Issuer(validationOptions?: ValidationOptions): PropertyDecorator {\n return ValidateBy(\n {\n name: 'IsW3cV2Issuer',\n validator: {\n validate: (value): boolean => {\n return (typeof value === 'string' && isUri(value)) || (isInstance(value, W3cV2Issuer) && isUri(value.id))\n },\n defaultMessage: buildMessage(\n (eachPrefix) => `${eachPrefix}$property must be an URL or a valid W3cV2Issuer instance`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,IAAa,cAAb,MAAyB;CACvB,AAAO,YAAY,SAA6B;AAC9C,MAAI,SAAS;GACX,MAAM,EAAE,GAAI,GAAG,SAAS;AAExB,yBAAsB,MAAM,KAAK;AAEjC,QAAK,KAAK;;;;YAIb,OAAO;AAMV,SAAgB,yBAAyB;AACvC,QAAO,WAAW,EAAE,OAAO,WAAW;AACpC,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,SAAS,MAAM,CAAE,QAAO;AAC5B,UAAO,gBAAgB,aAAa,MAAM;;AAG5C,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,SAAS,MAAM,CAAE,QAAO;AAC5B,UAAO,gBAAgB,MAAM;;AAI/B,SAAO;GACP;;AAGJ,SAAgB,cAAc,mBAA0D;AACtF,QAAO,WACL;EACE,MAAM;EACN,WAAW;GACT,WAAW,UAAmB;AAC5B,WAAQ,OAAO,UAAU,YAAY,MAAM,MAAM,IAAM,WAAW,OAAO,YAAY,IAAI,MAAM,MAAM,GAAG;;GAE1G,gBAAgB,cACb,eAAe,GAAG,WAAW,2DAC9B,kBACD;GACF;EACF,EACD,kBACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cV2LocalizedValue.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2LocalizedValue.ts"],"sourcesContent":["import {\n Expose,\n
|
|
1
|
+
{"version":3,"file":"W3cV2LocalizedValue.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2LocalizedValue.ts"],"sourcesContent":["import {\n Expose,\n instanceToPlain,\n plainToClassFromExist,\n plainToInstance,\n Transform,\n TransformationType,\n} from 'class-transformer'\nimport { IsEnum, IsOptional, IsString, isString } from 'class-validator'\n\nexport interface W3cV2LocalizedValueOptions {\n value: string\n language?: string | null\n direction?: 'ltr' | 'rtl' | null\n [property: string]: unknown\n}\n\n/**\n * Represents a localized string.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#internationalization-considerations\n */\nexport class W3cV2LocalizedValue {\n public constructor(options: W3cV2LocalizedValueOptions) {\n if (options) {\n const { value, language, direction, ...rest } = options\n\n plainToClassFromExist(this, rest)\n\n this.value = value\n this.language = language\n this.direction = direction\n }\n }\n\n @Expose({ name: '@value' })\n @IsString()\n public value!: string\n\n @Expose({ name: '@language' })\n @IsOptional()\n @IsString()\n public language?: string | null\n\n @Expose({ name: '@direction' })\n @IsOptional()\n @IsEnum(['ltr', 'rtl', null])\n public direction?: 'ltr' | 'rtl' | null;\n\n [property: string]: unknown\n}\n\nexport function W3cV2LocalizedValueTransformer() {\n return Transform(({ value, type }: { value: string | W3cV2LocalizedValueOptions; type: TransformationType }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n if (isString(value)) {\n return value\n }\n\n if (Array.isArray(value)) {\n return value.map((v) => plainToInstance(W3cV2LocalizedValue, v))\n }\n\n return plainToInstance(W3cV2LocalizedValue, value)\n }\n\n if (type === TransformationType.CLASS_TO_PLAIN) {\n if (isString(value)) {\n return value\n }\n\n if (Array.isArray(value)) {\n return value.map((v) => instanceToPlain(W3cV2LocalizedValue, v))\n }\n\n return instanceToPlain(value)\n }\n\n // PLAIN_TO_PLAIN\n return value\n })\n}\n"],"mappings":";;;;;;;;;;;;;AAsBA,IAAa,sBAAb,MAAiC;CAC/B,AAAO,YAAY,SAAqC;AACtD,MAAI,SAAS;GACX,MAAM,EAAE,OAAO,UAAU,UAAW,GAAG,SAAS;AAEhD,yBAAsB,MAAM,KAAK;AAEjC,QAAK,QAAQ;AACb,QAAK,WAAW;AAChB,QAAK,YAAY;;;;;CAIpB,OAAO,EAAE,MAAM,UAAU,CAAC;CAC1B,UAAU;;;;CAGV,OAAO,EAAE,MAAM,aAAa,CAAC;CAC7B,YAAY;CACZ,UAAU;;;;CAGV,OAAO,EAAE,MAAM,cAAc,CAAC;CAC9B,YAAY;CACZ,OAAO;EAAC;EAAO;EAAO;EAAK,CAAC;;;AAM/B,SAAgB,iCAAiC;AAC/C,QAAO,WAAW,EAAE,OAAO,WAAqF;AAC9G,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,SAAS,MAAM,CACjB,QAAO;AAGT,OAAI,MAAM,QAAQ,MAAM,CACtB,QAAO,MAAM,KAAK,MAAM,gBAAgB,qBAAqB,EAAE,CAAC;AAGlE,UAAO,gBAAgB,qBAAqB,MAAM;;AAGpD,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,SAAS,MAAM,CACjB,QAAO;AAGT,OAAI,MAAM,QAAQ,MAAM,CACtB,QAAO,MAAM,KAAK,MAAM,gBAAgB,qBAAqB,EAAE,CAAC;AAGlE,UAAO,gBAAgB,MAAM;;AAI/B,SAAO;GACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cVerifiableCredential.d.mts","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cVerifiableCredential.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"W3cVerifiableCredential.d.mts","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cVerifiableCredential.ts"],"sourcesContent":[],"mappings":";;;;;iBAwBgB,kCAAA,CAAA,GAAkC;KActC,uCAAuC,WAAA,CAAY,QAAQ,WAAA,CAAY,6BACjF,eAAe,WAAA,CAAY,QACvB,6BACA,eAAe,WAAA,CAAY,QACzB,gCACA,gCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cVerifiableCredential.d.ts","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cVerifiableCredential.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"W3cVerifiableCredential.d.ts","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cVerifiableCredential.ts"],"sourcesContent":[],"mappings":";;;;;iBAwBgB,kCAAA,CAAA,GAAkC;KActC,uCAAuC,WAAA,CAAY,QAAQ,WAAA,CAAY,6BACjF,eAAe,WAAA,CAAY,QACvB,6BACA,eAAe,WAAA,CAAY,QACzB,gCACA,gCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cVerifiableCredential.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cVerifiableCredential.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"W3cVerifiableCredential.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cVerifiableCredential.ts"],"sourcesContent":["import { Transform, TransformationType } from 'class-transformer'\nimport { ValidationError } from 'class-validator'\nimport { ClassValidationError, CredoError } from '../../../../error'\nimport type { SingleOrArray } from '../../../../types'\nimport { JsonTransformer } from '../../../../utils'\nimport { W3cJsonLdVerifiableCredential } from '../../data-integrity/models/W3cJsonLdVerifiableCredential'\nimport { W3cJwtVerifiableCredential } from '../../jwt-vc/W3cJwtVerifiableCredential'\nimport type { ClaimFormat } from '../ClaimFormat'\n\nconst getCredential = (v: unknown) => {\n try {\n return typeof v === 'string'\n ? W3cJwtVerifiableCredential.fromSerializedJwt(v)\n : // Validation is done separately\n JsonTransformer.fromJSON(v, W3cJsonLdVerifiableCredential, { validate: false })\n } catch (error) {\n if (error instanceof ValidationError || error instanceof ClassValidationError) throw error\n throw new CredoError(`value '${v}' is not a valid W3cJwtVerifiableCredential. ${error.message}`)\n }\n}\n\nconst getEncoded = (v: unknown) =>\n v instanceof W3cJwtVerifiableCredential ? v.serializedJwt : JsonTransformer.toJSON(v)\n\nexport function W3cVerifiableCredentialTransformer() {\n return Transform(({ value, type }: { value: SingleOrArray<unknown>; type: TransformationType }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n return Array.isArray(value) ? value.map(getCredential) : getCredential(value)\n }\n if (type === TransformationType.CLASS_TO_PLAIN) {\n if (Array.isArray(value)) return value.map(getEncoded)\n return getEncoded(value)\n }\n // PLAIN_TO_PLAIN\n return value\n })\n}\n\nexport type W3cVerifiableCredential<Format extends ClaimFormat.JwtVc | ClaimFormat.LdpVc | unknown = unknown> =\n Format extends ClaimFormat.JwtVc\n ? W3cJwtVerifiableCredential\n : Format extends ClaimFormat.LdpVc\n ? W3cJsonLdVerifiableCredential\n : W3cJsonLdVerifiableCredential | W3cJwtVerifiableCredential\n"],"mappings":";;;;;;;;;;;;;AASA,MAAM,iBAAiB,MAAe;AACpC,KAAI;AACF,SAAO,OAAO,MAAM,WAChB,2BAA2B,kBAAkB,EAAE,GAE/C,gBAAgB,SAAS,GAAG,+BAA+B,EAAE,UAAU,OAAO,CAAC;UAC5E,OAAO;AACd,MAAI,iBAAiB,mBAAmB,iBAAiB,qBAAsB,OAAM;AACrF,QAAM,IAAI,WAAW,UAAU,EAAE,+CAA+C,MAAM,UAAU;;;AAIpG,MAAM,cAAc,MAClB,aAAa,6BAA6B,EAAE,gBAAgB,gBAAgB,OAAO,EAAE;AAEvF,SAAgB,qCAAqC;AACnD,QAAO,WAAW,EAAE,OAAO,WAAwE;AACjG,MAAI,SAAS,mBAAmB,eAC9B,QAAO,MAAM,QAAQ,MAAM,GAAG,MAAM,IAAI,cAAc,GAAG,cAAc,MAAM;AAE/E,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,MAAM,QAAQ,MAAM,CAAE,QAAO,MAAM,IAAI,WAAW;AACtD,UAAO,WAAW,MAAM;;AAG1B,SAAO;GACP"}
|
|
@@ -5,7 +5,6 @@ const require_W3cCredentialStatus = require('./W3cCredentialStatus.js');
|
|
|
5
5
|
const require_W3cCredentialSubject = require('./W3cCredentialSubject.js');
|
|
6
6
|
const require_W3cIssuer = require('./W3cIssuer.js');
|
|
7
7
|
const require_W3cCredential = require('./W3cCredential.js');
|
|
8
|
-
const require_W3cVerifiableCredential = require('./W3cVerifiableCredential.js');
|
|
9
8
|
const require_W3cV2CredentialSchema = require('./W3cV2CredentialSchema.js');
|
|
10
9
|
const require_W3cV2CredentialStatus = require('./W3cV2CredentialStatus.js');
|
|
11
10
|
const require_W3cV2CredentialSubject = require('./W3cV2CredentialSubject.js');
|
|
@@ -16,4 +15,5 @@ const require_W3cV2RefreshService = require('./W3cV2RefreshService.js');
|
|
|
16
15
|
const require_W3cV2TermsOfUse = require('./W3cV2TermsOfUse.js');
|
|
17
16
|
const require_W3cV2Credential = require('./W3cV2Credential.js');
|
|
18
17
|
const require_W3cV2EnvelopedVerifiableCredential = require('./W3cV2EnvelopedVerifiableCredential.js');
|
|
18
|
+
const require_W3cVerifiableCredential = require('./W3cVerifiableCredential.js');
|
|
19
19
|
const require_W3cV2VerifiableCredential = require('./W3cV2VerifiableCredential.js');
|
|
@@ -5,7 +5,6 @@ import { W3cCredentialStatus } from "./W3cCredentialStatus.mjs";
|
|
|
5
5
|
import { IsW3cCredentialSubject, W3cCredentialSubject, W3cCredentialSubjectTransformer } from "./W3cCredentialSubject.mjs";
|
|
6
6
|
import { IsW3cIssuer, W3cIssuer, W3cIssuerTransformer } from "./W3cIssuer.mjs";
|
|
7
7
|
import { W3cCredential } from "./W3cCredential.mjs";
|
|
8
|
-
import { W3cVerifiableCredentialTransformer } from "./W3cVerifiableCredential.mjs";
|
|
9
8
|
import { W3cV2CredentialSchema } from "./W3cV2CredentialSchema.mjs";
|
|
10
9
|
import { W3cV2CredentialStatus } from "./W3cV2CredentialStatus.mjs";
|
|
11
10
|
import { W3cV2CredentialSubject } from "./W3cV2CredentialSubject.mjs";
|
|
@@ -16,4 +15,5 @@ import { W3cV2RefreshService } from "./W3cV2RefreshService.mjs";
|
|
|
16
15
|
import { W3cV2TermsOfUse } from "./W3cV2TermsOfUse.mjs";
|
|
17
16
|
import { W3cV2Credential } from "./W3cV2Credential.mjs";
|
|
18
17
|
import { IsEnvelopedVerifiableCredentialType, W3cV2EnvelopedVerifiableCredential, W3cV2EnvelopedVerifiableCredentialTransformer } from "./W3cV2EnvelopedVerifiableCredential.mjs";
|
|
18
|
+
import { W3cVerifiableCredentialTransformer } from "./W3cVerifiableCredential.mjs";
|
|
19
19
|
import { W3cV2VerifiableCredentialTransformer } from "./W3cV2VerifiableCredential.mjs";
|
|
@@ -6,7 +6,6 @@ const require_W3cCredentialStatus = require('./credential/W3cCredentialStatus.js
|
|
|
6
6
|
const require_W3cCredentialSubject = require('./credential/W3cCredentialSubject.js');
|
|
7
7
|
const require_W3cIssuer = require('./credential/W3cIssuer.js');
|
|
8
8
|
const require_W3cCredential = require('./credential/W3cCredential.js');
|
|
9
|
-
const require_W3cVerifiableCredential = require('./credential/W3cVerifiableCredential.js');
|
|
10
9
|
const require_W3cV2CredentialSchema = require('./credential/W3cV2CredentialSchema.js');
|
|
11
10
|
const require_W3cV2CredentialStatus = require('./credential/W3cV2CredentialStatus.js');
|
|
12
11
|
const require_W3cV2CredentialSubject = require('./credential/W3cV2CredentialSubject.js');
|
|
@@ -17,6 +16,7 @@ const require_W3cV2RefreshService = require('./credential/W3cV2RefreshService.js
|
|
|
17
16
|
const require_W3cV2TermsOfUse = require('./credential/W3cV2TermsOfUse.js');
|
|
18
17
|
const require_W3cV2Credential = require('./credential/W3cV2Credential.js');
|
|
19
18
|
const require_W3cV2EnvelopedVerifiableCredential = require('./credential/W3cV2EnvelopedVerifiableCredential.js');
|
|
19
|
+
const require_W3cVerifiableCredential = require('./credential/W3cVerifiableCredential.js');
|
|
20
20
|
const require_W3cPresentation = require('./presentation/W3cPresentation.js');
|
|
21
21
|
const require_W3cV2Presentation = require('./presentation/W3cV2Presentation.js');
|
|
22
22
|
const require_W3cV2VerifiableCredential = require('./credential/W3cV2VerifiableCredential.js');
|
|
@@ -6,7 +6,6 @@ import { W3cCredentialStatus } from "./credential/W3cCredentialStatus.mjs";
|
|
|
6
6
|
import { IsW3cCredentialSubject, W3cCredentialSubject, W3cCredentialSubjectTransformer } from "./credential/W3cCredentialSubject.mjs";
|
|
7
7
|
import { IsW3cIssuer, W3cIssuer, W3cIssuerTransformer } from "./credential/W3cIssuer.mjs";
|
|
8
8
|
import { W3cCredential } from "./credential/W3cCredential.mjs";
|
|
9
|
-
import { W3cVerifiableCredentialTransformer } from "./credential/W3cVerifiableCredential.mjs";
|
|
10
9
|
import { W3cV2CredentialSchema } from "./credential/W3cV2CredentialSchema.mjs";
|
|
11
10
|
import { W3cV2CredentialStatus } from "./credential/W3cV2CredentialStatus.mjs";
|
|
12
11
|
import { W3cV2CredentialSubject } from "./credential/W3cV2CredentialSubject.mjs";
|
|
@@ -17,6 +16,7 @@ import { W3cV2RefreshService } from "./credential/W3cV2RefreshService.mjs";
|
|
|
17
16
|
import { W3cV2TermsOfUse } from "./credential/W3cV2TermsOfUse.mjs";
|
|
18
17
|
import { W3cV2Credential } from "./credential/W3cV2Credential.mjs";
|
|
19
18
|
import { IsEnvelopedVerifiableCredentialType, W3cV2EnvelopedVerifiableCredential, W3cV2EnvelopedVerifiableCredentialTransformer } from "./credential/W3cV2EnvelopedVerifiableCredential.mjs";
|
|
19
|
+
import { W3cVerifiableCredentialTransformer } from "./credential/W3cVerifiableCredential.mjs";
|
|
20
20
|
import { W3cPresentation } from "./presentation/W3cPresentation.mjs";
|
|
21
21
|
import { W3cV2Presentation } from "./presentation/W3cV2Presentation.mjs";
|
|
22
22
|
import { W3cV2VerifiableCredentialTransformer } from "./credential/W3cV2VerifiableCredential.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cHolder.d.mts","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cHolder.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"W3cHolder.d.mts","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cHolder.ts"],"sourcesContent":[],"mappings":";;;;;;UASiB,gBAAA;EAAA,EAAA,EAAA,MAAA;AAIjB;cAAa,SAAA;uBACiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cHolder.d.ts","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cHolder.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"W3cHolder.d.ts","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cHolder.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;AAIa,UAJI,gBAAA,CAKa;;;cADjB,SAAA;uBACiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cHolder.mjs","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cHolder.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"W3cHolder.mjs","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cHolder.ts"],"sourcesContent":["import { instanceToPlain, plainToInstance, Transform, TransformationType } from 'class-transformer'\nimport type { ValidationOptions } from 'class-validator'\nimport { buildMessage, isInstance, isString, ValidateBy } from 'class-validator'\n\nimport { IsUri, isUri } from '../../../../utils/validators'\n\n/**\n * TODO: check how to support arbitrary data in class\n */\nexport interface W3cHolderOptions {\n id: string\n}\n\nexport class W3cHolder {\n public constructor(options: W3cHolderOptions) {\n if (options) {\n this.id = options.id\n }\n }\n\n @IsUri()\n public id!: string\n}\n\n// Custom transformers\nexport function W3cHolderTransformer() {\n return Transform(({ value, type }: { value: string | W3cHolderOptions; type: TransformationType }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n if (isString(value)) return value\n return plainToInstance(W3cHolder, value)\n }\n if (type === TransformationType.CLASS_TO_PLAIN) {\n if (isString(value)) return value\n return instanceToPlain(value)\n }\n // PLAIN_TO_PLAIN\n return value\n })\n}\n\n// Custom validators\n\nexport function IsW3cHolder(validationOptions?: ValidationOptions): PropertyDecorator {\n return ValidateBy(\n {\n name: 'IsW3cHolder',\n validator: {\n validate: (value): boolean => {\n if (typeof value === 'string') {\n return isUri(value)\n }\n if (isInstance(value, W3cHolder)) {\n return isUri(value.id)\n }\n return false\n },\n defaultMessage: buildMessage(\n (eachPrefix) => `${eachPrefix}$property must be an URI or an object with an id property which is an URI`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n"],"mappings":";;;;;;;;;AAaA,IAAa,YAAb,MAAuB;CACrB,AAAO,YAAY,SAA2B;AAC5C,MAAI,QACF,MAAK,KAAK,QAAQ;;;YAIrB,OAAO;AAKV,SAAgB,uBAAuB;AACrC,QAAO,WAAW,EAAE,OAAO,WAA2E;AACpG,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,SAAS,MAAM,CAAE,QAAO;AAC5B,UAAO,gBAAgB,WAAW,MAAM;;AAE1C,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,SAAS,MAAM,CAAE,QAAO;AAC5B,UAAO,gBAAgB,MAAM;;AAG/B,SAAO;GACP;;AAKJ,SAAgB,YAAY,mBAA0D;AACpF,QAAO,WACL;EACE,MAAM;EACN,WAAW;GACT,WAAW,UAAmB;AAC5B,QAAI,OAAO,UAAU,SACnB,QAAO,MAAM,MAAM;AAErB,QAAI,WAAW,OAAO,UAAU,CAC9B,QAAO,MAAM,MAAM,GAAG;AAExB,WAAO;;GAET,gBAAgB,cACb,eAAe,GAAG,WAAW,4EAC9B,kBACD;GACF;EACF,EACD,kBACD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { JsonObject } from "../../../../types.mjs";
|
|
1
2
|
import { W3cJsonCredential } from "../credential/W3cJsonCredential.mjs";
|
|
2
3
|
import { DifPresentationExchangeSubmission } from "../../../dif-presentation-exchange/models/index.mjs";
|
|
3
|
-
import { JsonObject } from "../../../../types.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/vc/models/presentation/W3cJsonPresentation.d.ts
|
|
6
6
|
interface W3cJsonPresentation {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { JsonObject } from "../../../../types.js";
|
|
1
2
|
import { W3cJsonCredential } from "../credential/W3cJsonCredential.js";
|
|
2
3
|
import { DifPresentationExchangeSubmission } from "../../../dif-presentation-exchange/models/index.js";
|
|
3
|
-
import { JsonObject } from "../../../../types.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/vc/models/presentation/W3cJsonPresentation.d.ts
|
|
6
6
|
interface W3cJsonPresentation {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { JsonObject, SingleOrArray } from "../../../../types.mjs";
|
|
1
2
|
import { W3cVerifiableCredential } from "../credential/W3cVerifiableCredential.mjs";
|
|
2
|
-
import { W3cHolder, W3cHolderOptions } from "./W3cHolder.mjs";
|
|
3
3
|
import { W3cJsonPresentation } from "./W3cJsonPresentation.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { W3cHolder, W3cHolderOptions } from "./W3cHolder.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/vc/models/presentation/W3cPresentation.d.ts
|
|
7
7
|
interface W3cPresentationOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cPresentation.d.mts","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cPresentation.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"W3cPresentation.d.mts","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cPresentation.ts"],"sourcesContent":[],"mappings":";;;;;;UAciB,sBAAA;;YAEL,eAAe;EAFV,IAAA,CAAA,EAGR,KAHQ,CAAA,MAAA,CAAA;EAAsB,oBAAA,EAIf,aAJe,CAID,uBAJC,CAAA;QAEZ,CAAA,EAAA,MAAA,GAGP,gBAHO;;AAClB,cAKI,eAAA,CALJ;aAC6B,CAAA,OAAA,EAKR,sBALQ;SAAd,EAoBL,KApBK,CAAA,MAAA,GAoBU,UApBV,CAAA;KACJ,EAAA,MAAA;EAAgB,IAAA,EA0BpB,KA1BoB,CAAA,MAAA,CAAA;EAGvB,MAAA,CAAA,EAAA,MAAA,GA4Bc,SA5BC;EAAA,oBAAA,EAiCI,aAjCJ,CAiCkB,uBAjClB,CAAA;MACE,QAAA,CAAA,CAAA,EAAA,MAAA,GAAA,IAAA;QAeI,CAAA,CAAA,EA0BS,mBA1BT"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { JsonObject, SingleOrArray } from "../../../../types.js";
|
|
1
2
|
import { W3cVerifiableCredential } from "../credential/W3cVerifiableCredential.js";
|
|
2
|
-
import { W3cHolder, W3cHolderOptions } from "./W3cHolder.js";
|
|
3
3
|
import { W3cJsonPresentation } from "./W3cJsonPresentation.js";
|
|
4
|
-
import {
|
|
4
|
+
import { W3cHolder, W3cHolderOptions } from "./W3cHolder.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/vc/models/presentation/W3cPresentation.d.ts
|
|
7
7
|
interface W3cPresentationOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cPresentation.d.ts","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cPresentation.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"W3cPresentation.d.ts","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cPresentation.ts"],"sourcesContent":[],"mappings":";;;;;;UAciB,sBAAA;EAAA,EAAA,CAAA,EAAA,MAAA;EAAsB,OAAA,CAAA,EAE3B,KAF2B,CAAA,MAAA,GAEZ,UAFY,CAAA;MAEZ,CAAA,EAClB,KADkB,CAAA,MAAA,CAAA;sBAAf,EAEY,aAFZ,CAE0B,uBAF1B,CAAA;QACH,CAAA,EAAA,MAAA,GAEW,gBAFX;;AACe,cAIX,eAAA,CAJW;aACJ,CAAA,OAAA,EAIU,sBAJV;EAAgB,OAAA,EAmBjB,KAnBiB,CAAA,MAAA,GAmBF,UAnBE,CAAA;EAGvB,EAAA,CAAA,EAAA,MAAA;EAAe,IAAA,EAuBZ,KAvBY,CAAA,MAAA,CAAA;QACE,CAAA,EAAA,MAAA,GA2BH,SA3BG;sBAeI,EAiBF,aAjBE,CAiBY,uBAjBZ,CAAA;MAAf,QAAA,CAAA,CAAA,EAAA,MAAA,GAAA,IAAA;QAOH,CAAA,CAAA,EAmB2B,mBAnB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cPresentation.mjs","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cPresentation.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"W3cPresentation.mjs","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cPresentation.ts"],"sourcesContent":["import { Expose } from 'class-transformer'\nimport { IsOptional, ValidateNested } from 'class-validator'\nimport type { JsonObject, SingleOrArray } from '../../../../types'\nimport { JsonTransformer } from '../../../../utils'\nimport { IsInstanceOrArrayOfInstances, IsUri } from '../../../../utils/validators'\nimport { CREDENTIALS_CONTEXT_V1_URL, VERIFIABLE_PRESENTATION_TYPE } from '../../constants'\nimport { W3cJsonLdVerifiableCredential } from '../../data-integrity/models/W3cJsonLdVerifiableCredential'\nimport { W3cJwtVerifiableCredential } from '../../jwt-vc/W3cJwtVerifiableCredential'\nimport { IsCredentialJsonLdContext, IsVerifiablePresentationType } from '../../validators'\nimport { type W3cVerifiableCredential, W3cVerifiableCredentialTransformer } from '../credential/W3cVerifiableCredential'\nimport type { W3cHolderOptions } from './W3cHolder'\nimport { IsW3cHolder, W3cHolder, W3cHolderTransformer } from './W3cHolder'\nimport type { W3cJsonPresentation } from './W3cJsonPresentation'\n\nexport interface W3cPresentationOptions {\n id?: string\n context?: Array<string | JsonObject>\n type?: Array<string>\n verifiableCredential: SingleOrArray<W3cVerifiableCredential>\n holder?: string | W3cHolderOptions\n}\n\nexport class W3cPresentation {\n public constructor(options: W3cPresentationOptions) {\n if (options) {\n this.id = options.id\n this.context = options.context ?? [CREDENTIALS_CONTEXT_V1_URL]\n this.type = options.type ?? [VERIFIABLE_PRESENTATION_TYPE]\n this.verifiableCredential = options.verifiableCredential\n\n if (options.holder) {\n this.holder = typeof options.holder === 'string' ? options.holder : new W3cHolder(options.holder)\n }\n }\n }\n\n @Expose({ name: '@context' })\n @IsCredentialJsonLdContext()\n public context!: Array<string | JsonObject>\n\n @IsOptional()\n @IsUri()\n public id?: string\n\n @IsVerifiablePresentationType()\n public type!: Array<string>\n\n @W3cHolderTransformer()\n @IsW3cHolder()\n @IsOptional()\n public holder?: string | W3cHolder\n\n @W3cVerifiableCredentialTransformer()\n @IsInstanceOrArrayOfInstances({ classType: [W3cJsonLdVerifiableCredential, W3cJwtVerifiableCredential] })\n @ValidateNested({ each: true })\n public verifiableCredential!: SingleOrArray<W3cVerifiableCredential>\n\n public get holderId(): string | null {\n if (!this.holder) return null\n\n return this.holder instanceof W3cHolder ? this.holder.id : this.holder\n }\n\n public toJSON() {\n return JsonTransformer.toJSON(this) as W3cJsonPresentation\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,IAAa,kBAAb,MAA6B;CAC3B,AAAO,YAAY,SAAiC;AAClD,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ;AAClB,QAAK,UAAU,QAAQ,WAAW,CAAC,2BAA2B;AAC9D,QAAK,OAAO,QAAQ,QAAQ,CAAC,6BAA6B;AAC1D,QAAK,uBAAuB,QAAQ;AAEpC,OAAI,QAAQ,OACV,MAAK,SAAS,OAAO,QAAQ,WAAW,WAAW,QAAQ,SAAS,IAAI,UAAU,QAAQ,OAAO;;;CA0BvG,IAAW,WAA0B;AACnC,MAAI,CAAC,KAAK,OAAQ,QAAO;AAEzB,SAAO,KAAK,kBAAkB,YAAY,KAAK,OAAO,KAAK,KAAK;;CAGlE,AAAO,SAAS;AACd,SAAO,gBAAgB,OAAO,KAAK;;;;CA5BpC,OAAO,EAAE,MAAM,YAAY,CAAC;CAC5B,2BAA2B;;;;CAG3B,YAAY;CACZ,OAAO;;;YAGP,8BAA8B;;CAG9B,sBAAsB;CACtB,aAAa;CACb,YAAY;;;;CAGZ,oCAAoC;CACpC,6BAA6B,EAAE,WAAW,CAAC,+BAA+B,2BAA2B,EAAE,CAAC;CACxG,eAAe,EAAE,MAAM,MAAM,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { JsonObject, SingleOrArray } from "../../../../types.mjs";
|
|
1
2
|
import { ClaimFormat } from "../ClaimFormat.mjs";
|
|
2
3
|
import { W3cV2Presentation } from "./W3cV2Presentation.mjs";
|
|
3
|
-
import { W3cV2JwtVerifiablePresentation } from "../../jwt-vc/W3cV2JwtVerifiablePresentation.mjs";
|
|
4
4
|
import { W3cV2SdJwtVerifiablePresentation } from "../../sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { W3cV2JwtVerifiablePresentation } from "../../jwt-vc/W3cV2JwtVerifiablePresentation.mjs";
|
|
6
6
|
import { ValidationOptions } from "class-validator";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { JsonObject, SingleOrArray } from "../../../../types.js";
|
|
1
2
|
import { ClaimFormat } from "../ClaimFormat.js";
|
|
2
3
|
import { W3cV2Presentation } from "./W3cV2Presentation.js";
|
|
3
|
-
import { W3cV2JwtVerifiablePresentation } from "../../jwt-vc/W3cV2JwtVerifiablePresentation.js";
|
|
4
4
|
import { W3cV2SdJwtVerifiablePresentation } from "../../sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.js";
|
|
5
|
-
import {
|
|
5
|
+
import { W3cV2JwtVerifiablePresentation } from "../../jwt-vc/W3cV2JwtVerifiablePresentation.js";
|
|
6
6
|
import { ValidationOptions } from "class-validator";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.d.ts
|
|
@@ -8,9 +8,9 @@ const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.9
|
|
|
8
8
|
const require_constants = require('../../constants.js');
|
|
9
9
|
const require_validators = require('../../validators.js');
|
|
10
10
|
require('./W3cV2Presentation.js');
|
|
11
|
-
const require_W3cV2JwtVerifiablePresentation = require('../../jwt-vc/W3cV2JwtVerifiablePresentation.js');
|
|
12
11
|
const require_W3cV2SdJwtVerifiablePresentation = require('../../sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.js');
|
|
13
12
|
require('../../sd-jwt-vc/index.js');
|
|
13
|
+
const require_W3cV2JwtVerifiablePresentation = require('../../jwt-vc/W3cV2JwtVerifiablePresentation.js');
|
|
14
14
|
require('../../jwt-vc/index.js');
|
|
15
15
|
let class_transformer = require("class-transformer");
|
|
16
16
|
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
@@ -7,9 +7,9 @@ import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/he
|
|
|
7
7
|
import { CREDENTIALS_CONTEXT_V2_URL, ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE, ENVELOPED_VERIFIABLE_PRESENTATION_TYPE } from "../../constants.mjs";
|
|
8
8
|
import { IsCredentialJsonLdContext } from "../../validators.mjs";
|
|
9
9
|
import "./W3cV2Presentation.mjs";
|
|
10
|
-
import { W3cV2JwtVerifiablePresentation } from "../../jwt-vc/W3cV2JwtVerifiablePresentation.mjs";
|
|
11
10
|
import { W3cV2SdJwtVerifiablePresentation } from "../../sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.mjs";
|
|
12
11
|
import "../../sd-jwt-vc/index.mjs";
|
|
12
|
+
import { W3cV2JwtVerifiablePresentation } from "../../jwt-vc/W3cV2JwtVerifiablePresentation.mjs";
|
|
13
13
|
import "../../jwt-vc/index.mjs";
|
|
14
14
|
import { Exclude, Expose } from "class-transformer";
|
|
15
15
|
import { IsDataURI, ValidateBy, buildMessage } from "class-validator";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cV2EnvelopedVerifiablePresentation.mjs","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.ts"],"sourcesContent":["import { Exclude, Expose } from 'class-transformer'\nimport { IsDataURI, ValidateBy, type ValidationOptions
|
|
1
|
+
{"version":3,"file":"W3cV2EnvelopedVerifiablePresentation.mjs","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cV2EnvelopedVerifiablePresentation.ts"],"sourcesContent":["import { Exclude, Expose } from 'class-transformer'\nimport { buildMessage, IsDataURI, ValidateBy, type ValidationOptions } from 'class-validator'\nimport { CredoError } from '../../../../error'\nimport type { JsonObject, SingleOrArray } from '../../../../types'\nimport {\n CREDENTIALS_CONTEXT_V2_URL,\n ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE,\n ENVELOPED_VERIFIABLE_PRESENTATION_TYPE,\n} from '../../constants'\nimport { W3cV2JwtVerifiablePresentation } from '../../jwt-vc'\nimport { W3cV2SdJwtVerifiablePresentation } from '../../sd-jwt-vc'\nimport { IsCredentialJsonLdContext } from '../../validators'\nimport { ClaimFormat } from '../ClaimFormat'\nimport { W3cV2Presentation } from './W3cV2Presentation'\n\nexport interface W3cV2EnvelopedVerifiablePresentationOptions {\n id: string\n context?: string | Array<string | JsonObject>\n type?: SingleOrArray<string>\n}\n\nexport class W3cV2EnvelopedVerifiablePresentation {\n @Exclude()\n private _envelopedPresentation?: W3cV2SdJwtVerifiablePresentation | W3cV2JwtVerifiablePresentation\n\n public constructor(options: W3cV2EnvelopedVerifiablePresentationOptions) {\n if (options) {\n this.context = options.context ?? CREDENTIALS_CONTEXT_V2_URL\n this.id = options.id\n this.type = options.type ?? ENVELOPED_VERIFIABLE_CREDENTIAL_TYPE\n this._envelopedPresentation = presentationFromDataUri(options.id)\n }\n }\n\n public static fromVerifiablePresentation(\n presentation: W3cV2SdJwtVerifiablePresentation | W3cV2JwtVerifiablePresentation\n ): W3cV2EnvelopedVerifiablePresentation {\n return new W3cV2EnvelopedVerifiablePresentation({\n id: presentationToDataUri(presentation),\n context: CREDENTIALS_CONTEXT_V2_URL,\n type: ENVELOPED_VERIFIABLE_PRESENTATION_TYPE,\n })\n }\n\n @Expose({ name: '@context' })\n @IsCredentialJsonLdContext({ allowString: true, credentialContext: CREDENTIALS_CONTEXT_V2_URL })\n public context!: string | Array<string | JsonObject>\n\n @IsDataURI()\n public id!: string\n\n @IsEnvelopedVerifiablePresentationType()\n public type!: SingleOrArray<string>\n\n /**\n * Gets the enveloped presentation.\n */\n public get envelopedPresentation() {\n if (!this._envelopedPresentation) {\n this._envelopedPresentation = presentationFromDataUri(this.id)\n }\n\n return this._envelopedPresentation\n }\n\n /**\n * Resolved presentation is the fully resolved {@link W3cV2Presentation} instance.\n */\n public get resolvedPresentation(): W3cV2Presentation {\n return this.envelopedPresentation.resolvedPresentation\n }\n\n /**\n * The {@link ClaimFormat} of the enveloped presentation.\n */\n public get claimFormat(): ClaimFormat.SdJwtW3cVp | ClaimFormat.JwtW3cVp {\n return this.envelopedPresentation.claimFormat\n }\n}\n\nexport function IsEnvelopedVerifiablePresentationType(validationOptions?: ValidationOptions): PropertyDecorator {\n return ValidateBy(\n {\n name: 'IsEnvelopedVerifiablePresentationType',\n validator: {\n validate: (value): boolean => {\n return Array.isArray(value)\n ? value.includes(ENVELOPED_VERIFIABLE_PRESENTATION_TYPE)\n : value === ENVELOPED_VERIFIABLE_PRESENTATION_TYPE\n },\n defaultMessage: buildMessage(\n (eachPrefix) =>\n `${eachPrefix}$property must be a string that equals, or an array of strings which includes \"${ENVELOPED_VERIFIABLE_PRESENTATION_TYPE}\"`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n\nfunction presentationFromDataUri(uri: string) {\n if (!uri.startsWith('data:')) {\n throw new CredoError('Invalid Enveloped Verifiable Presentation: \"id\" is not a valid data URI')\n }\n\n const mimetypeData = uri.slice(5)\n const commaIndex = mimetypeData.indexOf(',')\n if (commaIndex === -1) {\n throw new CredoError('Invalid Enveloped Verifiable Presentation: \"id\" data URI is missing comma separator')\n }\n\n const mimetype = mimetypeData.slice(0, commaIndex)\n const data = mimetypeData.slice(commaIndex + 1)\n\n switch (mimetype) {\n case 'application/vp+sd-jwt':\n return W3cV2SdJwtVerifiablePresentation.fromCompact(data)\n\n case 'application/vp+jwt':\n return W3cV2JwtVerifiablePresentation.fromCompact(data)\n\n default:\n throw new CredoError(`Unsupported Enveloped Verifiable Presentation: ${mimetype} not recognized`)\n }\n}\n\nfunction presentationToDataUri(presentation: W3cV2SdJwtVerifiablePresentation | W3cV2JwtVerifiablePresentation) {\n if (presentation instanceof W3cV2SdJwtVerifiablePresentation) {\n return `data:application/vp+sd-jwt,${presentation.encoded}`\n }\n\n if (presentation instanceof W3cV2JwtVerifiablePresentation) {\n return `data:application/vp+jwt,${presentation.encoded}`\n }\n\n throw new CredoError('Unsupported Verifiable Presentation instance')\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,IAAa,uCAAb,MAAa,qCAAqC;CAIhD,AAAO,YAAY,SAAsD;AACvE,MAAI,SAAS;AACX,QAAK,UAAU,QAAQ,WAAW;AAClC,QAAK,KAAK,QAAQ;AAClB,QAAK,OAAO,QAAQ,QAAQ;AAC5B,QAAK,yBAAyB,wBAAwB,QAAQ,GAAG;;;CAIrE,OAAc,2BACZ,cACsC;AACtC,SAAO,IAAI,qCAAqC;GAC9C,IAAI,sBAAsB,aAAa;GACvC,SAAS;GACT,MAAM;GACP,CAAC;;;;;CAgBJ,IAAW,wBAAwB;AACjC,MAAI,CAAC,KAAK,uBACR,MAAK,yBAAyB,wBAAwB,KAAK,GAAG;AAGhE,SAAO,KAAK;;;;;CAMd,IAAW,uBAA0C;AACnD,SAAO,KAAK,sBAAsB;;;;;CAMpC,IAAW,cAA6D;AACtE,SAAO,KAAK,sBAAsB;;;YAtDnC,SAAS;;CAsBT,OAAO,EAAE,MAAM,YAAY,CAAC;CAC5B,0BAA0B;EAAE,aAAa;EAAM,mBAAmB;EAA4B,CAAC;;;YAG/F,WAAW;YAGX,uCAAuC;AA6B1C,SAAgB,sCAAsC,mBAA0D;AAC9G,QAAO,WACL;EACE,MAAM;EACN,WAAW;GACT,WAAW,UAAmB;AAC5B,WAAO,MAAM,QAAQ,MAAM,GACvB,MAAM,SAAS,uCAAuC,GACtD,UAAU;;GAEhB,gBAAgB,cACb,eACC,GAAG,WAAW,iFAAiF,uCAAuC,IACxI,kBACD;GACF;EACF,EACD,kBACD;;AAGH,SAAS,wBAAwB,KAAa;AAC5C,KAAI,CAAC,IAAI,WAAW,QAAQ,CAC1B,OAAM,IAAI,WAAW,4EAA0E;CAGjG,MAAM,eAAe,IAAI,MAAM,EAAE;CACjC,MAAM,aAAa,aAAa,QAAQ,IAAI;AAC5C,KAAI,eAAe,GACjB,OAAM,IAAI,WAAW,wFAAsF;CAG7G,MAAM,WAAW,aAAa,MAAM,GAAG,WAAW;CAClD,MAAM,OAAO,aAAa,MAAM,aAAa,EAAE;AAE/C,SAAQ,UAAR;EACE,KAAK,wBACH,QAAO,iCAAiC,YAAY,KAAK;EAE3D,KAAK,qBACH,QAAO,+BAA+B,YAAY,KAAK;EAEzD,QACE,OAAM,IAAI,WAAW,kDAAkD,SAAS,iBAAiB;;;AAIvG,SAAS,sBAAsB,cAAiF;AAC9G,KAAI,wBAAwB,iCAC1B,QAAO,8BAA8B,aAAa;AAGpD,KAAI,wBAAwB,+BAC1B,QAAO,2BAA2B,aAAa;AAGjD,OAAM,IAAI,WAAW,+CAA+C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cV2Holder.mjs","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cV2Holder.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"W3cV2Holder.mjs","names":[],"sources":["../../../../../src/modules/vc/models/presentation/W3cV2Holder.ts"],"sourcesContent":["import {\n instanceToPlain,\n plainToClassFromExist,\n plainToInstance,\n Transform,\n TransformationType,\n} from 'class-transformer'\nimport type { ValidationOptions } from 'class-validator'\nimport { buildMessage, isInstance, isString, ValidateBy } from 'class-validator'\nimport { IsUri, isUri } from '../../../../utils'\n\nexport interface W3cV2HolderOptions {\n id: string\n [property: string]: unknown\n}\n\n/**\n * Represents a credential holder.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#holder\n */\nexport class W3cV2Holder {\n public constructor(options: W3cV2HolderOptions) {\n if (options) {\n const { id, ...rest } = options\n\n plainToClassFromExist(this, rest)\n\n this.id = id\n }\n }\n\n @IsUri()\n public id!: string;\n\n [property: string]: unknown\n}\n\nexport function W3cV2HolderTransformer() {\n return Transform(({ value, type }) => {\n if (type === TransformationType.PLAIN_TO_CLASS) {\n if (isString(value)) return value\n return plainToInstance(W3cV2Holder, value)\n }\n\n if (type === TransformationType.CLASS_TO_PLAIN) {\n if (isString(value)) return value\n return instanceToPlain(value)\n }\n\n // PLAIN_TO_PLAIN\n return value\n })\n}\n\nexport function IsW3cV2Holder(validationOptions?: ValidationOptions): PropertyDecorator {\n return ValidateBy(\n {\n name: 'IsW3cV2Holder',\n validator: {\n validate: (value): boolean => {\n return (typeof value === 'string' && isUri(value)) || (isInstance(value, W3cV2Holder) && isUri(value.id))\n },\n defaultMessage: buildMessage(\n (eachPrefix) => `${eachPrefix}$property must be an URL or a valid W3cV2Holder instance`,\n validationOptions\n ),\n },\n },\n validationOptions\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,IAAa,cAAb,MAAyB;CACvB,AAAO,YAAY,SAA6B;AAC9C,MAAI,SAAS;GACX,MAAM,EAAE,GAAI,GAAG,SAAS;AAExB,yBAAsB,MAAM,KAAK;AAEjC,QAAK,KAAK;;;;YAIb,OAAO;AAMV,SAAgB,yBAAyB;AACvC,QAAO,WAAW,EAAE,OAAO,WAAW;AACpC,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,SAAS,MAAM,CAAE,QAAO;AAC5B,UAAO,gBAAgB,aAAa,MAAM;;AAG5C,MAAI,SAAS,mBAAmB,gBAAgB;AAC9C,OAAI,SAAS,MAAM,CAAE,QAAO;AAC5B,UAAO,gBAAgB,MAAM;;AAI/B,SAAO;GACP;;AAGJ,SAAgB,cAAc,mBAA0D;AACtF,QAAO,WACL;EACE,MAAM;EACN,WAAW;GACT,WAAW,UAAmB;AAC5B,WAAQ,OAAO,UAAU,YAAY,MAAM,MAAM,IAAM,WAAW,OAAO,YAAY,IAAI,MAAM,MAAM,GAAG;;GAE1G,gBAAgB,cACb,eAAe,GAAG,WAAW,2DAC9B,kBACD;GACF;EACF,EACD,kBACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W3cV2JsonCredential } from "../credential/W3cV2JsonCredential.mjs";
|
|
2
1
|
import { JsonObject } from "../../../../types.mjs";
|
|
2
|
+
import { W3cV2JsonCredential } from "../credential/W3cV2JsonCredential.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/vc/models/presentation/W3cV2JsonPresentation.d.ts
|
|
5
5
|
interface W3cV2JsonPresentation {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W3cV2JsonCredential } from "../credential/W3cV2JsonCredential.js";
|
|
2
1
|
import { JsonObject } from "../../../../types.js";
|
|
2
|
+
import { W3cV2JsonCredential } from "../credential/W3cV2JsonCredential.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/vc/models/presentation/W3cV2JsonPresentation.d.ts
|
|
5
5
|
interface W3cV2JsonPresentation {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { JsonObject, SingleOrArray } from "../../../../types.mjs";
|
|
1
2
|
import { W3cV2EnvelopedVerifiableCredential, W3cV2EnvelopedVerifiableCredentialOptions } from "../credential/W3cV2EnvelopedVerifiableCredential.mjs";
|
|
2
3
|
import { W3cV2Holder, W3cV2HolderOptions } from "./W3cV2Holder.mjs";
|
|
3
4
|
import { W3cV2JsonPresentation } from "./W3cV2JsonPresentation.mjs";
|
|
4
|
-
import { JsonObject, SingleOrArray } from "../../../../types.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/vc/models/presentation/W3cV2Presentation.d.ts
|
|
7
7
|
interface W3cV2PresentationOptions {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { JsonObject, SingleOrArray } from "../../../../types.js";
|
|
1
2
|
import { W3cV2EnvelopedVerifiableCredential, W3cV2EnvelopedVerifiableCredentialOptions } from "../credential/W3cV2EnvelopedVerifiableCredential.js";
|
|
2
3
|
import { W3cV2Holder, W3cV2HolderOptions } from "./W3cV2Holder.js";
|
|
3
4
|
import { W3cV2JsonPresentation } from "./W3cV2JsonPresentation.js";
|
|
4
|
-
import { JsonObject, SingleOrArray } from "../../../../types.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/vc/models/presentation/W3cV2Presentation.d.ts
|
|
7
7
|
interface W3cV2PresentationOptions {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
|
|
4
4
|
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
5
5
|
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
6
|
-
const require_JsonTransformer = require('../../../../utils/JsonTransformer.js');
|
|
7
6
|
const require_array = require('../../../../utils/array.js');
|
|
7
|
+
const require_JsonTransformer = require('../../../../utils/JsonTransformer.js');
|
|
8
8
|
const require_validators = require('../../../../utils/validators.js');
|
|
9
9
|
require('../../../../utils/index.js');
|
|
10
10
|
const require_constants = require('../../constants.js');
|