@novasamatech/host-api 0.5.2 → 0.5.4-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/helpers.d.ts +0 -29
- package/dist/helpers.js +0 -30
- package/dist/hostApi.d.ts +3 -2
- package/dist/hostApi.js +65 -42
- package/dist/index.d.ts +8 -7
- package/dist/index.js +5 -5
- package/dist/protocol/commonCodecs.d.ts +3 -38
- package/dist/protocol/commonCodecs.js +2 -59
- package/dist/protocol/impl.d.ts +22 -14
- package/dist/protocol/impl.js +23 -15
- package/dist/protocol/messageCodec.d.ts +554 -668
- package/dist/protocol/messageCodec.js +3 -3
- package/dist/protocol/v1/accounts.d.ts +37 -209
- package/dist/protocol/v1/accounts.js +2 -1
- package/dist/protocol/v1/chat.d.ts +224 -149
- package/dist/protocol/v1/chat.js +51 -12
- package/dist/protocol/v1/createTransaction.d.ts +21 -116
- package/dist/protocol/v1/createTransaction.js +7 -5
- package/dist/protocol/v1/feature.d.ts +3 -7
- package/dist/protocol/v1/feature.js +2 -1
- package/dist/protocol/v1/handshake.d.ts +15 -75
- package/dist/protocol/v1/handshake.js +2 -1
- package/dist/protocol/v1/jsonRpc.d.ts +3 -7
- package/dist/protocol/v1/permission.d.ts +14 -54
- package/dist/protocol/v1/permission.js +2 -1
- package/dist/protocol/v1/sign.d.ts +19 -90
- package/dist/protocol/v1/sign.js +6 -4
- package/dist/protocol/v1/statementStore.d.ts +153 -74
- package/dist/protocol/v1/statementStore.js +18 -1
- package/dist/protocol/v1/storage.d.ts +24 -80
- package/dist/protocol/v1/storage.js +5 -4
- package/dist/transport.js +5 -4
- package/dist/types.d.ts +6 -4
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { EnumCodec } from '@novasamatech/scale';
|
|
1
2
|
import type { Codec, CodecType } from 'scale-ts';
|
|
2
|
-
import type { EnumCodec } from './commonCodecs.js';
|
|
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']>;
|
|
@@ -12,152 +12,54 @@ export type MessagePayloadSchema = CodecType<EnumCodec<HostApiPayloadFields>>;
|
|
|
12
12
|
export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumCodec<{
|
|
13
13
|
v1: Codec<number>;
|
|
14
14
|
}>> & Record<"handshake_response", EnumCodec<{
|
|
15
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
payload: {
|
|
19
|
-
reason: string;
|
|
20
|
-
};
|
|
21
|
-
}) | (Error & {
|
|
22
|
-
name: "HandshakeErr::Timeout";
|
|
23
|
-
className: string;
|
|
24
|
-
payload: undefined;
|
|
25
|
-
}) | (Error & {
|
|
26
|
-
name: "HandshakeErr::UnsupportedProtocolVersion";
|
|
27
|
-
className: string;
|
|
28
|
-
payload: undefined;
|
|
29
|
-
})>>;
|
|
15
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
16
|
+
reason: string;
|
|
17
|
+
}, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>>;
|
|
30
18
|
}>> & Record<"feature_request", EnumCodec<{
|
|
31
19
|
v1: Codec<{
|
|
32
20
|
tag: "Chain";
|
|
33
21
|
value: `0x${string}`;
|
|
34
22
|
}>;
|
|
35
23
|
}>> & Record<"feature_response", EnumCodec<{
|
|
36
|
-
v1: Codec<import("scale-ts").ResultPayload<boolean,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
}>> & Record<"permission_request_response", EnumCodec<{
|
|
58
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, (Error & {
|
|
59
|
-
name: "PermissionErr::Rejected";
|
|
60
|
-
className: string;
|
|
61
|
-
payload: undefined;
|
|
62
|
-
}) | (Error & {
|
|
63
|
-
name: "PermissionErr::Unknown";
|
|
64
|
-
className: string;
|
|
65
|
-
payload: {
|
|
66
|
-
reason: string;
|
|
67
|
-
};
|
|
68
|
-
})>>;
|
|
69
|
-
}>> & Record<"storage_read_request", EnumCodec<{
|
|
70
|
-
v1: Codec<`0x${string}`>;
|
|
71
|
-
}>> & Record<"storage_read_response", EnumCodec<{
|
|
72
|
-
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, (Error & {
|
|
73
|
-
name: "StorageErr::Unknown";
|
|
74
|
-
className: string;
|
|
75
|
-
payload: {
|
|
76
|
-
reason: string;
|
|
77
|
-
};
|
|
78
|
-
}) | (Error & {
|
|
79
|
-
name: "StorageErr::Full";
|
|
80
|
-
className: string;
|
|
81
|
-
payload: undefined;
|
|
82
|
-
})>>;
|
|
83
|
-
}>> & Record<"storage_write_request", EnumCodec<{
|
|
84
|
-
v1: Codec<[`0x${string}`, Uint8Array<ArrayBufferLike>]>;
|
|
85
|
-
}>> & Record<"storage_write_response", EnumCodec<{
|
|
86
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, (Error & {
|
|
87
|
-
name: "StorageErr::Unknown";
|
|
88
|
-
className: string;
|
|
89
|
-
payload: {
|
|
90
|
-
reason: string;
|
|
91
|
-
};
|
|
92
|
-
}) | (Error & {
|
|
93
|
-
name: "StorageErr::Full";
|
|
94
|
-
className: string;
|
|
95
|
-
payload: undefined;
|
|
96
|
-
})>>;
|
|
97
|
-
}>> & Record<"storage_clear_request", EnumCodec<{
|
|
98
|
-
v1: Codec<`0x${string}`>;
|
|
99
|
-
}>> & Record<"storage_clear_response", EnumCodec<{
|
|
100
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, (Error & {
|
|
101
|
-
name: "StorageErr::Unknown";
|
|
102
|
-
className: string;
|
|
103
|
-
payload: {
|
|
104
|
-
reason: string;
|
|
105
|
-
};
|
|
106
|
-
}) | (Error & {
|
|
107
|
-
name: "StorageErr::Full";
|
|
108
|
-
className: string;
|
|
109
|
-
payload: undefined;
|
|
110
|
-
})>>;
|
|
24
|
+
v1: Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
|
|
25
|
+
reason: string;
|
|
26
|
+
}, "GenericError">>>;
|
|
27
|
+
}>> & Record<"local_storage_read_request", EnumCodec<{
|
|
28
|
+
v1: Codec<string>;
|
|
29
|
+
}>> & Record<"local_storage_read_response", EnumCodec<{
|
|
30
|
+
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
|
|
31
|
+
reason: string;
|
|
32
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
33
|
+
}>> & Record<"local_storage_write_request", EnumCodec<{
|
|
34
|
+
v1: Codec<[string, Uint8Array<ArrayBufferLike>]>;
|
|
35
|
+
}>> & Record<"local_storage_write_response", EnumCodec<{
|
|
36
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
37
|
+
reason: string;
|
|
38
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
39
|
+
}>> & Record<"local_storage_clear_request", EnumCodec<{
|
|
40
|
+
v1: Codec<string>;
|
|
41
|
+
}>> & Record<"local_storage_clear_response", EnumCodec<{
|
|
42
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
43
|
+
reason: string;
|
|
44
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
111
45
|
}>> & Record<"account_get_request", EnumCodec<{
|
|
112
46
|
v1: Codec<[string, number]>;
|
|
113
47
|
}>> & Record<"account_get_response", EnumCodec<{
|
|
114
48
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
115
49
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
116
50
|
name: string | undefined;
|
|
117
|
-
}, (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
payload: undefined;
|
|
121
|
-
}) | (Error & {
|
|
122
|
-
name: "RequestCredentialsErr::Rejected";
|
|
123
|
-
className: string;
|
|
124
|
-
payload: undefined;
|
|
125
|
-
}) | (Error & {
|
|
126
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
127
|
-
className: string;
|
|
128
|
-
payload: undefined;
|
|
129
|
-
}) | (Error & {
|
|
130
|
-
name: "RequestCredentialsErr::Unknown";
|
|
131
|
-
className: string;
|
|
132
|
-
payload: {
|
|
133
|
-
reason: string;
|
|
134
|
-
};
|
|
135
|
-
})>>;
|
|
51
|
+
}, import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
|
|
52
|
+
reason: string;
|
|
53
|
+
}, "RequestCredentialsErr::Unknown">>>;
|
|
136
54
|
}>> & Record<"account_get_alias_request", EnumCodec<{
|
|
137
55
|
v1: Codec<[string, number]>;
|
|
138
56
|
}>> & Record<"account_get_alias_response", EnumCodec<{
|
|
139
57
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
140
58
|
context: Uint8Array<ArrayBufferLike>;
|
|
141
59
|
alias: Uint8Array<ArrayBufferLike>;
|
|
142
|
-
}, (
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
payload: undefined;
|
|
146
|
-
}) | (Error & {
|
|
147
|
-
name: "RequestCredentialsErr::Rejected";
|
|
148
|
-
className: string;
|
|
149
|
-
payload: undefined;
|
|
150
|
-
}) | (Error & {
|
|
151
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
152
|
-
className: string;
|
|
153
|
-
payload: undefined;
|
|
154
|
-
}) | (Error & {
|
|
155
|
-
name: "RequestCredentialsErr::Unknown";
|
|
156
|
-
className: string;
|
|
157
|
-
payload: {
|
|
158
|
-
reason: string;
|
|
159
|
-
};
|
|
160
|
-
})>>;
|
|
60
|
+
}, import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
|
|
61
|
+
reason: string;
|
|
62
|
+
}, "RequestCredentialsErr::Unknown">>>;
|
|
161
63
|
}>> & Record<"account_create_proof_request", EnumCodec<{
|
|
162
64
|
v1: Codec<[[string, number], {
|
|
163
65
|
genesisHash: `0x${string}`;
|
|
@@ -167,90 +69,30 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
167
69
|
} | undefined;
|
|
168
70
|
}, Uint8Array<ArrayBufferLike>]>;
|
|
169
71
|
}>> & Record<"account_create_proof_response", EnumCodec<{
|
|
170
|
-
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
payload: undefined;
|
|
174
|
-
}) | (Error & {
|
|
175
|
-
name: "CreateProofErr::Unknown";
|
|
176
|
-
className: string;
|
|
177
|
-
payload: {
|
|
178
|
-
reason: string;
|
|
179
|
-
};
|
|
180
|
-
}) | (Error & {
|
|
181
|
-
name: "CreateProofErr::RingNotFound";
|
|
182
|
-
className: string;
|
|
183
|
-
payload: undefined;
|
|
184
|
-
})>>;
|
|
72
|
+
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
73
|
+
reason: string;
|
|
74
|
+
}, "CreateProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::RingNotFound">>>;
|
|
185
75
|
}>> & Record<"get_non_product_accounts_request", EnumCodec<{
|
|
186
76
|
v1: Codec<undefined>;
|
|
187
77
|
}>> & Record<"get_non_product_accounts_response", EnumCodec<{
|
|
188
78
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
189
79
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
190
80
|
name: string | undefined;
|
|
191
|
-
}[], (
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
payload: undefined;
|
|
195
|
-
}) | (Error & {
|
|
196
|
-
name: "RequestCredentialsErr::Rejected";
|
|
197
|
-
className: string;
|
|
198
|
-
payload: undefined;
|
|
199
|
-
}) | (Error & {
|
|
200
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
201
|
-
className: string;
|
|
202
|
-
payload: undefined;
|
|
203
|
-
}) | (Error & {
|
|
204
|
-
name: "RequestCredentialsErr::Unknown";
|
|
205
|
-
className: string;
|
|
206
|
-
payload: {
|
|
207
|
-
reason: string;
|
|
208
|
-
};
|
|
209
|
-
})>>;
|
|
81
|
+
}[], import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
|
|
82
|
+
reason: string;
|
|
83
|
+
}, "RequestCredentialsErr::Unknown">>>;
|
|
210
84
|
}>> & Record<"create_transaction_request", EnumCodec<{
|
|
211
85
|
v1: Codec<[[string, number], import("./v1/createTransaction.js").TxPayloadV1Public]>;
|
|
212
86
|
}>> & Record<"create_transaction_response", EnumCodec<{
|
|
213
|
-
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
payload: undefined;
|
|
217
|
-
}) | (Error & {
|
|
218
|
-
name: "CreateTransactionErr::Unknown";
|
|
219
|
-
className: string;
|
|
220
|
-
payload: {
|
|
221
|
-
reason: string;
|
|
222
|
-
};
|
|
223
|
-
}) | (Error & {
|
|
224
|
-
name: "CreateTransactionErr::FailedToDecode";
|
|
225
|
-
className: string;
|
|
226
|
-
payload: undefined;
|
|
227
|
-
}) | (Error & {
|
|
228
|
-
name: "CreateTransactionErr::NotSupported";
|
|
229
|
-
className: string;
|
|
230
|
-
payload: string;
|
|
231
|
-
})>>;
|
|
87
|
+
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
88
|
+
reason: string;
|
|
89
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
|
|
232
90
|
}>> & Record<"create_transaction_with_non_product_account_request", EnumCodec<{
|
|
233
91
|
v1: Codec<import("./v1/createTransaction.js").TxPayloadV1Public>;
|
|
234
92
|
}>> & Record<"create_transaction_with_non_product_account_response", EnumCodec<{
|
|
235
|
-
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
payload: undefined;
|
|
239
|
-
}) | (Error & {
|
|
240
|
-
name: "CreateTransactionErr::Unknown";
|
|
241
|
-
className: string;
|
|
242
|
-
payload: {
|
|
243
|
-
reason: string;
|
|
244
|
-
};
|
|
245
|
-
}) | (Error & {
|
|
246
|
-
name: "CreateTransactionErr::FailedToDecode";
|
|
247
|
-
className: string;
|
|
248
|
-
payload: undefined;
|
|
249
|
-
}) | (Error & {
|
|
250
|
-
name: "CreateTransactionErr::NotSupported";
|
|
251
|
-
className: string;
|
|
252
|
-
payload: string;
|
|
253
|
-
})>>;
|
|
93
|
+
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
94
|
+
reason: string;
|
|
95
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
|
|
254
96
|
}>> & Record<"sign_raw_request", EnumCodec<{
|
|
255
97
|
v1: Codec<{
|
|
256
98
|
address: string;
|
|
@@ -266,21 +108,9 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
266
108
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
267
109
|
signature: `0x${string}`;
|
|
268
110
|
signedTransaction: `0x${string}` | undefined;
|
|
269
|
-
}, (
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
payload: undefined;
|
|
273
|
-
}) | (Error & {
|
|
274
|
-
name: "SigningErr::Unknown";
|
|
275
|
-
className: string;
|
|
276
|
-
payload: {
|
|
277
|
-
reason: string;
|
|
278
|
-
};
|
|
279
|
-
}) | (Error & {
|
|
280
|
-
name: "SigningErr::FailedToDecode";
|
|
281
|
-
className: string;
|
|
282
|
-
payload: undefined;
|
|
283
|
-
})>>;
|
|
111
|
+
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
112
|
+
reason: string;
|
|
113
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
284
114
|
}>> & Record<"sign_payload_request", EnumCodec<{
|
|
285
115
|
v1: Codec<{
|
|
286
116
|
address: string;
|
|
@@ -304,98 +134,32 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
304
134
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
305
135
|
signature: `0x${string}`;
|
|
306
136
|
signedTransaction: `0x${string}` | undefined;
|
|
307
|
-
}, (
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}) | (Error & {
|
|
312
|
-
name: "SigningErr::Unknown";
|
|
313
|
-
className: string;
|
|
314
|
-
payload: {
|
|
315
|
-
reason: string;
|
|
316
|
-
};
|
|
317
|
-
}) | (Error & {
|
|
318
|
-
name: "SigningErr::FailedToDecode";
|
|
319
|
-
className: string;
|
|
320
|
-
payload: undefined;
|
|
321
|
-
})>>;
|
|
322
|
-
}>> & Record<"chat_create_contact_request", EnumCodec<{
|
|
137
|
+
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
138
|
+
reason: string;
|
|
139
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
140
|
+
}>> & Record<"chat_create_room_request", EnumCodec<{
|
|
323
141
|
v1: Codec<{
|
|
142
|
+
roomId: string;
|
|
324
143
|
name: string;
|
|
325
144
|
icon: string;
|
|
326
145
|
}>;
|
|
327
|
-
}>> & Record<"
|
|
328
|
-
v1: Codec<import("scale-ts").ResultPayload<"New" | "Exists", Error & {
|
|
329
|
-
name: "ChatContactRegistrationErr::Unknown";
|
|
330
|
-
className: string;
|
|
331
|
-
payload: {
|
|
332
|
-
reason: string;
|
|
333
|
-
};
|
|
334
|
-
}>>;
|
|
335
|
-
}>> & Record<"chat_post_message_request", EnumCodec<{
|
|
336
|
-
v1: Codec<{
|
|
337
|
-
tag: "Text";
|
|
338
|
-
value: string;
|
|
339
|
-
} | {
|
|
340
|
-
tag: "RichText";
|
|
341
|
-
value: {
|
|
342
|
-
text: string | undefined;
|
|
343
|
-
media: {
|
|
344
|
-
url: string;
|
|
345
|
-
}[];
|
|
346
|
-
};
|
|
347
|
-
} | {
|
|
348
|
-
tag: "Actions";
|
|
349
|
-
value: {
|
|
350
|
-
text: string | undefined;
|
|
351
|
-
actions: {
|
|
352
|
-
actionId: string;
|
|
353
|
-
title: string;
|
|
354
|
-
}[];
|
|
355
|
-
layout: "Column" | "Grid";
|
|
356
|
-
};
|
|
357
|
-
} | {
|
|
358
|
-
tag: "File";
|
|
359
|
-
value: {
|
|
360
|
-
url: string;
|
|
361
|
-
fileName: string;
|
|
362
|
-
mimeType: string;
|
|
363
|
-
sizeBytes: bigint;
|
|
364
|
-
text: string | undefined;
|
|
365
|
-
};
|
|
366
|
-
} | {
|
|
367
|
-
tag: "Reaction";
|
|
368
|
-
value: {
|
|
369
|
-
messageId: string;
|
|
370
|
-
emoji: string;
|
|
371
|
-
};
|
|
372
|
-
} | {
|
|
373
|
-
tag: "ReactionRemoved";
|
|
374
|
-
value: {
|
|
375
|
-
messageId: string;
|
|
376
|
-
emoji: string;
|
|
377
|
-
};
|
|
378
|
-
}>;
|
|
379
|
-
}>> & Record<"chat_post_message_response", EnumCodec<{
|
|
146
|
+
}>> & Record<"chat_create_room_response", EnumCodec<{
|
|
380
147
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
381
|
-
|
|
382
|
-
}, (
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
reason: string;
|
|
387
|
-
};
|
|
388
|
-
}) | (Error & {
|
|
389
|
-
name: "ChatMessagePostingErr::MessageTooLarge";
|
|
390
|
-
className: string;
|
|
391
|
-
payload: undefined;
|
|
392
|
-
})>>;
|
|
393
|
-
}>> & Record<"chat_action_subscribe_start", EnumCodec<{
|
|
148
|
+
status: "New" | "Exists";
|
|
149
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
150
|
+
reason: string;
|
|
151
|
+
}, "ChatRoomRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatRoomRegistrationErr::PermissionDenied">>>;
|
|
152
|
+
}>> & Record<"chat_list_subscribe_start", EnumCodec<{
|
|
394
153
|
v1: Codec<undefined>;
|
|
395
|
-
}>> & Record<"
|
|
154
|
+
}>> & Record<"chat_list_subscribe_receive", EnumCodec<{
|
|
396
155
|
v1: Codec<{
|
|
397
|
-
|
|
398
|
-
|
|
156
|
+
roomId: string;
|
|
157
|
+
participatingAs: "RoomHost" | "Bot";
|
|
158
|
+
}[]>;
|
|
159
|
+
}>> & Record<"chat_list_subscribe_interrupt", Codec<undefined>> & Record<"chat_list_subscribe_stop", Codec<undefined>> & Record<"chat_post_message_request", EnumCodec<{
|
|
160
|
+
v1: Codec<{
|
|
161
|
+
roomId: string;
|
|
162
|
+
payload: {
|
|
399
163
|
tag: "Text";
|
|
400
164
|
value: string;
|
|
401
165
|
} | {
|
|
@@ -438,14 +202,153 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
438
202
|
emoji: string;
|
|
439
203
|
};
|
|
440
204
|
};
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
205
|
+
}>;
|
|
206
|
+
}>> & Record<"chat_post_message_response", EnumCodec<{
|
|
207
|
+
v1: Codec<import("scale-ts").ResultPayload<{
|
|
208
|
+
messageId: string;
|
|
209
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
210
|
+
reason: string;
|
|
211
|
+
}, "ChatMessagePostingErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatMessagePostingErr::MessageTooLarge">>>;
|
|
212
|
+
}>> & Record<"chat_action_subscribe_start", EnumCodec<{
|
|
213
|
+
v1: Codec<undefined>;
|
|
214
|
+
}>> & Record<"chat_action_subscribe_receive", EnumCodec<{
|
|
215
|
+
v1: Codec<{
|
|
216
|
+
roomId: string;
|
|
217
|
+
peer: string;
|
|
218
|
+
payload: {
|
|
219
|
+
tag: "MessagePosted";
|
|
220
|
+
value: {
|
|
221
|
+
tag: "Text";
|
|
222
|
+
value: string;
|
|
223
|
+
} | {
|
|
224
|
+
tag: "RichText";
|
|
225
|
+
value: {
|
|
226
|
+
text: string | undefined;
|
|
227
|
+
media: {
|
|
228
|
+
url: string;
|
|
229
|
+
}[];
|
|
230
|
+
};
|
|
231
|
+
} | {
|
|
232
|
+
tag: "Actions";
|
|
233
|
+
value: {
|
|
234
|
+
text: string | undefined;
|
|
235
|
+
actions: {
|
|
236
|
+
actionId: string;
|
|
237
|
+
title: string;
|
|
238
|
+
}[];
|
|
239
|
+
layout: "Column" | "Grid";
|
|
240
|
+
};
|
|
241
|
+
} | {
|
|
242
|
+
tag: "File";
|
|
243
|
+
value: {
|
|
244
|
+
url: string;
|
|
245
|
+
fileName: string;
|
|
246
|
+
mimeType: string;
|
|
247
|
+
sizeBytes: bigint;
|
|
248
|
+
text: string | undefined;
|
|
249
|
+
};
|
|
250
|
+
} | {
|
|
251
|
+
tag: "Reaction";
|
|
252
|
+
value: {
|
|
253
|
+
messageId: string;
|
|
254
|
+
emoji: string;
|
|
255
|
+
};
|
|
256
|
+
} | {
|
|
257
|
+
tag: "ReactionRemoved";
|
|
258
|
+
value: {
|
|
259
|
+
messageId: string;
|
|
260
|
+
emoji: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
} | {
|
|
264
|
+
tag: "ActionTriggered";
|
|
265
|
+
value: {
|
|
266
|
+
messageId: string;
|
|
267
|
+
actionId: string;
|
|
268
|
+
};
|
|
269
|
+
} | {
|
|
270
|
+
tag: "Command";
|
|
271
|
+
value: {
|
|
272
|
+
command: string;
|
|
273
|
+
payload: string;
|
|
274
|
+
};
|
|
446
275
|
};
|
|
447
276
|
}>;
|
|
448
|
-
}>> & Record<"chat_action_subscribe_interrupt", Codec<undefined>> & Record<"chat_action_subscribe_stop", Codec<undefined>> & Record<"
|
|
277
|
+
}>> & Record<"chat_action_subscribe_interrupt", Codec<undefined>> & Record<"chat_action_subscribe_stop", Codec<undefined>> & Record<"statement_store_query_request", EnumCodec<{
|
|
278
|
+
v1: Codec<Uint8Array<ArrayBufferLike>[]>;
|
|
279
|
+
}>> & Record<"statement_store_query_response", EnumCodec<{
|
|
280
|
+
v1: Codec<import("scale-ts").ResultPayload<{
|
|
281
|
+
proof: {
|
|
282
|
+
tag: "Sr25519";
|
|
283
|
+
value: {
|
|
284
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
285
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
286
|
+
};
|
|
287
|
+
} | {
|
|
288
|
+
tag: "Ed25519";
|
|
289
|
+
value: {
|
|
290
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
291
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
292
|
+
};
|
|
293
|
+
} | {
|
|
294
|
+
tag: "Ecdsa";
|
|
295
|
+
value: {
|
|
296
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
297
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
298
|
+
};
|
|
299
|
+
} | {
|
|
300
|
+
tag: "OnChain";
|
|
301
|
+
value: {
|
|
302
|
+
who: Uint8Array<ArrayBufferLike>;
|
|
303
|
+
blockHash: Uint8Array<ArrayBufferLike>;
|
|
304
|
+
event: bigint;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
308
|
+
priority: number | undefined;
|
|
309
|
+
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
310
|
+
topics: Uint8Array<ArrayBufferLike>[];
|
|
311
|
+
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
312
|
+
}[], import("@novasamatech/scale").CodecError<{
|
|
313
|
+
reason: string;
|
|
314
|
+
}, "GenericError">>>;
|
|
315
|
+
}>> & Record<"statement_store_subscribe_start", EnumCodec<{
|
|
316
|
+
v1: Codec<Uint8Array<ArrayBufferLike>[]>;
|
|
317
|
+
}>> & Record<"statement_store_subscribe_receive", EnumCodec<{
|
|
318
|
+
v1: Codec<{
|
|
319
|
+
proof: {
|
|
320
|
+
tag: "Sr25519";
|
|
321
|
+
value: {
|
|
322
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
323
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
324
|
+
};
|
|
325
|
+
} | {
|
|
326
|
+
tag: "Ed25519";
|
|
327
|
+
value: {
|
|
328
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
329
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
330
|
+
};
|
|
331
|
+
} | {
|
|
332
|
+
tag: "Ecdsa";
|
|
333
|
+
value: {
|
|
334
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
335
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
336
|
+
};
|
|
337
|
+
} | {
|
|
338
|
+
tag: "OnChain";
|
|
339
|
+
value: {
|
|
340
|
+
who: Uint8Array<ArrayBufferLike>;
|
|
341
|
+
blockHash: Uint8Array<ArrayBufferLike>;
|
|
342
|
+
event: bigint;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
346
|
+
priority: number | undefined;
|
|
347
|
+
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
348
|
+
topics: Uint8Array<ArrayBufferLike>[];
|
|
349
|
+
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
350
|
+
}[]>;
|
|
351
|
+
}>> & Record<"statement_store_subscribe_interrupt", Codec<undefined>> & Record<"statement_store_subscribe_stop", Codec<undefined>> & Record<"statement_store_create_proof_request", EnumCodec<{
|
|
449
352
|
v1: Codec<[[string, number], {
|
|
450
353
|
proof: {
|
|
451
354
|
tag: "Sr25519";
|
|
@@ -505,31 +408,53 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
505
408
|
blockHash: Uint8Array<ArrayBufferLike>;
|
|
506
409
|
event: bigint;
|
|
507
410
|
};
|
|
508
|
-
}, (
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
411
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
412
|
+
reason: string;
|
|
413
|
+
}, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">>>;
|
|
414
|
+
}>> & Record<"statement_store_submit_request", EnumCodec<{
|
|
415
|
+
v1: Codec<{
|
|
416
|
+
proof: {
|
|
417
|
+
tag: "Sr25519";
|
|
418
|
+
value: {
|
|
419
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
420
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
421
|
+
};
|
|
422
|
+
} | {
|
|
423
|
+
tag: "Ed25519";
|
|
424
|
+
value: {
|
|
425
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
426
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
427
|
+
};
|
|
428
|
+
} | {
|
|
429
|
+
tag: "Ecdsa";
|
|
430
|
+
value: {
|
|
431
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
432
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
433
|
+
};
|
|
434
|
+
} | {
|
|
435
|
+
tag: "OnChain";
|
|
436
|
+
value: {
|
|
437
|
+
who: Uint8Array<ArrayBufferLike>;
|
|
438
|
+
blockHash: Uint8Array<ArrayBufferLike>;
|
|
439
|
+
event: bigint;
|
|
440
|
+
};
|
|
513
441
|
};
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
442
|
+
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
443
|
+
priority: number | undefined;
|
|
444
|
+
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
445
|
+
topics: Uint8Array<ArrayBufferLike>[];
|
|
446
|
+
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
447
|
+
}>;
|
|
448
|
+
}>> & Record<"statement_store_submit_response", EnumCodec<{
|
|
449
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
450
|
+
reason: string;
|
|
451
|
+
}, "GenericError">>>;
|
|
523
452
|
}>> & Record<"jsonrpc_message_send_request", EnumCodec<{
|
|
524
453
|
v1: Codec<[`0x${string}`, string]>;
|
|
525
454
|
}>> & Record<"jsonrpc_message_send_response", EnumCodec<{
|
|
526
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined,
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
payload: {
|
|
530
|
-
reason: string;
|
|
531
|
-
};
|
|
532
|
-
}>>;
|
|
455
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
456
|
+
reason: string;
|
|
457
|
+
}, "GenericError">>>;
|
|
533
458
|
}>> & Record<"jsonrpc_message_subscribe_start", EnumCodec<{
|
|
534
459
|
v1: Codec<`0x${string}`>;
|
|
535
460
|
}>> & Record<"jsonrpc_message_subscribe_receive", EnumCodec<{
|
|
@@ -547,21 +472,9 @@ export declare const Message: Codec<{
|
|
|
547
472
|
tag: "handshake_response";
|
|
548
473
|
value: {
|
|
549
474
|
tag: "v1";
|
|
550
|
-
value: import("scale-ts").ResultPayload<undefined, (
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
payload: {
|
|
554
|
-
reason: string;
|
|
555
|
-
};
|
|
556
|
-
}) | (Error & {
|
|
557
|
-
name: "HandshakeErr::Timeout";
|
|
558
|
-
className: string;
|
|
559
|
-
payload: undefined;
|
|
560
|
-
}) | (Error & {
|
|
561
|
-
name: "HandshakeErr::UnsupportedProtocolVersion";
|
|
562
|
-
className: string;
|
|
563
|
-
payload: undefined;
|
|
564
|
-
})>;
|
|
475
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
476
|
+
reason: string;
|
|
477
|
+
}, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>;
|
|
565
478
|
};
|
|
566
479
|
} | {
|
|
567
480
|
tag: "feature_request";
|
|
@@ -576,113 +489,51 @@ export declare const Message: Codec<{
|
|
|
576
489
|
tag: "feature_response";
|
|
577
490
|
value: {
|
|
578
491
|
tag: "v1";
|
|
579
|
-
value: import("scale-ts").ResultPayload<boolean,
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
payload: {
|
|
583
|
-
reason: string;
|
|
584
|
-
};
|
|
585
|
-
}>;
|
|
586
|
-
};
|
|
587
|
-
} | {
|
|
588
|
-
tag: "permission_request_request";
|
|
589
|
-
value: {
|
|
590
|
-
tag: "v1";
|
|
591
|
-
value: {
|
|
592
|
-
tag: "ChainSubmit";
|
|
593
|
-
value: `0x${string}`;
|
|
594
|
-
} | {
|
|
595
|
-
tag: "ChainConnect";
|
|
596
|
-
value: {
|
|
597
|
-
genesisHash: `0x${string}`;
|
|
598
|
-
name: string;
|
|
599
|
-
};
|
|
600
|
-
} | {
|
|
601
|
-
tag: "NetworkRequest";
|
|
602
|
-
value: string[];
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
} | {
|
|
606
|
-
tag: "permission_request_response";
|
|
607
|
-
value: {
|
|
608
|
-
tag: "v1";
|
|
609
|
-
value: import("scale-ts").ResultPayload<undefined, (Error & {
|
|
610
|
-
name: "PermissionErr::Rejected";
|
|
611
|
-
className: string;
|
|
612
|
-
payload: undefined;
|
|
613
|
-
}) | (Error & {
|
|
614
|
-
name: "PermissionErr::Unknown";
|
|
615
|
-
className: string;
|
|
616
|
-
payload: {
|
|
617
|
-
reason: string;
|
|
618
|
-
};
|
|
619
|
-
})>;
|
|
492
|
+
value: import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
|
|
493
|
+
reason: string;
|
|
494
|
+
}, "GenericError">>;
|
|
620
495
|
};
|
|
621
496
|
} | {
|
|
622
|
-
tag: "
|
|
497
|
+
tag: "local_storage_read_request";
|
|
623
498
|
value: {
|
|
624
499
|
tag: "v1";
|
|
625
|
-
value:
|
|
500
|
+
value: string;
|
|
626
501
|
};
|
|
627
502
|
} | {
|
|
628
|
-
tag: "
|
|
503
|
+
tag: "local_storage_read_response";
|
|
629
504
|
value: {
|
|
630
|
-
tag: "v1";
|
|
631
|
-
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, (
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
payload: {
|
|
635
|
-
reason: string;
|
|
636
|
-
};
|
|
637
|
-
}) | (Error & {
|
|
638
|
-
name: "StorageErr::Full";
|
|
639
|
-
className: string;
|
|
640
|
-
payload: undefined;
|
|
641
|
-
})>;
|
|
505
|
+
tag: "v1";
|
|
506
|
+
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
|
|
507
|
+
reason: string;
|
|
508
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
|
|
642
509
|
};
|
|
643
510
|
} | {
|
|
644
|
-
tag: "
|
|
511
|
+
tag: "local_storage_write_request";
|
|
645
512
|
value: {
|
|
646
513
|
tag: "v1";
|
|
647
|
-
value: [
|
|
514
|
+
value: [string, Uint8Array<ArrayBufferLike>];
|
|
648
515
|
};
|
|
649
516
|
} | {
|
|
650
|
-
tag: "
|
|
517
|
+
tag: "local_storage_write_response";
|
|
651
518
|
value: {
|
|
652
519
|
tag: "v1";
|
|
653
|
-
value: import("scale-ts").ResultPayload<undefined, (
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
payload: {
|
|
657
|
-
reason: string;
|
|
658
|
-
};
|
|
659
|
-
}) | (Error & {
|
|
660
|
-
name: "StorageErr::Full";
|
|
661
|
-
className: string;
|
|
662
|
-
payload: undefined;
|
|
663
|
-
})>;
|
|
520
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
521
|
+
reason: string;
|
|
522
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
|
|
664
523
|
};
|
|
665
524
|
} | {
|
|
666
|
-
tag: "
|
|
525
|
+
tag: "local_storage_clear_request";
|
|
667
526
|
value: {
|
|
668
527
|
tag: "v1";
|
|
669
|
-
value:
|
|
528
|
+
value: string;
|
|
670
529
|
};
|
|
671
530
|
} | {
|
|
672
|
-
tag: "
|
|
531
|
+
tag: "local_storage_clear_response";
|
|
673
532
|
value: {
|
|
674
533
|
tag: "v1";
|
|
675
|
-
value: import("scale-ts").ResultPayload<undefined, (
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
payload: {
|
|
679
|
-
reason: string;
|
|
680
|
-
};
|
|
681
|
-
}) | (Error & {
|
|
682
|
-
name: "StorageErr::Full";
|
|
683
|
-
className: string;
|
|
684
|
-
payload: undefined;
|
|
685
|
-
})>;
|
|
534
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
535
|
+
reason: string;
|
|
536
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
|
|
686
537
|
};
|
|
687
538
|
} | {
|
|
688
539
|
tag: "account_get_request";
|
|
@@ -697,25 +548,9 @@ export declare const Message: Codec<{
|
|
|
697
548
|
value: import("scale-ts").ResultPayload<{
|
|
698
549
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
699
550
|
name: string | undefined;
|
|
700
|
-
}, (
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
payload: undefined;
|
|
704
|
-
}) | (Error & {
|
|
705
|
-
name: "RequestCredentialsErr::Rejected";
|
|
706
|
-
className: string;
|
|
707
|
-
payload: undefined;
|
|
708
|
-
}) | (Error & {
|
|
709
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
710
|
-
className: string;
|
|
711
|
-
payload: undefined;
|
|
712
|
-
}) | (Error & {
|
|
713
|
-
name: "RequestCredentialsErr::Unknown";
|
|
714
|
-
className: string;
|
|
715
|
-
payload: {
|
|
716
|
-
reason: string;
|
|
717
|
-
};
|
|
718
|
-
})>;
|
|
551
|
+
}, 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<{
|
|
552
|
+
reason: string;
|
|
553
|
+
}, "RequestCredentialsErr::Unknown">>;
|
|
719
554
|
};
|
|
720
555
|
} | {
|
|
721
556
|
tag: "account_get_alias_request";
|
|
@@ -730,25 +565,9 @@ export declare const Message: Codec<{
|
|
|
730
565
|
value: import("scale-ts").ResultPayload<{
|
|
731
566
|
context: Uint8Array<ArrayBufferLike>;
|
|
732
567
|
alias: Uint8Array<ArrayBufferLike>;
|
|
733
|
-
}, (
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
payload: undefined;
|
|
737
|
-
}) | (Error & {
|
|
738
|
-
name: "RequestCredentialsErr::Rejected";
|
|
739
|
-
className: string;
|
|
740
|
-
payload: undefined;
|
|
741
|
-
}) | (Error & {
|
|
742
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
743
|
-
className: string;
|
|
744
|
-
payload: undefined;
|
|
745
|
-
}) | (Error & {
|
|
746
|
-
name: "RequestCredentialsErr::Unknown";
|
|
747
|
-
className: string;
|
|
748
|
-
payload: {
|
|
749
|
-
reason: string;
|
|
750
|
-
};
|
|
751
|
-
})>;
|
|
568
|
+
}, 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<{
|
|
569
|
+
reason: string;
|
|
570
|
+
}, "RequestCredentialsErr::Unknown">>;
|
|
752
571
|
};
|
|
753
572
|
} | {
|
|
754
573
|
tag: "account_create_proof_request";
|
|
@@ -766,21 +585,9 @@ export declare const Message: Codec<{
|
|
|
766
585
|
tag: "account_create_proof_response";
|
|
767
586
|
value: {
|
|
768
587
|
tag: "v1";
|
|
769
|
-
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
payload: undefined;
|
|
773
|
-
}) | (Error & {
|
|
774
|
-
name: "CreateProofErr::Unknown";
|
|
775
|
-
className: string;
|
|
776
|
-
payload: {
|
|
777
|
-
reason: string;
|
|
778
|
-
};
|
|
779
|
-
}) | (Error & {
|
|
780
|
-
name: "CreateProofErr::RingNotFound";
|
|
781
|
-
className: string;
|
|
782
|
-
payload: undefined;
|
|
783
|
-
})>;
|
|
588
|
+
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
589
|
+
reason: string;
|
|
590
|
+
}, "CreateProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::RingNotFound">>;
|
|
784
591
|
};
|
|
785
592
|
} | {
|
|
786
593
|
tag: "get_non_product_accounts_request";
|
|
@@ -795,25 +602,9 @@ export declare const Message: Codec<{
|
|
|
795
602
|
value: import("scale-ts").ResultPayload<{
|
|
796
603
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
797
604
|
name: string | undefined;
|
|
798
|
-
}[], (
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
payload: undefined;
|
|
802
|
-
}) | (Error & {
|
|
803
|
-
name: "RequestCredentialsErr::Rejected";
|
|
804
|
-
className: string;
|
|
805
|
-
payload: undefined;
|
|
806
|
-
}) | (Error & {
|
|
807
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
808
|
-
className: string;
|
|
809
|
-
payload: undefined;
|
|
810
|
-
}) | (Error & {
|
|
811
|
-
name: "RequestCredentialsErr::Unknown";
|
|
812
|
-
className: string;
|
|
813
|
-
payload: {
|
|
814
|
-
reason: string;
|
|
815
|
-
};
|
|
816
|
-
})>;
|
|
605
|
+
}[], 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<{
|
|
606
|
+
reason: string;
|
|
607
|
+
}, "RequestCredentialsErr::Unknown">>;
|
|
817
608
|
};
|
|
818
609
|
} | {
|
|
819
610
|
tag: "create_transaction_request";
|
|
@@ -825,25 +616,9 @@ export declare const Message: Codec<{
|
|
|
825
616
|
tag: "create_transaction_response";
|
|
826
617
|
value: {
|
|
827
618
|
tag: "v1";
|
|
828
|
-
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
payload: undefined;
|
|
832
|
-
}) | (Error & {
|
|
833
|
-
name: "CreateTransactionErr::Unknown";
|
|
834
|
-
className: string;
|
|
835
|
-
payload: {
|
|
836
|
-
reason: string;
|
|
837
|
-
};
|
|
838
|
-
}) | (Error & {
|
|
839
|
-
name: "CreateTransactionErr::FailedToDecode";
|
|
840
|
-
className: string;
|
|
841
|
-
payload: undefined;
|
|
842
|
-
}) | (Error & {
|
|
843
|
-
name: "CreateTransactionErr::NotSupported";
|
|
844
|
-
className: string;
|
|
845
|
-
payload: string;
|
|
846
|
-
})>;
|
|
619
|
+
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
620
|
+
reason: string;
|
|
621
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
|
|
847
622
|
};
|
|
848
623
|
} | {
|
|
849
624
|
tag: "create_transaction_with_non_product_account_request";
|
|
@@ -855,25 +630,9 @@ export declare const Message: Codec<{
|
|
|
855
630
|
tag: "create_transaction_with_non_product_account_response";
|
|
856
631
|
value: {
|
|
857
632
|
tag: "v1";
|
|
858
|
-
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
payload: undefined;
|
|
862
|
-
}) | (Error & {
|
|
863
|
-
name: "CreateTransactionErr::Unknown";
|
|
864
|
-
className: string;
|
|
865
|
-
payload: {
|
|
866
|
-
reason: string;
|
|
867
|
-
};
|
|
868
|
-
}) | (Error & {
|
|
869
|
-
name: "CreateTransactionErr::FailedToDecode";
|
|
870
|
-
className: string;
|
|
871
|
-
payload: undefined;
|
|
872
|
-
}) | (Error & {
|
|
873
|
-
name: "CreateTransactionErr::NotSupported";
|
|
874
|
-
className: string;
|
|
875
|
-
payload: string;
|
|
876
|
-
})>;
|
|
633
|
+
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
634
|
+
reason: string;
|
|
635
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
|
|
877
636
|
};
|
|
878
637
|
} | {
|
|
879
638
|
tag: "sign_raw_request";
|
|
@@ -897,21 +656,9 @@ export declare const Message: Codec<{
|
|
|
897
656
|
value: import("scale-ts").ResultPayload<{
|
|
898
657
|
signature: `0x${string}`;
|
|
899
658
|
signedTransaction: `0x${string}` | undefined;
|
|
900
|
-
}, (
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
payload: undefined;
|
|
904
|
-
}) | (Error & {
|
|
905
|
-
name: "SigningErr::Unknown";
|
|
906
|
-
className: string;
|
|
907
|
-
payload: {
|
|
908
|
-
reason: string;
|
|
909
|
-
};
|
|
910
|
-
}) | (Error & {
|
|
911
|
-
name: "SigningErr::FailedToDecode";
|
|
912
|
-
className: string;
|
|
913
|
-
payload: undefined;
|
|
914
|
-
})>;
|
|
659
|
+
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
660
|
+
reason: string;
|
|
661
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
|
|
915
662
|
};
|
|
916
663
|
} | {
|
|
917
664
|
tag: "sign_payload_request";
|
|
@@ -943,122 +690,58 @@ export declare const Message: Codec<{
|
|
|
943
690
|
value: import("scale-ts").ResultPayload<{
|
|
944
691
|
signature: `0x${string}`;
|
|
945
692
|
signedTransaction: `0x${string}` | undefined;
|
|
946
|
-
}, (
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
payload: undefined;
|
|
950
|
-
}) | (Error & {
|
|
951
|
-
name: "SigningErr::Unknown";
|
|
952
|
-
className: string;
|
|
953
|
-
payload: {
|
|
954
|
-
reason: string;
|
|
955
|
-
};
|
|
956
|
-
}) | (Error & {
|
|
957
|
-
name: "SigningErr::FailedToDecode";
|
|
958
|
-
className: string;
|
|
959
|
-
payload: undefined;
|
|
960
|
-
})>;
|
|
693
|
+
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
694
|
+
reason: string;
|
|
695
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
|
|
961
696
|
};
|
|
962
697
|
} | {
|
|
963
|
-
tag: "
|
|
698
|
+
tag: "chat_create_room_request";
|
|
964
699
|
value: {
|
|
965
700
|
tag: "v1";
|
|
966
701
|
value: {
|
|
702
|
+
roomId: string;
|
|
967
703
|
name: string;
|
|
968
704
|
icon: string;
|
|
969
705
|
};
|
|
970
706
|
};
|
|
971
707
|
} | {
|
|
972
|
-
tag: "
|
|
708
|
+
tag: "chat_create_room_response";
|
|
973
709
|
value: {
|
|
974
710
|
tag: "v1";
|
|
975
|
-
value: import("scale-ts").ResultPayload<
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
};
|
|
981
|
-
}>;
|
|
711
|
+
value: import("scale-ts").ResultPayload<{
|
|
712
|
+
status: "New" | "Exists";
|
|
713
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
714
|
+
reason: string;
|
|
715
|
+
}, "ChatRoomRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatRoomRegistrationErr::PermissionDenied">>;
|
|
982
716
|
};
|
|
983
717
|
} | {
|
|
984
|
-
tag: "
|
|
718
|
+
tag: "chat_list_subscribe_start";
|
|
985
719
|
value: {
|
|
986
720
|
tag: "v1";
|
|
987
|
-
value:
|
|
988
|
-
tag: "Text";
|
|
989
|
-
value: string;
|
|
990
|
-
} | {
|
|
991
|
-
tag: "RichText";
|
|
992
|
-
value: {
|
|
993
|
-
text: string | undefined;
|
|
994
|
-
media: {
|
|
995
|
-
url: string;
|
|
996
|
-
}[];
|
|
997
|
-
};
|
|
998
|
-
} | {
|
|
999
|
-
tag: "Actions";
|
|
1000
|
-
value: {
|
|
1001
|
-
text: string | undefined;
|
|
1002
|
-
actions: {
|
|
1003
|
-
actionId: string;
|
|
1004
|
-
title: string;
|
|
1005
|
-
}[];
|
|
1006
|
-
layout: "Column" | "Grid";
|
|
1007
|
-
};
|
|
1008
|
-
} | {
|
|
1009
|
-
tag: "File";
|
|
1010
|
-
value: {
|
|
1011
|
-
url: string;
|
|
1012
|
-
fileName: string;
|
|
1013
|
-
mimeType: string;
|
|
1014
|
-
sizeBytes: bigint;
|
|
1015
|
-
text: string | undefined;
|
|
1016
|
-
};
|
|
1017
|
-
} | {
|
|
1018
|
-
tag: "Reaction";
|
|
1019
|
-
value: {
|
|
1020
|
-
messageId: string;
|
|
1021
|
-
emoji: string;
|
|
1022
|
-
};
|
|
1023
|
-
} | {
|
|
1024
|
-
tag: "ReactionRemoved";
|
|
1025
|
-
value: {
|
|
1026
|
-
messageId: string;
|
|
1027
|
-
emoji: string;
|
|
1028
|
-
};
|
|
1029
|
-
};
|
|
721
|
+
value: undefined;
|
|
1030
722
|
};
|
|
1031
723
|
} | {
|
|
1032
|
-
tag: "
|
|
724
|
+
tag: "chat_list_subscribe_receive";
|
|
1033
725
|
value: {
|
|
1034
726
|
tag: "v1";
|
|
1035
|
-
value:
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
className: string;
|
|
1040
|
-
payload: {
|
|
1041
|
-
reason: string;
|
|
1042
|
-
};
|
|
1043
|
-
}) | (Error & {
|
|
1044
|
-
name: "ChatMessagePostingErr::MessageTooLarge";
|
|
1045
|
-
className: string;
|
|
1046
|
-
payload: undefined;
|
|
1047
|
-
})>;
|
|
727
|
+
value: {
|
|
728
|
+
roomId: string;
|
|
729
|
+
participatingAs: "RoomHost" | "Bot";
|
|
730
|
+
}[];
|
|
1048
731
|
};
|
|
1049
732
|
} | {
|
|
1050
|
-
tag: "
|
|
1051
|
-
value:
|
|
1052
|
-
tag: "v1";
|
|
1053
|
-
value: undefined;
|
|
1054
|
-
};
|
|
733
|
+
tag: "chat_list_subscribe_interrupt";
|
|
734
|
+
value: undefined;
|
|
1055
735
|
} | {
|
|
1056
|
-
tag: "
|
|
736
|
+
tag: "chat_list_subscribe_stop";
|
|
737
|
+
value: undefined;
|
|
738
|
+
} | {
|
|
739
|
+
tag: "chat_post_message_request";
|
|
1057
740
|
value: {
|
|
1058
741
|
tag: "v1";
|
|
1059
742
|
value: {
|
|
1060
|
-
|
|
1061
|
-
|
|
743
|
+
roomId: string;
|
|
744
|
+
payload: {
|
|
1062
745
|
tag: "Text";
|
|
1063
746
|
value: string;
|
|
1064
747
|
} | {
|
|
@@ -1101,11 +784,88 @@ export declare const Message: Codec<{
|
|
|
1101
784
|
emoji: string;
|
|
1102
785
|
};
|
|
1103
786
|
};
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
} | {
|
|
790
|
+
tag: "chat_post_message_response";
|
|
791
|
+
value: {
|
|
792
|
+
tag: "v1";
|
|
793
|
+
value: import("scale-ts").ResultPayload<{
|
|
794
|
+
messageId: string;
|
|
795
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
796
|
+
reason: string;
|
|
797
|
+
}, "ChatMessagePostingErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatMessagePostingErr::MessageTooLarge">>;
|
|
798
|
+
};
|
|
799
|
+
} | {
|
|
800
|
+
tag: "chat_action_subscribe_start";
|
|
801
|
+
value: {
|
|
802
|
+
tag: "v1";
|
|
803
|
+
value: undefined;
|
|
804
|
+
};
|
|
805
|
+
} | {
|
|
806
|
+
tag: "chat_action_subscribe_receive";
|
|
807
|
+
value: {
|
|
808
|
+
tag: "v1";
|
|
809
|
+
value: {
|
|
810
|
+
roomId: string;
|
|
811
|
+
peer: string;
|
|
812
|
+
payload: {
|
|
813
|
+
tag: "MessagePosted";
|
|
814
|
+
value: {
|
|
815
|
+
tag: "Text";
|
|
816
|
+
value: string;
|
|
817
|
+
} | {
|
|
818
|
+
tag: "RichText";
|
|
819
|
+
value: {
|
|
820
|
+
text: string | undefined;
|
|
821
|
+
media: {
|
|
822
|
+
url: string;
|
|
823
|
+
}[];
|
|
824
|
+
};
|
|
825
|
+
} | {
|
|
826
|
+
tag: "Actions";
|
|
827
|
+
value: {
|
|
828
|
+
text: string | undefined;
|
|
829
|
+
actions: {
|
|
830
|
+
actionId: string;
|
|
831
|
+
title: string;
|
|
832
|
+
}[];
|
|
833
|
+
layout: "Column" | "Grid";
|
|
834
|
+
};
|
|
835
|
+
} | {
|
|
836
|
+
tag: "File";
|
|
837
|
+
value: {
|
|
838
|
+
url: string;
|
|
839
|
+
fileName: string;
|
|
840
|
+
mimeType: string;
|
|
841
|
+
sizeBytes: bigint;
|
|
842
|
+
text: string | undefined;
|
|
843
|
+
};
|
|
844
|
+
} | {
|
|
845
|
+
tag: "Reaction";
|
|
846
|
+
value: {
|
|
847
|
+
messageId: string;
|
|
848
|
+
emoji: string;
|
|
849
|
+
};
|
|
850
|
+
} | {
|
|
851
|
+
tag: "ReactionRemoved";
|
|
852
|
+
value: {
|
|
853
|
+
messageId: string;
|
|
854
|
+
emoji: string;
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
} | {
|
|
858
|
+
tag: "ActionTriggered";
|
|
859
|
+
value: {
|
|
860
|
+
messageId: string;
|
|
861
|
+
actionId: string;
|
|
862
|
+
};
|
|
863
|
+
} | {
|
|
864
|
+
tag: "Command";
|
|
865
|
+
value: {
|
|
866
|
+
command: string;
|
|
867
|
+
payload: string;
|
|
868
|
+
};
|
|
1109
869
|
};
|
|
1110
870
|
};
|
|
1111
871
|
};
|
|
@@ -1115,6 +875,102 @@ export declare const Message: Codec<{
|
|
|
1115
875
|
} | {
|
|
1116
876
|
tag: "chat_action_subscribe_stop";
|
|
1117
877
|
value: undefined;
|
|
878
|
+
} | {
|
|
879
|
+
tag: "statement_store_query_request";
|
|
880
|
+
value: {
|
|
881
|
+
tag: "v1";
|
|
882
|
+
value: Uint8Array<ArrayBufferLike>[];
|
|
883
|
+
};
|
|
884
|
+
} | {
|
|
885
|
+
tag: "statement_store_query_response";
|
|
886
|
+
value: {
|
|
887
|
+
tag: "v1";
|
|
888
|
+
value: import("scale-ts").ResultPayload<{
|
|
889
|
+
proof: {
|
|
890
|
+
tag: "Sr25519";
|
|
891
|
+
value: {
|
|
892
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
893
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
894
|
+
};
|
|
895
|
+
} | {
|
|
896
|
+
tag: "Ed25519";
|
|
897
|
+
value: {
|
|
898
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
899
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
900
|
+
};
|
|
901
|
+
} | {
|
|
902
|
+
tag: "Ecdsa";
|
|
903
|
+
value: {
|
|
904
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
905
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
906
|
+
};
|
|
907
|
+
} | {
|
|
908
|
+
tag: "OnChain";
|
|
909
|
+
value: {
|
|
910
|
+
who: Uint8Array<ArrayBufferLike>;
|
|
911
|
+
blockHash: Uint8Array<ArrayBufferLike>;
|
|
912
|
+
event: bigint;
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
916
|
+
priority: number | undefined;
|
|
917
|
+
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
918
|
+
topics: Uint8Array<ArrayBufferLike>[];
|
|
919
|
+
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
920
|
+
}[], import("@novasamatech/scale").CodecError<{
|
|
921
|
+
reason: string;
|
|
922
|
+
}, "GenericError">>;
|
|
923
|
+
};
|
|
924
|
+
} | {
|
|
925
|
+
tag: "statement_store_subscribe_start";
|
|
926
|
+
value: {
|
|
927
|
+
tag: "v1";
|
|
928
|
+
value: Uint8Array<ArrayBufferLike>[];
|
|
929
|
+
};
|
|
930
|
+
} | {
|
|
931
|
+
tag: "statement_store_subscribe_receive";
|
|
932
|
+
value: {
|
|
933
|
+
tag: "v1";
|
|
934
|
+
value: {
|
|
935
|
+
proof: {
|
|
936
|
+
tag: "Sr25519";
|
|
937
|
+
value: {
|
|
938
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
939
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
940
|
+
};
|
|
941
|
+
} | {
|
|
942
|
+
tag: "Ed25519";
|
|
943
|
+
value: {
|
|
944
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
945
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
946
|
+
};
|
|
947
|
+
} | {
|
|
948
|
+
tag: "Ecdsa";
|
|
949
|
+
value: {
|
|
950
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
951
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
952
|
+
};
|
|
953
|
+
} | {
|
|
954
|
+
tag: "OnChain";
|
|
955
|
+
value: {
|
|
956
|
+
who: Uint8Array<ArrayBufferLike>;
|
|
957
|
+
blockHash: Uint8Array<ArrayBufferLike>;
|
|
958
|
+
event: bigint;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
962
|
+
priority: number | undefined;
|
|
963
|
+
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
964
|
+
topics: Uint8Array<ArrayBufferLike>[];
|
|
965
|
+
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
966
|
+
}[];
|
|
967
|
+
};
|
|
968
|
+
} | {
|
|
969
|
+
tag: "statement_store_subscribe_interrupt";
|
|
970
|
+
value: undefined;
|
|
971
|
+
} | {
|
|
972
|
+
tag: "statement_store_subscribe_stop";
|
|
973
|
+
value: undefined;
|
|
1118
974
|
} | {
|
|
1119
975
|
tag: "statement_store_create_proof_request";
|
|
1120
976
|
value: {
|
|
@@ -1182,21 +1038,55 @@ export declare const Message: Codec<{
|
|
|
1182
1038
|
blockHash: Uint8Array<ArrayBufferLike>;
|
|
1183
1039
|
event: bigint;
|
|
1184
1040
|
};
|
|
1185
|
-
}, (
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1041
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
1042
|
+
reason: string;
|
|
1043
|
+
}, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">>;
|
|
1044
|
+
};
|
|
1045
|
+
} | {
|
|
1046
|
+
tag: "statement_store_submit_request";
|
|
1047
|
+
value: {
|
|
1048
|
+
tag: "v1";
|
|
1049
|
+
value: {
|
|
1050
|
+
proof: {
|
|
1051
|
+
tag: "Sr25519";
|
|
1052
|
+
value: {
|
|
1053
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
1054
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
1055
|
+
};
|
|
1056
|
+
} | {
|
|
1057
|
+
tag: "Ed25519";
|
|
1058
|
+
value: {
|
|
1059
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
1060
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
1061
|
+
};
|
|
1062
|
+
} | {
|
|
1063
|
+
tag: "Ecdsa";
|
|
1064
|
+
value: {
|
|
1065
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
1066
|
+
signer: Uint8Array<ArrayBufferLike>;
|
|
1067
|
+
};
|
|
1068
|
+
} | {
|
|
1069
|
+
tag: "OnChain";
|
|
1070
|
+
value: {
|
|
1071
|
+
who: Uint8Array<ArrayBufferLike>;
|
|
1072
|
+
blockHash: Uint8Array<ArrayBufferLike>;
|
|
1073
|
+
event: bigint;
|
|
1074
|
+
};
|
|
1190
1075
|
};
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1076
|
+
decryptionKey: Uint8Array<ArrayBufferLike> | undefined;
|
|
1077
|
+
priority: number | undefined;
|
|
1078
|
+
channel: Uint8Array<ArrayBufferLike> | undefined;
|
|
1079
|
+
topics: Uint8Array<ArrayBufferLike>[];
|
|
1080
|
+
data: Uint8Array<ArrayBufferLike> | undefined;
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
} | {
|
|
1084
|
+
tag: "statement_store_submit_response";
|
|
1085
|
+
value: {
|
|
1086
|
+
tag: "v1";
|
|
1087
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
1088
|
+
reason: string;
|
|
1089
|
+
}, "GenericError">>;
|
|
1200
1090
|
};
|
|
1201
1091
|
} | {
|
|
1202
1092
|
tag: "jsonrpc_message_send_request";
|
|
@@ -1208,13 +1098,9 @@ export declare const Message: Codec<{
|
|
|
1208
1098
|
tag: "jsonrpc_message_send_response";
|
|
1209
1099
|
value: {
|
|
1210
1100
|
tag: "v1";
|
|
1211
|
-
value: import("scale-ts").ResultPayload<undefined,
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
payload: {
|
|
1215
|
-
reason: string;
|
|
1216
|
-
};
|
|
1217
|
-
}>;
|
|
1101
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
1102
|
+
reason: string;
|
|
1103
|
+
}, "GenericError">>;
|
|
1218
1104
|
};
|
|
1219
1105
|
} | {
|
|
1220
1106
|
tag: "jsonrpc_message_subscribe_start";
|