@novasamatech/host-api 0.7.1-1 → 0.7.2-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.
@@ -3,7 +3,7 @@ import type { Codec, CodecType } from 'scale-ts';
3
3
  import type { HostApiProtocol, VersionedProtocolRequest, VersionedProtocolSubscription } from './impl.js';
4
4
  type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
5
5
  type InferRequest<Method extends string, R extends VersionedProtocolRequest<any>> = Record<`${Method}_request`, R['request']> & Record<`${Method}_response`, R['response']>;
6
- type InferSubscription<Method extends string, R extends VersionedProtocolSubscription<any>> = Record<`${Method}_start`, R['start']> & Record<`${Method}_receive`, R['receive']> & Record<`${Method}_interrupt`, Codec<undefined>> & Record<`${Method}_stop`, Codec<undefined>>;
6
+ type InferSubscription<Method extends string, R extends VersionedProtocolSubscription<any>> = Record<`${Method}_start`, R['start']> & Record<`${Method}_receive`, R['receive']> & Record<`${Method}_interrupt`, R['interrupt']> & Record<`${Method}_stop`, Codec<undefined>>;
7
7
  type InferHostApiMethod<Method extends string, Payload> = Payload extends VersionedProtocolRequest<any> ? InferRequest<Method, Payload> : Payload extends VersionedProtocolSubscription<any> ? InferSubscription<Method, Payload> : Codec<undefined>;
8
8
  type HostApiPayloadFields = UnionToIntersection<{
9
9
  [Method in keyof HostApiProtocol]: InferHostApiMethod<Method, HostApiProtocol[Method]>;
@@ -33,22 +33,12 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
33
33
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
34
34
  reason: string;
35
35
  }, "GenericError">>>;
36
- }>> & Record<"host_theme_subscribe_start", EnumCodec<{
37
- readonly v1: Codec<undefined>;
38
- }>> & Record<"host_theme_subscribe_receive", EnumCodec<{
39
- readonly v1: Codec<"light" | "dark">;
40
- }>> & Record<"host_theme_subscribe_interrupt", Codec<undefined>> & Record<"host_theme_subscribe_stop", Codec<undefined>> & Record<"host_navigate_to_request", EnumCodec<{
36
+ }>> & Record<"host_navigate_to_request", EnumCodec<{
41
37
  readonly v1: Codec<string>;
42
38
  }>> & Record<"host_navigate_to_response", EnumCodec<{
43
39
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
44
40
  reason: string;
45
41
  }, "NavigateToErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "NavigateToErr::PermissionDenied">>>;
46
- }>> & Record<"host_derive_entropy_request", EnumCodec<{
47
- readonly v1: Codec<Uint8Array<ArrayBufferLike>>;
48
- }>> & Record<"host_derive_entropy_response", EnumCodec<{
49
- readonly v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
50
- reason: string;
51
- }, "DeriveEntropyErr::Unknown">>>;
52
42
  }>> & Record<"host_device_permission_request", EnumCodec<{
53
43
  readonly v1: Codec<"Notifications" | "Camera" | "Microphone" | "Bluetooth" | "NFC" | "Location" | "Clipboard" | "OpenUrl" | "Biometrics">;
54
44
  }>> & Record<"host_device_permission_response", EnumCodec<{
@@ -56,7 +46,7 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
56
46
  reason: string;
57
47
  }, "GenericError">>>;
58
48
  }>> & Record<"remote_permission_request", EnumCodec<{
59
- readonly v1: Codec<({
49
+ readonly v1: Codec<{
60
50
  tag: "Remote";
61
51
  value: string[];
62
52
  } | {
@@ -71,7 +61,7 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
71
61
  } | {
72
62
  tag: "StatementSubmit";
73
63
  value: undefined;
74
- })[]>;
64
+ }>;
75
65
  }>> & Record<"remote_permission_response", EnumCodec<{
76
66
  readonly v1: Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
77
67
  reason: string;
@@ -94,26 +84,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
94
84
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
95
85
  reason: string;
96
86
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
97
- }>> & Record<"host_account_get_root_request", EnumCodec<{
98
- readonly v1: Codec<undefined>;
99
- }>> & Record<"host_account_get_root_response", EnumCodec<{
100
- readonly v1: Codec<import("scale-ts").ResultPayload<{
101
- publicKey: Uint8Array<ArrayBufferLike>;
102
- name: string | undefined;
103
- }, 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<{
104
- reason: string;
105
- }, "RequestCredentialsErr::Unknown">>>;
106
- }>> & Record<"host_request_login_request", EnumCodec<{
107
- readonly v1: Codec<string | undefined>;
108
- }>> & Record<"host_request_login_response", EnumCodec<{
109
- readonly v1: Codec<import("scale-ts").ResultPayload<"success" | "alreadyConnected" | "rejected", import("@novasamatech/scale").CodecError<{
110
- reason: string;
111
- }, "LoginErr::Unknown">>>;
112
87
  }>> & Record<"host_account_connection_status_subscribe_start", EnumCodec<{
113
88
  readonly v1: Codec<undefined>;
114
89
  }>> & Record<"host_account_connection_status_subscribe_receive", EnumCodec<{
115
90
  readonly v1: Codec<"disconnected" | "connected">;
116
- }>> & Record<"host_account_connection_status_subscribe_interrupt", Codec<undefined>> & Record<"host_account_connection_status_subscribe_stop", Codec<undefined>> & Record<"host_account_get_request", EnumCodec<{
91
+ }>> & Record<"host_account_connection_status_subscribe_interrupt", EnumCodec<{
92
+ readonly v1: Codec<undefined>;
93
+ }>> & Record<"host_account_connection_status_subscribe_stop", Codec<undefined>> & Record<"host_account_get_request", EnumCodec<{
117
94
  readonly v1: Codec<[string, number]>;
118
95
  }>> & Record<"host_account_get_response", EnumCodec<{
119
96
  readonly v1: Codec<import("scale-ts").ResultPayload<{
@@ -182,24 +159,6 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
182
159
  }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
183
160
  reason: string;
184
161
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
185
- }>> & Record<"host_sign_raw_with_legacy_account_request", EnumCodec<{
186
- readonly v1: Codec<{
187
- signer: string;
188
- payload: {
189
- tag: "Bytes";
190
- value: Uint8Array<ArrayBufferLike>;
191
- } | {
192
- tag: "Payload";
193
- value: string;
194
- };
195
- }>;
196
- }>> & Record<"host_sign_raw_with_legacy_account_response", EnumCodec<{
197
- readonly v1: Codec<import("scale-ts").ResultPayload<{
198
- signature: `0x${string}`;
199
- signedTransaction: `0x${string}` | undefined;
200
- }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
201
- reason: string;
202
- }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
203
162
  }>> & Record<"host_sign_payload_request", EnumCodec<{
204
163
  readonly v1: Codec<{
205
164
  account: [string, number];
@@ -228,34 +187,6 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
228
187
  }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
229
188
  reason: string;
230
189
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
231
- }>> & Record<"host_sign_payload_with_legacy_account_request", EnumCodec<{
232
- readonly v1: Codec<{
233
- signer: string;
234
- payload: {
235
- blockHash: `0x${string}`;
236
- blockNumber: `0x${string}`;
237
- era: `0x${string}`;
238
- genesisHash: `0x${string}`;
239
- method: `0x${string}`;
240
- nonce: `0x${string}`;
241
- specVersion: `0x${string}`;
242
- tip: `0x${string}`;
243
- transactionVersion: `0x${string}`;
244
- signedExtensions: string[];
245
- version: number;
246
- assetId: `0x${string}` | undefined;
247
- metadataHash: `0x${string}` | undefined;
248
- mode: number | undefined;
249
- withSignedTransaction: boolean | undefined;
250
- };
251
- }>;
252
- }>> & Record<"host_sign_payload_with_legacy_account_response", EnumCodec<{
253
- readonly v1: Codec<import("scale-ts").ResultPayload<{
254
- signature: `0x${string}`;
255
- signedTransaction: `0x${string}` | undefined;
256
- }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
257
- reason: string;
258
- }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
259
190
  }>> & Record<"host_chat_create_room_request", EnumCodec<{
260
191
  readonly v1: Codec<{
261
192
  roomId: string;
@@ -287,7 +218,9 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
287
218
  roomId: string;
288
219
  participatingAs: "RoomHost" | "Bot";
289
220
  }[]>;
290
- }>> & Record<"host_chat_list_subscribe_interrupt", Codec<undefined>> & Record<"host_chat_list_subscribe_stop", Codec<undefined>> & Record<"host_chat_post_message_request", EnumCodec<{
221
+ }>> & Record<"host_chat_list_subscribe_interrupt", EnumCodec<{
222
+ readonly v1: Codec<undefined>;
223
+ }>> & Record<"host_chat_list_subscribe_stop", Codec<undefined>> & Record<"host_chat_post_message_request", EnumCodec<{
291
224
  readonly v1: Codec<{
292
225
  roomId: string;
293
226
  payload: {
@@ -418,7 +351,9 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
418
351
  };
419
352
  };
420
353
  }>;
421
- }>> & 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<{
354
+ }>> & Record<"host_chat_action_subscribe_interrupt", EnumCodec<{
355
+ readonly v1: Codec<undefined>;
356
+ }>> & Record<"host_chat_action_subscribe_stop", Codec<undefined>> & Record<"product_chat_custom_message_render_subscribe_start", EnumCodec<{
422
357
  readonly v1: Codec<{
423
358
  messageId: string;
424
359
  messageType: string;
@@ -426,7 +361,9 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
426
361
  }>;
427
362
  }>> & Record<"product_chat_custom_message_render_subscribe_receive", EnumCodec<{
428
363
  readonly v1: Codec<import("./v1/customRenderer.js").CustomRendererNodeType>;
429
- }>> & 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<{
364
+ }>> & Record<"product_chat_custom_message_render_subscribe_interrupt", EnumCodec<{
365
+ readonly v1: Codec<undefined>;
366
+ }>> & Record<"product_chat_custom_message_render_subscribe_stop", Codec<undefined>> & Record<"remote_statement_store_subscribe_start", EnumCodec<{
430
367
  readonly v1: Codec<{
431
368
  tag: "MatchAll";
432
369
  value: Uint8Array<ArrayBufferLike>[];
@@ -471,7 +408,9 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
471
408
  }[];
472
409
  isComplete: boolean;
473
410
  }>;
474
- }>> & Record<"remote_statement_store_subscribe_interrupt", Codec<undefined>> & Record<"remote_statement_store_subscribe_stop", Codec<undefined>> & Record<"remote_statement_store_create_proof_request", EnumCodec<{
411
+ }>> & Record<"remote_statement_store_subscribe_interrupt", EnumCodec<{
412
+ readonly v1: Codec<undefined>;
413
+ }>> & Record<"remote_statement_store_subscribe_stop", Codec<undefined>> & Record<"remote_statement_store_create_proof_request", EnumCodec<{
475
414
  readonly v1: Codec<[[string, number], {
476
415
  proof: {
477
416
  tag: "Sr25519";
@@ -576,73 +515,20 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
576
515
  readonly v1: Codec<`0x${string}`>;
577
516
  }>> & Record<"remote_preimage_lookup_subscribe_receive", EnumCodec<{
578
517
  readonly v1: Codec<Uint8Array<ArrayBufferLike> | null>;
579
- }>> & Record<"remote_preimage_lookup_subscribe_interrupt", Codec<undefined>> & Record<"remote_preimage_lookup_subscribe_stop", Codec<undefined>> & Record<"remote_preimage_submit_request", EnumCodec<{
518
+ }>> & Record<"remote_preimage_lookup_subscribe_interrupt", EnumCodec<{
519
+ readonly v1: Codec<undefined>;
520
+ }>> & Record<"remote_preimage_lookup_subscribe_stop", Codec<undefined>> & Record<"remote_preimage_submit_request", EnumCodec<{
580
521
  readonly v1: Codec<Uint8Array<ArrayBufferLike>>;
581
522
  }>> & Record<"remote_preimage_submit_response", EnumCodec<{
582
523
  readonly v1: Codec<import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
583
524
  reason: string;
584
525
  }, "PreimageSubmitErr::Unknown">>>;
585
- }>> & Record<"host_payment_balance_subscribe_start", EnumCodec<{
586
- readonly v1: Codec<undefined>;
587
- }>> & Record<"host_payment_balance_subscribe_receive", EnumCodec<{
588
- readonly v1: Codec<{
589
- available: bigint;
590
- }>;
591
- }>> & Record<"host_payment_balance_subscribe_interrupt", Codec<undefined>> & Record<"host_payment_balance_subscribe_stop", Codec<undefined>> & Record<"host_payment_top_up_request", EnumCodec<{
592
- readonly v1: Codec<{
593
- amount: bigint;
594
- source: {
595
- tag: "ProductAccount";
596
- value: [string, number];
597
- } | {
598
- tag: "PrivateKey";
599
- value: Uint8Array<ArrayBufferLike>;
600
- };
601
- }>;
602
- }>> & Record<"host_payment_top_up_response", EnumCodec<{
603
- readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
604
- reason: string;
605
- }, "PaymentTopUpErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InsufficientFunds"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InvalidSource">>>;
606
- }>> & Record<"host_payment_request_request", EnumCodec<{
607
- readonly v1: Codec<{
608
- amount: bigint;
609
- destination: Uint8Array<ArrayBufferLike>;
610
- }>;
611
- }>> & Record<"host_payment_request_response", EnumCodec<{
612
- readonly v1: Codec<import("scale-ts").ResultPayload<{
613
- id: string;
614
- }, import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::Rejected"> | import("@novasamatech/scale").CodecError<{
615
- reason: string;
616
- }, "PaymentRequestErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::InsufficientBalance">>>;
617
- }>> & Record<"host_payment_status_subscribe_start", EnumCodec<{
618
- readonly v1: Codec<string>;
619
- }>> & Record<"host_payment_status_subscribe_receive", EnumCodec<{
620
- readonly v1: Codec<{
621
- tag: "Processing";
622
- value: undefined;
623
- } | {
624
- tag: "Completed";
625
- value: undefined;
626
- } | {
627
- tag: "Failed";
628
- value: string;
629
- }>;
630
- }>> & Record<"host_payment_status_subscribe_interrupt", Codec<undefined>> & Record<"host_payment_status_subscribe_stop", Codec<undefined>> & Record<"host_jsonrpc_message_send_request", EnumCodec<{
631
- readonly v1: Codec<[`0x${string}`, string]>;
632
- }>> & Record<"host_jsonrpc_message_send_response", EnumCodec<{
633
- readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
634
- reason: string;
635
- }, "GenericError">>>;
636
- }>> & Record<"host_jsonrpc_message_subscribe_start", EnumCodec<{
637
- readonly v1: Codec<`0x${string}`>;
638
- }>> & Record<"host_jsonrpc_message_subscribe_receive", EnumCodec<{
639
- readonly v1: Codec<string>;
640
- }>> & Record<"host_jsonrpc_message_subscribe_interrupt", Codec<undefined>> & Record<"host_jsonrpc_message_subscribe_stop", Codec<undefined>> & Record<"remote_chain_head_follow_start", EnumCodec<{
526
+ }>> & Record<"remote_chain_head_follow_subscribe_start", EnumCodec<{
641
527
  readonly v1: Codec<{
642
528
  genesisHash: `0x${string}`;
643
529
  withRuntime: boolean;
644
530
  }>;
645
- }>> & Record<"remote_chain_head_follow_receive", EnumCodec<{
531
+ }>> & Record<"remote_chain_head_follow_subscribe_receive", EnumCodec<{
646
532
  readonly v1: Codec<{
647
533
  tag: "Initialized";
648
534
  value: {
@@ -745,7 +631,9 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
745
631
  tag: "Stop";
746
632
  value: undefined;
747
633
  }>;
748
- }>> & Record<"remote_chain_head_follow_interrupt", Codec<undefined>> & Record<"remote_chain_head_follow_stop", Codec<undefined>> & Record<"remote_chain_head_header_request", EnumCodec<{
634
+ }>> & Record<"remote_chain_head_follow_subscribe_interrupt", EnumCodec<{
635
+ readonly v1: Codec<undefined>;
636
+ }>> & Record<"remote_chain_head_follow_subscribe_stop", Codec<undefined>> & Record<"remote_chain_head_header_request", EnumCodec<{
749
637
  readonly v1: Codec<{
750
638
  genesisHash: `0x${string}`;
751
639
  followSubscriptionId: string;
@@ -882,7 +770,161 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
882
770
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
883
771
  reason: string;
884
772
  }, "GenericError">>>;
885
- }>>>;
773
+ }>> & Record<"host_theme_subscribe_start", EnumCodec<{
774
+ readonly v1: Codec<undefined>;
775
+ }>> & Record<"host_theme_subscribe_receive", EnumCodec<{
776
+ readonly v1: Codec<"light" | "dark">;
777
+ }>> & Record<"host_theme_subscribe_interrupt", EnumCodec<{
778
+ readonly v1: Codec<undefined>;
779
+ }>> & Record<"host_theme_subscribe_stop", Codec<undefined>> & Record<"host_derive_entropy_request", EnumCodec<{
780
+ readonly v1: Codec<Uint8Array<ArrayBufferLike>>;
781
+ }>> & Record<"host_derive_entropy_response", EnumCodec<{
782
+ readonly v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
783
+ reason: string;
784
+ }, "DeriveEntropyErr::Unknown">>>;
785
+ }>> & Record<"host_account_get_root_request", EnumCodec<{
786
+ readonly v1: Codec<undefined>;
787
+ }>> & Record<"host_account_get_root_response", EnumCodec<{
788
+ readonly v1: Codec<import("scale-ts").ResultPayload<{
789
+ publicKey: Uint8Array<ArrayBufferLike>;
790
+ name: string | undefined;
791
+ }, 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<{
792
+ reason: string;
793
+ }, "RequestCredentialsErr::Unknown">>>;
794
+ }>> & Record<"host_request_login_request", EnumCodec<{
795
+ readonly v1: Codec<string | undefined>;
796
+ }>> & Record<"host_request_login_response", EnumCodec<{
797
+ readonly v1: Codec<import("scale-ts").ResultPayload<"success" | "alreadyConnected" | "rejected", import("@novasamatech/scale").CodecError<{
798
+ reason: string;
799
+ }, "LoginErr::Unknown">>>;
800
+ }>> & Record<"host_sign_raw_with_legacy_account_request", EnumCodec<{
801
+ readonly v1: Codec<{
802
+ signer: string;
803
+ payload: {
804
+ tag: "Bytes";
805
+ value: Uint8Array<ArrayBufferLike>;
806
+ } | {
807
+ tag: "Payload";
808
+ value: string;
809
+ };
810
+ }>;
811
+ }>> & Record<"host_sign_raw_with_legacy_account_response", EnumCodec<{
812
+ readonly v1: Codec<import("scale-ts").ResultPayload<{
813
+ signature: `0x${string}`;
814
+ signedTransaction: `0x${string}` | undefined;
815
+ }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
816
+ reason: string;
817
+ }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
818
+ }>> & Record<"host_sign_payload_with_legacy_account_request", EnumCodec<{
819
+ readonly v1: Codec<{
820
+ signer: string;
821
+ payload: {
822
+ blockHash: `0x${string}`;
823
+ blockNumber: `0x${string}`;
824
+ era: `0x${string}`;
825
+ genesisHash: `0x${string}`;
826
+ method: `0x${string}`;
827
+ nonce: `0x${string}`;
828
+ specVersion: `0x${string}`;
829
+ tip: `0x${string}`;
830
+ transactionVersion: `0x${string}`;
831
+ signedExtensions: string[];
832
+ version: number;
833
+ assetId: `0x${string}` | undefined;
834
+ metadataHash: `0x${string}` | undefined;
835
+ mode: number | undefined;
836
+ withSignedTransaction: boolean | undefined;
837
+ };
838
+ }>;
839
+ }>> & Record<"host_sign_payload_with_legacy_account_response", EnumCodec<{
840
+ readonly v1: Codec<import("scale-ts").ResultPayload<{
841
+ signature: `0x${string}`;
842
+ signedTransaction: `0x${string}` | undefined;
843
+ }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
844
+ reason: string;
845
+ }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
846
+ }>> & Record<"host_payment_balance_subscribe_start", EnumCodec<{
847
+ readonly v1: Codec<undefined>;
848
+ }>> & Record<"host_payment_balance_subscribe_receive", EnumCodec<{
849
+ readonly v1: Codec<{
850
+ available: bigint;
851
+ }>;
852
+ }>> & Record<"host_payment_balance_subscribe_interrupt", EnumCodec<{
853
+ readonly v1: [import("scale-ts").Encoder<import("@novasamatech/scale").CodecError<{
854
+ reason: string;
855
+ }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">>, import("scale-ts").Decoder<import("@novasamatech/scale").CodecError<{
856
+ reason: string;
857
+ }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">>] & {
858
+ enc: import("scale-ts").Encoder<import("@novasamatech/scale").CodecError<{
859
+ reason: string;
860
+ }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">>;
861
+ dec: import("scale-ts").Decoder<import("@novasamatech/scale").CodecError<{
862
+ reason: string;
863
+ }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">>;
864
+ } & {
865
+ readonly PermissionDenied: import("@novasamatech/scale").ErrCodec<undefined, "PaymentBalanceErr::PermissionDenied">;
866
+ readonly Unknown: import("@novasamatech/scale").ErrCodec<{
867
+ reason: string;
868
+ }, "PaymentBalanceErr::Unknown">;
869
+ };
870
+ }>> & Record<"host_payment_balance_subscribe_stop", Codec<undefined>> & Record<"host_payment_top_up_request", EnumCodec<{
871
+ readonly v1: Codec<{
872
+ amount: bigint;
873
+ source: {
874
+ tag: "ProductAccount";
875
+ value: number;
876
+ } | {
877
+ tag: "PrivateKey";
878
+ value: Uint8Array<ArrayBufferLike>;
879
+ };
880
+ }>;
881
+ }>> & Record<"host_payment_top_up_response", EnumCodec<{
882
+ readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
883
+ reason: string;
884
+ }, "PaymentTopUpErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InsufficientFunds"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InvalidSource">>>;
885
+ }>> & Record<"host_payment_request_request", EnumCodec<{
886
+ readonly v1: Codec<{
887
+ amount: bigint;
888
+ destination: Uint8Array<ArrayBufferLike>;
889
+ }>;
890
+ }>> & Record<"host_payment_request_response", EnumCodec<{
891
+ readonly v1: Codec<import("scale-ts").ResultPayload<{
892
+ id: string;
893
+ }, import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::Rejected"> | import("@novasamatech/scale").CodecError<{
894
+ reason: string;
895
+ }, "PaymentRequestErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::InsufficientBalance">>>;
896
+ }>> & Record<"host_payment_status_subscribe_start", EnumCodec<{
897
+ readonly v1: Codec<string>;
898
+ }>> & Record<"host_payment_status_subscribe_receive", EnumCodec<{
899
+ readonly v1: Codec<{
900
+ tag: "Processing";
901
+ value: undefined;
902
+ } | {
903
+ tag: "Completed";
904
+ value: undefined;
905
+ } | {
906
+ tag: "Failed";
907
+ value: string;
908
+ }>;
909
+ }>> & Record<"host_payment_status_subscribe_interrupt", EnumCodec<{
910
+ readonly v1: [import("scale-ts").Encoder<import("@novasamatech/scale").CodecError<{
911
+ reason: string;
912
+ }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">>, import("scale-ts").Decoder<import("@novasamatech/scale").CodecError<{
913
+ reason: string;
914
+ }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">>] & {
915
+ enc: import("scale-ts").Encoder<import("@novasamatech/scale").CodecError<{
916
+ reason: string;
917
+ }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">>;
918
+ dec: import("scale-ts").Decoder<import("@novasamatech/scale").CodecError<{
919
+ reason: string;
920
+ }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">>;
921
+ } & {
922
+ readonly PaymentNotFound: import("@novasamatech/scale").ErrCodec<undefined, "PaymentStatusErr::PaymentNotFound">;
923
+ readonly Unknown: import("@novasamatech/scale").ErrCodec<{
924
+ reason: string;
925
+ }, "PaymentStatusErr::Unknown">;
926
+ };
927
+ }>> & Record<"host_payment_status_subscribe_stop", Codec<undefined>>>;
886
928
  export declare const Message: Codec<{
887
929
  requestId: string;
888
930
  payload: {
@@ -934,51 +976,19 @@ export declare const Message: Codec<{
934
976
  }, "GenericError">>;
935
977
  };
936
978
  } | {
937
- tag: "host_theme_subscribe_start";
979
+ tag: "host_navigate_to_request";
938
980
  value: {
939
981
  tag: "v1";
940
- value: undefined;
982
+ value: string;
941
983
  };
942
984
  } | {
943
- tag: "host_theme_subscribe_receive";
944
- value: {
945
- tag: "v1";
946
- value: "light" | "dark";
947
- };
948
- } | {
949
- tag: "host_theme_subscribe_interrupt";
950
- value: undefined;
951
- } | {
952
- tag: "host_theme_subscribe_stop";
953
- value: undefined;
954
- } | {
955
- tag: "host_navigate_to_request";
956
- value: {
957
- tag: "v1";
958
- value: string;
959
- };
960
- } | {
961
- tag: "host_navigate_to_response";
985
+ tag: "host_navigate_to_response";
962
986
  value: {
963
987
  tag: "v1";
964
988
  value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
965
989
  reason: string;
966
990
  }, "NavigateToErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "NavigateToErr::PermissionDenied">>;
967
991
  };
968
- } | {
969
- tag: "host_derive_entropy_request";
970
- value: {
971
- tag: "v1";
972
- value: Uint8Array<ArrayBufferLike>;
973
- };
974
- } | {
975
- tag: "host_derive_entropy_response";
976
- value: {
977
- tag: "v1";
978
- value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
979
- reason: string;
980
- }, "DeriveEntropyErr::Unknown">>;
981
- };
982
992
  } | {
983
993
  tag: "host_device_permission_request";
984
994
  value: {
@@ -997,7 +1007,7 @@ export declare const Message: Codec<{
997
1007
  tag: "remote_permission_request";
998
1008
  value: {
999
1009
  tag: "v1";
1000
- value: ({
1010
+ value: {
1001
1011
  tag: "Remote";
1002
1012
  value: string[];
1003
1013
  } | {
@@ -1012,7 +1022,7 @@ export declare const Message: Codec<{
1012
1022
  } | {
1013
1023
  tag: "StatementSubmit";
1014
1024
  value: undefined;
1015
- })[];
1025
+ };
1016
1026
  };
1017
1027
  } | {
1018
1028
  tag: "remote_permission_response";
@@ -1064,37 +1074,6 @@ export declare const Message: Codec<{
1064
1074
  reason: string;
1065
1075
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
1066
1076
  };
1067
- } | {
1068
- tag: "host_account_get_root_request";
1069
- value: {
1070
- tag: "v1";
1071
- value: undefined;
1072
- };
1073
- } | {
1074
- tag: "host_account_get_root_response";
1075
- value: {
1076
- tag: "v1";
1077
- value: import("scale-ts").ResultPayload<{
1078
- publicKey: Uint8Array<ArrayBufferLike>;
1079
- name: string | undefined;
1080
- }, 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<{
1081
- reason: string;
1082
- }, "RequestCredentialsErr::Unknown">>;
1083
- };
1084
- } | {
1085
- tag: "host_request_login_request";
1086
- value: {
1087
- tag: "v1";
1088
- value: string | undefined;
1089
- };
1090
- } | {
1091
- tag: "host_request_login_response";
1092
- value: {
1093
- tag: "v1";
1094
- value: import("scale-ts").ResultPayload<"success" | "alreadyConnected" | "rejected", import("@novasamatech/scale").CodecError<{
1095
- reason: string;
1096
- }, "LoginErr::Unknown">>;
1097
- };
1098
1077
  } | {
1099
1078
  tag: "host_account_connection_status_subscribe_start";
1100
1079
  value: {
@@ -1109,7 +1088,10 @@ export declare const Message: Codec<{
1109
1088
  };
1110
1089
  } | {
1111
1090
  tag: "host_account_connection_status_subscribe_interrupt";
1112
- value: undefined;
1091
+ value: {
1092
+ tag: "v1";
1093
+ value: undefined;
1094
+ };
1113
1095
  } | {
1114
1096
  tag: "host_account_connection_status_subscribe_stop";
1115
1097
  value: undefined;
@@ -1238,32 +1220,6 @@ export declare const Message: Codec<{
1238
1220
  reason: string;
1239
1221
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
1240
1222
  };
1241
- } | {
1242
- tag: "host_sign_raw_with_legacy_account_request";
1243
- value: {
1244
- tag: "v1";
1245
- value: {
1246
- signer: string;
1247
- payload: {
1248
- tag: "Bytes";
1249
- value: Uint8Array<ArrayBufferLike>;
1250
- } | {
1251
- tag: "Payload";
1252
- value: string;
1253
- };
1254
- };
1255
- };
1256
- } | {
1257
- tag: "host_sign_raw_with_legacy_account_response";
1258
- value: {
1259
- tag: "v1";
1260
- value: import("scale-ts").ResultPayload<{
1261
- signature: `0x${string}`;
1262
- signedTransaction: `0x${string}` | undefined;
1263
- }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
1264
- reason: string;
1265
- }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
1266
- };
1267
1223
  } | {
1268
1224
  tag: "host_sign_payload_request";
1269
1225
  value: {
@@ -1300,42 +1256,6 @@ export declare const Message: Codec<{
1300
1256
  reason: string;
1301
1257
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
1302
1258
  };
1303
- } | {
1304
- tag: "host_sign_payload_with_legacy_account_request";
1305
- value: {
1306
- tag: "v1";
1307
- value: {
1308
- signer: string;
1309
- payload: {
1310
- blockHash: `0x${string}`;
1311
- blockNumber: `0x${string}`;
1312
- era: `0x${string}`;
1313
- genesisHash: `0x${string}`;
1314
- method: `0x${string}`;
1315
- nonce: `0x${string}`;
1316
- specVersion: `0x${string}`;
1317
- tip: `0x${string}`;
1318
- transactionVersion: `0x${string}`;
1319
- signedExtensions: string[];
1320
- version: number;
1321
- assetId: `0x${string}` | undefined;
1322
- metadataHash: `0x${string}` | undefined;
1323
- mode: number | undefined;
1324
- withSignedTransaction: boolean | undefined;
1325
- };
1326
- };
1327
- };
1328
- } | {
1329
- tag: "host_sign_payload_with_legacy_account_response";
1330
- value: {
1331
- tag: "v1";
1332
- value: import("scale-ts").ResultPayload<{
1333
- signature: `0x${string}`;
1334
- signedTransaction: `0x${string}` | undefined;
1335
- }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
1336
- reason: string;
1337
- }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
1338
- };
1339
1259
  } | {
1340
1260
  tag: "host_chat_create_room_request";
1341
1261
  value: {
@@ -1393,7 +1313,10 @@ export declare const Message: Codec<{
1393
1313
  };
1394
1314
  } | {
1395
1315
  tag: "host_chat_list_subscribe_interrupt";
1396
- value: undefined;
1316
+ value: {
1317
+ tag: "v1";
1318
+ value: undefined;
1319
+ };
1397
1320
  } | {
1398
1321
  tag: "host_chat_list_subscribe_stop";
1399
1322
  value: undefined;
@@ -1546,7 +1469,10 @@ export declare const Message: Codec<{
1546
1469
  };
1547
1470
  } | {
1548
1471
  tag: "host_chat_action_subscribe_interrupt";
1549
- value: undefined;
1472
+ value: {
1473
+ tag: "v1";
1474
+ value: undefined;
1475
+ };
1550
1476
  } | {
1551
1477
  tag: "host_chat_action_subscribe_stop";
1552
1478
  value: undefined;
@@ -1568,7 +1494,10 @@ export declare const Message: Codec<{
1568
1494
  };
1569
1495
  } | {
1570
1496
  tag: "product_chat_custom_message_render_subscribe_interrupt";
1571
- value: undefined;
1497
+ value: {
1498
+ tag: "v1";
1499
+ value: undefined;
1500
+ };
1572
1501
  } | {
1573
1502
  tag: "product_chat_custom_message_render_subscribe_stop";
1574
1503
  value: undefined;
@@ -1627,7 +1556,10 @@ export declare const Message: Codec<{
1627
1556
  };
1628
1557
  } | {
1629
1558
  tag: "remote_statement_store_subscribe_interrupt";
1630
- value: undefined;
1559
+ value: {
1560
+ tag: "v1";
1561
+ value: undefined;
1562
+ };
1631
1563
  } | {
1632
1564
  tag: "remote_statement_store_subscribe_stop";
1633
1565
  value: undefined;
@@ -1762,7 +1694,10 @@ export declare const Message: Codec<{
1762
1694
  };
1763
1695
  } | {
1764
1696
  tag: "remote_preimage_lookup_subscribe_interrupt";
1765
- value: undefined;
1697
+ value: {
1698
+ tag: "v1";
1699
+ value: undefined;
1700
+ };
1766
1701
  } | {
1767
1702
  tag: "remote_preimage_lookup_subscribe_stop";
1768
1703
  value: undefined;
@@ -1781,128 +1716,7 @@ export declare const Message: Codec<{
1781
1716
  }, "PreimageSubmitErr::Unknown">>;
1782
1717
  };
1783
1718
  } | {
1784
- tag: "host_payment_balance_subscribe_start";
1785
- value: {
1786
- tag: "v1";
1787
- value: undefined;
1788
- };
1789
- } | {
1790
- tag: "host_payment_balance_subscribe_receive";
1791
- value: {
1792
- tag: "v1";
1793
- value: {
1794
- available: bigint;
1795
- };
1796
- };
1797
- } | {
1798
- tag: "host_payment_balance_subscribe_interrupt";
1799
- value: undefined;
1800
- } | {
1801
- tag: "host_payment_balance_subscribe_stop";
1802
- value: undefined;
1803
- } | {
1804
- tag: "host_payment_top_up_request";
1805
- value: {
1806
- tag: "v1";
1807
- value: {
1808
- amount: bigint;
1809
- source: {
1810
- tag: "ProductAccount";
1811
- value: [string, number];
1812
- } | {
1813
- tag: "PrivateKey";
1814
- value: Uint8Array<ArrayBufferLike>;
1815
- };
1816
- };
1817
- };
1818
- } | {
1819
- tag: "host_payment_top_up_response";
1820
- value: {
1821
- tag: "v1";
1822
- value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
1823
- reason: string;
1824
- }, "PaymentTopUpErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InsufficientFunds"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InvalidSource">>;
1825
- };
1826
- } | {
1827
- tag: "host_payment_request_request";
1828
- value: {
1829
- tag: "v1";
1830
- value: {
1831
- amount: bigint;
1832
- destination: Uint8Array<ArrayBufferLike>;
1833
- };
1834
- };
1835
- } | {
1836
- tag: "host_payment_request_response";
1837
- value: {
1838
- tag: "v1";
1839
- value: import("scale-ts").ResultPayload<{
1840
- id: string;
1841
- }, import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::Rejected"> | import("@novasamatech/scale").CodecError<{
1842
- reason: string;
1843
- }, "PaymentRequestErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::InsufficientBalance">>;
1844
- };
1845
- } | {
1846
- tag: "host_payment_status_subscribe_start";
1847
- value: {
1848
- tag: "v1";
1849
- value: string;
1850
- };
1851
- } | {
1852
- tag: "host_payment_status_subscribe_receive";
1853
- value: {
1854
- tag: "v1";
1855
- value: {
1856
- tag: "Processing";
1857
- value: undefined;
1858
- } | {
1859
- tag: "Completed";
1860
- value: undefined;
1861
- } | {
1862
- tag: "Failed";
1863
- value: string;
1864
- };
1865
- };
1866
- } | {
1867
- tag: "host_payment_status_subscribe_interrupt";
1868
- value: undefined;
1869
- } | {
1870
- tag: "host_payment_status_subscribe_stop";
1871
- value: undefined;
1872
- } | {
1873
- tag: "host_jsonrpc_message_send_request";
1874
- value: {
1875
- tag: "v1";
1876
- value: [`0x${string}`, string];
1877
- };
1878
- } | {
1879
- tag: "host_jsonrpc_message_send_response";
1880
- value: {
1881
- tag: "v1";
1882
- value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
1883
- reason: string;
1884
- }, "GenericError">>;
1885
- };
1886
- } | {
1887
- tag: "host_jsonrpc_message_subscribe_start";
1888
- value: {
1889
- tag: "v1";
1890
- value: `0x${string}`;
1891
- };
1892
- } | {
1893
- tag: "host_jsonrpc_message_subscribe_receive";
1894
- value: {
1895
- tag: "v1";
1896
- value: string;
1897
- };
1898
- } | {
1899
- tag: "host_jsonrpc_message_subscribe_interrupt";
1900
- value: undefined;
1901
- } | {
1902
- tag: "host_jsonrpc_message_subscribe_stop";
1903
- value: undefined;
1904
- } | {
1905
- tag: "remote_chain_head_follow_start";
1719
+ tag: "remote_chain_head_follow_subscribe_start";
1906
1720
  value: {
1907
1721
  tag: "v1";
1908
1722
  value: {
@@ -1911,7 +1725,7 @@ export declare const Message: Codec<{
1911
1725
  };
1912
1726
  };
1913
1727
  } | {
1914
- tag: "remote_chain_head_follow_receive";
1728
+ tag: "remote_chain_head_follow_subscribe_receive";
1915
1729
  value: {
1916
1730
  tag: "v1";
1917
1731
  value: {
@@ -2018,10 +1832,13 @@ export declare const Message: Codec<{
2018
1832
  };
2019
1833
  };
2020
1834
  } | {
2021
- tag: "remote_chain_head_follow_interrupt";
2022
- value: undefined;
1835
+ tag: "remote_chain_head_follow_subscribe_interrupt";
1836
+ value: {
1837
+ tag: "v1";
1838
+ value: undefined;
1839
+ };
2023
1840
  } | {
2024
- tag: "remote_chain_head_follow_stop";
1841
+ tag: "remote_chain_head_follow_subscribe_stop";
2025
1842
  value: undefined;
2026
1843
  } | {
2027
1844
  tag: "remote_chain_head_header_request";
@@ -2256,6 +2073,233 @@ export declare const Message: Codec<{
2256
2073
  reason: string;
2257
2074
  }, "GenericError">>;
2258
2075
  };
2076
+ } | {
2077
+ tag: "host_theme_subscribe_start";
2078
+ value: {
2079
+ tag: "v1";
2080
+ value: undefined;
2081
+ };
2082
+ } | {
2083
+ tag: "host_theme_subscribe_receive";
2084
+ value: {
2085
+ tag: "v1";
2086
+ value: "light" | "dark";
2087
+ };
2088
+ } | {
2089
+ tag: "host_theme_subscribe_interrupt";
2090
+ value: {
2091
+ tag: "v1";
2092
+ value: undefined;
2093
+ };
2094
+ } | {
2095
+ tag: "host_theme_subscribe_stop";
2096
+ value: undefined;
2097
+ } | {
2098
+ tag: "host_derive_entropy_request";
2099
+ value: {
2100
+ tag: "v1";
2101
+ value: Uint8Array<ArrayBufferLike>;
2102
+ };
2103
+ } | {
2104
+ tag: "host_derive_entropy_response";
2105
+ value: {
2106
+ tag: "v1";
2107
+ value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
2108
+ reason: string;
2109
+ }, "DeriveEntropyErr::Unknown">>;
2110
+ };
2111
+ } | {
2112
+ tag: "host_account_get_root_request";
2113
+ value: {
2114
+ tag: "v1";
2115
+ value: undefined;
2116
+ };
2117
+ } | {
2118
+ tag: "host_account_get_root_response";
2119
+ value: {
2120
+ tag: "v1";
2121
+ value: import("scale-ts").ResultPayload<{
2122
+ publicKey: Uint8Array<ArrayBufferLike>;
2123
+ name: string | undefined;
2124
+ }, 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<{
2125
+ reason: string;
2126
+ }, "RequestCredentialsErr::Unknown">>;
2127
+ };
2128
+ } | {
2129
+ tag: "host_request_login_request";
2130
+ value: {
2131
+ tag: "v1";
2132
+ value: string | undefined;
2133
+ };
2134
+ } | {
2135
+ tag: "host_request_login_response";
2136
+ value: {
2137
+ tag: "v1";
2138
+ value: import("scale-ts").ResultPayload<"success" | "alreadyConnected" | "rejected", import("@novasamatech/scale").CodecError<{
2139
+ reason: string;
2140
+ }, "LoginErr::Unknown">>;
2141
+ };
2142
+ } | {
2143
+ tag: "host_sign_raw_with_legacy_account_request";
2144
+ value: {
2145
+ tag: "v1";
2146
+ value: {
2147
+ signer: string;
2148
+ payload: {
2149
+ tag: "Bytes";
2150
+ value: Uint8Array<ArrayBufferLike>;
2151
+ } | {
2152
+ tag: "Payload";
2153
+ value: string;
2154
+ };
2155
+ };
2156
+ };
2157
+ } | {
2158
+ tag: "host_sign_raw_with_legacy_account_response";
2159
+ value: {
2160
+ tag: "v1";
2161
+ value: import("scale-ts").ResultPayload<{
2162
+ signature: `0x${string}`;
2163
+ signedTransaction: `0x${string}` | undefined;
2164
+ }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
2165
+ reason: string;
2166
+ }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
2167
+ };
2168
+ } | {
2169
+ tag: "host_sign_payload_with_legacy_account_request";
2170
+ value: {
2171
+ tag: "v1";
2172
+ value: {
2173
+ signer: string;
2174
+ payload: {
2175
+ blockHash: `0x${string}`;
2176
+ blockNumber: `0x${string}`;
2177
+ era: `0x${string}`;
2178
+ genesisHash: `0x${string}`;
2179
+ method: `0x${string}`;
2180
+ nonce: `0x${string}`;
2181
+ specVersion: `0x${string}`;
2182
+ tip: `0x${string}`;
2183
+ transactionVersion: `0x${string}`;
2184
+ signedExtensions: string[];
2185
+ version: number;
2186
+ assetId: `0x${string}` | undefined;
2187
+ metadataHash: `0x${string}` | undefined;
2188
+ mode: number | undefined;
2189
+ withSignedTransaction: boolean | undefined;
2190
+ };
2191
+ };
2192
+ };
2193
+ } | {
2194
+ tag: "host_sign_payload_with_legacy_account_response";
2195
+ value: {
2196
+ tag: "v1";
2197
+ value: import("scale-ts").ResultPayload<{
2198
+ signature: `0x${string}`;
2199
+ signedTransaction: `0x${string}` | undefined;
2200
+ }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
2201
+ reason: string;
2202
+ }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
2203
+ };
2204
+ } | {
2205
+ tag: "host_payment_balance_subscribe_start";
2206
+ value: {
2207
+ tag: "v1";
2208
+ value: undefined;
2209
+ };
2210
+ } | {
2211
+ tag: "host_payment_balance_subscribe_receive";
2212
+ value: {
2213
+ tag: "v1";
2214
+ value: {
2215
+ available: bigint;
2216
+ };
2217
+ };
2218
+ } | {
2219
+ tag: "host_payment_balance_subscribe_interrupt";
2220
+ value: {
2221
+ tag: "v1";
2222
+ value: import("@novasamatech/scale").CodecError<{
2223
+ reason: string;
2224
+ }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">;
2225
+ };
2226
+ } | {
2227
+ tag: "host_payment_balance_subscribe_stop";
2228
+ value: undefined;
2229
+ } | {
2230
+ tag: "host_payment_top_up_request";
2231
+ value: {
2232
+ tag: "v1";
2233
+ value: {
2234
+ amount: bigint;
2235
+ source: {
2236
+ tag: "ProductAccount";
2237
+ value: number;
2238
+ } | {
2239
+ tag: "PrivateKey";
2240
+ value: Uint8Array<ArrayBufferLike>;
2241
+ };
2242
+ };
2243
+ };
2244
+ } | {
2245
+ tag: "host_payment_top_up_response";
2246
+ value: {
2247
+ tag: "v1";
2248
+ value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
2249
+ reason: string;
2250
+ }, "PaymentTopUpErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InsufficientFunds"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InvalidSource">>;
2251
+ };
2252
+ } | {
2253
+ tag: "host_payment_request_request";
2254
+ value: {
2255
+ tag: "v1";
2256
+ value: {
2257
+ amount: bigint;
2258
+ destination: Uint8Array<ArrayBufferLike>;
2259
+ };
2260
+ };
2261
+ } | {
2262
+ tag: "host_payment_request_response";
2263
+ value: {
2264
+ tag: "v1";
2265
+ value: import("scale-ts").ResultPayload<{
2266
+ id: string;
2267
+ }, import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::Rejected"> | import("@novasamatech/scale").CodecError<{
2268
+ reason: string;
2269
+ }, "PaymentRequestErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::InsufficientBalance">>;
2270
+ };
2271
+ } | {
2272
+ tag: "host_payment_status_subscribe_start";
2273
+ value: {
2274
+ tag: "v1";
2275
+ value: string;
2276
+ };
2277
+ } | {
2278
+ tag: "host_payment_status_subscribe_receive";
2279
+ value: {
2280
+ tag: "v1";
2281
+ value: {
2282
+ tag: "Processing";
2283
+ value: undefined;
2284
+ } | {
2285
+ tag: "Completed";
2286
+ value: undefined;
2287
+ } | {
2288
+ tag: "Failed";
2289
+ value: string;
2290
+ };
2291
+ };
2292
+ } | {
2293
+ tag: "host_payment_status_subscribe_interrupt";
2294
+ value: {
2295
+ tag: "v1";
2296
+ value: import("@novasamatech/scale").CodecError<{
2297
+ reason: string;
2298
+ }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">;
2299
+ };
2300
+ } | {
2301
+ tag: "host_payment_status_subscribe_stop";
2302
+ value: undefined;
2259
2303
  };
2260
2304
  }>;
2261
2305
  export type MessageAction = MessagePayloadSchema['tag'];