@0xpolygonid/js-sdk 1.15.2 → 1.16.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SupportedCurrencies = exports.PaymentType = exports.PaymentRequestDataType = exports.PaymentRequestType = exports.RefreshServiceType = exports.SubjectPosition = exports.MerklizedRootPosition = exports.ProofPurpose = exports.CredentialStatusType = exports.ProofType = exports.VerifiableConstants = void 0;
3
+ exports.DisplayMethodType = exports.SupportedCurrencies = exports.PaymentType = exports.PaymentRequestDataType = exports.PaymentRequestType = exports.RefreshServiceType = exports.SubjectPosition = exports.MerklizedRootPosition = exports.ProofPurpose = exports.CredentialStatusType = exports.ProofType = exports.VerifiableConstants = void 0;
4
4
  /** Verifiable constants */
5
5
  exports.VerifiableConstants = Object.freeze({
6
6
  ERRORS: {
@@ -149,3 +149,12 @@ var SupportedCurrencies;
149
149
  (function (SupportedCurrencies) {
150
150
  SupportedCurrencies["ETH"] = "ETH";
151
151
  })(SupportedCurrencies = exports.SupportedCurrencies || (exports.SupportedCurrencies = {}));
152
+ /**
153
+ * DisplayMethodType type for display method
154
+ *
155
+ * @enum {string}
156
+ */
157
+ var DisplayMethodType;
158
+ (function (DisplayMethodType) {
159
+ DisplayMethodType["Iden3BasicDisplayMethodV1"] = "Iden3BasicDisplayMethodV1";
160
+ })(DisplayMethodType = exports.DisplayMethodType || (exports.DisplayMethodType = {}));
@@ -146,3 +146,12 @@ export var SupportedCurrencies;
146
146
  (function (SupportedCurrencies) {
147
147
  SupportedCurrencies["ETH"] = "ETH";
148
148
  })(SupportedCurrencies || (SupportedCurrencies = {}));
149
+ /**
150
+ * DisplayMethodType type for display method
151
+ *
152
+ * @enum {string}
153
+ */
154
+ export var DisplayMethodType;
155
+ (function (DisplayMethodType) {
156
+ DisplayMethodType["Iden3BasicDisplayMethodV1"] = "Iden3BasicDisplayMethodV1";
157
+ })(DisplayMethodType || (DisplayMethodType = {}));
@@ -117,3 +117,11 @@ export declare enum PaymentType {
117
117
  export declare enum SupportedCurrencies {
118
118
  ETH = "ETH"
119
119
  }
120
+ /**
121
+ * DisplayMethodType type for display method
122
+ *
123
+ * @enum {string}
124
+ */
125
+ export declare enum DisplayMethodType {
126
+ Iden3BasicDisplayMethodV1 = "Iden3BasicDisplayMethodV1"
127
+ }
@@ -1,4 +1,4 @@
1
- import { BJJSignatureProof2021, Iden3SparseMerkleTreeProof, CredentialStatus, RefreshService } from './proof';
1
+ import { BJJSignatureProof2021, Iden3SparseMerkleTreeProof, CredentialStatus, RefreshService, DisplayMethod } from './proof';
2
2
  import { Claim } from '@iden3/js-iden3-core';
3
3
  import { Proof } from '@iden3/js-merkletree';
4
4
  import { Merklizer, Options } from '@iden3/js-jsonld-merklization';
@@ -18,6 +18,7 @@ export declare class W3CCredential {
18
18
  type: string[];
19
19
  expirationDate?: string;
20
20
  refreshService?: RefreshService;
21
+ displayMethod?: DisplayMethod;
21
22
  issuanceDate?: string;
22
23
  credentialSubject: {
23
24
  [key: string]: object | string | number | boolean;
@@ -1,5 +1,5 @@
1
1
  import { Hash, Proof } from '@iden3/js-merkletree';
2
- import { ProofType, CredentialStatusType, RefreshServiceType } from './constants';
2
+ import { ProofType, CredentialStatusType, RefreshServiceType, DisplayMethodType } from './constants';
3
3
  import { TreeState } from '../circuits';
4
4
  import { Signature } from '@iden3/js-crypto';
5
5
  import { Claim, DID } from '@iden3/js-iden3-core';
@@ -201,3 +201,12 @@ export interface RefreshService {
201
201
  id: string;
202
202
  type: RefreshServiceType | string;
203
203
  }
204
+ /**
205
+ * DisplayMethod contains type and id
206
+ * @public
207
+ * @interface DisplayMethod
208
+ */
209
+ export interface DisplayMethod {
210
+ id: string;
211
+ type: DisplayMethodType | string;
212
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xpolygonid/js-sdk",
3
- "version": "1.15.2",
3
+ "version": "1.16.0",
4
4
  "description": "SDK to work with Polygon ID",
5
5
  "main": "dist/node/cjs/index.js",
6
6
  "module": "dist/node/esm/index.js",
@@ -87,9 +87,9 @@
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@iden3/js-crypto": "1.1.0",
90
- "@iden3/js-iden3-core": "1.3.2",
90
+ "@iden3/js-iden3-core": "1.4.0",
91
91
  "@iden3/js-jsonld-merklization": "1.3.1",
92
- "@iden3/js-jwz": "1.5.1",
92
+ "@iden3/js-jwz": "1.6.0",
93
93
  "@iden3/js-merkletree": "1.2.0",
94
94
  "ffjavascript": "0.3.0",
95
95
  "rfc4648": "1.5.3",