@novasamatech/host-api 0.5.3-0 → 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/dist/hostApi.d.ts +3 -2
- package/dist/hostApi.js +65 -42
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -4
- package/dist/protocol/impl.d.ts +19 -11
- package/dist/protocol/impl.js +20 -12
- package/dist/protocol/messageCodec.d.ts +469 -199
- package/dist/protocol/v1/chat.d.ts +209 -74
- package/dist/protocol/v1/chat.js +49 -11
- package/dist/protocol/v1/createTransaction.d.ts +7 -6
- package/dist/protocol/v1/createTransaction.js +5 -4
- package/dist/protocol/v1/sign.d.ts +7 -6
- package/dist/protocol/v1/sign.js +4 -3
- package/dist/protocol/v1/statementStore.d.ts +139 -0
- package/dist/protocol/v1/statementStore.js +17 -1
- package/dist/protocol/v1/storage.d.ts +4 -4
- package/dist/protocol/v1/storage.js +3 -3
- package/dist/types.d.ts +6 -4
- package/package.json +2 -1
|
@@ -24,39 +24,21 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
24
24
|
v1: Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
|
|
25
25
|
reason: string;
|
|
26
26
|
}, "GenericError">>>;
|
|
27
|
-
}>> & Record<"
|
|
28
|
-
v1: Codec<
|
|
29
|
-
|
|
30
|
-
value: `0x${string}`;
|
|
31
|
-
} | {
|
|
32
|
-
tag: "ChainConnect";
|
|
33
|
-
value: {
|
|
34
|
-
genesisHash: `0x${string}`;
|
|
35
|
-
name: string;
|
|
36
|
-
};
|
|
37
|
-
} | {
|
|
38
|
-
tag: "NetworkRequest";
|
|
39
|
-
value: string[];
|
|
40
|
-
}>;
|
|
41
|
-
}>> & Record<"permission_request_response", EnumCodec<{
|
|
42
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<undefined, "PermissionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
43
|
-
reason: string;
|
|
44
|
-
}, "PermissionErr::Unknown">>>;
|
|
45
|
-
}>> & Record<"storage_read_request", EnumCodec<{
|
|
46
|
-
v1: Codec<`0x${string}`>;
|
|
47
|
-
}>> & Record<"storage_read_response", EnumCodec<{
|
|
27
|
+
}>> & Record<"local_storage_read_request", EnumCodec<{
|
|
28
|
+
v1: Codec<string>;
|
|
29
|
+
}>> & Record<"local_storage_read_response", EnumCodec<{
|
|
48
30
|
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
|
|
49
31
|
reason: string;
|
|
50
32
|
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
51
|
-
}>> & Record<"
|
|
52
|
-
v1: Codec<[
|
|
53
|
-
}>> & Record<"
|
|
33
|
+
}>> & Record<"local_storage_write_request", EnumCodec<{
|
|
34
|
+
v1: Codec<[string, Uint8Array<ArrayBufferLike>]>;
|
|
35
|
+
}>> & Record<"local_storage_write_response", EnumCodec<{
|
|
54
36
|
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
55
37
|
reason: string;
|
|
56
38
|
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
57
|
-
}>> & Record<"
|
|
58
|
-
v1: Codec
|
|
59
|
-
}>> & Record<"
|
|
39
|
+
}>> & Record<"local_storage_clear_request", EnumCodec<{
|
|
40
|
+
v1: Codec<string>;
|
|
41
|
+
}>> & Record<"local_storage_clear_response", EnumCodec<{
|
|
60
42
|
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
61
43
|
reason: string;
|
|
62
44
|
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
@@ -104,13 +86,13 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
104
86
|
}>> & Record<"create_transaction_response", EnumCodec<{
|
|
105
87
|
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
106
88
|
reason: string;
|
|
107
|
-
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
|
|
89
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
|
|
108
90
|
}>> & Record<"create_transaction_with_non_product_account_request", EnumCodec<{
|
|
109
91
|
v1: Codec<import("./v1/createTransaction.js").TxPayloadV1Public>;
|
|
110
92
|
}>> & Record<"create_transaction_with_non_product_account_response", EnumCodec<{
|
|
111
93
|
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
112
94
|
reason: string;
|
|
113
|
-
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
|
|
95
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
|
|
114
96
|
}>> & Record<"sign_raw_request", EnumCodec<{
|
|
115
97
|
v1: Codec<{
|
|
116
98
|
address: string;
|
|
@@ -128,7 +110,7 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
128
110
|
signedTransaction: `0x${string}` | undefined;
|
|
129
111
|
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
130
112
|
reason: string;
|
|
131
|
-
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
113
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
132
114
|
}>> & Record<"sign_payload_request", EnumCodec<{
|
|
133
115
|
v1: Codec<{
|
|
134
116
|
address: string;
|
|
@@ -154,72 +136,30 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
154
136
|
signedTransaction: `0x${string}` | undefined;
|
|
155
137
|
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
156
138
|
reason: string;
|
|
157
|
-
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
158
|
-
}>> & Record<"
|
|
139
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
140
|
+
}>> & Record<"chat_create_room_request", EnumCodec<{
|
|
159
141
|
v1: Codec<{
|
|
142
|
+
roomId: string;
|
|
160
143
|
name: string;
|
|
161
144
|
icon: string;
|
|
162
145
|
}>;
|
|
163
|
-
}>> & Record<"
|
|
164
|
-
v1: Codec<import("scale-ts").ResultPayload<"New" | "Exists", import("@novasamatech/scale").CodecError<{
|
|
165
|
-
reason: string;
|
|
166
|
-
}, "ChatContactRegistrationErr::Unknown">>>;
|
|
167
|
-
}>> & Record<"chat_post_message_request", EnumCodec<{
|
|
168
|
-
v1: Codec<{
|
|
169
|
-
tag: "Text";
|
|
170
|
-
value: string;
|
|
171
|
-
} | {
|
|
172
|
-
tag: "RichText";
|
|
173
|
-
value: {
|
|
174
|
-
text: string | undefined;
|
|
175
|
-
media: {
|
|
176
|
-
url: string;
|
|
177
|
-
}[];
|
|
178
|
-
};
|
|
179
|
-
} | {
|
|
180
|
-
tag: "Actions";
|
|
181
|
-
value: {
|
|
182
|
-
text: string | undefined;
|
|
183
|
-
actions: {
|
|
184
|
-
actionId: string;
|
|
185
|
-
title: string;
|
|
186
|
-
}[];
|
|
187
|
-
layout: "Column" | "Grid";
|
|
188
|
-
};
|
|
189
|
-
} | {
|
|
190
|
-
tag: "File";
|
|
191
|
-
value: {
|
|
192
|
-
url: string;
|
|
193
|
-
fileName: string;
|
|
194
|
-
mimeType: string;
|
|
195
|
-
sizeBytes: bigint;
|
|
196
|
-
text: string | undefined;
|
|
197
|
-
};
|
|
198
|
-
} | {
|
|
199
|
-
tag: "Reaction";
|
|
200
|
-
value: {
|
|
201
|
-
messageId: string;
|
|
202
|
-
emoji: string;
|
|
203
|
-
};
|
|
204
|
-
} | {
|
|
205
|
-
tag: "ReactionRemoved";
|
|
206
|
-
value: {
|
|
207
|
-
messageId: string;
|
|
208
|
-
emoji: string;
|
|
209
|
-
};
|
|
210
|
-
}>;
|
|
211
|
-
}>> & Record<"chat_post_message_response", EnumCodec<{
|
|
146
|
+
}>> & Record<"chat_create_room_response", EnumCodec<{
|
|
212
147
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
213
|
-
|
|
148
|
+
status: "New" | "Exists";
|
|
214
149
|
}, import("@novasamatech/scale").CodecError<{
|
|
215
150
|
reason: string;
|
|
216
|
-
}, "
|
|
217
|
-
}>> & Record<"
|
|
151
|
+
}, "ChatRoomRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatRoomRegistrationErr::PermissionDenied">>>;
|
|
152
|
+
}>> & Record<"chat_list_subscribe_start", EnumCodec<{
|
|
218
153
|
v1: Codec<undefined>;
|
|
219
|
-
}>> & Record<"
|
|
154
|
+
}>> & Record<"chat_list_subscribe_receive", EnumCodec<{
|
|
220
155
|
v1: Codec<{
|
|
221
|
-
|
|
222
|
-
|
|
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: {
|
|
223
163
|
tag: "Text";
|
|
224
164
|
value: string;
|
|
225
165
|
} | {
|
|
@@ -262,14 +202,153 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
262
202
|
emoji: string;
|
|
263
203
|
};
|
|
264
204
|
};
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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
|
+
};
|
|
270
275
|
};
|
|
271
276
|
}>;
|
|
272
|
-
}>> & 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<{
|
|
273
352
|
v1: Codec<[[string, number], {
|
|
274
353
|
proof: {
|
|
275
354
|
tag: "Sr25519";
|
|
@@ -332,6 +411,44 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
332
411
|
}, import("@novasamatech/scale").CodecError<{
|
|
333
412
|
reason: string;
|
|
334
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
|
+
};
|
|
441
|
+
};
|
|
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">>>;
|
|
335
452
|
}>> & Record<"jsonrpc_message_send_request", EnumCodec<{
|
|
336
453
|
v1: Codec<[`0x${string}`, string]>;
|
|
337
454
|
}>> & Record<"jsonrpc_message_send_response", EnumCodec<{
|
|
@@ -377,39 +494,13 @@ export declare const Message: Codec<{
|
|
|
377
494
|
}, "GenericError">>;
|
|
378
495
|
};
|
|
379
496
|
} | {
|
|
380
|
-
tag: "
|
|
381
|
-
value: {
|
|
382
|
-
tag: "v1";
|
|
383
|
-
value: {
|
|
384
|
-
tag: "ChainSubmit";
|
|
385
|
-
value: `0x${string}`;
|
|
386
|
-
} | {
|
|
387
|
-
tag: "ChainConnect";
|
|
388
|
-
value: {
|
|
389
|
-
genesisHash: `0x${string}`;
|
|
390
|
-
name: string;
|
|
391
|
-
};
|
|
392
|
-
} | {
|
|
393
|
-
tag: "NetworkRequest";
|
|
394
|
-
value: string[];
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
} | {
|
|
398
|
-
tag: "permission_request_response";
|
|
497
|
+
tag: "local_storage_read_request";
|
|
399
498
|
value: {
|
|
400
499
|
tag: "v1";
|
|
401
|
-
value:
|
|
402
|
-
reason: string;
|
|
403
|
-
}, "PermissionErr::Unknown">>;
|
|
404
|
-
};
|
|
405
|
-
} | {
|
|
406
|
-
tag: "storage_read_request";
|
|
407
|
-
value: {
|
|
408
|
-
tag: "v1";
|
|
409
|
-
value: `0x${string}`;
|
|
500
|
+
value: string;
|
|
410
501
|
};
|
|
411
502
|
} | {
|
|
412
|
-
tag: "
|
|
503
|
+
tag: "local_storage_read_response";
|
|
413
504
|
value: {
|
|
414
505
|
tag: "v1";
|
|
415
506
|
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
|
|
@@ -417,13 +508,13 @@ export declare const Message: Codec<{
|
|
|
417
508
|
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
|
|
418
509
|
};
|
|
419
510
|
} | {
|
|
420
|
-
tag: "
|
|
511
|
+
tag: "local_storage_write_request";
|
|
421
512
|
value: {
|
|
422
513
|
tag: "v1";
|
|
423
|
-
value: [
|
|
514
|
+
value: [string, Uint8Array<ArrayBufferLike>];
|
|
424
515
|
};
|
|
425
516
|
} | {
|
|
426
|
-
tag: "
|
|
517
|
+
tag: "local_storage_write_response";
|
|
427
518
|
value: {
|
|
428
519
|
tag: "v1";
|
|
429
520
|
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
@@ -431,13 +522,13 @@ export declare const Message: Codec<{
|
|
|
431
522
|
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
|
|
432
523
|
};
|
|
433
524
|
} | {
|
|
434
|
-
tag: "
|
|
525
|
+
tag: "local_storage_clear_request";
|
|
435
526
|
value: {
|
|
436
527
|
tag: "v1";
|
|
437
|
-
value:
|
|
528
|
+
value: string;
|
|
438
529
|
};
|
|
439
530
|
} | {
|
|
440
|
-
tag: "
|
|
531
|
+
tag: "local_storage_clear_response";
|
|
441
532
|
value: {
|
|
442
533
|
tag: "v1";
|
|
443
534
|
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
@@ -527,7 +618,7 @@ export declare const Message: Codec<{
|
|
|
527
618
|
tag: "v1";
|
|
528
619
|
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
529
620
|
reason: string;
|
|
530
|
-
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
|
|
621
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
|
|
531
622
|
};
|
|
532
623
|
} | {
|
|
533
624
|
tag: "create_transaction_with_non_product_account_request";
|
|
@@ -541,7 +632,7 @@ export declare const Message: Codec<{
|
|
|
541
632
|
tag: "v1";
|
|
542
633
|
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
543
634
|
reason: string;
|
|
544
|
-
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
|
|
635
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
|
|
545
636
|
};
|
|
546
637
|
} | {
|
|
547
638
|
tag: "sign_raw_request";
|
|
@@ -567,7 +658,7 @@ export declare const Message: Codec<{
|
|
|
567
658
|
signedTransaction: `0x${string}` | undefined;
|
|
568
659
|
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
569
660
|
reason: string;
|
|
570
|
-
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
|
|
661
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
|
|
571
662
|
};
|
|
572
663
|
} | {
|
|
573
664
|
tag: "sign_payload_request";
|
|
@@ -601,96 +692,56 @@ export declare const Message: Codec<{
|
|
|
601
692
|
signedTransaction: `0x${string}` | undefined;
|
|
602
693
|
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
603
694
|
reason: string;
|
|
604
|
-
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
|
|
695
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
|
|
605
696
|
};
|
|
606
697
|
} | {
|
|
607
|
-
tag: "
|
|
698
|
+
tag: "chat_create_room_request";
|
|
608
699
|
value: {
|
|
609
700
|
tag: "v1";
|
|
610
701
|
value: {
|
|
702
|
+
roomId: string;
|
|
611
703
|
name: string;
|
|
612
704
|
icon: string;
|
|
613
705
|
};
|
|
614
706
|
};
|
|
615
707
|
} | {
|
|
616
|
-
tag: "
|
|
708
|
+
tag: "chat_create_room_response";
|
|
617
709
|
value: {
|
|
618
710
|
tag: "v1";
|
|
619
|
-
value: import("scale-ts").ResultPayload<
|
|
711
|
+
value: import("scale-ts").ResultPayload<{
|
|
712
|
+
status: "New" | "Exists";
|
|
713
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
620
714
|
reason: string;
|
|
621
|
-
}, "
|
|
715
|
+
}, "ChatRoomRegistrationErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatRoomRegistrationErr::PermissionDenied">>;
|
|
622
716
|
};
|
|
623
717
|
} | {
|
|
624
|
-
tag: "
|
|
718
|
+
tag: "chat_list_subscribe_start";
|
|
625
719
|
value: {
|
|
626
720
|
tag: "v1";
|
|
627
|
-
value:
|
|
628
|
-
tag: "Text";
|
|
629
|
-
value: string;
|
|
630
|
-
} | {
|
|
631
|
-
tag: "RichText";
|
|
632
|
-
value: {
|
|
633
|
-
text: string | undefined;
|
|
634
|
-
media: {
|
|
635
|
-
url: string;
|
|
636
|
-
}[];
|
|
637
|
-
};
|
|
638
|
-
} | {
|
|
639
|
-
tag: "Actions";
|
|
640
|
-
value: {
|
|
641
|
-
text: string | undefined;
|
|
642
|
-
actions: {
|
|
643
|
-
actionId: string;
|
|
644
|
-
title: string;
|
|
645
|
-
}[];
|
|
646
|
-
layout: "Column" | "Grid";
|
|
647
|
-
};
|
|
648
|
-
} | {
|
|
649
|
-
tag: "File";
|
|
650
|
-
value: {
|
|
651
|
-
url: string;
|
|
652
|
-
fileName: string;
|
|
653
|
-
mimeType: string;
|
|
654
|
-
sizeBytes: bigint;
|
|
655
|
-
text: string | undefined;
|
|
656
|
-
};
|
|
657
|
-
} | {
|
|
658
|
-
tag: "Reaction";
|
|
659
|
-
value: {
|
|
660
|
-
messageId: string;
|
|
661
|
-
emoji: string;
|
|
662
|
-
};
|
|
663
|
-
} | {
|
|
664
|
-
tag: "ReactionRemoved";
|
|
665
|
-
value: {
|
|
666
|
-
messageId: string;
|
|
667
|
-
emoji: string;
|
|
668
|
-
};
|
|
669
|
-
};
|
|
721
|
+
value: undefined;
|
|
670
722
|
};
|
|
671
723
|
} | {
|
|
672
|
-
tag: "
|
|
724
|
+
tag: "chat_list_subscribe_receive";
|
|
673
725
|
value: {
|
|
674
726
|
tag: "v1";
|
|
675
|
-
value:
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}, "ChatMessagePostingErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatMessagePostingErr::MessageTooLarge">>;
|
|
727
|
+
value: {
|
|
728
|
+
roomId: string;
|
|
729
|
+
participatingAs: "RoomHost" | "Bot";
|
|
730
|
+
}[];
|
|
680
731
|
};
|
|
681
732
|
} | {
|
|
682
|
-
tag: "
|
|
683
|
-
value:
|
|
684
|
-
tag: "v1";
|
|
685
|
-
value: undefined;
|
|
686
|
-
};
|
|
733
|
+
tag: "chat_list_subscribe_interrupt";
|
|
734
|
+
value: undefined;
|
|
687
735
|
} | {
|
|
688
|
-
tag: "
|
|
736
|
+
tag: "chat_list_subscribe_stop";
|
|
737
|
+
value: undefined;
|
|
738
|
+
} | {
|
|
739
|
+
tag: "chat_post_message_request";
|
|
689
740
|
value: {
|
|
690
741
|
tag: "v1";
|
|
691
742
|
value: {
|
|
692
|
-
|
|
693
|
-
|
|
743
|
+
roomId: string;
|
|
744
|
+
payload: {
|
|
694
745
|
tag: "Text";
|
|
695
746
|
value: string;
|
|
696
747
|
} | {
|
|
@@ -733,11 +784,88 @@ export declare const Message: Codec<{
|
|
|
733
784
|
emoji: string;
|
|
734
785
|
};
|
|
735
786
|
};
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
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
|
+
};
|
|
741
869
|
};
|
|
742
870
|
};
|
|
743
871
|
};
|
|
@@ -747,6 +875,102 @@ export declare const Message: Codec<{
|
|
|
747
875
|
} | {
|
|
748
876
|
tag: "chat_action_subscribe_stop";
|
|
749
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;
|
|
750
974
|
} | {
|
|
751
975
|
tag: "statement_store_create_proof_request";
|
|
752
976
|
value: {
|
|
@@ -818,6 +1042,52 @@ export declare const Message: Codec<{
|
|
|
818
1042
|
reason: string;
|
|
819
1043
|
}, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">>;
|
|
820
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
|
+
};
|
|
1075
|
+
};
|
|
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">>;
|
|
1090
|
+
};
|
|
821
1091
|
} | {
|
|
822
1092
|
tag: "jsonrpc_message_send_request";
|
|
823
1093
|
value: {
|