@parity/truapi 0.1.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.
@@ -0,0 +1,2666 @@
1
+ import * as S from "../scale.js";
2
+ import type { HexString } from "../scale.js";
3
+ /**
4
+ * An account with its public key and optional display name.
5
+ *
6
+ * Used by [`HostGetLegacyAccountsResponse`] for non-product (legacy) accounts
7
+ * that may carry a display name.
8
+ */
9
+ export interface Account {
10
+ /** The account public key (variable-length bytes). */
11
+ publicKey: HexString;
12
+ /** Optional human-readable display name. */
13
+ name?: string;
14
+ }
15
+ export declare const Account: S.Codec<Account>;
16
+ /** Payload when a user clicks an action button. */
17
+ export interface ActionTrigger {
18
+ /** Message containing the action. */
19
+ messageId: string;
20
+ /** Which action was triggered. */
21
+ actionId: string;
22
+ /** Optional additional data. */
23
+ payload?: HexString;
24
+ }
25
+ export declare const ActionTrigger: S.Codec<ActionTrigger>;
26
+ export type AllocatableResource = {
27
+ tag: "StatementStoreAllowance";
28
+ value?: undefined;
29
+ } | {
30
+ tag: "BulletinAllowance";
31
+ value?: undefined;
32
+ } | {
33
+ tag: "SmartContractAllowance";
34
+ value: number;
35
+ } | {
36
+ tag: "AutoSigning";
37
+ value?: undefined;
38
+ };
39
+ export declare const AllocatableResource: S.Codec<AllocatableResource>;
40
+ export type AllocationOutcome = "Allocated" | "Rejected" | "NotAvailable";
41
+ export declare const AllocationOutcome: S.Codec<AllocationOutcome>;
42
+ /** Layout arrangement (like CSS flexbox `justify-content`). */
43
+ export type Arrangement = "Start" | "End" | "Center" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly";
44
+ export declare const Arrangement: S.Codec<Arrangement>;
45
+ /** Background styling. */
46
+ export interface Background {
47
+ /** Background color. */
48
+ color: ColorToken;
49
+ /** Background shape. */
50
+ shape?: Shape;
51
+ }
52
+ export declare const Background: S.Codec<Background>;
53
+ /**
54
+ * Balance amount for payment operations. Interpreted according to the host's
55
+ * single fixed payment asset (e.g. pUSD).
56
+ */
57
+ export type Balance = bigint;
58
+ export declare const Balance: S.Codec<Balance>;
59
+ /** Border styling. */
60
+ export interface BorderStyle {
61
+ /** Border width. */
62
+ width: bigint;
63
+ /** Border color. */
64
+ color: ColorToken;
65
+ /** Border shape. */
66
+ shape?: Shape;
67
+ }
68
+ export declare const BorderStyle: S.Codec<BorderStyle>;
69
+ /** Properties for a [`CustomRendererNode::Box`] container. */
70
+ export interface BoxProps {
71
+ /** Content alignment within the box. */
72
+ contentAlignment?: ContentAlignment;
73
+ }
74
+ export declare const BoxProps: S.Codec<BoxProps>;
75
+ /** Properties for a [`CustomRendererNode::Button`]. */
76
+ export interface ButtonProps {
77
+ /** Button label text. */
78
+ text: string;
79
+ /** Button style variant. */
80
+ variant?: ButtonVariant;
81
+ /** Action identifier triggered on click. */
82
+ clickAction: string;
83
+ }
84
+ export declare const ButtonProps: S.Codec<ButtonProps>;
85
+ /** Button style variants. */
86
+ export type ButtonVariant = "Primary" | "Secondary" | "Text";
87
+ export declare const ButtonVariant: S.Codec<ButtonVariant>;
88
+ /** A clickable action button in a chat message. */
89
+ export interface ChatAction {
90
+ /** Action identifier. */
91
+ actionId: string;
92
+ /** Button label. */
93
+ title: string;
94
+ }
95
+ export declare const ChatAction: S.Codec<ChatAction>;
96
+ /** Layout for action buttons. */
97
+ export type ChatActionLayout = "Column" | "Grid";
98
+ export declare const ChatActionLayout: S.Codec<ChatActionLayout>;
99
+ /** Payload of a received chat action. */
100
+ export type ChatActionPayload =
101
+ /** A peer posted a message. */
102
+ {
103
+ tag: "MessagePosted";
104
+ value: ChatMessageContent;
105
+ }
106
+ /** A user triggered an action button. */
107
+ | {
108
+ tag: "ActionTriggered";
109
+ value: ActionTrigger;
110
+ }
111
+ /** A user issued a command. */
112
+ | {
113
+ tag: "Command";
114
+ value: ChatCommand;
115
+ };
116
+ export declare const ChatActionPayload: S.Codec<ChatActionPayload>;
117
+ /** A set of action buttons with optional text. */
118
+ export interface ChatActions {
119
+ /** Optional message text. */
120
+ text?: string;
121
+ /** List of action buttons. */
122
+ actions: Array<ChatAction>;
123
+ /** `Column` or `Grid` layout. */
124
+ layout: ChatActionLayout;
125
+ }
126
+ export declare const ChatActions: S.Codec<ChatActions>;
127
+ /** Whether the bot was newly registered or already existed. */
128
+ export type ChatBotRegistrationStatus = "New" | "Exists";
129
+ export declare const ChatBotRegistrationStatus: S.Codec<ChatBotRegistrationStatus>;
130
+ /** A slash command from a chat user. */
131
+ export interface ChatCommand {
132
+ /** Command name. */
133
+ command: string;
134
+ /** Command arguments. */
135
+ payload: string;
136
+ }
137
+ export declare const ChatCommand: S.Codec<ChatCommand>;
138
+ /** A custom message with application-defined type and binary payload. */
139
+ export interface ChatCustomMessage {
140
+ /** Application-defined type key. */
141
+ messageType: string;
142
+ /** Binary payload. */
143
+ payload: HexString;
144
+ }
145
+ export declare const ChatCustomMessage: S.Codec<ChatCustomMessage>;
146
+ /** A file attachment in a chat message. */
147
+ export interface ChatFile {
148
+ /** File download URL. */
149
+ url: string;
150
+ /** File name. */
151
+ fileName: string;
152
+ /** MIME type. */
153
+ mimeType: string;
154
+ /** File size in bytes. */
155
+ sizeBytes: bigint;
156
+ /** Optional caption text. */
157
+ text?: string;
158
+ }
159
+ export declare const ChatFile: S.Codec<ChatFile>;
160
+ /** A media attachment. */
161
+ export interface ChatMedia {
162
+ /** Media URL. */
163
+ url: string;
164
+ }
165
+ export declare const ChatMedia: S.Codec<ChatMedia>;
166
+ /** Content of a chat message -- one of several types. */
167
+ export type ChatMessageContent =
168
+ /** Plain text message. */
169
+ {
170
+ tag: "Text";
171
+ value: {
172
+ text: string;
173
+ };
174
+ }
175
+ /** Rich text with media. */
176
+ | {
177
+ tag: "RichText";
178
+ value: ChatRichText;
179
+ }
180
+ /** Action button set. */
181
+ | {
182
+ tag: "Actions";
183
+ value: ChatActions;
184
+ }
185
+ /** File attachment. */
186
+ | {
187
+ tag: "File";
188
+ value: ChatFile;
189
+ }
190
+ /** Emoji reaction. */
191
+ | {
192
+ tag: "Reaction";
193
+ value: ChatReaction;
194
+ }
195
+ /** Reaction removal. */
196
+ | {
197
+ tag: "ReactionRemoved";
198
+ value: ChatReaction;
199
+ }
200
+ /** Custom message. */
201
+ | {
202
+ tag: "Custom";
203
+ value: ChatCustomMessage;
204
+ };
205
+ export declare const ChatMessageContent: S.Codec<ChatMessageContent>;
206
+ /** A reaction to a chat message. */
207
+ export interface ChatReaction {
208
+ /** Message being reacted to. */
209
+ messageId: string;
210
+ /** Emoji reaction. */
211
+ emoji: string;
212
+ }
213
+ export declare const ChatReaction: S.Codec<ChatReaction>;
214
+ /** Rich text message with optional media. */
215
+ export interface ChatRichText {
216
+ /** Optional text content. */
217
+ text?: string;
218
+ /** Attached media items. */
219
+ media: Array<ChatMedia>;
220
+ }
221
+ export declare const ChatRichText: S.Codec<ChatRichText>;
222
+ /** A chat room the product participates in. */
223
+ export interface ChatRoom {
224
+ /** Room identifier. */
225
+ roomId: string;
226
+ /** `RoomHost` or `Bot`. */
227
+ participatingAs: ChatRoomParticipation;
228
+ }
229
+ export declare const ChatRoom: S.Codec<ChatRoom>;
230
+ /** How the product participates in a chat room. */
231
+ export type ChatRoomParticipation = "RoomHost" | "Bot";
232
+ export declare const ChatRoomParticipation: S.Codec<ChatRoomParticipation>;
233
+ /** Whether the room was newly created or already existed. */
234
+ export type ChatRoomRegistrationStatus = "New" | "Exists";
235
+ export declare const ChatRoomRegistrationStatus: S.Codec<ChatRoomRegistrationStatus>;
236
+ /** Semantic color tokens for theming. */
237
+ export type ColorToken = "TextPrimary" | "TextSecondary" | "TextTertiary" | "BackgroundPrimary" | "BackgroundSecondary" | "BackgroundTertiary" | "Success" | "Error" | "Warning";
238
+ export declare const ColorToken: S.Codec<ColorToken>;
239
+ /** Properties for a [`CustomRendererNode::Column`] layout. */
240
+ export interface ColumnProps {
241
+ /** Horizontal alignment of children. */
242
+ horizontalAlignment?: HorizontalAlignment;
243
+ /** Vertical arrangement of children. */
244
+ verticalArrangement?: Arrangement;
245
+ }
246
+ export declare const ColumnProps: S.Codec<ColumnProps>;
247
+ /**
248
+ * A component in the custom renderer UI tree, combining modifiers, typed props,
249
+ * and recursive children.
250
+ */
251
+ export interface Component<P> {
252
+ /** Layout and styling modifiers. */
253
+ modifiers: Array<Modifier>;
254
+ /** Component-specific properties. */
255
+ props: P;
256
+ /** Child nodes. */
257
+ children: Array<CustomRendererNode>;
258
+ }
259
+ /** Builds a codec for renderer components parameterized by the codec of their
260
+ * `props` payload. */
261
+ export declare function Component<P>(pCodec: S.Codec<P>): S.Codec<Component<P>>;
262
+ /** 2D content alignment. */
263
+ export type ContentAlignment = "TopStart" | "TopCenter" | "TopEnd" | "CenterStart" | "Center" | "CenterEnd" | "BottomStart" | "BottomCenter" | "BottomEnd";
264
+ export declare const ContentAlignment: S.Codec<ContentAlignment>;
265
+ /**
266
+ * A node in the custom renderer UI tree. Can be nested recursively via the
267
+ * `children` field of each [`Component`].
268
+ */
269
+ export type CustomRendererNode =
270
+ /** Empty node. */
271
+ {
272
+ tag: "Nil";
273
+ value?: undefined;
274
+ }
275
+ /** Raw text string. */
276
+ | {
277
+ tag: "String";
278
+ value: {
279
+ text: string;
280
+ };
281
+ }
282
+ /** Generic container. */
283
+ | {
284
+ tag: "Box";
285
+ value: Component<BoxProps>;
286
+ }
287
+ /** Vertical layout. */
288
+ | {
289
+ tag: "Column";
290
+ value: Component<ColumnProps>;
291
+ }
292
+ /** Horizontal layout. */
293
+ | {
294
+ tag: "Row";
295
+ value: Component<RowProps>;
296
+ }
297
+ /** Flexible space. */
298
+ | {
299
+ tag: "Spacer";
300
+ value: Component<undefined>;
301
+ }
302
+ /** Text display. */
303
+ | {
304
+ tag: "Text";
305
+ value: Component<TextProps>;
306
+ }
307
+ /** Interactive button. */
308
+ | {
309
+ tag: "Button";
310
+ value: Component<ButtonProps>;
311
+ }
312
+ /** Text input. */
313
+ | {
314
+ tag: "TextField";
315
+ value: Component<TextFieldProps>;
316
+ };
317
+ export declare const CustomRendererNode: S.Codec<CustomRendererNode>;
318
+ /**
319
+ * CSS-like dimensions: (top, end, bottom, start).
320
+ * Bottom defaults to top, start defaults to end when `None`.
321
+ */
322
+ export interface Dimensions {
323
+ /** Top dimension. */
324
+ top: bigint;
325
+ /** End dimension. */
326
+ end: bigint;
327
+ /** Bottom dimension. Defaults to top when absent. */
328
+ bottom?: bigint;
329
+ /** Start dimension. Defaults to end when absent. */
330
+ start?: bigint;
331
+ }
332
+ export declare const Dimensions: S.Codec<Dimensions>;
333
+ /** Generic error payload carrying a human-readable reason string. */
334
+ export interface GenericErr {
335
+ reason: string;
336
+ }
337
+ export declare const GenericErr: S.Codec<GenericErr>;
338
+ /**
339
+ * Single-variant error enum wrapping [`GenericErr`]. Used by many methods as a
340
+ * catch-all error type.
341
+ */
342
+ export type GenericError = {
343
+ tag: "GenericError";
344
+ value: GenericErr;
345
+ };
346
+ export declare const GenericError: S.Codec<GenericError>;
347
+ /** Horizontal alignment options. */
348
+ export type HorizontalAlignment = "Start" | "Center" | "End";
349
+ export declare const HorizontalAlignment: S.Codec<HorizontalAlignment>;
350
+ /** Versioned envelope for [`HostAccountConnectionStatusSubscribeItem`]. */
351
+ export type VersionedHostAccountConnectionStatusSubscribeItem = {
352
+ tag: "V1";
353
+ value: HostAccountConnectionStatusSubscribeItem;
354
+ };
355
+ export declare const VersionedHostAccountConnectionStatusSubscribeItem: S.Codec<VersionedHostAccountConnectionStatusSubscribeItem>;
356
+ /** Versioned envelope for [`HostAccountCreateProofError`]. */
357
+ export type VersionedHostAccountCreateProofError = {
358
+ tag: "V1";
359
+ value: HostAccountCreateProofError;
360
+ };
361
+ export declare const VersionedHostAccountCreateProofError: S.Codec<VersionedHostAccountCreateProofError>;
362
+ /** Versioned envelope for [`HostAccountCreateProofRequest`]. */
363
+ export type VersionedHostAccountCreateProofRequest = {
364
+ tag: "V1";
365
+ value: HostAccountCreateProofRequest;
366
+ };
367
+ export declare const VersionedHostAccountCreateProofRequest: S.Codec<VersionedHostAccountCreateProofRequest>;
368
+ /** Versioned envelope for [`HostAccountCreateProofResponse`]. */
369
+ export type VersionedHostAccountCreateProofResponse = {
370
+ tag: "V1";
371
+ value: HostAccountCreateProofResponse;
372
+ };
373
+ export declare const VersionedHostAccountCreateProofResponse: S.Codec<VersionedHostAccountCreateProofResponse>;
374
+ /** Versioned envelope for [`HostAccountGetAliasError`]. */
375
+ export type VersionedHostAccountGetAliasError = {
376
+ tag: "V1";
377
+ value: HostAccountGetError;
378
+ };
379
+ export declare const VersionedHostAccountGetAliasError: S.Codec<VersionedHostAccountGetAliasError>;
380
+ /** Versioned envelope for [`HostAccountGetAliasRequest`]. */
381
+ export type VersionedHostAccountGetAliasRequest = {
382
+ tag: "V1";
383
+ value: HostAccountGetAliasRequest;
384
+ };
385
+ export declare const VersionedHostAccountGetAliasRequest: S.Codec<VersionedHostAccountGetAliasRequest>;
386
+ /** Versioned envelope for [`HostAccountGetAliasResponse`]. */
387
+ export type VersionedHostAccountGetAliasResponse = {
388
+ tag: "V1";
389
+ value: HostAccountGetAliasResponse;
390
+ };
391
+ export declare const VersionedHostAccountGetAliasResponse: S.Codec<VersionedHostAccountGetAliasResponse>;
392
+ /** Versioned envelope for [`HostAccountGetError`]. */
393
+ export type VersionedHostAccountGetError = {
394
+ tag: "V1";
395
+ value: HostAccountGetError;
396
+ };
397
+ export declare const VersionedHostAccountGetError: S.Codec<VersionedHostAccountGetError>;
398
+ /** Versioned envelope for [`HostAccountGetRequest`]. */
399
+ export type VersionedHostAccountGetRequest = {
400
+ tag: "V1";
401
+ value: HostAccountGetRequest;
402
+ };
403
+ export declare const VersionedHostAccountGetRequest: S.Codec<VersionedHostAccountGetRequest>;
404
+ /** Versioned envelope for [`HostAccountGetResponse`]. */
405
+ export type VersionedHostAccountGetResponse = {
406
+ tag: "V1";
407
+ value: HostAccountGetResponse;
408
+ };
409
+ export declare const VersionedHostAccountGetResponse: S.Codec<VersionedHostAccountGetResponse>;
410
+ /** Versioned envelope for [`HostChatActionSubscribeItem`]. */
411
+ export type VersionedHostChatActionSubscribeItem = {
412
+ tag: "V1";
413
+ value: HostChatActionSubscribeItem;
414
+ };
415
+ export declare const VersionedHostChatActionSubscribeItem: S.Codec<VersionedHostChatActionSubscribeItem>;
416
+ /** Versioned envelope for [`HostChatCreateRoomError`]. */
417
+ export type VersionedHostChatCreateRoomError = {
418
+ tag: "V1";
419
+ value: HostChatCreateRoomError;
420
+ };
421
+ export declare const VersionedHostChatCreateRoomError: S.Codec<VersionedHostChatCreateRoomError>;
422
+ /** Versioned envelope for [`HostChatCreateRoomRequest`]. */
423
+ export type VersionedHostChatCreateRoomRequest = {
424
+ tag: "V1";
425
+ value: HostChatCreateRoomRequest;
426
+ };
427
+ export declare const VersionedHostChatCreateRoomRequest: S.Codec<VersionedHostChatCreateRoomRequest>;
428
+ /** Versioned envelope for [`HostChatCreateRoomResponse`]. */
429
+ export type VersionedHostChatCreateRoomResponse = {
430
+ tag: "V1";
431
+ value: HostChatCreateRoomResponse;
432
+ };
433
+ export declare const VersionedHostChatCreateRoomResponse: S.Codec<VersionedHostChatCreateRoomResponse>;
434
+ /** Versioned envelope for [`HostChatListSubscribeItem`]. */
435
+ export type VersionedHostChatListSubscribeItem = {
436
+ tag: "V1";
437
+ value: HostChatListSubscribeItem;
438
+ };
439
+ export declare const VersionedHostChatListSubscribeItem: S.Codec<VersionedHostChatListSubscribeItem>;
440
+ /** Versioned envelope for [`HostChatPostMessageError`]. */
441
+ export type VersionedHostChatPostMessageError = {
442
+ tag: "V1";
443
+ value: HostChatPostMessageError;
444
+ };
445
+ export declare const VersionedHostChatPostMessageError: S.Codec<VersionedHostChatPostMessageError>;
446
+ /** Versioned envelope for [`HostChatPostMessageRequest`]. */
447
+ export type VersionedHostChatPostMessageRequest = {
448
+ tag: "V1";
449
+ value: HostChatPostMessageRequest;
450
+ };
451
+ export declare const VersionedHostChatPostMessageRequest: S.Codec<VersionedHostChatPostMessageRequest>;
452
+ /** Versioned envelope for [`HostChatPostMessageResponse`]. */
453
+ export type VersionedHostChatPostMessageResponse = {
454
+ tag: "V1";
455
+ value: HostChatPostMessageResponse;
456
+ };
457
+ export declare const VersionedHostChatPostMessageResponse: S.Codec<VersionedHostChatPostMessageResponse>;
458
+ /** Versioned envelope for [`HostChatRegisterBotError`]. */
459
+ export type VersionedHostChatRegisterBotError = {
460
+ tag: "V1";
461
+ value: HostChatRegisterBotError;
462
+ };
463
+ export declare const VersionedHostChatRegisterBotError: S.Codec<VersionedHostChatRegisterBotError>;
464
+ /** Versioned envelope for [`HostChatRegisterBotRequest`]. */
465
+ export type VersionedHostChatRegisterBotRequest = {
466
+ tag: "V1";
467
+ value: HostChatRegisterBotRequest;
468
+ };
469
+ export declare const VersionedHostChatRegisterBotRequest: S.Codec<VersionedHostChatRegisterBotRequest>;
470
+ /** Versioned envelope for [`HostChatRegisterBotResponse`]. */
471
+ export type VersionedHostChatRegisterBotResponse = {
472
+ tag: "V1";
473
+ value: HostChatRegisterBotResponse;
474
+ };
475
+ export declare const VersionedHostChatRegisterBotResponse: S.Codec<VersionedHostChatRegisterBotResponse>;
476
+ /** Versioned envelope for [`HostCreateTransactionError`]. */
477
+ export type VersionedHostCreateTransactionError = {
478
+ tag: "V1";
479
+ value: HostCreateTransactionError;
480
+ };
481
+ export declare const VersionedHostCreateTransactionError: S.Codec<VersionedHostCreateTransactionError>;
482
+ /** Versioned envelope for [`HostCreateTransactionRequest`]. */
483
+ export type VersionedHostCreateTransactionRequest = {
484
+ tag: "V1";
485
+ value: HostCreateTransactionRequest;
486
+ };
487
+ export declare const VersionedHostCreateTransactionRequest: S.Codec<VersionedHostCreateTransactionRequest>;
488
+ /** Versioned envelope for [`HostCreateTransactionResponse`]. */
489
+ export type VersionedHostCreateTransactionResponse = {
490
+ tag: "V1";
491
+ value: HostCreateTransactionResponse;
492
+ };
493
+ export declare const VersionedHostCreateTransactionResponse: S.Codec<VersionedHostCreateTransactionResponse>;
494
+ /** Versioned envelope for [`HostCreateTransactionWithLegacyAccountError`]. */
495
+ export type VersionedHostCreateTransactionWithLegacyAccountError = {
496
+ tag: "V1";
497
+ value: HostCreateTransactionError;
498
+ };
499
+ export declare const VersionedHostCreateTransactionWithLegacyAccountError: S.Codec<VersionedHostCreateTransactionWithLegacyAccountError>;
500
+ /** Versioned envelope for [`HostCreateTransactionWithLegacyAccountRequest`]. */
501
+ export type VersionedHostCreateTransactionWithLegacyAccountRequest = {
502
+ tag: "V1";
503
+ value: HostCreateTransactionWithLegacyAccountRequest;
504
+ };
505
+ export declare const VersionedHostCreateTransactionWithLegacyAccountRequest: S.Codec<VersionedHostCreateTransactionWithLegacyAccountRequest>;
506
+ /** Versioned envelope for [`HostCreateTransactionWithLegacyAccountResponse`]. */
507
+ export type VersionedHostCreateTransactionWithLegacyAccountResponse = {
508
+ tag: "V1";
509
+ value: HostCreateTransactionWithLegacyAccountResponse;
510
+ };
511
+ export declare const VersionedHostCreateTransactionWithLegacyAccountResponse: S.Codec<VersionedHostCreateTransactionWithLegacyAccountResponse>;
512
+ /** Versioned envelope for [`HostDeriveEntropyError`]. */
513
+ export type VersionedHostDeriveEntropyError = {
514
+ tag: "V1";
515
+ value: HostDeriveEntropyError;
516
+ };
517
+ export declare const VersionedHostDeriveEntropyError: S.Codec<VersionedHostDeriveEntropyError>;
518
+ /** Versioned envelope for [`HostDeriveEntropyRequest`]. */
519
+ export type VersionedHostDeriveEntropyRequest = {
520
+ tag: "V1";
521
+ value: HostDeriveEntropyRequest;
522
+ };
523
+ export declare const VersionedHostDeriveEntropyRequest: S.Codec<VersionedHostDeriveEntropyRequest>;
524
+ /** Versioned envelope for [`HostDeriveEntropyResponse`]. */
525
+ export type VersionedHostDeriveEntropyResponse = {
526
+ tag: "V1";
527
+ value: HostDeriveEntropyResponse;
528
+ };
529
+ export declare const VersionedHostDeriveEntropyResponse: S.Codec<VersionedHostDeriveEntropyResponse>;
530
+ /** Versioned envelope for [`HostDevicePermissionError`]. */
531
+ export type VersionedHostDevicePermissionError = {
532
+ tag: "V1";
533
+ value: GenericError;
534
+ };
535
+ export declare const VersionedHostDevicePermissionError: S.Codec<VersionedHostDevicePermissionError>;
536
+ /** Versioned envelope for [`HostDevicePermissionRequest`]. */
537
+ export type VersionedHostDevicePermissionRequest = {
538
+ tag: "V1";
539
+ value: HostDevicePermissionRequest;
540
+ };
541
+ export declare const VersionedHostDevicePermissionRequest: S.Codec<VersionedHostDevicePermissionRequest>;
542
+ /** Versioned envelope for [`HostDevicePermissionResponse`]. */
543
+ export type VersionedHostDevicePermissionResponse = {
544
+ tag: "V1";
545
+ value: HostDevicePermissionResponse;
546
+ };
547
+ export declare const VersionedHostDevicePermissionResponse: S.Codec<VersionedHostDevicePermissionResponse>;
548
+ /** Versioned envelope for [`HostFeatureSupportedError`]. */
549
+ export type VersionedHostFeatureSupportedError = {
550
+ tag: "V1";
551
+ value: GenericError;
552
+ };
553
+ export declare const VersionedHostFeatureSupportedError: S.Codec<VersionedHostFeatureSupportedError>;
554
+ /** Versioned envelope for [`HostFeatureSupportedRequest`]. */
555
+ export type VersionedHostFeatureSupportedRequest = {
556
+ tag: "V1";
557
+ value: HostFeatureSupportedRequest;
558
+ };
559
+ export declare const VersionedHostFeatureSupportedRequest: S.Codec<VersionedHostFeatureSupportedRequest>;
560
+ /** Versioned envelope for [`HostFeatureSupportedResponse`]. */
561
+ export type VersionedHostFeatureSupportedResponse = {
562
+ tag: "V1";
563
+ value: HostFeatureSupportedResponse;
564
+ };
565
+ export declare const VersionedHostFeatureSupportedResponse: S.Codec<VersionedHostFeatureSupportedResponse>;
566
+ /** Versioned envelope for [`HostGetLegacyAccountsError`]. */
567
+ export type VersionedHostGetLegacyAccountsError = {
568
+ tag: "V1";
569
+ value: HostAccountGetError;
570
+ };
571
+ export declare const VersionedHostGetLegacyAccountsError: S.Codec<VersionedHostGetLegacyAccountsError>;
572
+ /** Versioned envelope for [`HostGetLegacyAccountsRequest`]. */
573
+ export type VersionedHostGetLegacyAccountsRequest = {
574
+ tag: "V1";
575
+ value?: undefined;
576
+ };
577
+ export declare const VersionedHostGetLegacyAccountsRequest: S.Codec<VersionedHostGetLegacyAccountsRequest>;
578
+ /** Versioned envelope for [`HostGetLegacyAccountsResponse`]. */
579
+ export type VersionedHostGetLegacyAccountsResponse = {
580
+ tag: "V1";
581
+ value: HostGetLegacyAccountsResponse;
582
+ };
583
+ export declare const VersionedHostGetLegacyAccountsResponse: S.Codec<VersionedHostGetLegacyAccountsResponse>;
584
+ /** Versioned envelope for [`HostGetUserIdError`]. */
585
+ export type VersionedHostGetUserIdError = {
586
+ tag: "V1";
587
+ value: HostGetUserIdError;
588
+ };
589
+ export declare const VersionedHostGetUserIdError: S.Codec<VersionedHostGetUserIdError>;
590
+ /** Versioned envelope for [`HostGetUserIdRequest`]. */
591
+ export type VersionedHostGetUserIdRequest = {
592
+ tag: "V1";
593
+ value?: undefined;
594
+ };
595
+ export declare const VersionedHostGetUserIdRequest: S.Codec<VersionedHostGetUserIdRequest>;
596
+ /** Versioned envelope for [`HostGetUserIdResponse`]. */
597
+ export type VersionedHostGetUserIdResponse = {
598
+ tag: "V1";
599
+ value: HostGetUserIdResponse;
600
+ };
601
+ export declare const VersionedHostGetUserIdResponse: S.Codec<VersionedHostGetUserIdResponse>;
602
+ /** Versioned envelope for [`HostHandshakeError`]. */
603
+ export type VersionedHostHandshakeError = {
604
+ tag: "V1";
605
+ value: HostHandshakeError;
606
+ };
607
+ export declare const VersionedHostHandshakeError: S.Codec<VersionedHostHandshakeError>;
608
+ /** Versioned envelope for [`HostHandshakeRequest`]. */
609
+ export type VersionedHostHandshakeRequest = {
610
+ tag: "V1";
611
+ value: HostHandshakeRequest;
612
+ };
613
+ export declare const VersionedHostHandshakeRequest: S.Codec<VersionedHostHandshakeRequest>;
614
+ /** Versioned envelope for [`HostHandshakeResponse`]. */
615
+ export type VersionedHostHandshakeResponse = {
616
+ tag: "V1";
617
+ value?: undefined;
618
+ };
619
+ export declare const VersionedHostHandshakeResponse: S.Codec<VersionedHostHandshakeResponse>;
620
+ /** Versioned envelope for [`HostJsonrpcMessageSendError`]. */
621
+ export type VersionedHostJsonrpcMessageSendError = {
622
+ tag: "V1";
623
+ value: GenericError;
624
+ };
625
+ export declare const VersionedHostJsonrpcMessageSendError: S.Codec<VersionedHostJsonrpcMessageSendError>;
626
+ /** Versioned envelope for [`HostJsonrpcMessageSendRequest`]. */
627
+ export type VersionedHostJsonrpcMessageSendRequest = {
628
+ tag: "V1";
629
+ value: HostJsonrpcMessageSendRequest;
630
+ };
631
+ export declare const VersionedHostJsonrpcMessageSendRequest: S.Codec<VersionedHostJsonrpcMessageSendRequest>;
632
+ /** Versioned envelope for [`HostJsonrpcMessageSendResponse`]. */
633
+ export type VersionedHostJsonrpcMessageSendResponse = {
634
+ tag: "V1";
635
+ value?: undefined;
636
+ };
637
+ export declare const VersionedHostJsonrpcMessageSendResponse: S.Codec<VersionedHostJsonrpcMessageSendResponse>;
638
+ /** Versioned envelope for [`HostJsonrpcMessageSubscribeItem`]. */
639
+ export type VersionedHostJsonrpcMessageSubscribeItem = {
640
+ tag: "V1";
641
+ value: HostJsonrpcMessageSubscribeItem;
642
+ };
643
+ export declare const VersionedHostJsonrpcMessageSubscribeItem: S.Codec<VersionedHostJsonrpcMessageSubscribeItem>;
644
+ /** Versioned envelope for [`HostJsonrpcMessageSubscribeRequest`]. */
645
+ export type VersionedHostJsonrpcMessageSubscribeRequest = {
646
+ tag: "V1";
647
+ value: HostJsonrpcMessageSubscribeRequest;
648
+ };
649
+ export declare const VersionedHostJsonrpcMessageSubscribeRequest: S.Codec<VersionedHostJsonrpcMessageSubscribeRequest>;
650
+ /** Versioned envelope for [`HostLocalStorageClearError`]. */
651
+ export type VersionedHostLocalStorageClearError = {
652
+ tag: "V1";
653
+ value: HostLocalStorageReadError;
654
+ };
655
+ export declare const VersionedHostLocalStorageClearError: S.Codec<VersionedHostLocalStorageClearError>;
656
+ /** Versioned envelope for [`HostLocalStorageClearRequest`]. */
657
+ export type VersionedHostLocalStorageClearRequest = {
658
+ tag: "V1";
659
+ value: HostLocalStorageClearRequest;
660
+ };
661
+ export declare const VersionedHostLocalStorageClearRequest: S.Codec<VersionedHostLocalStorageClearRequest>;
662
+ /** Versioned envelope for [`HostLocalStorageClearResponse`]. */
663
+ export type VersionedHostLocalStorageClearResponse = {
664
+ tag: "V1";
665
+ value?: undefined;
666
+ };
667
+ export declare const VersionedHostLocalStorageClearResponse: S.Codec<VersionedHostLocalStorageClearResponse>;
668
+ /** Versioned envelope for [`HostLocalStorageReadError`]. */
669
+ export type VersionedHostLocalStorageReadError = {
670
+ tag: "V1";
671
+ value: HostLocalStorageReadError;
672
+ };
673
+ export declare const VersionedHostLocalStorageReadError: S.Codec<VersionedHostLocalStorageReadError>;
674
+ /** Versioned envelope for [`HostLocalStorageReadRequest`]. */
675
+ export type VersionedHostLocalStorageReadRequest = {
676
+ tag: "V1";
677
+ value: HostLocalStorageReadRequest;
678
+ };
679
+ export declare const VersionedHostLocalStorageReadRequest: S.Codec<VersionedHostLocalStorageReadRequest>;
680
+ /** Versioned envelope for [`HostLocalStorageReadResponse`]. */
681
+ export type VersionedHostLocalStorageReadResponse = {
682
+ tag: "V1";
683
+ value: HostLocalStorageReadResponse;
684
+ };
685
+ export declare const VersionedHostLocalStorageReadResponse: S.Codec<VersionedHostLocalStorageReadResponse>;
686
+ /** Versioned envelope for [`HostLocalStorageWriteError`]. */
687
+ export type VersionedHostLocalStorageWriteError = {
688
+ tag: "V1";
689
+ value: HostLocalStorageReadError;
690
+ };
691
+ export declare const VersionedHostLocalStorageWriteError: S.Codec<VersionedHostLocalStorageWriteError>;
692
+ /** Versioned envelope for [`HostLocalStorageWriteRequest`]. */
693
+ export type VersionedHostLocalStorageWriteRequest = {
694
+ tag: "V1";
695
+ value: HostLocalStorageWriteRequest;
696
+ };
697
+ export declare const VersionedHostLocalStorageWriteRequest: S.Codec<VersionedHostLocalStorageWriteRequest>;
698
+ /** Versioned envelope for [`HostLocalStorageWriteResponse`]. */
699
+ export type VersionedHostLocalStorageWriteResponse = {
700
+ tag: "V1";
701
+ value?: undefined;
702
+ };
703
+ export declare const VersionedHostLocalStorageWriteResponse: S.Codec<VersionedHostLocalStorageWriteResponse>;
704
+ /** Versioned envelope for [`HostNavigateToError`]. */
705
+ export type VersionedHostNavigateToError = {
706
+ tag: "V1";
707
+ value: HostNavigateToError;
708
+ };
709
+ export declare const VersionedHostNavigateToError: S.Codec<VersionedHostNavigateToError>;
710
+ /** Versioned envelope for [`HostNavigateToRequest`]. */
711
+ export type VersionedHostNavigateToRequest = {
712
+ tag: "V1";
713
+ value: HostNavigateToRequest;
714
+ };
715
+ export declare const VersionedHostNavigateToRequest: S.Codec<VersionedHostNavigateToRequest>;
716
+ /** Versioned envelope for [`HostNavigateToResponse`]. */
717
+ export type VersionedHostNavigateToResponse = {
718
+ tag: "V1";
719
+ value?: undefined;
720
+ };
721
+ export declare const VersionedHostNavigateToResponse: S.Codec<VersionedHostNavigateToResponse>;
722
+ /** Versioned envelope for [`HostPaymentBalanceSubscribeError`]. */
723
+ export type VersionedHostPaymentBalanceSubscribeError = {
724
+ tag: "V1";
725
+ value: HostPaymentBalanceSubscribeError;
726
+ };
727
+ export declare const VersionedHostPaymentBalanceSubscribeError: S.Codec<VersionedHostPaymentBalanceSubscribeError>;
728
+ /** Versioned envelope for [`HostPaymentBalanceSubscribeItem`]. */
729
+ export type VersionedHostPaymentBalanceSubscribeItem = {
730
+ tag: "V1";
731
+ value: HostPaymentBalanceSubscribeItem;
732
+ };
733
+ export declare const VersionedHostPaymentBalanceSubscribeItem: S.Codec<VersionedHostPaymentBalanceSubscribeItem>;
734
+ /** Versioned envelope for [`HostPaymentBalanceSubscribeRequest`]. */
735
+ export type VersionedHostPaymentBalanceSubscribeRequest = {
736
+ tag: "V1";
737
+ value?: undefined;
738
+ };
739
+ export declare const VersionedHostPaymentBalanceSubscribeRequest: S.Codec<VersionedHostPaymentBalanceSubscribeRequest>;
740
+ /** Versioned envelope for [`HostPaymentRequestError`]. */
741
+ export type VersionedHostPaymentRequestError = {
742
+ tag: "V1";
743
+ value: HostPaymentRequestError;
744
+ };
745
+ export declare const VersionedHostPaymentRequestError: S.Codec<VersionedHostPaymentRequestError>;
746
+ /** Versioned envelope for [`HostPaymentRequestRequest`]. */
747
+ export type VersionedHostPaymentRequestRequest = {
748
+ tag: "V1";
749
+ value: HostPaymentRequestRequest;
750
+ };
751
+ export declare const VersionedHostPaymentRequestRequest: S.Codec<VersionedHostPaymentRequestRequest>;
752
+ /** Versioned envelope for [`HostPaymentRequestResponse`]. */
753
+ export type VersionedHostPaymentRequestResponse = {
754
+ tag: "V1";
755
+ value: HostPaymentRequestResponse;
756
+ };
757
+ export declare const VersionedHostPaymentRequestResponse: S.Codec<VersionedHostPaymentRequestResponse>;
758
+ /** Versioned envelope for [`HostPaymentStatusSubscribeError`]. */
759
+ export type VersionedHostPaymentStatusSubscribeError = {
760
+ tag: "V1";
761
+ value: HostPaymentStatusSubscribeError;
762
+ };
763
+ export declare const VersionedHostPaymentStatusSubscribeError: S.Codec<VersionedHostPaymentStatusSubscribeError>;
764
+ /** Versioned envelope for [`HostPaymentStatusSubscribeItem`]. */
765
+ export type VersionedHostPaymentStatusSubscribeItem = {
766
+ tag: "V1";
767
+ value: HostPaymentStatusSubscribeItem;
768
+ };
769
+ export declare const VersionedHostPaymentStatusSubscribeItem: S.Codec<VersionedHostPaymentStatusSubscribeItem>;
770
+ /** Versioned envelope for [`HostPaymentStatusSubscribeRequest`]. */
771
+ export type VersionedHostPaymentStatusSubscribeRequest = {
772
+ tag: "V1";
773
+ value: HostPaymentStatusSubscribeRequest;
774
+ };
775
+ export declare const VersionedHostPaymentStatusSubscribeRequest: S.Codec<VersionedHostPaymentStatusSubscribeRequest>;
776
+ /** Versioned envelope for [`HostPaymentTopUpError`]. */
777
+ export type VersionedHostPaymentTopUpError = {
778
+ tag: "V1";
779
+ value: HostPaymentTopUpError;
780
+ };
781
+ export declare const VersionedHostPaymentTopUpError: S.Codec<VersionedHostPaymentTopUpError>;
782
+ /** Versioned envelope for [`HostPaymentTopUpRequest`]. */
783
+ export type VersionedHostPaymentTopUpRequest = {
784
+ tag: "V1";
785
+ value: HostPaymentTopUpRequest;
786
+ };
787
+ export declare const VersionedHostPaymentTopUpRequest: S.Codec<VersionedHostPaymentTopUpRequest>;
788
+ /** Versioned envelope for [`HostPaymentTopUpResponse`]. */
789
+ export type VersionedHostPaymentTopUpResponse = {
790
+ tag: "V1";
791
+ value?: undefined;
792
+ };
793
+ export declare const VersionedHostPaymentTopUpResponse: S.Codec<VersionedHostPaymentTopUpResponse>;
794
+ /** Versioned envelope for [`HostPushNotificationError`]. */
795
+ export type VersionedHostPushNotificationError = {
796
+ tag: "V1";
797
+ value: GenericError;
798
+ };
799
+ export declare const VersionedHostPushNotificationError: S.Codec<VersionedHostPushNotificationError>;
800
+ /** Versioned envelope for [`HostPushNotificationRequest`]. */
801
+ export type VersionedHostPushNotificationRequest = {
802
+ tag: "V1";
803
+ value: HostPushNotificationRequest;
804
+ };
805
+ export declare const VersionedHostPushNotificationRequest: S.Codec<VersionedHostPushNotificationRequest>;
806
+ /** Versioned envelope for [`HostPushNotificationResponse`]. */
807
+ export type VersionedHostPushNotificationResponse = {
808
+ tag: "V1";
809
+ value?: undefined;
810
+ };
811
+ export declare const VersionedHostPushNotificationResponse: S.Codec<VersionedHostPushNotificationResponse>;
812
+ /** Versioned envelope for [`HostRequestLoginError`]. */
813
+ export type VersionedHostRequestLoginError = {
814
+ tag: "V1";
815
+ value: HostRequestLoginError;
816
+ };
817
+ export declare const VersionedHostRequestLoginError: S.Codec<VersionedHostRequestLoginError>;
818
+ /** Versioned envelope for [`HostRequestLoginRequest`]. */
819
+ export type VersionedHostRequestLoginRequest = {
820
+ tag: "V1";
821
+ value: HostRequestLoginRequest;
822
+ };
823
+ export declare const VersionedHostRequestLoginRequest: S.Codec<VersionedHostRequestLoginRequest>;
824
+ /** Versioned envelope for [`HostRequestLoginResponse`]. */
825
+ export type VersionedHostRequestLoginResponse = {
826
+ tag: "V1";
827
+ value: HostRequestLoginResponse;
828
+ };
829
+ export declare const VersionedHostRequestLoginResponse: S.Codec<VersionedHostRequestLoginResponse>;
830
+ /** Versioned envelope for [`HostRequestResourceAllocationError`]. */
831
+ export type VersionedHostRequestResourceAllocationError = {
832
+ tag: "V1";
833
+ value: ResourceAllocationError;
834
+ };
835
+ export declare const VersionedHostRequestResourceAllocationError: S.Codec<VersionedHostRequestResourceAllocationError>;
836
+ /** Versioned envelope for [`HostRequestResourceAllocationRequest`]. */
837
+ export type VersionedHostRequestResourceAllocationRequest = {
838
+ tag: "V1";
839
+ value: HostRequestResourceAllocationRequest;
840
+ };
841
+ export declare const VersionedHostRequestResourceAllocationRequest: S.Codec<VersionedHostRequestResourceAllocationRequest>;
842
+ /** Versioned envelope for [`HostRequestResourceAllocationResponse`]. */
843
+ export type VersionedHostRequestResourceAllocationResponse = {
844
+ tag: "V1";
845
+ value: HostRequestResourceAllocationResponse;
846
+ };
847
+ export declare const VersionedHostRequestResourceAllocationResponse: S.Codec<VersionedHostRequestResourceAllocationResponse>;
848
+ /** Versioned envelope for [`HostSignPayloadError`]. */
849
+ export type VersionedHostSignPayloadError = {
850
+ tag: "V1";
851
+ value: HostSignPayloadError;
852
+ };
853
+ export declare const VersionedHostSignPayloadError: S.Codec<VersionedHostSignPayloadError>;
854
+ /** Versioned envelope for [`HostSignPayloadRequest`]. */
855
+ export type VersionedHostSignPayloadRequest = {
856
+ tag: "V1";
857
+ value: HostSignPayloadRequest;
858
+ };
859
+ export declare const VersionedHostSignPayloadRequest: S.Codec<VersionedHostSignPayloadRequest>;
860
+ /** Versioned envelope for [`HostSignPayloadResponse`]. */
861
+ export type VersionedHostSignPayloadResponse = {
862
+ tag: "V1";
863
+ value: HostSignPayloadResponse;
864
+ };
865
+ export declare const VersionedHostSignPayloadResponse: S.Codec<VersionedHostSignPayloadResponse>;
866
+ /** Versioned envelope for [`HostSignPayloadWithLegacyAccountError`]. */
867
+ export type VersionedHostSignPayloadWithLegacyAccountError = {
868
+ tag: "V1";
869
+ value: HostSignPayloadError;
870
+ };
871
+ export declare const VersionedHostSignPayloadWithLegacyAccountError: S.Codec<VersionedHostSignPayloadWithLegacyAccountError>;
872
+ /** Versioned envelope for [`HostSignPayloadWithLegacyAccountRequest`]. */
873
+ export type VersionedHostSignPayloadWithLegacyAccountRequest = {
874
+ tag: "V1";
875
+ value: HostSignPayloadWithLegacyAccountRequest;
876
+ };
877
+ export declare const VersionedHostSignPayloadWithLegacyAccountRequest: S.Codec<VersionedHostSignPayloadWithLegacyAccountRequest>;
878
+ /** Versioned envelope for [`HostSignPayloadWithLegacyAccountResponse`]. */
879
+ export type VersionedHostSignPayloadWithLegacyAccountResponse = {
880
+ tag: "V1";
881
+ value: HostSignPayloadResponse;
882
+ };
883
+ export declare const VersionedHostSignPayloadWithLegacyAccountResponse: S.Codec<VersionedHostSignPayloadWithLegacyAccountResponse>;
884
+ /** Versioned envelope for [`HostSignRawError`]. */
885
+ export type VersionedHostSignRawError = {
886
+ tag: "V1";
887
+ value: HostSignPayloadError;
888
+ };
889
+ export declare const VersionedHostSignRawError: S.Codec<VersionedHostSignRawError>;
890
+ /** Versioned envelope for [`HostSignRawRequest`]. */
891
+ export type VersionedHostSignRawRequest = {
892
+ tag: "V1";
893
+ value: HostSignRawRequest;
894
+ };
895
+ export declare const VersionedHostSignRawRequest: S.Codec<VersionedHostSignRawRequest>;
896
+ /** Versioned envelope for [`HostSignRawResponse`]. */
897
+ export type VersionedHostSignRawResponse = {
898
+ tag: "V1";
899
+ value: HostSignPayloadResponse;
900
+ };
901
+ export declare const VersionedHostSignRawResponse: S.Codec<VersionedHostSignRawResponse>;
902
+ /** Versioned envelope for [`HostSignRawWithLegacyAccountError`]. */
903
+ export type VersionedHostSignRawWithLegacyAccountError = {
904
+ tag: "V1";
905
+ value: HostSignPayloadError;
906
+ };
907
+ export declare const VersionedHostSignRawWithLegacyAccountError: S.Codec<VersionedHostSignRawWithLegacyAccountError>;
908
+ /** Versioned envelope for [`HostSignRawWithLegacyAccountRequest`]. */
909
+ export type VersionedHostSignRawWithLegacyAccountRequest = {
910
+ tag: "V1";
911
+ value: HostSignRawWithLegacyAccountRequest;
912
+ };
913
+ export declare const VersionedHostSignRawWithLegacyAccountRequest: S.Codec<VersionedHostSignRawWithLegacyAccountRequest>;
914
+ /** Versioned envelope for [`HostSignRawWithLegacyAccountResponse`]. */
915
+ export type VersionedHostSignRawWithLegacyAccountResponse = {
916
+ tag: "V1";
917
+ value: HostSignPayloadResponse;
918
+ };
919
+ export declare const VersionedHostSignRawWithLegacyAccountResponse: S.Codec<VersionedHostSignRawWithLegacyAccountResponse>;
920
+ /** Versioned envelope for [`HostThemeSubscribeItem`]. */
921
+ export type VersionedHostThemeSubscribeItem = {
922
+ tag: "V1";
923
+ value: HostThemeSubscribeItem;
924
+ };
925
+ export declare const VersionedHostThemeSubscribeItem: S.Codec<VersionedHostThemeSubscribeItem>;
926
+ /** Layout and styling modifiers applied to custom renderer components. */
927
+ export type Modifier =
928
+ /** Outer spacing. */
929
+ {
930
+ tag: "Margin";
931
+ value: Dimensions;
932
+ }
933
+ /** Inner spacing. */
934
+ | {
935
+ tag: "Padding";
936
+ value: Dimensions;
937
+ }
938
+ /** Background fill. */
939
+ | {
940
+ tag: "Background";
941
+ value: Background;
942
+ }
943
+ /** Border style. */
944
+ | {
945
+ tag: "Border";
946
+ value: BorderStyle;
947
+ }
948
+ /** Fixed height. */
949
+ | {
950
+ tag: "Height";
951
+ value: {
952
+ height: bigint;
953
+ };
954
+ }
955
+ /** Fixed width. */
956
+ | {
957
+ tag: "Width";
958
+ value: {
959
+ width: bigint;
960
+ };
961
+ }
962
+ /** Minimum width. */
963
+ | {
964
+ tag: "MinWidth";
965
+ value: {
966
+ width: bigint;
967
+ };
968
+ }
969
+ /** Minimum height. */
970
+ | {
971
+ tag: "MinHeight";
972
+ value: {
973
+ height: bigint;
974
+ };
975
+ }
976
+ /** Fill available width. */
977
+ | {
978
+ tag: "FillWidth";
979
+ value: {
980
+ enabled: boolean;
981
+ };
982
+ }
983
+ /** Fill available height. */
984
+ | {
985
+ tag: "FillHeight";
986
+ value: {
987
+ enabled: boolean;
988
+ };
989
+ };
990
+ export declare const Modifier: S.Codec<Modifier>;
991
+ export type OperationStartedResult = {
992
+ tag: "Started";
993
+ value: {
994
+ operationId: string;
995
+ };
996
+ } | {
997
+ tag: "LimitReached";
998
+ value?: undefined;
999
+ };
1000
+ export declare const OperationStartedResult: S.Codec<OperationStartedResult>;
1001
+ /**
1002
+ * Source for a payment top-up operation.
1003
+ *
1004
+ * See [RFC 0006].
1005
+ *
1006
+ * [RFC 0006]: https://github.com/paritytech/triangle-js-sdks/pull/94
1007
+ */
1008
+ export type PaymentTopUpSource =
1009
+ /** Fund from one of the calling product's scoped accounts. */
1010
+ {
1011
+ tag: "ProductAccount";
1012
+ value: {
1013
+ derivationIndex: number;
1014
+ };
1015
+ }
1016
+ /**
1017
+ * Fund from a one-time account represented by its private key. This is a
1018
+ * standard account holding public funds, not a coin key.
1019
+ */
1020
+ | {
1021
+ tag: "PrivateKey";
1022
+ value: {
1023
+ ed25519PrivateKey: HexString;
1024
+ };
1025
+ };
1026
+ export declare const PaymentTopUpSource: S.Codec<PaymentTopUpSource>;
1027
+ /** Preimage submission error. */
1028
+ export type PreimageSubmitError =
1029
+ /** Catch-all. */
1030
+ {
1031
+ tag: "Unknown";
1032
+ value: {
1033
+ reason: string;
1034
+ };
1035
+ };
1036
+ export declare const PreimageSubmitError: S.Codec<PreimageSubmitError>;
1037
+ /** A product account: public key only, no display name. */
1038
+ export interface ProductAccount {
1039
+ /** The account public key (variable-length bytes). */
1040
+ publicKey: HexString;
1041
+ }
1042
+ export declare const ProductAccount: S.Codec<ProductAccount>;
1043
+ /**
1044
+ * Identifies a product-specific account by combining a dotNS domain name with a
1045
+ * derivation index.
1046
+ */
1047
+ export interface ProductAccountId {
1048
+ /** A dotNS domain name identifier (e.g., `"my-product.dot"`). */
1049
+ dotNsIdentifier: string;
1050
+ /** Key derivation index for generating product-specific accounts. */
1051
+ derivationIndex: number;
1052
+ }
1053
+ export declare const ProductAccountId: S.Codec<ProductAccountId>;
1054
+ /** Versioned envelope for [`ProductChatCustomMessageRenderSubscribeItem`]. */
1055
+ export type VersionedProductChatCustomMessageRenderSubscribeItem = {
1056
+ tag: "V1";
1057
+ value: CustomRendererNode;
1058
+ };
1059
+ export declare const VersionedProductChatCustomMessageRenderSubscribeItem: S.Codec<VersionedProductChatCustomMessageRenderSubscribeItem>;
1060
+ /** Versioned envelope for [`ProductChatCustomMessageRenderSubscribeRequest`]. */
1061
+ export type VersionedProductChatCustomMessageRenderSubscribeRequest = {
1062
+ tag: "V1";
1063
+ value: ProductChatCustomMessageRenderSubscribeRequest;
1064
+ };
1065
+ export declare const VersionedProductChatCustomMessageRenderSubscribeRequest: S.Codec<VersionedProductChatCustomMessageRenderSubscribeRequest>;
1066
+ export type RawPayload = {
1067
+ tag: "Bytes";
1068
+ value: {
1069
+ bytes: HexString;
1070
+ };
1071
+ } | {
1072
+ tag: "Payload";
1073
+ value: {
1074
+ payload: string;
1075
+ };
1076
+ };
1077
+ export declare const RawPayload: S.Codec<RawPayload>;
1078
+ /** Versioned envelope for [`RemoteChainHeadBodyError`]. */
1079
+ export type VersionedRemoteChainHeadBodyError = {
1080
+ tag: "V1";
1081
+ value: GenericError;
1082
+ };
1083
+ export declare const VersionedRemoteChainHeadBodyError: S.Codec<VersionedRemoteChainHeadBodyError>;
1084
+ /** Versioned envelope for [`RemoteChainHeadBodyRequest`]. */
1085
+ export type VersionedRemoteChainHeadBodyRequest = {
1086
+ tag: "V1";
1087
+ value: RemoteChainHeadBodyRequest;
1088
+ };
1089
+ export declare const VersionedRemoteChainHeadBodyRequest: S.Codec<VersionedRemoteChainHeadBodyRequest>;
1090
+ /** Versioned envelope for [`RemoteChainHeadBodyResponse`]. */
1091
+ export type VersionedRemoteChainHeadBodyResponse = {
1092
+ tag: "V1";
1093
+ value: RemoteChainHeadBodyResponse;
1094
+ };
1095
+ export declare const VersionedRemoteChainHeadBodyResponse: S.Codec<VersionedRemoteChainHeadBodyResponse>;
1096
+ /** Versioned envelope for [`RemoteChainHeadCallError`]. */
1097
+ export type VersionedRemoteChainHeadCallError = {
1098
+ tag: "V1";
1099
+ value: GenericError;
1100
+ };
1101
+ export declare const VersionedRemoteChainHeadCallError: S.Codec<VersionedRemoteChainHeadCallError>;
1102
+ /** Versioned envelope for [`RemoteChainHeadCallRequest`]. */
1103
+ export type VersionedRemoteChainHeadCallRequest = {
1104
+ tag: "V1";
1105
+ value: RemoteChainHeadCallRequest;
1106
+ };
1107
+ export declare const VersionedRemoteChainHeadCallRequest: S.Codec<VersionedRemoteChainHeadCallRequest>;
1108
+ /** Versioned envelope for [`RemoteChainHeadCallResponse`]. */
1109
+ export type VersionedRemoteChainHeadCallResponse = {
1110
+ tag: "V1";
1111
+ value: RemoteChainHeadCallResponse;
1112
+ };
1113
+ export declare const VersionedRemoteChainHeadCallResponse: S.Codec<VersionedRemoteChainHeadCallResponse>;
1114
+ /** Versioned envelope for [`RemoteChainHeadContinueError`]. */
1115
+ export type VersionedRemoteChainHeadContinueError = {
1116
+ tag: "V1";
1117
+ value: GenericError;
1118
+ };
1119
+ export declare const VersionedRemoteChainHeadContinueError: S.Codec<VersionedRemoteChainHeadContinueError>;
1120
+ /** Versioned envelope for [`RemoteChainHeadContinueRequest`]. */
1121
+ export type VersionedRemoteChainHeadContinueRequest = {
1122
+ tag: "V1";
1123
+ value: RemoteChainHeadContinueRequest;
1124
+ };
1125
+ export declare const VersionedRemoteChainHeadContinueRequest: S.Codec<VersionedRemoteChainHeadContinueRequest>;
1126
+ /** Versioned envelope for [`RemoteChainHeadContinueResponse`]. */
1127
+ export type VersionedRemoteChainHeadContinueResponse = {
1128
+ tag: "V1";
1129
+ value?: undefined;
1130
+ };
1131
+ export declare const VersionedRemoteChainHeadContinueResponse: S.Codec<VersionedRemoteChainHeadContinueResponse>;
1132
+ /** Versioned envelope for [`RemoteChainHeadFollowItem`]. */
1133
+ export type VersionedRemoteChainHeadFollowItem = {
1134
+ tag: "V1";
1135
+ value: RemoteChainHeadFollowItem;
1136
+ };
1137
+ export declare const VersionedRemoteChainHeadFollowItem: S.Codec<VersionedRemoteChainHeadFollowItem>;
1138
+ /** Versioned envelope for [`RemoteChainHeadFollowRequest`]. */
1139
+ export type VersionedRemoteChainHeadFollowRequest = {
1140
+ tag: "V1";
1141
+ value: RemoteChainHeadFollowRequest;
1142
+ };
1143
+ export declare const VersionedRemoteChainHeadFollowRequest: S.Codec<VersionedRemoteChainHeadFollowRequest>;
1144
+ /** Versioned envelope for [`RemoteChainHeadHeaderError`]. */
1145
+ export type VersionedRemoteChainHeadHeaderError = {
1146
+ tag: "V1";
1147
+ value: GenericError;
1148
+ };
1149
+ export declare const VersionedRemoteChainHeadHeaderError: S.Codec<VersionedRemoteChainHeadHeaderError>;
1150
+ /** Versioned envelope for [`RemoteChainHeadHeaderRequest`]. */
1151
+ export type VersionedRemoteChainHeadHeaderRequest = {
1152
+ tag: "V1";
1153
+ value: RemoteChainHeadHeaderRequest;
1154
+ };
1155
+ export declare const VersionedRemoteChainHeadHeaderRequest: S.Codec<VersionedRemoteChainHeadHeaderRequest>;
1156
+ /** Versioned envelope for [`RemoteChainHeadHeaderResponse`]. */
1157
+ export type VersionedRemoteChainHeadHeaderResponse = {
1158
+ tag: "V1";
1159
+ value: RemoteChainHeadHeaderResponse;
1160
+ };
1161
+ export declare const VersionedRemoteChainHeadHeaderResponse: S.Codec<VersionedRemoteChainHeadHeaderResponse>;
1162
+ /** Versioned envelope for [`RemoteChainHeadStopOperationError`]. */
1163
+ export type VersionedRemoteChainHeadStopOperationError = {
1164
+ tag: "V1";
1165
+ value: GenericError;
1166
+ };
1167
+ export declare const VersionedRemoteChainHeadStopOperationError: S.Codec<VersionedRemoteChainHeadStopOperationError>;
1168
+ /** Versioned envelope for [`RemoteChainHeadStopOperationRequest`]. */
1169
+ export type VersionedRemoteChainHeadStopOperationRequest = {
1170
+ tag: "V1";
1171
+ value: RemoteChainHeadStopOperationRequest;
1172
+ };
1173
+ export declare const VersionedRemoteChainHeadStopOperationRequest: S.Codec<VersionedRemoteChainHeadStopOperationRequest>;
1174
+ /** Versioned envelope for [`RemoteChainHeadStopOperationResponse`]. */
1175
+ export type VersionedRemoteChainHeadStopOperationResponse = {
1176
+ tag: "V1";
1177
+ value?: undefined;
1178
+ };
1179
+ export declare const VersionedRemoteChainHeadStopOperationResponse: S.Codec<VersionedRemoteChainHeadStopOperationResponse>;
1180
+ /** Versioned envelope for [`RemoteChainHeadStorageError`]. */
1181
+ export type VersionedRemoteChainHeadStorageError = {
1182
+ tag: "V1";
1183
+ value: GenericError;
1184
+ };
1185
+ export declare const VersionedRemoteChainHeadStorageError: S.Codec<VersionedRemoteChainHeadStorageError>;
1186
+ /** Versioned envelope for [`RemoteChainHeadStorageRequest`]. */
1187
+ export type VersionedRemoteChainHeadStorageRequest = {
1188
+ tag: "V1";
1189
+ value: RemoteChainHeadStorageRequest;
1190
+ };
1191
+ export declare const VersionedRemoteChainHeadStorageRequest: S.Codec<VersionedRemoteChainHeadStorageRequest>;
1192
+ /** Versioned envelope for [`RemoteChainHeadStorageResponse`]. */
1193
+ export type VersionedRemoteChainHeadStorageResponse = {
1194
+ tag: "V1";
1195
+ value: RemoteChainHeadStorageResponse;
1196
+ };
1197
+ export declare const VersionedRemoteChainHeadStorageResponse: S.Codec<VersionedRemoteChainHeadStorageResponse>;
1198
+ /** Versioned envelope for [`RemoteChainHeadUnpinError`]. */
1199
+ export type VersionedRemoteChainHeadUnpinError = {
1200
+ tag: "V1";
1201
+ value: GenericError;
1202
+ };
1203
+ export declare const VersionedRemoteChainHeadUnpinError: S.Codec<VersionedRemoteChainHeadUnpinError>;
1204
+ /** Versioned envelope for [`RemoteChainHeadUnpinRequest`]. */
1205
+ export type VersionedRemoteChainHeadUnpinRequest = {
1206
+ tag: "V1";
1207
+ value: RemoteChainHeadUnpinRequest;
1208
+ };
1209
+ export declare const VersionedRemoteChainHeadUnpinRequest: S.Codec<VersionedRemoteChainHeadUnpinRequest>;
1210
+ /** Versioned envelope for [`RemoteChainHeadUnpinResponse`]. */
1211
+ export type VersionedRemoteChainHeadUnpinResponse = {
1212
+ tag: "V1";
1213
+ value?: undefined;
1214
+ };
1215
+ export declare const VersionedRemoteChainHeadUnpinResponse: S.Codec<VersionedRemoteChainHeadUnpinResponse>;
1216
+ /** Versioned envelope for [`RemoteChainSpecChainNameError`]. */
1217
+ export type VersionedRemoteChainSpecChainNameError = {
1218
+ tag: "V1";
1219
+ value: GenericError;
1220
+ };
1221
+ export declare const VersionedRemoteChainSpecChainNameError: S.Codec<VersionedRemoteChainSpecChainNameError>;
1222
+ /** Versioned envelope for [`RemoteChainSpecChainNameRequest`]. */
1223
+ export type VersionedRemoteChainSpecChainNameRequest = {
1224
+ tag: "V1";
1225
+ value: RemoteChainSpecChainNameRequest;
1226
+ };
1227
+ export declare const VersionedRemoteChainSpecChainNameRequest: S.Codec<VersionedRemoteChainSpecChainNameRequest>;
1228
+ /** Versioned envelope for [`RemoteChainSpecChainNameResponse`]. */
1229
+ export type VersionedRemoteChainSpecChainNameResponse = {
1230
+ tag: "V1";
1231
+ value: RemoteChainSpecChainNameResponse;
1232
+ };
1233
+ export declare const VersionedRemoteChainSpecChainNameResponse: S.Codec<VersionedRemoteChainSpecChainNameResponse>;
1234
+ /** Versioned envelope for [`RemoteChainSpecGenesisHashError`]. */
1235
+ export type VersionedRemoteChainSpecGenesisHashError = {
1236
+ tag: "V1";
1237
+ value: GenericError;
1238
+ };
1239
+ export declare const VersionedRemoteChainSpecGenesisHashError: S.Codec<VersionedRemoteChainSpecGenesisHashError>;
1240
+ /** Versioned envelope for [`RemoteChainSpecGenesisHashRequest`]. */
1241
+ export type VersionedRemoteChainSpecGenesisHashRequest = {
1242
+ tag: "V1";
1243
+ value: RemoteChainSpecGenesisHashRequest;
1244
+ };
1245
+ export declare const VersionedRemoteChainSpecGenesisHashRequest: S.Codec<VersionedRemoteChainSpecGenesisHashRequest>;
1246
+ /** Versioned envelope for [`RemoteChainSpecGenesisHashResponse`]. */
1247
+ export type VersionedRemoteChainSpecGenesisHashResponse = {
1248
+ tag: "V1";
1249
+ value: RemoteChainSpecGenesisHashResponse;
1250
+ };
1251
+ export declare const VersionedRemoteChainSpecGenesisHashResponse: S.Codec<VersionedRemoteChainSpecGenesisHashResponse>;
1252
+ /** Versioned envelope for [`RemoteChainSpecPropertiesError`]. */
1253
+ export type VersionedRemoteChainSpecPropertiesError = {
1254
+ tag: "V1";
1255
+ value: GenericError;
1256
+ };
1257
+ export declare const VersionedRemoteChainSpecPropertiesError: S.Codec<VersionedRemoteChainSpecPropertiesError>;
1258
+ /** Versioned envelope for [`RemoteChainSpecPropertiesRequest`]. */
1259
+ export type VersionedRemoteChainSpecPropertiesRequest = {
1260
+ tag: "V1";
1261
+ value: RemoteChainSpecPropertiesRequest;
1262
+ };
1263
+ export declare const VersionedRemoteChainSpecPropertiesRequest: S.Codec<VersionedRemoteChainSpecPropertiesRequest>;
1264
+ /** Versioned envelope for [`RemoteChainSpecPropertiesResponse`]. */
1265
+ export type VersionedRemoteChainSpecPropertiesResponse = {
1266
+ tag: "V1";
1267
+ value: RemoteChainSpecPropertiesResponse;
1268
+ };
1269
+ export declare const VersionedRemoteChainSpecPropertiesResponse: S.Codec<VersionedRemoteChainSpecPropertiesResponse>;
1270
+ /** Versioned envelope for [`RemoteChainTransactionBroadcastError`]. */
1271
+ export type VersionedRemoteChainTransactionBroadcastError = {
1272
+ tag: "V1";
1273
+ value: GenericError;
1274
+ };
1275
+ export declare const VersionedRemoteChainTransactionBroadcastError: S.Codec<VersionedRemoteChainTransactionBroadcastError>;
1276
+ /** Versioned envelope for [`RemoteChainTransactionBroadcastRequest`]. */
1277
+ export type VersionedRemoteChainTransactionBroadcastRequest = {
1278
+ tag: "V1";
1279
+ value: RemoteChainTransactionBroadcastRequest;
1280
+ };
1281
+ export declare const VersionedRemoteChainTransactionBroadcastRequest: S.Codec<VersionedRemoteChainTransactionBroadcastRequest>;
1282
+ /** Versioned envelope for [`RemoteChainTransactionBroadcastResponse`]. */
1283
+ export type VersionedRemoteChainTransactionBroadcastResponse = {
1284
+ tag: "V1";
1285
+ value: RemoteChainTransactionBroadcastResponse;
1286
+ };
1287
+ export declare const VersionedRemoteChainTransactionBroadcastResponse: S.Codec<VersionedRemoteChainTransactionBroadcastResponse>;
1288
+ /** Versioned envelope for [`RemoteChainTransactionStopError`]. */
1289
+ export type VersionedRemoteChainTransactionStopError = {
1290
+ tag: "V1";
1291
+ value: GenericError;
1292
+ };
1293
+ export declare const VersionedRemoteChainTransactionStopError: S.Codec<VersionedRemoteChainTransactionStopError>;
1294
+ /** Versioned envelope for [`RemoteChainTransactionStopRequest`]. */
1295
+ export type VersionedRemoteChainTransactionStopRequest = {
1296
+ tag: "V1";
1297
+ value: RemoteChainTransactionStopRequest;
1298
+ };
1299
+ export declare const VersionedRemoteChainTransactionStopRequest: S.Codec<VersionedRemoteChainTransactionStopRequest>;
1300
+ /** Versioned envelope for [`RemoteChainTransactionStopResponse`]. */
1301
+ export type VersionedRemoteChainTransactionStopResponse = {
1302
+ tag: "V1";
1303
+ value?: undefined;
1304
+ };
1305
+ export declare const VersionedRemoteChainTransactionStopResponse: S.Codec<VersionedRemoteChainTransactionStopResponse>;
1306
+ export type RemotePermission = {
1307
+ tag: "Remote";
1308
+ value: {
1309
+ domains: Array<string>;
1310
+ };
1311
+ } | {
1312
+ tag: "WebRtc";
1313
+ value?: undefined;
1314
+ } | {
1315
+ tag: "ChainSubmit";
1316
+ value?: undefined;
1317
+ } | {
1318
+ tag: "PreimageSubmit";
1319
+ value?: undefined;
1320
+ } | {
1321
+ tag: "StatementSubmit";
1322
+ value?: undefined;
1323
+ };
1324
+ export declare const RemotePermission: S.Codec<RemotePermission>;
1325
+ /** Versioned envelope for [`RemotePermissionError`]. */
1326
+ export type VersionedRemotePermissionError = {
1327
+ tag: "V1";
1328
+ value: GenericError;
1329
+ };
1330
+ export declare const VersionedRemotePermissionError: S.Codec<VersionedRemotePermissionError>;
1331
+ /** Versioned envelope for [`RemotePermissionRequest`]. */
1332
+ export type VersionedRemotePermissionRequest = {
1333
+ tag: "V1";
1334
+ value: RemotePermissionRequest;
1335
+ };
1336
+ export declare const VersionedRemotePermissionRequest: S.Codec<VersionedRemotePermissionRequest>;
1337
+ /** Versioned envelope for [`RemotePermissionResponse`]. */
1338
+ export type VersionedRemotePermissionResponse = {
1339
+ tag: "V1";
1340
+ value: RemotePermissionResponse;
1341
+ };
1342
+ export declare const VersionedRemotePermissionResponse: S.Codec<VersionedRemotePermissionResponse>;
1343
+ /** Versioned envelope for [`RemotePreimageLookupSubscribeItem`]. */
1344
+ export type VersionedRemotePreimageLookupSubscribeItem = {
1345
+ tag: "V1";
1346
+ value: RemotePreimageLookupSubscribeItem;
1347
+ };
1348
+ export declare const VersionedRemotePreimageLookupSubscribeItem: S.Codec<VersionedRemotePreimageLookupSubscribeItem>;
1349
+ /** Versioned envelope for [`RemotePreimageLookupSubscribeRequest`]. */
1350
+ export type VersionedRemotePreimageLookupSubscribeRequest = {
1351
+ tag: "V1";
1352
+ value: RemotePreimageLookupSubscribeRequest;
1353
+ };
1354
+ export declare const VersionedRemotePreimageLookupSubscribeRequest: S.Codec<VersionedRemotePreimageLookupSubscribeRequest>;
1355
+ /** Versioned envelope for [`RemotePreimageSubmitError`]. */
1356
+ export type VersionedRemotePreimageSubmitError = {
1357
+ tag: "V1";
1358
+ value: PreimageSubmitError;
1359
+ };
1360
+ export declare const VersionedRemotePreimageSubmitError: S.Codec<VersionedRemotePreimageSubmitError>;
1361
+ /** Versioned envelope for [`RemotePreimageSubmitRequest`]. */
1362
+ export type VersionedRemotePreimageSubmitRequest = {
1363
+ tag: "V1";
1364
+ value: HexString;
1365
+ };
1366
+ export declare const VersionedRemotePreimageSubmitRequest: S.Codec<VersionedRemotePreimageSubmitRequest>;
1367
+ /** Versioned envelope for [`RemotePreimageSubmitResponse`]. */
1368
+ export type VersionedRemotePreimageSubmitResponse = {
1369
+ tag: "V1";
1370
+ value: HexString;
1371
+ };
1372
+ export declare const VersionedRemotePreimageSubmitResponse: S.Codec<VersionedRemotePreimageSubmitResponse>;
1373
+ /** Versioned envelope for [`RemoteStatementStoreCreateProofAuthorizedError`]. */
1374
+ export type VersionedRemoteStatementStoreCreateProofAuthorizedError = {
1375
+ tag: "V1";
1376
+ value: RemoteStatementStoreCreateProofError;
1377
+ };
1378
+ export declare const VersionedRemoteStatementStoreCreateProofAuthorizedError: S.Codec<VersionedRemoteStatementStoreCreateProofAuthorizedError>;
1379
+ /** Versioned envelope for [`RemoteStatementStoreCreateProofAuthorizedRequest`]. */
1380
+ export type VersionedRemoteStatementStoreCreateProofAuthorizedRequest = {
1381
+ tag: "V1";
1382
+ value: Statement;
1383
+ };
1384
+ export declare const VersionedRemoteStatementStoreCreateProofAuthorizedRequest: S.Codec<VersionedRemoteStatementStoreCreateProofAuthorizedRequest>;
1385
+ /** Versioned envelope for [`RemoteStatementStoreCreateProofAuthorizedResponse`]. */
1386
+ export type VersionedRemoteStatementStoreCreateProofAuthorizedResponse = {
1387
+ tag: "V1";
1388
+ value: RemoteStatementStoreCreateProofResponse;
1389
+ };
1390
+ export declare const VersionedRemoteStatementStoreCreateProofAuthorizedResponse: S.Codec<VersionedRemoteStatementStoreCreateProofAuthorizedResponse>;
1391
+ /** Versioned envelope for [`RemoteStatementStoreCreateProofError`]. */
1392
+ export type VersionedRemoteStatementStoreCreateProofError = {
1393
+ tag: "V1";
1394
+ value: RemoteStatementStoreCreateProofError;
1395
+ };
1396
+ export declare const VersionedRemoteStatementStoreCreateProofError: S.Codec<VersionedRemoteStatementStoreCreateProofError>;
1397
+ /** Versioned envelope for [`RemoteStatementStoreCreateProofRequest`]. */
1398
+ export type VersionedRemoteStatementStoreCreateProofRequest = {
1399
+ tag: "V1";
1400
+ value: RemoteStatementStoreCreateProofRequest;
1401
+ };
1402
+ export declare const VersionedRemoteStatementStoreCreateProofRequest: S.Codec<VersionedRemoteStatementStoreCreateProofRequest>;
1403
+ /** Versioned envelope for [`RemoteStatementStoreCreateProofResponse`]. */
1404
+ export type VersionedRemoteStatementStoreCreateProofResponse = {
1405
+ tag: "V1";
1406
+ value: RemoteStatementStoreCreateProofResponse;
1407
+ };
1408
+ export declare const VersionedRemoteStatementStoreCreateProofResponse: S.Codec<VersionedRemoteStatementStoreCreateProofResponse>;
1409
+ /** Versioned envelope for [`RemoteStatementStoreSubmitError`]. */
1410
+ export type VersionedRemoteStatementStoreSubmitError = {
1411
+ tag: "V1";
1412
+ value: GenericError;
1413
+ };
1414
+ export declare const VersionedRemoteStatementStoreSubmitError: S.Codec<VersionedRemoteStatementStoreSubmitError>;
1415
+ /** Versioned envelope for [`RemoteStatementStoreSubmitRequest`]. */
1416
+ export type VersionedRemoteStatementStoreSubmitRequest = {
1417
+ tag: "V1";
1418
+ value: SignedStatement;
1419
+ };
1420
+ export declare const VersionedRemoteStatementStoreSubmitRequest: S.Codec<VersionedRemoteStatementStoreSubmitRequest>;
1421
+ /** Versioned envelope for [`RemoteStatementStoreSubscribeItem`]. */
1422
+ export type VersionedRemoteStatementStoreSubscribeItem = {
1423
+ tag: "V1";
1424
+ value: RemoteStatementStoreSubscribeItem;
1425
+ };
1426
+ export declare const VersionedRemoteStatementStoreSubscribeItem: S.Codec<VersionedRemoteStatementStoreSubscribeItem>;
1427
+ /** Versioned envelope for [`RemoteStatementStoreSubscribeRequest`]. */
1428
+ export type VersionedRemoteStatementStoreSubscribeRequest = {
1429
+ tag: "V1";
1430
+ value: RemoteStatementStoreSubscribeRequest;
1431
+ };
1432
+ export declare const VersionedRemoteStatementStoreSubscribeRequest: S.Codec<VersionedRemoteStatementStoreSubscribeRequest>;
1433
+ export type ResourceAllocationError = {
1434
+ tag: "Unknown";
1435
+ value: {
1436
+ reason: string;
1437
+ };
1438
+ };
1439
+ export declare const ResourceAllocationError: S.Codec<ResourceAllocationError>;
1440
+ /** Locates a specific ring on a specific chain for ring VRF operations. */
1441
+ export interface RingLocation {
1442
+ /** Chain genesis hash. */
1443
+ genesisHash: HexString;
1444
+ /** Root hash of the ring. */
1445
+ ringRootHash: HexString;
1446
+ /** Optional location hints. */
1447
+ hints?: RingLocationHint;
1448
+ }
1449
+ export declare const RingLocation: S.Codec<RingLocation>;
1450
+ /** Hints for locating a ring on-chain. */
1451
+ export interface RingLocationHint {
1452
+ /** Optional pallet instance index. */
1453
+ palletInstance?: number;
1454
+ }
1455
+ export declare const RingLocationHint: S.Codec<RingLocationHint>;
1456
+ /** Properties for a [`CustomRendererNode::Row`] layout. */
1457
+ export interface RowProps {
1458
+ /** Vertical alignment of children. */
1459
+ verticalAlignment?: VerticalAlignment;
1460
+ /** Horizontal arrangement of children. */
1461
+ horizontalArrangement?: Arrangement;
1462
+ }
1463
+ export declare const RowProps: S.Codec<RowProps>;
1464
+ export interface RuntimeApi {
1465
+ /** Runtime API name. */
1466
+ name: string;
1467
+ /** Runtime API version. */
1468
+ version: number;
1469
+ }
1470
+ export declare const RuntimeApi: S.Codec<RuntimeApi>;
1471
+ export interface RuntimeSpec {
1472
+ /** Specification name. */
1473
+ specName: string;
1474
+ /** Implementation name. */
1475
+ implName: string;
1476
+ /** Spec version number. */
1477
+ specVersion: number;
1478
+ /** Implementation version. */
1479
+ implVersion: number;
1480
+ /** Transaction format version. */
1481
+ transactionVersion?: number;
1482
+ /** Supported runtime APIs. */
1483
+ apis: Array<RuntimeApi>;
1484
+ }
1485
+ export declare const RuntimeSpec: S.Codec<RuntimeSpec>;
1486
+ export type RuntimeType = {
1487
+ tag: "Valid";
1488
+ value: RuntimeSpec;
1489
+ } | {
1490
+ tag: "Invalid";
1491
+ value: {
1492
+ error: string;
1493
+ };
1494
+ };
1495
+ export declare const RuntimeType: S.Codec<RuntimeType>;
1496
+ /** Shape for borders and backgrounds. */
1497
+ export type Shape =
1498
+ /** Border radius value. */
1499
+ {
1500
+ tag: "Rounded";
1501
+ value: {
1502
+ radius: bigint;
1503
+ };
1504
+ }
1505
+ /** Circular shape. */
1506
+ | {
1507
+ tag: "Circle";
1508
+ value?: undefined;
1509
+ };
1510
+ export declare const Shape: S.Codec<Shape>;
1511
+ /** A statement with a required (not optional) proof. */
1512
+ export interface SignedStatement {
1513
+ /** Required cryptographic proof. */
1514
+ proof: StatementProof;
1515
+ /** Optional decryption key. */
1516
+ decryptionKey?: HexString;
1517
+ /** Optional Unix timestamp expiry. */
1518
+ expiry?: bigint;
1519
+ /** Optional channel. */
1520
+ channel?: HexString;
1521
+ /** [u8; 32] tags. */
1522
+ topics: Array<HexString>;
1523
+ /** Optional data payload. */
1524
+ data?: HexString;
1525
+ }
1526
+ export declare const SignedStatement: S.Codec<SignedStatement>;
1527
+ /** A statement with optional proof and metadata. */
1528
+ export interface Statement {
1529
+ /** Optional cryptographic proof. */
1530
+ proof?: StatementProof;
1531
+ /** Optional decryption key. */
1532
+ decryptionKey?: HexString;
1533
+ /** Optional Unix timestamp expiry. */
1534
+ expiry?: bigint;
1535
+ /** Optional channel. */
1536
+ channel?: HexString;
1537
+ /** [u8; 32] tags. */
1538
+ topics: Array<HexString>;
1539
+ /** Optional data payload. */
1540
+ data?: HexString;
1541
+ }
1542
+ export declare const Statement: S.Codec<Statement>;
1543
+ /** Cryptographic proof for a statement. */
1544
+ export type StatementProof =
1545
+ /** Sr25519 signature proof. */
1546
+ {
1547
+ tag: "Sr25519";
1548
+ value: {
1549
+ signature: HexString;
1550
+ signer: HexString;
1551
+ };
1552
+ }
1553
+ /** Ed25519 signature proof. */
1554
+ | {
1555
+ tag: "Ed25519";
1556
+ value: {
1557
+ signature: HexString;
1558
+ signer: HexString;
1559
+ };
1560
+ }
1561
+ /** ECDSA signature proof. */
1562
+ | {
1563
+ tag: "Ecdsa";
1564
+ value: {
1565
+ signature: HexString;
1566
+ signer: HexString;
1567
+ };
1568
+ }
1569
+ /** On-chain event proof. */
1570
+ | {
1571
+ tag: "OnChain";
1572
+ value: {
1573
+ who: HexString;
1574
+ blockHash: HexString;
1575
+ event: bigint;
1576
+ };
1577
+ };
1578
+ export declare const StatementProof: S.Codec<StatementProof>;
1579
+ export interface StorageQueryItem {
1580
+ /** Storage key to query. */
1581
+ key: HexString;
1582
+ /** What to return. */
1583
+ queryType: StorageQueryType;
1584
+ }
1585
+ export declare const StorageQueryItem: S.Codec<StorageQueryItem>;
1586
+ export type StorageQueryType = "Value" | "Hash" | "ClosestDescendantMerkleValue" | "DescendantsValues" | "DescendantsHashes";
1587
+ export declare const StorageQueryType: S.Codec<StorageQueryType>;
1588
+ export interface StorageResultItem {
1589
+ /** The queried key. */
1590
+ key: HexString;
1591
+ /** Value, if requested. */
1592
+ value?: HexString;
1593
+ /** Hash, if requested. */
1594
+ hash?: HexString;
1595
+ /** Merkle value, if requested. */
1596
+ closestDescendantMerkleValue?: HexString;
1597
+ }
1598
+ export declare const StorageResultItem: S.Codec<StorageResultItem>;
1599
+ /** Properties for a [`CustomRendererNode::TextField`]. */
1600
+ export interface TextFieldProps {
1601
+ /** Placeholder text. */
1602
+ placeholder?: string;
1603
+ /** Initial value. */
1604
+ initialValue?: string;
1605
+ /** Action identifier triggered on submit. */
1606
+ submitAction: string;
1607
+ }
1608
+ export declare const TextFieldProps: S.Codec<TextFieldProps>;
1609
+ /** Properties for a [`CustomRendererNode::Text`] display. */
1610
+ export interface TextProps {
1611
+ /** Typography preset. */
1612
+ style?: TypographyStyle;
1613
+ /** Text color. */
1614
+ color?: ColorToken;
1615
+ }
1616
+ export declare const TextProps: S.Codec<TextProps>;
1617
+ export type Theme = "Light" | "Dark";
1618
+ export declare const Theme: S.Codec<Theme>;
1619
+ /** 32-byte statement topic. */
1620
+ export type Topic = HexString;
1621
+ export declare const Topic: S.Codec<Topic>;
1622
+ export interface TxPayloadContextV1 {
1623
+ /** `RuntimeMetadataPrefixed` blob (SCALE). */
1624
+ metadata: HexString;
1625
+ /** Native token symbol. */
1626
+ tokenSymbol: string;
1627
+ /** Native token decimals. */
1628
+ tokenDecimals: number;
1629
+ /** Highest known block number. */
1630
+ bestBlockHeight: number;
1631
+ }
1632
+ export declare const TxPayloadContextV1: S.Codec<TxPayloadContextV1>;
1633
+ export interface TxPayloadExtensionV1 {
1634
+ /** Extension name (e.g., `"CheckSpecVersion"`). */
1635
+ id: string;
1636
+ /** SCALE-encoded extra data (in extrinsic body). */
1637
+ extra: HexString;
1638
+ /** SCALE-encoded implicit data (signed, not in body). */
1639
+ additionalSigned: HexString;
1640
+ }
1641
+ export declare const TxPayloadExtensionV1: S.Codec<TxPayloadExtensionV1>;
1642
+ export interface TxPayloadV1 {
1643
+ /** Signer hint (address/name), `None` = host picks. */
1644
+ signer?: string;
1645
+ /** SCALE-encoded Call data. */
1646
+ callData: HexString;
1647
+ /** Signed extensions. */
1648
+ extensions: Array<TxPayloadExtensionV1>;
1649
+ /** 0 for Extrinsic V4, any for V5. */
1650
+ txExtVersion: number;
1651
+ /** Transaction context. */
1652
+ context: TxPayloadContextV1;
1653
+ }
1654
+ export declare const TxPayloadV1: S.Codec<TxPayloadV1>;
1655
+ /** Text typography presets. */
1656
+ export type TypographyStyle = "TitleXL" | "Headline" | "BodyM" | "BodyS" | "Caption";
1657
+ export declare const TypographyStyle: S.Codec<TypographyStyle>;
1658
+ /** User's authentication state. */
1659
+ export type HostAccountConnectionStatusSubscribeItem = "Disconnected" | "Connected";
1660
+ export declare const HostAccountConnectionStatusSubscribeItem: S.Codec<HostAccountConnectionStatusSubscribeItem>;
1661
+ /** Error returned when ring VRF proof creation fails. */
1662
+ export type HostAccountCreateProofError =
1663
+ /** Ring not available at the specified location. */
1664
+ {
1665
+ tag: "RingNotFound";
1666
+ value?: undefined;
1667
+ }
1668
+ /** User or host rejected. */
1669
+ | {
1670
+ tag: "Rejected";
1671
+ value?: undefined;
1672
+ }
1673
+ /** Catch-all. */
1674
+ | {
1675
+ tag: "Unknown";
1676
+ value: {
1677
+ reason: string;
1678
+ };
1679
+ };
1680
+ export declare const HostAccountCreateProofError: S.Codec<HostAccountCreateProofError>;
1681
+ /** Request to create a ring VRF proof for a product account. */
1682
+ export interface HostAccountCreateProofRequest {
1683
+ /** Product account that should create the proof. */
1684
+ productAccountId: ProductAccountId;
1685
+ /** Ring location to use for proof generation. */
1686
+ ringLocation: RingLocation;
1687
+ /** Context bytes bound to the proof. */
1688
+ context: HexString;
1689
+ }
1690
+ export declare const HostAccountCreateProofRequest: S.Codec<HostAccountCreateProofRequest>;
1691
+ /** Response containing a ring VRF proof. */
1692
+ export interface HostAccountCreateProofResponse {
1693
+ /** Variable-length ring VRF proof bytes. */
1694
+ proof: HexString;
1695
+ }
1696
+ export declare const HostAccountCreateProofResponse: S.Codec<HostAccountCreateProofResponse>;
1697
+ /** Request to retrieve a contextual alias for a product account. */
1698
+ export interface HostAccountGetAliasRequest {
1699
+ /** Product account to derive the alias for. */
1700
+ productAccountId: ProductAccountId;
1701
+ }
1702
+ export declare const HostAccountGetAliasRequest: S.Codec<HostAccountGetAliasRequest>;
1703
+ /** A privacy-preserving alias derived via ring VRF, bound to a specific context. */
1704
+ export interface HostAccountGetAliasResponse {
1705
+ /** 32-byte context identifier. */
1706
+ context: HexString;
1707
+ /** Ring VRF alias (variable length). */
1708
+ alias: HexString;
1709
+ }
1710
+ export declare const HostAccountGetAliasResponse: S.Codec<HostAccountGetAliasResponse>;
1711
+ /** Error returned when credential/account requests fail. */
1712
+ export type HostAccountGetError =
1713
+ /** User is not logged in. */
1714
+ {
1715
+ tag: "NotConnected";
1716
+ value?: undefined;
1717
+ }
1718
+ /** User or host rejected the request. */
1719
+ | {
1720
+ tag: "Rejected";
1721
+ value?: undefined;
1722
+ }
1723
+ /** Domain identifier is invalid. */
1724
+ | {
1725
+ tag: "DomainNotValid";
1726
+ value?: undefined;
1727
+ }
1728
+ /** Catch-all error with reason. */
1729
+ | {
1730
+ tag: "Unknown";
1731
+ value: {
1732
+ reason: string;
1733
+ };
1734
+ };
1735
+ export declare const HostAccountGetError: S.Codec<HostAccountGetError>;
1736
+ /** Request to retrieve a product-scoped account. */
1737
+ export interface HostAccountGetRequest {
1738
+ /** Product account to retrieve. */
1739
+ productAccountId: ProductAccountId;
1740
+ }
1741
+ export declare const HostAccountGetRequest: S.Codec<HostAccountGetRequest>;
1742
+ /** Response containing a product-scoped account. */
1743
+ export interface HostAccountGetResponse {
1744
+ /** Retrieved product account. */
1745
+ account: ProductAccount;
1746
+ }
1747
+ export declare const HostAccountGetResponse: S.Codec<HostAccountGetResponse>;
1748
+ /** A chat action received from the host. */
1749
+ export interface HostChatActionSubscribeItem {
1750
+ /** Room where the action occurred. */
1751
+ roomId: string;
1752
+ /** Peer who initiated the action. */
1753
+ peer: string;
1754
+ /** The action payload. */
1755
+ payload: ChatActionPayload;
1756
+ }
1757
+ export declare const HostChatActionSubscribeItem: S.Codec<HostChatActionSubscribeItem>;
1758
+ /** Chat room registration error. */
1759
+ export type HostChatCreateRoomError =
1760
+ /** Not allowed. */
1761
+ {
1762
+ tag: "PermissionDenied";
1763
+ value?: undefined;
1764
+ }
1765
+ /** Catch-all. */
1766
+ | {
1767
+ tag: "Unknown";
1768
+ value: {
1769
+ reason: string;
1770
+ };
1771
+ };
1772
+ export declare const HostChatCreateRoomError: S.Codec<HostChatCreateRoomError>;
1773
+ /** Request to create a chat room. */
1774
+ export interface HostChatCreateRoomRequest {
1775
+ /** Unique room identifier. */
1776
+ roomId: string;
1777
+ /** Room display name. */
1778
+ name: string;
1779
+ /** URL or base64 image. */
1780
+ icon: string;
1781
+ }
1782
+ export declare const HostChatCreateRoomRequest: S.Codec<HostChatCreateRoomRequest>;
1783
+ /** Result of a room registration. */
1784
+ export interface HostChatCreateRoomResponse {
1785
+ /** `New` or `Exists`. */
1786
+ status: ChatRoomRegistrationStatus;
1787
+ }
1788
+ export declare const HostChatCreateRoomResponse: S.Codec<HostChatCreateRoomResponse>;
1789
+ /** Item containing the current chat rooms. */
1790
+ export interface HostChatListSubscribeItem {
1791
+ /** Chat rooms the product participates in. */
1792
+ rooms: Array<ChatRoom>;
1793
+ }
1794
+ export declare const HostChatListSubscribeItem: S.Codec<HostChatListSubscribeItem>;
1795
+ /** Chat message posting error. */
1796
+ export type HostChatPostMessageError =
1797
+ /** Message exceeded size limit. */
1798
+ {
1799
+ tag: "MessageTooLarge";
1800
+ value?: undefined;
1801
+ }
1802
+ /** Catch-all. */
1803
+ | {
1804
+ tag: "Unknown";
1805
+ value: {
1806
+ reason: string;
1807
+ };
1808
+ };
1809
+ export declare const HostChatPostMessageError: S.Codec<HostChatPostMessageError>;
1810
+ /** Request to post a message to a chat room. */
1811
+ export interface HostChatPostMessageRequest {
1812
+ /** Room to post to. */
1813
+ roomId: string;
1814
+ /** Message content. */
1815
+ payload: ChatMessageContent;
1816
+ }
1817
+ export declare const HostChatPostMessageRequest: S.Codec<HostChatPostMessageRequest>;
1818
+ /** Result of posting a message. */
1819
+ export interface HostChatPostMessageResponse {
1820
+ /** Assigned message ID. */
1821
+ messageId: string;
1822
+ }
1823
+ export declare const HostChatPostMessageResponse: S.Codec<HostChatPostMessageResponse>;
1824
+ /** Chat bot registration error. */
1825
+ export type HostChatRegisterBotError =
1826
+ /** Not allowed. */
1827
+ {
1828
+ tag: "PermissionDenied";
1829
+ value?: undefined;
1830
+ }
1831
+ /** Catch-all. */
1832
+ | {
1833
+ tag: "Unknown";
1834
+ value: {
1835
+ reason: string;
1836
+ };
1837
+ };
1838
+ export declare const HostChatRegisterBotError: S.Codec<HostChatRegisterBotError>;
1839
+ /** Request to register a chat bot. */
1840
+ export interface HostChatRegisterBotRequest {
1841
+ /** Unique bot identifier. */
1842
+ botId: string;
1843
+ /** Bot display name. */
1844
+ name: string;
1845
+ /** URL or base64 image. */
1846
+ icon: string;
1847
+ }
1848
+ export declare const HostChatRegisterBotRequest: S.Codec<HostChatRegisterBotRequest>;
1849
+ /** Result of a bot registration. */
1850
+ export interface HostChatRegisterBotResponse {
1851
+ /** `New` or `Exists`. */
1852
+ status: ChatBotRegistrationStatus;
1853
+ }
1854
+ export declare const HostChatRegisterBotResponse: S.Codec<HostChatRegisterBotResponse>;
1855
+ export type HostCreateTransactionError = {
1856
+ tag: "FailedToDecode";
1857
+ value?: undefined;
1858
+ } | {
1859
+ tag: "Rejected";
1860
+ value?: undefined;
1861
+ } | {
1862
+ tag: "NotSupported";
1863
+ value: {
1864
+ reason: string;
1865
+ };
1866
+ } | {
1867
+ tag: "PermissionDenied";
1868
+ value?: undefined;
1869
+ } | {
1870
+ tag: "Unknown";
1871
+ value: {
1872
+ reason: string;
1873
+ };
1874
+ };
1875
+ export declare const HostCreateTransactionError: S.Codec<HostCreateTransactionError>;
1876
+ export interface HostCreateTransactionRequest {
1877
+ /** Product account that will sign the transaction. */
1878
+ productAccountId: ProductAccountId;
1879
+ /** Versioned transaction payload. */
1880
+ payload: VersionedTxPayload;
1881
+ }
1882
+ export declare const HostCreateTransactionRequest: S.Codec<HostCreateTransactionRequest>;
1883
+ export interface HostCreateTransactionResponse {
1884
+ /** SCALE-encoded signed transaction. */
1885
+ transaction: HexString;
1886
+ }
1887
+ export declare const HostCreateTransactionResponse: S.Codec<HostCreateTransactionResponse>;
1888
+ export interface HostCreateTransactionWithLegacyAccountRequest {
1889
+ /** Versioned transaction payload to sign. */
1890
+ payload: VersionedTxPayload;
1891
+ }
1892
+ export declare const HostCreateTransactionWithLegacyAccountRequest: S.Codec<HostCreateTransactionWithLegacyAccountRequest>;
1893
+ export interface HostCreateTransactionWithLegacyAccountResponse {
1894
+ /** SCALE-encoded signed transaction. */
1895
+ transaction: HexString;
1896
+ }
1897
+ export declare const HostCreateTransactionWithLegacyAccountResponse: S.Codec<HostCreateTransactionWithLegacyAccountResponse>;
1898
+ export type HostDeriveEntropyError = "Unknown";
1899
+ export declare const HostDeriveEntropyError: S.Codec<HostDeriveEntropyError>;
1900
+ export interface HostDeriveEntropyRequest {
1901
+ /** Domain-separated derivation context. */
1902
+ context: HexString;
1903
+ }
1904
+ export declare const HostDeriveEntropyRequest: S.Codec<HostDeriveEntropyRequest>;
1905
+ export interface HostDeriveEntropyResponse {
1906
+ /** 32 bytes of derived entropy. */
1907
+ entropy: HexString;
1908
+ }
1909
+ export declare const HostDeriveEntropyResponse: S.Codec<HostDeriveEntropyResponse>;
1910
+ export type HostDevicePermissionRequest = "Notifications" | "Camera" | "Microphone" | "Bluetooth" | "NFC" | "Location" | "Clipboard" | "OpenUrl" | "Biometrics";
1911
+ export declare const HostDevicePermissionRequest: S.Codec<HostDevicePermissionRequest>;
1912
+ export interface HostDevicePermissionResponse {
1913
+ /** Whether the permission was granted. */
1914
+ granted: boolean;
1915
+ }
1916
+ export declare const HostDevicePermissionResponse: S.Codec<HostDevicePermissionResponse>;
1917
+ export type HostFeatureSupportedRequest = {
1918
+ tag: "Chain";
1919
+ value: {
1920
+ genesisHash: HexString;
1921
+ };
1922
+ };
1923
+ export declare const HostFeatureSupportedRequest: S.Codec<HostFeatureSupportedRequest>;
1924
+ export interface HostFeatureSupportedResponse {
1925
+ /** Whether the feature is supported. */
1926
+ supported: boolean;
1927
+ }
1928
+ export declare const HostFeatureSupportedResponse: S.Codec<HostFeatureSupportedResponse>;
1929
+ /** Response containing all non-product accounts owned by the user. */
1930
+ export interface HostGetLegacyAccountsResponse {
1931
+ /** Non-product accounts. */
1932
+ accounts: Array<Account>;
1933
+ }
1934
+ export declare const HostGetLegacyAccountsResponse: S.Codec<HostGetLegacyAccountsResponse>;
1935
+ /** Error from [`crate::api::Account::get_user_id`]. */
1936
+ export type HostGetUserIdError =
1937
+ /** User denied the identity disclosure request. */
1938
+ {
1939
+ tag: "PermissionDenied";
1940
+ value?: undefined;
1941
+ }
1942
+ /** User is not logged in. */
1943
+ | {
1944
+ tag: "NotConnected";
1945
+ value?: undefined;
1946
+ }
1947
+ /** Catch-all. */
1948
+ | {
1949
+ tag: "Unknown";
1950
+ value: {
1951
+ reason: string;
1952
+ };
1953
+ };
1954
+ export declare const HostGetUserIdError: S.Codec<HostGetUserIdError>;
1955
+ /** The user's primary DotNS account identity. */
1956
+ export interface HostGetUserIdResponse {
1957
+ /** The user's primary DotNS username. */
1958
+ primaryUsername: string;
1959
+ }
1960
+ export declare const HostGetUserIdResponse: S.Codec<HostGetUserIdResponse>;
1961
+ export type HostHandshakeError = {
1962
+ tag: "Timeout";
1963
+ value?: undefined;
1964
+ } | {
1965
+ tag: "UnsupportedProtocolVersion";
1966
+ value?: undefined;
1967
+ } | {
1968
+ tag: "Unknown";
1969
+ value: GenericErr;
1970
+ };
1971
+ export declare const HostHandshakeError: S.Codec<HostHandshakeError>;
1972
+ export interface HostHandshakeRequest {
1973
+ /** Wire codec version requested by the peer. */
1974
+ codecVersion: number;
1975
+ }
1976
+ export declare const HostHandshakeRequest: S.Codec<HostHandshakeRequest>;
1977
+ export interface HostJsonrpcMessageSendRequest {
1978
+ /** Chain genesis hash. */
1979
+ genesisHash: HexString;
1980
+ /** JSON-RPC message body. */
1981
+ message: string;
1982
+ }
1983
+ export declare const HostJsonrpcMessageSendRequest: S.Codec<HostJsonrpcMessageSendRequest>;
1984
+ export interface HostJsonrpcMessageSubscribeItem {
1985
+ /** JSON-RPC message body. */
1986
+ message: string;
1987
+ }
1988
+ export declare const HostJsonrpcMessageSubscribeItem: S.Codec<HostJsonrpcMessageSubscribeItem>;
1989
+ export interface HostJsonrpcMessageSubscribeRequest {
1990
+ /** Chain genesis hash. */
1991
+ genesisHash: HexString;
1992
+ }
1993
+ export declare const HostJsonrpcMessageSubscribeRequest: S.Codec<HostJsonrpcMessageSubscribeRequest>;
1994
+ /** Request to clear a local storage key. */
1995
+ export interface HostLocalStorageClearRequest {
1996
+ /** Storage key to clear. */
1997
+ key: string;
1998
+ }
1999
+ export declare const HostLocalStorageClearRequest: S.Codec<HostLocalStorageClearRequest>;
2000
+ /** Local storage operation error. */
2001
+ export type HostLocalStorageReadError =
2002
+ /** Storage quota exceeded. */
2003
+ {
2004
+ tag: "Full";
2005
+ value?: undefined;
2006
+ }
2007
+ /** Catch-all. */
2008
+ | {
2009
+ tag: "Unknown";
2010
+ value: {
2011
+ reason: string;
2012
+ };
2013
+ };
2014
+ export declare const HostLocalStorageReadError: S.Codec<HostLocalStorageReadError>;
2015
+ /** Request to read a local storage value. */
2016
+ export interface HostLocalStorageReadRequest {
2017
+ /** Storage key to read. */
2018
+ key: string;
2019
+ }
2020
+ export declare const HostLocalStorageReadRequest: S.Codec<HostLocalStorageReadRequest>;
2021
+ /** Response containing an optional local storage value. */
2022
+ export interface HostLocalStorageReadResponse {
2023
+ /** Stored value, if present. */
2024
+ value?: HexString;
2025
+ }
2026
+ export declare const HostLocalStorageReadResponse: S.Codec<HostLocalStorageReadResponse>;
2027
+ /** Request to write a value into local storage. */
2028
+ export interface HostLocalStorageWriteRequest {
2029
+ /** Storage key to write. */
2030
+ key: string;
2031
+ /** Value to store at the key. */
2032
+ value: HexString;
2033
+ }
2034
+ export declare const HostLocalStorageWriteRequest: S.Codec<HostLocalStorageWriteRequest>;
2035
+ export type HostNavigateToError = {
2036
+ tag: "PermissionDenied";
2037
+ value?: undefined;
2038
+ } | {
2039
+ tag: "Unknown";
2040
+ value: {
2041
+ reason: string;
2042
+ };
2043
+ };
2044
+ export declare const HostNavigateToError: S.Codec<HostNavigateToError>;
2045
+ export interface HostNavigateToRequest {
2046
+ /** URL to open. */
2047
+ url: string;
2048
+ }
2049
+ export declare const HostNavigateToRequest: S.Codec<HostNavigateToRequest>;
2050
+ /**
2051
+ * Error from [`crate::api::Payment::balance_subscribe`].
2052
+ *
2053
+ * See [RFC 0006].
2054
+ *
2055
+ * [RFC 0006]: https://github.com/paritytech/triangle-js-sdks/pull/94
2056
+ */
2057
+ export type HostPaymentBalanceSubscribeError =
2058
+ /** User denied the balance disclosure request. */
2059
+ {
2060
+ tag: "PermissionDenied";
2061
+ value?: undefined;
2062
+ }
2063
+ /** Catch-all. */
2064
+ | {
2065
+ tag: "Unknown";
2066
+ value: {
2067
+ reason: string;
2068
+ };
2069
+ };
2070
+ export declare const HostPaymentBalanceSubscribeError: S.Codec<HostPaymentBalanceSubscribeError>;
2071
+ /**
2072
+ * Current payment balance state pushed to subscribers.
2073
+ *
2074
+ * See [RFC 0006].
2075
+ *
2076
+ * [RFC 0006]: https://github.com/paritytech/triangle-js-sdks/pull/94
2077
+ */
2078
+ export interface HostPaymentBalanceSubscribeItem {
2079
+ /** Balance that can be spent right now. */
2080
+ available: Balance;
2081
+ }
2082
+ export declare const HostPaymentBalanceSubscribeItem: S.Codec<HostPaymentBalanceSubscribeItem>;
2083
+ /**
2084
+ * Error from [`crate::api::Payment::request`].
2085
+ *
2086
+ * See [RFC 0006].
2087
+ *
2088
+ * [RFC 0006]: https://github.com/paritytech/triangle-js-sdks/pull/94
2089
+ */
2090
+ export type HostPaymentRequestError =
2091
+ /** User rejected the payment request. */
2092
+ {
2093
+ tag: "Rejected";
2094
+ value?: undefined;
2095
+ }
2096
+ /** User's available balance is not sufficient for the requested amount. */
2097
+ | {
2098
+ tag: "InsufficientBalance";
2099
+ value?: undefined;
2100
+ }
2101
+ /** Catch-all. */
2102
+ | {
2103
+ tag: "Unknown";
2104
+ value: {
2105
+ reason: string;
2106
+ };
2107
+ };
2108
+ export declare const HostPaymentRequestError: S.Codec<HostPaymentRequestError>;
2109
+ /** Request to initiate a payment to another account. */
2110
+ export interface HostPaymentRequestRequest {
2111
+ /** Amount to pay. */
2112
+ amount: Balance;
2113
+ /** Destination account. */
2114
+ destination: HexString;
2115
+ }
2116
+ export declare const HostPaymentRequestRequest: S.Codec<HostPaymentRequestRequest>;
2117
+ /**
2118
+ * Receipt returned after a successful payment request.
2119
+ *
2120
+ * See [RFC 0006].
2121
+ *
2122
+ * [RFC 0006]: https://github.com/paritytech/triangle-js-sdks/pull/94
2123
+ */
2124
+ export interface HostPaymentRequestResponse {
2125
+ /** The assigned payment identifier. */
2126
+ id: string;
2127
+ }
2128
+ export declare const HostPaymentRequestResponse: S.Codec<HostPaymentRequestResponse>;
2129
+ /**
2130
+ * Error from [`crate::api::Payment::status_subscribe`].
2131
+ *
2132
+ * See [RFC 0006].
2133
+ *
2134
+ * [RFC 0006]: https://github.com/paritytech/triangle-js-sdks/pull/94
2135
+ */
2136
+ export type HostPaymentStatusSubscribeError =
2137
+ /** Payment ID was not found or does not belong to the current product. */
2138
+ {
2139
+ tag: "PaymentNotFound";
2140
+ value?: undefined;
2141
+ }
2142
+ /** Catch-all. */
2143
+ | {
2144
+ tag: "Unknown";
2145
+ value: {
2146
+ reason: string;
2147
+ };
2148
+ };
2149
+ export declare const HostPaymentStatusSubscribeError: S.Codec<HostPaymentStatusSubscribeError>;
2150
+ /**
2151
+ * Payment lifecycle status pushed to subscribers.
2152
+ *
2153
+ * Once a terminal state (`Completed` or `Failed`) is reached, the host
2154
+ * delivers it and may close the subscription.
2155
+ *
2156
+ * See [RFC 0006].
2157
+ *
2158
+ * [RFC 0006]: https://github.com/paritytech/triangle-js-sdks/pull/94
2159
+ */
2160
+ export type HostPaymentStatusSubscribeItem =
2161
+ /** Payment is being processed. */
2162
+ {
2163
+ tag: "Processing";
2164
+ value?: undefined;
2165
+ }
2166
+ /** Payment has been settled successfully. */
2167
+ | {
2168
+ tag: "Completed";
2169
+ value?: undefined;
2170
+ }
2171
+ /** Payment has failed. */
2172
+ | {
2173
+ tag: "Failed";
2174
+ value: {
2175
+ reason: string;
2176
+ };
2177
+ };
2178
+ export declare const HostPaymentStatusSubscribeItem: S.Codec<HostPaymentStatusSubscribeItem>;
2179
+ /** Request to subscribe to a payment status. */
2180
+ export interface HostPaymentStatusSubscribeRequest {
2181
+ /** Payment identifier to watch. */
2182
+ paymentId: string;
2183
+ }
2184
+ export declare const HostPaymentStatusSubscribeRequest: S.Codec<HostPaymentStatusSubscribeRequest>;
2185
+ /**
2186
+ * Error from [`crate::api::Payment::top_up`].
2187
+ *
2188
+ * See [RFC 0006].
2189
+ *
2190
+ * [RFC 0006]: https://github.com/paritytech/triangle-js-sdks/pull/94
2191
+ */
2192
+ export type HostPaymentTopUpError =
2193
+ /** The source account does not hold sufficient funds. */
2194
+ {
2195
+ tag: "InsufficientFunds";
2196
+ value?: undefined;
2197
+ }
2198
+ /** The source account was not found or is invalid. */
2199
+ | {
2200
+ tag: "InvalidSource";
2201
+ value?: undefined;
2202
+ }
2203
+ /** Catch-all. */
2204
+ | {
2205
+ tag: "Unknown";
2206
+ value: {
2207
+ reason: string;
2208
+ };
2209
+ };
2210
+ export declare const HostPaymentTopUpError: S.Codec<HostPaymentTopUpError>;
2211
+ /** Request to top up the product payment balance. */
2212
+ export interface HostPaymentTopUpRequest {
2213
+ /** Amount to top up. */
2214
+ amount: Balance;
2215
+ /** Funding source for the top-up. */
2216
+ source: PaymentTopUpSource;
2217
+ }
2218
+ export declare const HostPaymentTopUpRequest: S.Codec<HostPaymentTopUpRequest>;
2219
+ export interface HostPushNotificationRequest {
2220
+ /** Notification text. */
2221
+ text: string;
2222
+ /** Optional URL to open on tap. */
2223
+ deeplink?: string;
2224
+ }
2225
+ export declare const HostPushNotificationRequest: S.Codec<HostPushNotificationRequest>;
2226
+ /** Login request error. */
2227
+ export type HostRequestLoginError =
2228
+ /** Catch-all. */
2229
+ {
2230
+ tag: "Unknown";
2231
+ value: {
2232
+ reason: string;
2233
+ };
2234
+ };
2235
+ export declare const HostRequestLoginError: S.Codec<HostRequestLoginError>;
2236
+ /** Request to present the host login flow. */
2237
+ export interface HostRequestLoginRequest {
2238
+ /** Optional human-readable reason shown in the login UI. */
2239
+ reason?: string;
2240
+ }
2241
+ export declare const HostRequestLoginRequest: S.Codec<HostRequestLoginRequest>;
2242
+ /** Result of a login request. */
2243
+ export type HostRequestLoginResponse = "Success" | "AlreadyConnected" | "Rejected";
2244
+ export declare const HostRequestLoginResponse: S.Codec<HostRequestLoginResponse>;
2245
+ export interface HostRequestResourceAllocationRequest {
2246
+ /** Resources to allocate. */
2247
+ resources: Array<AllocatableResource>;
2248
+ }
2249
+ export declare const HostRequestResourceAllocationRequest: S.Codec<HostRequestResourceAllocationRequest>;
2250
+ export interface HostRequestResourceAllocationResponse {
2251
+ /** Per-resource allocation outcomes, in the same order as the request. */
2252
+ outcomes: Array<AllocationOutcome>;
2253
+ }
2254
+ export declare const HostRequestResourceAllocationResponse: S.Codec<HostRequestResourceAllocationResponse>;
2255
+ export type HostSignPayloadError = {
2256
+ tag: "FailedToDecode";
2257
+ value?: undefined;
2258
+ } | {
2259
+ tag: "Rejected";
2260
+ value?: undefined;
2261
+ } | {
2262
+ tag: "PermissionDenied";
2263
+ value?: undefined;
2264
+ } | {
2265
+ tag: "Unknown";
2266
+ value: {
2267
+ reason: string;
2268
+ };
2269
+ };
2270
+ export declare const HostSignPayloadError: S.Codec<HostSignPayloadError>;
2271
+ export interface HostSignPayloadRequest {
2272
+ /** Product account that will sign this payload. */
2273
+ account: ProductAccountId;
2274
+ /** Reference block hash. */
2275
+ blockHash: HexString;
2276
+ /** Reference block number. */
2277
+ blockNumber: HexString;
2278
+ /** Mortality era encoding. */
2279
+ era: HexString;
2280
+ /** Chain genesis hash. */
2281
+ genesisHash: HexString;
2282
+ /** SCALE-encoded call data. */
2283
+ method: HexString;
2284
+ /** Account nonce. */
2285
+ nonce: HexString;
2286
+ /** Runtime spec version. */
2287
+ specVersion: HexString;
2288
+ /** Transaction tip. */
2289
+ tip: HexString;
2290
+ /** Transaction format version. */
2291
+ transactionVersion: HexString;
2292
+ /** Extension identifiers. */
2293
+ signedExtensions: Array<string>;
2294
+ /** Extrinsic version. */
2295
+ version: number;
2296
+ /** For multi-asset tips. */
2297
+ assetId?: HexString;
2298
+ /** CheckMetadataHash extension. */
2299
+ metadataHash?: HexString;
2300
+ /** Metadata mode. */
2301
+ mode?: number;
2302
+ /** Request signed transaction back. */
2303
+ withSignedTransaction?: boolean;
2304
+ }
2305
+ export declare const HostSignPayloadRequest: S.Codec<HostSignPayloadRequest>;
2306
+ export interface HostSignPayloadResponse {
2307
+ /** The cryptographic signature. */
2308
+ signature: HexString;
2309
+ /** Full signed transaction, if requested. */
2310
+ signedTransaction?: HexString;
2311
+ }
2312
+ export declare const HostSignPayloadResponse: S.Codec<HostSignPayloadResponse>;
2313
+ export interface HostSignPayloadWithLegacyAccountRequest {
2314
+ /** Signer address (SS58 or hex) of the legacy account. */
2315
+ signer: string;
2316
+ /** The extrinsic payload to sign. */
2317
+ payload: HostSignPayloadRequest;
2318
+ }
2319
+ export declare const HostSignPayloadWithLegacyAccountRequest: S.Codec<HostSignPayloadWithLegacyAccountRequest>;
2320
+ export interface HostSignRawRequest {
2321
+ /** Product account that will sign this payload. */
2322
+ account: ProductAccountId;
2323
+ /** The payload to sign. */
2324
+ payload: RawPayload;
2325
+ }
2326
+ export declare const HostSignRawRequest: S.Codec<HostSignRawRequest>;
2327
+ export interface HostSignRawWithLegacyAccountRequest {
2328
+ /** Signer address (SS58 or hex) of the legacy account. */
2329
+ signer: string;
2330
+ /** The data to sign. */
2331
+ payload: RawPayload;
2332
+ }
2333
+ export declare const HostSignRawWithLegacyAccountRequest: S.Codec<HostSignRawWithLegacyAccountRequest>;
2334
+ export interface HostThemeSubscribeItem {
2335
+ /** Current theme. */
2336
+ theme: Theme;
2337
+ }
2338
+ export declare const HostThemeSubscribeItem: S.Codec<HostThemeSubscribeItem>;
2339
+ /**
2340
+ * Subscribe payload identifying the chat message to render. The host responds
2341
+ * with a stream of [`CustomRendererNode`] trees describing the rendered UI.
2342
+ */
2343
+ export interface ProductChatCustomMessageRenderSubscribeRequest {
2344
+ /** Message identifier. */
2345
+ messageId: string;
2346
+ /** Application-defined message type. */
2347
+ messageType: string;
2348
+ /** Binary payload. */
2349
+ payload: HexString;
2350
+ }
2351
+ export declare const ProductChatCustomMessageRenderSubscribeRequest: S.Codec<ProductChatCustomMessageRenderSubscribeRequest>;
2352
+ export interface RemoteChainHeadBodyRequest {
2353
+ /** Chain genesis hash. */
2354
+ genesisHash: HexString;
2355
+ /** Follow subscription identifier. */
2356
+ followSubscriptionId: string;
2357
+ /** Block hash. */
2358
+ hash: HexString;
2359
+ }
2360
+ export declare const RemoteChainHeadBodyRequest: S.Codec<RemoteChainHeadBodyRequest>;
2361
+ export interface RemoteChainHeadBodyResponse {
2362
+ /** Started operation result. */
2363
+ operation: OperationStartedResult;
2364
+ }
2365
+ export declare const RemoteChainHeadBodyResponse: S.Codec<RemoteChainHeadBodyResponse>;
2366
+ export interface RemoteChainHeadCallRequest {
2367
+ /** Chain genesis hash. */
2368
+ genesisHash: HexString;
2369
+ /** Follow subscription identifier. */
2370
+ followSubscriptionId: string;
2371
+ /** Block hash. */
2372
+ hash: HexString;
2373
+ /** Runtime API function name. */
2374
+ function: string;
2375
+ /** SCALE-encoded call parameters. */
2376
+ callParameters: HexString;
2377
+ }
2378
+ export declare const RemoteChainHeadCallRequest: S.Codec<RemoteChainHeadCallRequest>;
2379
+ export interface RemoteChainHeadCallResponse {
2380
+ /** Started operation result. */
2381
+ operation: OperationStartedResult;
2382
+ }
2383
+ export declare const RemoteChainHeadCallResponse: S.Codec<RemoteChainHeadCallResponse>;
2384
+ export interface RemoteChainHeadContinueRequest {
2385
+ /** Chain genesis hash. */
2386
+ genesisHash: HexString;
2387
+ /** Follow subscription identifier. */
2388
+ followSubscriptionId: string;
2389
+ /** Operation identifier. */
2390
+ operationId: string;
2391
+ }
2392
+ export declare const RemoteChainHeadContinueRequest: S.Codec<RemoteChainHeadContinueRequest>;
2393
+ export type RemoteChainHeadFollowItem = {
2394
+ tag: "Initialized";
2395
+ value: {
2396
+ finalizedBlockHashes: Array<HexString>;
2397
+ finalizedBlockRuntime?: RuntimeType;
2398
+ };
2399
+ } | {
2400
+ tag: "NewBlock";
2401
+ value: {
2402
+ blockHash: HexString;
2403
+ parentBlockHash: HexString;
2404
+ newRuntime?: RuntimeType;
2405
+ };
2406
+ } | {
2407
+ tag: "BestBlockChanged";
2408
+ value: {
2409
+ bestBlockHash: HexString;
2410
+ };
2411
+ } | {
2412
+ tag: "Finalized";
2413
+ value: {
2414
+ finalizedBlockHashes: Array<HexString>;
2415
+ prunedBlockHashes: Array<HexString>;
2416
+ };
2417
+ } | {
2418
+ tag: "OperationBodyDone";
2419
+ value: {
2420
+ operationId: string;
2421
+ value: Array<HexString>;
2422
+ };
2423
+ } | {
2424
+ tag: "OperationCallDone";
2425
+ value: {
2426
+ operationId: string;
2427
+ output: HexString;
2428
+ };
2429
+ } | {
2430
+ tag: "OperationStorageItems";
2431
+ value: {
2432
+ operationId: string;
2433
+ items: Array<StorageResultItem>;
2434
+ };
2435
+ } | {
2436
+ tag: "OperationStorageDone";
2437
+ value: {
2438
+ operationId: string;
2439
+ };
2440
+ } | {
2441
+ tag: "OperationWaitingForContinue";
2442
+ value: {
2443
+ operationId: string;
2444
+ };
2445
+ } | {
2446
+ tag: "OperationInaccessible";
2447
+ value: {
2448
+ operationId: string;
2449
+ };
2450
+ } | {
2451
+ tag: "OperationError";
2452
+ value: {
2453
+ operationId: string;
2454
+ error: string;
2455
+ };
2456
+ } | {
2457
+ tag: "Stop";
2458
+ value?: undefined;
2459
+ };
2460
+ export declare const RemoteChainHeadFollowItem: S.Codec<RemoteChainHeadFollowItem>;
2461
+ export interface RemoteChainHeadFollowRequest {
2462
+ /** Chain genesis hash. */
2463
+ genesisHash: HexString;
2464
+ /** Whether to include runtime information in events. */
2465
+ withRuntime: boolean;
2466
+ }
2467
+ export declare const RemoteChainHeadFollowRequest: S.Codec<RemoteChainHeadFollowRequest>;
2468
+ export interface RemoteChainHeadHeaderRequest {
2469
+ /** Chain genesis hash. */
2470
+ genesisHash: HexString;
2471
+ /** Follow subscription identifier. */
2472
+ followSubscriptionId: string;
2473
+ /** Block hash. */
2474
+ hash: HexString;
2475
+ }
2476
+ export declare const RemoteChainHeadHeaderRequest: S.Codec<RemoteChainHeadHeaderRequest>;
2477
+ export interface RemoteChainHeadHeaderResponse {
2478
+ /** SCALE-encoded block header. */
2479
+ header?: HexString;
2480
+ }
2481
+ export declare const RemoteChainHeadHeaderResponse: S.Codec<RemoteChainHeadHeaderResponse>;
2482
+ export interface RemoteChainHeadStopOperationRequest {
2483
+ /** Chain genesis hash. */
2484
+ genesisHash: HexString;
2485
+ /** Follow subscription identifier. */
2486
+ followSubscriptionId: string;
2487
+ /** Operation identifier. */
2488
+ operationId: string;
2489
+ }
2490
+ export declare const RemoteChainHeadStopOperationRequest: S.Codec<RemoteChainHeadStopOperationRequest>;
2491
+ export interface RemoteChainHeadStorageRequest {
2492
+ /** Chain genesis hash. */
2493
+ genesisHash: HexString;
2494
+ /** Follow subscription identifier. */
2495
+ followSubscriptionId: string;
2496
+ /** Block hash. */
2497
+ hash: HexString;
2498
+ /** Storage items to query. */
2499
+ items: Array<StorageQueryItem>;
2500
+ /** Optional child trie. */
2501
+ childTrie?: HexString;
2502
+ }
2503
+ export declare const RemoteChainHeadStorageRequest: S.Codec<RemoteChainHeadStorageRequest>;
2504
+ export interface RemoteChainHeadStorageResponse {
2505
+ /** Started operation result. */
2506
+ operation: OperationStartedResult;
2507
+ }
2508
+ export declare const RemoteChainHeadStorageResponse: S.Codec<RemoteChainHeadStorageResponse>;
2509
+ export interface RemoteChainHeadUnpinRequest {
2510
+ /** Chain genesis hash. */
2511
+ genesisHash: HexString;
2512
+ /** Follow subscription identifier. */
2513
+ followSubscriptionId: string;
2514
+ /** Block hashes to unpin. */
2515
+ hashes: Array<HexString>;
2516
+ }
2517
+ export declare const RemoteChainHeadUnpinRequest: S.Codec<RemoteChainHeadUnpinRequest>;
2518
+ export interface RemoteChainSpecChainNameRequest {
2519
+ /** Chain genesis hash. */
2520
+ genesisHash: HexString;
2521
+ }
2522
+ export declare const RemoteChainSpecChainNameRequest: S.Codec<RemoteChainSpecChainNameRequest>;
2523
+ export interface RemoteChainSpecChainNameResponse {
2524
+ /** Chain display name. */
2525
+ chainName: string;
2526
+ }
2527
+ export declare const RemoteChainSpecChainNameResponse: S.Codec<RemoteChainSpecChainNameResponse>;
2528
+ export interface RemoteChainSpecGenesisHashRequest {
2529
+ /** Chain genesis hash requested by the product. */
2530
+ genesisHash: HexString;
2531
+ }
2532
+ export declare const RemoteChainSpecGenesisHashRequest: S.Codec<RemoteChainSpecGenesisHashRequest>;
2533
+ export interface RemoteChainSpecGenesisHashResponse {
2534
+ /** Chain genesis hash. */
2535
+ genesisHash: HexString;
2536
+ }
2537
+ export declare const RemoteChainSpecGenesisHashResponse: S.Codec<RemoteChainSpecGenesisHashResponse>;
2538
+ export interface RemoteChainSpecPropertiesRequest {
2539
+ /** Chain genesis hash. */
2540
+ genesisHash: HexString;
2541
+ }
2542
+ export declare const RemoteChainSpecPropertiesRequest: S.Codec<RemoteChainSpecPropertiesRequest>;
2543
+ export interface RemoteChainSpecPropertiesResponse {
2544
+ /** JSON-encoded properties. */
2545
+ properties: string;
2546
+ }
2547
+ export declare const RemoteChainSpecPropertiesResponse: S.Codec<RemoteChainSpecPropertiesResponse>;
2548
+ export interface RemoteChainTransactionBroadcastRequest {
2549
+ /** Chain genesis hash. */
2550
+ genesisHash: HexString;
2551
+ /** Signed transaction bytes. */
2552
+ transaction: HexString;
2553
+ }
2554
+ export declare const RemoteChainTransactionBroadcastRequest: S.Codec<RemoteChainTransactionBroadcastRequest>;
2555
+ export interface RemoteChainTransactionBroadcastResponse {
2556
+ /** Broadcast operation identifier, if available. */
2557
+ operationId?: string;
2558
+ }
2559
+ export declare const RemoteChainTransactionBroadcastResponse: S.Codec<RemoteChainTransactionBroadcastResponse>;
2560
+ export interface RemoteChainTransactionStopRequest {
2561
+ /** Chain genesis hash. */
2562
+ genesisHash: HexString;
2563
+ /** Operation identifier of the broadcast to stop. */
2564
+ operationId: string;
2565
+ }
2566
+ export declare const RemoteChainTransactionStopRequest: S.Codec<RemoteChainTransactionStopRequest>;
2567
+ export interface RemotePermissionRequest {
2568
+ /** Permissions requested by the product. */
2569
+ permissions: Array<RemotePermission>;
2570
+ }
2571
+ export declare const RemotePermissionRequest: S.Codec<RemotePermissionRequest>;
2572
+ export interface RemotePermissionResponse {
2573
+ /** Whether the permission was granted. */
2574
+ granted: boolean;
2575
+ }
2576
+ export declare const RemotePermissionResponse: S.Codec<RemotePermissionResponse>;
2577
+ /** Item containing an optional preimage lookup result. */
2578
+ export interface RemotePreimageLookupSubscribeItem {
2579
+ /** Preimage data, if found. */
2580
+ value?: HexString;
2581
+ }
2582
+ export declare const RemotePreimageLookupSubscribeItem: S.Codec<RemotePreimageLookupSubscribeItem>;
2583
+ /** Request to subscribe to preimage lookup results. */
2584
+ export interface RemotePreimageLookupSubscribeRequest {
2585
+ /** Hash of the preimage. */
2586
+ key: HexString;
2587
+ }
2588
+ export declare const RemotePreimageLookupSubscribeRequest: S.Codec<RemotePreimageLookupSubscribeRequest>;
2589
+ /** Statement proof creation error. */
2590
+ export type RemoteStatementStoreCreateProofError =
2591
+ /** Signing operation failed. */
2592
+ {
2593
+ tag: "UnableToSign";
2594
+ value?: undefined;
2595
+ }
2596
+ /** Account not recognized. */
2597
+ | {
2598
+ tag: "UnknownAccount";
2599
+ value?: undefined;
2600
+ }
2601
+ /** Catch-all. */
2602
+ | {
2603
+ tag: "Unknown";
2604
+ value: {
2605
+ reason: string;
2606
+ };
2607
+ };
2608
+ export declare const RemoteStatementStoreCreateProofError: S.Codec<RemoteStatementStoreCreateProofError>;
2609
+ /** Request to create a cryptographic proof for a statement. */
2610
+ export interface RemoteStatementStoreCreateProofRequest {
2611
+ /** Product account that should create the proof. */
2612
+ productAccountId: ProductAccountId;
2613
+ /** Statement to prove. */
2614
+ statement: Statement;
2615
+ }
2616
+ export declare const RemoteStatementStoreCreateProofRequest: S.Codec<RemoteStatementStoreCreateProofRequest>;
2617
+ /** Response containing a statement proof. */
2618
+ export interface RemoteStatementStoreCreateProofResponse {
2619
+ /** Created statement proof. */
2620
+ proof: StatementProof;
2621
+ }
2622
+ export declare const RemoteStatementStoreCreateProofResponse: S.Codec<RemoteStatementStoreCreateProofResponse>;
2623
+ /**
2624
+ * Page of signed statements delivered by the statement store subscription
2625
+ * (RFC 0008). The `is_complete` flag distinguishes the historical-dump phase
2626
+ * (`false`) from the live-update phase (`true`).
2627
+ */
2628
+ export interface RemoteStatementStoreSubscribeItem {
2629
+ /** Signed statements matching the subscription. */
2630
+ statements: Array<SignedStatement>;
2631
+ /**
2632
+ * `false` while the host is still streaming the historical dump (more
2633
+ * pages to follow). `true` once the dump is complete; all subsequent
2634
+ * pages are also `true` and carry only newly-arrived statements.
2635
+ */
2636
+ isComplete: boolean;
2637
+ }
2638
+ export declare const RemoteStatementStoreSubscribeItem: S.Codec<RemoteStatementStoreSubscribeItem>;
2639
+ /** Request to subscribe to statements via a topic filter (RFC 0008). */
2640
+ export type RemoteStatementStoreSubscribeRequest =
2641
+ /** AND: statement must contain every listed topic. */
2642
+ {
2643
+ tag: "MatchAll";
2644
+ value: Array<Topic>;
2645
+ }
2646
+ /** OR: statement must contain at least one listed topic. */
2647
+ | {
2648
+ tag: "MatchAny";
2649
+ value: Array<Topic>;
2650
+ };
2651
+ export declare const RemoteStatementStoreSubscribeRequest: S.Codec<RemoteStatementStoreSubscribeRequest>;
2652
+ export type Version =
2653
+ /** Initial protocol version. */
2654
+ {
2655
+ tag: "V1";
2656
+ value?: undefined;
2657
+ };
2658
+ export declare const Version: S.Codec<Version>;
2659
+ export type VersionedTxPayload = {
2660
+ tag: "V1";
2661
+ value: TxPayloadV1;
2662
+ };
2663
+ export declare const VersionedTxPayload: S.Codec<VersionedTxPayload>;
2664
+ /** Vertical alignment options. */
2665
+ export type VerticalAlignment = "Top" | "Center" | "Bottom";
2666
+ export declare const VerticalAlignment: S.Codec<VerticalAlignment>;