@novasamatech/host-api 0.5.4-9 → 0.5.5

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.
@@ -1,14 +1,5 @@
1
1
  import type { EnumCodec } from '@novasamatech/scale';
2
2
  import type { Codec } from 'scale-ts';
3
- import { AccountCreateProofV1_request, AccountCreateProofV1_response, AccountGetAliasV1_request, AccountGetAliasV1_response, AccountGetV1_request, AccountGetV1_response, GetNonProductAccountsV1_request, GetNonProductAccountsV1_response } from './v1/accounts.js';
4
- import { ChatActionSubscribeV1_receive, ChatActionSubscribeV1_start, ChatCreateRoomV1_request, ChatCreateRoomV1_response, ChatListSubscribeV1_receive, ChatListSubscribeV1_start, ChatPostMessageV1_request, ChatPostMessageV1_response } from './v1/chat.js';
5
- import { CreateTransactionV1_request, CreateTransactionV1_response, CreateTransactionWithNonProductAccountV1_request, CreateTransactionWithNonProductAccountV1_response } from './v1/createTransaction.js';
6
- import { FeatureV1_request, FeatureV1_response } from './v1/feature.js';
7
- import { HandshakeV1_request, HandshakeV1_response } from './v1/handshake.js';
8
- import { JsonRpcMessageSendV1_request, JsonRpcMessageSendV1_response, JsonRpcMessageSubscribeV1_receive, JsonRpcMessageSubscribeV1_start } from './v1/jsonRpc.js';
9
- import { SignPayloadV1_request, SignPayloadV1_response, SignRawV1_request, SignRawV1_response } from './v1/sign.js';
10
- import { StatementStoreCreateProofV1_request, StatementStoreCreateProofV1_response, StatementStoreQueryV1_request, StatementStoreQueryV1_response, StatementStoreSubmitV1_request, StatementStoreSubmitV1_response, StatementStoreSubscribeV1_receive, StatementStoreSubscribeV1_start } from './v1/statementStore.js';
11
- import { StorageClearV1_request, StorageClearV1_response, StorageReadV1_request, StorageReadV1_response, StorageWriteV1_request, StorageWriteV1_response } from './v1/storage.js';
12
3
  export type VersionedArguments = Record<string, [Codec<any>, Codec<any>]>;
13
4
  type InferVersionedArgument<EnumValues extends VersionedArguments, N extends number> = {
14
5
  [V in keyof EnumValues]: EnumValues[V][N];
@@ -23,79 +14,446 @@ export type VersionedProtocolSubscription<T extends VersionedArguments = Version
23
14
  start: EnumCodec<InferVersionedArgument<T, 0>>;
24
15
  receive: EnumCodec<InferVersionedArgument<T, 1>>;
25
16
  };
26
- export type HostApiProtocol = {
27
- handshake: VersionedProtocolRequest<{
28
- v1: [typeof HandshakeV1_request, typeof HandshakeV1_response];
17
+ export type HostApiProtocol = typeof hostApiProtocol;
18
+ export declare const hostApiProtocol: {
19
+ readonly host_handshake: VersionedProtocolRequest<{
20
+ readonly v1: [Codec<number>, Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
21
+ reason: string;
22
+ }, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>>];
29
23
  }>;
30
- feature: VersionedProtocolRequest<{
31
- v1: [typeof FeatureV1_request, typeof FeatureV1_response];
24
+ readonly host_feature_supported: VersionedProtocolRequest<{
25
+ readonly v1: [Codec<{
26
+ tag: "Chain";
27
+ value: `0x${string}`;
28
+ }>, Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
29
+ reason: string;
30
+ }, "GenericError">>>];
32
31
  }>;
33
- local_storage_read: VersionedProtocolRequest<{
34
- v1: [typeof StorageReadV1_request, typeof StorageReadV1_response];
32
+ readonly host_push_notification: VersionedProtocolRequest<{
33
+ readonly v1: [Codec<{
34
+ text: string;
35
+ deeplink: string | undefined;
36
+ }>, Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
37
+ reason: string;
38
+ }, "GenericError">>>];
35
39
  }>;
36
- local_storage_write: VersionedProtocolRequest<{
37
- v1: [typeof StorageWriteV1_request, typeof StorageWriteV1_response];
40
+ readonly host_navigate_to: VersionedProtocolRequest<{
41
+ readonly v1: [Codec<string>, Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
42
+ reason: string;
43
+ }, "NavigateToErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "NavigateToErr::PermissionDenied">>>];
38
44
  }>;
39
- local_storage_clear: VersionedProtocolRequest<{
40
- v1: [typeof StorageClearV1_request, typeof StorageClearV1_response];
45
+ readonly host_device_permission: VersionedProtocolRequest<{
46
+ readonly v1: [Codec<"Camera" | "Microphone" | "Bluetooth" | "Location">, Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
47
+ reason: string;
48
+ }, "GenericError">>>];
41
49
  }>;
42
- account_get: VersionedProtocolRequest<{
43
- v1: [typeof AccountGetV1_request, typeof AccountGetV1_response];
50
+ readonly remote_permission: VersionedProtocolRequest<{
51
+ readonly v1: [Codec<{
52
+ tag: "ExternalRequest";
53
+ value: string;
54
+ } | {
55
+ tag: "TransactionSubmit";
56
+ value: undefined;
57
+ }>, Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
58
+ reason: string;
59
+ }, "GenericError">>>];
44
60
  }>;
45
- account_get_alias: VersionedProtocolRequest<{
46
- v1: [typeof AccountGetAliasV1_request, typeof AccountGetAliasV1_response];
61
+ readonly host_local_storage_read: VersionedProtocolRequest<{
62
+ readonly v1: [Codec<string>, Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
63
+ reason: string;
64
+ }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>];
47
65
  }>;
48
- account_create_proof: VersionedProtocolRequest<{
49
- v1: [typeof AccountCreateProofV1_request, typeof AccountCreateProofV1_response];
66
+ readonly host_local_storage_write: VersionedProtocolRequest<{
67
+ readonly v1: [Codec<[string, Uint8Array<ArrayBufferLike>]>, Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
68
+ reason: string;
69
+ }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>];
50
70
  }>;
51
- get_non_product_accounts: VersionedProtocolRequest<{
52
- v1: [typeof GetNonProductAccountsV1_request, typeof GetNonProductAccountsV1_response];
71
+ readonly host_local_storage_clear: VersionedProtocolRequest<{
72
+ readonly v1: [Codec<string>, Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
73
+ reason: string;
74
+ }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>];
53
75
  }>;
54
- create_transaction: VersionedProtocolRequest<{
55
- v1: [typeof CreateTransactionV1_request, typeof CreateTransactionV1_response];
76
+ readonly host_account_get: VersionedProtocolRequest<{
77
+ readonly v1: [Codec<[string, number]>, Codec<import("scale-ts").ResultPayload<{
78
+ publicKey: Uint8Array<ArrayBufferLike>;
79
+ name: string | undefined;
80
+ }, import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
81
+ reason: string;
82
+ }, "RequestCredentialsErr::Unknown">>>];
56
83
  }>;
57
- create_transaction_with_non_product_account: VersionedProtocolRequest<{
58
- v1: [
59
- typeof CreateTransactionWithNonProductAccountV1_request,
60
- typeof CreateTransactionWithNonProductAccountV1_response
61
- ];
84
+ readonly host_account_get_alias: VersionedProtocolRequest<{
85
+ readonly v1: [Codec<[string, number]>, Codec<import("scale-ts").ResultPayload<{
86
+ context: Uint8Array<ArrayBufferLike>;
87
+ alias: Uint8Array<ArrayBufferLike>;
88
+ }, import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
89
+ reason: string;
90
+ }, "RequestCredentialsErr::Unknown">>>];
62
91
  }>;
63
- sign_raw: VersionedProtocolRequest<{
64
- v1: [typeof SignRawV1_request, typeof SignRawV1_response];
92
+ readonly host_account_create_proof: VersionedProtocolRequest<{
93
+ readonly v1: [Codec<[[string, number], {
94
+ genesisHash: `0x${string}`;
95
+ ringRootHash: `0x${string}`;
96
+ hints: {
97
+ palletInstance: number | undefined;
98
+ } | undefined;
99
+ }, Uint8Array<ArrayBufferLike>]>, Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::Rejected"> | import("@novasamatech/scale").CodecError<{
100
+ reason: string;
101
+ }, "CreateProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::RingNotFound">>>];
65
102
  }>;
66
- sign_payload: VersionedProtocolRequest<{
67
- v1: [typeof SignPayloadV1_request, typeof SignPayloadV1_response];
103
+ readonly host_get_non_product_accounts: VersionedProtocolRequest<{
104
+ readonly v1: [Codec<undefined>, Codec<import("scale-ts").ResultPayload<{
105
+ publicKey: Uint8Array<ArrayBufferLike>;
106
+ name: string | undefined;
107
+ }[], import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
108
+ reason: string;
109
+ }, "RequestCredentialsErr::Unknown">>>];
68
110
  }>;
69
- chat_create_room: VersionedProtocolRequest<{
70
- v1: [typeof ChatCreateRoomV1_request, typeof ChatCreateRoomV1_response];
111
+ readonly host_create_transaction: VersionedProtocolRequest<{
112
+ readonly v1: [Codec<[[string, number], import("./v1/createTransaction.js").TxPayloadV1Public]>, Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
113
+ reason: string;
114
+ }, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>];
71
115
  }>;
72
- chat_list_subscribe: VersionedProtocolSubscription<{
73
- v1: [typeof ChatListSubscribeV1_start, typeof ChatListSubscribeV1_receive];
116
+ readonly host_create_transaction_with_non_product_account: VersionedProtocolRequest<{
117
+ readonly v1: [Codec<import("./v1/createTransaction.js").TxPayloadV1Public>, Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
118
+ reason: string;
119
+ }, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>];
74
120
  }>;
75
- chat_post_message: VersionedProtocolRequest<{
76
- v1: [typeof ChatPostMessageV1_request, typeof ChatPostMessageV1_response];
121
+ readonly host_sign_raw: VersionedProtocolRequest<{
122
+ readonly v1: [Codec<{
123
+ address: string;
124
+ data: {
125
+ tag: "Bytes";
126
+ value: Uint8Array<ArrayBufferLike>;
127
+ } | {
128
+ tag: "Payload";
129
+ value: string;
130
+ };
131
+ }>, Codec<import("scale-ts").ResultPayload<{
132
+ signature: `0x${string}`;
133
+ signedTransaction: `0x${string}` | undefined;
134
+ }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
135
+ reason: string;
136
+ }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>];
77
137
  }>;
78
- chat_action_subscribe: VersionedProtocolSubscription<{
79
- v1: [typeof ChatActionSubscribeV1_start, typeof ChatActionSubscribeV1_receive];
138
+ readonly host_sign_payload: VersionedProtocolRequest<{
139
+ readonly v1: [Codec<{
140
+ address: string;
141
+ blockHash: `0x${string}`;
142
+ blockNumber: `0x${string}`;
143
+ era: `0x${string}`;
144
+ genesisHash: `0x${string}`;
145
+ method: `0x${string}`;
146
+ nonce: `0x${string}`;
147
+ specVersion: `0x${string}`;
148
+ tip: `0x${string}`;
149
+ transactionVersion: `0x${string}`;
150
+ signedExtensions: string[];
151
+ version: number;
152
+ assetId: `0x${string}` | undefined;
153
+ metadataHash: `0x${string}` | undefined;
154
+ mode: number | undefined;
155
+ withSignedTransaction: boolean | undefined;
156
+ }>, Codec<import("scale-ts").ResultPayload<{
157
+ signature: `0x${string}`;
158
+ signedTransaction: `0x${string}` | undefined;
159
+ }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
160
+ reason: string;
161
+ }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>];
80
162
  }>;
81
- statement_store_query: VersionedProtocolRequest<{
82
- v1: [typeof StatementStoreQueryV1_request, typeof StatementStoreQueryV1_response];
163
+ readonly host_chat_create_room: VersionedProtocolRequest<{
164
+ readonly v1: [Codec<{
165
+ roomId: string;
166
+ name: string;
167
+ icon: string;
168
+ }>, Codec<import("scale-ts").ResultPayload<{
169
+ status: "New" | "Exists";
170
+ }, import("@novasamatech/scale").CodecError<{
171
+ reason: string;
172
+ }, "ChatRoomRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatRoomRegistrationErr::PermissionDenied">>>];
83
173
  }>;
84
- statement_store_subscribe: VersionedProtocolSubscription<{
85
- v1: [typeof StatementStoreSubscribeV1_start, typeof StatementStoreSubscribeV1_receive];
174
+ readonly host_chat_register_bot: VersionedProtocolRequest<{
175
+ readonly v1: [Codec<{
176
+ botId: string;
177
+ name: string;
178
+ icon: string;
179
+ }>, Codec<import("scale-ts").ResultPayload<{
180
+ status: "New" | "Exists";
181
+ }, import("@novasamatech/scale").CodecError<{
182
+ reason: string;
183
+ }, "ChatBotRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatBotRegistrationErr::PermissionDenied">>>];
86
184
  }>;
87
- statement_store_create_proof: VersionedProtocolRequest<{
88
- v1: [typeof StatementStoreCreateProofV1_request, typeof StatementStoreCreateProofV1_response];
185
+ readonly host_chat_list_subscribe: VersionedProtocolSubscription<{
186
+ readonly v1: [Codec<undefined>, Codec<{
187
+ roomId: string;
188
+ participatingAs: "RoomHost" | "Bot";
189
+ }[]>];
89
190
  }>;
90
- statement_store_submit: VersionedProtocolRequest<{
91
- v1: [typeof StatementStoreSubmitV1_request, typeof StatementStoreSubmitV1_response];
191
+ readonly host_chat_post_message: VersionedProtocolRequest<{
192
+ readonly v1: [Codec<{
193
+ roomId: string;
194
+ payload: {
195
+ tag: "Text";
196
+ value: string;
197
+ } | {
198
+ tag: "RichText";
199
+ value: {
200
+ text: string | undefined;
201
+ media: {
202
+ url: string;
203
+ }[];
204
+ };
205
+ } | {
206
+ tag: "Actions";
207
+ value: {
208
+ text: string | undefined;
209
+ actions: {
210
+ actionId: string;
211
+ title: string;
212
+ }[];
213
+ layout: "Column" | "Grid";
214
+ };
215
+ } | {
216
+ tag: "File";
217
+ value: {
218
+ url: string;
219
+ fileName: string;
220
+ mimeType: string;
221
+ sizeBytes: bigint;
222
+ text: string | undefined;
223
+ };
224
+ } | {
225
+ tag: "Reaction";
226
+ value: {
227
+ messageId: string;
228
+ emoji: string;
229
+ };
230
+ } | {
231
+ tag: "ReactionRemoved";
232
+ value: {
233
+ messageId: string;
234
+ emoji: string;
235
+ };
236
+ };
237
+ }>, Codec<import("scale-ts").ResultPayload<{
238
+ messageId: string;
239
+ }, import("@novasamatech/scale").CodecError<{
240
+ reason: string;
241
+ }, "ChatMessagePostingErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatMessagePostingErr::MessageTooLarge">>>];
92
242
  }>;
93
- jsonrpc_message_send: VersionedProtocolRequest<{
94
- v1: [typeof JsonRpcMessageSendV1_request, typeof JsonRpcMessageSendV1_response];
243
+ readonly host_chat_action_subscribe: VersionedProtocolSubscription<{
244
+ readonly v1: [Codec<undefined>, Codec<{
245
+ roomId: string;
246
+ peer: string;
247
+ payload: {
248
+ tag: "MessagePosted";
249
+ value: {
250
+ tag: "Text";
251
+ value: string;
252
+ } | {
253
+ tag: "RichText";
254
+ value: {
255
+ text: string | undefined;
256
+ media: {
257
+ url: string;
258
+ }[];
259
+ };
260
+ } | {
261
+ tag: "Actions";
262
+ value: {
263
+ text: string | undefined;
264
+ actions: {
265
+ actionId: string;
266
+ title: string;
267
+ }[];
268
+ layout: "Column" | "Grid";
269
+ };
270
+ } | {
271
+ tag: "File";
272
+ value: {
273
+ url: string;
274
+ fileName: string;
275
+ mimeType: string;
276
+ sizeBytes: bigint;
277
+ text: string | undefined;
278
+ };
279
+ } | {
280
+ tag: "Reaction";
281
+ value: {
282
+ messageId: string;
283
+ emoji: string;
284
+ };
285
+ } | {
286
+ tag: "ReactionRemoved";
287
+ value: {
288
+ messageId: string;
289
+ emoji: string;
290
+ };
291
+ };
292
+ } | {
293
+ tag: "ActionTriggered";
294
+ value: {
295
+ messageId: string;
296
+ actionId: string;
297
+ payload: Uint8Array<ArrayBufferLike> | undefined;
298
+ };
299
+ } | {
300
+ tag: "Command";
301
+ value: {
302
+ command: string;
303
+ payload: string;
304
+ };
305
+ };
306
+ }>];
95
307
  }>;
96
- jsonrpc_message_subscribe: VersionedProtocolSubscription<{
97
- v1: [typeof JsonRpcMessageSubscribeV1_start, typeof JsonRpcMessageSubscribeV1_receive];
308
+ readonly remote_statement_store_subscribe: VersionedProtocolSubscription<{
309
+ readonly v1: [Codec<Uint8Array<ArrayBufferLike>[]>, Codec<{
310
+ proof: {
311
+ tag: "Sr25519";
312
+ value: {
313
+ signature: Uint8Array<ArrayBufferLike>;
314
+ signer: Uint8Array<ArrayBufferLike>;
315
+ };
316
+ } | {
317
+ tag: "Ed25519";
318
+ value: {
319
+ signature: Uint8Array<ArrayBufferLike>;
320
+ signer: Uint8Array<ArrayBufferLike>;
321
+ };
322
+ } | {
323
+ tag: "Ecdsa";
324
+ value: {
325
+ signature: Uint8Array<ArrayBufferLike>;
326
+ signer: Uint8Array<ArrayBufferLike>;
327
+ };
328
+ } | {
329
+ tag: "OnChain";
330
+ value: {
331
+ who: Uint8Array<ArrayBufferLike>;
332
+ blockHash: Uint8Array<ArrayBufferLike>;
333
+ event: bigint;
334
+ };
335
+ };
336
+ decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
337
+ priority: number | undefined;
338
+ channel: Uint8Array<ArrayBufferLike> | undefined;
339
+ topics: Uint8Array<ArrayBufferLike>[];
340
+ data: Uint8Array<ArrayBufferLike> | undefined;
341
+ }[]>];
342
+ }>;
343
+ readonly remote_statement_store_create_proof: VersionedProtocolRequest<{
344
+ readonly v1: [Codec<[[string, number], {
345
+ proof: {
346
+ tag: "Sr25519";
347
+ value: {
348
+ signature: Uint8Array<ArrayBufferLike>;
349
+ signer: Uint8Array<ArrayBufferLike>;
350
+ };
351
+ } | {
352
+ tag: "Ed25519";
353
+ value: {
354
+ signature: Uint8Array<ArrayBufferLike>;
355
+ signer: Uint8Array<ArrayBufferLike>;
356
+ };
357
+ } | {
358
+ tag: "Ecdsa";
359
+ value: {
360
+ signature: Uint8Array<ArrayBufferLike>;
361
+ signer: Uint8Array<ArrayBufferLike>;
362
+ };
363
+ } | {
364
+ tag: "OnChain";
365
+ value: {
366
+ who: Uint8Array<ArrayBufferLike>;
367
+ blockHash: Uint8Array<ArrayBufferLike>;
368
+ event: bigint;
369
+ };
370
+ } | undefined;
371
+ decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
372
+ priority: number | undefined;
373
+ channel: Uint8Array<ArrayBufferLike> | undefined;
374
+ topics: Uint8Array<ArrayBufferLike>[];
375
+ data: Uint8Array<ArrayBufferLike> | undefined;
376
+ }]>, Codec<import("scale-ts").ResultPayload<{
377
+ tag: "Sr25519";
378
+ value: {
379
+ signature: Uint8Array<ArrayBufferLike>;
380
+ signer: Uint8Array<ArrayBufferLike>;
381
+ };
382
+ } | {
383
+ tag: "Ed25519";
384
+ value: {
385
+ signature: Uint8Array<ArrayBufferLike>;
386
+ signer: Uint8Array<ArrayBufferLike>;
387
+ };
388
+ } | {
389
+ tag: "Ecdsa";
390
+ value: {
391
+ signature: Uint8Array<ArrayBufferLike>;
392
+ signer: Uint8Array<ArrayBufferLike>;
393
+ };
394
+ } | {
395
+ tag: "OnChain";
396
+ value: {
397
+ who: Uint8Array<ArrayBufferLike>;
398
+ blockHash: Uint8Array<ArrayBufferLike>;
399
+ event: bigint;
400
+ };
401
+ }, import("@novasamatech/scale").CodecError<{
402
+ reason: string;
403
+ }, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">>>];
404
+ }>;
405
+ readonly remote_statement_store_submit: VersionedProtocolRequest<{
406
+ readonly v1: [Codec<{
407
+ proof: {
408
+ tag: "Sr25519";
409
+ value: {
410
+ signature: Uint8Array<ArrayBufferLike>;
411
+ signer: Uint8Array<ArrayBufferLike>;
412
+ };
413
+ } | {
414
+ tag: "Ed25519";
415
+ value: {
416
+ signature: Uint8Array<ArrayBufferLike>;
417
+ signer: Uint8Array<ArrayBufferLike>;
418
+ };
419
+ } | {
420
+ tag: "Ecdsa";
421
+ value: {
422
+ signature: Uint8Array<ArrayBufferLike>;
423
+ signer: Uint8Array<ArrayBufferLike>;
424
+ };
425
+ } | {
426
+ tag: "OnChain";
427
+ value: {
428
+ who: Uint8Array<ArrayBufferLike>;
429
+ blockHash: Uint8Array<ArrayBufferLike>;
430
+ event: bigint;
431
+ };
432
+ };
433
+ decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
434
+ priority: number | undefined;
435
+ channel: Uint8Array<ArrayBufferLike> | undefined;
436
+ topics: Uint8Array<ArrayBufferLike>[];
437
+ data: Uint8Array<ArrayBufferLike> | undefined;
438
+ }>, Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
439
+ reason: string;
440
+ }, "GenericError">>>];
441
+ }>;
442
+ readonly remote_preimage_lookup_subscribe: VersionedProtocolSubscription<{
443
+ readonly v1: [Codec<`0x${string}`>, Codec<Uint8Array<ArrayBufferLike> | null>];
444
+ }>;
445
+ readonly remote_preimage_submit: VersionedProtocolRequest<{
446
+ readonly v1: [Codec<Uint8Array<ArrayBufferLike>>, Codec<import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
447
+ reason: string;
448
+ }, "PreimageSubmitErr::Unknown">>>];
449
+ }>;
450
+ readonly host_jsonrpc_message_send: VersionedProtocolRequest<{
451
+ readonly v1: [Codec<[`0x${string}`, string]>, Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
452
+ reason: string;
453
+ }, "GenericError">>>];
454
+ }>;
455
+ readonly host_jsonrpc_message_subscribe: VersionedProtocolSubscription<{
456
+ readonly v1: [Codec<`0x${string}`>, Codec<string>];
98
457
  }>;
99
458
  };
100
- export declare const hostApiProtocol: HostApiProtocol;
101
459
  export {};