@novasamatech/host-api 0.6.4 → 0.6.6-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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/protocol/impl.d.ts +3 -3
- package/dist/protocol/messageCodec.d.ts +6 -6
- package/dist/protocol/v1/sign.js +1 -1
- package/dist/protocol/v1/statementStore.d.ts +5 -5
- package/dist/protocol/v1/statementStore.js +3 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -23,5 +23,5 @@ export { RemotePermissionRequest } from './protocol/v1/remotePermission.js';
|
|
|
23
23
|
export { PushNotification } from './protocol/v1/notification.js';
|
|
24
24
|
export { NavigateToErr } from './protocol/v1/navigation.js';
|
|
25
25
|
export { PreimageKey, PreimageSubmitErr, PreimageValue } from './protocol/v1/preimage.js';
|
|
26
|
-
export { CustomRendererNode } from './protocol/v1/customRenderer.js';
|
|
26
|
+
export { Arrangement, BorderStyle, ButtonVariant, ColorToken, ContentAlignment, CustomRendererNode, Dimensions, HorizontalAlignment, Modifier, Shape, Size, TypographyStyle, VerticalAlignment, } from './protocol/v1/customRenderer.js';
|
|
27
27
|
export { ChainHeadEvent, ChainHeadFollowV1_start, OperationStartedResult, RuntimeType, StorageQueryItem, StorageQueryType, StorageResultItem, TransactionBroadcastV1_request, TransactionBroadcastV1_response, TransactionStopV1_request, TransactionStopV1_response, } from './protocol/v1/chainInteraction.js';
|
package/dist/index.js
CHANGED
|
@@ -18,5 +18,5 @@ export { RemotePermissionRequest } from './protocol/v1/remotePermission.js';
|
|
|
18
18
|
export { PushNotification } from './protocol/v1/notification.js';
|
|
19
19
|
export { NavigateToErr } from './protocol/v1/navigation.js';
|
|
20
20
|
export { PreimageKey, PreimageSubmitErr, PreimageValue } from './protocol/v1/preimage.js';
|
|
21
|
-
export { CustomRendererNode } from './protocol/v1/customRenderer.js';
|
|
21
|
+
export { Arrangement, BorderStyle, ButtonVariant, ColorToken, ContentAlignment, CustomRendererNode, Dimensions, HorizontalAlignment, Modifier, Shape, Size, TypographyStyle, VerticalAlignment, } from './protocol/v1/customRenderer.js';
|
|
22
22
|
export { ChainHeadEvent, ChainHeadFollowV1_start, OperationStartedResult, RuntimeType, StorageQueryItem, StorageQueryType, StorageResultItem, TransactionBroadcastV1_request, TransactionBroadcastV1_response, TransactionStopV1_request, TransactionStopV1_response, } from './protocol/v1/chainInteraction.js';
|
package/dist/protocol/impl.d.ts
CHANGED
|
@@ -356,7 +356,7 @@ export declare const hostApiProtocol: {
|
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
358
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
359
|
-
|
|
359
|
+
expiry: bigint | undefined;
|
|
360
360
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
361
361
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
362
362
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -391,7 +391,7 @@ export declare const hostApiProtocol: {
|
|
|
391
391
|
};
|
|
392
392
|
} | undefined;
|
|
393
393
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
394
|
-
|
|
394
|
+
expiry: bigint | undefined;
|
|
395
395
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
396
396
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
397
397
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -453,7 +453,7 @@ export declare const hostApiProtocol: {
|
|
|
453
453
|
};
|
|
454
454
|
};
|
|
455
455
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
456
|
-
|
|
456
|
+
expiry: bigint | undefined;
|
|
457
457
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
458
458
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
459
459
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -375,7 +375,7 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
375
375
|
};
|
|
376
376
|
};
|
|
377
377
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
378
|
-
|
|
378
|
+
expiry: bigint | undefined;
|
|
379
379
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
380
380
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
381
381
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -409,7 +409,7 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
409
409
|
};
|
|
410
410
|
} | undefined;
|
|
411
411
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
412
|
-
|
|
412
|
+
expiry: bigint | undefined;
|
|
413
413
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
414
414
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
415
415
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -472,7 +472,7 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
472
472
|
};
|
|
473
473
|
};
|
|
474
474
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
475
|
-
|
|
475
|
+
expiry: bigint | undefined;
|
|
476
476
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
477
477
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
478
478
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -1338,7 +1338,7 @@ export declare const Message: Codec<{
|
|
|
1338
1338
|
};
|
|
1339
1339
|
};
|
|
1340
1340
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
1341
|
-
|
|
1341
|
+
expiry: bigint | undefined;
|
|
1342
1342
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
1343
1343
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
1344
1344
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -1382,7 +1382,7 @@ export declare const Message: Codec<{
|
|
|
1382
1382
|
};
|
|
1383
1383
|
} | undefined;
|
|
1384
1384
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
1385
|
-
|
|
1385
|
+
expiry: bigint | undefined;
|
|
1386
1386
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
1387
1387
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
1388
1388
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -1453,7 +1453,7 @@ export declare const Message: Codec<{
|
|
|
1453
1453
|
};
|
|
1454
1454
|
};
|
|
1455
1455
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
1456
|
-
|
|
1456
|
+
expiry: bigint | undefined;
|
|
1457
1457
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
1458
1458
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
1459
1459
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
package/dist/protocol/v1/sign.js
CHANGED
|
@@ -6,7 +6,7 @@ export const SigningErr = ErrEnum('SigningErr', {
|
|
|
6
6
|
FailedToDecode: [_void, 'Failed to decode'],
|
|
7
7
|
Rejected: [_void, 'Rejected'],
|
|
8
8
|
PermissionDenied: [_void, 'Permission denied'],
|
|
9
|
-
Unknown: [GenericErr, 'Unknown error'],
|
|
9
|
+
Unknown: [GenericErr, ({ reason }) => reason || 'Unknown error'],
|
|
10
10
|
});
|
|
11
11
|
export const SigningResult = Struct({
|
|
12
12
|
signature: Hex(),
|
|
@@ -29,7 +29,7 @@ export declare const Statement: import("scale-ts").Codec<{
|
|
|
29
29
|
};
|
|
30
30
|
} | undefined;
|
|
31
31
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
32
|
-
|
|
32
|
+
expiry: bigint | undefined;
|
|
33
33
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
34
34
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
35
35
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const SignedStatement: import("scale-ts").Codec<{
|
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
65
|
-
|
|
65
|
+
expiry: bigint | undefined;
|
|
66
66
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
67
67
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
68
68
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -96,7 +96,7 @@ export declare const StatementStoreSubscribeV1_receive: import("scale-ts").Codec
|
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
99
|
-
|
|
99
|
+
expiry: bigint | undefined;
|
|
100
100
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
101
101
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
102
102
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const StatementStoreCreateProofV1_request: import("scale-ts").Cod
|
|
|
147
147
|
};
|
|
148
148
|
} | undefined;
|
|
149
149
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
150
|
-
|
|
150
|
+
expiry: bigint | undefined;
|
|
151
151
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
152
152
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
153
153
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -208,7 +208,7 @@ export declare const StatementStoreSubmitV1_request: import("scale-ts").Codec<{
|
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
210
|
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
211
|
-
|
|
211
|
+
expiry: bigint | undefined;
|
|
212
212
|
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
213
213
|
topics: Uint8Array<ArrayBufferLike>[];
|
|
214
214
|
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Enum, ErrEnum } from '@novasamatech/scale';
|
|
2
|
-
import { Bytes, Option, Result, Struct, Tuple, Vector, _void,
|
|
2
|
+
import { Bytes, Option, Result, Struct, Tuple, Vector, _void, u64 } from 'scale-ts';
|
|
3
3
|
import { GenericErr, GenericError } from '../commonCodecs.js';
|
|
4
4
|
import { ProductAccountId } from './accounts.js';
|
|
5
5
|
// structs definition
|
|
@@ -33,7 +33,7 @@ const StatementProof = Enum({
|
|
|
33
33
|
export const Statement = Struct({
|
|
34
34
|
proof: Option(StatementProof),
|
|
35
35
|
decryptionKey: Option(DecryptionKey),
|
|
36
|
-
|
|
36
|
+
expiry: Option(u64),
|
|
37
37
|
channel: Option(Channel),
|
|
38
38
|
topics: Vector(Topic),
|
|
39
39
|
data: Option(Bytes()),
|
|
@@ -41,7 +41,7 @@ export const Statement = Struct({
|
|
|
41
41
|
export const SignedStatement = Struct({
|
|
42
42
|
proof: StatementProof,
|
|
43
43
|
decryptionKey: Option(DecryptionKey),
|
|
44
|
-
|
|
44
|
+
expiry: Option(u64),
|
|
45
45
|
channel: Option(Channel),
|
|
46
46
|
topics: Vector(Topic),
|
|
47
47
|
data: Option(Bytes()),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novasamatech/host-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.6-0",
|
|
5
5
|
"description": "Host API: transport implementation for host - product integration.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"README.md"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@novasamatech/scale": "0.6.
|
|
24
|
+
"@novasamatech/scale": "0.6.6-0",
|
|
25
25
|
"@polkadot-api/utils": "^0.2.0",
|
|
26
26
|
"nanoevents": "9.1.0",
|
|
27
27
|
"nanoid": "5.1.6",
|