@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
package/build/agent/Agent.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { InitConfig } from "../types.mjs";
|
|
1
2
|
import { AgentDependencies } from "./AgentDependencies.mjs";
|
|
2
3
|
import { EventEmitter } from "./EventEmitter.mjs";
|
|
3
4
|
import { AgentModulesInput } from "./AgentModules.mjs";
|
|
4
5
|
import { DependencyManager } from "../plugins/DependencyManager.mjs";
|
|
5
6
|
import { BaseAgent } from "./BaseAgent.mjs";
|
|
6
|
-
import { InitConfig } from "../types.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/agent/Agent.d.ts
|
|
9
9
|
interface AgentOptions<AgentModules extends AgentModulesInput> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agent.d.mts","names":[],"sources":["../../src/agent/Agent.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"Agent.d.mts","names":[],"sources":["../../src/agent/Agent.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAeU,kCAAkC;WACjC;YACC;gBACI;AAL6B;AAEvB,cAQT,KARS,CAAA,qBAQkB,iBARlB,GAAA,GAAA,CAAA,SAQmD,SARnD,CAQ6D,YAR7D,CAAA,CAAA;aAAsB,CAAA,OAAA,EASd,YATc,CASD,YATC,CAAA,EAAA,iBAAA,CAAA,EAS+B,iBAT/B;MACjC,MAAA,CAAA,CAAA,EAsDQ,YAtDR;YACC,CAAA,CAAA,EAyDa,OAzDb,CAAA,IAAA,CAAA;UACI,CAAA,CAAA,EA8FO,OA9FP,CAAA,IAAA,CAAA"}
|
package/build/agent/Agent.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { InitConfig } from "../types.js";
|
|
1
2
|
import { AgentDependencies } from "./AgentDependencies.js";
|
|
2
3
|
import { EventEmitter } from "./EventEmitter.js";
|
|
3
4
|
import { AgentModulesInput } from "./AgentModules.js";
|
|
4
5
|
import { DependencyManager } from "../plugins/DependencyManager.js";
|
|
5
6
|
import { BaseAgent } from "./BaseAgent.js";
|
|
6
|
-
import { InitConfig } from "../types.js";
|
|
7
7
|
|
|
8
8
|
//#region src/agent/Agent.d.ts
|
|
9
9
|
interface AgentOptions<AgentModules extends AgentModulesInput> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agent.d.ts","names":[],"sources":["../../src/agent/Agent.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"Agent.d.ts","names":[],"sources":["../../src/agent/Agent.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAeU,kCAAkC;WACjC;EADD,OAAA,CAAA,EAEE,YAFU;EAAA,YAAA,EAGN,iBAHM;;AACX,cAOE,KAPF,CAAA,qBAO6B,iBAP7B,GAAA,GAAA,CAAA,SAO8D,SAP9D,CAOwE,YAPxE,CAAA,CAAA;aACC,CAAA,OAAA,EAOkB,YAPlB,CAO+B,YAP/B,CAAA,EAAA,iBAAA,CAAA,EAO+D,iBAP/D;MACI,MAAA,CAAA,CAAA,EAoDG,YApDH;EAAiB,UAAA,CAAA,CAAA,EAwDR,OAxDQ,CAAA,IAAA,CAAA;EAKpB,QAAK,CAAA,CAAA,EAyFK,OAzFL,CAAA,IAAA,CAAA"}
|
package/build/agent/Agent.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
4
4
|
const require_constants = require('../constants.js');
|
|
5
|
-
const require_CredoError = require('../error/CredoError.js');
|
|
6
|
-
require('../error/index.js');
|
|
7
5
|
const require_AgentConfig = require('./AgentConfig.js');
|
|
8
6
|
const require_AgentContext = require('./context/AgentContext.js');
|
|
7
|
+
const require_CredoError = require('../error/CredoError.js');
|
|
8
|
+
require('../error/index.js');
|
|
9
9
|
const require_DependencyManager = require('../plugins/DependencyManager.js');
|
|
10
10
|
require('../plugins/index.js');
|
|
11
11
|
const require_DefaultAgentContextProvider = require('./context/DefaultAgentContextProvider.js');
|
package/build/agent/Agent.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
import { InjectionSymbols } from "../constants.mjs";
|
|
4
|
-
import { CredoError } from "../error/CredoError.mjs";
|
|
5
|
-
import "../error/index.mjs";
|
|
6
4
|
import { AgentConfig } from "./AgentConfig.mjs";
|
|
7
5
|
import { AgentContext } from "./context/AgentContext.mjs";
|
|
6
|
+
import { CredoError } from "../error/CredoError.mjs";
|
|
7
|
+
import "../error/index.mjs";
|
|
8
8
|
import { DependencyManager } from "../plugins/DependencyManager.mjs";
|
|
9
9
|
import "../plugins/index.mjs";
|
|
10
10
|
import { DefaultAgentContextProvider } from "./context/DefaultAgentContextProvider.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agent.mjs","names":[],"sources":["../../src/agent/Agent.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Agent.mjs","names":[],"sources":["../../src/agent/Agent.ts"],"sourcesContent":["import { Subject } from 'rxjs'\nimport { InjectionSymbols } from '../constants'\nimport { JwsService } from '../crypto/JwsService'\nimport { CredoError } from '../error'\nimport { DependencyManager } from '../plugins'\nimport { StorageUpdateService, StorageVersionRepository, UpdateAssistant } from '../storage'\nimport type { InitConfig } from '../types'\nimport { AgentConfig } from './AgentConfig'\nimport type { AgentDependencies } from './AgentDependencies'\nimport type { AgentModulesInput } from './AgentModules'\nimport { extendModulesWithDefaultModules } from './AgentModules'\nimport { BaseAgent } from './BaseAgent'\nimport { AgentContext, DefaultAgentContextProvider } from './context'\nimport { EventEmitter } from './EventEmitter'\n\ninterface AgentOptions<AgentModules extends AgentModulesInput> {\n config?: InitConfig\n modules?: AgentModules\n dependencies: AgentDependencies\n}\n\n// Any makes sure you can use Agent as a type without always needing to specify the exact generics for the agent\n// biome-ignore lint/suspicious/noExplicitAny: no explanation\nexport class Agent<AgentModules extends AgentModulesInput = any> extends BaseAgent<AgentModules> {\n public constructor(options: AgentOptions<AgentModules>, dependencyManager = new DependencyManager()) {\n const agentConfig = new AgentConfig(options.config ?? {}, options.dependencies)\n const modulesWithDefaultModules = extendModulesWithDefaultModules(options.modules)\n\n // Register internal dependencies\n dependencyManager.registerSingleton(EventEmitter)\n dependencyManager.registerSingleton(JwsService)\n dependencyManager.registerSingleton(StorageVersionRepository)\n dependencyManager.registerSingleton(StorageUpdateService)\n\n dependencyManager.registerInstance(AgentConfig, agentConfig)\n dependencyManager.registerInstance(InjectionSymbols.AgentDependencies, agentConfig.agentDependencies)\n dependencyManager.registerInstance(InjectionSymbols.Stop$, new Subject<boolean>())\n dependencyManager.registerInstance(InjectionSymbols.FileSystem, new agentConfig.agentDependencies.FileSystem())\n\n // Register all modules. This will also include the default modules\n dependencyManager.registerModules(modulesWithDefaultModules)\n\n if (!dependencyManager.isRegistered(InjectionSymbols.Logger)) {\n dependencyManager.registerInstance(InjectionSymbols.Logger, agentConfig.logger)\n }\n if (!dependencyManager.isRegistered(InjectionSymbols.StorageService)) {\n throw new CredoError(\n \"Missing required dependency: 'StorageService'. You can register it using the AskarModule, DrizzleStorageModule, or implement your own.\"\n )\n }\n\n // TODO: contextCorrelationId for base wallet\n // Bind the default agent context to the container for use in modules etc.\n dependencyManager.registerInstance(\n AgentContext,\n new AgentContext({\n dependencyManager,\n contextCorrelationId: 'default',\n isRootAgentContext: true,\n })\n )\n\n // If no agent context provider has been registered we use the default agent context provider.\n if (!dependencyManager.isRegistered(InjectionSymbols.AgentContextProvider)) {\n dependencyManager.registerSingleton(InjectionSymbols.AgentContextProvider, DefaultAgentContextProvider)\n }\n\n super(agentConfig, dependencyManager)\n }\n\n public get events() {\n return this.eventEmitter\n }\n\n public async initialize() {\n if (this._isInitialized) {\n throw new CredoError(\n 'Agent already initialized. Currently it is not supported to re-initialize an already initialized agent.'\n )\n }\n\n // We first initialize all the modules\n await this.dependencyManager.initializeModules(this.agentContext)\n\n // Then we initialize the root agent context\n await this.dependencyManager.initializeAgentContext(this.agentContext)\n\n // Make sure the storage is up to date\n const storageUpdateService = this.dependencyManager.resolve(StorageUpdateService)\n const isStorageUpToDate = await storageUpdateService.isUpToDate(this.agentContext)\n this.logger.info(`Agent storage is ${isStorageUpToDate ? '' : 'not '}up to date.`)\n\n if (!isStorageUpToDate && this.agentConfig.autoUpdateStorageOnStartup) {\n const updateAssistant = new UpdateAssistant(this)\n\n await updateAssistant.initialize()\n await updateAssistant.update()\n } else if (!isStorageUpToDate) {\n const currentVersion = await storageUpdateService.getCurrentStorageVersion(this.agentContext)\n\n // Close agent context to prevent un-initialized agent with initialized agent context\n await this.dependencyManager.closeAgentContext(this.agentContext)\n\n throw new CredoError(\n // TODO: add link to where documentation on how to update can be found.\n `Current agent storage is not up to date. To prevent the framework state from getting corrupted the agent initialization is aborted. Make sure to update the agent storage (currently at ${currentVersion}) to the latest version (${UpdateAssistant.frameworkStorageVersion}). You can also downgrade your version of Credo.`\n )\n }\n\n this._isInitialized = true\n }\n\n public async shutdown() {\n // TODO: replace stop$, should be replaced by module specific lifecycle methods\n const stop$ = this.dependencyManager.resolve<Subject<boolean>>(InjectionSymbols.Stop$)\n // All observables use takeUntil with the stop$ observable\n // this means all observables will stop running if a value is emitted on this observable\n stop$.next(true)\n\n await this.dependencyManager.shutdownModules(this.agentContext)\n await this.dependencyManager.closeAgentContext(this.agentContext)\n\n this._isInitialized = false\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAa,QAAb,cAAyE,UAAwB;CAC/F,AAAO,YAAY,SAAqC,oBAAoB,IAAI,mBAAmB,EAAE;EACnG,MAAM,cAAc,IAAI,YAAY,QAAQ,UAAU,EAAE,EAAE,QAAQ,aAAa;EAC/E,MAAM,4BAA4B,gCAAgC,QAAQ,QAAQ;AAGlF,oBAAkB,kBAAkB,aAAa;AACjD,oBAAkB,kBAAkB,WAAW;AAC/C,oBAAkB,kBAAkB,yBAAyB;AAC7D,oBAAkB,kBAAkB,qBAAqB;AAEzD,oBAAkB,iBAAiB,aAAa,YAAY;AAC5D,oBAAkB,iBAAiB,iBAAiB,mBAAmB,YAAY,kBAAkB;AACrG,oBAAkB,iBAAiB,iBAAiB,OAAO,IAAI,SAAkB,CAAC;AAClF,oBAAkB,iBAAiB,iBAAiB,YAAY,IAAI,YAAY,kBAAkB,YAAY,CAAC;AAG/G,oBAAkB,gBAAgB,0BAA0B;AAE5D,MAAI,CAAC,kBAAkB,aAAa,iBAAiB,OAAO,CAC1D,mBAAkB,iBAAiB,iBAAiB,QAAQ,YAAY,OAAO;AAEjF,MAAI,CAAC,kBAAkB,aAAa,iBAAiB,eAAe,CAClE,OAAM,IAAI,WACR,yIACD;AAKH,oBAAkB,iBAChB,cACA,IAAI,aAAa;GACf;GACA,sBAAsB;GACtB,oBAAoB;GACrB,CAAC,CACH;AAGD,MAAI,CAAC,kBAAkB,aAAa,iBAAiB,qBAAqB,CACxE,mBAAkB,kBAAkB,iBAAiB,sBAAsB,4BAA4B;AAGzG,QAAM,aAAa,kBAAkB;;CAGvC,IAAW,SAAS;AAClB,SAAO,KAAK;;CAGd,MAAa,aAAa;AACxB,MAAI,KAAK,eACP,OAAM,IAAI,WACR,0GACD;AAIH,QAAM,KAAK,kBAAkB,kBAAkB,KAAK,aAAa;AAGjE,QAAM,KAAK,kBAAkB,uBAAuB,KAAK,aAAa;EAGtE,MAAM,uBAAuB,KAAK,kBAAkB,QAAQ,qBAAqB;EACjF,MAAM,oBAAoB,MAAM,qBAAqB,WAAW,KAAK,aAAa;AAClF,OAAK,OAAO,KAAK,oBAAoB,oBAAoB,KAAK,OAAO,aAAa;AAElF,MAAI,CAAC,qBAAqB,KAAK,YAAY,4BAA4B;GACrE,MAAM,kBAAkB,IAAI,gBAAgB,KAAK;AAEjD,SAAM,gBAAgB,YAAY;AAClC,SAAM,gBAAgB,QAAQ;aACrB,CAAC,mBAAmB;GAC7B,MAAM,iBAAiB,MAAM,qBAAqB,yBAAyB,KAAK,aAAa;AAG7F,SAAM,KAAK,kBAAkB,kBAAkB,KAAK,aAAa;AAEjE,SAAM,IAAI,WAER,2LAA2L,eAAe,2BAA2B,gBAAgB,wBAAwB,kDAC9Q;;AAGH,OAAK,iBAAiB;;CAGxB,MAAa,WAAW;AAKtB,EAHc,KAAK,kBAAkB,QAA0B,iBAAiB,MAAM,CAGhF,KAAK,KAAK;AAEhB,QAAM,KAAK,kBAAkB,gBAAgB,KAAK,aAAa;AAC/D,QAAM,KAAK,kBAAkB,kBAAkB,KAAK,aAAa;AAEjE,OAAK,iBAAiB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LogLevel, Logger } from "../logger/Logger.mjs";
|
|
2
|
-
import { AgentDependencies } from "./AgentDependencies.mjs";
|
|
3
2
|
import { InitConfig } from "../types.mjs";
|
|
3
|
+
import { AgentDependencies } from "./AgentDependencies.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/AgentConfig.d.ts
|
|
6
6
|
declare class AgentConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentConfig.d.mts","names":[],"sources":["../../src/agent/AgentConfig.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"AgentConfig.d.mts","names":[],"sources":["../../src/agent/AgentConfig.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,WAAA;;UAEI;EAFJ,SAAA,iBAAW,EAGa,iBAHb;EAAA,WAAA,CAAA,UAAA,EAKS,UALT,EAAA,iBAAA,EAKwC,iBALxC;MAEP,qBAAA,CAAA,CAAA,EAAA,OAAA;MACoB,0BAAA,CAAA,CAAA,EAAA,OAAA;QAEJ,CAAA,MAAA,EAcT,OAdS,CAcD,UAdC,CAAA,CAAA,EAca,WAdb;QAA+B,CAAA,CAAA,EAAA;IAchC,MAAA,UAAA;IAAR,iBAAA,EAAA,OAAA;IAAsB,0BAAA,CAAA,EAAA,OAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LogLevel, Logger } from "../logger/Logger.js";
|
|
2
|
-
import { AgentDependencies } from "./AgentDependencies.js";
|
|
3
2
|
import { InitConfig } from "../types.js";
|
|
3
|
+
import { AgentDependencies } from "./AgentDependencies.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/AgentConfig.d.ts
|
|
6
6
|
declare class AgentConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentConfig.d.ts","names":[],"sources":["../../src/agent/AgentConfig.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"AgentConfig.d.ts","names":[],"sources":["../../src/agent/AgentConfig.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,WAAA;EAAA,QAAA,UAAW;EAAA,MAAA,EAEP,MAFO;WAEP,iBAAA,EACoB,iBADpB;aACoB,CAAA,UAAA,EAEJ,UAFI,EAAA,iBAAA,EAE2B,iBAF3B;MAEJ,qBAAA,CAAA,CAAA,EAAA,OAAA;MAA+B,0BAAA,CAAA,CAAA,EAAA,OAAA;QAchC,CAAA,MAAA,EAAR,OAAQ,CAAA,UAAA,CAAA,CAAA,EAAc,WAAd;QAAR,CAAA,CAAA,EAAA;IAAsB,MAAA,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentConfig.mjs","names":[],"sources":["../../src/agent/AgentConfig.ts"],"sourcesContent":["import type { Logger } from '../logger'\nimport
|
|
1
|
+
{"version":3,"file":"AgentConfig.mjs","names":[],"sources":["../../src/agent/AgentConfig.ts"],"sourcesContent":["import type { Logger } from '../logger'\nimport { ConsoleLogger, LogLevel } from '../logger'\nimport type { InitConfig } from '../types'\nimport type { AgentDependencies } from './AgentDependencies'\n\nexport class AgentConfig {\n private initConfig: InitConfig\n public logger: Logger\n public readonly agentDependencies: AgentDependencies\n\n public constructor(initConfig: InitConfig, agentDependencies: AgentDependencies) {\n this.initConfig = initConfig\n this.logger = initConfig.logger ?? new ConsoleLogger(LogLevel.off)\n this.agentDependencies = agentDependencies\n }\n\n public get allowInsecureHttpUrls() {\n return this.initConfig.allowInsecureHttpUrls ?? false\n }\n\n public get autoUpdateStorageOnStartup() {\n return this.initConfig.autoUpdateStorageOnStartup ?? false\n }\n\n public extend(config: Partial<InitConfig>): AgentConfig {\n return new AgentConfig({ ...this.initConfig, logger: this.logger, ...config }, this.agentDependencies)\n }\n\n public toJSON() {\n return {\n ...this.initConfig,\n logger: this.logger.logLevel,\n agentDependencies: Boolean(this.agentDependencies),\n }\n }\n}\n"],"mappings":";;;;;;AAKA,IAAa,cAAb,MAAa,YAAY;CAKvB,AAAO,YAAY,YAAwB,mBAAsC;AAC/E,OAAK,aAAa;AAClB,OAAK,SAAS,WAAW,UAAU,IAAI,cAAc,SAAS,IAAI;AAClE,OAAK,oBAAoB;;CAG3B,IAAW,wBAAwB;AACjC,SAAO,KAAK,WAAW,yBAAyB;;CAGlD,IAAW,6BAA6B;AACtC,SAAO,KAAK,WAAW,8BAA8B;;CAGvD,AAAO,OAAO,QAA0C;AACtD,SAAO,IAAI,YAAY;GAAE,GAAG,KAAK;GAAY,QAAQ,KAAK;GAAQ,GAAG;GAAQ,EAAE,KAAK,kBAAkB;;CAGxG,AAAO,SAAS;AACd,SAAO;GACL,GAAG,KAAK;GACR,QAAQ,KAAK,OAAO;GACpB,mBAAmB,QAAQ,KAAK,kBAAkB;GACnD"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Constructor } from "../utils/mixins.mjs";
|
|
2
2
|
import { CacheModule } from "../modules/cache/CacheModule.mjs";
|
|
3
3
|
import { DcqlModule } from "../modules/dcql/DcqlModule.mjs";
|
|
4
|
-
import { DidsModule } from "../modules/dids/DidsModule.mjs";
|
|
5
4
|
import { DifPresentationExchangeModule } from "../modules/dif-presentation-exchange/DifPresentationExchangeModule.mjs";
|
|
6
|
-
import { X509Module } from "../modules/x509/X509Module.mjs";
|
|
7
5
|
import { SdJwtVcModule } from "../modules/sd-jwt-vc/SdJwtVcModule.mjs";
|
|
8
|
-
import { W3cCredentialsModule } from "../modules/vc/W3cCredentialsModule.mjs";
|
|
9
6
|
import { MdocModule } from "../modules/mdoc/MdocModule.mjs";
|
|
7
|
+
import { W3cCredentialsModule } from "../modules/vc/W3cCredentialsModule.mjs";
|
|
8
|
+
import { X509Module } from "../modules/x509/X509Module.mjs";
|
|
9
|
+
import { KeyManagementModule } from "../modules/kms/KeyManagementModule.mjs";
|
|
10
|
+
import { DidsModule } from "../modules/dids/DidsModule.mjs";
|
|
10
11
|
import { GenericRecordsModule } from "../modules/generic-records/GenericRecordsModule.mjs";
|
|
11
12
|
import { Module } from "../plugins/Module.mjs";
|
|
12
|
-
import { KeyManagementModule } from "../modules/kms/KeyManagementModule.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/agent/AgentModules.d.ts
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentModules.d.mts","names":[],"sources":["../../src/agent/AgentModules.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AgentModules.d.mts","names":[],"sources":["../../src/agent/AgentModules.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;AAiBY,KAAA,UAAA,GAAU;EAGV,CAAA,GAAA,EAAA,MAAA,CAAA,EAH8B,MAGhB;AAM1B,CAAA;AAOY,KAbA,cAAA,GAamB,CAAA,CAAA;;;;;AAE3B,KATQ,iBAAA,GAAoB,UAS5B;;;;AAIJ;;AAAkD,KANtC,mBAAA,GAMsC,gBACpB,MANR,UAMQ,CAAA,OANU,sBAMV,CAAA,GANoC,UAMpC,CAL1B,UAK0B,CAAA,OALR,sBAKQ,CAAA,CALgB,SAKhB,CAAA,CAAA;AAAd,KADJ,qBACI,CAAA,gBADkC,UAClC,CAAA,GAAA,gBAAA,OAAoD,CAAA,MAAtC,OAAsC,EAAA,MAAvB,mBAAuB,CAAA,GAAA,OAAA,CAAQ,SAAR,CAAA;AAAiB,KAGzE,iBAHyE,CAAA,UAG7C,MAH6C,CAAA,GAGnC,CAHmC,CAAA,KAAA,CAAA,SAGlB,WAHkB,CAAA,OAAA,CAAA,GAIjF,YAJiF,CAIpE,CAJoE,CAAA,KAAA,CAAA,CAAA,GAAA,SAAA;AAGrF;;;;;;;;AAoCA;;;;;;;;;;;;AAqB8C;;;;;;;;;;;;KArBlC,yBAAyB,oCACf,WAAW,QAAQ,0BAA0B,uBAC7D,oBACQ,kBAAkB,QAAQ;;;;;iBAwB/B,sBAAA,CAAA"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Constructor } from "../utils/mixins.js";
|
|
2
2
|
import { CacheModule } from "../modules/cache/CacheModule.js";
|
|
3
3
|
import { DcqlModule } from "../modules/dcql/DcqlModule.js";
|
|
4
|
-
import { DidsModule } from "../modules/dids/DidsModule.js";
|
|
5
4
|
import { DifPresentationExchangeModule } from "../modules/dif-presentation-exchange/DifPresentationExchangeModule.js";
|
|
6
|
-
import { X509Module } from "../modules/x509/X509Module.js";
|
|
7
5
|
import { SdJwtVcModule } from "../modules/sd-jwt-vc/SdJwtVcModule.js";
|
|
8
|
-
import { W3cCredentialsModule } from "../modules/vc/W3cCredentialsModule.js";
|
|
9
6
|
import { MdocModule } from "../modules/mdoc/MdocModule.js";
|
|
7
|
+
import { W3cCredentialsModule } from "../modules/vc/W3cCredentialsModule.js";
|
|
8
|
+
import { X509Module } from "../modules/x509/X509Module.js";
|
|
9
|
+
import { KeyManagementModule } from "../modules/kms/KeyManagementModule.js";
|
|
10
|
+
import { DidsModule } from "../modules/dids/DidsModule.js";
|
|
10
11
|
import { GenericRecordsModule } from "../modules/generic-records/GenericRecordsModule.js";
|
|
11
12
|
import { Module } from "../plugins/Module.js";
|
|
12
|
-
import { KeyManagementModule } from "../modules/kms/KeyManagementModule.js";
|
|
13
13
|
|
|
14
14
|
//#region src/agent/AgentModules.d.ts
|
|
15
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentModules.d.ts","names":[],"sources":["../../src/agent/AgentModules.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AgentModules.d.ts","names":[],"sources":["../../src/agent/AgentModules.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;AAiBA;AAGA;AAMY,KATA,UAAA,GASiB;EAOjB,CAAA,GAAA,EAAA,MAAA,CAAA,EAhB8B,MAgB9B;CAAmB;AACS,KAd5B,cAAA,GAc4B,CAAA,CAAA;;;;;AAA0B,KARtD,iBAAA,GAAoB,UAQkC;;AAKlE;;;;AAC6C,KAPjC,mBAAA,GAOiC,gBAA7B,MANM,UAMN,CAAA,OANwB,sBAMxB,CAAA,GANkD,UAMlD,CALZ,UAKY,CAAA,OALM,sBAKN,CAAA,CAL8B,SAK9B,CAAA,CAAA;AAA4D,KADhE,qBACgE,CAAA,gBAD1B,UAC0B,CAAA,GAAA,gBAA5D,OAAqE,CAAA,MAAvD,OAAuD,EAAA,MAAxC,mBAAwC,CAAA,GAAjB,OAAiB,CAAT,SAAS,CAAA,EAGrF;AAA6B,KAAjB,iBAAiB,CAAA,UAAW,MAAX,CAAA,GAAqB,CAArB,CAAA,KAAA,CAAA,SAAsC,WAAtC,CAAA,OAAA,CAAA,GACzB,YADyB,CACZ,CADY,CAAA,KAAA,CAAA,CAAA,GAAA,SAAA;;;;;;;AAoC7B;;;;;;;;;;;;AAqB8C;;;;;;;;;;;;;;KArBlC,yBAAyB,oCACf,WAAW,QAAQ,0BAA0B,uBAC7D,oBACQ,kBAAkB,QAAQ;;;;;iBAwB/B,sBAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentModules.mjs","names":["defaultModules: Array<[string, Module]>","customModules: Array<[string, Module]>"],"sources":["../../src/agent/AgentModules.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"AgentModules.mjs","names":["defaultModules: Array<[string, Module]>","customModules: Array<[string, Module]>"],"sources":["../../src/agent/AgentModules.ts"],"sourcesContent":["import { CacheModule, SingleContextStorageLruCache } from '../modules/cache'\nimport { DcqlModule } from '../modules/dcql/DcqlModule'\nimport { DidsModule } from '../modules/dids'\nimport { DifPresentationExchangeModule } from '../modules/dif-presentation-exchange'\nimport { GenericRecordsModule } from '../modules/generic-records'\nimport { KeyManagementModule } from '../modules/kms'\nimport { MdocModule } from '../modules/mdoc/MdocModule'\nimport { SdJwtVcModule } from '../modules/sd-jwt-vc'\nimport { W3cCredentialsModule } from '../modules/vc'\nimport { X509Module } from '../modules/x509'\nimport type { ApiModule, DependencyManager, Module } from '../plugins'\nimport type { IsAny } from '../types'\nimport type { Constructor } from '../utils/mixins'\n\n/**\n * Simple utility type that represent a map of modules. This is used to map from moduleKey (api key) to the api in the framework.\n */\nexport type ModulesMap = { [key: string]: Module }\n\n// biome-ignore lint/complexity/noBannedTypes: no explanation\nexport type EmptyModuleMap = {}\n\n/**\n * Default modules can be optionally defined to provide custom configuration. This type makes it so that it is not\n * possible to use a different key for the default modules\n */\nexport type AgentModulesInput = ModulesMap\n\n/**\n * Type that represents the default agent modules. This is the {@link ModulesMap} variant for the default modules in the framework.\n * It uses the return type of the {@link getDefaultAgentModules} method to automatically infer which modules are always available on\n * the agent and in the agent. namespace.\n */\nexport type DefaultAgentModules = {\n [moduleKey in keyof ReturnType<typeof getDefaultAgentModules>]: ReturnType<\n ReturnType<typeof getDefaultAgentModules>[moduleKey]\n >\n}\n\nexport type WithoutDefaultModules<Modules extends ModulesMap> = {\n [moduleKey in Exclude<keyof Modules, keyof DefaultAgentModules>]: Modules[moduleKey]\n}\n\nexport type ModuleApiInstance<M extends Module> = M['api'] extends Constructor<unknown>\n ? InstanceType<M['api']>\n : undefined\n\n/**\n * Type that represents the api object of the agent (`agent.xxx`). It will extract all keys of the modules and map this to the\n * registered {@link Module.api} class instance. If the module does not have an api class registered, the property will be removed\n * and won't be available on the api object.\n *\n * @example\n * If the following AgentModules type was passed:\n * ```ts\n * {\n * connections: DidCommConnectionsModule\n * indy: IndyModule\n * }\n * ```\n *\n * And we use the `AgentApi` type like this:\n * ```ts\n * type MyAgentApi = AgentApi<{\n * connections: DidCommConnectionsModule\n * indy: IndyModule\n * }>\n * ```\n *\n * the resulting agent api will look like:\n *\n * ```ts\n * {\n * connections: ConnectionsApi\n * }\n * ```\n *\n * The `indy` module has been ignored because it doesn't define an api class.\n */\nexport type AgentApi<Modules extends ModulesMap> = {\n [moduleKey in keyof Modules as Modules[moduleKey]['api'] extends Constructor<unknown>\n ? moduleKey\n : never]: ModuleApiInstance<Modules[moduleKey]>\n}\n\n/**\n * Returns the `api` type from the CustomModuleType if the module is an ApiModule. If the module is not defined\n * which is the case if you don't configure a default agent module (e.g. credentials module), it will use the default\n * module type and use that for the typing. This will contain the default typing, and thus provide the correct agent api\n * interface\n */\nexport type CustomOrDefaultApi<\n CustomModuleType,\n DefaultModuleType extends ApiModule,\n> = IsAny<CustomModuleType> extends true\n ? InstanceType<DefaultModuleType['api']>\n : CustomModuleType extends ApiModule\n ? InstanceType<CustomModuleType['api']>\n : CustomModuleType extends Module\n ? never\n : InstanceType<DefaultModuleType['api']>\n\n/**\n * Method to get the default agent modules to be registered on any agent instance. It doens't configure the modules in any way,\n * and if that's needed the user needs to provide the module in the agent constructor\n */\nfunction getDefaultAgentModules() {\n return {\n dcql: () => new DcqlModule(),\n genericRecords: () => new GenericRecordsModule(),\n dids: () => new DidsModule(),\n w3cCredentials: () => new W3cCredentialsModule(),\n cache: () => new CacheModule({ cache: new SingleContextStorageLruCache({ limit: 500 }) }),\n pex: () => new DifPresentationExchangeModule(),\n sdJwtVc: () => new SdJwtVcModule(),\n x509: () => new X509Module(),\n mdoc: () => new MdocModule(),\n kms: () => new KeyManagementModule({}),\n } as const\n}\n\n/**\n * Extend the provided modules object with the default agent modules. If the modules property already contains a module with the same\n * name as a default module, the module won't be added to the extended module object. This allows users of the framework to override\n * the modules with custom configuration. The agent constructor type ensures you can't provide a different module for a key that registered\n * on the default agent.\n */\nexport function extendModulesWithDefaultModules<AgentModules extends AgentModulesInput>(\n modules?: AgentModules\n): AgentModules & DefaultAgentModules {\n const defaultAgentModules = getDefaultAgentModules()\n const defaultAgentModuleKeys = Object.keys(defaultAgentModules)\n\n const defaultModules: Array<[string, Module]> = []\n const customModules: Array<[string, Module]> = Object.entries(modules ?? {}).filter(\n ([key]) => !defaultAgentModuleKeys.includes(key)\n )\n\n // Register all default modules, if not registered yet\n for (const [moduleKey, getConfiguredModule] of Object.entries(defaultAgentModules)) {\n // Prefer user-registered module, otherwise initialize the default module\n defaultModules.push([moduleKey, modules?.[moduleKey] ?? getConfiguredModule()])\n }\n\n return Object.fromEntries([...defaultModules, ...customModules]) as AgentModules & DefaultAgentModules\n}\n\n/**\n * Get the agent api object based on the modules registered in the dependency manager. For each registered module on the\n * dependency manager, the method will extract the api class from the module, resolve it and assign it to the module key\n * as provided in the agent constructor (or the {@link getDefaultAgentModules} method).\n *\n * Modules that don't have an api class defined ({@link Module.api} is undefined) will be ignored and won't be added to the\n * api object.\n *\n * If the api of a module is passed in the `excluded` array, the api will not be added to the resulting api object.\n *\n * @example\n * If the dependency manager has the following modules configured:\n * ```ts\n * {\n * connections: DidCommConnectionsModule\n * indy: IndyModule\n * }\n * ```\n *\n * And we call the `getAgentApi` method like this:\n * ```ts\n * const api = getAgentApi(dependencyManager)\n * ```\n *\n * the resulting agent api will look like:\n *\n * ```ts\n * {\n * connections: ConnectionsApi\n * }\n * ```\n *\n * The `indy` module has been ignored because it doesn't define an api class.\n */\nexport function getAgentApi<AgentModules extends ModulesMap>(\n dependencyManager: DependencyManager,\n excludedApis: unknown[] = []\n): AgentApi<AgentModules> {\n // Create the api object based on the `api` properties on the modules. If no `api` exists\n // on the module it will be ignored.\n const api = Object.entries(dependencyManager.registeredModules).reduce((api, [moduleKey, module]) => {\n // Module has no api\n if (!module.api) return api\n\n const apiInstance = dependencyManager.resolve(module.api)\n\n // Api is excluded\n if (excludedApis.includes(apiInstance)) return api\n // biome-ignore lint/performance/noAccumulatingSpread: no explanation\n return { ...api, [moduleKey]: apiInstance }\n }, {}) as AgentApi<AgentModules>\n\n return api\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA0GA,SAAS,yBAAyB;AAChC,QAAO;EACL,YAAY,IAAI,YAAY;EAC5B,sBAAsB,IAAI,sBAAsB;EAChD,YAAY,IAAI,YAAY;EAC5B,sBAAsB,IAAI,sBAAsB;EAChD,aAAa,IAAI,YAAY,EAAE,OAAO,IAAI,6BAA6B,EAAE,OAAO,KAAK,CAAC,EAAE,CAAC;EACzF,WAAW,IAAI,+BAA+B;EAC9C,eAAe,IAAI,eAAe;EAClC,YAAY,IAAI,YAAY;EAC5B,YAAY,IAAI,YAAY;EAC5B,WAAW,IAAI,oBAAoB,EAAE,CAAC;EACvC;;;;;;;;AASH,SAAgB,gCACd,SACoC;CACpC,MAAM,sBAAsB,wBAAwB;CACpD,MAAM,yBAAyB,OAAO,KAAK,oBAAoB;CAE/D,MAAMA,iBAA0C,EAAE;CAClD,MAAMC,gBAAyC,OAAO,QAAQ,WAAW,EAAE,CAAC,CAAC,QAC1E,CAAC,SAAS,CAAC,uBAAuB,SAAS,IAAI,CACjD;AAGD,MAAK,MAAM,CAAC,WAAW,wBAAwB,OAAO,QAAQ,oBAAoB,CAEhF,gBAAe,KAAK,CAAC,WAAW,UAAU,cAAc,qBAAqB,CAAC,CAAC;AAGjF,QAAO,OAAO,YAAY,CAAC,GAAG,gBAAgB,GAAG,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqClE,SAAgB,YACd,mBACA,eAA0B,EAAE,EACJ;AAexB,QAZY,OAAO,QAAQ,kBAAkB,kBAAkB,CAAC,QAAQ,KAAK,CAAC,WAAW,YAAY;AAEnG,MAAI,CAAC,OAAO,IAAK,QAAO;EAExB,MAAM,cAAc,kBAAkB,QAAQ,OAAO,IAAI;AAGzD,MAAI,aAAa,SAAS,YAAY,CAAE,QAAO;AAE/C,SAAO;GAAE,GAAG;IAAM,YAAY;GAAa;IAC1C,EAAE,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Logger } from "../logger/Logger.mjs";
|
|
2
2
|
import { EventEmitter } from "./EventEmitter.mjs";
|
|
3
|
-
import { DidsApi } from "../modules/dids/DidsApi.mjs";
|
|
4
|
-
import { X509Api } from "../modules/x509/X509Api.mjs";
|
|
5
3
|
import { SdJwtVcApi } from "../modules/sd-jwt-vc/SdJwtVcApi.mjs";
|
|
4
|
+
import { MdocApi } from "../modules/mdoc/MdocApi.mjs";
|
|
6
5
|
import { W3cCredentialsApi } from "../modules/vc/W3cCredentialsApi.mjs";
|
|
7
6
|
import { W3cV2CredentialsApi } from "../modules/vc/W3cV2CredentialsApi.mjs";
|
|
8
|
-
import {
|
|
7
|
+
import { X509Api } from "../modules/x509/X509Api.mjs";
|
|
8
|
+
import { KeyManagementApi } from "../modules/kms/KeyManagementApi.mjs";
|
|
9
|
+
import { DidsApi } from "../modules/dids/DidsApi.mjs";
|
|
9
10
|
import { GenericRecordsApi } from "../modules/generic-records/GenericRecordsApi.mjs";
|
|
10
11
|
import { AgentApi, EmptyModuleMap, ModuleApiInstance, ModulesMap, WithoutDefaultModules } from "./AgentModules.mjs";
|
|
11
12
|
import { DependencyManager } from "../plugins/DependencyManager.mjs";
|
|
12
13
|
import { AgentConfig } from "./AgentConfig.mjs";
|
|
13
14
|
import { Module } from "../plugins/Module.mjs";
|
|
14
15
|
import { AgentContext } from "./context/AgentContext.mjs";
|
|
15
|
-
import { KeyManagementApi } from "../modules/kms/KeyManagementApi.mjs";
|
|
16
16
|
|
|
17
17
|
//#region src/agent/BaseAgent.d.ts
|
|
18
18
|
declare abstract class BaseAgent<AgentModules extends ModulesMap = EmptyModuleMap> {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Logger } from "../logger/Logger.js";
|
|
2
2
|
import { EventEmitter } from "./EventEmitter.js";
|
|
3
|
-
import { DidsApi } from "../modules/dids/DidsApi.js";
|
|
4
|
-
import { X509Api } from "../modules/x509/X509Api.js";
|
|
5
3
|
import { SdJwtVcApi } from "../modules/sd-jwt-vc/SdJwtVcApi.js";
|
|
4
|
+
import { MdocApi } from "../modules/mdoc/MdocApi.js";
|
|
6
5
|
import { W3cCredentialsApi } from "../modules/vc/W3cCredentialsApi.js";
|
|
7
6
|
import { W3cV2CredentialsApi } from "../modules/vc/W3cV2CredentialsApi.js";
|
|
8
|
-
import {
|
|
7
|
+
import { X509Api } from "../modules/x509/X509Api.js";
|
|
8
|
+
import { KeyManagementApi } from "../modules/kms/KeyManagementApi.js";
|
|
9
|
+
import { DidsApi } from "../modules/dids/DidsApi.js";
|
|
9
10
|
import { GenericRecordsApi } from "../modules/generic-records/GenericRecordsApi.js";
|
|
10
11
|
import { AgentApi, EmptyModuleMap, ModuleApiInstance, ModulesMap, WithoutDefaultModules } from "./AgentModules.js";
|
|
11
12
|
import { DependencyManager } from "../plugins/DependencyManager.js";
|
|
12
13
|
import { AgentConfig } from "./AgentConfig.js";
|
|
13
14
|
import { Module } from "../plugins/Module.js";
|
|
14
15
|
import { AgentContext } from "./context/AgentContext.js";
|
|
15
|
-
import { KeyManagementApi } from "../modules/kms/KeyManagementApi.js";
|
|
16
16
|
|
|
17
17
|
//#region src/agent/BaseAgent.d.ts
|
|
18
18
|
declare abstract class BaseAgent<AgentModules extends ModulesMap = EmptyModuleMap> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseAgent.mjs","names":["agentConfig: AgentConfig","dependencyManager: DependencyManager"],"sources":["../../src/agent/BaseAgent.ts"],"sourcesContent":["import type { Logger } from '../logger'\nimport { DidsApi } from '../modules/dids'\nimport { GenericRecordsApi } from '../modules/generic-records'\nimport { KeyManagementApi } from '../modules/kms'\nimport { MdocApi } from '../modules/mdoc'\nimport { SdJwtVcApi } from '../modules/sd-jwt-vc'\nimport { W3cV2CredentialsApi } from '../modules/vc'\nimport { W3cCredentialsApi } from '../modules/vc/W3cCredentialsApi'\nimport { X509Api } from '../modules/x509'\nimport type { DependencyManager, Module } from '../plugins'\nimport type { AgentConfig } from './AgentConfig'\nimport type { AgentApi, EmptyModuleMap, ModuleApiInstance, ModulesMap, WithoutDefaultModules } from './AgentModules'\n\nimport { getAgentApi } from './AgentModules'\nimport {
|
|
1
|
+
{"version":3,"file":"BaseAgent.mjs","names":["agentConfig: AgentConfig","dependencyManager: DependencyManager"],"sources":["../../src/agent/BaseAgent.ts"],"sourcesContent":["import type { Logger } from '../logger'\nimport { DidsApi } from '../modules/dids'\nimport { GenericRecordsApi } from '../modules/generic-records'\nimport { KeyManagementApi } from '../modules/kms'\nimport { MdocApi } from '../modules/mdoc'\nimport { SdJwtVcApi } from '../modules/sd-jwt-vc'\nimport { W3cV2CredentialsApi } from '../modules/vc'\nimport { W3cCredentialsApi } from '../modules/vc/W3cCredentialsApi'\nimport { X509Api } from '../modules/x509'\nimport type { DependencyManager, Module } from '../plugins'\nimport type { AgentConfig } from './AgentConfig'\nimport type { AgentApi, EmptyModuleMap, ModuleApiInstance, ModulesMap, WithoutDefaultModules } from './AgentModules'\n\nimport { getAgentApi } from './AgentModules'\nimport { AgentContext } from './context'\nimport { EventEmitter } from './EventEmitter'\n\nexport abstract class BaseAgent<AgentModules extends ModulesMap = EmptyModuleMap> {\n protected logger: Logger\n protected eventEmitter: EventEmitter\n protected _isInitialized = false\n protected agentContext: AgentContext\n\n public readonly mdoc: MdocApi\n public readonly genericRecords: GenericRecordsApi\n public readonly dids: DidsApi\n public readonly w3cCredentials: W3cCredentialsApi\n public readonly w3cV2Credentials: W3cV2CredentialsApi\n public readonly sdJwtVc: SdJwtVcApi\n public readonly x509: X509Api\n public readonly kms: KeyManagementApi\n\n /**\n * The DIDComm module, only available if the didcomm module is registered\n */\n public readonly didcomm: AgentModules['didcomm'] extends Module\n ? ModuleApiInstance<AgentModules['didcomm']>\n : undefined\n\n /*\n * The OpenID4VC module, only available if the openid4vc module is registered\n */\n public readonly openid4vc: AgentModules['openid4vc'] extends Module\n ? ModuleApiInstance<AgentModules['openid4vc']>\n : undefined\n\n public readonly modules: AgentApi<WithoutDefaultModules<AgentModules>>\n\n public constructor(\n protected agentConfig: AgentConfig,\n public readonly dependencyManager: DependencyManager\n ) {\n this.logger = this.agentConfig.logger\n\n this.logger.info('Creating agent with config', {\n agentConfig: agentConfig.toJSON(),\n })\n\n // Resolve instances after everything is registered\n this.eventEmitter = this.dependencyManager.resolve(EventEmitter)\n this.agentContext = this.dependencyManager.resolve(AgentContext)\n\n this.genericRecords = this.dependencyManager.resolve(GenericRecordsApi)\n this.dids = this.dependencyManager.resolve(DidsApi)\n this.w3cCredentials = this.dependencyManager.resolve(W3cCredentialsApi)\n this.w3cV2Credentials = this.dependencyManager.resolve(W3cV2CredentialsApi)\n this.sdJwtVc = this.dependencyManager.resolve(SdJwtVcApi)\n this.x509 = this.dependencyManager.resolve(X509Api)\n this.mdoc = this.dependencyManager.resolve(MdocApi)\n this.kms = this.dependencyManager.resolve(KeyManagementApi)\n\n const defaultApis = [\n this.genericRecords,\n this.dids,\n this.w3cCredentials,\n this.w3cV2Credentials,\n this.sdJwtVc,\n this.x509,\n this.mdoc,\n this.kms,\n ]\n\n // Set the api of the registered modules on the agent, excluding the default apis\n this.modules = getAgentApi(this.dependencyManager, defaultApis)\n\n // Special case for DIDComm and OpenID4vc modules, to expose it on the top-level of the agent.\n this.didcomm = ('didcomm' in this.modules ? this.modules.didcomm : undefined) as this['didcomm']\n this.openid4vc = ('openid4vc' in this.modules ? this.modules.openid4vc : undefined) as this['openid4vc']\n }\n\n public get isInitialized() {\n return this._isInitialized\n }\n\n public get config() {\n return this.agentConfig\n }\n\n public get context() {\n return this.agentContext\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAsB,YAAtB,MAAkF;CA+BhF,AAAO,YACL,AAAUA,aACV,AAAgBC,mBAChB;EAFU;EACM;OA9BR,iBAAiB;AAgCzB,OAAK,SAAS,KAAK,YAAY;AAE/B,OAAK,OAAO,KAAK,8BAA8B,EAC7C,aAAa,YAAY,QAAQ,EAClC,CAAC;AAGF,OAAK,eAAe,KAAK,kBAAkB,QAAQ,aAAa;AAChE,OAAK,eAAe,KAAK,kBAAkB,QAAQ,aAAa;AAEhE,OAAK,iBAAiB,KAAK,kBAAkB,QAAQ,kBAAkB;AACvE,OAAK,OAAO,KAAK,kBAAkB,QAAQ,QAAQ;AACnD,OAAK,iBAAiB,KAAK,kBAAkB,QAAQ,kBAAkB;AACvE,OAAK,mBAAmB,KAAK,kBAAkB,QAAQ,oBAAoB;AAC3E,OAAK,UAAU,KAAK,kBAAkB,QAAQ,WAAW;AACzD,OAAK,OAAO,KAAK,kBAAkB,QAAQ,QAAQ;AACnD,OAAK,OAAO,KAAK,kBAAkB,QAAQ,QAAQ;AACnD,OAAK,MAAM,KAAK,kBAAkB,QAAQ,iBAAiB;EAE3D,MAAM,cAAc;GAClB,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACN;AAGD,OAAK,UAAU,YAAY,KAAK,mBAAmB,YAAY;AAG/D,OAAK,UAAW,aAAa,KAAK,UAAU,KAAK,QAAQ,UAAU;AACnE,OAAK,YAAa,eAAe,KAAK,UAAU,KAAK,QAAQ,YAAY;;CAG3E,IAAW,gBAAgB;AACzB,SAAO,KAAK;;CAGd,IAAW,SAAS;AAClB,SAAO,KAAK;;CAGd,IAAW,UAAU;AACnB,SAAO,KAAK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseEvent } from "./Events.mjs";
|
|
2
1
|
import { AgentDependencies } from "./AgentDependencies.mjs";
|
|
2
|
+
import { BaseEvent } from "./Events.mjs";
|
|
3
3
|
import { AgentContext } from "./context/AgentContext.mjs";
|
|
4
4
|
import * as rxjs0 from "rxjs";
|
|
5
5
|
import { Subject } from "rxjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter.d.mts","names":[],"sources":["../../src/agent/EventEmitter.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"EventEmitter.d.mts","names":[],"sources":["../../src/agent/EventEmitter.ts"],"sourcesContent":[],"mappings":";;;;;;;KASK,oBAAoB,aAAa,KAAK;cAG9B,YAAA;;;iCAKsD,0BACxB;EATtC,IAAA,CAAA,UAgBmB,SAhBV,CAAA,CAAA,YAAA,EAgBmC,YAhBnC,EAAA,IAAA,EAgBuD,SAhBvD,CAgBiE,CAhBjE,CAAA,CAAA,EAAA,IAAA;EAAA,EAAA,CAAA,UAyBQ,SAzBR,CAAA,CAAA,KAAA,EAyB0B,CAzB1B,CAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,IAAA,EAyBsD,CAzBtD,EAAA,GAAA,IAAA,GAyBmE,OAzBnE,CAAA,IAAA,CAAA,CAAA,EAAA,IAAA;KAAW,CAAA,UA6BF,SA7BE,CAAA,CAAA,KAAA,EA6BgB,CA7BhB,CAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,IAAA,EA6B4C,CA7B5C,EAAA,GAAA,IAAA,GA6ByD,OA7BzD,CAAA,IAAA,CAAA,CAAA,EAAA,IAAA;YAAkB,CAAA,UAiCb,SAjCa,CAAA,CAAA,KAAA,EAiCK,CAjCL,CAAA,MAAA,CAAA,CAAA,EAiCc,KAAA,CAAA,UAjCd,CAiCc,CAjCd,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseEvent } from "./Events.js";
|
|
2
1
|
import { AgentDependencies } from "./AgentDependencies.js";
|
|
2
|
+
import { BaseEvent } from "./Events.js";
|
|
3
3
|
import { AgentContext } from "./context/AgentContext.js";
|
|
4
4
|
import * as rxjs0 from "rxjs";
|
|
5
5
|
import { Subject } from "rxjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter.d.ts","names":[],"sources":["../../src/agent/EventEmitter.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"EventEmitter.d.ts","names":[],"sources":["../../src/agent/EventEmitter.ts"],"sourcesContent":[],"mappings":";;;;;;;KASK,oBAAoB,aAAa,KAAK;cAG9B,YAAA;;EAHR,QAAA,KAAS;EAAA,WAAA,CAAA,iBAAA,EAQqD,iBARrD,EAAA,KAAA,EAS6B,OAT7B,CAAA,OAAA,CAAA;MAAW,CAAA,UAgBD,SAhBC,CAAA,CAAA,YAAA,EAgBwB,YAhBxB,EAAA,IAAA,EAgB4C,SAhB5C,CAgBsD,CAhBtD,CAAA,CAAA,EAAA,IAAA;KAAkB,UAyBrB,SAzBqB,CAAA,CAAA,KAAA,EAyBH,CAzBG,CAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,IAAA,EAyByB,CAzBzB,EAAA,GAAA,IAAA,GAyBsC,OAzBtC,CAAA,IAAA,CAAA,CAAA,EAAA,IAAA;KAAL,CAAA,UA6Bf,SA7Be,CAAA,CAAA,KAAA,EA6BG,CA7BH,CAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,IAAA,EA6B+B,CA7B/B,EAAA,GAAA,IAAA,GA6B4C,OA7B5C,CAAA,IAAA,CAAA,CAAA,EAAA,IAAA;EAAI,UAAA,CAAA,UAiCZ,SAjCY,CAAA,CAAA,KAAA,EAiCM,CAjCN,CAAA,MAAA,CAAA,CAAA,EAiCe,KAAA,CAAA,UAjCf,CAiCe,CAjCf,CAAA;AAE1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter.mjs","names":["EventEmitter","agentDependencies: AgentDependencies","stop$: Subject<boolean>"],"sources":["../../src/agent/EventEmitter.ts"],"sourcesContent":["import type { EventEmitter as NativeEventEmitter } from 'events'\nimport
|
|
1
|
+
{"version":3,"file":"EventEmitter.mjs","names":["EventEmitter","agentDependencies: AgentDependencies","stop$: Subject<boolean>"],"sources":["../../src/agent/EventEmitter.ts"],"sourcesContent":["import type { EventEmitter as NativeEventEmitter } from 'events'\nimport { fromEventPattern, Subject } from 'rxjs'\nimport { takeUntil } from 'rxjs/operators'\nimport { InjectionSymbols } from '../constants'\nimport { inject, injectable } from '../plugins'\nimport type { AgentDependencies } from './AgentDependencies'\nimport type { AgentContext } from './context'\nimport type { BaseEvent } from './Events'\n\ntype EmitEvent<T extends BaseEvent> = Omit<T, 'metadata'>\n\n@injectable()\nexport class EventEmitter {\n private eventEmitter: NativeEventEmitter\n private stop$: Subject<boolean>\n\n public constructor(\n @inject(InjectionSymbols.AgentDependencies) agentDependencies: AgentDependencies,\n @inject(InjectionSymbols.Stop$) stop$: Subject<boolean>\n ) {\n this.eventEmitter = new agentDependencies.EventEmitterClass()\n this.stop$ = stop$\n }\n\n // agentContext is currently not used, but already making required as it will be used soon\n public emit<T extends BaseEvent>(agentContext: AgentContext, data: EmitEvent<T>) {\n this.eventEmitter.emit(data.type, {\n ...data,\n metadata: {\n contextCorrelationId: agentContext.contextCorrelationId,\n },\n })\n }\n\n public on<T extends BaseEvent>(event: T['type'], listener: (data: T) => void | Promise<void>) {\n this.eventEmitter.on(event, listener)\n }\n\n public off<T extends BaseEvent>(event: T['type'], listener: (data: T) => void | Promise<void>) {\n this.eventEmitter.off(event, listener)\n }\n\n public observable<T extends BaseEvent>(event: T['type']) {\n return fromEventPattern<T>(\n (handler) => this.on(event, handler),\n (handler) => this.off(event, handler)\n ).pipe(takeUntil(this.stop$))\n }\n}\n"],"mappings":";;;;;;;;;;;;AAYO,yBAAMA,eAAa;CAIxB,AAAO,YACL,AAA4CC,mBAC5C,AAAgCC,OAChC;AACA,OAAK,eAAe,IAAI,kBAAkB,mBAAmB;AAC7D,OAAK,QAAQ;;CAIf,AAAO,KAA0B,cAA4B,MAAoB;AAC/E,OAAK,aAAa,KAAK,KAAK,MAAM;GAChC,GAAG;GACH,UAAU,EACR,sBAAsB,aAAa,sBACpC;GACF,CAAC;;CAGJ,AAAO,GAAwB,OAAkB,UAA6C;AAC5F,OAAK,aAAa,GAAG,OAAO,SAAS;;CAGvC,AAAO,IAAyB,OAAkB,UAA6C;AAC7F,OAAK,aAAa,IAAI,OAAO,SAAS;;CAGxC,AAAO,WAAgC,OAAkB;AACvD,SAAO,kBACJ,YAAY,KAAK,GAAG,OAAO,QAAQ,GACnC,YAAY,KAAK,IAAI,OAAO,QAAQ,CACtC,CAAC,KAAK,UAAU,KAAK,MAAM,CAAC;;;;CAnChC,YAAY;oBAMR,OAAO,iBAAiB,kBAAkB;oBAC1C,OAAO,iBAAiB,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentContext.d.mts","names":[],"sources":["../../../src/agent/context/AgentContext.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"AgentContext.d.mts","names":[],"sources":["../../../src/agent/context/AgentContext.ts"],"sourcesContent":[],"mappings":";;;;cAKa,YAAA;;;;AAAb;EAAyB,SAAA,iBAAA,EAKY,iBALZ;;;;;;;;;;WAgEsB,oBAAA,EAAA,MAAA;EAAC,SAAA,kBAAA,EAAA,OAAA;;;;;;uBAvCzB;;;;;;;gBAYJ;;;;gBAOM;;;;;;;oBAoBE,eAAe,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentContext.d.ts","names":[],"sources":["../../../src/agent/context/AgentContext.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"AgentContext.d.ts","names":[],"sources":["../../../src/agent/context/AgentContext.ts"],"sourcesContent":[],"mappings":";;;;cAKa,YAAA;;AAAb;;;WAqBI,iBAAA,EAhBiC,iBAgBjC;;;;;;;;;;;;;;;;;uBAImB;;;;;;;gBAYJ;;;;gBAOM;;;;;;;oBAoBE,eAAe,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentContext.mjs","names":[],"sources":["../../../src/agent/context/AgentContext.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"AgentContext.mjs","names":[],"sources":["../../../src/agent/context/AgentContext.ts"],"sourcesContent":["import { InjectionSymbols } from '../../constants'\nimport type { DependencyManager, InjectionToken } from '../../plugins'\nimport { AgentConfig } from '../AgentConfig'\nimport type { AgentContextProvider } from './AgentContextProvider'\n\nexport class AgentContext {\n /**\n * Dependency manager holds all dependencies for the current context. Possibly a child of a parent dependency manager,\n * in which case all singleton dependencies from the parent context are also available to this context.\n */\n public readonly dependencyManager: DependencyManager\n\n /**\n * An identifier that allows to correlate this context across sessions. This identifier is created by the `AgentContextProvider`\n * and should only be meaningful to the `AgentContextProvider`. The `contextCorrelationId` MUST uniquely identity the context and\n * should be enough to start a new session.\n *\n * An example of the `contextCorrelationId` is for example the id of the `TenantRecord` that is associated with this context when using the tenant module.\n * The `TenantAgentContextProvider` will set the `contextCorrelationId` to the `TenantRecord` id when creating the context, and will be able to create a context\n * for a specific tenant using the `contextCorrelationId`.\n */\n public readonly contextCorrelationId: string\n\n public readonly isRootAgentContext: boolean\n\n public constructor({\n dependencyManager,\n contextCorrelationId,\n isRootAgentContext = false,\n }: {\n dependencyManager: DependencyManager\n contextCorrelationId: string\n isRootAgentContext?: boolean\n }) {\n this.dependencyManager = dependencyManager\n this.contextCorrelationId = contextCorrelationId\n this.isRootAgentContext = isRootAgentContext\n }\n\n /**\n * Convenience method to access the agent config for the current context.\n */\n public get config() {\n return this.dependencyManager.resolve(AgentConfig)\n }\n\n /**\n * End session the current agent context\n */\n public async endSession() {\n // TODO: we need to create a custom agent context per sesion\n // and then track if it has already been ended, because it's quite\n // easy to mess up the session count at the moment\n const agentContextProvider = this.dependencyManager.resolve<AgentContextProvider>(\n InjectionSymbols.AgentContextProvider\n )\n\n await agentContextProvider.endSessionForAgentContext(this)\n }\n\n public toJSON() {\n return {\n contextCorrelationId: this.contextCorrelationId,\n }\n }\n\n /**\n * Resolve a dependency\n */\n public resolve<T>(token: InjectionToken<T>): T {\n return this.dependencyManager.resolve(token)\n }\n}\n"],"mappings":";;;;;;AAKA,IAAa,eAAb,MAA0B;CAoBxB,AAAO,YAAY,EACjB,mBACA,sBACA,qBAAqB,SAKpB;AACD,OAAK,oBAAoB;AACzB,OAAK,uBAAuB;AAC5B,OAAK,qBAAqB;;;;;CAM5B,IAAW,SAAS;AAClB,SAAO,KAAK,kBAAkB,QAAQ,YAAY;;;;;CAMpD,MAAa,aAAa;AAQxB,QAJ6B,KAAK,kBAAkB,QAClD,iBAAiB,qBAClB,CAE0B,0BAA0B,KAAK;;CAG5D,AAAO,SAAS;AACd,SAAO,EACL,sBAAsB,KAAK,sBAC5B;;;;;CAMH,AAAO,QAAW,OAA6B;AAC7C,SAAO,KAAK,kBAAkB,QAAQ,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultAgentContextProvider.d.mts","names":[],"sources":["../../../src/agent/context/DefaultAgentContextProvider.ts"],"sourcesContent":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DefaultAgentContextProvider.d.mts","names":[],"sources":["../../../src/agent/context/DefaultAgentContextProvider.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAWA;;AAImC,cAHtB,2BAAA,YAAuC,oBAGjB,CAAA;UAI0D,YAAA;aAAR,CAAA,YAAA,EAJlD,YAIkD;wCAcxE,CAAA,oBAAA,EAAA,MAAA,CAAA,EAdwE,OAcxE,CAdgF,YAchF,CAAA;6BAAR,CAAA,CAAA,EAAA,OAAA,EAAA,QAAA,EAAA;IASkD,oBAAA,CAAA,EAAA,MAAA;MATlD,OAS8D,CATtD,YASsD,CAAA;2BAWnB,CAAA,YAAA,EAXO,YAWP,CAAA,EAXmB,OAWnB,CAAA,IAAA,CAAA;oBAAe,CAAA,YAAA,EAAf,YAAe,CAAA,EAAA,OAAA,CAAA,IAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultAgentContextProvider.d.ts","names":[],"sources":["../../../src/agent/context/DefaultAgentContextProvider.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"DefaultAgentContextProvider.d.ts","names":[],"sources":["../../../src/agent/context/DefaultAgentContextProvider.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;;;;AAQqF,cAPxE,2BAAA,YAAuC,oBAOiC,CAAA;UAcxE,YAAA;aAAR,CAAA,YAAA,EAlB8B,YAkB9B;wCASkD,CAAA,oBAAA,EAAA,MAAA,CAAA,EAvB8B,OAuB9B,CAvBsC,YAuBtC,CAAA;6BAAY,CAAA,CAAA,EAAA,OAAA,EAAA,QAAA,EAAA;IAWnB,oBAAA,CAAA,EAAA,MAAA;MApB3C,OAoB0D,CApBlD,YAoBkD,CAAA;2BAzCX,CAAA,YAAA,EA8BG,YA9BH,CAAA,EA8Be,OA9Bf,CAAA,IAAA,CAAA;EAAoB,kBAAA,CAAA,YAAA,EAyCxB,YAzCwB,CAAA,EAyCT,OAzCS,CAAA,IAAA,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
4
|
+
const require_AgentContext = require('./AgentContext.js');
|
|
4
5
|
const require_CredoError = require('../../error/CredoError.js');
|
|
5
6
|
require('../../error/index.js');
|
|
6
|
-
const require_AgentContext = require('./AgentContext.js');
|
|
7
7
|
require('../../plugins/index.js');
|
|
8
8
|
const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
9
9
|
const require_decorate = require('../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
import { AgentContext } from "./AgentContext.mjs";
|
|
3
4
|
import { CredoError } from "../../error/CredoError.mjs";
|
|
4
5
|
import "../../error/index.mjs";
|
|
5
|
-
import { AgentContext } from "./AgentContext.mjs";
|
|
6
6
|
import { injectable } from "../../plugins/index.mjs";
|
|
7
7
|
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
8
8
|
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultAgentContextProvider.mjs","names":["DefaultAgentContextProvider"],"sources":["../../../src/agent/context/DefaultAgentContextProvider.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"DefaultAgentContextProvider.mjs","names":["DefaultAgentContextProvider"],"sources":["../../../src/agent/context/DefaultAgentContextProvider.ts"],"sourcesContent":["import { CredoError } from '../../error'\nimport { injectable } from '../../plugins'\nimport { AgentContext } from './AgentContext'\nimport type { AgentContextProvider } from './AgentContextProvider'\n\n/**\n * Default implementation of AgentContextProvider.\n *\n * Holds a single `AgentContext` instance that will be used for all messages, i.e. a\n * a single tenant agent.\n */\n@injectable()\nexport class DefaultAgentContextProvider implements AgentContextProvider {\n private agentContext: AgentContext\n\n public constructor(agentContext: AgentContext) {\n this.agentContext = agentContext\n }\n\n public async getAgentContextForContextCorrelationId(contextCorrelationId: string): Promise<AgentContext> {\n if (contextCorrelationId !== this.agentContext.contextCorrelationId) {\n throw new CredoError(\n `Could not get agent context for contextCorrelationId '${contextCorrelationId}'. Only contextCorrelationId '${this.agentContext.contextCorrelationId}' is supported.`\n )\n }\n\n return this.agentContext\n }\n\n public async getContextForInboundMessage(\n // We don't need to look at the message as we always use the same context in the default agent context provider\n _: unknown,\n options?: { contextCorrelationId?: string }\n ): Promise<AgentContext> {\n // This will throw an error if the contextCorrelationId does not match with the contextCorrelationId of the agent context property of this class.\n if (options?.contextCorrelationId) {\n return this.getAgentContextForContextCorrelationId(options.contextCorrelationId)\n }\n\n return this.agentContext\n }\n\n public async endSessionForAgentContext(agentContext: AgentContext) {\n // Throw an error if the context correlation id does not match to prevent misuse.\n if (agentContext.contextCorrelationId !== this.agentContext.contextCorrelationId) {\n throw new CredoError(\n `Could not end session for agent context with contextCorrelationId '${agentContext.contextCorrelationId}'. Only contextCorrelationId '${this.agentContext.contextCorrelationId}' is provided by this provider.`\n )\n }\n\n // We won't dispose the agent context as we don't keep track of the total number of sessions for the root agent context.\n }\n\n public async deleteAgentContext(agentContext: AgentContext): Promise<void> {\n // Throw an error if the context correlation id does not match to prevent misuse.\n if (agentContext.contextCorrelationId !== this.agentContext.contextCorrelationId) {\n throw new CredoError(\n `Could not delete agent context with contextCorrelationId '${agentContext.contextCorrelationId}'. Only contextCorrelationId '${this.agentContext.contextCorrelationId}' is provided by this provider.`\n )\n }\n\n await agentContext.dependencyManager.deleteAgentContext(agentContext)\n }\n}\n"],"mappings":";;;;;;;;;;;AAYO,wCAAMA,8BAA4D;CAGvE,AAAO,YAAY,cAA4B;AAC7C,OAAK,eAAe;;CAGtB,MAAa,uCAAuC,sBAAqD;AACvG,MAAI,yBAAyB,KAAK,aAAa,qBAC7C,OAAM,IAAI,WACR,yDAAyD,qBAAqB,gCAAgC,KAAK,aAAa,qBAAqB,iBACtJ;AAGH,SAAO,KAAK;;CAGd,MAAa,4BAEX,GACA,SACuB;AAEvB,MAAI,SAAS,qBACX,QAAO,KAAK,uCAAuC,QAAQ,qBAAqB;AAGlF,SAAO,KAAK;;CAGd,MAAa,0BAA0B,cAA4B;AAEjE,MAAI,aAAa,yBAAyB,KAAK,aAAa,qBAC1D,OAAM,IAAI,WACR,sEAAsE,aAAa,qBAAqB,gCAAgC,KAAK,aAAa,qBAAqB,iCAChL;;CAML,MAAa,mBAAmB,cAA2C;AAEzE,MAAI,aAAa,yBAAyB,KAAK,aAAa,qBAC1D,OAAM,IAAI,WACR,6DAA6D,aAAa,qBAAqB,gCAAgC,KAAK,aAAa,qBAAqB,iCACvK;AAGH,QAAM,aAAa,kBAAkB,mBAAmB,aAAa;;;0CAlDxE,YAAY"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { KnownJwaSignatureAlgorithm } from "../modules/kms/jwk/jwa.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { JwtPayload } from "./jose/jwt/JwtPayload.mjs";
|
|
2
|
+
import { AnyUint8Array } from "../types.mjs";
|
|
4
3
|
import { EncodedX509Certificate } from "../modules/x509/X509ServiceOptions.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { Jws, JwsDetachedFormat, JwsFlattenedFormat, JwsGeneralFormat, JwsProtectedHeaderOptions } from "./JwsTypes.mjs";
|
|
4
|
+
import { JwtPayload } from "./jose/jwt/JwtPayload.mjs";
|
|
7
5
|
import { JwsSigner, JwsSignerWithJwk } from "./JwsSigner.mjs";
|
|
6
|
+
import { Jws, JwsDetachedFormat, JwsFlattenedFormat, JwsGeneralFormat, JwsProtectedHeaderOptions } from "./JwsTypes.mjs";
|
|
7
|
+
import { AgentContext } from "../agent/context/AgentContext.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/crypto/JwsService.d.ts
|
|
10
10
|
declare class JwsService {
|
|
@@ -38,7 +38,7 @@ declare class JwsService {
|
|
|
38
38
|
private jwsSignerFromJws;
|
|
39
39
|
}
|
|
40
40
|
interface CreateJwsOptions {
|
|
41
|
-
payload:
|
|
41
|
+
payload: AnyUint8Array | JwtPayload;
|
|
42
42
|
keyId: string;
|
|
43
43
|
header: Record<string, unknown>;
|
|
44
44
|
protectedHeaderOptions: JwsProtectedHeaderOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JwsService.d.mts","names":[],"sources":["../../src/crypto/JwsService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"JwsService.d.mts","names":[],"sources":["../../src/crypto/JwsService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cA6Ba,UAAA;;0BA0DK;;;;;KACsC,mBACnD,QAAQ;;AA7Db;;kBA2DkB,CAAA,YAAA,EAqBA,YArBA,EAAA;IAAA,OAAA;IAAA,KAAA;IAAA;EAAA,CAAA,EAsB8B,uBAtB9B,CAAA,EAuBb,OAvBa,CAAA,MAAA,CAAA;;;;WACY,CAAA,YAAA,EAmCZ,YAnCY,EAAA;IAAA,GAAA;IAAA,gBAAA;IAAA,mBAAA;IAAA,SAAA,EAwCb,iBAxCa;IAAA;EAAA,CAAA,EA0CvB,gBA1CuB,CAAA,EA2CzB,OA3CyB,CA2CjB,eA3CiB,CAAA;UAA0B,cAAA;UAC3C,eAAA;UAAR,gBAAA;;AAoBC,UA4PW,gBAAA,CA5PX;SAAS,EA6PJ,aA7PI,GA6PY,UA7PZ;OAAO,EAAA,MAAA;QAA0B,EA+PtC,MA/PsC,CAAA,MAAA,EAAA,OAAA,CAAA;wBAC3C,EA+PqB,yBA/PrB;;KAmQA,uBAAA,GAA0B,IApPzB,CAoP8B,gBApP9B,EAAA,QAAA,CAAA;AACA,UAqPW,gBAAA,CArPX;KACA,EAqPC,GArPD;;;;;WAID,CAAA,EAuPS,gBAvPT;EAAO;AAsOZ;;yBACW,CAAA,EAqBiB,SArBjB,CAAA,QAAA,CAAA,EAAA;kBAAgB,CAAA,EAoCN,iBApCM;qBAEjB,CAAA,EAoCc,sBApCd,EAAA;;AACyC,KAsCvC,iBAAA,GAtCuC,CAAA,OAAA,EAAA;EAI9C,GAAA,EAmCE,iBAnCF;EAAuB,OAAA,EAAA,MAAA;iBAAQ,EAAA;IAAL,GAAA,EAsCtB,0BAtCsB;IAAI,GAAA,CAAA,EAAA,MAAA;IAElB,GAAA,CAAA,EAAA,MAAA;IAAgB,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,OAAA;;MAyC3B,OAlCQ,CAkCA,gBAlCA,CAAA,GAkCoB,gBAlCpB;AAKc,UA+BX,eAAA,CA/BW;SAeP,EAAA,OAAA;YAEG,EAgBV,gBAhBU,EAAA;EAAsB,GAAA,EAkBvC,kBAlBuC;AAG9C"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { KnownJwaSignatureAlgorithm } from "../modules/kms/jwk/jwa.js";
|
|
2
|
-
import {
|
|
3
|
-
import { JwtPayload } from "./jose/jwt/JwtPayload.js";
|
|
2
|
+
import { AnyUint8Array } from "../types.js";
|
|
4
3
|
import { EncodedX509Certificate } from "../modules/x509/X509ServiceOptions.js";
|
|
5
|
-
import {
|
|
6
|
-
import { Jws, JwsDetachedFormat, JwsFlattenedFormat, JwsGeneralFormat, JwsProtectedHeaderOptions } from "./JwsTypes.js";
|
|
4
|
+
import { JwtPayload } from "./jose/jwt/JwtPayload.js";
|
|
7
5
|
import { JwsSigner, JwsSignerWithJwk } from "./JwsSigner.js";
|
|
6
|
+
import { Jws, JwsDetachedFormat, JwsFlattenedFormat, JwsGeneralFormat, JwsProtectedHeaderOptions } from "./JwsTypes.js";
|
|
7
|
+
import { AgentContext } from "../agent/context/AgentContext.js";
|
|
8
8
|
|
|
9
9
|
//#region src/crypto/JwsService.d.ts
|
|
10
10
|
declare class JwsService {
|
|
@@ -38,7 +38,7 @@ declare class JwsService {
|
|
|
38
38
|
private jwsSignerFromJws;
|
|
39
39
|
}
|
|
40
40
|
interface CreateJwsOptions {
|
|
41
|
-
payload:
|
|
41
|
+
payload: AnyUint8Array | JwtPayload;
|
|
42
42
|
keyId: string;
|
|
43
43
|
header: Record<string, unknown>;
|
|
44
44
|
protectedHeaderOptions: JwsProtectedHeaderOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JwsService.d.ts","names":[],"sources":["../../src/crypto/JwsService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"JwsService.d.ts","names":[],"sources":["../../src/crypto/JwsService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cA6Ba,UAAA;;EAAA,SAAA,CAAA,YAAU,EA0DL,YA1DK,EAAA;IAAA,OAAA;IAAA,KAAA;IAAA,MAAA;IAAA;EAAA,CAAA,EA2DiC,gBA3DjC,CAAA,EA4DlB,OA5DkB,CA4DV,gBA5DU,CAAA;EAAA;;;kBA2DR,CAAA,YAAA,EAoBG,YApBH,EAAA;IAAA,OAAA;IAAA,KAAA;IAAA;EAAA,CAAA,EAqBiC,uBArBjC,CAAA,EAsBV,OAtBU,CAAA,MAAA,CAAA;;;;WACF,CAAA,YAAA,EAkCK,YAlCL,EAAA;IAAA,GAAA;IAAA,gBAAA;IAAA,mBAAA;IAAA,SAAA,EAuCI,iBAvCJ;IAAA;EAAA,CAAA,EAyCN,gBAzCM,CAAA,EA0CR,OA1CQ,CA0CA,eA1CA,CAAA;UAAR,cAAA;UAmBa,eAAA;UACZ,gBAAA;;AAAgB,UA4PL,gBAAA,CA5PK;SAA0B,EA6PrC,aA7PqC,GA6PrB,UA7PqB;OAC3C,EAAA,MAAA;QAaa,EAiPR,MAjPQ,CAAA,MAAA,EAAA,OAAA,CAAA;wBAEZ,EAgPoB,yBAhPpB;;KAoPD,uBAAA,GAA0B,IAlPzB,CAkP8B,gBAlP9B,EAAA,QAAA,CAAA;AACW,UAmPA,gBAAA,CAnPA;KACX,EAmPC,GAnPD;;;;;EAwOW,SAAA,CAAA,EAiBH,gBAjBmB;EAAA;;;yBAGvB,CAAA,EAmBkB,SAnBlB,CAAA,QAAA,CAAA,EAAA;kBACgB,CAAA,EAiCL,iBAjCK;EAAyB,mBAAA,CAAA,EAmC3B,sBAnC2B,EAAA;AAClD;AAG2B,KAkChB,iBAAA,GAlCgB,CAAA,OAAA,EAAA;KAAQ,EAmC7B,iBAnC6B;SAAL,EAAA,MAAA;EAAI,eAAA,EAAA;IAElB,GAAA,EAoCR,0BApCwB;IAAA,GAAA,CAAA,EAAA,MAAA;IAC1B,GAAA,CAAA,EAAA,MAAA;IAMO,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,OAAA;;MAkCR,OAde,CAcP,gBAdO,CAAA,GAca,gBAdb;AAEG,UAcP,eAAA,CAdO;EAAsB,OAAA,EAAA,OAAA;EAGlC,UAAA,EAaE,gBAbe,EAAA;EAAA,GAAA,EAetB,kBAfsB"}
|
|
@@ -6,18 +6,18 @@ require('../error/index.js');
|
|
|
6
6
|
require('../plugins/index.js');
|
|
7
7
|
const require_decorate = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
8
8
|
const require_KeyManagementError = require('../modules/kms/error/KeyManagementError.js');
|
|
9
|
-
const require_jwa = require('../modules/kms/jwk/jwa.js');
|
|
10
9
|
const require_TypedArrayEncoder = require('../utils/TypedArrayEncoder.js');
|
|
11
10
|
const require_JsonEncoder = require('../utils/JsonEncoder.js');
|
|
12
11
|
require('../utils/index.js');
|
|
13
12
|
const require_humanDescription = require('../modules/kms/jwk/humanDescription.js');
|
|
14
|
-
const require_knownJwk = require('../modules/kms/jwk/knownJwk.js');
|
|
15
13
|
const require_equals = require('../modules/kms/jwk/equals.js');
|
|
14
|
+
const require_jwa = require('../modules/kms/jwk/jwa.js');
|
|
15
|
+
const require_knownJwk = require('../modules/kms/jwk/knownJwk.js');
|
|
16
16
|
const require_PublicJwk = require('../modules/kms/jwk/PublicJwk.js');
|
|
17
17
|
const require_KeyManagementApi = require('../modules/kms/KeyManagementApi.js');
|
|
18
18
|
require('../modules/kms/index.js');
|
|
19
|
-
const require_X509Service = require('../modules/x509/X509Service.js');
|
|
20
19
|
const require_X509ModuleConfig = require('../modules/x509/X509ModuleConfig.js');
|
|
20
|
+
const require_X509Service = require('../modules/x509/X509Service.js');
|
|
21
21
|
require('../modules/x509/index.js');
|
|
22
22
|
const require_types = require('../types.js');
|
|
23
23
|
const require_JwsTypes = require('./JwsTypes.js');
|