@0xpolygonid/js-sdk 1.20.3 → 1.21.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.
@@ -109,7 +109,6 @@ class ContractRequestHandler extends message_handler_1.AbstractMessageHandler {
109
109
  to: request.from,
110
110
  body: {
111
111
  transaction_data: request.body.transaction_data,
112
- reason: request.body.reason,
113
112
  scope: []
114
113
  }
115
114
  };
@@ -106,7 +106,6 @@ export class ContractRequestHandler extends AbstractMessageHandler {
106
106
  to: request.from,
107
107
  body: {
108
108
  transaction_data: request.body.transaction_data,
109
- reason: request.body.reason,
110
109
  scope: []
111
110
  }
112
111
  };
@@ -1,6 +1,6 @@
1
1
  import { PROTOCOL_MESSAGE_TYPE } from '../../constants';
2
2
  import { BasicMessage } from '../packer';
3
- import { ZeroKnowledgeProofRequest, ZeroKnowledgeProofResponse } from './auth';
3
+ import { DIDDocument, ZeroKnowledgeProofRequest, ZeroKnowledgeProofResponse } from './auth';
4
4
  /** ContractInvokeRequest represents structure of contract invoke request object */
5
5
  export type ContractInvokeRequest = BasicMessage & {
6
6
  body: ContractInvokeRequestBody;
@@ -8,9 +8,10 @@ export type ContractInvokeRequest = BasicMessage & {
8
8
  };
9
9
  /** ContractInvokeRequestBody represents structure of contract invoke request body object */
10
10
  export type ContractInvokeRequestBody = {
11
- reason: string;
11
+ reason?: string;
12
12
  transaction_data: ContractInvokeTransactionData;
13
13
  scope: Array<ZeroKnowledgeProofRequest>;
14
+ did_doc?: DIDDocument;
14
15
  };
15
16
  /** ContractInvokeResponse represents structure of contract invoke response object */
16
17
  export type ContractInvokeResponse = BasicMessage & {
@@ -21,7 +22,7 @@ export type ContractInvokeResponse = BasicMessage & {
21
22
  export type ContractInvokeResponseBody = {
22
23
  scope: Array<OnChainZeroKnowledgeProofResponse>;
23
24
  transaction_data: ContractInvokeTransactionData;
24
- reason: string;
25
+ did_doc?: DIDDocument;
25
26
  };
26
27
  /** OnChainZeroKnowledgeProofResponse represents structure of onchain zero knowledge proof response */
27
28
  export type OnChainZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xpolygonid/js-sdk",
3
- "version": "1.20.3",
3
+ "version": "1.21.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",