@1shotapi/ows-types 0.1.0
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/README.md +20 -0
- package/dist/credentials/credential.d.ts +42 -0
- package/dist/credentials/credential.d.ts.map +1 -0
- package/dist/credentials/credential.js +2 -0
- package/dist/credentials/credential.js.map +1 -0
- package/dist/credentials/dcql.d.ts +25 -0
- package/dist/credentials/dcql.d.ts.map +1 -0
- package/dist/credentials/dcql.js +2 -0
- package/dist/credentials/dcql.js.map +1 -0
- package/dist/credentials/filter.d.ts +15 -0
- package/dist/credentials/filter.d.ts.map +1 -0
- package/dist/credentials/filter.js +2 -0
- package/dist/credentials/filter.js.map +1 -0
- package/dist/credentials/format.d.ts +3 -0
- package/dist/credentials/format.d.ts.map +1 -0
- package/dist/credentials/format.js +2 -0
- package/dist/credentials/format.js.map +1 -0
- package/dist/credentials/holder-signer.d.ts +9 -0
- package/dist/credentials/holder-signer.d.ts.map +1 -0
- package/dist/credentials/holder-signer.js +2 -0
- package/dist/credentials/holder-signer.js.map +1 -0
- package/dist/credentials/index.d.ts +18 -0
- package/dist/credentials/index.d.ts.map +1 -0
- package/dist/credentials/index.js +3 -0
- package/dist/credentials/index.js.map +1 -0
- package/dist/credentials/kyc-profile.d.ts +9 -0
- package/dist/credentials/kyc-profile.d.ts.map +1 -0
- package/dist/credentials/kyc-profile.js +2 -0
- package/dist/credentials/kyc-profile.js.map +1 -0
- package/dist/credentials/offer.d.ts +39 -0
- package/dist/credentials/offer.d.ts.map +1 -0
- package/dist/credentials/offer.js +2 -0
- package/dist/credentials/offer.js.map +1 -0
- package/dist/credentials/oid4vci-proof.d.ts +21 -0
- package/dist/credentials/oid4vci-proof.d.ts.map +1 -0
- package/dist/credentials/oid4vci-proof.js +3 -0
- package/dist/credentials/oid4vci-proof.js.map +1 -0
- package/dist/credentials/oid4vci.d.ts +56 -0
- package/dist/credentials/oid4vci.d.ts.map +1 -0
- package/dist/credentials/oid4vci.js +2 -0
- package/dist/credentials/oid4vci.js.map +1 -0
- package/dist/credentials/oid4vp.d.ts +24 -0
- package/dist/credentials/oid4vp.d.ts.map +1 -0
- package/dist/credentials/oid4vp.js +2 -0
- package/dist/credentials/oid4vp.js.map +1 -0
- package/dist/credentials/presentation.d.ts +67 -0
- package/dist/credentials/presentation.d.ts.map +1 -0
- package/dist/credentials/presentation.js +2 -0
- package/dist/credentials/presentation.js.map +1 -0
- package/dist/credentials/status-validator.d.ts +11 -0
- package/dist/credentials/status-validator.d.ts.map +1 -0
- package/dist/credentials/status-validator.js +12 -0
- package/dist/credentials/status-validator.js.map +1 -0
- package/dist/credentials/status.d.ts +8 -0
- package/dist/credentials/status.d.ts.map +1 -0
- package/dist/credentials/status.js +2 -0
- package/dist/credentials/status.js.map +1 -0
- package/dist/credentials/storage.d.ts +17 -0
- package/dist/credentials/storage.d.ts.map +1 -0
- package/dist/credentials/storage.js +2 -0
- package/dist/credentials/storage.js.map +1 -0
- package/dist/credentials/trust-registry.d.ts +12 -0
- package/dist/credentials/trust-registry.d.ts.map +1 -0
- package/dist/credentials/trust-registry.js +2 -0
- package/dist/credentials/trust-registry.js.map +1 -0
- package/dist/credentials/trust.d.ts +10 -0
- package/dist/credentials/trust.d.ts.map +1 -0
- package/dist/credentials/trust.js +2 -0
- package/dist/credentials/trust.js.map +1 -0
- package/dist/credentials/wallet-attestation.d.ts +11 -0
- package/dist/credentials/wallet-attestation.d.ts.map +1 -0
- package/dist/credentials/wallet-attestation.js +2 -0
- package/dist/credentials/wallet-attestation.js.map +1 -0
- package/dist/eip1193/index.d.ts +3 -0
- package/dist/eip1193/index.d.ts.map +1 -0
- package/dist/eip1193/index.js +2 -0
- package/dist/eip1193/index.js.map +1 -0
- package/dist/eip1193/methods.d.ts +17 -0
- package/dist/eip1193/methods.d.ts.map +1 -0
- package/dist/eip1193/methods.js +69 -0
- package/dist/eip1193/methods.js.map +1 -0
- package/dist/eip1193/requests.d.ts +46 -0
- package/dist/eip1193/requests.d.ts.map +1 -0
- package/dist/eip1193/requests.js +2 -0
- package/dist/eip1193/requests.js.map +1 -0
- package/dist/errors/base.d.ts +5 -0
- package/dist/errors/base.d.ts.map +1 -0
- package/dist/errors/base.js +8 -0
- package/dist/errors/base.js.map +1 -0
- package/dist/errors/rpc.d.ts +25 -0
- package/dist/errors/rpc.d.ts.map +1 -0
- package/dist/errors/rpc.js +60 -0
- package/dist/errors/rpc.js.map +1 -0
- package/dist/errors/signer.d.ts +18 -0
- package/dist/errors/signer.d.ts.map +1 -0
- package/dist/errors/signer.js +34 -0
- package/dist/errors/signer.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/primitives/AES256CipherText.d.ts +11 -0
- package/dist/primitives/AES256CipherText.d.ts.map +1 -0
- package/dist/primitives/AES256CipherText.js +3 -0
- package/dist/primitives/AES256CipherText.js.map +1 -0
- package/dist/primitives/Base64UrlEncodedString.d.ts +5 -0
- package/dist/primitives/Base64UrlEncodedString.d.ts.map +1 -0
- package/dist/primitives/Base64UrlEncodedString.js +3 -0
- package/dist/primitives/Base64UrlEncodedString.js.map +1 -0
- package/dist/primitives/BitcoinAccountAddress.d.ts +8 -0
- package/dist/primitives/BitcoinAccountAddress.d.ts.map +1 -0
- package/dist/primitives/BitcoinAccountAddress.js +3 -0
- package/dist/primitives/BitcoinAccountAddress.js.map +1 -0
- package/dist/primitives/CredentialClaimName.d.ts +5 -0
- package/dist/primitives/CredentialClaimName.d.ts.map +1 -0
- package/dist/primitives/CredentialClaimName.js +3 -0
- package/dist/primitives/CredentialClaimName.js.map +1 -0
- package/dist/primitives/CredentialConfigurationId.d.ts +5 -0
- package/dist/primitives/CredentialConfigurationId.d.ts.map +1 -0
- package/dist/primitives/CredentialConfigurationId.js +3 -0
- package/dist/primitives/CredentialConfigurationId.js.map +1 -0
- package/dist/primitives/CredentialFormatId.d.ts +5 -0
- package/dist/primitives/CredentialFormatId.d.ts.map +1 -0
- package/dist/primitives/CredentialFormatId.js +3 -0
- package/dist/primitives/CredentialFormatId.js.map +1 -0
- package/dist/primitives/CredentialId.d.ts +5 -0
- package/dist/primitives/CredentialId.d.ts.map +1 -0
- package/dist/primitives/CredentialId.js +3 -0
- package/dist/primitives/CredentialId.js.map +1 -0
- package/dist/primitives/CredentialIssuer.d.ts +5 -0
- package/dist/primitives/CredentialIssuer.d.ts.map +1 -0
- package/dist/primitives/CredentialIssuer.js +3 -0
- package/dist/primitives/CredentialIssuer.js.map +1 -0
- package/dist/primitives/CredentialOfferUri.d.ts +5 -0
- package/dist/primitives/CredentialOfferUri.d.ts.map +1 -0
- package/dist/primitives/CredentialOfferUri.js +3 -0
- package/dist/primitives/CredentialOfferUri.js.map +1 -0
- package/dist/primitives/CredentialScope.d.ts +5 -0
- package/dist/primitives/CredentialScope.d.ts.map +1 -0
- package/dist/primitives/CredentialScope.js +3 -0
- package/dist/primitives/CredentialScope.js.map +1 -0
- package/dist/primitives/CredentialTypeName.d.ts +5 -0
- package/dist/primitives/CredentialTypeName.d.ts.map +1 -0
- package/dist/primitives/CredentialTypeName.js +3 -0
- package/dist/primitives/CredentialTypeName.js.map +1 -0
- package/dist/primitives/DisplayRequestId.d.ts +5 -0
- package/dist/primitives/DisplayRequestId.d.ts.map +1 -0
- package/dist/primitives/DisplayRequestId.js +3 -0
- package/dist/primitives/DisplayRequestId.js.map +1 -0
- package/dist/primitives/ED25519PublicKey.d.ts +5 -0
- package/dist/primitives/ED25519PublicKey.d.ts.map +1 -0
- package/dist/primitives/ED25519PublicKey.js +3 -0
- package/dist/primitives/ED25519PublicKey.js.map +1 -0
- package/dist/primitives/EVMAccountAddress.d.ts +8 -0
- package/dist/primitives/EVMAccountAddress.d.ts.map +1 -0
- package/dist/primitives/EVMAccountAddress.js +3 -0
- package/dist/primitives/EVMAccountAddress.js.map +1 -0
- package/dist/primitives/EVMChainId.d.ts +8 -0
- package/dist/primitives/EVMChainId.d.ts.map +1 -0
- package/dist/primitives/EVMChainId.js +3 -0
- package/dist/primitives/EVMChainId.js.map +1 -0
- package/dist/primitives/EVMSignatureHex.d.ts +8 -0
- package/dist/primitives/EVMSignatureHex.d.ts.map +1 -0
- package/dist/primitives/EVMSignatureHex.js +3 -0
- package/dist/primitives/EVMSignatureHex.js.map +1 -0
- package/dist/primitives/HexString.d.ts +5 -0
- package/dist/primitives/HexString.d.ts.map +1 -0
- package/dist/primitives/HexString.js +3 -0
- package/dist/primitives/HexString.js.map +1 -0
- package/dist/primitives/ISO8601DateTime.d.ts +5 -0
- package/dist/primitives/ISO8601DateTime.d.ts.map +1 -0
- package/dist/primitives/ISO8601DateTime.js +3 -0
- package/dist/primitives/ISO8601DateTime.js.map +1 -0
- package/dist/primitives/JWKThumbprint.d.ts +5 -0
- package/dist/primitives/JWKThumbprint.d.ts.map +1 -0
- package/dist/primitives/JWKThumbprint.js +3 -0
- package/dist/primitives/JWKThumbprint.js.map +1 -0
- package/dist/primitives/PasskeyPublicKey.d.ts +5 -0
- package/dist/primitives/PasskeyPublicKey.d.ts.map +1 -0
- package/dist/primitives/PasskeyPublicKey.js +3 -0
- package/dist/primitives/PasskeyPublicKey.js.map +1 -0
- package/dist/primitives/PresentationRequestUri.d.ts +5 -0
- package/dist/primitives/PresentationRequestUri.d.ts.map +1 -0
- package/dist/primitives/PresentationRequestUri.js +3 -0
- package/dist/primitives/PresentationRequestUri.js.map +1 -0
- package/dist/primitives/RPCCallId.d.ts +7 -0
- package/dist/primitives/RPCCallId.d.ts.map +1 -0
- package/dist/primitives/RPCCallId.js +3 -0
- package/dist/primitives/RPCCallId.js.map +1 -0
- package/dist/primitives/SECP256K1PublicKey.d.ts +5 -0
- package/dist/primitives/SECP256K1PublicKey.d.ts.map +1 -0
- package/dist/primitives/SECP256K1PublicKey.js +3 -0
- package/dist/primitives/SECP256K1PublicKey.js.map +1 -0
- package/dist/primitives/SdJwtVcPresentationString.d.ts +8 -0
- package/dist/primitives/SdJwtVcPresentationString.d.ts.map +1 -0
- package/dist/primitives/SdJwtVcPresentationString.js +3 -0
- package/dist/primitives/SdJwtVcPresentationString.js.map +1 -0
- package/dist/primitives/SolanaAccountAddress.d.ts +8 -0
- package/dist/primitives/SolanaAccountAddress.d.ts.map +1 -0
- package/dist/primitives/SolanaAccountAddress.js +3 -0
- package/dist/primitives/SolanaAccountAddress.js.map +1 -0
- package/dist/primitives/UriString.d.ts +5 -0
- package/dist/primitives/UriString.d.ts.map +1 -0
- package/dist/primitives/UriString.js +3 -0
- package/dist/primitives/UriString.js.map +1 -0
- package/dist/primitives/index.d.ts +27 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +27 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/protocol/credentials.d.ts +22 -0
- package/dist/protocol/credentials.d.ts.map +1 -0
- package/dist/protocol/credentials.js +8 -0
- package/dist/protocol/credentials.js.map +1 -0
- package/dist/protocol/display.d.ts +40 -0
- package/dist/protocol/display.d.ts.map +1 -0
- package/dist/protocol/display.js +72 -0
- package/dist/protocol/display.js.map +1 -0
- package/dist/protocol/ows-signer.d.ts +34 -0
- package/dist/protocol/ows-signer.d.ts.map +1 -0
- package/dist/protocol/ows-signer.js +2 -0
- package/dist/protocol/ows-signer.js.map +1 -0
- package/dist/protocol/serde.d.ts +5 -0
- package/dist/protocol/serde.d.ts.map +1 -0
- package/dist/protocol/serde.js +34 -0
- package/dist/protocol/serde.js.map +1 -0
- package/dist/protocol/signer.d.ts +94 -0
- package/dist/protocol/signer.d.ts.map +1 -0
- package/dist/protocol/signer.js +2 -0
- package/dist/protocol/signer.js.map +1 -0
- package/dist/protocol/wallet.d.ts +27 -0
- package/dist/protocol/wallet.d.ts.map +1 -0
- package/dist/protocol/wallet.js +10 -0
- package/dist/protocol/wallet.js.map +1 -0
- package/dist/utils/ConversionUtils.d.ts +23 -0
- package/dist/utils/ConversionUtils.d.ts.map +1 -0
- package/dist/utils/ConversionUtils.js +59 -0
- package/dist/utils/ConversionUtils.js.map +1 -0
- package/dist/utils/credentials/CredentialCryptoUtils.d.ts +40 -0
- package/dist/utils/credentials/CredentialCryptoUtils.d.ts.map +1 -0
- package/dist/utils/credentials/CredentialCryptoUtils.js +94 -0
- package/dist/utils/credentials/CredentialCryptoUtils.js.map +1 -0
- package/dist/utils/credentials/PresentationUtils.d.ts +54 -0
- package/dist/utils/credentials/PresentationUtils.d.ts.map +1 -0
- package/dist/utils/credentials/PresentationUtils.js +123 -0
- package/dist/utils/credentials/PresentationUtils.js.map +1 -0
- package/dist/utils/credentials/ProofUtils.d.ts +22 -0
- package/dist/utils/credentials/ProofUtils.d.ts.map +1 -0
- package/dist/utils/credentials/ProofUtils.js +143 -0
- package/dist/utils/credentials/ProofUtils.js.map +1 -0
- package/dist/utils/credentials/jwk-thumbprint.d.ts +6 -0
- package/dist/utils/credentials/jwk-thumbprint.d.ts.map +1 -0
- package/dist/utils/credentials/jwk-thumbprint.js +37 -0
- package/dist/utils/credentials/jwk-thumbprint.js.map +1 -0
- package/dist/utils/credentials/oid4vci-proof.d.ts +30 -0
- package/dist/utils/credentials/oid4vci-proof.d.ts.map +1 -0
- package/dist/utils/credentials/oid4vci-proof.js +102 -0
- package/dist/utils/credentials/oid4vci-proof.js.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/CredentialCryptoUtils.d.ts +40 -0
- package/dist/utils/credentials/sd-jwt-vc/CredentialCryptoUtils.d.ts.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/CredentialCryptoUtils.js +94 -0
- package/dist/utils/credentials/sd-jwt-vc/CredentialCryptoUtils.js.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/PresentationUtils.d.ts +54 -0
- package/dist/utils/credentials/sd-jwt-vc/PresentationUtils.d.ts.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/PresentationUtils.js +123 -0
- package/dist/utils/credentials/sd-jwt-vc/PresentationUtils.js.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/crypto.d.ts +13 -0
- package/dist/utils/credentials/sd-jwt-vc/crypto.d.ts.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/crypto.js +51 -0
- package/dist/utils/credentials/sd-jwt-vc/crypto.js.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/decode.d.ts +25 -0
- package/dist/utils/credentials/sd-jwt-vc/decode.d.ts.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/decode.js +30 -0
- package/dist/utils/credentials/sd-jwt-vc/decode.js.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/holder-signer.d.ts +5 -0
- package/dist/utils/credentials/sd-jwt-vc/holder-signer.d.ts.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/holder-signer.js +5 -0
- package/dist/utils/credentials/sd-jwt-vc/holder-signer.js.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/presentation.d.ts +17 -0
- package/dist/utils/credentials/sd-jwt-vc/presentation.d.ts.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/presentation.js +58 -0
- package/dist/utils/credentials/sd-jwt-vc/presentation.js.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/unpack-subject.d.ts +8 -0
- package/dist/utils/credentials/sd-jwt-vc/unpack-subject.d.ts.map +1 -0
- package/dist/utils/credentials/sd-jwt-vc/unpack-subject.js +35 -0
- package/dist/utils/credentials/sd-jwt-vc/unpack-subject.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CredentialIssuer } from "../primitives/index.js";
|
|
2
|
+
import type { IssuerTrustMetadata } from "./trust.js";
|
|
3
|
+
/**
|
|
4
|
+
* Branding-owned issuer trust. Confirms whether the wallet will store/use credentials
|
|
5
|
+
* from an already-identified issuer — not cryptographic issuer identity verification.
|
|
6
|
+
*/
|
|
7
|
+
export interface IIssuerTrustRegistry {
|
|
8
|
+
isTrustedIssuer(issuerId: CredentialIssuer): Promise<boolean>;
|
|
9
|
+
resolveIssuer(issuerId: CredentialIssuer): Promise<IssuerTrustMetadata | undefined>;
|
|
10
|
+
listIssuers(): Promise<IssuerTrustMetadata[]>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=trust-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust-registry.d.ts","sourceRoot":"","sources":["../../src/credentials/trust-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,QAAQ,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9D,aAAa,CAAC,QAAQ,EAAE,gBAAgB,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IACpF,WAAW,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust-registry.js","sourceRoot":"","sources":["../../src/credentials/trust-registry.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CredentialIssuer } from "../primitives/index.js";
|
|
2
|
+
export type AssuranceLevel = "low" | "substantial" | "high";
|
|
3
|
+
export type IssuerTrustMetadata = {
|
|
4
|
+
issuerId: CredentialIssuer;
|
|
5
|
+
name: string;
|
|
6
|
+
assuranceLevels: AssuranceLevel[];
|
|
7
|
+
jurisdictions?: string[];
|
|
8
|
+
};
|
|
9
|
+
export type TrustRegistryEntry = IssuerTrustMetadata;
|
|
10
|
+
//# sourceMappingURL=trust.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust.d.ts","sourceRoot":"","sources":["../../src/credentials/trust.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,aAAa,GAAG,MAAM,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust.js","sourceRoot":"","sources":["../../src/credentials/trust.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Produces a wallet attestation JWT when an issuer or verifier requires one
|
|
3
|
+
* (OID4VCI / OID4VP deployment profiles).
|
|
4
|
+
*/
|
|
5
|
+
export interface IWalletAttestationProvider {
|
|
6
|
+
createAttestation(input: {
|
|
7
|
+
audience: string;
|
|
8
|
+
nonce?: string;
|
|
9
|
+
}): Promise<string>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=wallet-attestation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-attestation.d.ts","sourceRoot":"","sources":["../../src/credentials/wallet-attestation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,iBAAiB,CAAC,KAAK,EAAE;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-attestation.js","sourceRoot":"","sources":["../../src/credentials/wallet-attestation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { EIP1193_METHODS, EIP1193_READ_METHODS, EIP1193_UNRECOGNIZED_CHAIN_ID, isEip1193Method, type Eip1193Method, type Eip1193ReadMethod, } from "./methods.js";
|
|
2
|
+
export type { EIP1193RequestArgs, EIP1193RequestArgsFor, EIP1193Requests, KnownEIP1193Method, } from "./requests.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eip1193/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,6BAA6B,EAC7B,eAAe,EACf,KAAK,aAAa,EAClB,KAAK,iBAAiB,GACvB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,GACnB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eip1193/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,6BAA6B,EAC7B,eAAe,GAGhB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EIP-1193 wallet methods that Branding Layers typically implement
|
|
3
|
+
* (accounts, chain, signing). JSON-RPC read methods live in
|
|
4
|
+
* {@link EIP1193_READ_METHODS}.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EIP1193_METHODS: readonly ["eth_requestAccounts", "eth_accounts", "eth_chainId", "personal_sign", "eth_sign", "eth_signTypedData", "eth_signTypedData_v3", "eth_signTypedData_v4", "eth_sendTransaction", "eth_signTransaction", "wallet_switchEthereumChain", "wallet_addEthereumChain", "wallet_watchAsset"];
|
|
7
|
+
export type Eip1193Method = (typeof EIP1193_METHODS)[number];
|
|
8
|
+
export declare function isEip1193Method(method: string): method is Eip1193Method;
|
|
9
|
+
/**
|
|
10
|
+
* Non-signing EIP-1193 methods commonly proxied to a JSON-RPC HTTP endpoint.
|
|
11
|
+
* Account / signing methods are intentionally omitted.
|
|
12
|
+
*/
|
|
13
|
+
export declare const EIP1193_READ_METHODS: readonly ["eth_blockNumber", "eth_call", "eth_estimateGas", "eth_createAccessList", "eth_gasPrice", "eth_feeHistory", "eth_maxPriorityFeePerGas", "eth_getBalance", "eth_getCode", "eth_getStorageAt", "eth_getProof", "eth_getTransactionCount", "eth_getBlockByHash", "eth_getBlockByNumber", "eth_getBlockTransactionCountByHash", "eth_getBlockTransactionCountByNumber", "eth_getUncleByBlockHashAndIndex", "eth_getUncleByBlockNumberAndIndex", "eth_getUncleCountByBlockHash", "eth_getUncleCountByBlockNumber", "eth_getTransactionByHash", "eth_getTransactionByBlockHashAndIndex", "eth_getTransactionByBlockNumberAndIndex", "eth_getTransactionReceipt", "eth_getLogs", "eth_getFilterChanges", "eth_getFilterLogs", "eth_newFilter", "eth_newBlockFilter", "eth_newPendingTransactionFilter", "eth_uninstallFilter", "eth_syncing", "net_version", "net_listening", "net_peerCount", "web3_clientVersion", "web3_sha3"];
|
|
14
|
+
export type Eip1193ReadMethod = (typeof EIP1193_READ_METHODS)[number];
|
|
15
|
+
/** MetaMask / EIP-1193 code for an unknown `wallet_switchEthereumChain` target. */
|
|
16
|
+
export declare const EIP1193_UNRECOGNIZED_CHAIN_ID = 4902;
|
|
17
|
+
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/eip1193/methods.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,eAAe,+RAclB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,aAAa,CAEvE;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,s4BAsCvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,mFAAmF;AACnF,eAAO,MAAM,6BAA6B,OAAO,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EIP-1193 wallet methods that Branding Layers typically implement
|
|
3
|
+
* (accounts, chain, signing). JSON-RPC read methods live in
|
|
4
|
+
* {@link EIP1193_READ_METHODS}.
|
|
5
|
+
*/
|
|
6
|
+
export const EIP1193_METHODS = [
|
|
7
|
+
"eth_requestAccounts",
|
|
8
|
+
"eth_accounts",
|
|
9
|
+
"eth_chainId",
|
|
10
|
+
"personal_sign",
|
|
11
|
+
"eth_sign",
|
|
12
|
+
"eth_signTypedData",
|
|
13
|
+
"eth_signTypedData_v3",
|
|
14
|
+
"eth_signTypedData_v4",
|
|
15
|
+
"eth_sendTransaction",
|
|
16
|
+
"eth_signTransaction",
|
|
17
|
+
"wallet_switchEthereumChain",
|
|
18
|
+
"wallet_addEthereumChain",
|
|
19
|
+
"wallet_watchAsset",
|
|
20
|
+
];
|
|
21
|
+
export function isEip1193Method(method) {
|
|
22
|
+
return EIP1193_METHODS.includes(method);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Non-signing EIP-1193 methods commonly proxied to a JSON-RPC HTTP endpoint.
|
|
26
|
+
* Account / signing methods are intentionally omitted.
|
|
27
|
+
*/
|
|
28
|
+
export const EIP1193_READ_METHODS = [
|
|
29
|
+
"eth_blockNumber",
|
|
30
|
+
"eth_call",
|
|
31
|
+
"eth_estimateGas",
|
|
32
|
+
"eth_createAccessList",
|
|
33
|
+
"eth_gasPrice",
|
|
34
|
+
"eth_feeHistory",
|
|
35
|
+
"eth_maxPriorityFeePerGas",
|
|
36
|
+
"eth_getBalance",
|
|
37
|
+
"eth_getCode",
|
|
38
|
+
"eth_getStorageAt",
|
|
39
|
+
"eth_getProof",
|
|
40
|
+
"eth_getTransactionCount",
|
|
41
|
+
"eth_getBlockByHash",
|
|
42
|
+
"eth_getBlockByNumber",
|
|
43
|
+
"eth_getBlockTransactionCountByHash",
|
|
44
|
+
"eth_getBlockTransactionCountByNumber",
|
|
45
|
+
"eth_getUncleByBlockHashAndIndex",
|
|
46
|
+
"eth_getUncleByBlockNumberAndIndex",
|
|
47
|
+
"eth_getUncleCountByBlockHash",
|
|
48
|
+
"eth_getUncleCountByBlockNumber",
|
|
49
|
+
"eth_getTransactionByHash",
|
|
50
|
+
"eth_getTransactionByBlockHashAndIndex",
|
|
51
|
+
"eth_getTransactionByBlockNumberAndIndex",
|
|
52
|
+
"eth_getTransactionReceipt",
|
|
53
|
+
"eth_getLogs",
|
|
54
|
+
"eth_getFilterChanges",
|
|
55
|
+
"eth_getFilterLogs",
|
|
56
|
+
"eth_newFilter",
|
|
57
|
+
"eth_newBlockFilter",
|
|
58
|
+
"eth_newPendingTransactionFilter",
|
|
59
|
+
"eth_uninstallFilter",
|
|
60
|
+
"eth_syncing",
|
|
61
|
+
"net_version",
|
|
62
|
+
"net_listening",
|
|
63
|
+
"net_peerCount",
|
|
64
|
+
"web3_clientVersion",
|
|
65
|
+
"web3_sha3",
|
|
66
|
+
];
|
|
67
|
+
/** MetaMask / EIP-1193 code for an unknown `wallet_switchEthereumChain` target. */
|
|
68
|
+
export const EIP1193_UNRECOGNIZED_CHAIN_ID = 4902;
|
|
69
|
+
//# sourceMappingURL=methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/eip1193/methods.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,qBAAqB;IACrB,cAAc;IACd,aAAa;IACb,eAAe;IACf,UAAU;IACV,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;IACtB,qBAAqB;IACrB,qBAAqB;IACrB,4BAA4B;IAC5B,yBAAyB;IACzB,mBAAmB;CACX,CAAC;AAIX,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,OAAQ,eAAqC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACjE,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,iBAAiB;IACjB,UAAU;IACV,iBAAiB;IACjB,sBAAsB;IACtB,cAAc;IACd,gBAAgB;IAChB,0BAA0B;IAC1B,gBAAgB;IAChB,aAAa;IACb,kBAAkB;IAClB,cAAc;IACd,yBAAyB;IACzB,oBAAoB;IACpB,sBAAsB;IACtB,oCAAoC;IACpC,sCAAsC;IACtC,iCAAiC;IACjC,mCAAmC;IACnC,8BAA8B;IAC9B,gCAAgC;IAChC,0BAA0B;IAC1B,uCAAuC;IACvC,yCAAyC;IACzC,2BAA2B;IAC3B,aAAa;IACb,sBAAsB;IACtB,mBAAmB;IACnB,eAAe;IACf,oBAAoB;IACpB,iCAAiC;IACjC,qBAAqB;IACrB,aAAa;IACb,aAAa;IACb,eAAe;IACf,eAAe;IACf,oBAAoB;IACpB,WAAW;CACH,CAAC;AAIX,mFAAmF;AACnF,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { EVMAccountAddress, EVMChainId, EVMSignatureHex } from "../primitives/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Typed EIP-1193 methods supported by host `EIP1193Provider.request`.
|
|
4
|
+
* Add entries here (with branded params/results) instead of casting at call sites.
|
|
5
|
+
*/
|
|
6
|
+
export type EIP1193Requests = {
|
|
7
|
+
eth_requestAccounts: {
|
|
8
|
+
result: EVMAccountAddress[];
|
|
9
|
+
};
|
|
10
|
+
eth_accounts: {
|
|
11
|
+
result: EVMAccountAddress[];
|
|
12
|
+
};
|
|
13
|
+
eth_chainId: {
|
|
14
|
+
result: EVMChainId;
|
|
15
|
+
};
|
|
16
|
+
personal_sign: {
|
|
17
|
+
params: readonly [message: string, address: EVMAccountAddress];
|
|
18
|
+
result: EVMSignatureHex;
|
|
19
|
+
};
|
|
20
|
+
eth_signTypedData_v4: {
|
|
21
|
+
params: readonly [address: EVMAccountAddress, typedData: unknown];
|
|
22
|
+
result: EVMSignatureHex;
|
|
23
|
+
};
|
|
24
|
+
wallet_switchEthereumChain: {
|
|
25
|
+
params: readonly [{
|
|
26
|
+
chainId: EVMChainId;
|
|
27
|
+
}];
|
|
28
|
+
result: null;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type KnownEIP1193Method = keyof EIP1193Requests;
|
|
32
|
+
export type EIP1193RequestArgsFor<M extends KnownEIP1193Method> = EIP1193Requests[M] extends {
|
|
33
|
+
params: infer P;
|
|
34
|
+
} ? {
|
|
35
|
+
method: M;
|
|
36
|
+
params: P;
|
|
37
|
+
} : {
|
|
38
|
+
method: M;
|
|
39
|
+
params?: readonly [];
|
|
40
|
+
};
|
|
41
|
+
/** Fallback for wallet-specific or not-yet-mapped EIP-1193 methods. */
|
|
42
|
+
export type EIP1193RequestArgs = {
|
|
43
|
+
method: string;
|
|
44
|
+
params?: readonly unknown[] | Record<string, unknown>;
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../src/eip1193/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,mBAAmB,EAAE;QACnB,MAAM,EAAE,iBAAiB,EAAE,CAAC;KAC7B,CAAC;IACF,YAAY,EAAE;QACZ,MAAM,EAAE,iBAAiB,EAAE,CAAC;KAC7B,CAAC;IACF,WAAW,EAAE;QACX,MAAM,EAAE,UAAU,CAAC;KACpB,CAAC;IACF,aAAa,EAAE;QACb,MAAM,EAAE,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAC/D,MAAM,EAAE,eAAe,CAAC;KACzB,CAAC;IACF,oBAAoB,EAAE;QACpB,MAAM,EAAE,SAAS,CAAC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAClE,MAAM,EAAE,eAAe,CAAC;KACzB,CAAC;IACF,0BAA0B,EAAE;QAC1B,MAAM,EAAE,SAAS,CAAC;YAAE,OAAO,EAAE,UAAU,CAAA;SAAE,CAAC,CAAC;QAC3C,MAAM,EAAE,IAAI,CAAC;KACd,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,kBAAkB,IAC5D,eAAe,CAAC,CAAC,CAAC,SAAS;IAAE,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GAC1C;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,CAAC,CAAA;CAAE,GACxB;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAA;CAAE,CAAC;AAE1C,uEAAuE;AACvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../src/eip1193/requests.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,qBAAa,QAAS,SAAQ,KAAK;gBACrB,OAAO,EAAE,MAAM;CAI5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,MAAM,OAAO,QAAS,SAAQ,KAAK;IACjC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RPCCallId } from "../primitives/RPCCallId.js";
|
|
2
|
+
import { type RpcErrorPayload } from "../protocol/wallet.js";
|
|
3
|
+
import { OwsError } from "./base.js";
|
|
4
|
+
export declare class OwsRpcError extends OwsError {
|
|
5
|
+
readonly code: number;
|
|
6
|
+
readonly data?: unknown | undefined;
|
|
7
|
+
constructor(message: string, code: number, data?: unknown | undefined);
|
|
8
|
+
toPayload(): RpcErrorPayload;
|
|
9
|
+
static fromPayload(payload: RpcErrorPayload): OwsRpcError;
|
|
10
|
+
}
|
|
11
|
+
export declare class OwsUnimplementedError extends OwsRpcError {
|
|
12
|
+
constructor(message?: string, data?: unknown);
|
|
13
|
+
}
|
|
14
|
+
export declare class OwsInvalidParamsError extends OwsRpcError {
|
|
15
|
+
constructor(message?: string, data?: unknown);
|
|
16
|
+
}
|
|
17
|
+
export declare class OwsUserRejectedError extends OwsRpcError {
|
|
18
|
+
constructor(message?: string, data?: unknown);
|
|
19
|
+
}
|
|
20
|
+
export declare class OwsRpcTimeoutError extends OwsRpcError {
|
|
21
|
+
readonly method: string;
|
|
22
|
+
readonly callId: RPCCallId;
|
|
23
|
+
constructor(message: string, method: string, callId: RPCCallId);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=rpc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../src/errors/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,qBAAa,WAAY,SAAQ,QAAQ;IAGrC,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO;gBAFvB,OAAO,EAAE,MAAM,EACN,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,YAAA;IAMzB,SAAS,IAAI,eAAe;IAQ5B,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,WAAW;CAY1D;AAED,qBAAa,qBAAsB,SAAQ,WAAW;gBACxC,OAAO,SAA2B,EAAE,IAAI,CAAC,EAAE,OAAO;CAI/D;AAED,qBAAa,qBAAsB,SAAQ,WAAW;gBACxC,OAAO,SAAmB,EAAE,IAAI,CAAC,EAAE,OAAO;CAIvD;AAED,qBAAa,oBAAqB,SAAQ,WAAW;gBACvC,OAAO,SAA8B,EAAE,IAAI,CAAC,EAAE,OAAO;CAIlE;AAED,qBAAa,kBAAmB,SAAQ,WAAW;IAG/C,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS;gBAF1B,OAAO,EAAE,MAAM,EACN,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,SAAS;CAK7B"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { RPC_ERROR_INVALID_PARAMS, RPC_ERROR_UNIMPLEMENTED, RPC_ERROR_USER_REJECTED, } from "../protocol/wallet.js";
|
|
2
|
+
import { OwsError } from "./base.js";
|
|
3
|
+
export class OwsRpcError extends OwsError {
|
|
4
|
+
code;
|
|
5
|
+
data;
|
|
6
|
+
constructor(message, code, data) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.code = code;
|
|
9
|
+
this.data = data;
|
|
10
|
+
this.name = "OwsRpcError";
|
|
11
|
+
}
|
|
12
|
+
toPayload() {
|
|
13
|
+
return {
|
|
14
|
+
code: this.code,
|
|
15
|
+
message: this.message,
|
|
16
|
+
data: this.data,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
static fromPayload(payload) {
|
|
20
|
+
if (payload.code === RPC_ERROR_UNIMPLEMENTED) {
|
|
21
|
+
return new OwsUnimplementedError(payload.message, payload.data);
|
|
22
|
+
}
|
|
23
|
+
if (payload.code === RPC_ERROR_INVALID_PARAMS) {
|
|
24
|
+
return new OwsInvalidParamsError(payload.message, payload.data);
|
|
25
|
+
}
|
|
26
|
+
if (payload.code === RPC_ERROR_USER_REJECTED) {
|
|
27
|
+
return new OwsUserRejectedError(payload.message, payload.data);
|
|
28
|
+
}
|
|
29
|
+
return new OwsRpcError(payload.message, payload.code, payload.data);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export class OwsUnimplementedError extends OwsRpcError {
|
|
33
|
+
constructor(message = "Method not implemented", data) {
|
|
34
|
+
super(message, RPC_ERROR_UNIMPLEMENTED, data);
|
|
35
|
+
this.name = "OwsUnimplementedError";
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class OwsInvalidParamsError extends OwsRpcError {
|
|
39
|
+
constructor(message = "Invalid params", data) {
|
|
40
|
+
super(message, RPC_ERROR_INVALID_PARAMS, data);
|
|
41
|
+
this.name = "OwsInvalidParamsError";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class OwsUserRejectedError extends OwsRpcError {
|
|
45
|
+
constructor(message = "User rejected the request", data) {
|
|
46
|
+
super(message, RPC_ERROR_USER_REJECTED, data);
|
|
47
|
+
this.name = "OwsUserRejectedError";
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export class OwsRpcTimeoutError extends OwsRpcError {
|
|
51
|
+
method;
|
|
52
|
+
callId;
|
|
53
|
+
constructor(message, method, callId) {
|
|
54
|
+
super(message, -32_603, { method, callId });
|
|
55
|
+
this.method = method;
|
|
56
|
+
this.callId = callId;
|
|
57
|
+
this.name = "OwsRpcTimeoutError";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=rpc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../src/errors/rpc.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GAExB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,OAAO,WAAY,SAAQ,QAAQ;IAG5B;IACA;IAHX,YACE,OAAe,EACN,IAAY,EACZ,IAAc;QAEvB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHN,SAAI,GAAJ,IAAI,CAAQ;QACZ,SAAI,GAAJ,IAAI,CAAU;QAGvB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;IAED,SAAS;QACP,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,OAAwB;QACzC,IAAI,OAAO,CAAC,IAAI,KAAK,uBAAuB,EAAE,CAAC;YAC7C,OAAO,IAAI,qBAAqB,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QAClE,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,KAAK,wBAAwB,EAAE,CAAC;YAC9C,OAAO,IAAI,qBAAqB,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QAClE,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,KAAK,uBAAuB,EAAE,CAAC;YAC7C,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QACjE,CAAC;QACD,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD,YAAY,OAAO,GAAG,wBAAwB,EAAE,IAAc;QAC5D,KAAK,CAAC,OAAO,EAAE,uBAAuB,EAAE,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD,YAAY,OAAO,GAAG,gBAAgB,EAAE,IAAc;QACpD,KAAK,CAAC,OAAO,EAAE,wBAAwB,EAAE,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF;AAED,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD,YAAY,OAAO,GAAG,2BAA2B,EAAE,IAAc;QAC/D,KAAK,CAAC,OAAO,EAAE,uBAAuB,EAAE,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IAGtC;IACA;IAHX,YACE,OAAe,EACN,MAAc,EACd,MAAiB;QAE1B,KAAK,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAHnC,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAW;QAG1B,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OwsError } from "./base.js";
|
|
2
|
+
export declare class OwsSignerError extends OwsError {
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare class OwsNotAllowedError extends OwsSignerError {
|
|
6
|
+
readonly reason?: string | undefined;
|
|
7
|
+
constructor(message: string, reason?: string | undefined);
|
|
8
|
+
}
|
|
9
|
+
export declare class OwsInvalidRequestError extends OwsSignerError {
|
|
10
|
+
readonly reason?: string | undefined;
|
|
11
|
+
constructor(message: string, reason?: string | undefined);
|
|
12
|
+
}
|
|
13
|
+
export declare class OwsTimeoutError extends OwsSignerError {
|
|
14
|
+
readonly method: string;
|
|
15
|
+
readonly correlationId: string;
|
|
16
|
+
constructor(message: string, method: string, correlationId: string);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=signer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../src/errors/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,qBAAa,cAAe,SAAQ,QAAQ;gBAC9B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,kBAAmB,SAAQ,cAAc;IAGlD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM;gBADxB,OAAO,EAAE,MAAM,EACN,MAAM,CAAC,EAAE,MAAM,YAAA;CAK3B;AAED,qBAAa,sBAAuB,SAAQ,cAAc;IAGtD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM;gBADxB,OAAO,EAAE,MAAM,EACN,MAAM,CAAC,EAAE,MAAM,YAAA;CAK3B;AAED,qBAAa,eAAgB,SAAQ,cAAc;IAG/C,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,QAAQ,CAAC,aAAa,EAAE,MAAM;gBAF9B,OAAO,EAAE,MAAM,EACN,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM;CAKjC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OwsError } from "./base.js";
|
|
2
|
+
export class OwsSignerError extends OwsError {
|
|
3
|
+
constructor(message) {
|
|
4
|
+
super(message);
|
|
5
|
+
this.name = "OwsSignerError";
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export class OwsNotAllowedError extends OwsSignerError {
|
|
9
|
+
reason;
|
|
10
|
+
constructor(message, reason) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.reason = reason;
|
|
13
|
+
this.name = "OwsNotAllowedError";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class OwsInvalidRequestError extends OwsSignerError {
|
|
17
|
+
reason;
|
|
18
|
+
constructor(message, reason) {
|
|
19
|
+
super(message);
|
|
20
|
+
this.reason = reason;
|
|
21
|
+
this.name = "OwsInvalidRequestError";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export class OwsTimeoutError extends OwsSignerError {
|
|
25
|
+
method;
|
|
26
|
+
correlationId;
|
|
27
|
+
constructor(message, method, correlationId) {
|
|
28
|
+
super(message);
|
|
29
|
+
this.method = method;
|
|
30
|
+
this.correlationId = correlationId;
|
|
31
|
+
this.name = "OwsTimeoutError";
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=signer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signer.js","sourceRoot":"","sources":["../../src/errors/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,OAAO,cAAe,SAAQ,QAAQ;IAC1C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC/B,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IAGzC;IAFX,YACE,OAAe,EACN,MAAe;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAFN,WAAM,GAAN,MAAM,CAAS;QAGxB,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IAG7C;IAFX,YACE,OAAe,EACN,MAAe;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAFN,WAAM,GAAN,MAAM,CAAS;QAGxB,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AAED,MAAM,OAAO,eAAgB,SAAQ,cAAc;IAGtC;IACA;IAHX,YACE,OAAe,EACN,MAAc,EACd,aAAqB;QAE9B,KAAK,CAAC,OAAO,CAAC,CAAC;QAHN,WAAM,GAAN,MAAM,CAAQ;QACd,kBAAa,GAAb,aAAa,CAAQ;QAG9B,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { OwsError } from "./errors/base.js";
|
|
2
|
+
export { OwsRpcError, OwsUnimplementedError, OwsInvalidParamsError, OwsUserRejectedError, OwsRpcTimeoutError, } from "./errors/rpc.js";
|
|
3
|
+
export { OwsSignerError, OwsNotAllowedError, OwsInvalidRequestError, OwsTimeoutError, } from "./errors/signer.js";
|
|
4
|
+
export { OWS_RPC_CALLBACK_EVENT, DEFAULT_RPC_TIMEOUT_MS, RPC_ERROR_UNIMPLEMENTED, RPC_ERROR_INVALID_PARAMS, RPC_ERROR_USER_REJECTED, } from "./protocol/wallet.js";
|
|
5
|
+
export { OWS_REQUEST_DISPLAY_EVENT, OWS_RELEASE_DISPLAY_EVENT, OWS_REQUEST_HIDE_EVENT, OWS_DISPLAY_READY_MODEL_METHOD, OWS_HIDE_READY_MODEL_METHOD, DEFAULT_DISPLAY_TIMEOUT_MS, deserializeRequestDisplay, deserializeDisplayReady, deserializeReleaseDisplay, deserializeRequestHide, deserializeHideReady, } from "./protocol/display.js";
|
|
6
|
+
export type { RequestDisplayParams, RequestDisplayEnvelope, DisplayReadyPayload, ReleaseDisplayEnvelope, RequestHideEnvelope, HideReadyPayload, } from "./protocol/display.js";
|
|
7
|
+
export type { RpcErrorPayload, RpcRequestEnvelope, RpcResponseEnvelope, } from "./protocol/wallet.js";
|
|
8
|
+
export { serializeRpc, deserializeRpcRequest, deserializeRpcResponse, } from "./protocol/serde.js";
|
|
9
|
+
export { API_VERSION } from "./protocol/signer.js";
|
|
10
|
+
export type { SignScheme, SignerMethod, SignerEvent, SignerRequest, SignerEventMessage, VersionData, KeyDerivedData, CredentialCreatedData, DigestSignedData, RecoveryDataCreatedData, RecoverySessionStartedData, RecoverySessionClearedData, PublicKeyData, ChallengeSignedData, CreateCredentialOptions, GetPublicKeyParams, EncryptAES256Params, EncryptAES256Result, DecryptAES256Params, DecryptAES256Result, } from "./protocol/signer.js";
|
|
11
|
+
export type { IOWSSigner } from "./protocol/ows-signer.js";
|
|
12
|
+
export { CREDENTIAL_WIRE_METHODS, type CredentialWireMethod, type OpenWalletCredentialProvider, } from "./protocol/credentials.js";
|
|
13
|
+
export * from "./credentials/index.js";
|
|
14
|
+
export * from "./primitives/index.js";
|
|
15
|
+
export { EIP1193_METHODS, EIP1193_READ_METHODS, EIP1193_UNRECOGNIZED_CHAIN_ID, isEip1193Method, type Eip1193Method, type Eip1193ReadMethod, type EIP1193RequestArgs, type EIP1193RequestArgsFor, type EIP1193Requests, type KnownEIP1193Method, } from "./eip1193/index.js";
|
|
16
|
+
export { PresentationUtils, ProofUtils, ConversionUtils, CredentialCryptoUtils, type IOwsEd25519HolderSignerDeps, type BuildSdJwtVcPresentationInput, type BuildSdJwtVcPresentationResult, type SdJwtVcIssuerClaims, type KbJwtClaims, } from "./utils/index.js";
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,8BAA8B,EAC9B,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,YAAY,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EACL,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,GAClC,MAAM,2BAA2B,CAAC;AAEnC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,6BAA6B,EAC7B,eAAe,EACf,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,WAAW,GACjB,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { OwsError } from "./errors/base.js";
|
|
2
|
+
export { OwsRpcError, OwsUnimplementedError, OwsInvalidParamsError, OwsUserRejectedError, OwsRpcTimeoutError, } from "./errors/rpc.js";
|
|
3
|
+
export { OwsSignerError, OwsNotAllowedError, OwsInvalidRequestError, OwsTimeoutError, } from "./errors/signer.js";
|
|
4
|
+
export { OWS_RPC_CALLBACK_EVENT, DEFAULT_RPC_TIMEOUT_MS, RPC_ERROR_UNIMPLEMENTED, RPC_ERROR_INVALID_PARAMS, RPC_ERROR_USER_REJECTED, } from "./protocol/wallet.js";
|
|
5
|
+
export { OWS_REQUEST_DISPLAY_EVENT, OWS_RELEASE_DISPLAY_EVENT, OWS_REQUEST_HIDE_EVENT, OWS_DISPLAY_READY_MODEL_METHOD, OWS_HIDE_READY_MODEL_METHOD, DEFAULT_DISPLAY_TIMEOUT_MS, deserializeRequestDisplay, deserializeDisplayReady, deserializeReleaseDisplay, deserializeRequestHide, deserializeHideReady, } from "./protocol/display.js";
|
|
6
|
+
export { serializeRpc, deserializeRpcRequest, deserializeRpcResponse, } from "./protocol/serde.js";
|
|
7
|
+
export { API_VERSION } from "./protocol/signer.js";
|
|
8
|
+
export { CREDENTIAL_WIRE_METHODS, } from "./protocol/credentials.js";
|
|
9
|
+
export * from "./credentials/index.js";
|
|
10
|
+
export * from "./primitives/index.js";
|
|
11
|
+
export { EIP1193_METHODS, EIP1193_READ_METHODS, EIP1193_UNRECOGNIZED_CHAIN_ID, isEip1193Method, } from "./eip1193/index.js";
|
|
12
|
+
export { PresentationUtils, ProofUtils, ConversionUtils, CredentialCryptoUtils, } from "./utils/index.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,8BAA8B,EAC9B,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAiB/B,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AA2BnD,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AAEnC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,6BAA6B,EAC7B,eAAe,GAOhB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,qBAAqB,GAMtB,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Brand } from "ts-brand";
|
|
2
|
+
/**
|
|
3
|
+
* AES-256-GCM ciphertext envelope (branded string).
|
|
4
|
+
*
|
|
5
|
+
* Signing Layer packaging: `ows-aes1:0x` ‖ version(1) ‖ IV(12) ‖ ciphertext+tag.
|
|
6
|
+
* Key is HKDF-SHA256 from the wallet secp256k1 scalar with info `ows-v1/aes256-gcm`
|
|
7
|
+
* (same material as `signDigest`; not passphrase PBKDF2).
|
|
8
|
+
*/
|
|
9
|
+
export type AES256CipherText = Brand<string, "AES256CipherText">;
|
|
10
|
+
export declare const AES256CipherText: import("ts-brand").Brander<AES256CipherText>;
|
|
11
|
+
//# sourceMappingURL=AES256CipherText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AES256CipherText.d.ts","sourceRoot":"","sources":["../../src/primitives/AES256CipherText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACjE,eAAO,MAAM,gBAAgB,8CAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AES256CipherText.js","sourceRoot":"","sources":["../../src/primitives/AES256CipherText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAU5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,EAAoB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Brand } from "ts-brand";
|
|
2
|
+
/** Base64url-encoded string (no padding, `-`/`_` alphabet). */
|
|
3
|
+
export type Base64UrlEncodedString = Brand<string, "Base64UrlEncodedString">;
|
|
4
|
+
export declare const Base64UrlEncodedString: import("ts-brand").Brander<Base64UrlEncodedString>;
|
|
5
|
+
//# sourceMappingURL=Base64UrlEncodedString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Base64UrlEncodedString.d.ts","sourceRoot":"","sources":["../../src/primitives/Base64UrlEncodedString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C,+DAA+D;AAC/D,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,sBAAsB,oDAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Base64UrlEncodedString.js","sourceRoot":"","sources":["../../src/primitives/Base64UrlEncodedString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAI5C,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,EAA0B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Brand } from "ts-brand";
|
|
2
|
+
/**
|
|
3
|
+
* A Bitcoin account address (base58 P2PKH/P2SH or bech32/bech32m).
|
|
4
|
+
* Example: "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq"
|
|
5
|
+
*/
|
|
6
|
+
export type BitcoinAccountAddress = Brand<string, "BitcoinAccountAddress">;
|
|
7
|
+
export declare const BitcoinAccountAddress: import("ts-brand").Brander<BitcoinAccountAddress>;
|
|
8
|
+
//# sourceMappingURL=BitcoinAccountAddress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BitcoinAccountAddress.d.ts","sourceRoot":"","sources":["../../src/primitives/BitcoinAccountAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAC3E,eAAO,MAAM,qBAAqB,mDAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BitcoinAccountAddress.js","sourceRoot":"","sources":["../../src/primitives/BitcoinAccountAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAO5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,EAAyB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Brand } from "ts-brand";
|
|
2
|
+
/** Credential subject or presentation claim name (e.g. `ageOver18`, `country`). */
|
|
3
|
+
export type CredentialClaimName = Brand<string, "CredentialClaimName">;
|
|
4
|
+
export declare const CredentialClaimName: import("ts-brand").Brander<CredentialClaimName>;
|
|
5
|
+
//# sourceMappingURL=CredentialClaimName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialClaimName.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialClaimName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C,mFAAmF;AACnF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AACvE,eAAO,MAAM,mBAAmB,iDAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialClaimName.js","sourceRoot":"","sources":["../../src/primitives/CredentialClaimName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAI5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,EAAuB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Brand } from "ts-brand";
|
|
2
|
+
/** OID4VCI credential configuration identifier (e.g. `KycCredential`). */
|
|
3
|
+
export type CredentialConfigurationId = Brand<string, "CredentialConfigurationId">;
|
|
4
|
+
export declare const CredentialConfigurationId: import("ts-brand").Brander<CredentialConfigurationId>;
|
|
5
|
+
//# sourceMappingURL=CredentialConfigurationId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialConfigurationId.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialConfigurationId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C,0EAA0E;AAC1E,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;AACnF,eAAO,MAAM,yBAAyB,uDAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialConfigurationId.js","sourceRoot":"","sources":["../../src/primitives/CredentialConfigurationId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAI5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,EAA6B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Brand } from "ts-brand";
|
|
2
|
+
/** Credential encoding format identifier from issuer metadata (e.g. `sd-jwt-vc`, `jwt_vc_json`). */
|
|
3
|
+
export type CredentialFormatId = Brand<string, "CredentialFormatId">;
|
|
4
|
+
export declare const CredentialFormatId: import("ts-brand").Brander<CredentialFormatId>;
|
|
5
|
+
//# sourceMappingURL=CredentialFormatId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialFormatId.d.ts","sourceRoot":"","sources":["../../src/primitives/CredentialFormatId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAQ,MAAM,UAAU,CAAC;AAE5C,oGAAoG;AACpG,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACrE,eAAO,MAAM,kBAAkB,gDAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialFormatId.js","sourceRoot":"","sources":["../../src/primitives/CredentialFormatId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,UAAU,CAAC;AAI5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,EAAsB,CAAC"}
|