@0xpolygonid/js-sdk 1.26.0 → 1.27.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,4 +1,4 @@
1
- import { BasicMessage, DIDDocument, IPackageManager, JsonDocumentObject, PackerParams } from '../types';
1
+ import { BasicMessage, DIDDocument, IPackageManager, PackerParams } from '../types';
2
2
  import { DID } from '@iden3/js-iden3-core';
3
3
  import { Proposal, ProposalRequestCredential, ProposalRequestMessage, ProposalMessage } from '../types/protocol/proposal-request';
4
4
  import { IIdentityWallet } from '../../identity';
@@ -6,10 +6,6 @@ import { AbstractMessageHandler, BasicHandlerOptions, IProtocolMessageHandler }
6
6
  /** @beta ProposalRequestCreationOptions represents proposal-request creation options */
7
7
  export type ProposalRequestCreationOptions = {
8
8
  credentials: ProposalRequestCredential[];
9
- metadata?: {
10
- type: string;
11
- data?: JsonDocumentObject;
12
- };
13
9
  did_doc?: DIDDocument;
14
10
  expires_time?: Date;
15
11
  };
@@ -26,7 +26,7 @@ export type ContractInvokeResponseBody = {
26
26
  };
27
27
  /** OnChainZeroKnowledgeProofResponse represents structure of onchain zero knowledge proof response */
28
28
  export type OnChainZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse & {
29
- txHash: string;
29
+ txHash?: string;
30
30
  };
31
31
  /** ContractInvokeTransactionData represents structure of contract invoke transaction data object */
32
32
  export type ContractInvokeTransactionData = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xpolygonid/js-sdk",
3
- "version": "1.26.0",
3
+ "version": "1.27.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",