@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,877 @@
1
+ // Auto-generated by truapi-codegen. Do not edit.
2
+ import * as S from "../scale.js";
3
+ export const Account = S.lazy(() => S.Struct({ publicKey: S.Hex(), name: S.Option(S.str) }));
4
+ export const ActionTrigger = S.lazy(() => S.Struct({
5
+ messageId: S.str,
6
+ actionId: S.str,
7
+ payload: S.Option(S.Hex()),
8
+ }));
9
+ export const AllocatableResource = S.lazy(() => S.TaggedUnion({
10
+ StatementStoreAllowance: S._void,
11
+ BulletinAllowance: S._void,
12
+ SmartContractAllowance: S.u32,
13
+ AutoSigning: S._void,
14
+ }));
15
+ export const AllocationOutcome = S.lazy(() => S.Status("Allocated", "Rejected", "NotAvailable"));
16
+ export const Arrangement = S.lazy(() => S.Status("Start", "End", "Center", "SpaceBetween", "SpaceAround", "SpaceEvenly"));
17
+ export const Background = S.lazy(() => S.Struct({
18
+ color: ColorToken,
19
+ shape: S.Option(Shape),
20
+ }));
21
+ export const Balance = S.lazy(() => S.u128);
22
+ export const BorderStyle = S.lazy(() => S.Struct({
23
+ width: S.u64,
24
+ color: ColorToken,
25
+ shape: S.Option(Shape),
26
+ }));
27
+ export const BoxProps = S.lazy(() => S.Struct({
28
+ contentAlignment: S.Option(ContentAlignment),
29
+ }));
30
+ export const ButtonProps = S.lazy(() => S.Struct({
31
+ text: S.str,
32
+ variant: S.Option(ButtonVariant),
33
+ clickAction: S.str,
34
+ }));
35
+ export const ButtonVariant = S.lazy(() => S.Status("Primary", "Secondary", "Text"));
36
+ export const ChatAction = S.lazy(() => S.Struct({ actionId: S.str, title: S.str }));
37
+ export const ChatActionLayout = S.lazy(() => S.Status("Column", "Grid"));
38
+ export const ChatActionPayload = S.lazy(() => S.TaggedUnion({
39
+ MessagePosted: ChatMessageContent,
40
+ ActionTriggered: ActionTrigger,
41
+ Command: ChatCommand,
42
+ }));
43
+ export const ChatActions = S.lazy(() => S.Struct({
44
+ text: S.Option(S.str),
45
+ actions: S.Vector(ChatAction),
46
+ layout: ChatActionLayout,
47
+ }));
48
+ export const ChatBotRegistrationStatus = S.lazy(() => S.Status("New", "Exists"));
49
+ export const ChatCommand = S.lazy(() => S.Struct({ command: S.str, payload: S.str }));
50
+ export const ChatCustomMessage = S.lazy(() => S.Struct({
51
+ messageType: S.str,
52
+ payload: S.Hex(),
53
+ }));
54
+ export const ChatFile = S.lazy(() => S.Struct({
55
+ url: S.str,
56
+ fileName: S.str,
57
+ mimeType: S.str,
58
+ sizeBytes: S.u64,
59
+ text: S.Option(S.str),
60
+ }));
61
+ export const ChatMedia = S.lazy(() => S.Struct({ url: S.str }));
62
+ export const ChatMessageContent = S.lazy(() => S.TaggedUnion({
63
+ Text: S.Struct({ text: S.str }),
64
+ RichText: ChatRichText,
65
+ Actions: ChatActions,
66
+ File: ChatFile,
67
+ Reaction: ChatReaction,
68
+ ReactionRemoved: ChatReaction,
69
+ Custom: ChatCustomMessage,
70
+ }));
71
+ export const ChatReaction = S.lazy(() => S.Struct({ messageId: S.str, emoji: S.str }));
72
+ export const ChatRichText = S.lazy(() => S.Struct({
73
+ text: S.Option(S.str),
74
+ media: S.Vector(ChatMedia),
75
+ }));
76
+ export const ChatRoom = S.lazy(() => S.Struct({
77
+ roomId: S.str,
78
+ participatingAs: ChatRoomParticipation,
79
+ }));
80
+ export const ChatRoomParticipation = S.lazy(() => S.Status("RoomHost", "Bot"));
81
+ export const ChatRoomRegistrationStatus = S.lazy(() => S.Status("New", "Exists"));
82
+ export const ColorToken = S.lazy(() => S.Status("TextPrimary", "TextSecondary", "TextTertiary", "BackgroundPrimary", "BackgroundSecondary", "BackgroundTertiary", "Success", "Error", "Warning"));
83
+ export const ColumnProps = S.lazy(() => S.Struct({
84
+ horizontalAlignment: S.Option(HorizontalAlignment),
85
+ verticalArrangement: S.Option(Arrangement),
86
+ }));
87
+ /** Builds a codec for renderer components parameterized by the codec of their
88
+ * `props` payload. */
89
+ export function Component(pCodec) {
90
+ return S.lazy(() => S.Struct({
91
+ modifiers: S.Vector(Modifier),
92
+ props: pCodec,
93
+ children: S.Vector(CustomRendererNode),
94
+ }));
95
+ }
96
+ export const ContentAlignment = S.lazy(() => S.Status("TopStart", "TopCenter", "TopEnd", "CenterStart", "Center", "CenterEnd", "BottomStart", "BottomCenter", "BottomEnd"));
97
+ export const CustomRendererNode = S.lazy(() => S.TaggedUnion({
98
+ Nil: S._void,
99
+ String: S.Struct({ text: S.str }),
100
+ Box: Component(BoxProps),
101
+ Column: Component(ColumnProps),
102
+ Row: Component(RowProps),
103
+ Spacer: Component(S._void),
104
+ Text: Component(TextProps),
105
+ Button: Component(ButtonProps),
106
+ TextField: Component(TextFieldProps),
107
+ }));
108
+ export const Dimensions = S.lazy(() => S.Struct({
109
+ top: S.u64,
110
+ end: S.u64,
111
+ bottom: S.Option(S.u64),
112
+ start: S.Option(S.u64),
113
+ }));
114
+ export const GenericErr = S.lazy(() => S.Struct({ reason: S.str }));
115
+ export const GenericError = S.lazy(() => S.TaggedUnion({ GenericError: GenericErr }));
116
+ export const HorizontalAlignment = S.lazy(() => S.Status("Start", "Center", "End"));
117
+ export const VersionedHostAccountConnectionStatusSubscribeItem = S.lazy(() => S.indexedTaggedUnion({
118
+ V1: [0, HostAccountConnectionStatusSubscribeItem],
119
+ }));
120
+ export const VersionedHostAccountCreateProofError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountCreateProofError] }));
121
+ export const VersionedHostAccountCreateProofRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountCreateProofRequest] }));
122
+ export const VersionedHostAccountCreateProofResponse = S.lazy(() => S.indexedTaggedUnion({
123
+ V1: [0, HostAccountCreateProofResponse],
124
+ }));
125
+ export const VersionedHostAccountGetAliasError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountGetError] }));
126
+ export const VersionedHostAccountGetAliasRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountGetAliasRequest] }));
127
+ export const VersionedHostAccountGetAliasResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountGetAliasResponse] }));
128
+ export const VersionedHostAccountGetError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountGetError] }));
129
+ export const VersionedHostAccountGetRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountGetRequest] }));
130
+ export const VersionedHostAccountGetResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountGetResponse] }));
131
+ export const VersionedHostChatActionSubscribeItem = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatActionSubscribeItem] }));
132
+ export const VersionedHostChatCreateRoomError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatCreateRoomError] }));
133
+ export const VersionedHostChatCreateRoomRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatCreateRoomRequest] }));
134
+ export const VersionedHostChatCreateRoomResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatCreateRoomResponse] }));
135
+ export const VersionedHostChatListSubscribeItem = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatListSubscribeItem] }));
136
+ export const VersionedHostChatPostMessageError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatPostMessageError] }));
137
+ export const VersionedHostChatPostMessageRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatPostMessageRequest] }));
138
+ export const VersionedHostChatPostMessageResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatPostMessageResponse] }));
139
+ export const VersionedHostChatRegisterBotError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatRegisterBotError] }));
140
+ export const VersionedHostChatRegisterBotRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatRegisterBotRequest] }));
141
+ export const VersionedHostChatRegisterBotResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostChatRegisterBotResponse] }));
142
+ export const VersionedHostCreateTransactionError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostCreateTransactionError] }));
143
+ export const VersionedHostCreateTransactionRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostCreateTransactionRequest] }));
144
+ export const VersionedHostCreateTransactionResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostCreateTransactionResponse] }));
145
+ export const VersionedHostCreateTransactionWithLegacyAccountError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostCreateTransactionError] }));
146
+ export const VersionedHostCreateTransactionWithLegacyAccountRequest = S.lazy(() => S.indexedTaggedUnion({
147
+ V1: [0, HostCreateTransactionWithLegacyAccountRequest],
148
+ }));
149
+ export const VersionedHostCreateTransactionWithLegacyAccountResponse = S.lazy(() => S.indexedTaggedUnion({
150
+ V1: [0, HostCreateTransactionWithLegacyAccountResponse],
151
+ }));
152
+ export const VersionedHostDeriveEntropyError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostDeriveEntropyError] }));
153
+ export const VersionedHostDeriveEntropyRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostDeriveEntropyRequest] }));
154
+ export const VersionedHostDeriveEntropyResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostDeriveEntropyResponse] }));
155
+ export const VersionedHostDevicePermissionError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
156
+ export const VersionedHostDevicePermissionRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostDevicePermissionRequest] }));
157
+ export const VersionedHostDevicePermissionResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostDevicePermissionResponse] }));
158
+ export const VersionedHostFeatureSupportedError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
159
+ export const VersionedHostFeatureSupportedRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostFeatureSupportedRequest] }));
160
+ export const VersionedHostFeatureSupportedResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostFeatureSupportedResponse] }));
161
+ export const VersionedHostGetLegacyAccountsError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostAccountGetError] }));
162
+ export const VersionedHostGetLegacyAccountsRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
163
+ export const VersionedHostGetLegacyAccountsResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostGetLegacyAccountsResponse] }));
164
+ export const VersionedHostGetUserIdError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostGetUserIdError] }));
165
+ export const VersionedHostGetUserIdRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
166
+ export const VersionedHostGetUserIdResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostGetUserIdResponse] }));
167
+ export const VersionedHostHandshakeError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostHandshakeError] }));
168
+ export const VersionedHostHandshakeRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostHandshakeRequest] }));
169
+ export const VersionedHostHandshakeResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
170
+ export const VersionedHostJsonrpcMessageSendError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
171
+ export const VersionedHostJsonrpcMessageSendRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostJsonrpcMessageSendRequest] }));
172
+ export const VersionedHostJsonrpcMessageSendResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
173
+ export const VersionedHostJsonrpcMessageSubscribeItem = S.lazy(() => S.indexedTaggedUnion({
174
+ V1: [0, HostJsonrpcMessageSubscribeItem],
175
+ }));
176
+ export const VersionedHostJsonrpcMessageSubscribeRequest = S.lazy(() => S.indexedTaggedUnion({
177
+ V1: [0, HostJsonrpcMessageSubscribeRequest],
178
+ }));
179
+ export const VersionedHostLocalStorageClearError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostLocalStorageReadError] }));
180
+ export const VersionedHostLocalStorageClearRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostLocalStorageClearRequest] }));
181
+ export const VersionedHostLocalStorageClearResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
182
+ export const VersionedHostLocalStorageReadError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostLocalStorageReadError] }));
183
+ export const VersionedHostLocalStorageReadRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostLocalStorageReadRequest] }));
184
+ export const VersionedHostLocalStorageReadResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostLocalStorageReadResponse] }));
185
+ export const VersionedHostLocalStorageWriteError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostLocalStorageReadError] }));
186
+ export const VersionedHostLocalStorageWriteRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostLocalStorageWriteRequest] }));
187
+ export const VersionedHostLocalStorageWriteResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
188
+ export const VersionedHostNavigateToError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostNavigateToError] }));
189
+ export const VersionedHostNavigateToRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostNavigateToRequest] }));
190
+ export const VersionedHostNavigateToResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
191
+ export const VersionedHostPaymentBalanceSubscribeError = S.lazy(() => S.indexedTaggedUnion({
192
+ V1: [0, HostPaymentBalanceSubscribeError],
193
+ }));
194
+ export const VersionedHostPaymentBalanceSubscribeItem = S.lazy(() => S.indexedTaggedUnion({
195
+ V1: [0, HostPaymentBalanceSubscribeItem],
196
+ }));
197
+ export const VersionedHostPaymentBalanceSubscribeRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
198
+ export const VersionedHostPaymentRequestError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostPaymentRequestError] }));
199
+ export const VersionedHostPaymentRequestRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostPaymentRequestRequest] }));
200
+ export const VersionedHostPaymentRequestResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostPaymentRequestResponse] }));
201
+ export const VersionedHostPaymentStatusSubscribeError = S.lazy(() => S.indexedTaggedUnion({
202
+ V1: [0, HostPaymentStatusSubscribeError],
203
+ }));
204
+ export const VersionedHostPaymentStatusSubscribeItem = S.lazy(() => S.indexedTaggedUnion({
205
+ V1: [0, HostPaymentStatusSubscribeItem],
206
+ }));
207
+ export const VersionedHostPaymentStatusSubscribeRequest = S.lazy(() => S.indexedTaggedUnion({
208
+ V1: [0, HostPaymentStatusSubscribeRequest],
209
+ }));
210
+ export const VersionedHostPaymentTopUpError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostPaymentTopUpError] }));
211
+ export const VersionedHostPaymentTopUpRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostPaymentTopUpRequest] }));
212
+ export const VersionedHostPaymentTopUpResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
213
+ export const VersionedHostPushNotificationError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
214
+ export const VersionedHostPushNotificationRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostPushNotificationRequest] }));
215
+ export const VersionedHostPushNotificationResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
216
+ export const VersionedHostRequestLoginError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostRequestLoginError] }));
217
+ export const VersionedHostRequestLoginRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostRequestLoginRequest] }));
218
+ export const VersionedHostRequestLoginResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostRequestLoginResponse] }));
219
+ export const VersionedHostRequestResourceAllocationError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, ResourceAllocationError] }));
220
+ export const VersionedHostRequestResourceAllocationRequest = S.lazy(() => S.indexedTaggedUnion({
221
+ V1: [0, HostRequestResourceAllocationRequest],
222
+ }));
223
+ export const VersionedHostRequestResourceAllocationResponse = S.lazy(() => S.indexedTaggedUnion({
224
+ V1: [0, HostRequestResourceAllocationResponse],
225
+ }));
226
+ export const VersionedHostSignPayloadError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadError] }));
227
+ export const VersionedHostSignPayloadRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadRequest] }));
228
+ export const VersionedHostSignPayloadResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadResponse] }));
229
+ export const VersionedHostSignPayloadWithLegacyAccountError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadError] }));
230
+ export const VersionedHostSignPayloadWithLegacyAccountRequest = S.lazy(() => S.indexedTaggedUnion({
231
+ V1: [0, HostSignPayloadWithLegacyAccountRequest],
232
+ }));
233
+ export const VersionedHostSignPayloadWithLegacyAccountResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadResponse] }));
234
+ export const VersionedHostSignRawError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadError] }));
235
+ export const VersionedHostSignRawRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignRawRequest] }));
236
+ export const VersionedHostSignRawResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadResponse] }));
237
+ export const VersionedHostSignRawWithLegacyAccountError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadError] }));
238
+ export const VersionedHostSignRawWithLegacyAccountRequest = S.lazy(() => S.indexedTaggedUnion({
239
+ V1: [0, HostSignRawWithLegacyAccountRequest],
240
+ }));
241
+ export const VersionedHostSignRawWithLegacyAccountResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostSignPayloadResponse] }));
242
+ export const VersionedHostThemeSubscribeItem = S.lazy(() => S.indexedTaggedUnion({ V1: [0, HostThemeSubscribeItem] }));
243
+ export const Modifier = S.lazy(() => S.TaggedUnion({
244
+ Margin: Dimensions,
245
+ Padding: Dimensions,
246
+ Background: Background,
247
+ Border: BorderStyle,
248
+ Height: S.Struct({ height: S.u64 }),
249
+ Width: S.Struct({ width: S.u64 }),
250
+ MinWidth: S.Struct({ width: S.u64 }),
251
+ MinHeight: S.Struct({ height: S.u64 }),
252
+ FillWidth: S.Struct({ enabled: S.bool }),
253
+ FillHeight: S.Struct({ enabled: S.bool }),
254
+ }));
255
+ export const OperationStartedResult = S.lazy(() => S.TaggedUnion({
256
+ Started: S.Struct({ operationId: S.str }),
257
+ LimitReached: S._void,
258
+ }));
259
+ export const PaymentTopUpSource = S.lazy(() => S.TaggedUnion({
260
+ ProductAccount: S.Struct({ derivationIndex: S.u32 }),
261
+ PrivateKey: S.Struct({ ed25519PrivateKey: S.Hex(32) }),
262
+ }));
263
+ export const PreimageSubmitError = S.lazy(() => S.TaggedUnion({
264
+ Unknown: S.Struct({ reason: S.str }),
265
+ }));
266
+ export const ProductAccount = S.lazy(() => S.Struct({ publicKey: S.Hex() }));
267
+ export const ProductAccountId = S.lazy(() => S.Struct({
268
+ dotNsIdentifier: S.str,
269
+ derivationIndex: S.u32,
270
+ }));
271
+ export const VersionedProductChatCustomMessageRenderSubscribeItem = S.lazy(() => S.indexedTaggedUnion({ V1: [0, CustomRendererNode] }));
272
+ export const VersionedProductChatCustomMessageRenderSubscribeRequest = S.lazy(() => S.indexedTaggedUnion({
273
+ V1: [0, ProductChatCustomMessageRenderSubscribeRequest],
274
+ }));
275
+ export const RawPayload = S.lazy(() => S.TaggedUnion({
276
+ Bytes: S.Struct({ bytes: S.Hex() }),
277
+ Payload: S.Struct({ payload: S.str }),
278
+ }));
279
+ export const VersionedRemoteChainHeadBodyError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
280
+ export const VersionedRemoteChainHeadBodyRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadBodyRequest] }));
281
+ export const VersionedRemoteChainHeadBodyResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadBodyResponse] }));
282
+ export const VersionedRemoteChainHeadCallError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
283
+ export const VersionedRemoteChainHeadCallRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadCallRequest] }));
284
+ export const VersionedRemoteChainHeadCallResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadCallResponse] }));
285
+ export const VersionedRemoteChainHeadContinueError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
286
+ export const VersionedRemoteChainHeadContinueRequest = S.lazy(() => S.indexedTaggedUnion({
287
+ V1: [0, RemoteChainHeadContinueRequest],
288
+ }));
289
+ export const VersionedRemoteChainHeadContinueResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
290
+ export const VersionedRemoteChainHeadFollowItem = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadFollowItem] }));
291
+ export const VersionedRemoteChainHeadFollowRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadFollowRequest] }));
292
+ export const VersionedRemoteChainHeadHeaderError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
293
+ export const VersionedRemoteChainHeadHeaderRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadHeaderRequest] }));
294
+ export const VersionedRemoteChainHeadHeaderResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadHeaderResponse] }));
295
+ export const VersionedRemoteChainHeadStopOperationError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
296
+ export const VersionedRemoteChainHeadStopOperationRequest = S.lazy(() => S.indexedTaggedUnion({
297
+ V1: [0, RemoteChainHeadStopOperationRequest],
298
+ }));
299
+ export const VersionedRemoteChainHeadStopOperationResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
300
+ export const VersionedRemoteChainHeadStorageError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
301
+ export const VersionedRemoteChainHeadStorageRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadStorageRequest] }));
302
+ export const VersionedRemoteChainHeadStorageResponse = S.lazy(() => S.indexedTaggedUnion({
303
+ V1: [0, RemoteChainHeadStorageResponse],
304
+ }));
305
+ export const VersionedRemoteChainHeadUnpinError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
306
+ export const VersionedRemoteChainHeadUnpinRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemoteChainHeadUnpinRequest] }));
307
+ export const VersionedRemoteChainHeadUnpinResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
308
+ export const VersionedRemoteChainSpecChainNameError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
309
+ export const VersionedRemoteChainSpecChainNameRequest = S.lazy(() => S.indexedTaggedUnion({
310
+ V1: [0, RemoteChainSpecChainNameRequest],
311
+ }));
312
+ export const VersionedRemoteChainSpecChainNameResponse = S.lazy(() => S.indexedTaggedUnion({
313
+ V1: [0, RemoteChainSpecChainNameResponse],
314
+ }));
315
+ export const VersionedRemoteChainSpecGenesisHashError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
316
+ export const VersionedRemoteChainSpecGenesisHashRequest = S.lazy(() => S.indexedTaggedUnion({
317
+ V1: [0, RemoteChainSpecGenesisHashRequest],
318
+ }));
319
+ export const VersionedRemoteChainSpecGenesisHashResponse = S.lazy(() => S.indexedTaggedUnion({
320
+ V1: [0, RemoteChainSpecGenesisHashResponse],
321
+ }));
322
+ export const VersionedRemoteChainSpecPropertiesError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
323
+ export const VersionedRemoteChainSpecPropertiesRequest = S.lazy(() => S.indexedTaggedUnion({
324
+ V1: [0, RemoteChainSpecPropertiesRequest],
325
+ }));
326
+ export const VersionedRemoteChainSpecPropertiesResponse = S.lazy(() => S.indexedTaggedUnion({
327
+ V1: [0, RemoteChainSpecPropertiesResponse],
328
+ }));
329
+ export const VersionedRemoteChainTransactionBroadcastError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
330
+ export const VersionedRemoteChainTransactionBroadcastRequest = S.lazy(() => S.indexedTaggedUnion({
331
+ V1: [0, RemoteChainTransactionBroadcastRequest],
332
+ }));
333
+ export const VersionedRemoteChainTransactionBroadcastResponse = S.lazy(() => S.indexedTaggedUnion({
334
+ V1: [0, RemoteChainTransactionBroadcastResponse],
335
+ }));
336
+ export const VersionedRemoteChainTransactionStopError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
337
+ export const VersionedRemoteChainTransactionStopRequest = S.lazy(() => S.indexedTaggedUnion({
338
+ V1: [0, RemoteChainTransactionStopRequest],
339
+ }));
340
+ export const VersionedRemoteChainTransactionStopResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
341
+ export const RemotePermission = S.lazy(() => S.TaggedUnion({
342
+ Remote: S.Struct({ domains: S.Vector(S.str) }),
343
+ WebRtc: S._void,
344
+ ChainSubmit: S._void,
345
+ PreimageSubmit: S._void,
346
+ StatementSubmit: S._void,
347
+ }));
348
+ export const VersionedRemotePermissionError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
349
+ export const VersionedRemotePermissionRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemotePermissionRequest] }));
350
+ export const VersionedRemotePermissionResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, RemotePermissionResponse] }));
351
+ export const VersionedRemotePreimageLookupSubscribeItem = S.lazy(() => S.indexedTaggedUnion({
352
+ V1: [0, RemotePreimageLookupSubscribeItem],
353
+ }));
354
+ export const VersionedRemotePreimageLookupSubscribeRequest = S.lazy(() => S.indexedTaggedUnion({
355
+ V1: [0, RemotePreimageLookupSubscribeRequest],
356
+ }));
357
+ export const VersionedRemotePreimageSubmitError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, PreimageSubmitError] }));
358
+ export const VersionedRemotePreimageSubmitRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S.Hex()] }));
359
+ export const VersionedRemotePreimageSubmitResponse = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S.Hex()] }));
360
+ export const VersionedRemoteStatementStoreCreateProofAuthorizedError = S.lazy(() => S.indexedTaggedUnion({
361
+ V1: [0, RemoteStatementStoreCreateProofError],
362
+ }));
363
+ export const VersionedRemoteStatementStoreCreateProofAuthorizedRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, Statement] }));
364
+ export const VersionedRemoteStatementStoreCreateProofAuthorizedResponse = S.lazy(() => S.indexedTaggedUnion({
365
+ V1: [0, RemoteStatementStoreCreateProofResponse],
366
+ }));
367
+ export const VersionedRemoteStatementStoreCreateProofError = S.lazy(() => S.indexedTaggedUnion({
368
+ V1: [0, RemoteStatementStoreCreateProofError],
369
+ }));
370
+ export const VersionedRemoteStatementStoreCreateProofRequest = S.lazy(() => S.indexedTaggedUnion({
371
+ V1: [0, RemoteStatementStoreCreateProofRequest],
372
+ }));
373
+ export const VersionedRemoteStatementStoreCreateProofResponse = S.lazy(() => S.indexedTaggedUnion({
374
+ V1: [0, RemoteStatementStoreCreateProofResponse],
375
+ }));
376
+ export const VersionedRemoteStatementStoreSubmitError = S.lazy(() => S.indexedTaggedUnion({ V1: [0, GenericError] }));
377
+ export const VersionedRemoteStatementStoreSubmitRequest = S.lazy(() => S.indexedTaggedUnion({ V1: [0, SignedStatement] }));
378
+ export const VersionedRemoteStatementStoreSubscribeItem = S.lazy(() => S.indexedTaggedUnion({
379
+ V1: [0, RemoteStatementStoreSubscribeItem],
380
+ }));
381
+ export const VersionedRemoteStatementStoreSubscribeRequest = S.lazy(() => S.indexedTaggedUnion({
382
+ V1: [0, RemoteStatementStoreSubscribeRequest],
383
+ }));
384
+ export const ResourceAllocationError = S.lazy(() => S.TaggedUnion({
385
+ Unknown: S.Struct({ reason: S.str }),
386
+ }));
387
+ export const RingLocation = S.lazy(() => S.Struct({
388
+ genesisHash: S.Hex(),
389
+ ringRootHash: S.Hex(),
390
+ hints: S.Option(RingLocationHint),
391
+ }));
392
+ export const RingLocationHint = S.lazy(() => S.Struct({ palletInstance: S.Option(S.u32) }));
393
+ export const RowProps = S.lazy(() => S.Struct({
394
+ verticalAlignment: S.Option(VerticalAlignment),
395
+ horizontalArrangement: S.Option(Arrangement),
396
+ }));
397
+ export const RuntimeApi = S.lazy(() => S.Struct({ name: S.str, version: S.u32 }));
398
+ export const RuntimeSpec = S.lazy(() => S.Struct({
399
+ specName: S.str,
400
+ implName: S.str,
401
+ specVersion: S.u32,
402
+ implVersion: S.u32,
403
+ transactionVersion: S.Option(S.u32),
404
+ apis: S.Vector(RuntimeApi),
405
+ }));
406
+ export const RuntimeType = S.lazy(() => S.TaggedUnion({
407
+ Valid: RuntimeSpec,
408
+ Invalid: S.Struct({ error: S.str }),
409
+ }));
410
+ export const Shape = S.lazy(() => S.TaggedUnion({
411
+ Rounded: S.Struct({ radius: S.u64 }),
412
+ Circle: S._void,
413
+ }));
414
+ export const SignedStatement = S.lazy(() => S.Struct({
415
+ proof: StatementProof,
416
+ decryptionKey: S.Option(S.Hex(32)),
417
+ expiry: S.Option(S.u64),
418
+ channel: S.Option(S.Hex(32)),
419
+ topics: S.Vector(S.Hex(32)),
420
+ data: S.Option(S.Hex()),
421
+ }));
422
+ export const Statement = S.lazy(() => S.Struct({
423
+ proof: S.Option(StatementProof),
424
+ decryptionKey: S.Option(S.Hex(32)),
425
+ expiry: S.Option(S.u64),
426
+ channel: S.Option(S.Hex(32)),
427
+ topics: S.Vector(S.Hex(32)),
428
+ data: S.Option(S.Hex()),
429
+ }));
430
+ export const StatementProof = S.lazy(() => S.TaggedUnion({
431
+ Sr25519: S.Struct({
432
+ signature: S.Hex(64),
433
+ signer: S.Hex(32),
434
+ }),
435
+ Ed25519: S.Struct({
436
+ signature: S.Hex(64),
437
+ signer: S.Hex(32),
438
+ }),
439
+ Ecdsa: S.Struct({ signature: S.Hex(65), signer: S.Hex(33) }),
440
+ OnChain: S.Struct({
441
+ who: S.Hex(32),
442
+ blockHash: S.Hex(32),
443
+ event: S.u64,
444
+ }),
445
+ }));
446
+ export const StorageQueryItem = S.lazy(() => S.Struct({
447
+ key: S.Hex(),
448
+ queryType: StorageQueryType,
449
+ }));
450
+ export const StorageQueryType = S.lazy(() => S.Status("Value", "Hash", "ClosestDescendantMerkleValue", "DescendantsValues", "DescendantsHashes"));
451
+ export const StorageResultItem = S.lazy(() => S.Struct({
452
+ key: S.Hex(),
453
+ value: S.Option(S.Hex()),
454
+ hash: S.Option(S.Hex()),
455
+ closestDescendantMerkleValue: S.Option(S.Hex()),
456
+ }));
457
+ export const TextFieldProps = S.lazy(() => S.Struct({
458
+ placeholder: S.Option(S.str),
459
+ initialValue: S.Option(S.str),
460
+ submitAction: S.str,
461
+ }));
462
+ export const TextProps = S.lazy(() => S.Struct({
463
+ style: S.Option(TypographyStyle),
464
+ color: S.Option(ColorToken),
465
+ }));
466
+ export const Theme = S.lazy(() => S.Status("Light", "Dark"));
467
+ export const Topic = S.lazy(() => S.Hex(32));
468
+ export const TxPayloadContextV1 = S.lazy(() => S.Struct({
469
+ metadata: S.Hex(),
470
+ tokenSymbol: S.str,
471
+ tokenDecimals: S.u32,
472
+ bestBlockHeight: S.u32,
473
+ }));
474
+ export const TxPayloadExtensionV1 = S.lazy(() => S.Struct({
475
+ id: S.str,
476
+ extra: S.Hex(),
477
+ additionalSigned: S.Hex(),
478
+ }));
479
+ export const TxPayloadV1 = S.lazy(() => S.Struct({
480
+ signer: S.Option(S.str),
481
+ callData: S.Hex(),
482
+ extensions: S.Vector(TxPayloadExtensionV1),
483
+ txExtVersion: S.u8,
484
+ context: TxPayloadContextV1,
485
+ }));
486
+ export const TypographyStyle = S.lazy(() => S.Status("TitleXL", "Headline", "BodyM", "BodyS", "Caption"));
487
+ export const HostAccountConnectionStatusSubscribeItem = S.lazy(() => S.Status("Disconnected", "Connected"));
488
+ export const HostAccountCreateProofError = S.lazy(() => S.TaggedUnion({
489
+ RingNotFound: S._void,
490
+ Rejected: S._void,
491
+ Unknown: S.Struct({ reason: S.str }),
492
+ }));
493
+ export const HostAccountCreateProofRequest = S.lazy(() => S.Struct({
494
+ productAccountId: ProductAccountId,
495
+ ringLocation: RingLocation,
496
+ context: S.Hex(),
497
+ }));
498
+ export const HostAccountCreateProofResponse = S.lazy(() => S.Struct({ proof: S.Hex() }));
499
+ export const HostAccountGetAliasRequest = S.lazy(() => S.Struct({
500
+ productAccountId: ProductAccountId,
501
+ }));
502
+ export const HostAccountGetAliasResponse = S.lazy(() => S.Struct({
503
+ context: S.Hex(32),
504
+ alias: S.Hex(),
505
+ }));
506
+ export const HostAccountGetError = S.lazy(() => S.TaggedUnion({
507
+ NotConnected: S._void,
508
+ Rejected: S._void,
509
+ DomainNotValid: S._void,
510
+ Unknown: S.Struct({ reason: S.str }),
511
+ }));
512
+ export const HostAccountGetRequest = S.lazy(() => S.Struct({
513
+ productAccountId: ProductAccountId,
514
+ }));
515
+ export const HostAccountGetResponse = S.lazy(() => S.Struct({ account: ProductAccount }));
516
+ export const HostChatActionSubscribeItem = S.lazy(() => S.Struct({
517
+ roomId: S.str,
518
+ peer: S.str,
519
+ payload: ChatActionPayload,
520
+ }));
521
+ export const HostChatCreateRoomError = S.lazy(() => S.TaggedUnion({
522
+ PermissionDenied: S._void,
523
+ Unknown: S.Struct({ reason: S.str }),
524
+ }));
525
+ export const HostChatCreateRoomRequest = S.lazy(() => S.Struct({
526
+ roomId: S.str,
527
+ name: S.str,
528
+ icon: S.str,
529
+ }));
530
+ export const HostChatCreateRoomResponse = S.lazy(() => S.Struct({
531
+ status: ChatRoomRegistrationStatus,
532
+ }));
533
+ export const HostChatListSubscribeItem = S.lazy(() => S.Struct({
534
+ rooms: S.Vector(ChatRoom),
535
+ }));
536
+ export const HostChatPostMessageError = S.lazy(() => S.TaggedUnion({
537
+ MessageTooLarge: S._void,
538
+ Unknown: S.Struct({ reason: S.str }),
539
+ }));
540
+ export const HostChatPostMessageRequest = S.lazy(() => S.Struct({
541
+ roomId: S.str,
542
+ payload: ChatMessageContent,
543
+ }));
544
+ export const HostChatPostMessageResponse = S.lazy(() => S.Struct({ messageId: S.str }));
545
+ export const HostChatRegisterBotError = S.lazy(() => S.TaggedUnion({
546
+ PermissionDenied: S._void,
547
+ Unknown: S.Struct({ reason: S.str }),
548
+ }));
549
+ export const HostChatRegisterBotRequest = S.lazy(() => S.Struct({
550
+ botId: S.str,
551
+ name: S.str,
552
+ icon: S.str,
553
+ }));
554
+ export const HostChatRegisterBotResponse = S.lazy(() => S.Struct({
555
+ status: ChatBotRegistrationStatus,
556
+ }));
557
+ export const HostCreateTransactionError = S.lazy(() => S.TaggedUnion({
558
+ FailedToDecode: S._void,
559
+ Rejected: S._void,
560
+ NotSupported: S.Struct({ reason: S.str }),
561
+ PermissionDenied: S._void,
562
+ Unknown: S.Struct({ reason: S.str }),
563
+ }));
564
+ export const HostCreateTransactionRequest = S.lazy(() => S.Struct({
565
+ productAccountId: ProductAccountId,
566
+ payload: VersionedTxPayload,
567
+ }));
568
+ export const HostCreateTransactionResponse = S.lazy(() => S.Struct({
569
+ transaction: S.Hex(),
570
+ }));
571
+ export const HostCreateTransactionWithLegacyAccountRequest = S.lazy(() => S.Struct({
572
+ payload: VersionedTxPayload,
573
+ }));
574
+ export const HostCreateTransactionWithLegacyAccountResponse = S.lazy(() => S.Struct({
575
+ transaction: S.Hex(),
576
+ }));
577
+ export const HostDeriveEntropyError = S.lazy(() => S.Status("Unknown"));
578
+ export const HostDeriveEntropyRequest = S.lazy(() => S.Struct({ context: S.Hex() }));
579
+ export const HostDeriveEntropyResponse = S.lazy(() => S.Struct({ entropy: S.Hex(32) }));
580
+ export const HostDevicePermissionRequest = S.lazy(() => S.Status("Notifications", "Camera", "Microphone", "Bluetooth", "NFC", "Location", "Clipboard", "OpenUrl", "Biometrics"));
581
+ export const HostDevicePermissionResponse = S.lazy(() => S.Struct({ granted: S.bool }));
582
+ export const HostFeatureSupportedRequest = S.lazy(() => S.TaggedUnion({
583
+ Chain: S.Struct({ genesisHash: S.Hex() }),
584
+ }));
585
+ export const HostFeatureSupportedResponse = S.lazy(() => S.Struct({ supported: S.bool }));
586
+ export const HostGetLegacyAccountsResponse = S.lazy(() => S.Struct({
587
+ accounts: S.Vector(Account),
588
+ }));
589
+ export const HostGetUserIdError = S.lazy(() => S.TaggedUnion({
590
+ PermissionDenied: S._void,
591
+ NotConnected: S._void,
592
+ Unknown: S.Struct({ reason: S.str }),
593
+ }));
594
+ export const HostGetUserIdResponse = S.lazy(() => S.Struct({ primaryUsername: S.str }));
595
+ export const HostHandshakeError = S.lazy(() => S.TaggedUnion({
596
+ Timeout: S._void,
597
+ UnsupportedProtocolVersion: S._void,
598
+ Unknown: GenericErr,
599
+ }));
600
+ export const HostHandshakeRequest = S.lazy(() => S.Struct({ codecVersion: S.u8 }));
601
+ export const HostJsonrpcMessageSendRequest = S.lazy(() => S.Struct({
602
+ genesisHash: S.Hex(),
603
+ message: S.str,
604
+ }));
605
+ export const HostJsonrpcMessageSubscribeItem = S.lazy(() => S.Struct({ message: S.str }));
606
+ export const HostJsonrpcMessageSubscribeRequest = S.lazy(() => S.Struct({
607
+ genesisHash: S.Hex(),
608
+ }));
609
+ export const HostLocalStorageClearRequest = S.lazy(() => S.Struct({ key: S.str }));
610
+ export const HostLocalStorageReadError = S.lazy(() => S.TaggedUnion({
611
+ Full: S._void,
612
+ Unknown: S.Struct({ reason: S.str }),
613
+ }));
614
+ export const HostLocalStorageReadRequest = S.lazy(() => S.Struct({ key: S.str }));
615
+ export const HostLocalStorageReadResponse = S.lazy(() => S.Struct({
616
+ value: S.Option(S.Hex()),
617
+ }));
618
+ export const HostLocalStorageWriteRequest = S.lazy(() => S.Struct({
619
+ key: S.str,
620
+ value: S.Hex(),
621
+ }));
622
+ export const HostNavigateToError = S.lazy(() => S.TaggedUnion({
623
+ PermissionDenied: S._void,
624
+ Unknown: S.Struct({ reason: S.str }),
625
+ }));
626
+ export const HostNavigateToRequest = S.lazy(() => S.Struct({ url: S.str }));
627
+ export const HostPaymentBalanceSubscribeError = S.lazy(() => S.TaggedUnion({
628
+ PermissionDenied: S._void,
629
+ Unknown: S.Struct({ reason: S.str }),
630
+ }));
631
+ export const HostPaymentBalanceSubscribeItem = S.lazy(() => S.Struct({
632
+ available: Balance,
633
+ }));
634
+ export const HostPaymentRequestError = S.lazy(() => S.TaggedUnion({
635
+ Rejected: S._void,
636
+ InsufficientBalance: S._void,
637
+ Unknown: S.Struct({ reason: S.str }),
638
+ }));
639
+ export const HostPaymentRequestRequest = S.lazy(() => S.Struct({
640
+ amount: Balance,
641
+ destination: S.Hex(32),
642
+ }));
643
+ export const HostPaymentRequestResponse = S.lazy(() => S.Struct({ id: S.str }));
644
+ export const HostPaymentStatusSubscribeError = S.lazy(() => S.TaggedUnion({
645
+ PaymentNotFound: S._void,
646
+ Unknown: S.Struct({ reason: S.str }),
647
+ }));
648
+ export const HostPaymentStatusSubscribeItem = S.lazy(() => S.TaggedUnion({
649
+ Processing: S._void,
650
+ Completed: S._void,
651
+ Failed: S.Struct({ reason: S.str }),
652
+ }));
653
+ export const HostPaymentStatusSubscribeRequest = S.lazy(() => S.Struct({
654
+ paymentId: S.str,
655
+ }));
656
+ export const HostPaymentTopUpError = S.lazy(() => S.TaggedUnion({
657
+ InsufficientFunds: S._void,
658
+ InvalidSource: S._void,
659
+ Unknown: S.Struct({ reason: S.str }),
660
+ }));
661
+ export const HostPaymentTopUpRequest = S.lazy(() => S.Struct({
662
+ amount: Balance,
663
+ source: PaymentTopUpSource,
664
+ }));
665
+ export const HostPushNotificationRequest = S.lazy(() => S.Struct({
666
+ text: S.str,
667
+ deeplink: S.Option(S.str),
668
+ }));
669
+ export const HostRequestLoginError = S.lazy(() => S.TaggedUnion({
670
+ Unknown: S.Struct({ reason: S.str }),
671
+ }));
672
+ export const HostRequestLoginRequest = S.lazy(() => S.Struct({ reason: S.Option(S.str) }));
673
+ export const HostRequestLoginResponse = S.lazy(() => S.Status("Success", "AlreadyConnected", "Rejected"));
674
+ export const HostRequestResourceAllocationRequest = S.lazy(() => S.Struct({
675
+ resources: S.Vector(AllocatableResource),
676
+ }));
677
+ export const HostRequestResourceAllocationResponse = S.lazy(() => S.Struct({
678
+ outcomes: S.Vector(AllocationOutcome),
679
+ }));
680
+ export const HostSignPayloadError = S.lazy(() => S.TaggedUnion({
681
+ FailedToDecode: S._void,
682
+ Rejected: S._void,
683
+ PermissionDenied: S._void,
684
+ Unknown: S.Struct({ reason: S.str }),
685
+ }));
686
+ export const HostSignPayloadRequest = S.lazy(() => S.Struct({
687
+ account: ProductAccountId,
688
+ blockHash: S.Hex(),
689
+ blockNumber: S.Hex(),
690
+ era: S.Hex(),
691
+ genesisHash: S.Hex(),
692
+ method: S.Hex(),
693
+ nonce: S.Hex(),
694
+ specVersion: S.Hex(),
695
+ tip: S.Hex(),
696
+ transactionVersion: S.Hex(),
697
+ signedExtensions: S.Vector(S.str),
698
+ version: S.u32,
699
+ assetId: S.Option(S.Hex()),
700
+ metadataHash: S.Option(S.Hex()),
701
+ mode: S.Option(S.u32),
702
+ withSignedTransaction: S.Option(S.bool),
703
+ }));
704
+ export const HostSignPayloadResponse = S.lazy(() => S.Struct({
705
+ signature: S.Hex(),
706
+ signedTransaction: S.Option(S.Hex()),
707
+ }));
708
+ export const HostSignPayloadWithLegacyAccountRequest = S.lazy(() => S.Struct({
709
+ signer: S.str,
710
+ payload: HostSignPayloadRequest,
711
+ }));
712
+ export const HostSignRawRequest = S.lazy(() => S.Struct({
713
+ account: ProductAccountId,
714
+ payload: RawPayload,
715
+ }));
716
+ export const HostSignRawWithLegacyAccountRequest = S.lazy(() => S.Struct({
717
+ signer: S.str,
718
+ payload: RawPayload,
719
+ }));
720
+ export const HostThemeSubscribeItem = S.lazy(() => S.Struct({ theme: Theme }));
721
+ export const ProductChatCustomMessageRenderSubscribeRequest = S.lazy(() => S.Struct({
722
+ messageId: S.str,
723
+ messageType: S.str,
724
+ payload: S.Hex(),
725
+ }));
726
+ export const RemoteChainHeadBodyRequest = S.lazy(() => S.Struct({
727
+ genesisHash: S.Hex(),
728
+ followSubscriptionId: S.str,
729
+ hash: S.Hex(),
730
+ }));
731
+ export const RemoteChainHeadBodyResponse = S.lazy(() => S.Struct({
732
+ operation: OperationStartedResult,
733
+ }));
734
+ export const RemoteChainHeadCallRequest = S.lazy(() => S.Struct({
735
+ genesisHash: S.Hex(),
736
+ followSubscriptionId: S.str,
737
+ hash: S.Hex(),
738
+ function: S.str,
739
+ callParameters: S.Hex(),
740
+ }));
741
+ export const RemoteChainHeadCallResponse = S.lazy(() => S.Struct({
742
+ operation: OperationStartedResult,
743
+ }));
744
+ export const RemoteChainHeadContinueRequest = S.lazy(() => S.Struct({
745
+ genesisHash: S.Hex(),
746
+ followSubscriptionId: S.str,
747
+ operationId: S.str,
748
+ }));
749
+ export const RemoteChainHeadFollowItem = S.lazy(() => S.TaggedUnion({
750
+ Initialized: S.Struct({
751
+ finalizedBlockHashes: S.Vector(S.Hex()),
752
+ finalizedBlockRuntime: S.Option(RuntimeType),
753
+ }),
754
+ NewBlock: S.Struct({
755
+ blockHash: S.Hex(),
756
+ parentBlockHash: S.Hex(),
757
+ newRuntime: S.Option(RuntimeType),
758
+ }),
759
+ BestBlockChanged: S.Struct({ bestBlockHash: S.Hex() }),
760
+ Finalized: S.Struct({
761
+ finalizedBlockHashes: S.Vector(S.Hex()),
762
+ prunedBlockHashes: S.Vector(S.Hex()),
763
+ }),
764
+ OperationBodyDone: S.Struct({
765
+ operationId: S.str,
766
+ value: S.Vector(S.Hex()),
767
+ }),
768
+ OperationCallDone: S.Struct({
769
+ operationId: S.str,
770
+ output: S.Hex(),
771
+ }),
772
+ OperationStorageItems: S.Struct({
773
+ operationId: S.str,
774
+ items: S.Vector(StorageResultItem),
775
+ }),
776
+ OperationStorageDone: S.Struct({ operationId: S.str }),
777
+ OperationWaitingForContinue: S.Struct({
778
+ operationId: S.str,
779
+ }),
780
+ OperationInaccessible: S.Struct({ operationId: S.str }),
781
+ OperationError: S.Struct({
782
+ operationId: S.str,
783
+ error: S.str,
784
+ }),
785
+ Stop: S._void,
786
+ }));
787
+ export const RemoteChainHeadFollowRequest = S.lazy(() => S.Struct({
788
+ genesisHash: S.Hex(),
789
+ withRuntime: S.bool,
790
+ }));
791
+ export const RemoteChainHeadHeaderRequest = S.lazy(() => S.Struct({
792
+ genesisHash: S.Hex(),
793
+ followSubscriptionId: S.str,
794
+ hash: S.Hex(),
795
+ }));
796
+ export const RemoteChainHeadHeaderResponse = S.lazy(() => S.Struct({
797
+ header: S.Option(S.Hex()),
798
+ }));
799
+ export const RemoteChainHeadStopOperationRequest = S.lazy(() => S.Struct({
800
+ genesisHash: S.Hex(),
801
+ followSubscriptionId: S.str,
802
+ operationId: S.str,
803
+ }));
804
+ export const RemoteChainHeadStorageRequest = S.lazy(() => S.Struct({
805
+ genesisHash: S.Hex(),
806
+ followSubscriptionId: S.str,
807
+ hash: S.Hex(),
808
+ items: S.Vector(StorageQueryItem),
809
+ childTrie: S.Option(S.Hex()),
810
+ }));
811
+ export const RemoteChainHeadStorageResponse = S.lazy(() => S.Struct({
812
+ operation: OperationStartedResult,
813
+ }));
814
+ export const RemoteChainHeadUnpinRequest = S.lazy(() => S.Struct({
815
+ genesisHash: S.Hex(),
816
+ followSubscriptionId: S.str,
817
+ hashes: S.Vector(S.Hex()),
818
+ }));
819
+ export const RemoteChainSpecChainNameRequest = S.lazy(() => S.Struct({
820
+ genesisHash: S.Hex(),
821
+ }));
822
+ export const RemoteChainSpecChainNameResponse = S.lazy(() => S.Struct({
823
+ chainName: S.str,
824
+ }));
825
+ export const RemoteChainSpecGenesisHashRequest = S.lazy(() => S.Struct({
826
+ genesisHash: S.Hex(),
827
+ }));
828
+ export const RemoteChainSpecGenesisHashResponse = S.lazy(() => S.Struct({
829
+ genesisHash: S.Hex(),
830
+ }));
831
+ export const RemoteChainSpecPropertiesRequest = S.lazy(() => S.Struct({
832
+ genesisHash: S.Hex(),
833
+ }));
834
+ export const RemoteChainSpecPropertiesResponse = S.lazy(() => S.Struct({
835
+ properties: S.str,
836
+ }));
837
+ export const RemoteChainTransactionBroadcastRequest = S.lazy(() => S.Struct({
838
+ genesisHash: S.Hex(),
839
+ transaction: S.Hex(),
840
+ }));
841
+ export const RemoteChainTransactionBroadcastResponse = S.lazy(() => S.Struct({
842
+ operationId: S.Option(S.str),
843
+ }));
844
+ export const RemoteChainTransactionStopRequest = S.lazy(() => S.Struct({
845
+ genesisHash: S.Hex(),
846
+ operationId: S.str,
847
+ }));
848
+ export const RemotePermissionRequest = S.lazy(() => S.Struct({
849
+ permissions: S.Vector(RemotePermission),
850
+ }));
851
+ export const RemotePermissionResponse = S.lazy(() => S.Struct({ granted: S.bool }));
852
+ export const RemotePreimageLookupSubscribeItem = S.lazy(() => S.Struct({
853
+ value: S.Option(S.Hex()),
854
+ }));
855
+ export const RemotePreimageLookupSubscribeRequest = S.lazy(() => S.Struct({
856
+ key: S.Hex(),
857
+ }));
858
+ export const RemoteStatementStoreCreateProofError = S.lazy(() => S.TaggedUnion({
859
+ UnableToSign: S._void,
860
+ UnknownAccount: S._void,
861
+ Unknown: S.Struct({ reason: S.str }),
862
+ }));
863
+ export const RemoteStatementStoreCreateProofRequest = S.lazy(() => S.Struct({
864
+ productAccountId: ProductAccountId,
865
+ statement: Statement,
866
+ }));
867
+ export const RemoteStatementStoreCreateProofResponse = S.lazy(() => S.Struct({
868
+ proof: StatementProof,
869
+ }));
870
+ export const RemoteStatementStoreSubscribeItem = S.lazy(() => S.Struct({
871
+ statements: S.Vector(SignedStatement),
872
+ isComplete: S.bool,
873
+ }));
874
+ export const RemoteStatementStoreSubscribeRequest = S.lazy(() => S.TaggedUnion({ MatchAll: S.Vector(Topic), MatchAny: S.Vector(Topic) }));
875
+ export const Version = S.lazy(() => S.indexedTaggedUnion({ V1: [0, S._void] }));
876
+ export const VersionedTxPayload = S.lazy(() => S.indexedTaggedUnion({ V1: [0, TxPayloadV1] }));
877
+ export const VerticalAlignment = S.lazy(() => S.Status("Top", "Center", "Bottom"));