@hyperledger/anoncreds-shared 0.1.0-dev.8 → 0.1.0-dev.9
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/Anoncreds.d.ts +10 -2
- package/build/AnoncredsObject.d.ts +2 -1
- package/build/AnoncredsObject.js +1 -1
- package/build/AnoncredsObject.js.map +1 -1
- package/build/api/Credential.d.ts +20 -19
- package/build/api/Credential.js +81 -23
- package/build/api/Credential.js.map +1 -1
- package/build/api/CredentialDefinition.d.ts +4 -3
- package/build/api/CredentialDefinition.js +26 -13
- package/build/api/CredentialDefinition.js.map +1 -1
- package/build/api/CredentialDefinitionPrivate.d.ts +2 -1
- package/build/api/CredentialDefinitionPrivate.js +2 -2
- package/build/api/CredentialDefinitionPrivate.js.map +1 -1
- package/build/api/CredentialOffer.d.ts +4 -3
- package/build/api/CredentialOffer.js +21 -7
- package/build/api/CredentialOffer.js.map +1 -1
- package/build/api/CredentialRequest.d.ts +9 -7
- package/build/api/CredentialRequest.js +33 -11
- package/build/api/CredentialRequest.js.map +1 -1
- package/build/api/CredentialRequestMetadata.d.ts +2 -1
- package/build/api/CredentialRequestMetadata.js +2 -2
- package/build/api/CredentialRequestMetadata.js.map +1 -1
- package/build/api/CredentialRevocationConfig.d.ts +1 -0
- package/build/api/CredentialRevocationConfig.js +4 -0
- package/build/api/CredentialRevocationConfig.js.map +1 -1
- package/build/api/CredentialRevocationState.d.ts +4 -3
- package/build/api/CredentialRevocationState.js +28 -10
- package/build/api/CredentialRevocationState.js.map +1 -1
- package/build/api/KeyCorrectnessProof.d.ts +2 -1
- package/build/api/KeyCorrectnessProof.js +2 -2
- package/build/api/KeyCorrectnessProof.js.map +1 -1
- package/build/api/MasterSecret.d.ts +2 -1
- package/build/api/MasterSecret.js +2 -2
- package/build/api/MasterSecret.js.map +1 -1
- package/build/api/Presentation.d.ts +25 -18
- package/build/api/Presentation.js +80 -34
- package/build/api/Presentation.js.map +1 -1
- package/build/api/PresentationRequest.d.ts +2 -1
- package/build/api/PresentationRequest.js +2 -2
- package/build/api/PresentationRequest.js.map +1 -1
- package/build/api/RevocationRegistry.d.ts +2 -1
- package/build/api/RevocationRegistry.js +2 -2
- package/build/api/RevocationRegistry.js.map +1 -1
- package/build/api/RevocationRegistryDefinition.d.ts +4 -3
- package/build/api/RevocationRegistryDefinition.js +18 -5
- package/build/api/RevocationRegistryDefinition.js.map +1 -1
- package/build/api/RevocationRegistryDefinitionPrivate.d.ts +2 -1
- package/build/api/RevocationRegistryDefinitionPrivate.js +2 -2
- package/build/api/RevocationRegistryDefinitionPrivate.js.map +1 -1
- package/build/api/RevocationRegistryDelta.d.ts +2 -1
- package/build/api/RevocationRegistryDelta.js +2 -2
- package/build/api/RevocationRegistryDelta.js.map +1 -1
- package/build/api/RevocationStatusList.d.ts +6 -3
- package/build/api/RevocationStatusList.js +31 -3
- package/build/api/RevocationStatusList.js.map +1 -1
- package/build/api/Schema.d.ts +2 -1
- package/build/api/Schema.js +2 -2
- package/build/api/Schema.js.map +1 -1
- package/build/api/utils.d.ts +1 -0
- package/build/api/utils.js +6 -0
- package/build/api/utils.js.map +1 -0
- package/build/types.d.ts +1 -0
- package/package.json +2 -2
package/build/api/Schema.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JsonObject } from '../types';
|
|
1
2
|
import { AnoncredsObject } from '../AnoncredsObject';
|
|
2
3
|
export declare type CreateSchemaOptions = {
|
|
3
4
|
name: string;
|
|
@@ -7,5 +8,5 @@ export declare type CreateSchemaOptions = {
|
|
|
7
8
|
};
|
|
8
9
|
export declare class Schema extends AnoncredsObject {
|
|
9
10
|
static create(options: CreateSchemaOptions): Schema;
|
|
10
|
-
static
|
|
11
|
+
static fromJson(json: JsonObject): Schema;
|
|
11
12
|
}
|
package/build/api/Schema.js
CHANGED
|
@@ -7,8 +7,8 @@ class Schema extends AnoncredsObject_1.AnoncredsObject {
|
|
|
7
7
|
static create(options) {
|
|
8
8
|
return new Schema(register_1.anoncreds.createSchema(options).handle);
|
|
9
9
|
}
|
|
10
|
-
static
|
|
11
|
-
return new Schema(register_1.anoncreds.schemaFromJson({ json }).handle);
|
|
10
|
+
static fromJson(json) {
|
|
11
|
+
return new Schema(register_1.anoncreds.schemaFromJson({ json: JSON.stringify(json) }).handle);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.Schema = Schema;
|
package/build/api/Schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../src/api/Schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../src/api/Schema.ts"],"names":[],"mappings":";;;AAEA,wDAAoD;AACpD,0CAAuC;AASvC,MAAa,MAAO,SAAQ,iCAAe;IAClC,MAAM,CAAC,MAAM,CAAC,OAA4B;QAC/C,OAAO,IAAI,MAAM,CAAC,oBAAS,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;IAC3D,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,IAAgB;QACrC,OAAO,IAAI,MAAM,CAAC,oBAAS,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAA;IACpF,CAAC;CACF;AARD,wBAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pushToArray: <T>(obj: T, arr: T[]) => T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/api/utils.ts"],"names":[],"mappings":";;;AAAO,MAAM,WAAW,GAAG,CAAI,GAAM,EAAE,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;AAA7D,QAAA,WAAW,eAAkD"}
|
package/build/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperledger/anoncreds-shared",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.9",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Anoncreds wrapper library with NodeJS and React Native",
|
|
6
6
|
"main": "build/index",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"rimraf": "3.0.2",
|
|
31
31
|
"typescript": "4.5.5"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "49efccccc0cf932038a872fc13b907c459d58f66"
|
|
34
34
|
}
|