@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":"encryption.d.mts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/encryption.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"encryption.d.mts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/encryption.ts"],"sourcesContent":[],"mappings":";;;;;iBAOgB,6BAAA,MAAmC,gBAAgB,QAAQ,cAAc;;;;AAAzF;;;AAA2E,iBA2B3D,2BAAA,CA3B2D,GAAA,EA4BpE,aA5BoE,GA4BpD,OA5BoD,CA4B5C,YA5B4C,EA4B9B,eA5B8B,CAAA,CAAA,EA6BxE,KA7BwE,CA6BlE,kCA7BkE,GA6B7B,8BA7B6B,CAAA;AAAc,iBA2CzE,gCAAA,CA3CyE,GAAA,EA4ClF,aA5CkF,GA4ClE,OA5CkE,CA4C1D,YA5C0D,EA4C5C,eA5C4C,CAAA,EAAA,SAAA,EA6C5E,kCA7C4E,GA6CvC,8BA7CuC,CAAA,EAAA,IAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { KnownJwaContentEncryptionAlgorithm, KnownJwaKeyEncryptionAlgorithm } from "../jwa.js";
|
|
1
2
|
import { KmsJwkPublicOct } from "../kty/oct/octJwk.js";
|
|
2
3
|
import { KmsJwkPrivate, KmsJwkPublic } from "../knownJwk.js";
|
|
3
|
-
import { KnownJwaContentEncryptionAlgorithm, KnownJwaKeyEncryptionAlgorithm } from "../jwa.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/kms/jwk/alg/encryption.d.ts
|
|
6
6
|
declare function supportedEncryptionAlgsForKey(jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>): ("A128GCM" | "A192GCM" | "A256GCM" | "A128CBC" | "A256CBC" | "C20P" | "XC20P" | "XSALSA20-POLY1305" | "A128CBC-HS256" | "A192CBC-HS384" | "A256CBC-HS512" | "A128KW" | "A192KW" | "A256KW")[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption.d.ts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/encryption.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"encryption.d.ts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/encryption.ts"],"sourcesContent":[],"mappings":";;;;;iBAOgB,6BAAA,MAAmC,gBAAgB,QAAQ,cAAc;;AAAzF;;;;;AAAmE,iBA2BnD,2BAAA,CA3BmD,GAAA,EA4B5D,aA5B4D,GA4B5C,OA5B4C,CA4BpC,YA5BoC,EA4BtB,eA5BsB,CAAA,CAAA,EA6BhE,KA7BgE,CA6B1D,kCA7B0D,GA6BrB,8BA7BqB,CAAA;AAAO,iBA2C1D,gCAAA,CA3C0D,GAAA,EA4CnE,aA5CmE,GA4CnD,OA5CmD,CA4C3C,YA5C2C,EA4C7B,eA5C6B,CAAA,EAAA,SAAA,EA6C7D,kCA7C6D,GA6CxB,8BA7CwB,CAAA,EAAA,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption.mjs","names":["algs: Array<KnownJwaContentEncryptionAlgorithm | KnownJwaKeyEncryptionAlgorithm>"],"sources":["../../../../../src/modules/kms/jwk/alg/encryption.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"encryption.mjs","names":["algs: Array<KnownJwaContentEncryptionAlgorithm | KnownJwaKeyEncryptionAlgorithm>"],"sources":["../../../../../src/modules/kms/jwk/alg/encryption.ts"],"sourcesContent":["import { TypedArrayEncoder } from '../../../../utils'\nimport { KeyManagementError } from '../../error/KeyManagementError'\nimport { getJwkHumanDescription } from '../humanDescription'\nimport type { KnownJwaContentEncryptionAlgorithm, KnownJwaKeyEncryptionAlgorithm } from '../jwa'\nimport type { KmsJwkPrivate, KmsJwkPublic } from '../knownJwk'\nimport type { KmsJwkPublicOct } from '../kty/oct/octJwk'\n\nexport function supportedEncryptionAlgsForKey(jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>) {\n const algs: Array<KnownJwaContentEncryptionAlgorithm | KnownJwaKeyEncryptionAlgorithm> = []\n\n // Only symmetric (oct) keys can be used directly for content encryption\n if (jwk.kty === 'oct') {\n const keyBits = TypedArrayEncoder.fromBase64(jwk.k).length * 8\n\n // For CBC-HMAC composite algorithms we need exact key sizes\n if (keyBits === 256) algs.push('A128CBC-HS256')\n if (keyBits === 384) algs.push('A192CBC-HS384')\n if (keyBits === 512) algs.push('A256CBC-HS512')\n\n // For GCM/CBC we just need the exact AES key size\n if (keyBits === 128) algs.push('A128GCM', 'A128CBC', 'A128KW')\n if (keyBits === 192) algs.push('A192GCM', 'A192KW')\n if (keyBits === 256) algs.push('A256GCM', 'A256CBC', 'A256KW', 'C20P', 'XC20P')\n }\n\n return algs\n}\n\n/**\n * Get the allowed content encryption algs for a key. If takes all the known supported\n * algs and will filter these based on the optional `alg` key in the JWK.\n *\n * This does not handle the intended key `use` and `key_ops`.\n */\nexport function allowedEncryptionAlgsForKey(\n jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>\n): Array<KnownJwaContentEncryptionAlgorithm | KnownJwaKeyEncryptionAlgorithm> {\n const supportedAlgs = supportedEncryptionAlgsForKey(jwk)\n const allowedAlg = jwk.alg\n\n return !allowedAlg\n ? // If no `alg` specified on jwk, return all supported algs\n supportedAlgs\n : // If `alg` is specified and supported, return the allowed alg\n allowedAlg && supportedAlgs.includes(allowedAlg as KnownJwaContentEncryptionAlgorithm)\n ? [allowedAlg as KnownJwaContentEncryptionAlgorithm | KnownJwaKeyEncryptionAlgorithm]\n : // Otherwise nothing is allowed (`alg` is specified but not supported)\n []\n}\n\nexport function assertAllowedEncryptionAlgForKey(\n jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>,\n algorithm: KnownJwaContentEncryptionAlgorithm | KnownJwaKeyEncryptionAlgorithm\n) {\n const allowedAlgs = allowedEncryptionAlgsForKey(jwk)\n if (!allowedAlgs.includes(algorithm)) {\n const allowedAlgsText =\n allowedAlgs.length > 0 ? ` Allowed algs are ${allowedAlgs.map((alg) => `'${alg}'`).join(', ')}` : ''\n throw new KeyManagementError(\n `${getJwkHumanDescription(\n jwk\n )} cannot be used with algorithm '${algorithm}' for content encryption or decryption.${allowedAlgsText}`\n )\n }\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,8BAA8B,KAA6D;CACzG,MAAMA,OAAmF,EAAE;AAG3F,KAAI,IAAI,QAAQ,OAAO;EACrB,MAAM,UAAU,kBAAkB,WAAW,IAAI,EAAE,CAAC,SAAS;AAG7D,MAAI,YAAY,IAAK,MAAK,KAAK,gBAAgB;AAC/C,MAAI,YAAY,IAAK,MAAK,KAAK,gBAAgB;AAC/C,MAAI,YAAY,IAAK,MAAK,KAAK,gBAAgB;AAG/C,MAAI,YAAY,IAAK,MAAK,KAAK,WAAW,WAAW,SAAS;AAC9D,MAAI,YAAY,IAAK,MAAK,KAAK,WAAW,SAAS;AACnD,MAAI,YAAY,IAAK,MAAK,KAAK,WAAW,WAAW,UAAU,QAAQ,QAAQ;;AAGjF,QAAO;;;;;;;;AAST,SAAgB,4BACd,KAC4E;CAC5E,MAAM,gBAAgB,8BAA8B,IAAI;CACxD,MAAM,aAAa,IAAI;AAEvB,QAAO,CAAC,aAEJ,gBAEA,cAAc,cAAc,SAAS,WAAiD,GACpF,CAAC,WAAkF,GAEnF,EAAE;;AAGV,SAAgB,iCACd,KACA,WACA;CACA,MAAM,cAAc,4BAA4B,IAAI;AACpD,KAAI,CAAC,YAAY,SAAS,UAAU,EAAE;EACpC,MAAM,kBACJ,YAAY,SAAS,IAAI,qBAAqB,YAAY,KAAK,QAAQ,IAAI,IAAI,GAAG,CAAC,KAAK,KAAK,KAAK;AACpG,QAAM,IAAI,mBACR,GAAG,uBACD,IACD,CAAC,kCAAkC,UAAU,yCAAyC,kBACxF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
import { allowedEncryptionAlgsForKey, assertAllowedEncryptionAlgForKey, supportedEncryptionAlgsForKey } from "./encryption.mjs";
|
|
4
|
-
import { allowedSigningAlgsForSigningKey, assertAllowedSigningAlgForKey, supportedSigningAlgsForKey } from "./signing.mjs";
|
|
5
4
|
import { allowedKeyDerivationAlgsForKey, assertAllowedKeyDerivationAlgForKey, supportedKeyDerivationAlgsForKey } from "./keyDerivation.mjs";
|
|
5
|
+
import { allowedSigningAlgsForSigningKey, assertAllowedSigningAlgForKey, supportedSigningAlgsForKey } from "./signing.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { KnownJwaKeyAgreementAlgorithm } from "../jwa.mjs";
|
|
1
2
|
import { KmsJwkPublicOct } from "../kty/oct/octJwk.mjs";
|
|
2
3
|
import { KmsJwkPrivate, KmsJwkPublic } from "../knownJwk.mjs";
|
|
3
|
-
import { KnownJwaKeyAgreementAlgorithm } from "../jwa.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/kms/jwk/alg/keyDerivation.d.ts
|
|
6
6
|
declare function supportedKeyDerivationAlgsForKey(jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>): KnownJwaKeyAgreementAlgorithm[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyDerivation.d.mts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/keyDerivation.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"keyDerivation.d.mts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/keyDerivation.ts"],"sourcesContent":[],"mappings":";;;;;iBAagB,gCAAA,MACT,gBAAgB,QAAQ,cAAc,mBAC1C;;;;AAFH;;;AAC+B,iBAwBf,8BAAA,CAxBe,GAAA,EAyBxB,aAzBwB,GAyBR,OAzBQ,CAyBA,YAzBA,EAyBc,eAzBd,CAAA,CAAA,EA0B5B,6BA1B4B,EAAA;AAAc,iBAwC7B,mCAAA,CAxC6B,GAAA,EAyCtC,aAzCsC,GAyCtB,OAzCsB,CAyCd,YAzCc,EAyCA,eAzCA,CAAA,EAAA,SAAA,EA0ChC,6BA1CgC,CAAA,EAAA,IAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { KnownJwaKeyAgreementAlgorithm } from "../jwa.js";
|
|
1
2
|
import { KmsJwkPublicOct } from "../kty/oct/octJwk.js";
|
|
2
3
|
import { KmsJwkPrivate, KmsJwkPublic } from "../knownJwk.js";
|
|
3
|
-
import { KnownJwaKeyAgreementAlgorithm } from "../jwa.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/kms/jwk/alg/keyDerivation.d.ts
|
|
6
6
|
declare function supportedKeyDerivationAlgsForKey(jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>): KnownJwaKeyAgreementAlgorithm[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyDerivation.d.ts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/keyDerivation.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"keyDerivation.d.ts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/keyDerivation.ts"],"sourcesContent":[],"mappings":";;;;;iBAagB,gCAAA,MACT,gBAAgB,QAAQ,cAAc,mBAC1C;;AAFH;;;;;AACuB,iBAwBP,8BAAA,CAxBO,GAAA,EAyBhB,aAzBgB,GAyBA,OAzBA,CAyBQ,YAzBR,EAyBsB,eAzBtB,CAAA,CAAA,EA0BpB,6BA1BoB,EAAA;AACpB,iBAuCa,mCAAA,CAvCb,GAAA,EAwCI,aAxCJ,GAwCoB,OAxCpB,CAwC4B,YAxC5B,EAwC0C,eAxC1C,CAAA,EAAA,SAAA,EAyCU,6BAzCV,CAAA,EAAA,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyDerivation.mjs","names":["algs: KnownJwaKeyAgreementAlgorithm[]"],"sources":["../../../../../src/modules/kms/jwk/alg/keyDerivation.ts"],"sourcesContent":["import type { KnownJwaKeyAgreementAlgorithm } from '../jwa'\nimport type { KmsJwkPrivate, KmsJwkPublic, KmsJwkPublicCrv } from '../knownJwk'\nimport type { KmsJwkPrivateOct, KmsJwkPublicOct } from '../kty/oct/octJwk'\nimport type { KmsJwkPrivateRsa, KmsJwkPublicRsa } from '../kty/rsa/rsaJwk'\n\
|
|
1
|
+
{"version":3,"file":"keyDerivation.mjs","names":["algs: KnownJwaKeyAgreementAlgorithm[]"],"sources":["../../../../../src/modules/kms/jwk/alg/keyDerivation.ts"],"sourcesContent":["import { KeyManagementError } from '../../error/KeyManagementError'\nimport { getJwkHumanDescription } from '../humanDescription'\nimport type { KnownJwaKeyAgreementAlgorithm } from '../jwa'\nimport type { KmsJwkPrivate, KmsJwkPublic, KmsJwkPublicCrv } from '../knownJwk'\nimport type { KmsJwkPrivateOct, KmsJwkPublicOct } from '../kty/oct/octJwk'\nimport type { KmsJwkPrivateRsa, KmsJwkPublicRsa } from '../kty/rsa/rsaJwk'\n\nfunction isCrvJwk<Jwk extends KmsJwkPrivate | KmsJwkPublic>(\n jwk: Jwk\n): jwk is Exclude<Jwk, KmsJwkPrivateOct | KmsJwkPrivateRsa | KmsJwkPublicOct | KmsJwkPublicRsa> {\n return jwk.kty === 'EC' || jwk.kty === 'OKP'\n}\n\nexport function supportedKeyDerivationAlgsForKey(\n jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>\n): KnownJwaKeyAgreementAlgorithm[] {\n const algs: KnownJwaKeyAgreementAlgorithm[] = []\n\n const allowedCurves: KmsJwkPublicCrv['crv'][] = ['P-256', 'P-384', 'P-521', 'X25519', 'secp256k1']\n if (isCrvJwk(jwk) && allowedCurves.includes(jwk.crv)) {\n algs.push('ECDH-ES', 'ECDH-ES+A128KW', 'ECDH-ES+A192KW', 'ECDH-ES+A256KW')\n }\n\n // Special case where we allow Ed25519 for X25519 based operation, since that is\n // how DIDComm v1 works.\n if (jwk.kty === 'OKP' && (jwk.crv === 'X25519' || jwk.crv === 'Ed25519')) {\n algs.push('ECDH-HSALSA20')\n }\n\n return algs\n}\n\n/**\n * Get the allowed key derivation algs for a key. If takes all the known supported\n * algs and will filter these based on the optional `alg` key in the JWK.\n *\n * This does not handle the intended key `use` and `key_ops`.\n */\nexport function allowedKeyDerivationAlgsForKey(\n jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>\n): KnownJwaKeyAgreementAlgorithm[] {\n const supportedAlgs = supportedKeyDerivationAlgsForKey(jwk)\n const allowedAlg = jwk.alg\n\n return !allowedAlg\n ? // If no `alg` specified on jwk, return all supported algs\n supportedAlgs\n : // If `alg` is specified and supported, return the allowed alg\n allowedAlg && supportedAlgs.includes(allowedAlg as KnownJwaKeyAgreementAlgorithm)\n ? [allowedAlg as KnownJwaKeyAgreementAlgorithm]\n : // Otherwise nothing is allowed (`alg` is specified but not supported)\n []\n}\n\nexport function assertAllowedKeyDerivationAlgForKey(\n jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>,\n algorithm: KnownJwaKeyAgreementAlgorithm\n) {\n const allowedAlgs = allowedKeyDerivationAlgsForKey(jwk)\n if (!allowedAlgs.includes(algorithm)) {\n const allowedAlgsText =\n allowedAlgs.length > 0 ? ` Allowed algs are ${allowedAlgs.map((alg) => `'${alg}'`).join(', ')}` : ''\n throw new KeyManagementError(\n `${getJwkHumanDescription(\n jwk\n )} cannot be used with algorithm '${algorithm}' for key derivation.${allowedAlgsText}`\n )\n }\n}\n"],"mappings":";;;;;;AAOA,SAAS,SACP,KAC8F;AAC9F,QAAO,IAAI,QAAQ,QAAQ,IAAI,QAAQ;;AAGzC,SAAgB,iCACd,KACiC;CACjC,MAAMA,OAAwC,EAAE;AAGhD,KAAI,SAAS,IAAI,IAD+B;EAAC;EAAS;EAAS;EAAS;EAAU;EAAY,CAC/D,SAAS,IAAI,IAAI,CAClD,MAAK,KAAK,WAAW,kBAAkB,kBAAkB,iBAAiB;AAK5E,KAAI,IAAI,QAAQ,UAAU,IAAI,QAAQ,YAAY,IAAI,QAAQ,WAC5D,MAAK,KAAK,gBAAgB;AAG5B,QAAO;;;;;;;;AAST,SAAgB,+BACd,KACiC;CACjC,MAAM,gBAAgB,iCAAiC,IAAI;CAC3D,MAAM,aAAa,IAAI;AAEvB,QAAO,CAAC,aAEJ,gBAEA,cAAc,cAAc,SAAS,WAA4C,GAC/E,CAAC,WAA4C,GAE7C,EAAE;;AAGV,SAAgB,oCACd,KACA,WACA;CACA,MAAM,cAAc,+BAA+B,IAAI;AACvD,KAAI,CAAC,YAAY,SAAS,UAAU,EAAE;EACpC,MAAM,kBACJ,YAAY,SAAS,IAAI,qBAAqB,YAAY,KAAK,QAAQ,IAAI,IAAI,GAAG,CAAC,KAAK,KAAK,KAAK;AACpG,QAAM,IAAI,mBACR,GAAG,uBACD,IACD,CAAC,kCAAkC,UAAU,uBAAuB,kBACtE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { KnownJwaSignatureAlgorithm } from "../jwa.mjs";
|
|
1
2
|
import { KmsJwkPublicOct } from "../kty/oct/octJwk.mjs";
|
|
2
3
|
import { KmsJwkPrivate, KmsJwkPublic } from "../knownJwk.mjs";
|
|
3
|
-
import { KnownJwaSignatureAlgorithm } from "../jwa.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/kms/jwk/alg/signing.d.ts
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signing.d.mts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/signing.ts"],"sourcesContent":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"signing.d.mts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/signing.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAcA;;;AAC+B,iBADf,+BAAA,CACe,GAAA,EAAxB,aAAwB,GAAR,OAAQ,CAAA,YAAA,EAAc,eAAd,CAAA,CAAA,EAC5B,0BAD4B,EAAA;AAAc,iBAe7B,6BAAA,CAf6B,GAAA,EAgBtC,aAhBsC,GAgBtB,OAhBsB,CAgBd,YAhBc,EAgBA,eAhBA,CAAA,EAAA,SAAA,EAiBhC,0BAjBgC,CAAA,EAAA,IAAA;AAAtB,iBAiCP,0BAAA,CAjCO,GAAA,EAkChB,aAlCgB,GAkCA,OAlCA,CAkCQ,YAlCR,EAkCsB,eAlCtB,CAAA,CAAA,EAmCpB,0BAnCoB,EAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { KnownJwaSignatureAlgorithm } from "../jwa.js";
|
|
1
2
|
import { KmsJwkPublicOct } from "../kty/oct/octJwk.js";
|
|
2
3
|
import { KmsJwkPrivate, KmsJwkPublic } from "../knownJwk.js";
|
|
3
|
-
import { KnownJwaSignatureAlgorithm } from "../jwa.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/kms/jwk/alg/signing.d.ts
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signing.d.ts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/signing.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"signing.d.ts","names":[],"sources":["../../../../../src/modules/kms/jwk/alg/signing.ts"],"sourcesContent":[],"mappings":";;;;;;;AAcA;;;;;AACuB,iBADP,+BAAA,CACO,GAAA,EAAhB,aAAgB,GAAA,OAAA,CAAQ,YAAR,EAAsB,eAAtB,CAAA,CAAA,EACpB,0BADoB,EAAA;AACpB,iBAca,6BAAA,CAdb,GAAA,EAeI,aAfJ,GAeoB,OAfpB,CAe4B,YAf5B,EAe0C,eAf1C,CAAA,EAAA,SAAA,EAgBU,0BAhBV,CAAA,EAAA,IAAA;AAA0B,iBAgCb,0BAAA,CAhCa,GAAA,EAiCtB,aAjCsB,GAiCN,OAjCM,CAiCE,YAjCF,EAiCgB,eAjChB,CAAA,CAAA,EAkC1B,0BAlC0B,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signing.mjs","names":["minBits2048: KnownJwaSignatureAlgorithm[]","minBits3072: KnownJwaSignatureAlgorithm[]","minBits4096: KnownJwaSignatureAlgorithm[]","minBits256: KnownJwaSignatureAlgorithm[]","minBits384: KnownJwaSignatureAlgorithm[]","minBits512: KnownJwaSignatureAlgorithm[]"],"sources":["../../../../../src/modules/kms/jwk/alg/signing.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"signing.mjs","names":["minBits2048: KnownJwaSignatureAlgorithm[]","minBits3072: KnownJwaSignatureAlgorithm[]","minBits4096: KnownJwaSignatureAlgorithm[]","minBits256: KnownJwaSignatureAlgorithm[]","minBits384: KnownJwaSignatureAlgorithm[]","minBits512: KnownJwaSignatureAlgorithm[]"],"sources":["../../../../../src/modules/kms/jwk/alg/signing.ts"],"sourcesContent":["import { TypedArrayEncoder } from '../../../../utils'\nimport { KeyManagementError } from '../../error/KeyManagementError'\nimport type { KmsCreateKeyType } from '../../options'\nimport { getJwkHumanDescription } from '../humanDescription'\nimport type { KnownJwaSignatureAlgorithm } from '../jwa'\nimport type { KmsJwkPrivate, KmsJwkPublic } from '../knownJwk'\nimport type { KmsJwkPublicOct } from '../kty/oct/octJwk'\n\n/**\n * Get the allowed algs for a signing key. If takes all the known supported\n * algs and will filter these based on the optional `alg` key in the JWK.\n *\n * This does not handle the intended key `use` and `key_ops`.\n */\nexport function allowedSigningAlgsForSigningKey(\n jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>\n): KnownJwaSignatureAlgorithm[] {\n const supportedAlgs = supportedSigningAlgsForKey(jwk)\n const allowedAlg = jwk.alg\n\n return !allowedAlg\n ? // If no `alg` specified on jwk, return all supported algs\n supportedAlgs\n : // If `alg` is specified and supported, return the allowed alg\n allowedAlg && supportedAlgs.includes(allowedAlg as KnownJwaSignatureAlgorithm)\n ? [allowedAlg as KnownJwaSignatureAlgorithm]\n : // Otherwise nothing is allowed (`alg` is specified but not supported)\n []\n}\n\nexport function assertAllowedSigningAlgForKey(\n jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>,\n algorithm: KnownJwaSignatureAlgorithm\n) {\n const allowedAlgs = allowedSigningAlgsForSigningKey(jwk)\n if (!allowedAlgs.includes(algorithm)) {\n const allowedAlgsText =\n allowedAlgs.length > 0 ? ` Allowed algs are ${allowedAlgs.map((alg) => `'${alg}'`).join(', ')}` : ''\n throw new KeyManagementError(\n `${getJwkHumanDescription(\n jwk\n )} cannot be used with algorithm '${algorithm}' for signature creation or verification.${allowedAlgsText}`\n )\n }\n}\n\n// NOTE: this should be replaced by the PublicJwk class\n// but it woun't work for oct keys\nexport function supportedSigningAlgsForKey(\n jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>\n): KnownJwaSignatureAlgorithm[] {\n if (jwk.kty === 'EC' || jwk.kty === 'OKP') {\n switch (jwk.crv) {\n case 'secp256k1':\n return ['ES256K']\n case 'P-256':\n return ['ES256']\n case 'P-384':\n return ['ES384']\n case 'P-521':\n return ['ES512']\n case 'Ed25519':\n return ['EdDSA']\n\n // X25519\n default:\n return []\n }\n }\n\n if (jwk.kty === 'RSA') {\n const keyBits = TypedArrayEncoder.fromBase64(jwk.n).length * 8\n\n // RSA needs minimum bit lengths for each algorithm\n const minBits2048: KnownJwaSignatureAlgorithm[] = ['PS256', 'RS256']\n const minBits3072: KnownJwaSignatureAlgorithm[] = [...minBits2048, 'RS384', 'PS384']\n const minBits4096: KnownJwaSignatureAlgorithm[] = [...minBits3072, 'RS512', 'PS512']\n\n return keyBits >= 4096 ? minBits4096 : keyBits >= 3072 ? minBits3072 : keyBits >= 2048 ? minBits2048 : []\n }\n\n // On other layers we need to filter for alg types, as you don't want any `oct` key with enough length to used for hmac purposes\n if (jwk.kty === 'oct') {\n const keyBits = TypedArrayEncoder.fromBase64(jwk.k).length * 8\n\n // hmac needs minimum bit lengths for each algorithm\n const minBits256: KnownJwaSignatureAlgorithm[] = ['HS256']\n const minBits384: KnownJwaSignatureAlgorithm[] = [...minBits256, 'HS384']\n const minBits512: KnownJwaSignatureAlgorithm[] = [...minBits384, 'HS512']\n return keyBits >= 512 ? minBits512 : keyBits >= 384 ? minBits384 : keyBits >= 256 ? minBits256 : []\n }\n\n return []\n}\n\n// TODO: Can we move this to the JWK classes?\nexport function createKeyTypeForSigningAlgorithm(algorithm: KnownJwaSignatureAlgorithm): KmsCreateKeyType {\n // On JWK class we can have\n if (algorithm === 'ES256') {\n return {\n kty: 'EC',\n crv: 'P-256',\n }\n }\n\n if (algorithm === 'ES384') {\n return {\n kty: 'EC',\n crv: 'P-384',\n }\n }\n\n if (algorithm === 'ES512') {\n return {\n kty: 'EC',\n crv: 'P-521',\n }\n }\n\n if (algorithm === 'ES256K') {\n return {\n kty: 'EC',\n crv: 'secp256k1',\n }\n }\n\n if (algorithm === 'EdDSA') {\n return {\n kty: 'OKP',\n crv: 'Ed25519',\n }\n }\n\n if (algorithm === 'HS256') {\n return {\n kty: 'oct',\n algorithm: 'hmac',\n length: 256,\n }\n }\n\n if (algorithm === 'HS384') {\n return {\n kty: 'oct',\n algorithm: 'hmac',\n length: 384,\n }\n }\n\n if (algorithm === 'HS512') {\n return {\n kty: 'oct',\n algorithm: 'hmac',\n length: 512,\n }\n }\n\n if (algorithm === 'PS256' || algorithm === 'RS256') {\n return {\n kty: 'RSA',\n modulusLength: 2048,\n }\n }\n\n if (algorithm === 'PS384' || algorithm === 'RS384') {\n return {\n kty: 'RSA',\n modulusLength: 3072,\n }\n }\n\n if (algorithm === 'PS512' || algorithm === 'RS512') {\n return {\n kty: 'RSA',\n modulusLength: 4096,\n }\n }\n\n throw new KeyManagementError(`unknown signature algorithm '${algorithm}' for creating key `)\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,SAAgB,gCACd,KAC8B;CAC9B,MAAM,gBAAgB,2BAA2B,IAAI;CACrD,MAAM,aAAa,IAAI;AAEvB,QAAO,CAAC,aAEJ,gBAEA,cAAc,cAAc,SAAS,WAAyC,GAC5E,CAAC,WAAyC,GAE1C,EAAE;;AAGV,SAAgB,8BACd,KACA,WACA;CACA,MAAM,cAAc,gCAAgC,IAAI;AACxD,KAAI,CAAC,YAAY,SAAS,UAAU,EAAE;EACpC,MAAM,kBACJ,YAAY,SAAS,IAAI,qBAAqB,YAAY,KAAK,QAAQ,IAAI,IAAI,GAAG,CAAC,KAAK,KAAK,KAAK;AACpG,QAAM,IAAI,mBACR,GAAG,uBACD,IACD,CAAC,kCAAkC,UAAU,2CAA2C,kBAC1F;;;AAML,SAAgB,2BACd,KAC8B;AAC9B,KAAI,IAAI,QAAQ,QAAQ,IAAI,QAAQ,MAClC,SAAQ,IAAI,KAAZ;EACE,KAAK,YACH,QAAO,CAAC,SAAS;EACnB,KAAK,QACH,QAAO,CAAC,QAAQ;EAClB,KAAK,QAC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AAW;EACX,QAAQ;EACT;AAGH,KAAI,cAAc,WAAW,cAAc,QACzC,QAAO;EACL,KAAK;EACL,eAAe;EAChB;AAGH,KAAI,cAAc,WAAW,cAAc,QACzC,QAAO;EACL,KAAK;EACL,eAAe;EAChB;AAGH,KAAI,cAAc,WAAW,cAAc,QACzC,QAAO;EACL,KAAK;EACL,eAAe;EAChB;AAGH,OAAM,IAAI,mBAAmB,gCAAgC,UAAU,qBAAqB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KnownJwaContentEncryptionAlgorithm, KnownJwaKeyAgreementAlgorithm, KnownJwaKeyEncryptionAlgorithm } from "./jwa.mjs";
|
|
2
|
-
import { KmsEncryptDataEncryption } from "../options/KmsEncryptOptions.mjs";
|
|
3
2
|
import { KmsDecryptDataDecryption } from "../options/KmsDecryptOptions.mjs";
|
|
4
|
-
import {
|
|
3
|
+
import { KmsEncryptDataEncryption } from "../options/KmsEncryptOptions.mjs";
|
|
5
4
|
import { KmsKeyAgreementDecryptOptions } from "../options/KmsKeyAgreementDecryptOptions.mjs";
|
|
5
|
+
import { KmsKeyAgreementEncryptOptions } from "../options/KmsKeyAgreementEncryptOptions.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/kms/jwk/assertSupported.d.ts
|
|
8
8
|
declare function assertSupportedKeyAgreementAlgorithm<KeyAgreement extends KmsKeyAgreementEncryptOptions | KmsKeyAgreementDecryptOptions, SupportedAlgorithms extends KnownJwaKeyAgreementAlgorithm[]>(keyAgreement: KeyAgreement, supportedAlgorithms: SupportedAlgorithms, backend: string): asserts keyAgreement is KeyAgreement & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KnownJwaContentEncryptionAlgorithm, KnownJwaKeyAgreementAlgorithm, KnownJwaKeyEncryptionAlgorithm } from "./jwa.js";
|
|
2
|
-
import { KmsEncryptDataEncryption } from "../options/KmsEncryptOptions.js";
|
|
3
2
|
import { KmsDecryptDataDecryption } from "../options/KmsDecryptOptions.js";
|
|
4
|
-
import {
|
|
3
|
+
import { KmsEncryptDataEncryption } from "../options/KmsEncryptOptions.js";
|
|
5
4
|
import { KmsKeyAgreementDecryptOptions } from "../options/KmsKeyAgreementDecryptOptions.js";
|
|
5
|
+
import { KmsKeyAgreementEncryptOptions } from "../options/KmsKeyAgreementEncryptOptions.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/kms/jwk/assertSupported.d.ts
|
|
8
8
|
declare function assertSupportedKeyAgreementAlgorithm<KeyAgreement extends KmsKeyAgreementEncryptOptions | KmsKeyAgreementDecryptOptions, SupportedAlgorithms extends KnownJwaKeyAgreementAlgorithm[]>(keyAgreement: KeyAgreement, supportedAlgorithms: SupportedAlgorithms, backend: string): asserts keyAgreement is KeyAgreement & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"humanDescription.d.mts","names":[],"sources":["../../../../src/modules/kms/jwk/humanDescription.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"humanDescription.d.mts","names":[],"sources":["../../../../src/modules/kms/jwk/humanDescription.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAWA;;;;AAAwE,iBAAxD,sBAAA,CAAwD,GAAA,EAA5B,aAA4B,GAAZ,YAAY,CAAA,EAAA,MAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"humanDescription.d.ts","names":[],"sources":["../../../../src/modules/kms/jwk/humanDescription.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"humanDescription.d.ts","names":[],"sources":["../../../../src/modules/kms/jwk/humanDescription.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;;;;;;iBAAgB,sBAAA,MAA4B,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"humanDescription.mjs","names":[],"sources":["../../../../src/modules/kms/jwk/humanDescription.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"humanDescription.mjs","names":[],"sources":["../../../../src/modules/kms/jwk/humanDescription.ts"],"sourcesContent":["import { TypedArrayEncoder } from '../../../utils'\nimport type { KmsJwkPrivate, KmsJwkPublic } from './knownJwk'\n\n/**\n * Gets text description of a key.\n *\n * - `EC key with crv '<crv>'`\n * - `RSA key with bith length <bitLength>\n * - `oct key`\n * - `'<kty>' key`\n */\nexport function getJwkHumanDescription(jwk: KmsJwkPrivate | KmsJwkPublic) {\n if (jwk.kty === 'EC' || jwk.kty === 'OKP') {\n return `${jwk.kty} key with crv '${jwk.crv}'`\n }\n\n if (jwk.kty === 'RSA') {\n // n is the modulus, base64url encoded. Decode to get bit length\n const nBytes = TypedArrayEncoder.fromBase64(jwk.n).length\n const bitLength = nBytes * 8\n return `RSA key with bit length ${bitLength}`\n }\n if (jwk.kty === 'oct') {\n return 'oct key'\n }\n\n // @ts-expect-error\n return `'${jwk.kty}' key'`\n}\n"],"mappings":";;;;;;;;;;;;;;AAWA,SAAgB,uBAAuB,KAAmC;AACxE,KAAI,IAAI,QAAQ,QAAQ,IAAI,QAAQ,MAClC,QAAO,GAAG,IAAI,IAAI,iBAAiB,IAAI,IAAI;AAG7C,KAAI,IAAI,QAAQ,MAId,QAAO,2BAFQ,kBAAkB,WAAW,IAAI,EAAE,CAAC,SACxB;AAG7B,KAAI,IAAI,QAAQ,MACd,QAAO;AAIT,QAAO,IAAI,IAAI,IAAI"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
const require_jwa = require('./jwa.js');
|
|
4
3
|
const require_humanDescription = require('./humanDescription.js');
|
|
4
|
+
const require_encryption = require('./alg/encryption.js');
|
|
5
|
+
const require_keyDerivation = require('./alg/keyDerivation.js');
|
|
6
|
+
const require_signing = require('./alg/signing.js');
|
|
7
|
+
require('./alg/index.js');
|
|
8
|
+
const require_assertSupported = require('./assertSupported.js');
|
|
9
|
+
const require_equals = require('./equals.js');
|
|
10
|
+
const require_jwa = require('./jwa.js');
|
|
5
11
|
const require_keyOps = require('./keyOps.js');
|
|
6
12
|
const require_knownJwk = require('./knownJwk.js');
|
|
7
|
-
const
|
|
13
|
+
const require_ecSignature = require('./kty/ec/ecSignature.js');
|
|
8
14
|
const require_P256PublicJwk = require('./kty/ec/P256PublicJwk.js');
|
|
9
15
|
const require_P384PublicJwk = require('./kty/ec/P384PublicJwk.js');
|
|
10
16
|
const require_P521PublicJwk = require('./kty/ec/P521PublicJwk.js');
|
|
11
17
|
const require_Secp256k1PublicJwk = require('./kty/ec/Secp256k1PublicJwk.js');
|
|
12
|
-
const require_ecSignature = require('./kty/ec/ecSignature.js');
|
|
13
18
|
const require_X25519PublicJwk = require('./kty/okp/X25519PublicJwk.js');
|
|
14
19
|
const require_Ed25519PublicJwk = require('./kty/okp/Ed25519PublicJwk.js');
|
|
15
20
|
const require_RsaPublicJwk = require('./kty/rsa/RsaPublicJwk.js');
|
|
16
21
|
require('./kty/index.js');
|
|
17
|
-
const require_encryption = require('./alg/encryption.js');
|
|
18
|
-
const require_signing = require('./alg/signing.js');
|
|
19
|
-
const require_keyDerivation = require('./alg/keyDerivation.js');
|
|
20
|
-
require('./alg/index.js');
|
|
21
|
-
const require_equals = require('./equals.js');
|
|
22
22
|
const require_PublicJwk = require('./PublicJwk.js');
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import { KnownJwaContentEncryptionAlgorithms, KnownJwaKeyAgreementAlgorithms, KnownJwaKeyEncryptionAlgorithms, KnownJwaSignatureAlgorithms } from "./jwa.mjs";
|
|
4
3
|
import { getJwkHumanDescription } from "./humanDescription.mjs";
|
|
4
|
+
import { allowedEncryptionAlgsForKey, assertAllowedEncryptionAlgForKey, supportedEncryptionAlgsForKey } from "./alg/encryption.mjs";
|
|
5
|
+
import { allowedKeyDerivationAlgsForKey, assertAllowedKeyDerivationAlgForKey, supportedKeyDerivationAlgsForKey } from "./alg/keyDerivation.mjs";
|
|
6
|
+
import { allowedSigningAlgsForSigningKey, assertAllowedSigningAlgForKey, supportedSigningAlgsForKey } from "./alg/signing.mjs";
|
|
7
|
+
import "./alg/index.mjs";
|
|
8
|
+
import { assertSupportedEncryptionAlgorithm, assertSupportedKeyAgreementAlgorithm } from "./assertSupported.mjs";
|
|
9
|
+
import { assertAsymmetricJwkKeyTypeMatches, assymetricJwkKeyTypeMatches, assymetricPublicJwkMatches } from "./equals.mjs";
|
|
10
|
+
import { KnownJwaContentEncryptionAlgorithms, KnownJwaKeyAgreementAlgorithms, KnownJwaKeyEncryptionAlgorithms, KnownJwaSignatureAlgorithms } from "./jwa.mjs";
|
|
5
11
|
import { assertKeyAllowsDecrypt, assertKeyAllowsDerive, assertKeyAllowsEncrypt, assertKeyAllowsSign, assertKeyAllowsVerify, keyAllowsDecrypt, keyAllowsEncrypt, keyAllowsSign, keyAllowsVerify } from "./keyOps.mjs";
|
|
6
12
|
import { assertJwkAsymmetric, isJwkAsymmetric, publicJwkFromPrivateJwk } from "./knownJwk.mjs";
|
|
7
|
-
import {
|
|
13
|
+
import { derEcSignatureToRaw, rawEcSignatureToDer } from "./kty/ec/ecSignature.mjs";
|
|
8
14
|
import { P256PublicJwk } from "./kty/ec/P256PublicJwk.mjs";
|
|
9
15
|
import { P384PublicJwk } from "./kty/ec/P384PublicJwk.mjs";
|
|
10
16
|
import { P521PublicJwk } from "./kty/ec/P521PublicJwk.mjs";
|
|
11
17
|
import { Secp256k1PublicJwk } from "./kty/ec/Secp256k1PublicJwk.mjs";
|
|
12
|
-
import { derEcSignatureToRaw, rawEcSignatureToDer } from "./kty/ec/ecSignature.mjs";
|
|
13
18
|
import { X25519PublicJwk } from "./kty/okp/X25519PublicJwk.mjs";
|
|
14
19
|
import { Ed25519PublicJwk } from "./kty/okp/Ed25519PublicJwk.mjs";
|
|
15
20
|
import { RsaPublicJwk } from "./kty/rsa/RsaPublicJwk.mjs";
|
|
16
21
|
import "./kty/index.mjs";
|
|
17
|
-
import { allowedEncryptionAlgsForKey, assertAllowedEncryptionAlgForKey, supportedEncryptionAlgsForKey } from "./alg/encryption.mjs";
|
|
18
|
-
import { allowedSigningAlgsForSigningKey, assertAllowedSigningAlgForKey, supportedSigningAlgsForKey } from "./alg/signing.mjs";
|
|
19
|
-
import { allowedKeyDerivationAlgsForKey, assertAllowedKeyDerivationAlgForKey, supportedKeyDerivationAlgsForKey } from "./alg/keyDerivation.mjs";
|
|
20
|
-
import "./alg/index.mjs";
|
|
21
|
-
import { assertAsymmetricJwkKeyTypeMatches, assymetricJwkKeyTypeMatches, assymetricPublicJwkMatches } from "./equals.mjs";
|
|
22
22
|
import { PublicJwk } from "./PublicJwk.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
const require_Hasher = require('../../../crypto/hashes/Hasher.js');
|
|
4
|
-
const require_zod = require('../../../utils/zod.js');
|
|
5
3
|
const require_TypedArrayEncoder = require('../../../utils/TypedArrayEncoder.js');
|
|
4
|
+
const require_Hasher = require('../../../crypto/hashes/Hasher.js');
|
|
6
5
|
require('../../../utils/index.js');
|
|
6
|
+
const require_zod = require('../../../utils/zod.js');
|
|
7
7
|
const require_knownJwk = require('./knownJwk.js');
|
|
8
8
|
|
|
9
9
|
//#region src/modules/kms/jwk/jwkThumbprint.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import { Hasher } from "../../../crypto/hashes/Hasher.mjs";
|
|
4
|
-
import { zParseWithErrorHandling } from "../../../utils/zod.mjs";
|
|
5
3
|
import { TypedArrayEncoder } from "../../../utils/TypedArrayEncoder.mjs";
|
|
4
|
+
import { Hasher } from "../../../crypto/hashes/Hasher.mjs";
|
|
6
5
|
import "../../../utils/index.mjs";
|
|
6
|
+
import { zParseWithErrorHandling } from "../../../utils/zod.mjs";
|
|
7
7
|
import { zKmsJwkPublic } from "./knownJwk.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/kms/jwk/jwkThumbprint.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwkThumbprint.mjs","names":[],"sources":["../../../../src/modules/kms/jwk/jwkThumbprint.ts"],"sourcesContent":["import { type HashName
|
|
1
|
+
{"version":3,"file":"jwkThumbprint.mjs","names":[],"sources":["../../../../src/modules/kms/jwk/jwkThumbprint.ts"],"sourcesContent":["import { Hasher, type HashName } from '../../../crypto/hashes/Hasher'\nimport type { Uint8ArrayBuffer } from '../../../types'\nimport { TypedArrayEncoder } from '../../../utils'\nimport { zParseWithErrorHandling } from '../../../utils/zod'\nimport { type KmsJwkPublic, zKmsJwkPublic } from './knownJwk'\n\nexport const zJwkThumbprintComponents = zKmsJwkPublic.transform((data) => {\n if (data.kty === 'EC') {\n return { crv: data.crv, kty: data.kty, x: data.x, y: data.y }\n }\n\n if (data.kty === 'OKP') {\n return { crv: data.crv, kty: data.kty, x: data.x }\n }\n\n if (data.kty === 'RSA') {\n return { e: data.e, kty: data.kty, n: data.n }\n }\n\n if (data.kty === 'oct') {\n return { k: data.k, kty: data.kty }\n }\n\n throw new Error('Unsupported kty')\n})\n\nexport interface CalculateJwkThumbprintOptions {\n /**\n * The jwk to calcualte the thumbprint for.\n */\n jwk: KmsJwkPublic\n\n /**\n * The hashing algorithm to use for calculating the thumbprint\n */\n hashAlgorithm: HashName\n}\n\nexport function calculateJwkThumbprint(options: CalculateJwkThumbprintOptions): Uint8ArrayBuffer {\n const jwkThumbprintComponents = zParseWithErrorHandling(\n zJwkThumbprintComponents,\n options.jwk,\n `Provided jwk does not match a supported jwk structure. Either the 'kty' is not supported, or required values are missing.`\n )\n\n const thumbprint = Hasher.hash(\n TypedArrayEncoder.fromString(JSON.stringify(jwkThumbprintComponents)),\n options.hashAlgorithm\n )\n\n return thumbprint\n}\n"],"mappings":";;;;;;;;;AAMA,MAAa,2BAA2B,cAAc,WAAW,SAAS;AACxE,KAAI,KAAK,QAAQ,KACf,QAAO;EAAE,KAAK,KAAK;EAAK,KAAK,KAAK;EAAK,GAAG,KAAK;EAAG,GAAG,KAAK;EAAG;AAG/D,KAAI,KAAK,QAAQ,MACf,QAAO;EAAE,KAAK,KAAK;EAAK,KAAK,KAAK;EAAK,GAAG,KAAK;EAAG;AAGpD,KAAI,KAAK,QAAQ,MACf,QAAO;EAAE,GAAG,KAAK;EAAG,KAAK,KAAK;EAAK,GAAG,KAAK;EAAG;AAGhD,KAAI,KAAK,QAAQ,MACf,QAAO;EAAE,GAAG,KAAK;EAAG,KAAK,KAAK;EAAK;AAGrC,OAAM,IAAI,MAAM,kBAAkB;EAClC;AAcF,SAAgB,uBAAuB,SAA0D;CAC/F,MAAM,0BAA0B,wBAC9B,0BACA,QAAQ,KACR,4HACD;AAOD,QALmB,OAAO,KACxB,kBAAkB,WAAW,KAAK,UAAU,wBAAwB,CAAC,EACrE,QAAQ,cACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyOps.d.mts","names":[],"sources":["../../../../src/modules/kms/jwk/keyOps.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"keyOps.d.mts","names":[],"sources":["../../../../src/modules/kms/jwk/keyOps.ts"],"sourcesContent":[],"mappings":";;;;;AA4CgB,iBANA,qBAAA,CAMe,GAAA,EANY,aAMZ,GAN4B,YAM5B,CAAA,EAAA,IAAA;AAAA,iBAAf,eAAA,CAAe,GAAA,EAAM,YAAN,GAAqB,aAArB,CAAA,EAAA,OAAA;AAAM,iBAWrB,qBAAA,CAXqB,GAAA,EAWM,aAXN,GAWsB,YAXtB,CAAA,EAAA,IAAA;AAAe,iBAiBpC,aAAA,CAjBoC,GAAA,EAiBjB,aAjBiB,GAiBD,YAjBC,CAAA,EAAA,OAAA;AAAa,iBA4BjD,mBAAA,CA5BiD,GAAA,EA4BxB,aA5BwB,GA4BR,YA5BQ,CAAA,EAAA,IAAA;AAWjD,iBAuBA,gBAAA,CAvBqB,GAAA,EAuBC,YAvBD,GAuBgB,aAvBhB,CAAA,EAAA,OAAA;AAAA,iBAkCrB,sBAAA,CAlCqB,GAAA,EAkCO,aAlCP,GAkCuB,YAlCvB,CAAA,EAAA,IAAA;AAAM,iBAwC3B,gBAAA,CAxC2B,GAAA,EAwCL,YAxCK,GAwCU,aAxCV,CAAA,EAAA,OAAA;AAAgB,iBAmD3C,sBAAA,CAnD2C,GAAA,EAmDf,aAnDe,GAmDC,YAnDD,CAAA,EAAA,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyOps.d.ts","names":[],"sources":["../../../../src/modules/kms/jwk/keyOps.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"keyOps.d.ts","names":[],"sources":["../../../../src/modules/kms/jwk/keyOps.ts"],"sourcesContent":[],"mappings":";;;;;AA4CqC,iBANrB,qBAAA,CAMqB,GAAA,EANM,aAMN,GANsB,YAMtB,CAAA,EAAA,IAAA;AAAe,iBAApC,eAAA,CAAoC,GAAA,EAAf,YAAe,GAAA,aAAA,CAAA,EAAA,OAAA;AAAa,iBAWjD,qBAAA,CAXiD,GAAA,EAWtB,aAXsB,GAWN,YAXM,CAAA,EAAA,IAAA;AAWjD,iBAMA,aAAA,CANqB,GAAA,EAMF,aANE,GAMc,YANd,CAAA,EAAA,OAAA;AAAA,iBAiBrB,mBAAA,CAjBqB,GAAA,EAiBI,aAjBJ,GAiBoB,YAjBpB,CAAA,EAAA,IAAA;AAAM,iBAuB3B,gBAAA,CAvB2B,GAAA,EAuBL,YAvBK,GAuBU,aAvBV,CAAA,EAAA,OAAA;AAAgB,iBAkC3C,sBAAA,CAlC2C,GAAA,EAkCf,aAlCe,GAkCC,YAlCD,CAAA,EAAA,IAAA;AAAY,iBAwCvD,gBAAA,CAxCuD,GAAA,EAwCjC,YAxCiC,GAwClB,aAxCkB,CAAA,EAAA,OAAA;AAMvD,iBA6CA,sBAAA,CA7Ca,GAAA,EA6Ce,aA7Cf,GA6C+B,YA7C/B,CAAA,EAAA,IAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.js');
|
|
4
|
-
const require_zod = require('../../../utils/zod.js');
|
|
5
4
|
const require_KeyManagementError = require('../error/KeyManagementError.js');
|
|
6
5
|
const require_humanDescription = require('./humanDescription.js');
|
|
6
|
+
const require_zod = require('../../../utils/zod.js');
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
zod = require_rolldown_runtime.__toESM(zod);
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import { zUniqueArray } from "../../../utils/zod.mjs";
|
|
4
3
|
import { KeyManagementError } from "../error/KeyManagementError.mjs";
|
|
5
4
|
import { getJwkHumanDescription } from "./humanDescription.mjs";
|
|
5
|
+
import { zUniqueArray } from "../../../utils/zod.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/kms/jwk/keyOps.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyOps.mjs","names":[],"sources":["../../../../src/modules/kms/jwk/keyOps.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"keyOps.mjs","names":[],"sources":["../../../../src/modules/kms/jwk/keyOps.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zUniqueArray } from '../../../utils/zod'\nimport { KeyManagementError } from '../error/KeyManagementError'\nimport { getJwkHumanDescription } from './humanDescription'\nimport type { KmsJwkPrivate, KmsJwkPublic } from './knownJwk'\n\nexport const zKnownJwkUse = z.union([z.literal('sig').describe('signature'), z.literal('enc').describe('encryption')])\nexport type KnownJwkUse = z.output<typeof zKnownJwkUse>\n\nexport const zJwkUse = z.union([zKnownJwkUse, z.string()])\nexport type JwkUse = z.output<typeof zJwkUse>\n\nexport const zKnownJwkKeyOps = z.union([\n z.literal('sign').describe('compute digital signature or MAC'),\n z.literal('verify').describe('verify digital signature or MAC'),\n z.literal('encrypt').describe('encrypt content'),\n z.literal('decrypt').describe('decrypt content and validate decryption, if applicable'),\n z.literal('wrapKey').describe('encrypt key'),\n z.literal('unwrapKey').describe('decrypt key and validate decryption, if applicable'),\n z.literal('deriveKey').describe('derive key'),\n z.literal('deriveBits').describe('derive bits not to be used as a key'),\n])\nexport type KnownJwkKeyOps = z.output<typeof zKnownJwkKeyOps>\n\nexport const zJwkKeyOps = zUniqueArray(z.union([zKnownJwkKeyOps, z.string()]))\nexport type JwkKeyOps = z.output<typeof zJwkKeyOps>\n\nexport function keyAllowsDerive(key: KmsJwkPublic | KmsJwkPrivate): boolean {\n // Check if key has use/key_ops restrictions\n if (key.use && key.use !== 'enc') {\n return false\n }\n if (key.key_ops && !key.key_ops.includes('deriveKey')) {\n return false\n }\n return true\n}\n\nexport function assertKeyAllowsDerive(jwk: KmsJwkPrivate | KmsJwkPublic) {\n if (!keyAllowsDerive(jwk)) {\n throw new KeyManagementError(`${getJwkHumanDescription(jwk)} usage does not allow key derivation operations`)\n }\n}\n\nexport function keyAllowsVerify(key: KmsJwkPublic | KmsJwkPrivate): boolean {\n // Check if key has use/key_ops restrictions\n if (key.use && key.use !== 'sig') {\n return false\n }\n if (key.key_ops && !key.key_ops.includes('verify')) {\n return false\n }\n return true\n}\n\nexport function assertKeyAllowsVerify(jwk: KmsJwkPrivate | KmsJwkPublic) {\n if (!keyAllowsVerify(jwk)) {\n throw new KeyManagementError(`${getJwkHumanDescription(jwk)} usage does not allow verification operations`)\n }\n}\n\nexport function keyAllowsSign(key: KmsJwkPrivate | KmsJwkPublic): boolean {\n // Check if key has use/key_ops restrictions\n if (key.use && key.use !== 'sig') {\n return false\n }\n if (key.key_ops && !key.key_ops.includes('sign')) {\n return false\n }\n return true\n}\n\nexport function assertKeyAllowsSign(jwk: KmsJwkPrivate | KmsJwkPublic) {\n if (!keyAllowsSign(jwk)) {\n throw new KeyManagementError(`${getJwkHumanDescription(jwk)} usage does not allow signing operations`)\n }\n}\n\nexport function keyAllowsEncrypt(key: KmsJwkPublic | KmsJwkPrivate): boolean {\n // Check if key has use/key_ops restrictions\n if (key.use && key.use !== 'enc') {\n return false\n }\n if (key.key_ops && !key.key_ops.includes('encrypt')) {\n return false\n }\n return true\n}\n\nexport function assertKeyAllowsEncrypt(jwk: KmsJwkPrivate | KmsJwkPublic) {\n if (!keyAllowsEncrypt(jwk)) {\n throw new KeyManagementError(`${getJwkHumanDescription(jwk)} usage does not allow encryption operations`)\n }\n}\n\nexport function keyAllowsDecrypt(key: KmsJwkPublic | KmsJwkPrivate): boolean {\n // Check if key has use/key_ops restrictions\n if (key.use && key.use !== 'enc') {\n return false\n }\n if (key.key_ops && !key.key_ops.includes('decrypt')) {\n return false\n }\n return true\n}\n\nexport function assertKeyAllowsDecrypt(jwk: KmsJwkPrivate | KmsJwkPublic) {\n if (!keyAllowsDecrypt(jwk)) {\n throw new KeyManagementError(`${getJwkHumanDescription(jwk)} usage does not allow decryption operations`)\n }\n}\n"],"mappings":";;;;;;;;AAMA,MAAa,eAAe,EAAE,MAAM,CAAC,EAAE,QAAQ,MAAM,CAAC,SAAS,YAAY,EAAE,EAAE,QAAQ,MAAM,CAAC,SAAS,aAAa,CAAC,CAAC;AAGtH,MAAa,UAAU,EAAE,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAG1D,MAAa,kBAAkB,EAAE,MAAM;CACrC,EAAE,QAAQ,OAAO,CAAC,SAAS,mCAAmC;CAC9D,EAAE,QAAQ,SAAS,CAAC,SAAS,kCAAkC;CAC/D,EAAE,QAAQ,UAAU,CAAC,SAAS,kBAAkB;CAChD,EAAE,QAAQ,UAAU,CAAC,SAAS,yDAAyD;CACvF,EAAE,QAAQ,UAAU,CAAC,SAAS,cAAc;CAC5C,EAAE,QAAQ,YAAY,CAAC,SAAS,qDAAqD;CACrF,EAAE,QAAQ,YAAY,CAAC,SAAS,aAAa;CAC7C,EAAE,QAAQ,aAAa,CAAC,SAAS,sCAAsC;CACxE,CAAC;AAGF,MA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E3E,KAAI,IAAI,OAAO,IAAI,QAAQ,MACzB,QAAO;AAET,KAAI,IAAI,WAAW,CAAC,IAAI,QAAQ,SAAS,UAAU,CACjD,QAAO;AAET,QAAO;;AAGT,SAAgB,uBAAuB,KAAmC;AACxE,KAAI,CAAC,iBAAiB,IAAI,CACxB,OAAM,IAAI,mBAAmB,GAAG,uBAAuB,IAAI,CAAC,6CAA6C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { KmsCreateKeyType, KmsCreateKeyTypeEc, KmsCreateKeyTypeOct, KmsCreateKeyTypeOkp, KmsCreateKeyTypeRsa } from "../options/KmsCreateKeyOptions.mjs";
|
|
1
2
|
import { KmsJwkPrivateEc, KmsJwkPublicEc } from "./kty/ec/ecJwk.mjs";
|
|
2
3
|
import { KmsJwkPrivateOct, KmsJwkPublicOct } from "./kty/oct/octJwk.mjs";
|
|
3
4
|
import { KmsJwkPrivateOkp, KmsJwkPublicOkp } from "./kty/okp/okpJwk.mjs";
|
|
4
5
|
import { KmsJwkPrivateRsa, KmsJwkPublicRsa } from "./kty/rsa/rsaJwk.mjs";
|
|
5
|
-
import { KmsCreateKeyType, KmsCreateKeyTypeEc, KmsCreateKeyTypeOct, KmsCreateKeyTypeOkp, KmsCreateKeyTypeRsa } from "../options/KmsCreateKeyOptions.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/kms/jwk/knownJwk.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knownJwk.d.mts","names":[],"sources":["../../../../src/modules/kms/jwk/knownJwk.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"knownJwk.d.mts","names":[],"sources":["../../../../src/modules/kms/jwk/knownJwk.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAuCa,yBAAuB,CAAA,CAAA,8BAAA,CAAA,CAAA;;;;EAAvB,CAAA,aAAA;EAIX,CAAA,eAAA,eAAA,CAA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AA0B;IAC1B,aAAa,qBACX;OAAyB;IACzB;KAEE,0CAA0C,iBAAiB,YAAY,mBAC/E,kBACA,YAAY,mBACV,kBACA,YAAY,mBACV;OAAyB;IACzB,YAAY,kBACV;OAAwB;IACxB;KAEE,wCAAwC,oBAAoB,aAAa,sBACjF,kBACA,aAAa,sBACX,kBACA,aAAa,sBACX;OAAyB;IACzB,aAAa,qBACX;OAAwB;IACxB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { KmsCreateKeyType, KmsCreateKeyTypeEc, KmsCreateKeyTypeOct, KmsCreateKeyTypeOkp, KmsCreateKeyTypeRsa } from "../options/KmsCreateKeyOptions.js";
|
|
1
2
|
import { KmsJwkPrivateEc, KmsJwkPublicEc } from "./kty/ec/ecJwk.js";
|
|
2
3
|
import { KmsJwkPrivateOct, KmsJwkPublicOct } from "./kty/oct/octJwk.js";
|
|
3
4
|
import { KmsJwkPrivateOkp, KmsJwkPublicOkp } from "./kty/okp/okpJwk.js";
|
|
4
5
|
import { KmsJwkPrivateRsa, KmsJwkPublicRsa } from "./kty/rsa/rsaJwk.js";
|
|
5
|
-
import { KmsCreateKeyType, KmsCreateKeyTypeEc, KmsCreateKeyTypeOct, KmsCreateKeyTypeOkp, KmsCreateKeyTypeRsa } from "../options/KmsCreateKeyOptions.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/kms/jwk/knownJwk.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knownJwk.d.ts","names":[],"sources":["../../../../src/modules/kms/jwk/knownJwk.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"knownJwk.d.ts","names":[],"sources":["../../../../src/modules/kms/jwk/knownJwk.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAuCa,yBAAuB,CAAA,CAAA,8BAAA,CAAA,CAAA;;EAAvB,GAAA,WAAA,CAAA,CAAA,OAAA,EAAA,OAIX,EA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,eAAe;KAKvE,2CAA2C,oBAAoB,aAAa,sBACpF,mBACA,aAAa,sBACX,mBACA,aAAa,sBACX;OAA0B;IAC1B,aAAa,qBACX;OAAyB;IACzB;KAEE,0CAA0C,iBAAiB,YAAY,mBAC/E,kBACA,YAAY,mBACV,kBACA,YAAY,mBACV;OAAyB;IACzB,YAAY,kBACV;OAAwB;IACxB;KAEE,wCAAwC,oBAAoB,aAAa,sBACjF,kBACA,aAAa,sBACX,kBACA,aAAa,sBACX;OAAyB;IACzB,aAAa,qBACX;OAAwB;IACxB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.js');
|
|
4
|
-
const require_zod = require('../../../utils/zod.js');
|
|
5
4
|
const require_KeyManagementError = require('../error/KeyManagementError.js');
|
|
5
|
+
const require_zod = require('../../../utils/zod.js');
|
|
6
6
|
const require_ecJwk = require('./kty/ec/ecJwk.js');
|
|
7
7
|
const require_octJwk = require('./kty/oct/octJwk.js');
|
|
8
8
|
const require_okpJwk = require('./kty/okp/okpJwk.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import { zParseWithErrorHandling } from "../../../utils/zod.mjs";
|
|
4
3
|
import { KeyManagementError } from "../error/KeyManagementError.mjs";
|
|
4
|
+
import { zParseWithErrorHandling } from "../../../utils/zod.mjs";
|
|
5
5
|
import { zKmsJwkPrivateEc, zKmsJwkPrivateToPublicEc, zKmsJwkPublicEc } from "./kty/ec/ecJwk.mjs";
|
|
6
6
|
import { zKmsJwkPrivateOct, zKmsJwkPrivateToPublicOct, zKmsJwkPublicOct } from "./kty/oct/octJwk.mjs";
|
|
7
7
|
import { zKmsJwkPrivateOkp, zKmsJwkPrivateToPublicOkp, zKmsJwkPublicOkp } from "./kty/okp/okpJwk.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knownJwk.mjs","names":[],"sources":["../../../../src/modules/kms/jwk/knownJwk.ts"],"sourcesContent":["import { z } from 'zod'\nimport { KeyManagementError } from '../error/KeyManagementError'\nimport type {\n KmsCreateKeyType,\n KmsCreateKeyTypeEc,\n KmsCreateKeyTypeOct,\n KmsCreateKeyTypeOkp,\n KmsCreateKeyTypeRsa,\n} from '../options'\
|
|
1
|
+
{"version":3,"file":"knownJwk.mjs","names":[],"sources":["../../../../src/modules/kms/jwk/knownJwk.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zParseWithErrorHandling } from '../../../utils/zod'\nimport { KeyManagementError } from '../error/KeyManagementError'\nimport type {\n KmsCreateKeyType,\n KmsCreateKeyTypeEc,\n KmsCreateKeyTypeOct,\n KmsCreateKeyTypeOkp,\n KmsCreateKeyTypeRsa,\n} from '../options'\nimport {\n type KmsJwkPrivateEc,\n type KmsJwkPublicEc,\n zKmsJwkPrivateEc,\n zKmsJwkPrivateToPublicEc,\n zKmsJwkPublicEc,\n} from './kty/ec/ecJwk'\nimport {\n type KmsJwkPrivateOct,\n type KmsJwkPublicOct,\n zKmsJwkPrivateOct,\n zKmsJwkPrivateToPublicOct,\n zKmsJwkPublicOct,\n} from './kty/oct/octJwk'\nimport {\n type KmsJwkPrivateOkp,\n type KmsJwkPublicOkp,\n zKmsJwkPrivateOkp,\n zKmsJwkPrivateToPublicOkp,\n zKmsJwkPublicOkp,\n} from './kty/okp/okpJwk'\nimport {\n type KmsJwkPrivateRsa,\n type KmsJwkPublicRsa,\n zKmsJwkPrivateRsa,\n zKmsJwkPrivateToPublicRsa,\n zKmsJwkPublicRsa,\n} from './kty/rsa/rsaJwk'\n\nexport const zKmsJwkPublicAsymmetric = z.discriminatedUnion('kty', [\n zKmsJwkPublicEc,\n zKmsJwkPublicRsa,\n zKmsJwkPublicOkp,\n])\nexport type KmsJwkPublicAsymmetric = z.output<typeof zKmsJwkPublicAsymmetric>\n\nexport function isJwkAsymmetric(\n jwk: KmsJwkPublic | KmsJwkPrivate\n): jwk is KmsJwkPrivateAsymmetric | KmsJwkPublicAsymmetric {\n return jwk.kty !== 'oct'\n}\n\nexport function assertJwkAsymmetric(\n jwk: KmsJwkPublic | KmsJwkPrivate,\n keyId?: string\n): asserts jwk is KmsJwkPublicAsymmetric | KmsJwkPrivateAsymmetric {\n if (!isJwkAsymmetric(jwk)) {\n if (keyId) {\n throw new KeyManagementError(`Expected jwk with keyId ${keyId} to be an assymetric jwk, but found kty 'oct'`)\n }\n throw new KeyManagementError(\"Expected jwk to be an assymetric jwk, but found kty 'oct'\")\n }\n}\n\nexport const zKmsJwkPublicCrv = z.discriminatedUnion('kty', [zKmsJwkPublicEc, zKmsJwkPublicOkp])\nexport type KmsJwkPublicCrv = z.output<typeof zKmsJwkPublicCrv>\n\nexport const zKmsJwkPublic = z.discriminatedUnion('kty', [\n zKmsJwkPublicEc,\n zKmsJwkPublicRsa,\n zKmsJwkPublicOct,\n zKmsJwkPublicOkp,\n])\nexport type KmsJwkPublic = z.output<typeof zKmsJwkPublic>\n\nconst zKmsJwkPrivateToPublic = z\n .discriminatedUnion('kty', [\n zKmsJwkPrivateToPublicEc,\n zKmsJwkPrivateToPublicRsa,\n zKmsJwkPrivateToPublicOct,\n zKmsJwkPrivateToPublicOkp,\n ])\n // Mdoc library does not work well with undefined values. It should not be needed\n // but for now it's the easiest approach\n .transform(\n (jwk): KmsJwkPublic =>\n Object.fromEntries(Object.entries(jwk).filter(([, value]) => value !== undefined)) as KmsJwkPublic\n )\n\nexport const zKmsJwkPrivateCrv = z.discriminatedUnion('kty', [zKmsJwkPrivateEc, zKmsJwkPrivateOkp])\nexport type KmsJwkPrivateCrv = z.output<typeof zKmsJwkPrivateCrv>\n\nexport const zKmsJwkPrivate = z.discriminatedUnion('kty', [\n zKmsJwkPrivateEc,\n zKmsJwkPrivateRsa,\n zKmsJwkPrivateOct,\n zKmsJwkPrivateOkp,\n])\nexport type KmsJwkPrivate = z.output<typeof zKmsJwkPrivate>\n\nexport const zKmsJwkPrivateAsymmetric = z.discriminatedUnion('kty', [\n zKmsJwkPrivateEc,\n zKmsJwkPrivateRsa,\n zKmsJwkPrivateOkp,\n])\nexport type KmsJwkPrivateAsymmetric = z.output<typeof zKmsJwkPrivateAsymmetric>\n\nexport function publicJwkFromPrivateJwk(privateJwk: KmsJwkPrivate | KmsJwkPublic): KmsJwkPublic {\n // This will remove any private properties\n return zParseWithErrorHandling(zKmsJwkPrivateToPublic, privateJwk)\n}\n\nexport type KmsJwkPrivateFromKmsJwkPublic<Type extends KmsCreateKeyType> = Type extends KmsCreateKeyTypeRsa\n ? KmsJwkPrivateRsa\n : Type extends KmsCreateKeyTypeOct\n ? KmsJwkPrivateOct\n : Type extends KmsCreateKeyTypeOkp\n ? KmsJwkPrivateOkp & { crv: Type['crv'] }\n : Type extends KmsCreateKeyTypeEc\n ? KmsJwkPrivateEc & { crv: Type['crv'] }\n : KmsJwkPrivate\n\nexport type KmsJwkPublicFromKmsJwkPrivate<Jwk extends KmsJwkPrivate> = Jwk extends KmsJwkPrivateRsa\n ? KmsJwkPublicRsa\n : Jwk extends KmsJwkPrivateOct\n ? KmsJwkPublicOct\n : Jwk extends KmsJwkPrivateOkp\n ? KmsJwkPublicOkp & { crv: Jwk['crv'] }\n : Jwk extends KmsJwkPrivateEc\n ? KmsJwkPublicEc & { crv: Jwk['crv'] }\n : KmsJwkPublic\n\nexport type KmsJwkPublicFromCreateType<Type extends KmsCreateKeyType> = Type extends KmsCreateKeyTypeRsa\n ? KmsJwkPublicRsa\n : Type extends KmsCreateKeyTypeOct\n ? KmsJwkPublicOct\n : Type extends KmsCreateKeyTypeOkp\n ? KmsJwkPublicOkp & { crv: Type['crv'] }\n : Type extends KmsCreateKeyTypeEc\n ? KmsJwkPublicEc & { crv: Type['crv'] }\n : KmsJwkPublic\n"],"mappings":";;;;;;;;;;;AAuCA,MAAa,0BAA0B,EAAE,mBAAmB,OAAO;CACjE;CACA;CACA;CACD,CAAC;AAGF,SAAgB,gBACd,KACyD;AACzD,QAAO,IAAI,QAAQ;;AAGrB,SAAgB,oBACd,KACA,OACiE;AACjE,KAAI,CAAC,gBAAgB,IAAI,EAAE;AACzB,MAAI,MACF,OAAM,IAAI,mBAAmB,2BAA2B,MAAM,+CAA+C;AAE/G,QAAM,IAAI,mBAAmB,4DAA4D;;;AAI7F,MAAa,mBAAmB,EAAE,mBAAmB,OAAO,CAAC,iBAAiB,iBAAiB,CAAC;AAGhG,MAAa,gBAAgB,EAAE,mBAAmB,OAAO;CACvD;CACA;CACA;CACA;CACD,CAAC;AAGF,MAAM,yBAAyB,EAC5B,mBAAmB,OAAO;CACzB;CACA;CACA;CACA;CACD,CAAC,CAGD,WACE,QACC,OAAO,YAAY,OAAO,QAAQ,IAAI,CAAC,QAAQ,GAAG,WAAW,UAAU,OAAU,CAAC,CACrF;AAEH,MAAa,oBAAoB,EAAE,mBAAmB,OAAO,CAAC,kBAAkB,kBAAkB,CAAC;AAGnG,MAAa,iBAAiB,EAAE,mBAAmB,OAAO;CACxD;CACA;CACA;CACA;CACD,CAAC;AAGF,MAAa,2BAA2B,EAAE,mBAAmB,OAAO;CAClE;CACA;CACA;CACD,CAAC;AAGF,SAAgB,wBAAwB,YAAwD;AAE9F,QAAO,wBAAwB,wBAAwB,WAAW"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { KmsJwkPublicAsymmetric } from "../knownJwk.mjs";
|
|
2
1
|
import { KnownJwaKeyAgreementAlgorithm, KnownJwaSignatureAlgorithm } from "../jwa.mjs";
|
|
2
|
+
import { AnyUint8Array } from "../../../../types.mjs";
|
|
3
|
+
import { KmsJwkPublicAsymmetric } from "../knownJwk.mjs";
|
|
3
4
|
|
|
4
5
|
//#region src/modules/kms/jwk/kty/PublicJwk.d.ts
|
|
5
6
|
interface PublicJwkType<Jwk extends KmsJwkPublicAsymmetric = KmsJwkPublicAsymmetric> {
|
|
6
7
|
readonly jwk: Jwk;
|
|
7
8
|
supportedSignatureAlgorithms: KnownJwaSignatureAlgorithm[] | undefined;
|
|
8
9
|
supportdEncryptionKeyAgreementAlgorithms: KnownJwaKeyAgreementAlgorithm[] | undefined;
|
|
9
|
-
multicodec:
|
|
10
|
+
multicodec: AnyUint8Array;
|
|
10
11
|
}
|
|
11
12
|
//#endregion
|
|
12
13
|
export { PublicJwkType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicJwk.d.mts","names":[],"sources":["../../../../../src/modules/kms/jwk/kty/PublicJwk.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PublicJwk.d.mts","names":[],"sources":["../../../../../src/modules/kms/jwk/kty/PublicJwk.ts"],"sourcesContent":[],"mappings":";;;;;UAIiB,0BAA0B,yBAAyB;gBACpD;gCAEgB;4CACY;EAJ3B,UAAA,EAMH,aANgB"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { KmsJwkPublicAsymmetric } from "../knownJwk.js";
|
|
2
1
|
import { KnownJwaKeyAgreementAlgorithm, KnownJwaSignatureAlgorithm } from "../jwa.js";
|
|
2
|
+
import { AnyUint8Array } from "../../../../types.js";
|
|
3
|
+
import { KmsJwkPublicAsymmetric } from "../knownJwk.js";
|
|
3
4
|
|
|
4
5
|
//#region src/modules/kms/jwk/kty/PublicJwk.d.ts
|
|
5
6
|
interface PublicJwkType<Jwk extends KmsJwkPublicAsymmetric = KmsJwkPublicAsymmetric> {
|
|
6
7
|
readonly jwk: Jwk;
|
|
7
8
|
supportedSignatureAlgorithms: KnownJwaSignatureAlgorithm[] | undefined;
|
|
8
9
|
supportdEncryptionKeyAgreementAlgorithms: KnownJwaKeyAgreementAlgorithm[] | undefined;
|
|
9
|
-
multicodec:
|
|
10
|
+
multicodec: AnyUint8Array;
|
|
10
11
|
}
|
|
11
12
|
//#endregion
|
|
12
13
|
export { PublicJwkType };
|