@microsoft/ccf-app 3.0.0-rc1 → 3.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/converters.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export declare type JsonCompatible<T> = any;
1
+ export type JsonCompatible<T> = any;
2
2
  export interface DataConverter<T> {
3
3
  encode(val: T): ArrayBuffer;
4
4
  decode(arr: ArrayBuffer): T;
5
5
  }
6
- export declare type TypedArray = ArrayBufferView;
6
+ export type TypedArray = ArrayBufferView;
7
7
  export interface TypedArrayConstructor<T extends TypedArray> {
8
8
  new (buffer: ArrayBuffer, byteOffset?: number, length?: number): T;
9
9
  }
package/endpoints.d.ts CHANGED
@@ -152,9 +152,9 @@ export interface JwtAuthnIdentity extends AuthnIdentityCommon {
152
152
  * Each identity corresponds to a matching {@linkcode AuthnIdentityCommon.policy | policy}.
153
153
  * Policies have to be declared for each endpoint in ``app.json``.
154
154
  */
155
- export declare type AuthnIdentity = EmptyAuthnIdentity | UserCertAuthnIdentity | MemberCertAuthnIdentity | UserSignatureAuthnIdentity | MemberSignatureAuthnIdentity | JwtAuthnIdentity;
155
+ export type AuthnIdentity = EmptyAuthnIdentity | UserCertAuthnIdentity | MemberCertAuthnIdentity | UserSignatureAuthnIdentity | MemberSignatureAuthnIdentity | JwtAuthnIdentity;
156
156
  /** See {@linkcode Response.body}. */
157
- export declare type ResponseBodyType<T> = string | ArrayBuffer | JsonCompatible<T>;
157
+ export type ResponseBodyType<T> = string | ArrayBuffer | JsonCompatible<T>;
158
158
  /**
159
159
  * The response object returned from an endpoint function.
160
160
  *
@@ -219,7 +219,7 @@ export interface Response<T extends ResponseBodyType<T> = any> {
219
219
  * { ... }
220
220
  * ```
221
221
  */
222
- export declare type EndpointFn<A extends JsonCompatible<A> = any, B extends ResponseBodyType<B> = any> = (request: Request<A>) => Response<B>;
222
+ export type EndpointFn<A extends JsonCompatible<A> = any, B extends ResponseBodyType<B> = any> = (request: Request<A>) => Response<B>;
223
223
  /**
224
224
  * @inheritDoc global!CCFRpc.setApplyWrites
225
225
  */
package/global.d.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  * @module
15
15
  */
16
16
  export declare const ccf: CCF;
17
- export declare type JsonCompatible<T> = any;
17
+ export type JsonCompatible<T> = any;
18
18
  /**
19
19
  * A map in the Key Value Store.
20
20
  *
@@ -35,7 +35,7 @@ export interface KvMap {
35
35
  /**
36
36
  * @inheritDoc CCF.kv
37
37
  */
38
- export declare type KvMaps = {
38
+ export type KvMaps = {
39
39
  [key: string]: KvMap;
40
40
  };
41
41
  export interface ProofElement {
@@ -65,7 +65,7 @@ export interface LeafComponents {
65
65
  /**
66
66
  * @inheritDoc Receipt.proof
67
67
  */
68
- export declare type Proof = ProofElement[];
68
+ export type Proof = ProofElement[];
69
69
  export interface Receipt {
70
70
  /**
71
71
  * Base64-encoded signature of the Merkle tree root hash.
@@ -115,7 +115,7 @@ export interface TransactionId {
115
115
  view: number;
116
116
  seqno: number;
117
117
  }
118
- export declare type TransactionStatus = "Committed" | "Invalid" | "Pending" | "Unknown";
118
+ export type TransactionStatus = "Committed" | "Invalid" | "Pending" | "Unknown";
119
119
  /**
120
120
  * [RSA-OAEP](https://datatracker.ietf.org/doc/html/rfc8017)
121
121
  * key wrapping with SHA-256 as digest function.
@@ -161,7 +161,7 @@ export interface RsaOaepAesKwpParams {
161
161
  */
162
162
  label?: ArrayBuffer;
163
163
  }
164
- export declare type WrapAlgoParams = RsaOaepParams | AesKwpParams | RsaOaepAesKwpParams;
164
+ export type WrapAlgoParams = RsaOaepParams | AesKwpParams | RsaOaepAesKwpParams;
165
165
  export interface CryptoKeyPair {
166
166
  /**
167
167
  * Private key in PEM encoding.
@@ -172,8 +172,8 @@ export interface CryptoKeyPair {
172
172
  */
173
173
  publicKey: string;
174
174
  }
175
- export declare type AlgorithmName = "RSASSA-PKCS1-v1_5" | "ECDSA" | "EdDSA";
176
- export declare type DigestAlgorithm = "SHA-256";
175
+ export type AlgorithmName = "RSASSA-PKCS1-v1_5" | "ECDSA" | "EdDSA";
176
+ export type DigestAlgorithm = "SHA-256";
177
177
  export interface SigningAlgorithm {
178
178
  name: AlgorithmName;
179
179
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/ccf-app",
3
- "version": "3.0.0-rc1",
3
+ "version": "3.0.0-rc2",
4
4
  "description": "CCF app support package",
5
5
  "main": "index.js",
6
6
  "files": [