@novasamatech/host-api 0.5.4 → 0.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.
@@ -9,58 +9,95 @@ type HostApiPayloadFields = UnionToIntersection<{
9
9
  [Method in keyof HostApiProtocol]: InferHostApiMethod<Method, HostApiProtocol[Method]>;
10
10
  }[keyof HostApiProtocol]>;
11
11
  export type MessagePayloadSchema = CodecType<EnumCodec<HostApiPayloadFields>>;
12
- export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumCodec<{
12
+ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request", EnumCodec<{
13
13
  readonly v1: Codec<number>;
14
- }>> & Record<"handshake_response", EnumCodec<{
14
+ }>> & Record<"host_handshake_response", EnumCodec<{
15
15
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
16
16
  reason: string;
17
17
  }, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>>;
18
- }>> & Record<"feature_request", EnumCodec<{
18
+ }>> & Record<"host_feature_supported_request", EnumCodec<{
19
19
  readonly v1: Codec<{
20
20
  tag: "Chain";
21
21
  value: `0x${string}`;
22
22
  }>;
23
- }>> & Record<"feature_response", EnumCodec<{
23
+ }>> & Record<"host_feature_supported_response", EnumCodec<{
24
24
  readonly v1: Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
25
25
  reason: string;
26
26
  }, "GenericError">>>;
27
- }>> & Record<"local_storage_read_request", EnumCodec<{
27
+ }>> & Record<"host_push_notification_request", EnumCodec<{
28
+ readonly v1: Codec<{
29
+ text: string;
30
+ deeplink: string | undefined;
31
+ }>;
32
+ }>> & Record<"host_push_notification_response", EnumCodec<{
33
+ readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
34
+ reason: string;
35
+ }, "GenericError">>>;
36
+ }>> & Record<"host_navigate_to_request", EnumCodec<{
28
37
  readonly v1: Codec<string>;
29
- }>> & Record<"local_storage_read_response", EnumCodec<{
38
+ }>> & Record<"host_navigate_to_response", EnumCodec<{
39
+ readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
40
+ reason: string;
41
+ }, "NavigateToErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "NavigateToErr::PermissionDenied">>>;
42
+ }>> & Record<"host_device_permission_request", EnumCodec<{
43
+ readonly v1: Codec<"Camera" | "Microphone" | "Bluetooth" | "Location">;
44
+ }>> & Record<"host_device_permission_response", EnumCodec<{
45
+ readonly v1: Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
46
+ reason: string;
47
+ }, "GenericError">>>;
48
+ }>> & Record<"remote_permission_request", EnumCodec<{
49
+ readonly v1: Codec<{
50
+ tag: "ExternalRequest";
51
+ value: string;
52
+ } | {
53
+ tag: "TransactionSubmit";
54
+ value: undefined;
55
+ }>;
56
+ }>> & Record<"remote_permission_response", EnumCodec<{
57
+ readonly v1: Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
58
+ reason: string;
59
+ }, "GenericError">>>;
60
+ }>> & Record<"host_local_storage_read_request", EnumCodec<{
61
+ readonly v1: Codec<string>;
62
+ }>> & Record<"host_local_storage_read_response", EnumCodec<{
30
63
  readonly v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
31
64
  reason: string;
32
65
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
33
- }>> & Record<"local_storage_write_request", EnumCodec<{
66
+ }>> & Record<"host_local_storage_write_request", EnumCodec<{
34
67
  readonly v1: Codec<[string, Uint8Array<ArrayBufferLike>]>;
35
- }>> & Record<"local_storage_write_response", EnumCodec<{
68
+ }>> & Record<"host_local_storage_write_response", EnumCodec<{
36
69
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
37
70
  reason: string;
38
71
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
39
- }>> & Record<"local_storage_clear_request", EnumCodec<{
72
+ }>> & Record<"host_local_storage_clear_request", EnumCodec<{
40
73
  readonly v1: Codec<string>;
41
- }>> & Record<"local_storage_clear_response", EnumCodec<{
74
+ }>> & Record<"host_local_storage_clear_response", EnumCodec<{
42
75
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
43
76
  reason: string;
44
77
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
45
- }>> & Record<"account_get_request", EnumCodec<{
78
+ }>> & Record<"host_account_connection_status_subscribe_start", EnumCodec<{
79
+ readonly v1: Codec<undefined>;
80
+ }>> & Record<"host_account_connection_status_subscribe_receive", EnumCodec<{
81
+ readonly v1: Codec<"disconnected" | "connected">;
82
+ }>> & Record<"host_account_connection_status_subscribe_interrupt", Codec<undefined>> & Record<"host_account_connection_status_subscribe_stop", Codec<undefined>> & Record<"host_account_get_request", EnumCodec<{
46
83
  readonly v1: Codec<[string, number]>;
47
- }>> & Record<"account_get_response", EnumCodec<{
84
+ }>> & Record<"host_account_get_response", EnumCodec<{
48
85
  readonly v1: Codec<import("scale-ts").ResultPayload<{
49
86
  publicKey: Uint8Array<ArrayBufferLike>;
50
87
  name: string | undefined;
51
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<{
52
89
  reason: string;
53
90
  }, "RequestCredentialsErr::Unknown">>>;
54
- }>> & Record<"account_get_alias_request", EnumCodec<{
91
+ }>> & Record<"host_account_get_alias_request", EnumCodec<{
55
92
  readonly v1: Codec<[string, number]>;
56
- }>> & Record<"account_get_alias_response", EnumCodec<{
93
+ }>> & Record<"host_account_get_alias_response", EnumCodec<{
57
94
  readonly v1: Codec<import("scale-ts").ResultPayload<{
58
95
  context: Uint8Array<ArrayBufferLike>;
59
96
  alias: Uint8Array<ArrayBufferLike>;
60
97
  }, 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<{
61
98
  reason: string;
62
99
  }, "RequestCredentialsErr::Unknown">>>;
63
- }>> & Record<"account_create_proof_request", EnumCodec<{
100
+ }>> & Record<"host_account_create_proof_request", EnumCodec<{
64
101
  readonly v1: Codec<[[string, number], {
65
102
  genesisHash: `0x${string}`;
66
103
  ringRootHash: `0x${string}`;
@@ -68,32 +105,32 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
68
105
  palletInstance: number | undefined;
69
106
  } | undefined;
70
107
  }, Uint8Array<ArrayBufferLike>]>;
71
- }>> & Record<"account_create_proof_response", EnumCodec<{
108
+ }>> & Record<"host_account_create_proof_response", EnumCodec<{
72
109
  readonly v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::Rejected"> | import("@novasamatech/scale").CodecError<{
73
110
  reason: string;
74
111
  }, "CreateProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::RingNotFound">>>;
75
- }>> & Record<"get_non_product_accounts_request", EnumCodec<{
112
+ }>> & Record<"host_get_non_product_accounts_request", EnumCodec<{
76
113
  readonly v1: Codec<undefined>;
77
- }>> & Record<"get_non_product_accounts_response", EnumCodec<{
114
+ }>> & Record<"host_get_non_product_accounts_response", EnumCodec<{
78
115
  readonly v1: Codec<import("scale-ts").ResultPayload<{
79
116
  publicKey: Uint8Array<ArrayBufferLike>;
80
117
  name: string | undefined;
81
118
  }[], 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<{
82
119
  reason: string;
83
120
  }, "RequestCredentialsErr::Unknown">>>;
84
- }>> & Record<"create_transaction_request", EnumCodec<{
121
+ }>> & Record<"host_create_transaction_request", EnumCodec<{
85
122
  readonly v1: Codec<[[string, number], import("./v1/createTransaction.js").TxPayloadV1Public]>;
86
- }>> & Record<"create_transaction_response", EnumCodec<{
123
+ }>> & Record<"host_create_transaction_response", EnumCodec<{
87
124
  readonly v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
88
125
  reason: string;
89
126
  }, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
90
- }>> & Record<"create_transaction_with_non_product_account_request", EnumCodec<{
127
+ }>> & Record<"host_create_transaction_with_non_product_account_request", EnumCodec<{
91
128
  readonly v1: Codec<import("./v1/createTransaction.js").TxPayloadV1Public>;
92
- }>> & Record<"create_transaction_with_non_product_account_response", EnumCodec<{
129
+ }>> & Record<"host_create_transaction_with_non_product_account_response", EnumCodec<{
93
130
  readonly v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
94
131
  reason: string;
95
132
  }, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
96
- }>> & Record<"sign_raw_request", EnumCodec<{
133
+ }>> & Record<"host_sign_raw_request", EnumCodec<{
97
134
  readonly v1: Codec<{
98
135
  address: string;
99
136
  data: {
@@ -104,14 +141,14 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
104
141
  value: string;
105
142
  };
106
143
  }>;
107
- }>> & Record<"sign_raw_response", EnumCodec<{
144
+ }>> & Record<"host_sign_raw_response", EnumCodec<{
108
145
  readonly v1: Codec<import("scale-ts").ResultPayload<{
109
146
  signature: `0x${string}`;
110
147
  signedTransaction: `0x${string}` | undefined;
111
148
  }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
112
149
  reason: string;
113
150
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
114
- }>> & Record<"sign_payload_request", EnumCodec<{
151
+ }>> & Record<"host_sign_payload_request", EnumCodec<{
115
152
  readonly v1: Codec<{
116
153
  address: string;
117
154
  blockHash: `0x${string}`;
@@ -130,45 +167,45 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
130
167
  mode: number | undefined;
131
168
  withSignedTransaction: boolean | undefined;
132
169
  }>;
133
- }>> & Record<"sign_payload_response", EnumCodec<{
170
+ }>> & Record<"host_sign_payload_response", EnumCodec<{
134
171
  readonly v1: Codec<import("scale-ts").ResultPayload<{
135
172
  signature: `0x${string}`;
136
173
  signedTransaction: `0x${string}` | undefined;
137
174
  }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
138
175
  reason: string;
139
176
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
140
- }>> & Record<"chat_create_room_request", EnumCodec<{
177
+ }>> & Record<"host_chat_create_room_request", EnumCodec<{
141
178
  readonly v1: Codec<{
142
179
  roomId: string;
143
180
  name: string;
144
181
  icon: string;
145
182
  }>;
146
- }>> & Record<"chat_create_room_response", EnumCodec<{
183
+ }>> & Record<"host_chat_create_room_response", EnumCodec<{
147
184
  readonly v1: Codec<import("scale-ts").ResultPayload<{
148
185
  status: "New" | "Exists";
149
186
  }, import("@novasamatech/scale").CodecError<{
150
187
  reason: string;
151
188
  }, "ChatRoomRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatRoomRegistrationErr::PermissionDenied">>>;
152
- }>> & Record<"chat_register_bot_request", EnumCodec<{
189
+ }>> & Record<"host_chat_register_bot_request", EnumCodec<{
153
190
  readonly v1: Codec<{
154
191
  botId: string;
155
192
  name: string;
156
193
  icon: string;
157
194
  }>;
158
- }>> & Record<"chat_register_bot_response", EnumCodec<{
195
+ }>> & Record<"host_chat_register_bot_response", EnumCodec<{
159
196
  readonly v1: Codec<import("scale-ts").ResultPayload<{
160
197
  status: "New" | "Exists";
161
198
  }, import("@novasamatech/scale").CodecError<{
162
199
  reason: string;
163
200
  }, "ChatBotRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatBotRegistrationErr::PermissionDenied">>>;
164
- }>> & Record<"chat_list_subscribe_start", EnumCodec<{
201
+ }>> & Record<"host_chat_list_subscribe_start", EnumCodec<{
165
202
  readonly v1: Codec<undefined>;
166
- }>> & Record<"chat_list_subscribe_receive", EnumCodec<{
203
+ }>> & Record<"host_chat_list_subscribe_receive", EnumCodec<{
167
204
  readonly v1: Codec<{
168
205
  roomId: string;
169
206
  participatingAs: "RoomHost" | "Bot";
170
207
  }[]>;
171
- }>> & Record<"chat_list_subscribe_interrupt", Codec<undefined>> & Record<"chat_list_subscribe_stop", Codec<undefined>> & Record<"chat_post_message_request", EnumCodec<{
208
+ }>> & Record<"host_chat_list_subscribe_interrupt", Codec<undefined>> & Record<"host_chat_list_subscribe_stop", Codec<undefined>> & Record<"host_chat_post_message_request", EnumCodec<{
172
209
  readonly v1: Codec<{
173
210
  roomId: string;
174
211
  payload: {
@@ -213,17 +250,23 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
213
250
  messageId: string;
214
251
  emoji: string;
215
252
  };
253
+ } | {
254
+ tag: "Custom";
255
+ value: {
256
+ messageType: string;
257
+ payload: Uint8Array<ArrayBufferLike>;
258
+ };
216
259
  };
217
260
  }>;
218
- }>> & Record<"chat_post_message_response", EnumCodec<{
261
+ }>> & Record<"host_chat_post_message_response", EnumCodec<{
219
262
  readonly v1: Codec<import("scale-ts").ResultPayload<{
220
263
  messageId: string;
221
264
  }, import("@novasamatech/scale").CodecError<{
222
265
  reason: string;
223
266
  }, "ChatMessagePostingErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatMessagePostingErr::MessageTooLarge">>>;
224
- }>> & Record<"chat_action_subscribe_start", EnumCodec<{
267
+ }>> & Record<"host_chat_action_subscribe_start", EnumCodec<{
225
268
  readonly v1: Codec<undefined>;
226
- }>> & Record<"chat_action_subscribe_receive", EnumCodec<{
269
+ }>> & Record<"host_chat_action_subscribe_receive", EnumCodec<{
227
270
  readonly v1: Codec<{
228
271
  roomId: string;
229
272
  peer: string;
@@ -271,6 +314,12 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
271
314
  messageId: string;
272
315
  emoji: string;
273
316
  };
317
+ } | {
318
+ tag: "Custom";
319
+ value: {
320
+ messageType: string;
321
+ payload: Uint8Array<ArrayBufferLike>;
322
+ };
274
323
  };
275
324
  } | {
276
325
  tag: "ActionTriggered";
@@ -287,47 +336,16 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
287
336
  };
288
337
  };
289
338
  }>;
290
- }>> & Record<"chat_action_subscribe_interrupt", Codec<undefined>> & Record<"chat_action_subscribe_stop", Codec<undefined>> & Record<"statement_store_query_request", EnumCodec<{
291
- readonly v1: Codec<Uint8Array<ArrayBufferLike>[]>;
292
- }>> & Record<"statement_store_query_response", EnumCodec<{
293
- readonly v1: Codec<import("scale-ts").ResultPayload<{
294
- proof: {
295
- tag: "Sr25519";
296
- value: {
297
- signature: Uint8Array<ArrayBufferLike>;
298
- signer: Uint8Array<ArrayBufferLike>;
299
- };
300
- } | {
301
- tag: "Ed25519";
302
- value: {
303
- signature: Uint8Array<ArrayBufferLike>;
304
- signer: Uint8Array<ArrayBufferLike>;
305
- };
306
- } | {
307
- tag: "Ecdsa";
308
- value: {
309
- signature: Uint8Array<ArrayBufferLike>;
310
- signer: Uint8Array<ArrayBufferLike>;
311
- };
312
- } | {
313
- tag: "OnChain";
314
- value: {
315
- who: Uint8Array<ArrayBufferLike>;
316
- blockHash: Uint8Array<ArrayBufferLike>;
317
- event: bigint;
318
- };
319
- };
320
- decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
321
- priority: number | undefined;
322
- channel: Uint8Array<ArrayBufferLike> | undefined;
323
- topics: Uint8Array<ArrayBufferLike>[];
324
- data: Uint8Array<ArrayBufferLike> | undefined;
325
- }[], import("@novasamatech/scale").CodecError<{
326
- reason: string;
327
- }, "GenericError">>>;
328
- }>> & Record<"statement_store_subscribe_start", EnumCodec<{
339
+ }>> & Record<"host_chat_action_subscribe_interrupt", Codec<undefined>> & Record<"host_chat_action_subscribe_stop", Codec<undefined>> & Record<"product_chat_custom_message_render_subscribe_start", EnumCodec<{
340
+ readonly v1: Codec<{
341
+ messageType: string;
342
+ payload: Uint8Array<ArrayBufferLike>;
343
+ }>;
344
+ }>> & Record<"product_chat_custom_message_render_subscribe_receive", EnumCodec<{
345
+ readonly v1: Codec<import("./v1/customRenderer.js").CustomRendererNodeType>;
346
+ }>> & Record<"product_chat_custom_message_render_subscribe_interrupt", Codec<undefined>> & Record<"product_chat_custom_message_render_subscribe_stop", Codec<undefined>> & Record<"remote_statement_store_subscribe_start", EnumCodec<{
329
347
  readonly v1: Codec<Uint8Array<ArrayBufferLike>[]>;
330
- }>> & Record<"statement_store_subscribe_receive", EnumCodec<{
348
+ }>> & Record<"remote_statement_store_subscribe_receive", EnumCodec<{
331
349
  readonly v1: Codec<{
332
350
  proof: {
333
351
  tag: "Sr25519";
@@ -361,7 +379,7 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
361
379
  topics: Uint8Array<ArrayBufferLike>[];
362
380
  data: Uint8Array<ArrayBufferLike> | undefined;
363
381
  }[]>;
364
- }>> & Record<"statement_store_subscribe_interrupt", Codec<undefined>> & Record<"statement_store_subscribe_stop", Codec<undefined>> & Record<"statement_store_create_proof_request", EnumCodec<{
382
+ }>> & Record<"remote_statement_store_subscribe_interrupt", Codec<undefined>> & Record<"remote_statement_store_subscribe_stop", Codec<undefined>> & Record<"remote_statement_store_create_proof_request", EnumCodec<{
365
383
  readonly v1: Codec<[[string, number], {
366
384
  proof: {
367
385
  tag: "Sr25519";
@@ -395,7 +413,7 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
395
413
  topics: Uint8Array<ArrayBufferLike>[];
396
414
  data: Uint8Array<ArrayBufferLike> | undefined;
397
415
  }]>;
398
- }>> & Record<"statement_store_create_proof_response", EnumCodec<{
416
+ }>> & Record<"remote_statement_store_create_proof_response", EnumCodec<{
399
417
  readonly v1: Codec<import("scale-ts").ResultPayload<{
400
418
  tag: "Sr25519";
401
419
  value: {
@@ -424,7 +442,7 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
424
442
  }, import("@novasamatech/scale").CodecError<{
425
443
  reason: string;
426
444
  }, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">>>;
427
- }>> & Record<"statement_store_submit_request", EnumCodec<{
445
+ }>> & Record<"remote_statement_store_submit_request", EnumCodec<{
428
446
  readonly v1: Codec<{
429
447
  proof: {
430
448
  tag: "Sr25519";
@@ -458,31 +476,41 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
458
476
  topics: Uint8Array<ArrayBufferLike>[];
459
477
  data: Uint8Array<ArrayBufferLike> | undefined;
460
478
  }>;
461
- }>> & Record<"statement_store_submit_response", EnumCodec<{
479
+ }>> & Record<"remote_statement_store_submit_response", EnumCodec<{
462
480
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
463
481
  reason: string;
464
482
  }, "GenericError">>>;
465
- }>> & Record<"jsonrpc_message_send_request", EnumCodec<{
483
+ }>> & Record<"remote_preimage_lookup_subscribe_start", EnumCodec<{
484
+ readonly v1: Codec<`0x${string}`>;
485
+ }>> & Record<"remote_preimage_lookup_subscribe_receive", EnumCodec<{
486
+ readonly v1: Codec<Uint8Array<ArrayBufferLike> | null>;
487
+ }>> & Record<"remote_preimage_lookup_subscribe_interrupt", Codec<undefined>> & Record<"remote_preimage_lookup_subscribe_stop", Codec<undefined>> & Record<"remote_preimage_submit_request", EnumCodec<{
488
+ readonly v1: Codec<Uint8Array<ArrayBufferLike>>;
489
+ }>> & Record<"remote_preimage_submit_response", EnumCodec<{
490
+ readonly v1: Codec<import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
491
+ reason: string;
492
+ }, "PreimageSubmitErr::Unknown">>>;
493
+ }>> & Record<"host_jsonrpc_message_send_request", EnumCodec<{
466
494
  readonly v1: Codec<[`0x${string}`, string]>;
467
- }>> & Record<"jsonrpc_message_send_response", EnumCodec<{
495
+ }>> & Record<"host_jsonrpc_message_send_response", EnumCodec<{
468
496
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
469
497
  reason: string;
470
498
  }, "GenericError">>>;
471
- }>> & Record<"jsonrpc_message_subscribe_start", EnumCodec<{
499
+ }>> & Record<"host_jsonrpc_message_subscribe_start", EnumCodec<{
472
500
  readonly v1: Codec<`0x${string}`>;
473
- }>> & Record<"jsonrpc_message_subscribe_receive", EnumCodec<{
501
+ }>> & Record<"host_jsonrpc_message_subscribe_receive", EnumCodec<{
474
502
  readonly v1: Codec<string>;
475
- }>> & Record<"jsonrpc_message_subscribe_interrupt", Codec<undefined>> & Record<"jsonrpc_message_subscribe_stop", Codec<undefined>>>;
503
+ }>> & Record<"host_jsonrpc_message_subscribe_interrupt", Codec<undefined>> & Record<"host_jsonrpc_message_subscribe_stop", Codec<undefined>>>;
476
504
  export declare const Message: Codec<{
477
505
  requestId: string;
478
506
  payload: {
479
- tag: "handshake_request";
507
+ tag: "host_handshake_request";
480
508
  value: {
481
509
  tag: "v1";
482
510
  value: number;
483
511
  };
484
512
  } | {
485
- tag: "handshake_response";
513
+ tag: "host_handshake_response";
486
514
  value: {
487
515
  tag: "v1";
488
516
  value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
@@ -490,7 +518,7 @@ export declare const Message: Codec<{
490
518
  }, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>;
491
519
  };
492
520
  } | {
493
- tag: "feature_request";
521
+ tag: "host_feature_supported_request";
494
522
  value: {
495
523
  tag: "v1";
496
524
  value: {
@@ -499,7 +527,7 @@ export declare const Message: Codec<{
499
527
  };
500
528
  };
501
529
  } | {
502
- tag: "feature_response";
530
+ tag: "host_feature_supported_response";
503
531
  value: {
504
532
  tag: "v1";
505
533
  value: import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
@@ -507,13 +535,78 @@ export declare const Message: Codec<{
507
535
  }, "GenericError">>;
508
536
  };
509
537
  } | {
510
- tag: "local_storage_read_request";
538
+ tag: "host_push_notification_request";
539
+ value: {
540
+ tag: "v1";
541
+ value: {
542
+ text: string;
543
+ deeplink: string | undefined;
544
+ };
545
+ };
546
+ } | {
547
+ tag: "host_push_notification_response";
548
+ value: {
549
+ tag: "v1";
550
+ value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
551
+ reason: string;
552
+ }, "GenericError">>;
553
+ };
554
+ } | {
555
+ tag: "host_navigate_to_request";
511
556
  value: {
512
557
  tag: "v1";
513
558
  value: string;
514
559
  };
515
560
  } | {
516
- tag: "local_storage_read_response";
561
+ tag: "host_navigate_to_response";
562
+ value: {
563
+ tag: "v1";
564
+ value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
565
+ reason: string;
566
+ }, "NavigateToErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "NavigateToErr::PermissionDenied">>;
567
+ };
568
+ } | {
569
+ tag: "host_device_permission_request";
570
+ value: {
571
+ tag: "v1";
572
+ value: "Camera" | "Microphone" | "Bluetooth" | "Location";
573
+ };
574
+ } | {
575
+ tag: "host_device_permission_response";
576
+ value: {
577
+ tag: "v1";
578
+ value: import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
579
+ reason: string;
580
+ }, "GenericError">>;
581
+ };
582
+ } | {
583
+ tag: "remote_permission_request";
584
+ value: {
585
+ tag: "v1";
586
+ value: {
587
+ tag: "ExternalRequest";
588
+ value: string;
589
+ } | {
590
+ tag: "TransactionSubmit";
591
+ value: undefined;
592
+ };
593
+ };
594
+ } | {
595
+ tag: "remote_permission_response";
596
+ value: {
597
+ tag: "v1";
598
+ value: import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
599
+ reason: string;
600
+ }, "GenericError">>;
601
+ };
602
+ } | {
603
+ tag: "host_local_storage_read_request";
604
+ value: {
605
+ tag: "v1";
606
+ value: string;
607
+ };
608
+ } | {
609
+ tag: "host_local_storage_read_response";
517
610
  value: {
518
611
  tag: "v1";
519
612
  value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
@@ -521,13 +614,13 @@ export declare const Message: Codec<{
521
614
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
522
615
  };
523
616
  } | {
524
- tag: "local_storage_write_request";
617
+ tag: "host_local_storage_write_request";
525
618
  value: {
526
619
  tag: "v1";
527
620
  value: [string, Uint8Array<ArrayBufferLike>];
528
621
  };
529
622
  } | {
530
- tag: "local_storage_write_response";
623
+ tag: "host_local_storage_write_response";
531
624
  value: {
532
625
  tag: "v1";
533
626
  value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
@@ -535,13 +628,13 @@ export declare const Message: Codec<{
535
628
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
536
629
  };
537
630
  } | {
538
- tag: "local_storage_clear_request";
631
+ tag: "host_local_storage_clear_request";
539
632
  value: {
540
633
  tag: "v1";
541
634
  value: string;
542
635
  };
543
636
  } | {
544
- tag: "local_storage_clear_response";
637
+ tag: "host_local_storage_clear_response";
545
638
  value: {
546
639
  tag: "v1";
547
640
  value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
@@ -549,13 +642,31 @@ export declare const Message: Codec<{
549
642
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
550
643
  };
551
644
  } | {
552
- tag: "account_get_request";
645
+ tag: "host_account_connection_status_subscribe_start";
646
+ value: {
647
+ tag: "v1";
648
+ value: undefined;
649
+ };
650
+ } | {
651
+ tag: "host_account_connection_status_subscribe_receive";
652
+ value: {
653
+ tag: "v1";
654
+ value: "disconnected" | "connected";
655
+ };
656
+ } | {
657
+ tag: "host_account_connection_status_subscribe_interrupt";
658
+ value: undefined;
659
+ } | {
660
+ tag: "host_account_connection_status_subscribe_stop";
661
+ value: undefined;
662
+ } | {
663
+ tag: "host_account_get_request";
553
664
  value: {
554
665
  tag: "v1";
555
666
  value: [string, number];
556
667
  };
557
668
  } | {
558
- tag: "account_get_response";
669
+ tag: "host_account_get_response";
559
670
  value: {
560
671
  tag: "v1";
561
672
  value: import("scale-ts").ResultPayload<{
@@ -566,13 +677,13 @@ export declare const Message: Codec<{
566
677
  }, "RequestCredentialsErr::Unknown">>;
567
678
  };
568
679
  } | {
569
- tag: "account_get_alias_request";
680
+ tag: "host_account_get_alias_request";
570
681
  value: {
571
682
  tag: "v1";
572
683
  value: [string, number];
573
684
  };
574
685
  } | {
575
- tag: "account_get_alias_response";
686
+ tag: "host_account_get_alias_response";
576
687
  value: {
577
688
  tag: "v1";
578
689
  value: import("scale-ts").ResultPayload<{
@@ -583,7 +694,7 @@ export declare const Message: Codec<{
583
694
  }, "RequestCredentialsErr::Unknown">>;
584
695
  };
585
696
  } | {
586
- tag: "account_create_proof_request";
697
+ tag: "host_account_create_proof_request";
587
698
  value: {
588
699
  tag: "v1";
589
700
  value: [[string, number], {
@@ -595,7 +706,7 @@ export declare const Message: Codec<{
595
706
  }, Uint8Array<ArrayBufferLike>];
596
707
  };
597
708
  } | {
598
- tag: "account_create_proof_response";
709
+ tag: "host_account_create_proof_response";
599
710
  value: {
600
711
  tag: "v1";
601
712
  value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::Rejected"> | import("@novasamatech/scale").CodecError<{
@@ -603,13 +714,13 @@ export declare const Message: Codec<{
603
714
  }, "CreateProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::RingNotFound">>;
604
715
  };
605
716
  } | {
606
- tag: "get_non_product_accounts_request";
717
+ tag: "host_get_non_product_accounts_request";
607
718
  value: {
608
719
  tag: "v1";
609
720
  value: undefined;
610
721
  };
611
722
  } | {
612
- tag: "get_non_product_accounts_response";
723
+ tag: "host_get_non_product_accounts_response";
613
724
  value: {
614
725
  tag: "v1";
615
726
  value: import("scale-ts").ResultPayload<{
@@ -620,13 +731,13 @@ export declare const Message: Codec<{
620
731
  }, "RequestCredentialsErr::Unknown">>;
621
732
  };
622
733
  } | {
623
- tag: "create_transaction_request";
734
+ tag: "host_create_transaction_request";
624
735
  value: {
625
736
  tag: "v1";
626
737
  value: [[string, number], import("./v1/createTransaction.js").TxPayloadV1Public];
627
738
  };
628
739
  } | {
629
- tag: "create_transaction_response";
740
+ tag: "host_create_transaction_response";
630
741
  value: {
631
742
  tag: "v1";
632
743
  value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
@@ -634,13 +745,13 @@ export declare const Message: Codec<{
634
745
  }, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
635
746
  };
636
747
  } | {
637
- tag: "create_transaction_with_non_product_account_request";
748
+ tag: "host_create_transaction_with_non_product_account_request";
638
749
  value: {
639
750
  tag: "v1";
640
751
  value: import("./v1/createTransaction.js").TxPayloadV1Public;
641
752
  };
642
753
  } | {
643
- tag: "create_transaction_with_non_product_account_response";
754
+ tag: "host_create_transaction_with_non_product_account_response";
644
755
  value: {
645
756
  tag: "v1";
646
757
  value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
@@ -648,7 +759,7 @@ export declare const Message: Codec<{
648
759
  }, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
649
760
  };
650
761
  } | {
651
- tag: "sign_raw_request";
762
+ tag: "host_sign_raw_request";
652
763
  value: {
653
764
  tag: "v1";
654
765
  value: {
@@ -663,7 +774,7 @@ export declare const Message: Codec<{
663
774
  };
664
775
  };
665
776
  } | {
666
- tag: "sign_raw_response";
777
+ tag: "host_sign_raw_response";
667
778
  value: {
668
779
  tag: "v1";
669
780
  value: import("scale-ts").ResultPayload<{
@@ -674,7 +785,7 @@ export declare const Message: Codec<{
674
785
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
675
786
  };
676
787
  } | {
677
- tag: "sign_payload_request";
788
+ tag: "host_sign_payload_request";
678
789
  value: {
679
790
  tag: "v1";
680
791
  value: {
@@ -697,7 +808,7 @@ export declare const Message: Codec<{
697
808
  };
698
809
  };
699
810
  } | {
700
- tag: "sign_payload_response";
811
+ tag: "host_sign_payload_response";
701
812
  value: {
702
813
  tag: "v1";
703
814
  value: import("scale-ts").ResultPayload<{
@@ -708,7 +819,7 @@ export declare const Message: Codec<{
708
819
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
709
820
  };
710
821
  } | {
711
- tag: "chat_create_room_request";
822
+ tag: "host_chat_create_room_request";
712
823
  value: {
713
824
  tag: "v1";
714
825
  value: {
@@ -718,7 +829,7 @@ export declare const Message: Codec<{
718
829
  };
719
830
  };
720
831
  } | {
721
- tag: "chat_create_room_response";
832
+ tag: "host_chat_create_room_response";
722
833
  value: {
723
834
  tag: "v1";
724
835
  value: import("scale-ts").ResultPayload<{
@@ -728,7 +839,7 @@ export declare const Message: Codec<{
728
839
  }, "ChatRoomRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatRoomRegistrationErr::PermissionDenied">>;
729
840
  };
730
841
  } | {
731
- tag: "chat_register_bot_request";
842
+ tag: "host_chat_register_bot_request";
732
843
  value: {
733
844
  tag: "v1";
734
845
  value: {
@@ -738,7 +849,7 @@ export declare const Message: Codec<{
738
849
  };
739
850
  };
740
851
  } | {
741
- tag: "chat_register_bot_response";
852
+ tag: "host_chat_register_bot_response";
742
853
  value: {
743
854
  tag: "v1";
744
855
  value: import("scale-ts").ResultPayload<{
@@ -748,13 +859,13 @@ export declare const Message: Codec<{
748
859
  }, "ChatBotRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatBotRegistrationErr::PermissionDenied">>;
749
860
  };
750
861
  } | {
751
- tag: "chat_list_subscribe_start";
862
+ tag: "host_chat_list_subscribe_start";
752
863
  value: {
753
864
  tag: "v1";
754
865
  value: undefined;
755
866
  };
756
867
  } | {
757
- tag: "chat_list_subscribe_receive";
868
+ tag: "host_chat_list_subscribe_receive";
758
869
  value: {
759
870
  tag: "v1";
760
871
  value: {
@@ -763,13 +874,13 @@ export declare const Message: Codec<{
763
874
  }[];
764
875
  };
765
876
  } | {
766
- tag: "chat_list_subscribe_interrupt";
877
+ tag: "host_chat_list_subscribe_interrupt";
767
878
  value: undefined;
768
879
  } | {
769
- tag: "chat_list_subscribe_stop";
880
+ tag: "host_chat_list_subscribe_stop";
770
881
  value: undefined;
771
882
  } | {
772
- tag: "chat_post_message_request";
883
+ tag: "host_chat_post_message_request";
773
884
  value: {
774
885
  tag: "v1";
775
886
  value: {
@@ -816,11 +927,17 @@ export declare const Message: Codec<{
816
927
  messageId: string;
817
928
  emoji: string;
818
929
  };
930
+ } | {
931
+ tag: "Custom";
932
+ value: {
933
+ messageType: string;
934
+ payload: Uint8Array<ArrayBufferLike>;
935
+ };
819
936
  };
820
937
  };
821
938
  };
822
939
  } | {
823
- tag: "chat_post_message_response";
940
+ tag: "host_chat_post_message_response";
824
941
  value: {
825
942
  tag: "v1";
826
943
  value: import("scale-ts").ResultPayload<{
@@ -830,13 +947,13 @@ export declare const Message: Codec<{
830
947
  }, "ChatMessagePostingErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatMessagePostingErr::MessageTooLarge">>;
831
948
  };
832
949
  } | {
833
- tag: "chat_action_subscribe_start";
950
+ tag: "host_chat_action_subscribe_start";
834
951
  value: {
835
952
  tag: "v1";
836
953
  value: undefined;
837
954
  };
838
955
  } | {
839
- tag: "chat_action_subscribe_receive";
956
+ tag: "host_chat_action_subscribe_receive";
840
957
  value: {
841
958
  tag: "v1";
842
959
  value: {
@@ -886,6 +1003,12 @@ export declare const Message: Codec<{
886
1003
  messageId: string;
887
1004
  emoji: string;
888
1005
  };
1006
+ } | {
1007
+ tag: "Custom";
1008
+ value: {
1009
+ messageType: string;
1010
+ payload: Uint8Array<ArrayBufferLike>;
1011
+ };
889
1012
  };
890
1013
  } | {
891
1014
  tag: "ActionTriggered";
@@ -904,65 +1027,40 @@ export declare const Message: Codec<{
904
1027
  };
905
1028
  };
906
1029
  } | {
907
- tag: "chat_action_subscribe_interrupt";
1030
+ tag: "host_chat_action_subscribe_interrupt";
908
1031
  value: undefined;
909
1032
  } | {
910
- tag: "chat_action_subscribe_stop";
1033
+ tag: "host_chat_action_subscribe_stop";
911
1034
  value: undefined;
912
1035
  } | {
913
- tag: "statement_store_query_request";
1036
+ tag: "product_chat_custom_message_render_subscribe_start";
914
1037
  value: {
915
1038
  tag: "v1";
916
- value: Uint8Array<ArrayBufferLike>[];
1039
+ value: {
1040
+ messageType: string;
1041
+ payload: Uint8Array<ArrayBufferLike>;
1042
+ };
917
1043
  };
918
1044
  } | {
919
- tag: "statement_store_query_response";
1045
+ tag: "product_chat_custom_message_render_subscribe_receive";
920
1046
  value: {
921
1047
  tag: "v1";
922
- value: import("scale-ts").ResultPayload<{
923
- proof: {
924
- tag: "Sr25519";
925
- value: {
926
- signature: Uint8Array<ArrayBufferLike>;
927
- signer: Uint8Array<ArrayBufferLike>;
928
- };
929
- } | {
930
- tag: "Ed25519";
931
- value: {
932
- signature: Uint8Array<ArrayBufferLike>;
933
- signer: Uint8Array<ArrayBufferLike>;
934
- };
935
- } | {
936
- tag: "Ecdsa";
937
- value: {
938
- signature: Uint8Array<ArrayBufferLike>;
939
- signer: Uint8Array<ArrayBufferLike>;
940
- };
941
- } | {
942
- tag: "OnChain";
943
- value: {
944
- who: Uint8Array<ArrayBufferLike>;
945
- blockHash: Uint8Array<ArrayBufferLike>;
946
- event: bigint;
947
- };
948
- };
949
- decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
950
- priority: number | undefined;
951
- channel: Uint8Array<ArrayBufferLike> | undefined;
952
- topics: Uint8Array<ArrayBufferLike>[];
953
- data: Uint8Array<ArrayBufferLike> | undefined;
954
- }[], import("@novasamatech/scale").CodecError<{
955
- reason: string;
956
- }, "GenericError">>;
1048
+ value: import("./v1/customRenderer.js").CustomRendererNodeType;
957
1049
  };
958
1050
  } | {
959
- tag: "statement_store_subscribe_start";
1051
+ tag: "product_chat_custom_message_render_subscribe_interrupt";
1052
+ value: undefined;
1053
+ } | {
1054
+ tag: "product_chat_custom_message_render_subscribe_stop";
1055
+ value: undefined;
1056
+ } | {
1057
+ tag: "remote_statement_store_subscribe_start";
960
1058
  value: {
961
1059
  tag: "v1";
962
1060
  value: Uint8Array<ArrayBufferLike>[];
963
1061
  };
964
1062
  } | {
965
- tag: "statement_store_subscribe_receive";
1063
+ tag: "remote_statement_store_subscribe_receive";
966
1064
  value: {
967
1065
  tag: "v1";
968
1066
  value: {
@@ -1000,13 +1098,13 @@ export declare const Message: Codec<{
1000
1098
  }[];
1001
1099
  };
1002
1100
  } | {
1003
- tag: "statement_store_subscribe_interrupt";
1101
+ tag: "remote_statement_store_subscribe_interrupt";
1004
1102
  value: undefined;
1005
1103
  } | {
1006
- tag: "statement_store_subscribe_stop";
1104
+ tag: "remote_statement_store_subscribe_stop";
1007
1105
  value: undefined;
1008
1106
  } | {
1009
- tag: "statement_store_create_proof_request";
1107
+ tag: "remote_statement_store_create_proof_request";
1010
1108
  value: {
1011
1109
  tag: "v1";
1012
1110
  value: [[string, number], {
@@ -1044,7 +1142,7 @@ export declare const Message: Codec<{
1044
1142
  }];
1045
1143
  };
1046
1144
  } | {
1047
- tag: "statement_store_create_proof_response";
1145
+ tag: "remote_statement_store_create_proof_response";
1048
1146
  value: {
1049
1147
  tag: "v1";
1050
1148
  value: import("scale-ts").ResultPayload<{
@@ -1077,7 +1175,7 @@ export declare const Message: Codec<{
1077
1175
  }, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">>;
1078
1176
  };
1079
1177
  } | {
1080
- tag: "statement_store_submit_request";
1178
+ tag: "remote_statement_store_submit_request";
1081
1179
  value: {
1082
1180
  tag: "v1";
1083
1181
  value: {
@@ -1115,7 +1213,7 @@ export declare const Message: Codec<{
1115
1213
  };
1116
1214
  };
1117
1215
  } | {
1118
- tag: "statement_store_submit_response";
1216
+ tag: "remote_statement_store_submit_response";
1119
1217
  value: {
1120
1218
  tag: "v1";
1121
1219
  value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
@@ -1123,13 +1221,45 @@ export declare const Message: Codec<{
1123
1221
  }, "GenericError">>;
1124
1222
  };
1125
1223
  } | {
1126
- tag: "jsonrpc_message_send_request";
1224
+ tag: "remote_preimage_lookup_subscribe_start";
1225
+ value: {
1226
+ tag: "v1";
1227
+ value: `0x${string}`;
1228
+ };
1229
+ } | {
1230
+ tag: "remote_preimage_lookup_subscribe_receive";
1231
+ value: {
1232
+ tag: "v1";
1233
+ value: Uint8Array<ArrayBufferLike> | null;
1234
+ };
1235
+ } | {
1236
+ tag: "remote_preimage_lookup_subscribe_interrupt";
1237
+ value: undefined;
1238
+ } | {
1239
+ tag: "remote_preimage_lookup_subscribe_stop";
1240
+ value: undefined;
1241
+ } | {
1242
+ tag: "remote_preimage_submit_request";
1243
+ value: {
1244
+ tag: "v1";
1245
+ value: Uint8Array<ArrayBufferLike>;
1246
+ };
1247
+ } | {
1248
+ tag: "remote_preimage_submit_response";
1249
+ value: {
1250
+ tag: "v1";
1251
+ value: import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
1252
+ reason: string;
1253
+ }, "PreimageSubmitErr::Unknown">>;
1254
+ };
1255
+ } | {
1256
+ tag: "host_jsonrpc_message_send_request";
1127
1257
  value: {
1128
1258
  tag: "v1";
1129
1259
  value: [`0x${string}`, string];
1130
1260
  };
1131
1261
  } | {
1132
- tag: "jsonrpc_message_send_response";
1262
+ tag: "host_jsonrpc_message_send_response";
1133
1263
  value: {
1134
1264
  tag: "v1";
1135
1265
  value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
@@ -1137,22 +1267,22 @@ export declare const Message: Codec<{
1137
1267
  }, "GenericError">>;
1138
1268
  };
1139
1269
  } | {
1140
- tag: "jsonrpc_message_subscribe_start";
1270
+ tag: "host_jsonrpc_message_subscribe_start";
1141
1271
  value: {
1142
1272
  tag: "v1";
1143
1273
  value: `0x${string}`;
1144
1274
  };
1145
1275
  } | {
1146
- tag: "jsonrpc_message_subscribe_receive";
1276
+ tag: "host_jsonrpc_message_subscribe_receive";
1147
1277
  value: {
1148
1278
  tag: "v1";
1149
1279
  value: string;
1150
1280
  };
1151
1281
  } | {
1152
- tag: "jsonrpc_message_subscribe_interrupt";
1282
+ tag: "host_jsonrpc_message_subscribe_interrupt";
1153
1283
  value: undefined;
1154
1284
  } | {
1155
- tag: "jsonrpc_message_subscribe_stop";
1285
+ tag: "host_jsonrpc_message_subscribe_stop";
1156
1286
  value: undefined;
1157
1287
  };
1158
1288
  }>;