@animo-id/mdoc
Advanced tools
Comparing version 0.2.38 to 0.2.39-alpha-20241122191536
@@ -331,4 +331,4 @@ import { JWK } from 'jose'; | ||
} | ||
type IssuerNameSpaces = Record<string, IssuerSignedItem[]>; | ||
type MdocNameSpaces = Record<string, Record<string, unknown>>; | ||
type IssuerNameSpaces = Map<string, IssuerSignedItem[]>; | ||
type MdocNameSpaces = Map<string, Map<string, unknown>>; | ||
interface IssuerSigned { | ||
@@ -349,3 +349,3 @@ issuerAuth: IssuerAuth; | ||
deviceAuth: DeviceAuth; | ||
nameSpaces: Record<string, Record<string, unknown>>; | ||
nameSpaces: Map<string, Map<string, unknown>>; | ||
} | ||
@@ -662,3 +662,3 @@ type DigestAlgorithm = 'SHA-256' | 'SHA-384' | 'SHA-512'; | ||
]; | ||
type DeviceRequestNameSpaces = Record<string, Record<string, boolean>>; | ||
type DeviceRequestNameSpaces = Map<string, Map<string, boolean>>; | ||
declare class DeviceRequest { | ||
@@ -697,5 +697,5 @@ version: string; | ||
* @param {string} namespace - The namespace to add. | ||
* @returns {Record<string, unknown>} - The values in the namespace as an object | ||
* @returns {Map<string, unknown>} - The values in the namespace as an object | ||
*/ | ||
getIssuerNameSpace(namespace: string): Record<string, unknown> | undefined; | ||
getIssuerNameSpace(namespace: string): Map<string, unknown> | undefined; | ||
/** | ||
@@ -760,3 +760,3 @@ * List of namespaces in the document. | ||
private devicePrivateKey?; | ||
nameSpaces: Record<string, Record<string, unknown>>; | ||
nameSpaces: Map<string, Map<string, unknown>>; | ||
private alg?; | ||
@@ -847,6 +847,6 @@ private macAlg?; | ||
* @param {string} nameSpace - The name space to add to the device response. | ||
* @param {Record<string, any>} data - The data to add to the name space. | ||
* @param {Record<string, any> | Map<string, unknown>} data - The data to add to the name space. | ||
* @returns {DeviceResponse} | ||
*/ | ||
addDeviceNameSpace(nameSpace: string, data: Record<string, unknown>): DeviceResponse; | ||
addDeviceNameSpace(nameSpace: string, data: Map<string, unknown> | Record<string, unknown>): DeviceResponse; | ||
/** | ||
@@ -897,5 +897,5 @@ * Set the device's private key to be used for signing the device response. | ||
* @param {string} namespace - The namespace to add. | ||
* @returns {Record<string, unknown>} - The values in the namespace as an object | ||
* @returns {Map<string, unknown>} - The values in the namespace as an object | ||
*/ | ||
getDeviceNameSpace(namespace: string): Record<string, unknown> | undefined; | ||
getDeviceNameSpace(namespace: string): Map<string, unknown> | undefined; | ||
/** | ||
@@ -989,3 +989,3 @@ * List of namespaces in the document. | ||
declare const limitDisclosureToInputDescriptor: (mdoc: IssuerSignedDocument, inputDescriptor: InputDescriptor) => Record<string, IssuerSignedItem[]>; | ||
declare const limitDisclosureToInputDescriptor: (mdoc: IssuerSignedDocument, inputDescriptor: InputDescriptor) => Map<string, IssuerSignedItem[]>; | ||
@@ -992,0 +992,0 @@ /** |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "0.2.38", | ||
"version": "0.2.39-alpha-20241122191536", | ||
"files": [ | ||
@@ -16,0 +16,0 @@ "dist" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1054966
10320