@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.
- package/dist/browser/esm/index.js +0 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +0 -1
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/iden3comm/handlers/contract-request.js +0 -1
- package/dist/node/esm/iden3comm/handlers/contract-request.js +0 -1
- package/dist/types/iden3comm/types/protocol/contract-request.d.ts +4 -3
- package/package.json +1 -1
|
@@ -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
|
|
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
|
-
|
|
25
|
+
did_doc?: DIDDocument;
|
|
25
26
|
};
|
|
26
27
|
/** OnChainZeroKnowledgeProofResponse represents structure of onchain zero knowledge proof response */
|
|
27
28
|
export type OnChainZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse & {
|