@novasamatech/host-api 0.7.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.
@@ -33,24 +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", EnumCodec<{
41
- readonly v1: Codec<undefined>;
42
- }>> & Record<"host_theme_subscribe_stop", Codec<undefined>> & Record<"host_navigate_to_request", EnumCodec<{
36
+ }>> & Record<"host_navigate_to_request", EnumCodec<{
43
37
  readonly v1: Codec<string>;
44
38
  }>> & Record<"host_navigate_to_response", EnumCodec<{
45
39
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
46
40
  reason: string;
47
41
  }, "NavigateToErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "NavigateToErr::PermissionDenied">>>;
48
- }>> & Record<"host_derive_entropy_request", EnumCodec<{
49
- readonly v1: Codec<Uint8Array<ArrayBufferLike>>;
50
- }>> & Record<"host_derive_entropy_response", EnumCodec<{
51
- readonly v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
52
- reason: string;
53
- }, "DeriveEntropyErr::Unknown">>>;
54
42
  }>> & Record<"host_device_permission_request", EnumCodec<{
55
43
  readonly v1: Codec<"Notifications" | "Camera" | "Microphone" | "Bluetooth" | "NFC" | "Location" | "Clipboard" | "OpenUrl" | "Biometrics">;
56
44
  }>> & Record<"host_device_permission_response", EnumCodec<{
@@ -96,21 +84,6 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
96
84
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
97
85
  reason: string;
98
86
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
99
- }>> & Record<"host_account_get_root_request", EnumCodec<{
100
- readonly v1: Codec<undefined>;
101
- }>> & Record<"host_account_get_root_response", EnumCodec<{
102
- readonly v1: Codec<import("scale-ts").ResultPayload<{
103
- publicKey: Uint8Array<ArrayBufferLike>;
104
- name: string | undefined;
105
- }, 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<{
106
- reason: string;
107
- }, "RequestCredentialsErr::Unknown">>>;
108
- }>> & Record<"host_request_login_request", EnumCodec<{
109
- readonly v1: Codec<string | undefined>;
110
- }>> & Record<"host_request_login_response", EnumCodec<{
111
- readonly v1: Codec<import("scale-ts").ResultPayload<"success" | "alreadyConnected" | "rejected", import("@novasamatech/scale").CodecError<{
112
- reason: string;
113
- }, "LoginErr::Unknown">>>;
114
87
  }>> & Record<"host_account_connection_status_subscribe_start", EnumCodec<{
115
88
  readonly v1: Codec<undefined>;
116
89
  }>> & Record<"host_account_connection_status_subscribe_receive", EnumCodec<{
@@ -186,24 +159,6 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
186
159
  }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
187
160
  reason: string;
188
161
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
189
- }>> & Record<"host_sign_raw_with_legacy_account_request", EnumCodec<{
190
- readonly v1: Codec<{
191
- signer: string;
192
- payload: {
193
- tag: "Bytes";
194
- value: Uint8Array<ArrayBufferLike>;
195
- } | {
196
- tag: "Payload";
197
- value: string;
198
- };
199
- }>;
200
- }>> & Record<"host_sign_raw_with_legacy_account_response", EnumCodec<{
201
- readonly v1: Codec<import("scale-ts").ResultPayload<{
202
- signature: `0x${string}`;
203
- signedTransaction: `0x${string}` | undefined;
204
- }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
205
- reason: string;
206
- }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
207
162
  }>> & Record<"host_sign_payload_request", EnumCodec<{
208
163
  readonly v1: Codec<{
209
164
  account: [string, number];
@@ -232,34 +187,6 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
232
187
  }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
233
188
  reason: string;
234
189
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
235
- }>> & Record<"host_sign_payload_with_legacy_account_request", EnumCodec<{
236
- readonly v1: Codec<{
237
- signer: string;
238
- payload: {
239
- blockHash: `0x${string}`;
240
- blockNumber: `0x${string}`;
241
- era: `0x${string}`;
242
- genesisHash: `0x${string}`;
243
- method: `0x${string}`;
244
- nonce: `0x${string}`;
245
- specVersion: `0x${string}`;
246
- tip: `0x${string}`;
247
- transactionVersion: `0x${string}`;
248
- signedExtensions: string[];
249
- version: number;
250
- assetId: `0x${string}` | undefined;
251
- metadataHash: `0x${string}` | undefined;
252
- mode: number | undefined;
253
- withSignedTransaction: boolean | undefined;
254
- };
255
- }>;
256
- }>> & Record<"host_sign_payload_with_legacy_account_response", EnumCodec<{
257
- readonly v1: Codec<import("scale-ts").ResultPayload<{
258
- signature: `0x${string}`;
259
- signedTransaction: `0x${string}` | undefined;
260
- }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
261
- reason: string;
262
- }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
263
190
  }>> & Record<"host_chat_create_room_request", EnumCodec<{
264
191
  readonly v1: Codec<{
265
192
  roomId: string;
@@ -596,105 +523,12 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
596
523
  readonly v1: Codec<import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
597
524
  reason: string;
598
525
  }, "PreimageSubmitErr::Unknown">>>;
599
- }>> & Record<"host_payment_balance_subscribe_start", EnumCodec<{
600
- readonly v1: Codec<undefined>;
601
- }>> & Record<"host_payment_balance_subscribe_receive", EnumCodec<{
602
- readonly v1: Codec<{
603
- available: bigint;
604
- }>;
605
- }>> & Record<"host_payment_balance_subscribe_interrupt", EnumCodec<{
606
- readonly v1: [import("scale-ts").Encoder<import("@novasamatech/scale").CodecError<{
607
- reason: string;
608
- }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">>, import("scale-ts").Decoder<import("@novasamatech/scale").CodecError<{
609
- reason: string;
610
- }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">>] & {
611
- enc: import("scale-ts").Encoder<import("@novasamatech/scale").CodecError<{
612
- reason: string;
613
- }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">>;
614
- dec: import("scale-ts").Decoder<import("@novasamatech/scale").CodecError<{
615
- reason: string;
616
- }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">>;
617
- } & {
618
- readonly PermissionDenied: import("@novasamatech/scale").ErrCodec<undefined, "PaymentBalanceErr::PermissionDenied">;
619
- readonly Unknown: import("@novasamatech/scale").ErrCodec<{
620
- reason: string;
621
- }, "PaymentBalanceErr::Unknown">;
622
- };
623
- }>> & Record<"host_payment_balance_subscribe_stop", Codec<undefined>> & Record<"host_payment_top_up_request", EnumCodec<{
624
- readonly v1: Codec<{
625
- amount: bigint;
626
- source: {
627
- tag: "ProductAccount";
628
- value: [string, number];
629
- } | {
630
- tag: "PrivateKey";
631
- value: Uint8Array<ArrayBufferLike>;
632
- };
633
- }>;
634
- }>> & Record<"host_payment_top_up_response", EnumCodec<{
635
- readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
636
- reason: string;
637
- }, "PaymentTopUpErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InsufficientFunds"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InvalidSource">>>;
638
- }>> & Record<"host_payment_request_request", EnumCodec<{
639
- readonly v1: Codec<{
640
- amount: bigint;
641
- destination: Uint8Array<ArrayBufferLike>;
642
- }>;
643
- }>> & Record<"host_payment_request_response", EnumCodec<{
644
- readonly v1: Codec<import("scale-ts").ResultPayload<{
645
- id: string;
646
- }, import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::Rejected"> | import("@novasamatech/scale").CodecError<{
647
- reason: string;
648
- }, "PaymentRequestErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::InsufficientBalance">>>;
649
- }>> & Record<"host_payment_status_subscribe_start", EnumCodec<{
650
- readonly v1: Codec<string>;
651
- }>> & Record<"host_payment_status_subscribe_receive", EnumCodec<{
652
- readonly v1: Codec<{
653
- tag: "Processing";
654
- value: undefined;
655
- } | {
656
- tag: "Completed";
657
- value: undefined;
658
- } | {
659
- tag: "Failed";
660
- value: string;
661
- }>;
662
- }>> & Record<"host_payment_status_subscribe_interrupt", EnumCodec<{
663
- readonly v1: [import("scale-ts").Encoder<import("@novasamatech/scale").CodecError<{
664
- reason: string;
665
- }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">>, import("scale-ts").Decoder<import("@novasamatech/scale").CodecError<{
666
- reason: string;
667
- }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">>] & {
668
- enc: import("scale-ts").Encoder<import("@novasamatech/scale").CodecError<{
669
- reason: string;
670
- }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">>;
671
- dec: import("scale-ts").Decoder<import("@novasamatech/scale").CodecError<{
672
- reason: string;
673
- }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">>;
674
- } & {
675
- readonly PaymentNotFound: import("@novasamatech/scale").ErrCodec<undefined, "PaymentStatusErr::PaymentNotFound">;
676
- readonly Unknown: import("@novasamatech/scale").ErrCodec<{
677
- reason: string;
678
- }, "PaymentStatusErr::Unknown">;
679
- };
680
- }>> & Record<"host_payment_status_subscribe_stop", Codec<undefined>> & Record<"host_jsonrpc_message_send_request", EnumCodec<{
681
- readonly v1: Codec<[`0x${string}`, string]>;
682
- }>> & Record<"host_jsonrpc_message_send_response", EnumCodec<{
683
- readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
684
- reason: string;
685
- }, "GenericError">>>;
686
- }>> & Record<"host_jsonrpc_message_subscribe_start", EnumCodec<{
687
- readonly v1: Codec<`0x${string}`>;
688
- }>> & Record<"host_jsonrpc_message_subscribe_receive", EnumCodec<{
689
- readonly v1: Codec<string>;
690
- }>> & Record<"host_jsonrpc_message_subscribe_interrupt", EnumCodec<{
691
- readonly v1: Codec<undefined>;
692
- }>> & Record<"host_jsonrpc_message_subscribe_stop", Codec<undefined>> & Record<"remote_chain_head_follow_start", EnumCodec<{
526
+ }>> & Record<"remote_chain_head_follow_subscribe_start", EnumCodec<{
693
527
  readonly v1: Codec<{
694
528
  genesisHash: `0x${string}`;
695
529
  withRuntime: boolean;
696
530
  }>;
697
- }>> & Record<"remote_chain_head_follow_receive", EnumCodec<{
531
+ }>> & Record<"remote_chain_head_follow_subscribe_receive", EnumCodec<{
698
532
  readonly v1: Codec<{
699
533
  tag: "Initialized";
700
534
  value: {
@@ -797,9 +631,9 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
797
631
  tag: "Stop";
798
632
  value: undefined;
799
633
  }>;
800
- }>> & Record<"remote_chain_head_follow_interrupt", EnumCodec<{
634
+ }>> & Record<"remote_chain_head_follow_subscribe_interrupt", EnumCodec<{
801
635
  readonly v1: Codec<undefined>;
802
- }>> & Record<"remote_chain_head_follow_stop", Codec<undefined>> & Record<"remote_chain_head_header_request", EnumCodec<{
636
+ }>> & Record<"remote_chain_head_follow_subscribe_stop", Codec<undefined>> & Record<"remote_chain_head_header_request", EnumCodec<{
803
637
  readonly v1: Codec<{
804
638
  genesisHash: `0x${string}`;
805
639
  followSubscriptionId: string;
@@ -936,105 +770,224 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
936
770
  readonly v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
937
771
  reason: string;
938
772
  }, "GenericError">>>;
939
- }>>>;
940
- export declare const Message: Codec<{
941
- requestId: string;
942
- payload: {
943
- tag: "host_handshake_request";
944
- value: {
945
- tag: "v1";
946
- value: number;
947
- };
948
- } | {
949
- tag: "host_handshake_response";
950
- value: {
951
- tag: "v1";
952
- value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
953
- reason: string;
954
- }, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>;
955
- };
956
- } | {
957
- tag: "host_feature_supported_request";
958
- value: {
959
- tag: "v1";
960
- value: {
961
- tag: "Chain";
962
- value: `0x${string}`;
963
- };
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;
964
809
  };
965
- } | {
966
- tag: "host_feature_supported_response";
967
- value: {
968
- tag: "v1";
969
- value: import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
970
- reason: string;
971
- }, "GenericError">>;
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;
972
837
  };
973
- } | {
974
- tag: "host_push_notification_request";
975
- value: {
976
- tag: "v1";
977
- value: {
978
- text: string;
979
- deeplink: string | undefined;
980
- };
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>;
981
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;
982
902
  } | {
983
- tag: "host_push_notification_response";
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>>>;
928
+ export declare const Message: Codec<{
929
+ requestId: string;
930
+ payload: {
931
+ tag: "host_handshake_request";
984
932
  value: {
985
933
  tag: "v1";
986
- value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
987
- reason: string;
988
- }, "GenericError">>;
934
+ value: number;
989
935
  };
990
936
  } | {
991
- tag: "host_theme_subscribe_start";
937
+ tag: "host_handshake_response";
992
938
  value: {
993
939
  tag: "v1";
994
- value: undefined;
940
+ value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
941
+ reason: string;
942
+ }, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>;
995
943
  };
996
944
  } | {
997
- tag: "host_theme_subscribe_receive";
945
+ tag: "host_feature_supported_request";
998
946
  value: {
999
947
  tag: "v1";
1000
- value: "light" | "dark";
948
+ value: {
949
+ tag: "Chain";
950
+ value: `0x${string}`;
951
+ };
1001
952
  };
1002
953
  } | {
1003
- tag: "host_theme_subscribe_interrupt";
954
+ tag: "host_feature_supported_response";
1004
955
  value: {
1005
956
  tag: "v1";
1006
- value: undefined;
957
+ value: import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
958
+ reason: string;
959
+ }, "GenericError">>;
1007
960
  };
1008
961
  } | {
1009
- tag: "host_theme_subscribe_stop";
1010
- value: undefined;
1011
- } | {
1012
- tag: "host_navigate_to_request";
962
+ tag: "host_push_notification_request";
1013
963
  value: {
1014
964
  tag: "v1";
1015
- value: string;
965
+ value: {
966
+ text: string;
967
+ deeplink: string | undefined;
968
+ };
1016
969
  };
1017
970
  } | {
1018
- tag: "host_navigate_to_response";
971
+ tag: "host_push_notification_response";
1019
972
  value: {
1020
973
  tag: "v1";
1021
974
  value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
1022
975
  reason: string;
1023
- }, "NavigateToErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "NavigateToErr::PermissionDenied">>;
976
+ }, "GenericError">>;
1024
977
  };
1025
978
  } | {
1026
- tag: "host_derive_entropy_request";
979
+ tag: "host_navigate_to_request";
1027
980
  value: {
1028
981
  tag: "v1";
1029
- value: Uint8Array<ArrayBufferLike>;
982
+ value: string;
1030
983
  };
1031
984
  } | {
1032
- tag: "host_derive_entropy_response";
985
+ tag: "host_navigate_to_response";
1033
986
  value: {
1034
987
  tag: "v1";
1035
- value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
988
+ value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
1036
989
  reason: string;
1037
- }, "DeriveEntropyErr::Unknown">>;
990
+ }, "NavigateToErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "NavigateToErr::PermissionDenied">>;
1038
991
  };
1039
992
  } | {
1040
993
  tag: "host_device_permission_request";
@@ -1121,37 +1074,6 @@ export declare const Message: Codec<{
1121
1074
  reason: string;
1122
1075
  }, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
1123
1076
  };
1124
- } | {
1125
- tag: "host_account_get_root_request";
1126
- value: {
1127
- tag: "v1";
1128
- value: undefined;
1129
- };
1130
- } | {
1131
- tag: "host_account_get_root_response";
1132
- value: {
1133
- tag: "v1";
1134
- value: import("scale-ts").ResultPayload<{
1135
- publicKey: Uint8Array<ArrayBufferLike>;
1136
- name: string | undefined;
1137
- }, 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<{
1138
- reason: string;
1139
- }, "RequestCredentialsErr::Unknown">>;
1140
- };
1141
- } | {
1142
- tag: "host_request_login_request";
1143
- value: {
1144
- tag: "v1";
1145
- value: string | undefined;
1146
- };
1147
- } | {
1148
- tag: "host_request_login_response";
1149
- value: {
1150
- tag: "v1";
1151
- value: import("scale-ts").ResultPayload<"success" | "alreadyConnected" | "rejected", import("@novasamatech/scale").CodecError<{
1152
- reason: string;
1153
- }, "LoginErr::Unknown">>;
1154
- };
1155
1077
  } | {
1156
1078
  tag: "host_account_connection_status_subscribe_start";
1157
1079
  value: {
@@ -1298,32 +1220,6 @@ export declare const Message: Codec<{
1298
1220
  reason: string;
1299
1221
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
1300
1222
  };
1301
- } | {
1302
- tag: "host_sign_raw_with_legacy_account_request";
1303
- value: {
1304
- tag: "v1";
1305
- value: {
1306
- signer: string;
1307
- payload: {
1308
- tag: "Bytes";
1309
- value: Uint8Array<ArrayBufferLike>;
1310
- } | {
1311
- tag: "Payload";
1312
- value: string;
1313
- };
1314
- };
1315
- };
1316
- } | {
1317
- tag: "host_sign_raw_with_legacy_account_response";
1318
- value: {
1319
- tag: "v1";
1320
- value: import("scale-ts").ResultPayload<{
1321
- signature: `0x${string}`;
1322
- signedTransaction: `0x${string}` | undefined;
1323
- }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
1324
- reason: string;
1325
- }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
1326
- };
1327
1223
  } | {
1328
1224
  tag: "host_sign_payload_request";
1329
1225
  value: {
@@ -1360,42 +1256,6 @@ export declare const Message: Codec<{
1360
1256
  reason: string;
1361
1257
  }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
1362
1258
  };
1363
- } | {
1364
- tag: "host_sign_payload_with_legacy_account_request";
1365
- value: {
1366
- tag: "v1";
1367
- value: {
1368
- signer: string;
1369
- payload: {
1370
- blockHash: `0x${string}`;
1371
- blockNumber: `0x${string}`;
1372
- era: `0x${string}`;
1373
- genesisHash: `0x${string}`;
1374
- method: `0x${string}`;
1375
- nonce: `0x${string}`;
1376
- specVersion: `0x${string}`;
1377
- tip: `0x${string}`;
1378
- transactionVersion: `0x${string}`;
1379
- signedExtensions: string[];
1380
- version: number;
1381
- assetId: `0x${string}` | undefined;
1382
- metadataHash: `0x${string}` | undefined;
1383
- mode: number | undefined;
1384
- withSignedTransaction: boolean | undefined;
1385
- };
1386
- };
1387
- };
1388
- } | {
1389
- tag: "host_sign_payload_with_legacy_account_response";
1390
- value: {
1391
- tag: "v1";
1392
- value: import("scale-ts").ResultPayload<{
1393
- signature: `0x${string}`;
1394
- signedTransaction: `0x${string}` | undefined;
1395
- }, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
1396
- reason: string;
1397
- }, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
1398
- };
1399
1259
  } | {
1400
1260
  tag: "host_chat_create_room_request";
1401
1261
  value: {
@@ -1856,150 +1716,16 @@ export declare const Message: Codec<{
1856
1716
  }, "PreimageSubmitErr::Unknown">>;
1857
1717
  };
1858
1718
  } | {
1859
- tag: "host_payment_balance_subscribe_start";
1860
- value: {
1861
- tag: "v1";
1862
- value: undefined;
1863
- };
1864
- } | {
1865
- tag: "host_payment_balance_subscribe_receive";
1719
+ tag: "remote_chain_head_follow_subscribe_start";
1866
1720
  value: {
1867
1721
  tag: "v1";
1868
1722
  value: {
1869
- available: bigint;
1723
+ genesisHash: `0x${string}`;
1724
+ withRuntime: boolean;
1870
1725
  };
1871
1726
  };
1872
1727
  } | {
1873
- tag: "host_payment_balance_subscribe_interrupt";
1874
- value: {
1875
- tag: "v1";
1876
- value: import("@novasamatech/scale").CodecError<{
1877
- reason: string;
1878
- }, "PaymentBalanceErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentBalanceErr::PermissionDenied">;
1879
- };
1880
- } | {
1881
- tag: "host_payment_balance_subscribe_stop";
1882
- value: undefined;
1883
- } | {
1884
- tag: "host_payment_top_up_request";
1885
- value: {
1886
- tag: "v1";
1887
- value: {
1888
- amount: bigint;
1889
- source: {
1890
- tag: "ProductAccount";
1891
- value: [string, number];
1892
- } | {
1893
- tag: "PrivateKey";
1894
- value: Uint8Array<ArrayBufferLike>;
1895
- };
1896
- };
1897
- };
1898
- } | {
1899
- tag: "host_payment_top_up_response";
1900
- value: {
1901
- tag: "v1";
1902
- value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
1903
- reason: string;
1904
- }, "PaymentTopUpErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InsufficientFunds"> | import("@novasamatech/scale").CodecError<undefined, "PaymentTopUpErr::InvalidSource">>;
1905
- };
1906
- } | {
1907
- tag: "host_payment_request_request";
1908
- value: {
1909
- tag: "v1";
1910
- value: {
1911
- amount: bigint;
1912
- destination: Uint8Array<ArrayBufferLike>;
1913
- };
1914
- };
1915
- } | {
1916
- tag: "host_payment_request_response";
1917
- value: {
1918
- tag: "v1";
1919
- value: import("scale-ts").ResultPayload<{
1920
- id: string;
1921
- }, import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::Rejected"> | import("@novasamatech/scale").CodecError<{
1922
- reason: string;
1923
- }, "PaymentRequestErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentRequestErr::InsufficientBalance">>;
1924
- };
1925
- } | {
1926
- tag: "host_payment_status_subscribe_start";
1927
- value: {
1928
- tag: "v1";
1929
- value: string;
1930
- };
1931
- } | {
1932
- tag: "host_payment_status_subscribe_receive";
1933
- value: {
1934
- tag: "v1";
1935
- value: {
1936
- tag: "Processing";
1937
- value: undefined;
1938
- } | {
1939
- tag: "Completed";
1940
- value: undefined;
1941
- } | {
1942
- tag: "Failed";
1943
- value: string;
1944
- };
1945
- };
1946
- } | {
1947
- tag: "host_payment_status_subscribe_interrupt";
1948
- value: {
1949
- tag: "v1";
1950
- value: import("@novasamatech/scale").CodecError<{
1951
- reason: string;
1952
- }, "PaymentStatusErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "PaymentStatusErr::PaymentNotFound">;
1953
- };
1954
- } | {
1955
- tag: "host_payment_status_subscribe_stop";
1956
- value: undefined;
1957
- } | {
1958
- tag: "host_jsonrpc_message_send_request";
1959
- value: {
1960
- tag: "v1";
1961
- value: [`0x${string}`, string];
1962
- };
1963
- } | {
1964
- tag: "host_jsonrpc_message_send_response";
1965
- value: {
1966
- tag: "v1";
1967
- value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
1968
- reason: string;
1969
- }, "GenericError">>;
1970
- };
1971
- } | {
1972
- tag: "host_jsonrpc_message_subscribe_start";
1973
- value: {
1974
- tag: "v1";
1975
- value: `0x${string}`;
1976
- };
1977
- } | {
1978
- tag: "host_jsonrpc_message_subscribe_receive";
1979
- value: {
1980
- tag: "v1";
1981
- value: string;
1982
- };
1983
- } | {
1984
- tag: "host_jsonrpc_message_subscribe_interrupt";
1985
- value: {
1986
- tag: "v1";
1987
- value: undefined;
1988
- };
1989
- } | {
1990
- tag: "host_jsonrpc_message_subscribe_stop";
1991
- value: undefined;
1992
- } | {
1993
- tag: "remote_chain_head_follow_start";
1994
- value: {
1995
- tag: "v1";
1996
- value: {
1997
- genesisHash: `0x${string}`;
1998
- withRuntime: boolean;
1999
- };
2000
- };
2001
- } | {
2002
- tag: "remote_chain_head_follow_receive";
1728
+ tag: "remote_chain_head_follow_subscribe_receive";
2003
1729
  value: {
2004
1730
  tag: "v1";
2005
1731
  value: {
@@ -2106,13 +1832,13 @@ export declare const Message: Codec<{
2106
1832
  };
2107
1833
  };
2108
1834
  } | {
2109
- tag: "remote_chain_head_follow_interrupt";
1835
+ tag: "remote_chain_head_follow_subscribe_interrupt";
2110
1836
  value: {
2111
1837
  tag: "v1";
2112
1838
  value: undefined;
2113
1839
  };
2114
1840
  } | {
2115
- tag: "remote_chain_head_follow_stop";
1841
+ tag: "remote_chain_head_follow_subscribe_stop";
2116
1842
  value: undefined;
2117
1843
  } | {
2118
1844
  tag: "remote_chain_head_header_request";
@@ -2347,6 +2073,233 @@ export declare const Message: Codec<{
2347
2073
  reason: string;
2348
2074
  }, "GenericError">>;
2349
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;
2350
2303
  };
2351
2304
  }>;
2352
2305
  export type MessageAction = MessagePayloadSchema['tag'];