@microsoft/ccf-app 2.0.0-dev8 → 2.0.0-rc2
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/endpoints.d.ts +31 -3
- package/global.d.ts +21 -3
- package/package.json +1 -1
package/endpoints.d.ts
CHANGED
|
@@ -38,18 +38,46 @@ export interface Request<T extends JsonCompatible<T> = any> {
|
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* An object mapping URL path parameter names to their values.
|
|
41
|
+
*
|
|
42
|
+
* For example `GET /app/person/bob?fields=all` matched to `/app/person/{name}` becomes `{"name": "bob"}`
|
|
41
43
|
*/
|
|
42
44
|
params: {
|
|
43
45
|
[key: string]: string;
|
|
44
46
|
};
|
|
45
47
|
/**
|
|
46
|
-
* The
|
|
48
|
+
* The full original requested URL.
|
|
49
|
+
*
|
|
50
|
+
* For example `GET /app/person/bob?fields=all` becomes `"/app/person/bob?fields=all"`
|
|
47
51
|
*/
|
|
48
|
-
|
|
52
|
+
url: string;
|
|
49
53
|
/**
|
|
50
|
-
* The
|
|
54
|
+
* The path component of the requested URL.
|
|
55
|
+
*
|
|
56
|
+
* For example `GET /app/person/bob?fields=all` becomes `"/app/person/bob"`
|
|
51
57
|
*/
|
|
52
58
|
path: string;
|
|
59
|
+
/**
|
|
60
|
+
* The endpoint name which matched requested URL, potentially containing path parameters.
|
|
61
|
+
*
|
|
62
|
+
* For example `GET /app/person/bob?fields=all` becomes `"/app/person/{name}"`
|
|
63
|
+
*/
|
|
64
|
+
route: string;
|
|
65
|
+
/**
|
|
66
|
+
* The query component of the requested URL.
|
|
67
|
+
*
|
|
68
|
+
* For example `GET /app/person/bob?fields=all` becomes `"fields=all"`
|
|
69
|
+
*/
|
|
70
|
+
query: string;
|
|
71
|
+
/**
|
|
72
|
+
* The HTTP method of the request.
|
|
73
|
+
*
|
|
74
|
+
* For example `GET /app/person/bob?fields=all` becomes `"GET"`
|
|
75
|
+
*/
|
|
76
|
+
method: string;
|
|
77
|
+
/**
|
|
78
|
+
* Hostname extracted from Host header, or null if header is missing
|
|
79
|
+
*/
|
|
80
|
+
hostname: string;
|
|
53
81
|
/**
|
|
54
82
|
* An object to access the request body in various ways.
|
|
55
83
|
*/
|
package/global.d.ts
CHANGED
|
@@ -48,6 +48,20 @@ export interface ProofElement {
|
|
|
48
48
|
*/
|
|
49
49
|
right?: string;
|
|
50
50
|
}
|
|
51
|
+
export interface LeafComponents {
|
|
52
|
+
/**
|
|
53
|
+
* Hex-encoded hash of transaction's write set.
|
|
54
|
+
*/
|
|
55
|
+
write_set_digest: string;
|
|
56
|
+
/**
|
|
57
|
+
* Raw bytes of commit evidence.
|
|
58
|
+
*/
|
|
59
|
+
commit_evidence?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Hex-encoded hash of transaction's claims.
|
|
62
|
+
*/
|
|
63
|
+
claims_digest?: string;
|
|
64
|
+
}
|
|
51
65
|
/**
|
|
52
66
|
* @inheritDoc Receipt.proof
|
|
53
67
|
*/
|
|
@@ -66,13 +80,17 @@ export interface Receipt {
|
|
|
66
80
|
*/
|
|
67
81
|
proof: Proof;
|
|
68
82
|
/**
|
|
69
|
-
* Hex-encoded Merkle tree leaf hash.
|
|
83
|
+
* Hex-encoded Merkle tree leaf hash, for pre-2.x transactions.
|
|
84
|
+
*/
|
|
85
|
+
leaf?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Components of Merkle tree leaf hash, which digest together to replace leaf.
|
|
70
88
|
*/
|
|
71
|
-
|
|
89
|
+
leaf_components?: LeafComponents;
|
|
72
90
|
/**
|
|
73
91
|
* ID of the node that signed the Merkle tree root hash.
|
|
74
92
|
*/
|
|
75
|
-
|
|
93
|
+
node_id: string;
|
|
76
94
|
}
|
|
77
95
|
/**
|
|
78
96
|
* State associated with a specific historic transaction.
|