@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":"presentationSelection.mjs","names":["document"],"sources":["../../../../src/modules/dif-presentation-exchange/utils/presentationSelection.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"presentationSelection.mjs","names":["document"],"sources":["../../../../src/modules/dif-presentation-exchange/utils/presentationSelection.ts"],"sourcesContent":["import { JSONPath } from '@astronautlabs/jsonpath'\nimport { CredoError } from '../../../error'\nimport type { SingleOrArray } from '../../../types'\nimport { MdocDeviceResponse } from '../../mdoc'\nimport type { W3cJsonLdVerifiableCredential, W3cJwtVerifiableCredential } from '../../vc'\nimport {\n ClaimFormat,\n W3cJsonLdVerifiablePresentation,\n W3cJwtVerifiablePresentation,\n W3cV2JwtVerifiablePresentation,\n} from '../../vc'\nimport { W3cV2SdJwtVerifiablePresentation } from '../../vc/sd-jwt-vc'\nimport type {\n DifPresentationExchangeDefinition,\n DifPresentationExchangeSubmission,\n VerifiablePresentation,\n} from '../models'\n\nexport type DifPexPresentationWithDescriptor = ReturnType<\n typeof extractPresentationsWithDescriptorsFromSubmission\n>[number]\nexport function extractPresentationsWithDescriptorsFromSubmission(\n presentations: SingleOrArray<VerifiablePresentation>,\n submission: DifPresentationExchangeSubmission,\n definition: DifPresentationExchangeDefinition\n) {\n return submission.descriptor_map.map((descriptor) => {\n const [presentation] = JSONPath.query(presentations, descriptor.path) as [VerifiablePresentation | undefined]\n const inputDescriptor = definition.input_descriptors.find(({ id }) => id === descriptor.id)\n\n if (!presentation) {\n throw new CredoError(\n `Unable to extract presentation at path '${descriptor.path}' for submission descriptor '${descriptor.id}'`\n )\n }\n\n if (!inputDescriptor) {\n throw new Error(\n `Unable to extract input descriptor '${descriptor.id}' from definition '${definition.id}' for submission '${submission.id}'`\n )\n }\n\n if (presentation instanceof MdocDeviceResponse) {\n const document = presentation.documents.find((document) => document.docType === descriptor.id)\n if (!document) {\n throw new Error(\n `Unable to extract mdoc document with doctype '${descriptor.id}' from mdoc device response for submission '${submission.id}'.`\n )\n }\n\n return {\n claimFormat: ClaimFormat.MsoMdoc,\n descriptor,\n presentation,\n credential: document,\n inputDescriptor,\n } as const\n }\n if (\n presentation instanceof W3cJwtVerifiablePresentation ||\n presentation instanceof W3cJsonLdVerifiablePresentation\n ) {\n if (!descriptor.path_nested) {\n throw new Error(\n `Submission descriptor '${descriptor.id}' for submission '${submission.id}' has no 'path_nested' but presentation is format '${presentation.claimFormat}'`\n )\n }\n\n const [verifiableCredential] = JSONPath.query(\n // Path is `$.vp.verifiableCredential[]` in case of jwt vp\n presentation.claimFormat === ClaimFormat.JwtVp ? { vp: presentation } : presentation,\n descriptor.path_nested.path\n ) as [W3cJwtVerifiableCredential | W3cJsonLdVerifiableCredential | undefined]\n\n if (!verifiableCredential) {\n throw new CredoError(\n `Unable to extract credential at path '${descriptor.path_nested.path}' from presentation at path '${descriptor.path}' for submission descriptor '${descriptor.id}'`\n )\n }\n\n return {\n claimFormat: presentation.claimFormat,\n descriptor,\n presentation,\n credential: verifiableCredential,\n inputDescriptor,\n } as const\n }\n if (\n presentation instanceof W3cV2JwtVerifiablePresentation ||\n presentation instanceof W3cV2SdJwtVerifiablePresentation\n ) {\n throw new CredoError(\n `Presentation format '${presentation.claimFormat}' is not supported with DIF Presentation Exchange`\n )\n }\n return {\n claimFormat: ClaimFormat.SdJwtDc,\n descriptor,\n presentation,\n credential: presentation,\n inputDescriptor,\n } as const\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAqBA,SAAgB,kDACd,eACA,YACA,YACA;AACA,QAAO,WAAW,eAAe,KAAK,eAAe;EACnD,MAAM,CAAC,gBAAgB,SAAS,MAAM,eAAe,WAAW,KAAK;EACrE,MAAM,kBAAkB,WAAW,kBAAkB,MAAM,EAAE,SAAS,OAAO,WAAW,GAAG;AAE3F,MAAI,CAAC,aACH,OAAM,IAAI,WACR,2CAA2C,WAAW,KAAK,+BAA+B,WAAW,GAAG,GACzG;AAGH,MAAI,CAAC,gBACH,OAAM,IAAI,MACR,uCAAuC,WAAW,GAAG,qBAAqB,WAAW,GAAG,oBAAoB,WAAW,GAAG,GAC3H;AAGH,MAAI,wBAAwB,oBAAoB;GAC9C,MAAM,WAAW,aAAa,UAAU,MAAM,eAAaA,WAAS,YAAY,WAAW,GAAG;AAC9F,OAAI,CAAC,SACH,OAAM,IAAI,MACR,iDAAiD,WAAW,GAAG,8CAA8C,WAAW,GAAG,IAC5H;AAGH,UAAO;IACL,aAAa,YAAY;IACzB;IACA;IACA,YAAY;IACZ;IACD;;AAEH,MACE,wBAAwB,gCACxB,wBAAwB,iCACxB;AACA,OAAI,CAAC,WAAW,YACd,OAAM,IAAI,MACR,0BAA0B,WAAW,GAAG,oBAAoB,WAAW,GAAG,qDAAqD,aAAa,YAAY,GACzJ;GAGH,MAAM,CAAC,wBAAwB,SAAS,MAEtC,aAAa,gBAAgB,YAAY,QAAQ,EAAE,IAAI,cAAc,GAAG,cACxE,WAAW,YAAY,KACxB;AAED,OAAI,CAAC,qBACH,OAAM,IAAI,WACR,yCAAyC,WAAW,YAAY,KAAK,+BAA+B,WAAW,KAAK,+BAA+B,WAAW,GAAG,GAClK;AAGH,UAAO;IACL,aAAa,aAAa;IAC1B;IACA;IACA,YAAY;IACZ;IACD;;AAEH,MACE,wBAAwB,kCACxB,wBAAwB,iCAExB,OAAM,IAAI,WACR,wBAAwB,aAAa,YAAY,mDAClD;AAEH,SAAO;GACL,aAAa,YAAY;GACzB;GACA;GACA,YAAY;GACZ;GACD;GACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentationsToCreate.mjs","names":["presentationsToCreate: Array<PresentationToCreate>"],"sources":["../../../../src/modules/dif-presentation-exchange/utils/presentationsToCreate.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"presentationsToCreate.mjs","names":["presentationsToCreate: Array<PresentationToCreate>"],"sources":["../../../../src/modules/dif-presentation-exchange/utils/presentationsToCreate.ts"],"sourcesContent":["import type { JsonObject } from '../../../types'\nimport { MdocRecord } from '../../mdoc'\nimport { SdJwtVcRecord } from '../../sd-jwt-vc'\nimport { ClaimFormat, W3cCredentialRecord } from '../../vc'\nimport type { DifPexInputDescriptorToCredentials } from '../models'\n\n// - the credentials included in the presentation\nexport interface SdJwtVcPresentationToCreate {\n claimFormat: ClaimFormat.SdJwtDc\n subjectIds: [] // subject is included in the cnf of the sd-jwt and automatically extracted by PEX\n verifiableCredentials: [\n {\n credential: SdJwtVcRecord\n inputDescriptorId: string\n\n /**\n * Additional payload to include in the Key Binding JWT\n */\n additionalPayload?: JsonObject\n },\n ] // only one credential supported for SD-JWT-VC\n}\n\nexport interface JwtVpPresentationToCreate {\n claimFormat: ClaimFormat.JwtVp\n subjectIds: [string] // only one subject id supported for JWT VP\n verifiableCredentials: Array<{\n credential: W3cCredentialRecord\n inputDescriptorId: string\n }> // multiple credentials supported for JWT VP\n}\n\nexport interface LdpVpPresentationToCreate {\n claimFormat: ClaimFormat.LdpVp\n // NOTE: we only support one subject id at the moment as we don't have proper\n // support yet for adding multiple proofs to an LDP-VP\n subjectIds: undefined | [string]\n verifiableCredentials: Array<{\n credential: W3cCredentialRecord\n inputDescriptorId: string\n }> // multiple credentials supported for LDP VP\n}\n\nexport interface MdocPresentationToCreate {\n claimFormat: ClaimFormat.MsoMdoc\n subjectIds: []\n verifiableCredentials: [\n {\n credential: MdocRecord\n inputDescriptorId: string\n },\n ] // only one credential supported for MDOC\n}\n\nexport type PresentationToCreate =\n | SdJwtVcPresentationToCreate\n | JwtVpPresentationToCreate\n | LdpVpPresentationToCreate\n | MdocPresentationToCreate\n\n// FIXME: we should extract supported format form top-level presentation definition, and input_descriptor as well\n// to make sure the presentation we are going to create is a presentation format supported by the verifier.\n// In addition we should allow to pass an override 'format' object, as specification like OID4VP do not use the\n// PD formats, but define their own.\nexport function getPresentationsToCreate(credentialsForInputDescriptor: DifPexInputDescriptorToCredentials) {\n const presentationsToCreate: Array<PresentationToCreate> = []\n\n // We map all credentials for a input descriptor to the different subject ids. Each subjectId will need\n // to create a separate proof (either on the same presentation or if not allowed by proof format on separate)\n // presentations\n for (const [inputDescriptorId, credentials] of Object.entries(credentialsForInputDescriptor)) {\n for (const credential of credentials) {\n if (credential.claimFormat === ClaimFormat.SdJwtDc) {\n // SD-JWT-VC always needs it's own presentation\n presentationsToCreate.push({\n claimFormat: ClaimFormat.SdJwtDc,\n subjectIds: [],\n verifiableCredentials: [\n {\n inputDescriptorId,\n credential: credential.credentialRecord,\n additionalPayload: credential.additionalPayload,\n },\n ],\n })\n } else if (credential.credentialRecord instanceof MdocRecord) {\n presentationsToCreate.push({\n claimFormat: ClaimFormat.MsoMdoc,\n verifiableCredentials: [{ inputDescriptorId, credential: credential.credentialRecord }],\n subjectIds: [],\n })\n } else {\n const subjectId = credential.credentialRecord.credential.credentialSubjectIds[0]\n\n // NOTE: we only support one subjectId per VP -- once we have proper support\n // for multiple proofs on an LDP-VP we can add multiple subjectIds to a single VP for LDP-vp only\n const expectedClaimFormat =\n credential.credentialRecord.credential.claimFormat === ClaimFormat.LdpVc\n ? ClaimFormat.LdpVp\n : ClaimFormat.JwtVp\n\n const matchingClaimFormatAndSubject = presentationsToCreate.find(\n (p): p is JwtVpPresentationToCreate =>\n p.claimFormat === expectedClaimFormat && Boolean(p.subjectIds?.includes(subjectId))\n )\n\n if (matchingClaimFormatAndSubject) {\n matchingClaimFormatAndSubject.verifiableCredentials.push({\n inputDescriptorId,\n credential: credential.credentialRecord,\n })\n } else {\n presentationsToCreate.push({\n claimFormat: expectedClaimFormat,\n subjectIds: [subjectId],\n verifiableCredentials: [{ credential: credential.credentialRecord, inputDescriptorId }],\n })\n }\n }\n }\n }\n\n return presentationsToCreate\n}\n"],"mappings":";;;;;;;;;AAgEA,SAAgB,yBAAyB,+BAAmE;CAC1G,MAAMA,wBAAqD,EAAE;AAK7D,MAAK,MAAM,CAAC,mBAAmB,gBAAgB,OAAO,QAAQ,8BAA8B,CAC1F,MAAK,MAAM,cAAc,YACvB,KAAI,WAAW,gBAAgB,YAAY,QAEzC,uBAAsB,KAAK;EACzB,aAAa,YAAY;EACzB,YAAY,EAAE;EACd,uBAAuB,CACrB;GACE;GACA,YAAY,WAAW;GACvB,mBAAmB,WAAW;GAC/B,CACF;EACF,CAAC;UACO,WAAW,4BAA4B,WAChD,uBAAsB,KAAK;EACzB,aAAa,YAAY;EACzB,uBAAuB,CAAC;GAAE;GAAmB,YAAY,WAAW;GAAkB,CAAC;EACvF,YAAY,EAAE;EACf,CAAC;MACG;EACL,MAAM,YAAY,WAAW,iBAAiB,WAAW,qBAAqB;EAI9E,MAAM,sBACJ,WAAW,iBAAiB,WAAW,gBAAgB,YAAY,QAC/D,YAAY,QACZ,YAAY;EAElB,MAAM,gCAAgC,sBAAsB,MACzD,MACC,EAAE,gBAAgB,uBAAuB,QAAQ,EAAE,YAAY,SAAS,UAAU,CAAC,CACtF;AAED,MAAI,8BACF,+BAA8B,sBAAsB,KAAK;GACvD;GACA,YAAY,WAAW;GACxB,CAAC;MAEF,uBAAsB,KAAK;GACzB,aAAa;GACb,YAAY,CAAC,UAAU;GACvB,uBAAuB,CAAC;IAAE,YAAY,WAAW;IAAkB;IAAmB,CAAC;GACxF,CAAC;;AAMV,QAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.mjs","names":[],"sources":["../../../../src/modules/dif-presentation-exchange/utils/transform.ts"],"sourcesContent":["import type {\n OriginalVerifiableCredential as SphereonOriginalVerifiableCredential,\n OriginalVerifiablePresentation as SphereonOriginalVerifiablePresentation,\n} from '@animo-id/pex/dist/main/lib/types/PexCredentialMapper'\nimport type { W3CVerifiablePresentation as SphereonW3CVerifiablePresentation } from '@sphereon/ssi-types'\nimport type { AgentContext } from '../../../agent'\nimport
|
|
1
|
+
{"version":3,"file":"transform.mjs","names":[],"sources":["../../../../src/modules/dif-presentation-exchange/utils/transform.ts"],"sourcesContent":["import type {\n OriginalVerifiableCredential as SphereonOriginalVerifiableCredential,\n OriginalVerifiablePresentation as SphereonOriginalVerifiablePresentation,\n} from '@animo-id/pex/dist/main/lib/types/PexCredentialMapper'\nimport type { W3CVerifiablePresentation as SphereonW3CVerifiablePresentation } from '@sphereon/ssi-types'\nimport type { AgentContext } from '../../../agent'\nimport { Jwt } from '../../../crypto'\nimport { JsonTransformer } from '../../../utils'\nimport type { MdocRecord } from '../../mdoc'\nimport { MdocDeviceResponse } from '../../mdoc'\nimport type { SdJwtVcRecord } from '../../sd-jwt-vc'\nimport { SdJwtVcApi } from '../../sd-jwt-vc'\nimport type { W3cCredentialRecord } from '../../vc'\nimport { W3cJsonLdVerifiablePresentation, W3cJwtVerifiablePresentation } from '../../vc'\nimport type { W3cJsonPresentation } from '../../vc/models/presentation/W3cJsonPresentation'\nimport type { VerifiablePresentation } from '../models'\n\nexport function getSphereonOriginalVerifiableCredential(\n credentialRecord: W3cCredentialRecord | SdJwtVcRecord | MdocRecord\n): SphereonOriginalVerifiableCredential {\n return credentialRecord.encoded as SphereonOriginalVerifiableCredential\n}\n\nexport function getSphereonOriginalVerifiablePresentation(\n verifiablePresentation: VerifiablePresentation\n): SphereonOriginalVerifiablePresentation {\n return verifiablePresentation.encoded as SphereonOriginalVerifiablePresentation\n}\n\n// TODO: we might want to move this to some generic vc transformation util\nexport function getVerifiablePresentationFromEncoded(\n agentContext: AgentContext,\n encodedVerifiablePresentation: string | W3cJsonPresentation | SphereonW3CVerifiablePresentation\n) {\n if (typeof encodedVerifiablePresentation === 'string' && encodedVerifiablePresentation.includes('~')) {\n const sdJwtVcApi = agentContext.dependencyManager.resolve(SdJwtVcApi)\n return sdJwtVcApi.fromCompact(encodedVerifiablePresentation)\n }\n if (typeof encodedVerifiablePresentation === 'string' && Jwt.format.test(encodedVerifiablePresentation)) {\n return W3cJwtVerifiablePresentation.fromSerializedJwt(encodedVerifiablePresentation)\n }\n if (typeof encodedVerifiablePresentation === 'object' && '@context' in encodedVerifiablePresentation) {\n return JsonTransformer.fromJSON(encodedVerifiablePresentation, W3cJsonLdVerifiablePresentation)\n }\n return MdocDeviceResponse.fromBase64Url(encodedVerifiablePresentation)\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiBA,SAAgB,wCACd,kBACsC;AACtC,QAAO,iBAAiB;;AAG1B,SAAgB,0CACd,wBACwC;AACxC,QAAO,uBAAuB;;AAIhC,SAAgB,qCACd,cACA,+BACA;AACA,KAAI,OAAO,kCAAkC,YAAY,8BAA8B,SAAS,IAAI,CAElG,QADmB,aAAa,kBAAkB,QAAQ,WAAW,CACnD,YAAY,8BAA8B;AAE9D,KAAI,OAAO,kCAAkC,YAAY,IAAI,OAAO,KAAK,8BAA8B,CACrG,QAAO,6BAA6B,kBAAkB,8BAA8B;AAEtF,KAAI,OAAO,kCAAkC,YAAY,cAAc,8BACrE,QAAO,gBAAgB,SAAS,+BAA+B,gCAAgC;AAEjG,QAAO,mBAAmB,cAAc,8BAA8B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Logger } from "../../logger/Logger.mjs";
|
|
2
1
|
import { Query, QueryOptions } from "../../storage/StorageService.mjs";
|
|
2
|
+
import { Logger } from "../../logger/Logger.mjs";
|
|
3
3
|
import { GenericRecord, SaveGenericRecordOption } from "./repository/GenericRecord.mjs";
|
|
4
4
|
import { GenericRecordService } from "./services/GenericRecordService.mjs";
|
|
5
5
|
import { AgentContext } from "../../agent/context/AgentContext.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericRecordsApi.d.mts","names":[],"sources":["../../../src/modules/generic-records/GenericRecordsApi.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"GenericRecordsApi.d.mts","names":[],"sources":["../../../src/modules/generic-records/GenericRecordsApi.ts"],"sourcesContent":[],"mappings":";;;;;;;KASY,WAAA;;;cAKC,iBAAA;EALD,QAAA,qBAAW;EAKV,QAAA,MAAA;EAAiB,QAAA,YAAA;aAMH,CAAA,qBAAA,EAAA,oBAAA,EAAA,MAAA,EACkB,MADlB,EAAA,YAAA,EAET,YAFS;MACkB,CAAA;IAAA,OAAA;IAAA,IAAA;IAAA;EAAA,CAAA,EAQF,uBARE,CAAA,EAQqB,OARrB,CAQqB,aARrB,CAAA;QAC3B,CAAA,MAAA,EAyBY,aAzBZ,CAAA,EAyB4B,OAzB5B,CAAA,IAAA,CAAA;YAOI,CAAA,EAAA,EAAA,MAAA,CAAA,EA+BiB,OA/BjB,CAAA,IAAA,CAAA;QAAS,CAAA,MAAA,EAmCD,aAnCC,CAAA,EAmCe,OAnCf,CAAA,IAAA,CAAA;UAAM,CAAA,EAAA,EAAA,MAAA,CAAA,EAgDH,OAhDG,CAgDH,aAhDG,GAAA,IAAA,CAAA;gBAAM,CAAA,KAAA,EAoDN,KApDM,CAoDA,aApDA,CAAA,EAAA,YAAA,CAAA,EAoD+B,YApD/B,CAAA,EAoD8C,OApD9C,CAoDsD,aApDtD,EAAA,CAAA;QAAuB,CAAA,CAAA,EAwDzC,OAxDyC,CAwDjC,aAxDiC,EAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Logger } from "../../logger/Logger.js";
|
|
2
1
|
import { Query, QueryOptions } from "../../storage/StorageService.js";
|
|
2
|
+
import { Logger } from "../../logger/Logger.js";
|
|
3
3
|
import { GenericRecord, SaveGenericRecordOption } from "./repository/GenericRecord.js";
|
|
4
4
|
import { GenericRecordService } from "./services/GenericRecordService.js";
|
|
5
5
|
import { AgentContext } from "../../agent/context/AgentContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericRecordsApi.d.ts","names":[],"sources":["../../../src/modules/generic-records/GenericRecordsApi.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"GenericRecordsApi.d.ts","names":[],"sources":["../../../src/modules/generic-records/GenericRecordsApi.ts"],"sourcesContent":[],"mappings":";;;;;;;KASY,WAAA;;AAAZ,CAAA;AAKa,cAAA,iBAAA,CAAiB;EAAA,QAAA,qBAAA;UAMH,MAAA;UACkB,YAAA;aAC3B,CAAA,qBAAA,EAFS,oBAET,EAAA,MAAA,EAD2B,MAC3B,EAAA,YAAA,EAAA,YAAA;MAOI,CAAA;IAAA,OAAA;IAAA,IAAA;IAAA;EAAA,CAAA,EAAqB,uBAArB,CAAA,EAA4C,OAA5C,CAA4C,aAA5C,CAAA;QAAS,CAAA,MAAA,EAkBD,aAlBC,CAAA,EAkBe,OAlBf,CAAA,IAAA,CAAA;YAAM,CAAA,EAAA,EAAA,MAAA,CAAA,EA+BE,OA/BF,CAAA,IAAA,CAAA;QAAM,CAAA,MAAA,EAmCb,aAnCa,CAAA,EAmCG,OAnCH,CAAA,IAAA,CAAA;UAAuB,CAAA,EAAA,EAAA,MAAA,CAAA,EAgDhC,OAhDgC,CAgDhC,aAhDgC,GAAA,IAAA,CAAA;gBAAA,CAAA,KAAA,EAoD7B,KApD6B,CAoDvB,aApDuB,CAAA,EAAA,YAAA,CAAA,EAoDQ,YApDR,CAAA,EAoDuB,OApDvB,CAoD+B,aApD/B,EAAA,CAAA;QAkBpC,CAAA,CAAA,EAsCL,OAtCK,CAsCG,aAtCH,EAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericRecordsApi.mjs","names":["GenericRecordsApi","logger: Logger"],"sources":["../../../src/modules/generic-records/GenericRecordsApi.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"GenericRecordsApi.mjs","names":["GenericRecordsApi","logger: Logger"],"sources":["../../../src/modules/generic-records/GenericRecordsApi.ts"],"sourcesContent":["import { AgentContext } from '../../agent'\nimport { InjectionSymbols } from '../../constants'\nimport type { Logger } from '../../logger'\nimport { inject, injectable } from '../../plugins'\nimport type { Query, QueryOptions } from '../../storage/StorageService'\nimport type { GenericRecord, SaveGenericRecordOption } from './repository/GenericRecord'\n\nimport { GenericRecordService } from './services/GenericRecordService'\n\nexport type ContentType = {\n content: string\n}\n\n@injectable()\nexport class GenericRecordsApi {\n private genericRecordsService: GenericRecordService\n private logger: Logger\n private agentContext: AgentContext\n\n public constructor(\n genericRecordsService: GenericRecordService,\n @inject(InjectionSymbols.Logger) logger: Logger,\n agentContext: AgentContext\n ) {\n this.genericRecordsService = genericRecordsService\n this.logger = logger\n this.agentContext = agentContext\n }\n\n public async save({ content, tags, id }: SaveGenericRecordOption) {\n try {\n const record = await this.genericRecordsService.save(this.agentContext, {\n id,\n content: content,\n tags: tags,\n })\n return record\n } catch (error) {\n this.logger.error('Error while saving generic-record', {\n error,\n content,\n errorMessage: error instanceof Error ? error.message : error,\n })\n throw error\n }\n }\n\n public async delete(record: GenericRecord): Promise<void> {\n try {\n await this.genericRecordsService.delete(this.agentContext, record)\n } catch (error) {\n this.logger.error('Error while saving generic-record', {\n error,\n content: record.content,\n errorMessage: error instanceof Error ? error.message : error,\n })\n throw error\n }\n }\n\n public async deleteById(id: string): Promise<void> {\n await this.genericRecordsService.deleteById(this.agentContext, id)\n }\n\n public async update(record: GenericRecord): Promise<void> {\n try {\n await this.genericRecordsService.update(this.agentContext, record)\n } catch (error) {\n this.logger.error('Error while update generic-record', {\n error,\n content: record.content,\n errorMessage: error instanceof Error ? error.message : error,\n })\n throw error\n }\n }\n\n public async findById(id: string) {\n return this.genericRecordsService.findById(this.agentContext, id)\n }\n\n public async findAllByQuery(query: Query<GenericRecord>, queryOptions?: QueryOptions): Promise<GenericRecord[]> {\n return this.genericRecordsService.findAllByQuery(this.agentContext, query, queryOptions)\n }\n\n public async getAll(): Promise<GenericRecord[]> {\n return this.genericRecordsService.getAll(this.agentContext)\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAcO,8BAAMA,oBAAkB;CAK7B,AAAO,YACL,uBACA,AAAiCC,QACjC,cACA;AACA,OAAK,wBAAwB;AAC7B,OAAK,SAAS;AACd,OAAK,eAAe;;CAGtB,MAAa,KAAK,EAAE,SAAS,MAAM,MAA+B;AAChE,MAAI;AAMF,UALe,MAAM,KAAK,sBAAsB,KAAK,KAAK,cAAc;IACtE;IACS;IACH;IACP,CAAC;WAEK,OAAO;AACd,QAAK,OAAO,MAAM,qCAAqC;IACrD;IACA;IACA,cAAc,iBAAiB,QAAQ,MAAM,UAAU;IACxD,CAAC;AACF,SAAM;;;CAIV,MAAa,OAAO,QAAsC;AACxD,MAAI;AACF,SAAM,KAAK,sBAAsB,OAAO,KAAK,cAAc,OAAO;WAC3D,OAAO;AACd,QAAK,OAAO,MAAM,qCAAqC;IACrD;IACA,SAAS,OAAO;IAChB,cAAc,iBAAiB,QAAQ,MAAM,UAAU;IACxD,CAAC;AACF,SAAM;;;CAIV,MAAa,WAAW,IAA2B;AACjD,QAAM,KAAK,sBAAsB,WAAW,KAAK,cAAc,GAAG;;CAGpE,MAAa,OAAO,QAAsC;AACxD,MAAI;AACF,SAAM,KAAK,sBAAsB,OAAO,KAAK,cAAc,OAAO;WAC3D,OAAO;AACd,QAAK,OAAO,MAAM,qCAAqC;IACrD;IACA,SAAS,OAAO;IAChB,cAAc,iBAAiB,QAAQ,MAAM,UAAU;IACxD,CAAC;AACF,SAAM;;;CAIV,MAAa,SAAS,IAAY;AAChC,SAAO,KAAK,sBAAsB,SAAS,KAAK,cAAc,GAAG;;CAGnE,MAAa,eAAe,OAA6B,cAAuD;AAC9G,SAAO,KAAK,sBAAsB,eAAe,KAAK,cAAc,OAAO,aAAa;;CAG1F,MAAa,SAAmC;AAC9C,SAAO,KAAK,sBAAsB,OAAO,KAAK,aAAa;;;;CAzE9D,YAAY;oBAQR,OAAO,iBAAiB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericRecordService.d.mts","names":[],"sources":["../../../../src/modules/generic-records/services/GenericRecordService.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"GenericRecordService.d.mts","names":[],"sources":["../../../../src/modules/generic-records/services/GenericRecordService.ts"],"sourcesContent":[],"mappings":";;;;;;cASa,oBAAA;;wCAGkC;EAHlC,IAAA,CAAA,YAAA,EAOqB,YAPD,EAAA;IAAA,OAAA;IAAA,IAAA;IAAA;EAAA,CAAA,EAOsC,uBAPtC,CAAA,EAO6D,OAP7D,CAO6D,aAP7D,CAAA;EAAA,MAAA,CAAA,YAAA,EAsBG,YAtBH,EAAA,MAAA,EAsByB,aAtBzB,CAAA,EAsByC,OAtBzC,CAAA,IAAA,CAAA;YAGc,CAAA,YAAA,EA2BP,YA3BO,EAAA,EAAA,EAAA,MAAA,CAAA,EA2BoB,OA3BpB,CAAA,IAAA,CAAA;QAIb,CAAA,YAAA,EA2BE,YA3BF,EAAA,MAAA,EA2BwB,aA3BxB,CAAA,EA2BwC,OA3BxC,CAAA,IAAA,CAAA;gBAAgB,CAAA,YAAA,EAqCN,YArCM,EAAA,KAAA,EAqCe,KArCf,CAqCqB,aArCrB,CAAA,EAAA,YAAA,CAAA,EAqCoD,YArCpD,CAAA,EAqCgE,OArChE,CAqCgE,aArChE,EAAA,CAAA;UAAS,CAAA,YAAA,EAyCrB,YAzCqB,EAAA,EAAA,EAAA,MAAA,CAAA,EAyCM,OAzCN,CAyCc,aAzCd,GAAA,IAAA,CAAA;QAAM,CAAA,YAAA,EA6C7B,YA7C6B,CAAA,EA6CjB,OA7CiB,CA6CjB,aA7CiB,EAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericRecordService.d.ts","names":[],"sources":["../../../../src/modules/generic-records/services/GenericRecordService.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"GenericRecordService.d.ts","names":[],"sources":["../../../../src/modules/generic-records/services/GenericRecordService.ts"],"sourcesContent":[],"mappings":";;;;;;cASa,oBAAA;EAAA,QAAA,wBAAoB;EAAA,WAAA,CAAA,wBAAA,EAGc,wBAHd;MAGc,CAAA,YAAA,EAIb,YAJa,EAAA;IAAA,OAAA;IAAA,IAAA;IAAA;EAAA,CAAA,EAIwB,uBAJxB,CAAA,EAI+C,OAJ/C,CAI+C,aAJ/C,CAAA;QAIb,CAAA,YAAA,EAeE,YAfF,EAAA,MAAA,EAewB,aAfxB,CAAA,EAewC,OAfxC,CAAA,IAAA,CAAA;YAAgB,CAAA,YAAA,EAuBV,YAvBU,EAAA,EAAA,EAAA,MAAA,CAAA,EAuBiB,OAvBjB,CAAA,IAAA,CAAA;QAAS,CAAA,YAAA,EA2BvB,YA3BuB,EAAA,MAAA,EA2BD,aA3BC,CAAA,EA2Be,OA3Bf,CAAA,IAAA,CAAA;gBAAM,CAAA,YAAA,EAqCrB,YArCqB,EAAA,KAAA,EAqCA,KArCA,CAqCM,aArCN,CAAA,EAAA,YAAA,CAAA,EAqCqC,YArCrC,CAAA,EAqCiD,OArCjD,CAqCiD,aArCjD,EAAA,CAAA;UAAM,CAAA,YAAA,EAyCjC,YAzCiC,EAAA,EAAA,EAAA,MAAA,CAAA,EAyCN,OAzCM,CAyCE,aAzCF,GAAA,IAAA,CAAA;QAAuB,CAAA,YAAA,EA6C1D,YA7C0D,CAAA,EA6C9C,OA7C8C,CA6C9C,aA7C8C,EAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericRecordService.mjs","names":["GenericRecordService"],"sources":["../../../../src/modules/generic-records/services/GenericRecordService.ts"],"sourcesContent":["import type { AgentContext } from '../../../agent'\nimport
|
|
1
|
+
{"version":3,"file":"GenericRecordService.mjs","names":["GenericRecordService"],"sources":["../../../../src/modules/generic-records/services/GenericRecordService.ts"],"sourcesContent":["import type { AgentContext } from '../../../agent'\nimport { CredoError } from '../../../error'\nimport { injectable } from '../../../plugins'\nimport type { Query, QueryOptions } from '../../../storage/StorageService'\nimport type { SaveGenericRecordOption } from '../repository/GenericRecord'\nimport { GenericRecord } from '../repository/GenericRecord'\nimport { GenericRecordsRepository } from '../repository/GenericRecordsRepository'\n\n@injectable()\nexport class GenericRecordService {\n private genericRecordsRepository: GenericRecordsRepository\n\n public constructor(genericRecordsRepository: GenericRecordsRepository) {\n this.genericRecordsRepository = genericRecordsRepository\n }\n\n public async save(agentContext: AgentContext, { content, tags, id }: SaveGenericRecordOption) {\n const genericRecord = new GenericRecord({\n id,\n content,\n tags,\n })\n\n try {\n await this.genericRecordsRepository.save(agentContext, genericRecord)\n return genericRecord\n } catch (error) {\n throw new CredoError(`Unable to store the genericRecord record with id ${genericRecord.id}. Message: ${error}`)\n }\n }\n\n public async delete(agentContext: AgentContext, record: GenericRecord): Promise<void> {\n try {\n await this.genericRecordsRepository.delete(agentContext, record)\n } catch (error) {\n throw new CredoError(`Unable to delete the genericRecord record with id ${record.id}. Message: ${error}`)\n }\n }\n\n public async deleteById(agentContext: AgentContext, id: string): Promise<void> {\n await this.genericRecordsRepository.deleteById(agentContext, id)\n }\n\n public async update(agentContext: AgentContext, record: GenericRecord): Promise<void> {\n try {\n await this.genericRecordsRepository.update(agentContext, record)\n } catch (error) {\n throw new CredoError(`Unable to update the genericRecord record with id ${record.id}. Message: ${error}`, {\n cause: error,\n })\n }\n }\n\n public async findAllByQuery(agentContext: AgentContext, query: Query<GenericRecord>, queryOptions?: QueryOptions) {\n return this.genericRecordsRepository.findByQuery(agentContext, query, queryOptions)\n }\n\n public async findById(agentContext: AgentContext, id: string): Promise<GenericRecord | null> {\n return this.genericRecordsRepository.findById(agentContext, id)\n }\n\n public async getAll(agentContext: AgentContext) {\n return this.genericRecordsRepository.getAll(agentContext)\n }\n}\n"],"mappings":";;;;;;;;;;;;AASO,iCAAMA,uBAAqB;CAGhC,AAAO,YAAY,0BAAoD;AACrE,OAAK,2BAA2B;;CAGlC,MAAa,KAAK,cAA4B,EAAE,SAAS,MAAM,MAA+B;EAC5F,MAAM,gBAAgB,IAAI,cAAc;GACtC;GACA;GACA;GACD,CAAC;AAEF,MAAI;AACF,SAAM,KAAK,yBAAyB,KAAK,cAAc,cAAc;AACrE,UAAO;WACA,OAAO;AACd,SAAM,IAAI,WAAW,oDAAoD,cAAc,GAAG,aAAa,QAAQ;;;CAInH,MAAa,OAAO,cAA4B,QAAsC;AACpF,MAAI;AACF,SAAM,KAAK,yBAAyB,OAAO,cAAc,OAAO;WACzD,OAAO;AACd,SAAM,IAAI,WAAW,qDAAqD,OAAO,GAAG,aAAa,QAAQ;;;CAI7G,MAAa,WAAW,cAA4B,IAA2B;AAC7E,QAAM,KAAK,yBAAyB,WAAW,cAAc,GAAG;;CAGlE,MAAa,OAAO,cAA4B,QAAsC;AACpF,MAAI;AACF,SAAM,KAAK,yBAAyB,OAAO,cAAc,OAAO;WACzD,OAAO;AACd,SAAM,IAAI,WAAW,qDAAqD,OAAO,GAAG,aAAa,SAAS,EACxG,OAAO,OACR,CAAC;;;CAIN,MAAa,eAAe,cAA4B,OAA6B,cAA6B;AAChH,SAAO,KAAK,yBAAyB,YAAY,cAAc,OAAO,aAAa;;CAGrF,MAAa,SAAS,cAA4B,IAA2C;AAC3F,SAAO,KAAK,yBAAyB,SAAS,cAAc,GAAG;;CAGjE,MAAa,OAAO,cAA4B;AAC9C,SAAO,KAAK,yBAAyB,OAAO,aAAa;;;mCAtD5D,YAAY"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { KmsJwkPrivate } from "./jwk/knownJwk.mjs";
|
|
2
|
-
import { AgentContext } from "../../agent/context/AgentContext.mjs";
|
|
3
1
|
import { KmsCreateKeyForSignatureAlgorithmOptions, KmsCreateKeyOptions, KmsCreateKeyReturn, KmsCreateKeyType, KmsCreateKeyTypeAssymetric } from "./options/KmsCreateKeyOptions.mjs";
|
|
2
|
+
import { KmsDecryptOptions, KmsDecryptReturn } from "./options/KmsDecryptOptions.mjs";
|
|
4
3
|
import { KmsDeleteKeyOptions } from "./options/KmsDeleteKeyOptions.mjs";
|
|
4
|
+
import { KmsEncryptOptions, KmsEncryptReturn } from "./options/KmsEncryptOptions.mjs";
|
|
5
|
+
import { KmsGetPublicKeyOptions } from "./options/KmsGetPublicKeyOptions.mjs";
|
|
6
|
+
import { KmsImportKeyOptions, KmsImportKeyReturn } from "./options/KmsImportKeyOptions.mjs";
|
|
7
|
+
import { KmsOperation } from "./options/KmsOperation.mjs";
|
|
5
8
|
import { KmsRandomBytesOptions, KmsRandomBytesReturn } from "./options/KmsRandomBytesOptions.mjs";
|
|
6
9
|
import { KmsSignOptions, KmsSignReturn } from "./options/KmsSignOptions.mjs";
|
|
7
10
|
import { KmsVerifyOptions, KmsVerifyReturn } from "./options/KmsVerifyOptions.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { KmsGetPublicKeyOptions } from "./options/KmsGetPublicKeyOptions.mjs";
|
|
10
|
-
import { KmsEncryptOptions, KmsEncryptReturn } from "./options/KmsEncryptOptions.mjs";
|
|
11
|
-
import { KmsDecryptOptions, KmsDecryptReturn } from "./options/KmsDecryptOptions.mjs";
|
|
12
|
-
import { KmsOperation } from "./options/KmsOperation.mjs";
|
|
11
|
+
import { KmsJwkPrivate } from "./jwk/knownJwk.mjs";
|
|
13
12
|
import { KeyManagementModuleConfig } from "./KeyManagementModuleConfig.mjs";
|
|
14
13
|
import { WithBackend } from "./options/backend.mjs";
|
|
14
|
+
import { AgentContext } from "../../agent/context/AgentContext.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/modules/kms/KeyManagementApi.d.ts
|
|
17
17
|
declare class KeyManagementApi {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementApi.d.mts","names":[],"sources":["../../../src/modules/kms/KeyManagementApi.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"KeyManagementApi.d.mts","names":[],"sources":["../../../src/modules/kms/KeyManagementApi.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;cAsCa,gBAAA;;;mCAEoB,yCACP;;;;;AAJ1B;;+BAGiC,CAAA,SAAA,EAUiB,YAVjB,CAAA,EAAA,MAAA,EAAA;;;;WA2BY,CAAA,aADP,gBACO,CAAA,CAAA,OAAA,EAAhC,WAAgC,CAApB,mBAAoB,CAAA,IAAA,CAAA,CAAA,CAAA,EACxC,OADwC,CAChC,kBADgC,CACb,IADa,CAAA,CAAA;;;;gCAChC,CAAA,OAAA,EA0BA,WA1BA,CA0BY,wCA1BZ,CAAA,CAAA,EA2BR,OA3BQ,CA2BA,kBA3BA,CA2BmB,0BA3BnB,CAAA,CAAA;;;;MA2BmB,CAAA,OAAA,EA0BH,WA1BG,CA0BS,cA1BT,CAAA,CAAA,EA0BwB,OA1BxB,CA0BQ,aAAA,CA1BR;;;;QA0BH,CAAA,OAAA,EAqBE,WArBF,CAqBc,gBArBd,CAAA,CAAA,EAqB+B,OArB/B,CAqBa,eAAA,CArBb;;;;SAqBE,CAAA,OAAA,EAmBC,WAnBD,CAmBa,iBAnBb,CAAA,CAAA,EAmB+B,OAnB/B,CAmBY,gBAAA,CAnBZ;;;;SAmBC,CAAA,OAAA,EAuBA,WAvBA,CAuBY,iBAvBZ,CAAA,CAAA,EAuB8B,OAvB9B,CAuBW,gBAAA,CAvBX;;;;WAuBA,CAAA,YA4BK,aA5BL,CAAA,CAAA,OAAA,EA6BnB,WA7BmB,CA6BP,mBA7BO,CA6Ba,GA7Bb,CAAA,CAAA,CAAA,EA8B3B,OA9B2B,CA8BnB,kBA9BmB,CA8BA,GA9BA,CAAA,CAAA;;;;cA6Ba,CAAA,OAAA,EA0BR,WA1BQ,CA0BI,sBA1BJ,CAAA,CAAA,EA0B2B,OA1B3B,CAAA;IAApB,GAAA,EAAA,IAAA;IAAZ,GAAA,EAAA,OAAA,GAAA,OAAA,GAAA,OAAA,GAAA,WAAA;IACmB,CAAA,EAAA,MAAA;IAAnB,CAAA,EAAA,MAAA;IAAR,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAyB4C,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAZ,OAAA,CAAA,EAAA,MAAA,EAAA,GAAA,SAAA;IAAmC,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAuB1B,GAAA,CAAA,EAAA,OAAA,GAAA,SAAA;IAAZ,GAAA,CAAA,EAAA,MAAA,EAAA,GAAA,SAAA;IAAgC,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAiBxB,UAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAZ,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAW,CAAA,CAAA,EAAA,SAAA;EAAuB,CAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAjB9B,YAAY,uBAAoB;;;;uBAiBpC,YAAY,yBAAD"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { KmsJwkPrivate } from "./jwk/knownJwk.js";
|
|
2
|
-
import { AgentContext } from "../../agent/context/AgentContext.js";
|
|
3
1
|
import { KmsCreateKeyForSignatureAlgorithmOptions, KmsCreateKeyOptions, KmsCreateKeyReturn, KmsCreateKeyType, KmsCreateKeyTypeAssymetric } from "./options/KmsCreateKeyOptions.js";
|
|
2
|
+
import { KmsDecryptOptions, KmsDecryptReturn } from "./options/KmsDecryptOptions.js";
|
|
4
3
|
import { KmsDeleteKeyOptions } from "./options/KmsDeleteKeyOptions.js";
|
|
4
|
+
import { KmsEncryptOptions, KmsEncryptReturn } from "./options/KmsEncryptOptions.js";
|
|
5
|
+
import { KmsGetPublicKeyOptions } from "./options/KmsGetPublicKeyOptions.js";
|
|
6
|
+
import { KmsImportKeyOptions, KmsImportKeyReturn } from "./options/KmsImportKeyOptions.js";
|
|
7
|
+
import { KmsOperation } from "./options/KmsOperation.js";
|
|
5
8
|
import { KmsRandomBytesOptions, KmsRandomBytesReturn } from "./options/KmsRandomBytesOptions.js";
|
|
6
9
|
import { KmsSignOptions, KmsSignReturn } from "./options/KmsSignOptions.js";
|
|
7
10
|
import { KmsVerifyOptions, KmsVerifyReturn } from "./options/KmsVerifyOptions.js";
|
|
8
|
-
import {
|
|
9
|
-
import { KmsGetPublicKeyOptions } from "./options/KmsGetPublicKeyOptions.js";
|
|
10
|
-
import { KmsEncryptOptions, KmsEncryptReturn } from "./options/KmsEncryptOptions.js";
|
|
11
|
-
import { KmsDecryptOptions, KmsDecryptReturn } from "./options/KmsDecryptOptions.js";
|
|
12
|
-
import { KmsOperation } from "./options/KmsOperation.js";
|
|
11
|
+
import { KmsJwkPrivate } from "./jwk/knownJwk.js";
|
|
13
12
|
import { KeyManagementModuleConfig } from "./KeyManagementModuleConfig.js";
|
|
14
13
|
import { WithBackend } from "./options/backend.js";
|
|
14
|
+
import { AgentContext } from "../../agent/context/AgentContext.js";
|
|
15
15
|
|
|
16
16
|
//#region src/modules/kms/KeyManagementApi.d.ts
|
|
17
17
|
declare class KeyManagementApi {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementApi.d.ts","names":[],"sources":["../../../src/modules/kms/KeyManagementApi.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"KeyManagementApi.d.ts","names":[],"sources":["../../../src/modules/kms/KeyManagementApi.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;cAsCa,gBAAA;;;mCAEoB,yCACP;;;AAJ1B;;;;+BAakD,CAAA,SAAA,EAAA,YAAA,CAAA,EAAA,MAAA,EAAA;;;;WAiBrC,CAAA,aADyB,gBACzB,CAAA,CAAA,OAAA,EAAA,WAAA,CAAY,mBAAZ,CAAgC,IAAhC,CAAA,CAAA,CAAA,EACR,OADQ,CACA,kBADA,CACmB,IADnB,CAAA,CAAA;;;;gCA2BY,CAAA,OAAA,EAAZ,WAAY,CAAA,wCAAA,CAAA,CAAA,EACpB,OADoB,CACZ,kBADY,CACO,0BADP,CAAA,CAAA;;;;MACpB,CAAA,OAAA,EA0BwB,WA1BxB,CA0BoC,cA1BpC,CAAA,CAAA,EA0BmD,OA1BnD,CA0BmC,aAAA,CA1BnC;;;;QA0BmD,CAAA,OAAA,EAqBzB,WArByB,CAqBb,gBArBa,CAAA,CAAA,EAqBI,OArBJ,CAqBd,eAAA,CArBc;;;;SAqBI,CAAA,OAAA,EAmB5B,WAnB4B,CAmBhB,iBAnBgB,CAAA,CAAA,EAmBE,OAnBF,CAmBjB,gBAAA,CAnBiB;;;;SAmBE,CAAA,OAAA,EAuB9B,WAvB8B,CAuBlB,iBAvBkB,CAAA,CAAA,EAuBA,OAvBA,CAuBnB,gBAAA,CAvBmB;;;;WAuBA,CAAA,YA4BzB,aA5ByB,CAAA,CAAA,OAAA,EA6BjD,WA7BiD,CA6BrC,mBA7BqC,CA6BjB,GA7BiB,CAAA,CAAA,CAAA,EA8BzD,OA9ByD,CA8BjD,kBA9BiD,CA8B9B,GA9B8B,CAAA,CAAA;;;;cA6BjD,CAAA,OAAA,EA0BwB,WA1BxB,CA0BoC,sBA1BpC,CAAA,CAAA,EA0B2D,OA1B3D,CAAA;IACmB,GAAA,EAAA,IAAA;IAAnB,GAAA,EAAA,OAAA,GAAA,OAAA,GAAA,OAAA,GAAA,WAAA;IAAR,CAAA,EAAA,MAAA;IAyB4C,CAAA,EAAA,MAAA;IAAZ,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAmC,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAuB1B,OAAA,CAAA,EAAA,MAAA,EAAA,GAAA,SAAA;IAAZ,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAgC,GAAA,CAAA,EAAA,OAAA,GAAA,SAAA;IAiBxB,GAAA,CAAA,EAAA,MAAA,EAAA,GAAA,SAAA;IAAZ,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAW,UAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAuB,GAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAjB9B,YAAY,uBAAoB;;;;uBAiBpC,YAAY,yBAAD"}
|
|
@@ -5,15 +5,16 @@ const require_AgentContext = require('../../agent/context/AgentContext.js');
|
|
|
5
5
|
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
6
6
|
const require_decorate = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
7
7
|
require('../../agent/index.js');
|
|
8
|
-
const require_zod = require('../../utils/zod.js');
|
|
9
8
|
const require_KeyManagementError = require('./error/KeyManagementError.js');
|
|
10
|
-
const require_KeyManagementModuleConfig = require('./KeyManagementModuleConfig.js');
|
|
11
9
|
const require_KeyManagementKeyNotFoundError = require('./error/KeyManagementKeyNotFoundError.js');
|
|
12
10
|
const require_humanDescription = require('./jwk/humanDescription.js');
|
|
13
11
|
const require_signing = require('./jwk/alg/signing.js');
|
|
12
|
+
const require_zod = require('../../utils/zod.js');
|
|
14
13
|
require('./jwk/index.js');
|
|
14
|
+
const require_KeyManagementModuleConfig = require('./KeyManagementModuleConfig.js');
|
|
15
15
|
const require_KmsOperation = require('./options/KmsOperation.js');
|
|
16
16
|
require('./options/index.js');
|
|
17
|
+
const require_backend = require('./options/backend.js');
|
|
17
18
|
const require_KmsCreateKeyOptions = require('./options/KmsCreateKeyOptions.js');
|
|
18
19
|
const require_KmsEncryptOptions = require('./options/KmsEncryptOptions.js');
|
|
19
20
|
const require_KmsDecryptOptions = require('./options/KmsDecryptOptions.js');
|
|
@@ -23,7 +24,6 @@ const require_KmsImportKeyOptions = require('./options/KmsImportKeyOptions.js');
|
|
|
23
24
|
const require_KmsRandomBytesOptions = require('./options/KmsRandomBytesOptions.js');
|
|
24
25
|
const require_KmsSignOptions = require('./options/KmsSignOptions.js');
|
|
25
26
|
const require_KmsVerifyOptions = require('./options/KmsVerifyOptions.js');
|
|
26
|
-
const require_backend = require('./options/backend.js');
|
|
27
27
|
let tsyringe = require("tsyringe");
|
|
28
28
|
tsyringe = require_rolldown_runtime.__toESM(tsyringe);
|
|
29
29
|
|
|
@@ -63,7 +63,7 @@ let KeyManagementApi = class KeyManagementApi$1 {
|
|
|
63
63
|
*/
|
|
64
64
|
async createKeyForSignatureAlgorithm(options) {
|
|
65
65
|
const { backend, algorithm,...kmsOptions } = require_zod.zParseWithErrorHandling(require_backend.zWithBackend(require_KmsCreateKeyOptions.zKmsCreateKeyForSignatureAlgorithmOptions), options, "Invalid options provided to createKeyForSignatureAlgorithm method");
|
|
66
|
-
const type = require_signing.createKeyTypeForSigningAlgorithm(
|
|
66
|
+
const type = require_signing.createKeyTypeForSigningAlgorithm(algorithm);
|
|
67
67
|
const key = await this.getKms(this.agentContext, backend, {
|
|
68
68
|
operation: "createKey",
|
|
69
69
|
type
|
|
@@ -139,7 +139,7 @@ let KeyManagementApi = class KeyManagementApi$1 {
|
|
|
139
139
|
async getPublicKey(options) {
|
|
140
140
|
const { backend, keyId } = require_zod.zParseWithErrorHandling(require_backend.zWithBackend(require_KmsGetPublicKeyOptions.zKmsGetPublicKeyOptions), options, "Invalid options provided to getPublicKey method");
|
|
141
141
|
if (backend) {
|
|
142
|
-
if (!await this.getKms(this.agentContext, backend).getPublicKey(this.agentContext, keyId)) throw new require_KeyManagementKeyNotFoundError.KeyManagementKeyNotFoundError(keyId, backend);
|
|
142
|
+
if (!await this.getKms(this.agentContext, backend).getPublicKey(this.agentContext, keyId)) throw new require_KeyManagementKeyNotFoundError.KeyManagementKeyNotFoundError(keyId, [backend]);
|
|
143
143
|
}
|
|
144
144
|
const { publicKey } = await this.getKmsForOperationAndKeyId(this.agentContext, options.keyId);
|
|
145
145
|
return publicKey;
|
|
@@ -178,8 +178,8 @@ let KeyManagementApi = class KeyManagementApi$1 {
|
|
|
178
178
|
kms
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
if (operation) throw new
|
|
182
|
-
throw new
|
|
181
|
+
if (operation) throw new require_KeyManagementKeyNotFoundError.KeyManagementKeyNotFoundError(keyId, this.keyManagementConfig.backends.map((b) => b.backend), `The key may exist in one of the key management services in which case the key management service does not support the ${require_KmsOperation.getKmsOperationHumanDescription(operation)}`);
|
|
182
|
+
throw new require_KeyManagementKeyNotFoundError.KeyManagementKeyNotFoundError(keyId, this.keyManagementConfig.backends.map((b) => b.backend));
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* Get the kms backend for a specific operation.
|
|
@@ -4,15 +4,16 @@ import { AgentContext } from "../../agent/context/AgentContext.mjs";
|
|
|
4
4
|
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
5
5
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
6
6
|
import "../../agent/index.mjs";
|
|
7
|
-
import { zParseWithErrorHandling } from "../../utils/zod.mjs";
|
|
8
7
|
import { KeyManagementError } from "./error/KeyManagementError.mjs";
|
|
9
|
-
import { KeyManagementModuleConfig } from "./KeyManagementModuleConfig.mjs";
|
|
10
8
|
import { KeyManagementKeyNotFoundError } from "./error/KeyManagementKeyNotFoundError.mjs";
|
|
11
9
|
import { getJwkHumanDescription } from "./jwk/humanDescription.mjs";
|
|
12
10
|
import { createKeyTypeForSigningAlgorithm } from "./jwk/alg/signing.mjs";
|
|
11
|
+
import { zParseWithErrorHandling } from "../../utils/zod.mjs";
|
|
13
12
|
import "./jwk/index.mjs";
|
|
13
|
+
import { KeyManagementModuleConfig } from "./KeyManagementModuleConfig.mjs";
|
|
14
14
|
import { getKmsOperationHumanDescription } from "./options/KmsOperation.mjs";
|
|
15
15
|
import "./options/index.mjs";
|
|
16
|
+
import { zWithBackend } from "./options/backend.mjs";
|
|
16
17
|
import { zKmsCreateKeyForSignatureAlgorithmOptions, zKmsCreateKeyOptions } from "./options/KmsCreateKeyOptions.mjs";
|
|
17
18
|
import { zKmsEncryptOptions } from "./options/KmsEncryptOptions.mjs";
|
|
18
19
|
import { zKmsDecryptOptions } from "./options/KmsDecryptOptions.mjs";
|
|
@@ -22,7 +23,6 @@ import { zKmsImportKeyOptions } from "./options/KmsImportKeyOptions.mjs";
|
|
|
22
23
|
import { zKmsRandomBytesOptions } from "./options/KmsRandomBytesOptions.mjs";
|
|
23
24
|
import { zKmsSignOptions } from "./options/KmsSignOptions.mjs";
|
|
24
25
|
import { zKmsVerifyOptions } from "./options/KmsVerifyOptions.mjs";
|
|
25
|
-
import { zWithBackend } from "./options/backend.mjs";
|
|
26
26
|
import { injectable } from "tsyringe";
|
|
27
27
|
|
|
28
28
|
//#region src/modules/kms/KeyManagementApi.ts
|
|
@@ -61,7 +61,7 @@ let KeyManagementApi = class KeyManagementApi$1 {
|
|
|
61
61
|
*/
|
|
62
62
|
async createKeyForSignatureAlgorithm(options) {
|
|
63
63
|
const { backend, algorithm,...kmsOptions } = zParseWithErrorHandling(zWithBackend(zKmsCreateKeyForSignatureAlgorithmOptions), options, "Invalid options provided to createKeyForSignatureAlgorithm method");
|
|
64
|
-
const type = createKeyTypeForSigningAlgorithm(
|
|
64
|
+
const type = createKeyTypeForSigningAlgorithm(algorithm);
|
|
65
65
|
const key = await this.getKms(this.agentContext, backend, {
|
|
66
66
|
operation: "createKey",
|
|
67
67
|
type
|
|
@@ -137,7 +137,7 @@ let KeyManagementApi = class KeyManagementApi$1 {
|
|
|
137
137
|
async getPublicKey(options) {
|
|
138
138
|
const { backend, keyId } = zParseWithErrorHandling(zWithBackend(zKmsGetPublicKeyOptions), options, "Invalid options provided to getPublicKey method");
|
|
139
139
|
if (backend) {
|
|
140
|
-
if (!await this.getKms(this.agentContext, backend).getPublicKey(this.agentContext, keyId)) throw new KeyManagementKeyNotFoundError(keyId, backend);
|
|
140
|
+
if (!await this.getKms(this.agentContext, backend).getPublicKey(this.agentContext, keyId)) throw new KeyManagementKeyNotFoundError(keyId, [backend]);
|
|
141
141
|
}
|
|
142
142
|
const { publicKey } = await this.getKmsForOperationAndKeyId(this.agentContext, options.keyId);
|
|
143
143
|
return publicKey;
|
|
@@ -176,8 +176,8 @@ let KeyManagementApi = class KeyManagementApi$1 {
|
|
|
176
176
|
kms
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
if (operation) throw new
|
|
180
|
-
throw new
|
|
179
|
+
if (operation) throw new KeyManagementKeyNotFoundError(keyId, this.keyManagementConfig.backends.map((b) => b.backend), `The key may exist in one of the key management services in which case the key management service does not support the ${getKmsOperationHumanDescription(operation)}`);
|
|
180
|
+
throw new KeyManagementKeyNotFoundError(keyId, this.keyManagementConfig.backends.map((b) => b.backend));
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Get the kms backend for a specific operation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementApi.mjs","names":["KeyManagementApi","keyManagementConfig: KeyManagementModuleConfig","agentContext: AgentContext","supportedBackends: string[]","kms"],"sources":["../../../src/modules/kms/KeyManagementApi.ts"],"sourcesContent":["import { injectable } from 'tsyringe'\n\nimport { AgentContext } from '../../agent'\nimport { zParseWithErrorHandling } from '../../utils/zod'\n\nimport { KeyManagementModuleConfig } from './KeyManagementModuleConfig'\nimport { KeyManagementError } from './error/KeyManagementError'\nimport { KeyManagementKeyNotFoundError } from './error/KeyManagementKeyNotFoundError'\nimport { type KmsJwkPrivate, getJwkHumanDescription } from './jwk'\nimport { createKeyTypeForSigningAlgorithm } from './jwk/alg/signing'\nimport {\n type KmsDecryptOptions,\n type KmsDeleteKeyOptions,\n type KmsGetPublicKeyOptions,\n type KmsImportKeyOptions,\n type KmsOperation,\n type KmsRandomBytesOptions,\n getKmsOperationHumanDescription,\n} from './options'\nimport {\n type KmsCreateKeyForSignatureAlgorithmOptions,\n type KmsCreateKeyOptions,\n type KmsCreateKeyReturn,\n type KmsCreateKeyType,\n type KmsCreateKeyTypeAssymetric,\n zKmsCreateKeyForSignatureAlgorithmOptions,\n zKmsCreateKeyOptions,\n} from './options/KmsCreateKeyOptions'\nimport { zKmsDecryptOptions } from './options/KmsDecryptOptions'\nimport { zKmsDeleteKeyOptions } from './options/KmsDeleteKeyOptions'\nimport { type KmsEncryptOptions, zKmsEncryptOptions } from './options/KmsEncryptOptions'\nimport { zKmsGetPublicKeyOptions } from './options/KmsGetPublicKeyOptions'\nimport { type KmsImportKeyReturn, zKmsImportKeyOptions } from './options/KmsImportKeyOptions'\nimport { zKmsRandomBytesOptions } from './options/KmsRandomBytesOptions'\nimport { type KmsSignOptions, zKmsSignOptions } from './options/KmsSignOptions'\nimport { type KmsVerifyOptions, zKmsVerifyOptions } from './options/KmsVerifyOptions'\nimport { type WithBackend, zWithBackend } from './options/backend'\n\n@injectable()\nexport class KeyManagementApi {\n public constructor(\n private keyManagementConfig: KeyManagementModuleConfig,\n private agentContext: AgentContext\n ) {}\n\n /**\n * Whether an operation is supported.\n *\n * @returns a list of backends that support the operation. In case\n * no backends are supported it returns an empty array\n */\n public supportedBackendsForOperation(operation: KmsOperation): string[] {\n const supportedBackends: string[] = []\n\n for (const kms of this.keyManagementConfig.backends) {\n const isOperationSupported = kms.isOperationSupported(this.agentContext, operation)\n if (isOperationSupported) {\n supportedBackends.push(kms.backend)\n }\n }\n\n return supportedBackends\n }\n\n /**\n * Create a key.\n */\n public async createKey<Type extends KmsCreateKeyType>(\n options: WithBackend<KmsCreateKeyOptions<Type>>\n ): Promise<KmsCreateKeyReturn<Type>> {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsCreateKeyOptions),\n options,\n 'Invalid options provided to createKey method'\n )\n\n const kms = this.getKms(this.agentContext, backend, {\n operation: 'createKey',\n type: options.type,\n })\n\n const key = await kms.createKey(this.agentContext, kmsOptions)\n key.publicJwk.kid = key.keyId\n\n this.agentContext.config.logger.debug(\n `Created key ${getJwkHumanDescription(key.publicJwk)} with key id '${key.keyId}'`\n )\n\n return key\n }\n\n /**\n * Create a key.\n */\n public async createKeyForSignatureAlgorithm(\n options: WithBackend<KmsCreateKeyForSignatureAlgorithmOptions>\n ): Promise<KmsCreateKeyReturn<KmsCreateKeyTypeAssymetric>> {\n const { backend, algorithm, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsCreateKeyForSignatureAlgorithmOptions),\n options,\n 'Invalid options provided to createKeyForSignatureAlgorithm method'\n )\n\n const type = createKeyTypeForSigningAlgorithm(options.algorithm)\n const kms = this.getKms(this.agentContext, backend, {\n operation: 'createKey',\n type,\n })\n\n // Ensure the kid is set to the keyId\n const key = await kms.createKey(this.agentContext, {\n ...kmsOptions,\n type,\n })\n key.publicJwk.kid = key.keyId\n\n return key\n }\n\n /**\n * Sign using a key.\n */\n public async sign(options: WithBackend<KmsSignOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsSignOptions),\n options,\n 'Invalid options provided to sign method'\n )\n\n const operation = {\n operation: 'sign',\n algorithm: options.algorithm,\n } as const\n\n const kms = backend\n ? this.getKms(this.agentContext, backend, operation)\n : (await this.getKmsForOperationAndKeyId(this.agentContext, options.keyId, operation)).kms\n return await kms.sign(this.agentContext, kmsOptions)\n }\n\n /**\n * Verify using a key.\n */\n public async verify(options: WithBackend<KmsVerifyOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsVerifyOptions),\n options,\n 'Invalid options provided to verify method'\n )\n\n const operation = { operation: 'verify', algorithm: options.algorithm } as const\n const kms =\n backend || typeof options.key !== 'string'\n ? this.getKms(this.agentContext, backend, operation)\n : (await this.getKmsForOperationAndKeyId(this.agentContext, options.key, operation)).kms\n\n return await kms.verify(this.agentContext, kmsOptions)\n }\n\n /**\n * Encrypt.\n */\n public async encrypt(options: WithBackend<KmsEncryptOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsEncryptOptions),\n options,\n 'Invalid options provided to encrypt method'\n )\n\n const operation = {\n operation: 'encrypt',\n encryption: options.encryption,\n keyAgreement: options.key.keyAgreement,\n } as const\n const kms =\n backend || typeof options.key !== 'string'\n ? this.getKms(this.agentContext, backend, operation)\n : (await this.getKmsForOperationAndKeyId(this.agentContext, options.key, operation)).kms\n\n return await kms.encrypt(this.agentContext, kmsOptions)\n }\n\n /**\n * Decrypt.\n */\n public async decrypt(options: WithBackend<KmsDecryptOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsDecryptOptions),\n options,\n 'Invalid options provided to decrypt method'\n )\n\n const operation = {\n operation: 'decrypt',\n decryption: options.decryption,\n keyAgreement: options.key.keyAgreement,\n } as const\n const kms =\n backend || typeof options.key !== 'string'\n ? this.getKms(\n this.agentContext,\n\n backend,\n operation\n )\n : (await this.getKmsForOperationAndKeyId(this.agentContext, options.key, operation)).kms\n\n return await kms.decrypt(this.agentContext, kmsOptions)\n }\n\n /**\n * Import a key.\n */\n public async importKey<Jwk extends KmsJwkPrivate>(\n options: WithBackend<KmsImportKeyOptions<Jwk>>\n ): Promise<KmsImportKeyReturn<Jwk>> {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsImportKeyOptions),\n options,\n 'Invalid options provided to importKey method'\n )\n\n const operation = {\n operation: 'importKey',\n privateJwk: options.privateJwk,\n } as const\n const kms = this.getKms(this.agentContext, backend, operation)\n\n const key = await kms.importKey(this.agentContext, kmsOptions)\n\n this.agentContext.config.logger.trace(\n `Imported key ${getJwkHumanDescription(key.publicJwk)} with key id '${key.keyId}'`\n )\n\n return key\n }\n\n /**\n * Get a public key.\n */\n public async getPublicKey(options: WithBackend<KmsGetPublicKeyOptions>) {\n const { backend, keyId } = zParseWithErrorHandling(\n zWithBackend(zKmsGetPublicKeyOptions),\n options,\n 'Invalid options provided to getPublicKey method'\n )\n\n if (backend) {\n const kms = this.getKms(this.agentContext, backend)\n const publicKey = await kms.getPublicKey(this.agentContext, keyId)\n\n if (!publicKey) {\n throw new KeyManagementKeyNotFoundError(keyId, backend)\n }\n }\n\n const { publicKey } = await this.getKmsForOperationAndKeyId(this.agentContext, options.keyId)\n return publicKey\n }\n\n /**\n * Delete a key.\n */\n public async deleteKey(options: WithBackend<KmsDeleteKeyOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsDeleteKeyOptions),\n options,\n 'Invalid options provided to deleteKey method'\n )\n\n const operation = {\n operation: 'deleteKey',\n } as const\n const kms = this.getKms(this.agentContext, backend, operation)\n return await kms.deleteKey(this.agentContext, kmsOptions)\n }\n\n /**\n * Generate random bytes\n */\n public randomBytes(options: WithBackend<KmsRandomBytesOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsRandomBytesOptions),\n options,\n 'Invalid options provided to randomBytes method'\n )\n\n const operation = {\n operation: 'randomBytes',\n } as const\n const kms = this.getKms(this.agentContext, backend, operation)\n return kms.randomBytes(this.agentContext, kmsOptions)\n }\n\n /**\n * Get the kms associated with a specific `keyId`.\n *\n * This uses a naive approach of fetching the key for each configured kms\n * until it finds the registered key.\n *\n * In the future this approach might be optimized based on:\n * - caching\n * - keeping a registry\n * - backend specific key prefixes\n */\n private async getKmsForOperationAndKeyId(agentContext: AgentContext, keyId: string, operation?: KmsOperation) {\n for (const kms of this.keyManagementConfig.backends) {\n const isOperationSupported = operation ? kms.isOperationSupported(agentContext, operation) : true\n if (!isOperationSupported) continue\n\n const publicKey = await kms.getPublicKey(this.agentContext, keyId)\n if (publicKey)\n return {\n publicKey,\n kms,\n }\n }\n\n if (operation) {\n throw new KeyManagementError(\n `No key management service supports ${getKmsOperationHumanDescription(operation)} that has a key with keyId '${keyId}'`\n )\n }\n\n throw new KeyManagementError(`No key management service has a key with keyId '${keyId}'`)\n }\n\n /**\n * Get the kms backend for a specific operation.\n *\n * If a backend is provided, it will be checked if the backend supports\n * the operation. Otherwise the first backend that supports the operation\n * will be used.\n */\n private getKms(agentContext: AgentContext, backend?: string, operation?: KmsOperation) {\n if (backend) {\n const kms = this.keyManagementConfig.backends.find((kms) => kms.backend === backend)\n if (!kms) {\n const availableBackends = this.keyManagementConfig.backends.map((kms) => `'${kms.backend}'`)\n throw new KeyManagementError(\n `No key management service is configured for backend '${backend}'. Available backends are ${availableBackends.join(\n ', '\n )}`\n )\n }\n\n const isOperationSupported = operation ? kms.isOperationSupported(agentContext, operation) : true\n if (!isOperationSupported && operation) {\n throw new KeyManagementError(\n `Key management service backend '${backend}' does not support ${getKmsOperationHumanDescription(operation)}`\n )\n }\n\n return kms\n }\n\n for (const kms of this.keyManagementConfig.backends) {\n const isOperationSupported = operation ? kms.isOperationSupported(agentContext, operation) : true\n if (isOperationSupported) return kms\n }\n\n if (operation) {\n throw new KeyManagementError(\n `No key management service backend found that supports ${getKmsOperationHumanDescription(operation)}`\n )\n }\n\n throw new KeyManagementError('No key management service backend found.')\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"KeyManagementApi.mjs","names":["KeyManagementApi","keyManagementConfig: KeyManagementModuleConfig","agentContext: AgentContext","supportedBackends: string[]","kms"],"sources":["../../../src/modules/kms/KeyManagementApi.ts"],"sourcesContent":["import { injectable } from 'tsyringe'\n\nimport { AgentContext } from '../../agent'\nimport { zParseWithErrorHandling } from '../../utils/zod'\nimport { KeyManagementError } from './error/KeyManagementError'\nimport { KeyManagementKeyNotFoundError } from './error/KeyManagementKeyNotFoundError'\nimport { getJwkHumanDescription, type KmsJwkPrivate } from './jwk'\nimport { createKeyTypeForSigningAlgorithm } from './jwk/alg/signing'\nimport { KeyManagementModuleConfig } from './KeyManagementModuleConfig'\nimport {\n getKmsOperationHumanDescription,\n type KmsDecryptOptions,\n type KmsDeleteKeyOptions,\n type KmsGetPublicKeyOptions,\n type KmsImportKeyOptions,\n type KmsOperation,\n type KmsRandomBytesOptions,\n} from './options'\nimport { type WithBackend, zWithBackend } from './options/backend'\nimport {\n type KmsCreateKeyForSignatureAlgorithmOptions,\n type KmsCreateKeyOptions,\n type KmsCreateKeyReturn,\n type KmsCreateKeyType,\n type KmsCreateKeyTypeAssymetric,\n zKmsCreateKeyForSignatureAlgorithmOptions,\n zKmsCreateKeyOptions,\n} from './options/KmsCreateKeyOptions'\nimport { zKmsDecryptOptions } from './options/KmsDecryptOptions'\nimport { zKmsDeleteKeyOptions } from './options/KmsDeleteKeyOptions'\nimport { type KmsEncryptOptions, zKmsEncryptOptions } from './options/KmsEncryptOptions'\nimport { zKmsGetPublicKeyOptions } from './options/KmsGetPublicKeyOptions'\nimport { type KmsImportKeyReturn, zKmsImportKeyOptions } from './options/KmsImportKeyOptions'\nimport { zKmsRandomBytesOptions } from './options/KmsRandomBytesOptions'\nimport { type KmsSignOptions, zKmsSignOptions } from './options/KmsSignOptions'\nimport { type KmsVerifyOptions, zKmsVerifyOptions } from './options/KmsVerifyOptions'\n\n@injectable()\nexport class KeyManagementApi {\n public constructor(\n private keyManagementConfig: KeyManagementModuleConfig,\n private agentContext: AgentContext\n ) {}\n\n /**\n * Whether an operation is supported.\n *\n * @returns a list of backends that support the operation. In case\n * no backends are supported it returns an empty array\n */\n public supportedBackendsForOperation(operation: KmsOperation): string[] {\n const supportedBackends: string[] = []\n\n for (const kms of this.keyManagementConfig.backends) {\n const isOperationSupported = kms.isOperationSupported(this.agentContext, operation)\n if (isOperationSupported) {\n supportedBackends.push(kms.backend)\n }\n }\n\n return supportedBackends\n }\n\n /**\n * Create a key.\n */\n public async createKey<Type extends KmsCreateKeyType>(\n options: WithBackend<KmsCreateKeyOptions<Type>>\n ): Promise<KmsCreateKeyReturn<Type>> {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsCreateKeyOptions),\n options,\n 'Invalid options provided to createKey method'\n )\n\n const kms = this.getKms(this.agentContext, backend, {\n operation: 'createKey',\n type: options.type,\n })\n\n const key = await kms.createKey(this.agentContext, kmsOptions)\n key.publicJwk.kid = key.keyId\n\n this.agentContext.config.logger.debug(\n `Created key ${getJwkHumanDescription(key.publicJwk)} with key id '${key.keyId}'`\n )\n\n return key\n }\n\n /**\n * Create a key.\n */\n public async createKeyForSignatureAlgorithm(\n options: WithBackend<KmsCreateKeyForSignatureAlgorithmOptions>\n ): Promise<KmsCreateKeyReturn<KmsCreateKeyTypeAssymetric>> {\n const { backend, algorithm, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsCreateKeyForSignatureAlgorithmOptions),\n options,\n 'Invalid options provided to createKeyForSignatureAlgorithm method'\n )\n\n const type = createKeyTypeForSigningAlgorithm(algorithm)\n const kms = this.getKms(this.agentContext, backend, {\n operation: 'createKey',\n type,\n })\n\n // Ensure the kid is set to the keyId\n const key = await kms.createKey(this.agentContext, {\n ...kmsOptions,\n type,\n })\n key.publicJwk.kid = key.keyId\n\n return key\n }\n\n /**\n * Sign using a key.\n */\n public async sign(options: WithBackend<KmsSignOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsSignOptions),\n options,\n 'Invalid options provided to sign method'\n )\n\n const operation = {\n operation: 'sign',\n algorithm: options.algorithm,\n } as const\n\n const kms = backend\n ? this.getKms(this.agentContext, backend, operation)\n : (await this.getKmsForOperationAndKeyId(this.agentContext, options.keyId, operation)).kms\n return await kms.sign(this.agentContext, kmsOptions)\n }\n\n /**\n * Verify using a key.\n */\n public async verify(options: WithBackend<KmsVerifyOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsVerifyOptions),\n options,\n 'Invalid options provided to verify method'\n )\n\n const operation = { operation: 'verify', algorithm: options.algorithm } as const\n const kms =\n backend || typeof options.key !== 'string'\n ? this.getKms(this.agentContext, backend, operation)\n : (await this.getKmsForOperationAndKeyId(this.agentContext, options.key, operation)).kms\n\n return await kms.verify(this.agentContext, kmsOptions)\n }\n\n /**\n * Encrypt.\n */\n public async encrypt(options: WithBackend<KmsEncryptOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsEncryptOptions),\n options,\n 'Invalid options provided to encrypt method'\n )\n\n const operation = {\n operation: 'encrypt',\n encryption: options.encryption,\n keyAgreement: options.key.keyAgreement,\n } as const\n const kms =\n backend || typeof options.key !== 'string'\n ? this.getKms(this.agentContext, backend, operation)\n : (await this.getKmsForOperationAndKeyId(this.agentContext, options.key, operation)).kms\n\n return await kms.encrypt(this.agentContext, kmsOptions)\n }\n\n /**\n * Decrypt.\n */\n public async decrypt(options: WithBackend<KmsDecryptOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsDecryptOptions),\n options,\n 'Invalid options provided to decrypt method'\n )\n\n const operation = {\n operation: 'decrypt',\n decryption: options.decryption,\n keyAgreement: options.key.keyAgreement,\n } as const\n const kms =\n backend || typeof options.key !== 'string'\n ? this.getKms(\n this.agentContext,\n\n backend,\n operation\n )\n : (await this.getKmsForOperationAndKeyId(this.agentContext, options.key, operation)).kms\n\n return await kms.decrypt(this.agentContext, kmsOptions)\n }\n\n /**\n * Import a key.\n */\n public async importKey<Jwk extends KmsJwkPrivate>(\n options: WithBackend<KmsImportKeyOptions<Jwk>>\n ): Promise<KmsImportKeyReturn<Jwk>> {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsImportKeyOptions),\n options,\n 'Invalid options provided to importKey method'\n )\n\n const operation = {\n operation: 'importKey',\n privateJwk: options.privateJwk,\n } as const\n const kms = this.getKms(this.agentContext, backend, operation)\n\n const key = await kms.importKey(this.agentContext, kmsOptions)\n\n this.agentContext.config.logger.trace(\n `Imported key ${getJwkHumanDescription(key.publicJwk)} with key id '${key.keyId}'`\n )\n\n return key\n }\n\n /**\n * Get a public key.\n */\n public async getPublicKey(options: WithBackend<KmsGetPublicKeyOptions>) {\n const { backend, keyId } = zParseWithErrorHandling(\n zWithBackend(zKmsGetPublicKeyOptions),\n options,\n 'Invalid options provided to getPublicKey method'\n )\n\n if (backend) {\n const kms = this.getKms(this.agentContext, backend)\n const publicKey = await kms.getPublicKey(this.agentContext, keyId)\n\n if (!publicKey) {\n throw new KeyManagementKeyNotFoundError(keyId, [backend])\n }\n }\n\n const { publicKey } = await this.getKmsForOperationAndKeyId(this.agentContext, options.keyId)\n return publicKey\n }\n\n /**\n * Delete a key.\n */\n public async deleteKey(options: WithBackend<KmsDeleteKeyOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsDeleteKeyOptions),\n options,\n 'Invalid options provided to deleteKey method'\n )\n\n const operation = {\n operation: 'deleteKey',\n } as const\n const kms = this.getKms(this.agentContext, backend, operation)\n return await kms.deleteKey(this.agentContext, kmsOptions)\n }\n\n /**\n * Generate random bytes\n */\n public randomBytes(options: WithBackend<KmsRandomBytesOptions>) {\n const { backend, ...kmsOptions } = zParseWithErrorHandling(\n zWithBackend(zKmsRandomBytesOptions),\n options,\n 'Invalid options provided to randomBytes method'\n )\n\n const operation = {\n operation: 'randomBytes',\n } as const\n const kms = this.getKms(this.agentContext, backend, operation)\n return kms.randomBytes(this.agentContext, kmsOptions)\n }\n\n /**\n * Get the kms associated with a specific `keyId`.\n *\n * This uses a naive approach of fetching the key for each configured kms\n * until it finds the registered key.\n *\n * In the future this approach might be optimized based on:\n * - caching\n * - keeping a registry\n * - backend specific key prefixes\n */\n private async getKmsForOperationAndKeyId(agentContext: AgentContext, keyId: string, operation?: KmsOperation) {\n for (const kms of this.keyManagementConfig.backends) {\n const isOperationSupported = operation ? kms.isOperationSupported(agentContext, operation) : true\n if (!isOperationSupported) continue\n\n const publicKey = await kms.getPublicKey(this.agentContext, keyId)\n if (publicKey)\n return {\n publicKey,\n kms,\n }\n }\n\n if (operation) {\n throw new KeyManagementKeyNotFoundError(\n keyId,\n this.keyManagementConfig.backends.map((b) => b.backend),\n `The key may exist in one of the key management services in which case the key management service does not support the ${getKmsOperationHumanDescription(operation)}`\n )\n }\n\n throw new KeyManagementKeyNotFoundError(\n keyId,\n this.keyManagementConfig.backends.map((b) => b.backend)\n )\n }\n\n /**\n * Get the kms backend for a specific operation.\n *\n * If a backend is provided, it will be checked if the backend supports\n * the operation. Otherwise the first backend that supports the operation\n * will be used.\n */\n private getKms(agentContext: AgentContext, backend?: string, operation?: KmsOperation) {\n if (backend) {\n const kms = this.keyManagementConfig.backends.find((kms) => kms.backend === backend)\n if (!kms) {\n const availableBackends = this.keyManagementConfig.backends.map((kms) => `'${kms.backend}'`)\n throw new KeyManagementError(\n `No key management service is configured for backend '${backend}'. Available backends are ${availableBackends.join(\n ', '\n )}`\n )\n }\n\n const isOperationSupported = operation ? kms.isOperationSupported(agentContext, operation) : true\n if (!isOperationSupported && operation) {\n throw new KeyManagementError(\n `Key management service backend '${backend}' does not support ${getKmsOperationHumanDescription(operation)}`\n )\n }\n\n return kms\n }\n\n for (const kms of this.keyManagementConfig.backends) {\n const isOperationSupported = operation ? kms.isOperationSupported(agentContext, operation) : true\n if (isOperationSupported) return kms\n }\n\n if (operation) {\n throw new KeyManagementError(\n `No key management service backend found that supports ${getKmsOperationHumanDescription(operation)}`\n )\n }\n\n throw new KeyManagementError('No key management service backend found.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCO,6BAAMA,mBAAiB;CAC5B,AAAO,YACL,AAAQC,qBACR,AAAQC,cACR;EAFQ;EACA;;;;;;;;CASV,AAAO,8BAA8B,WAAmC;EACtE,MAAMC,oBAA8B,EAAE;AAEtC,OAAK,MAAM,OAAO,KAAK,oBAAoB,SAEzC,KAD6B,IAAI,qBAAqB,KAAK,cAAc,UAAU,CAEjF,mBAAkB,KAAK,IAAI,QAAQ;AAIvC,SAAO;;;;;CAMT,MAAa,UACX,SACmC;EACnC,MAAM,EAAE,QAAS,GAAG,eAAe,wBACjC,aAAa,qBAAqB,EAClC,SACA,+CACD;EAOD,MAAM,MAAM,MALA,KAAK,OAAO,KAAK,cAAc,SAAS;GAClD,WAAW;GACX,MAAM,QAAQ;GACf,CAAC,CAEoB,UAAU,KAAK,cAAc,WAAW;AAC9D,MAAI,UAAU,MAAM,IAAI;AAExB,OAAK,aAAa,OAAO,OAAO,MAC9B,eAAe,uBAAuB,IAAI,UAAU,CAAC,gBAAgB,IAAI,MAAM,GAChF;AAED,SAAO;;;;;CAMT,MAAa,+BACX,SACyD;EACzD,MAAM,EAAE,SAAS,UAAW,GAAG,eAAe,wBAC5C,aAAa,0CAA0C,EACvD,SACA,oEACD;EAED,MAAM,OAAO,iCAAiC,UAAU;EAOxD,MAAM,MAAM,MANA,KAAK,OAAO,KAAK,cAAc,SAAS;GAClD,WAAW;GACX;GACD,CAAC,CAGoB,UAAU,KAAK,cAAc;GACjD,GAAG;GACH;GACD,CAAC;AACF,MAAI,UAAU,MAAM,IAAI;AAExB,SAAO;;;;;CAMT,MAAa,KAAK,SAAsC;EACtD,MAAM,EAAE,QAAS,GAAG,eAAe,wBACjC,aAAa,gBAAgB,EAC7B,SACA,0CACD;EAED,MAAM,YAAY;GAChB,WAAW;GACX,WAAW,QAAQ;GACpB;AAKD,SAAO,OAHK,UACR,KAAK,OAAO,KAAK,cAAc,SAAS,UAAU,IACjD,MAAM,KAAK,2BAA2B,KAAK,cAAc,QAAQ,OAAO,UAAU,EAAE,KACxE,KAAK,KAAK,cAAc,WAAW;;;;;CAMtD,MAAa,OAAO,SAAwC;EAC1D,MAAM,EAAE,QAAS,GAAG,eAAe,wBACjC,aAAa,kBAAkB,EAC/B,SACA,4CACD;EAED,MAAM,YAAY;GAAE,WAAW;GAAU,WAAW,QAAQ;GAAW;AAMvE,SAAO,OAJL,WAAW,OAAO,QAAQ,QAAQ,WAC9B,KAAK,OAAO,KAAK,cAAc,SAAS,UAAU,IACjD,MAAM,KAAK,2BAA2B,KAAK,cAAc,QAAQ,KAAK,UAAU,EAAE,KAExE,OAAO,KAAK,cAAc,WAAW;;;;;CAMxD,MAAa,QAAQ,SAAyC;EAC5D,MAAM,EAAE,QAAS,GAAG,eAAe,wBACjC,aAAa,mBAAmB,EAChC,SACA,6CACD;EAED,MAAM,YAAY;GAChB,WAAW;GACX,YAAY,QAAQ;GACpB,cAAc,QAAQ,IAAI;GAC3B;AAMD,SAAO,OAJL,WAAW,OAAO,QAAQ,QAAQ,WAC9B,KAAK,OAAO,KAAK,cAAc,SAAS,UAAU,IACjD,MAAM,KAAK,2BAA2B,KAAK,cAAc,QAAQ,KAAK,UAAU,EAAE,KAExE,QAAQ,KAAK,cAAc,WAAW;;;;;CAMzD,MAAa,QAAQ,SAAyC;EAC5D,MAAM,EAAE,QAAS,GAAG,eAAe,wBACjC,aAAa,mBAAmB,EAChC,SACA,6CACD;EAED,MAAM,YAAY;GAChB,WAAW;GACX,YAAY,QAAQ;GACpB,cAAc,QAAQ,IAAI;GAC3B;AAWD,SAAO,OATL,WAAW,OAAO,QAAQ,QAAQ,WAC9B,KAAK,OACH,KAAK,cAEL,SACA,UACD,IACA,MAAM,KAAK,2BAA2B,KAAK,cAAc,QAAQ,KAAK,UAAU,EAAE,KAExE,QAAQ,KAAK,cAAc,WAAW;;;;;CAMzD,MAAa,UACX,SACkC;EAClC,MAAM,EAAE,QAAS,GAAG,eAAe,wBACjC,aAAa,qBAAqB,EAClC,SACA,+CACD;EAED,MAAM,YAAY;GAChB,WAAW;GACX,YAAY,QAAQ;GACrB;EAGD,MAAM,MAAM,MAFA,KAAK,OAAO,KAAK,cAAc,SAAS,UAAU,CAExC,UAAU,KAAK,cAAc,WAAW;AAE9D,OAAK,aAAa,OAAO,OAAO,MAC9B,gBAAgB,uBAAuB,IAAI,UAAU,CAAC,gBAAgB,IAAI,MAAM,GACjF;AAED,SAAO;;;;;CAMT,MAAa,aAAa,SAA8C;EACtE,MAAM,EAAE,SAAS,UAAU,wBACzB,aAAa,wBAAwB,EACrC,SACA,kDACD;AAED,MAAI,SAIF;OAAI,CAFc,MADN,KAAK,OAAO,KAAK,cAAc,QAAQ,CACvB,aAAa,KAAK,cAAc,MAAM,CAGhE,OAAM,IAAI,8BAA8B,OAAO,CAAC,QAAQ,CAAC;;EAI7D,MAAM,EAAE,cAAc,MAAM,KAAK,2BAA2B,KAAK,cAAc,QAAQ,MAAM;AAC7F,SAAO;;;;;CAMT,MAAa,UAAU,SAA2C;EAChE,MAAM,EAAE,QAAS,GAAG,eAAe,wBACjC,aAAa,qBAAqB,EAClC,SACA,+CACD;AAMD,SAAO,MADK,KAAK,OAAO,KAAK,cAAc,SAHzB,EAChB,WAAW,aACZ,CAC6D,CAC7C,UAAU,KAAK,cAAc,WAAW;;;;;CAM3D,AAAO,YAAY,SAA6C;EAC9D,MAAM,EAAE,QAAS,GAAG,eAAe,wBACjC,aAAa,uBAAuB,EACpC,SACA,iDACD;AAMD,SADY,KAAK,OAAO,KAAK,cAAc,SAHzB,EAChB,WAAW,eACZ,CAC6D,CACnD,YAAY,KAAK,cAAc,WAAW;;;;;;;;;;;;;CAcvD,MAAc,2BAA2B,cAA4B,OAAe,WAA0B;AAC5G,OAAK,MAAM,OAAO,KAAK,oBAAoB,UAAU;AAEnD,OAAI,EADyB,YAAY,IAAI,qBAAqB,cAAc,UAAU,GAAG,MAClE;GAE3B,MAAM,YAAY,MAAM,IAAI,aAAa,KAAK,cAAc,MAAM;AAClE,OAAI,UACF,QAAO;IACL;IACA;IACD;;AAGL,MAAI,UACF,OAAM,IAAI,8BACR,OACA,KAAK,oBAAoB,SAAS,KAAK,MAAM,EAAE,QAAQ,EACvD,yHAAyH,gCAAgC,UAAU,GACpK;AAGH,QAAM,IAAI,8BACR,OACA,KAAK,oBAAoB,SAAS,KAAK,MAAM,EAAE,QAAQ,CACxD;;;;;;;;;CAUH,AAAQ,OAAO,cAA4B,SAAkB,WAA0B;AACrF,MAAI,SAAS;GACX,MAAM,MAAM,KAAK,oBAAoB,SAAS,MAAM,UAAQC,MAAI,YAAY,QAAQ;AACpF,OAAI,CAAC,IAEH,OAAM,IAAI,mBACR,wDAAwD,QAAQ,4BAFxC,KAAK,oBAAoB,SAAS,KAAK,UAAQ,IAAIA,MAAI,QAAQ,GAAG,CAEoB,KAC5G,KACD,GACF;AAIH,OAAI,EADyB,YAAY,IAAI,qBAAqB,cAAc,UAAU,GAAG,SAChE,UAC3B,OAAM,IAAI,mBACR,mCAAmC,QAAQ,qBAAqB,gCAAgC,UAAU,GAC3G;AAGH,UAAO;;AAGT,OAAK,MAAM,OAAO,KAAK,oBAAoB,SAEzC,KAD6B,YAAY,IAAI,qBAAqB,cAAc,UAAU,GAAG,KACnE,QAAO;AAGnC,MAAI,UACF,OAAM,IAAI,mBACR,yDAAyD,gCAAgC,UAAU,GACpG;AAGH,QAAM,IAAI,mBAAmB,2CAA2C;;;+BA9U3E,YAAY"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DependencyManager } from "../../plugins/DependencyManager.mjs";
|
|
2
|
-
import { Module } from "../../plugins/Module.mjs";
|
|
3
1
|
import { KeyManagementModuleConfig, KeyManagementModuleConfigOptions } from "./KeyManagementModuleConfig.mjs";
|
|
4
2
|
import { KeyManagementApi } from "./KeyManagementApi.mjs";
|
|
3
|
+
import { DependencyManager } from "../../plugins/DependencyManager.mjs";
|
|
4
|
+
import { Module } from "../../plugins/Module.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/kms/KeyManagementModule.d.ts
|
|
7
7
|
declare class KeyManagementModule implements Module {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementModule.d.mts","names":[],"sources":["../../../src/modules/kms/KeyManagementModule.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"KeyManagementModule.d.mts","names":[],"sources":["../../../src/modules/kms/KeyManagementModule.ts"],"sourcesContent":[],"mappings":";;;;;;cAKa,mBAAA,YAA+B;uBACvB;mBACK;sBAEG;EAJhB;;;UAEa,CAAA,iBAAA,EASW,iBATX,CAAA,EAAA,IAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DependencyManager } from "../../plugins/DependencyManager.js";
|
|
2
|
-
import { Module } from "../../plugins/Module.js";
|
|
3
1
|
import { KeyManagementModuleConfig, KeyManagementModuleConfigOptions } from "./KeyManagementModuleConfig.js";
|
|
4
2
|
import { KeyManagementApi } from "./KeyManagementApi.js";
|
|
3
|
+
import { DependencyManager } from "../../plugins/DependencyManager.js";
|
|
4
|
+
import { Module } from "../../plugins/Module.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/kms/KeyManagementModule.d.ts
|
|
7
7
|
declare class KeyManagementModule implements Module {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementModule.d.ts","names":[],"sources":["../../../src/modules/kms/KeyManagementModule.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"KeyManagementModule.d.ts","names":[],"sources":["../../../src/modules/kms/KeyManagementModule.ts"],"sourcesContent":[],"mappings":";;;;;;cAKa,mBAAA,YAA+B;uBACvB;EADR,SAAA,MAAA,EAEa,yBAFO;EAAA,WAAA,CAAA,MAAA,EAIJ,gCAJI;;;;UAWI,CAAA,iBAAA,EAAA,iBAAA,CAAA,EAAA,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementModule.mjs","names":[],"sources":["../../../src/modules/kms/KeyManagementModule.ts"],"sourcesContent":["import type { DependencyManager, Module } from '../../plugins'\nimport
|
|
1
|
+
{"version":3,"file":"KeyManagementModule.mjs","names":[],"sources":["../../../src/modules/kms/KeyManagementModule.ts"],"sourcesContent":["import type { DependencyManager, Module } from '../../plugins'\nimport { KeyManagementApi } from './KeyManagementApi'\nimport type { KeyManagementModuleConfigOptions } from './KeyManagementModuleConfig'\nimport { KeyManagementModuleConfig } from './KeyManagementModuleConfig'\n\nexport class KeyManagementModule implements Module {\n public readonly api = KeyManagementApi\n public readonly config: KeyManagementModuleConfig\n\n public constructor(config: KeyManagementModuleConfigOptions) {\n this.config = new KeyManagementModuleConfig(config)\n }\n\n /**\n * Registers the dependencies of the key management module.\n */\n public register(dependencyManager: DependencyManager) {\n // Config\n dependencyManager.registerInstance(KeyManagementModuleConfig, this.config)\n }\n}\n"],"mappings":";;;;;;AAKA,IAAa,sBAAb,MAAmD;CAIjD,AAAO,YAAY,QAA0C;OAH7C,MAAM;AAIpB,OAAK,SAAS,IAAI,0BAA0B,OAAO;;;;;CAMrD,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,iBAAiB,2BAA2B,KAAK,OAAO"}
|
|
@@ -23,7 +23,6 @@ declare class KeyManagementModuleConfig {
|
|
|
23
23
|
get backends(): KeyManagementService[];
|
|
24
24
|
registerBackend(backend: KeyManagementService): void;
|
|
25
25
|
get defaultBackend(): KeyManagementService;
|
|
26
|
-
private toJSON;
|
|
27
26
|
}
|
|
28
27
|
//#endregion
|
|
29
28
|
export { KeyManagementModuleConfig, KeyManagementModuleConfigOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementModuleConfig.d.mts","names":[],"sources":["../../../src/modules/kms/KeyManagementModuleConfig.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"KeyManagementModuleConfig.d.mts","names":[],"sources":["../../../src/modules/kms/KeyManagementModuleConfig.ts"],"sourcesContent":[],"mappings":";;;UAGiB,gCAAA;;;;EAAA,QAAA,CAAA,EAIJ,oBAJI,EAAA;EAkBJ;;;;;;;;;;;cAAA,yBAAA;;uBAIiB;kBAcT;2BAIa;wBAIP"}
|
|
@@ -23,7 +23,6 @@ declare class KeyManagementModuleConfig {
|
|
|
23
23
|
get backends(): KeyManagementService[];
|
|
24
24
|
registerBackend(backend: KeyManagementService): void;
|
|
25
25
|
get defaultBackend(): KeyManagementService;
|
|
26
|
-
private toJSON;
|
|
27
26
|
}
|
|
28
27
|
//#endregion
|
|
29
28
|
export { KeyManagementModuleConfig, KeyManagementModuleConfigOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementModuleConfig.d.ts","names":[],"sources":["../../../src/modules/kms/KeyManagementModuleConfig.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"KeyManagementModuleConfig.d.ts","names":[],"sources":["../../../src/modules/kms/KeyManagementModuleConfig.ts"],"sourcesContent":[],"mappings":";;;UAGiB,gCAAA;;AAAjB;AAkBA;EAAsC,QAAA,CAAA,EAdzB,oBAcyB,EAAA;;;;;;;;;;;;cAAzB,yBAAA;;uBAIiB;kBAcT;2BAIa;wBAIP"}
|
|
@@ -29,12 +29,6 @@ var KeyManagementModuleConfig = class {
|
|
|
29
29
|
if (!backend) throw new require_KeyManagementError.KeyManagementError("Unable to determine default backend. ");
|
|
30
30
|
return backend;
|
|
31
31
|
}
|
|
32
|
-
toJSON() {
|
|
33
|
-
return {
|
|
34
|
-
defaultBackend: require_classPrivateFieldGet2._classPrivateFieldGet2(_defaultBackend, this),
|
|
35
|
-
backends: this.backends.map((backend) => backend.backend)
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
32
|
};
|
|
39
33
|
|
|
40
34
|
//#endregion
|
|
@@ -29,12 +29,6 @@ var KeyManagementModuleConfig = class {
|
|
|
29
29
|
if (!backend) throw new KeyManagementError("Unable to determine default backend. ");
|
|
30
30
|
return backend;
|
|
31
31
|
}
|
|
32
|
-
toJSON() {
|
|
33
|
-
return {
|
|
34
|
-
defaultBackend: _classPrivateFieldGet2(_defaultBackend, this),
|
|
35
|
-
backends: this.backends.map((backend) => backend.backend)
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
32
|
};
|
|
39
33
|
|
|
40
34
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyManagementModuleConfig.mjs","names":[],"sources":["../../../src/modules/kms/KeyManagementModuleConfig.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"KeyManagementModuleConfig.mjs","names":[],"sources":["../../../src/modules/kms/KeyManagementModuleConfig.ts"],"sourcesContent":["import { KeyManagementError } from './error/KeyManagementError'\nimport type { KeyManagementService } from './KeyManagementService'\n\nexport interface KeyManagementModuleConfigOptions {\n /**\n * The backends to use for key management and cryptographic operations.\n */\n backends?: KeyManagementService[]\n\n /**\n * The default backend to use, indicated by the `backend` property\n * on the `KeyManagementService` instance.\n *\n * If provided and it doesn't match an entry in the `backends` array\n * an error will be thrown.\n *\n * If not provided, the first backend from the `backends` array will be used.\n */\n defaultBackend?: string\n}\n\nexport class KeyManagementModuleConfig {\n #defaultBackend?: string\n #backends: KeyManagementService[]\n\n public constructor(options: KeyManagementModuleConfigOptions) {\n this.#backends = options.backends ?? []\n\n if (options.defaultBackend) {\n const defaultBackend = this.#backends.find((kms) => kms.backend === options.defaultBackend)\n if (!defaultBackend) {\n throw new KeyManagementError(\n `Default backend '${options.defaultBackend}' provided in KeyManagementModuleConfig, but not found in 'backends'. Make sure the backend identifier matches with a registered backend.`\n )\n }\n this.#defaultBackend = options.defaultBackend\n }\n }\n\n public get backends() {\n return this.#backends\n }\n\n public registerBackend(backend: KeyManagementService) {\n this.backends.push(backend)\n }\n\n public get defaultBackend() {\n const backend = this.backends.find((kms) => !this.#defaultBackend || this.#defaultBackend === kms.backend)\n if (!backend) {\n throw new KeyManagementError('Unable to determine default backend. ')\n }\n\n return backend\n }\n}\n"],"mappings":";;;;;;;;;;AAqBA,IAAa,4BAAb,MAAuC;CAIrC,AAAO,YAAY,SAA2C;;;AAC5D,0CAAiB,QAAQ,YAAY,EAAE;AAEvC,MAAI,QAAQ,gBAAgB;AAE1B,OAAI,mCADmB,KAAc,CAAC,MAAM,QAAQ,IAAI,YAAY,QAAQ,eAAe,CAEzF,OAAM,IAAI,mBACR,oBAAoB,QAAQ,eAAe,2IAC5C;AAEH,iDAAuB,QAAQ,eAAc;;;CAIjD,IAAW,WAAW;AACpB,2CAAO,KAAc;;CAGvB,AAAO,gBAAgB,SAA+B;AACpD,OAAK,SAAS,KAAK,QAAQ;;CAG7B,IAAW,iBAAiB;EAC1B,MAAM,UAAU,KAAK,SAAS,MAAM,QAAQ,yCAAC,KAAoB,4CAAI,KAAoB,KAAK,IAAI,QAAQ;AAC1G,MAAI,CAAC,QACH,OAAM,IAAI,mBAAmB,wCAAwC;AAGvE,SAAO"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { KmsJwkPrivate, KmsJwkPublic } from "./jwk/knownJwk.mjs";
|
|
2
|
-
import { AgentContext } from "../../agent/context/AgentContext.mjs";
|
|
3
1
|
import { KmsCreateKeyOptions, KmsCreateKeyReturn, KmsCreateKeyType } from "./options/KmsCreateKeyOptions.mjs";
|
|
2
|
+
import { KmsDecryptOptions, KmsDecryptReturn } from "./options/KmsDecryptOptions.mjs";
|
|
4
3
|
import { KmsDeleteKeyOptions } from "./options/KmsDeleteKeyOptions.mjs";
|
|
4
|
+
import { KmsEncryptOptions, KmsEncryptReturn } from "./options/KmsEncryptOptions.mjs";
|
|
5
|
+
import { KmsImportKeyOptions, KmsImportKeyReturn } from "./options/KmsImportKeyOptions.mjs";
|
|
6
|
+
import { KmsOperation } from "./options/KmsOperation.mjs";
|
|
5
7
|
import { KmsRandomBytesOptions, KmsRandomBytesReturn } from "./options/KmsRandomBytesOptions.mjs";
|
|
6
8
|
import { KmsSignOptions, KmsSignReturn } from "./options/KmsSignOptions.mjs";
|
|
7
9
|
import { KmsVerifyOptions, KmsVerifyReturn } from "./options/KmsVerifyOptions.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { KmsDecryptOptions, KmsDecryptReturn } from "./options/KmsDecryptOptions.mjs";
|
|
11
|
-
import { KmsOperation } from "./options/KmsOperation.mjs";
|
|
10
|
+
import { KmsJwkPrivate, KmsJwkPublic } from "./jwk/knownJwk.mjs";
|
|
11
|
+
import { AgentContext } from "../../agent/context/AgentContext.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/modules/kms/KeyManagementService.d.ts
|
|
14
14
|
interface KeyManagementService {
|