@snaha/swarm-id 0.0.1

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.
Files changed (223) hide show
  1. package/README.md +431 -0
  2. package/dist/chunk/bmt.d.ts +17 -0
  3. package/dist/chunk/bmt.d.ts.map +1 -0
  4. package/dist/chunk/cac.d.ts +18 -0
  5. package/dist/chunk/cac.d.ts.map +1 -0
  6. package/dist/chunk/constants.d.ts +10 -0
  7. package/dist/chunk/constants.d.ts.map +1 -0
  8. package/dist/chunk/encrypted-cac.d.ts +48 -0
  9. package/dist/chunk/encrypted-cac.d.ts.map +1 -0
  10. package/dist/chunk/encryption.d.ts +86 -0
  11. package/dist/chunk/encryption.d.ts.map +1 -0
  12. package/dist/chunk/index.d.ts +6 -0
  13. package/dist/chunk/index.d.ts.map +1 -0
  14. package/dist/index.d.ts +46 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/proxy/act/act.d.ts +78 -0
  17. package/dist/proxy/act/act.d.ts.map +1 -0
  18. package/dist/proxy/act/crypto.d.ts +44 -0
  19. package/dist/proxy/act/crypto.d.ts.map +1 -0
  20. package/dist/proxy/act/grantee-list.d.ts +82 -0
  21. package/dist/proxy/act/grantee-list.d.ts.map +1 -0
  22. package/dist/proxy/act/history.d.ts +183 -0
  23. package/dist/proxy/act/history.d.ts.map +1 -0
  24. package/dist/proxy/act/index.d.ts +104 -0
  25. package/dist/proxy/act/index.d.ts.map +1 -0
  26. package/dist/proxy/chunking-encrypted.d.ts +14 -0
  27. package/dist/proxy/chunking-encrypted.d.ts.map +1 -0
  28. package/dist/proxy/chunking.d.ts +15 -0
  29. package/dist/proxy/chunking.d.ts.map +1 -0
  30. package/dist/proxy/download-data.d.ts +16 -0
  31. package/dist/proxy/download-data.d.ts.map +1 -0
  32. package/dist/proxy/feed-manifest.d.ts +62 -0
  33. package/dist/proxy/feed-manifest.d.ts.map +1 -0
  34. package/dist/proxy/feeds/epochs/async-finder.d.ts +77 -0
  35. package/dist/proxy/feeds/epochs/async-finder.d.ts.map +1 -0
  36. package/dist/proxy/feeds/epochs/epoch.d.ts +88 -0
  37. package/dist/proxy/feeds/epochs/epoch.d.ts.map +1 -0
  38. package/dist/proxy/feeds/epochs/finder.d.ts +67 -0
  39. package/dist/proxy/feeds/epochs/finder.d.ts.map +1 -0
  40. package/dist/proxy/feeds/epochs/index.d.ts +35 -0
  41. package/dist/proxy/feeds/epochs/index.d.ts.map +1 -0
  42. package/dist/proxy/feeds/epochs/test-utils.d.ts +93 -0
  43. package/dist/proxy/feeds/epochs/test-utils.d.ts.map +1 -0
  44. package/dist/proxy/feeds/epochs/types.d.ts +109 -0
  45. package/dist/proxy/feeds/epochs/types.d.ts.map +1 -0
  46. package/dist/proxy/feeds/epochs/updater.d.ts +68 -0
  47. package/dist/proxy/feeds/epochs/updater.d.ts.map +1 -0
  48. package/dist/proxy/feeds/epochs/utils.d.ts +22 -0
  49. package/dist/proxy/feeds/epochs/utils.d.ts.map +1 -0
  50. package/dist/proxy/feeds/index.d.ts +5 -0
  51. package/dist/proxy/feeds/index.d.ts.map +1 -0
  52. package/dist/proxy/feeds/sequence/async-finder.d.ts +14 -0
  53. package/dist/proxy/feeds/sequence/async-finder.d.ts.map +1 -0
  54. package/dist/proxy/feeds/sequence/finder.d.ts +17 -0
  55. package/dist/proxy/feeds/sequence/finder.d.ts.map +1 -0
  56. package/dist/proxy/feeds/sequence/index.d.ts +23 -0
  57. package/dist/proxy/feeds/sequence/index.d.ts.map +1 -0
  58. package/dist/proxy/feeds/sequence/types.d.ts +80 -0
  59. package/dist/proxy/feeds/sequence/types.d.ts.map +1 -0
  60. package/dist/proxy/feeds/sequence/updater.d.ts +26 -0
  61. package/dist/proxy/feeds/sequence/updater.d.ts.map +1 -0
  62. package/dist/proxy/index.d.ts +6 -0
  63. package/dist/proxy/index.d.ts.map +1 -0
  64. package/dist/proxy/manifest-builder.d.ts +183 -0
  65. package/dist/proxy/manifest-builder.d.ts.map +1 -0
  66. package/dist/proxy/mantaray-encrypted.d.ts +27 -0
  67. package/dist/proxy/mantaray-encrypted.d.ts.map +1 -0
  68. package/dist/proxy/mantaray.d.ts +26 -0
  69. package/dist/proxy/mantaray.d.ts.map +1 -0
  70. package/dist/proxy/types.d.ts +29 -0
  71. package/dist/proxy/types.d.ts.map +1 -0
  72. package/dist/proxy/upload-data.d.ts +17 -0
  73. package/dist/proxy/upload-data.d.ts.map +1 -0
  74. package/dist/proxy/upload-encrypted-data.d.ts +103 -0
  75. package/dist/proxy/upload-encrypted-data.d.ts.map +1 -0
  76. package/dist/schemas.d.ts +240 -0
  77. package/dist/schemas.d.ts.map +1 -0
  78. package/dist/storage/debounced-uploader.d.ts +62 -0
  79. package/dist/storage/debounced-uploader.d.ts.map +1 -0
  80. package/dist/storage/utilization-store.d.ts +108 -0
  81. package/dist/storage/utilization-store.d.ts.map +1 -0
  82. package/dist/swarm-id-auth.d.ts +74 -0
  83. package/dist/swarm-id-auth.d.ts.map +1 -0
  84. package/dist/swarm-id-auth.js +2 -0
  85. package/dist/swarm-id-auth.js.map +1 -0
  86. package/dist/swarm-id-client.d.ts +878 -0
  87. package/dist/swarm-id-client.d.ts.map +1 -0
  88. package/dist/swarm-id-client.js +2 -0
  89. package/dist/swarm-id-client.js.map +1 -0
  90. package/dist/swarm-id-proxy.d.ts +236 -0
  91. package/dist/swarm-id-proxy.d.ts.map +1 -0
  92. package/dist/swarm-id-proxy.js +2 -0
  93. package/dist/swarm-id-proxy.js.map +1 -0
  94. package/dist/swarm-id.esm.js +2 -0
  95. package/dist/swarm-id.esm.js.map +1 -0
  96. package/dist/swarm-id.umd.js +2 -0
  97. package/dist/swarm-id.umd.js.map +1 -0
  98. package/dist/sync/index.d.ts +9 -0
  99. package/dist/sync/index.d.ts.map +1 -0
  100. package/dist/sync/key-derivation.d.ts +25 -0
  101. package/dist/sync/key-derivation.d.ts.map +1 -0
  102. package/dist/sync/restore-account.d.ts +28 -0
  103. package/dist/sync/restore-account.d.ts.map +1 -0
  104. package/dist/sync/serialization.d.ts +16 -0
  105. package/dist/sync/serialization.d.ts.map +1 -0
  106. package/dist/sync/store-interfaces.d.ts +53 -0
  107. package/dist/sync/store-interfaces.d.ts.map +1 -0
  108. package/dist/sync/sync-account.d.ts +44 -0
  109. package/dist/sync/sync-account.d.ts.map +1 -0
  110. package/dist/sync/types.d.ts +13 -0
  111. package/dist/sync/types.d.ts.map +1 -0
  112. package/dist/test-fixtures.d.ts +17 -0
  113. package/dist/test-fixtures.d.ts.map +1 -0
  114. package/dist/types-BD_VkNn0.js +2 -0
  115. package/dist/types-BD_VkNn0.js.map +1 -0
  116. package/dist/types-lJCaT-50.js +2 -0
  117. package/dist/types-lJCaT-50.js.map +1 -0
  118. package/dist/types.d.ts +2157 -0
  119. package/dist/types.d.ts.map +1 -0
  120. package/dist/utils/account-payload.d.ts +94 -0
  121. package/dist/utils/account-payload.d.ts.map +1 -0
  122. package/dist/utils/account-state-snapshot.d.ts +38 -0
  123. package/dist/utils/account-state-snapshot.d.ts.map +1 -0
  124. package/dist/utils/backup-encryption.d.ts +127 -0
  125. package/dist/utils/backup-encryption.d.ts.map +1 -0
  126. package/dist/utils/batch-utilization.d.ts +432 -0
  127. package/dist/utils/batch-utilization.d.ts.map +1 -0
  128. package/dist/utils/constants.d.ts +11 -0
  129. package/dist/utils/constants.d.ts.map +1 -0
  130. package/dist/utils/hex.d.ts +17 -0
  131. package/dist/utils/hex.d.ts.map +1 -0
  132. package/dist/utils/key-derivation.d.ts +92 -0
  133. package/dist/utils/key-derivation.d.ts.map +1 -0
  134. package/dist/utils/storage-managers.d.ts +65 -0
  135. package/dist/utils/storage-managers.d.ts.map +1 -0
  136. package/dist/utils/swarm-id-export.d.ts +24 -0
  137. package/dist/utils/swarm-id-export.d.ts.map +1 -0
  138. package/dist/utils/ttl.d.ts +49 -0
  139. package/dist/utils/ttl.d.ts.map +1 -0
  140. package/dist/utils/url.d.ts +41 -0
  141. package/dist/utils/url.d.ts.map +1 -0
  142. package/dist/utils/versioned-storage.d.ts +131 -0
  143. package/dist/utils/versioned-storage.d.ts.map +1 -0
  144. package/package.json +78 -0
  145. package/src/chunk/bmt.test.ts +217 -0
  146. package/src/chunk/bmt.ts +57 -0
  147. package/src/chunk/cac.test.ts +214 -0
  148. package/src/chunk/cac.ts +65 -0
  149. package/src/chunk/constants.ts +18 -0
  150. package/src/chunk/encrypted-cac.test.ts +385 -0
  151. package/src/chunk/encrypted-cac.ts +131 -0
  152. package/src/chunk/encryption.test.ts +352 -0
  153. package/src/chunk/encryption.ts +300 -0
  154. package/src/chunk/index.ts +47 -0
  155. package/src/index.ts +430 -0
  156. package/src/proxy/act/act.test.ts +278 -0
  157. package/src/proxy/act/act.ts +158 -0
  158. package/src/proxy/act/bee-compat.test.ts +948 -0
  159. package/src/proxy/act/crypto.test.ts +436 -0
  160. package/src/proxy/act/crypto.ts +376 -0
  161. package/src/proxy/act/grantee-list.test.ts +393 -0
  162. package/src/proxy/act/grantee-list.ts +239 -0
  163. package/src/proxy/act/history.test.ts +360 -0
  164. package/src/proxy/act/history.ts +413 -0
  165. package/src/proxy/act/index.test.ts +748 -0
  166. package/src/proxy/act/index.ts +853 -0
  167. package/src/proxy/chunking-encrypted.ts +95 -0
  168. package/src/proxy/chunking.ts +65 -0
  169. package/src/proxy/download-data.ts +448 -0
  170. package/src/proxy/feed-manifest.ts +174 -0
  171. package/src/proxy/feeds/epochs/async-finder.ts +372 -0
  172. package/src/proxy/feeds/epochs/epoch.test.ts +249 -0
  173. package/src/proxy/feeds/epochs/epoch.ts +181 -0
  174. package/src/proxy/feeds/epochs/finder.ts +282 -0
  175. package/src/proxy/feeds/epochs/index.ts +73 -0
  176. package/src/proxy/feeds/epochs/integration.test.ts +1336 -0
  177. package/src/proxy/feeds/epochs/test-utils.ts +274 -0
  178. package/src/proxy/feeds/epochs/types.ts +128 -0
  179. package/src/proxy/feeds/epochs/updater.ts +192 -0
  180. package/src/proxy/feeds/epochs/utils.ts +62 -0
  181. package/src/proxy/feeds/index.ts +5 -0
  182. package/src/proxy/feeds/sequence/async-finder.ts +31 -0
  183. package/src/proxy/feeds/sequence/finder.ts +73 -0
  184. package/src/proxy/feeds/sequence/index.ts +54 -0
  185. package/src/proxy/feeds/sequence/integration.test.ts +966 -0
  186. package/src/proxy/feeds/sequence/types.ts +103 -0
  187. package/src/proxy/feeds/sequence/updater.ts +71 -0
  188. package/src/proxy/index.ts +5 -0
  189. package/src/proxy/manifest-builder.test.ts +427 -0
  190. package/src/proxy/manifest-builder.ts +679 -0
  191. package/src/proxy/mantaray-encrypted.ts +78 -0
  192. package/src/proxy/mantaray.ts +104 -0
  193. package/src/proxy/types.ts +32 -0
  194. package/src/proxy/upload-data.ts +189 -0
  195. package/src/proxy/upload-encrypted-data.ts +658 -0
  196. package/src/schemas.ts +299 -0
  197. package/src/storage/debounced-uploader.ts +192 -0
  198. package/src/storage/utilization-store.ts +397 -0
  199. package/src/swarm-id-client.test.ts +99 -0
  200. package/src/swarm-id-client.ts +3095 -0
  201. package/src/swarm-id-proxy.ts +3891 -0
  202. package/src/sync/index.ts +28 -0
  203. package/src/sync/restore-account.ts +90 -0
  204. package/src/sync/serialization.ts +39 -0
  205. package/src/sync/store-interfaces.ts +62 -0
  206. package/src/sync/sync-account.test.ts +302 -0
  207. package/src/sync/sync-account.ts +396 -0
  208. package/src/sync/types.ts +11 -0
  209. package/src/test-fixtures.ts +109 -0
  210. package/src/types.ts +1651 -0
  211. package/src/utils/account-state-snapshot.test.ts +595 -0
  212. package/src/utils/account-state-snapshot.ts +94 -0
  213. package/src/utils/backup-encryption.test.ts +442 -0
  214. package/src/utils/backup-encryption.ts +352 -0
  215. package/src/utils/batch-utilization.ts +1309 -0
  216. package/src/utils/constants.ts +20 -0
  217. package/src/utils/hex.ts +27 -0
  218. package/src/utils/key-derivation.ts +197 -0
  219. package/src/utils/storage-managers.ts +365 -0
  220. package/src/utils/ttl.ts +129 -0
  221. package/src/utils/url.test.ts +136 -0
  222. package/src/utils/url.ts +71 -0
  223. package/src/utils/versioned-storage.ts +323 -0
@@ -0,0 +1,2157 @@
1
+ import { z } from "zod";
2
+ import type { PrivateKey as BeePrivateKey, Topic as BeeTopic } from "@ethersphere/bee-js";
3
+ import type { Reference, Address, Identifier, Signature, Timestamp, FeedIndex } from "./schemas";
4
+ export type { Reference, BatchId, Address, PrivateKey, Identifier, Signature, Timestamp, FeedIndex, } from "./schemas";
5
+ export declare const SWARM_SECRET_PREFIX = "swarm-secret-";
6
+ export declare const STORAGE_KEY_ACCOUNTS = "swarm-id-accounts";
7
+ export declare const STORAGE_KEY_IDENTITIES = "swarm-id-identities";
8
+ export declare const STORAGE_KEY_CONNECTED_APPS = "swarm-id-connected-apps";
9
+ export declare const STORAGE_KEY_POSTAGE_STAMPS = "swarm-id-postage-stamps";
10
+ export declare const STORAGE_KEY_NETWORK_SETTINGS = "swarm-id-network-settings";
11
+ export declare const STORAGE_CHALLENGE_KEY = "swarm-storage-challenge";
12
+ export declare const UploadOptionsSchema: z.ZodOptional<z.ZodObject<{
13
+ pin: z.ZodOptional<z.ZodBoolean>;
14
+ encrypt: z.ZodOptional<z.ZodBoolean>;
15
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
16
+ tag: z.ZodOptional<z.ZodNumber>;
17
+ deferred: z.ZodOptional<z.ZodBoolean>;
18
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
19
+ }, z.core.$strip>>;
20
+ export declare const ActUploadOptionsSchema: z.ZodOptional<z.ZodObject<{
21
+ pin: z.ZodOptional<z.ZodBoolean>;
22
+ encrypt: z.ZodOptional<z.ZodBoolean>;
23
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
24
+ tag: z.ZodOptional<z.ZodNumber>;
25
+ deferred: z.ZodOptional<z.ZodBoolean>;
26
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
27
+ beeCompatible: z.ZodOptional<z.ZodBoolean>;
28
+ }, z.core.$strip>>;
29
+ export declare const RequestOptionsSchema: z.ZodOptional<z.ZodObject<{
30
+ timeout: z.ZodOptional<z.ZodNumber>;
31
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
33
+ }, z.core.$strip>>;
34
+ export declare const DownloadOptionsSchema: z.ZodOptional<z.ZodObject<{
35
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
36
+ fallback: z.ZodOptional<z.ZodBoolean>;
37
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
38
+ actPublisher: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
39
+ actHistoryAddress: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
40
+ actTimestamp: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
41
+ }, z.core.$strip>>;
42
+ export interface UploadProgress {
43
+ total: number;
44
+ processed: number;
45
+ }
46
+ export interface UploadOptions {
47
+ pin?: boolean;
48
+ encrypt?: boolean;
49
+ encryptManifest?: boolean;
50
+ tag?: number;
51
+ deferred?: boolean;
52
+ redundancyLevel?: number;
53
+ onProgress?: (progress: UploadProgress) => void;
54
+ }
55
+ export type RequestOptions = z.infer<typeof RequestOptionsSchema>;
56
+ export type DownloadOptions = z.infer<typeof DownloadOptionsSchema>;
57
+ export interface ActUploadOptions extends UploadOptions {
58
+ beeCompatible?: boolean;
59
+ }
60
+ export declare const UploadResultSchema: z.ZodObject<{
61
+ reference: z.ZodString;
62
+ tagUid: z.ZodOptional<z.ZodNumber>;
63
+ }, z.core.$strip>;
64
+ export declare const SocUploadResultSchema: z.ZodObject<{
65
+ reference: z.ZodString;
66
+ tagUid: z.ZodOptional<z.ZodNumber>;
67
+ encryptionKey: z.ZodString;
68
+ owner: z.ZodString;
69
+ }, z.core.$strip>;
70
+ export declare const SocRawUploadResultSchema: z.ZodObject<{
71
+ reference: z.ZodString;
72
+ tagUid: z.ZodOptional<z.ZodNumber>;
73
+ encryptionKey: z.ZodOptional<z.ZodString>;
74
+ owner: z.ZodString;
75
+ }, z.core.$strip>;
76
+ export declare const FileDataSchema: z.ZodObject<{
77
+ name: z.ZodString;
78
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
79
+ }, z.core.$strip>;
80
+ export declare const PostageBatchSchema: z.ZodObject<{
81
+ batchID: z.ZodString;
82
+ utilization: z.ZodNumber;
83
+ usable: z.ZodBoolean;
84
+ label: z.ZodString;
85
+ depth: z.ZodNumber;
86
+ amount: z.ZodString;
87
+ bucketDepth: z.ZodNumber;
88
+ blockNumber: z.ZodNumber;
89
+ immutableFlag: z.ZodBoolean;
90
+ exists: z.ZodBoolean;
91
+ batchTTL: z.ZodOptional<z.ZodNumber>;
92
+ }, z.core.$strip>;
93
+ export type UploadResult = z.infer<typeof UploadResultSchema>;
94
+ export type SocUploadResult = z.infer<typeof SocUploadResultSchema>;
95
+ export type SocRawUploadResult = z.infer<typeof SocRawUploadResultSchema>;
96
+ export type FileData = z.infer<typeof FileDataSchema>;
97
+ export type PostageBatch = z.infer<typeof PostageBatchSchema>;
98
+ export interface SingleOwnerChunk {
99
+ data: Uint8Array;
100
+ identifier: Identifier;
101
+ signature: Signature;
102
+ span: number;
103
+ payload: Uint8Array;
104
+ address: Reference;
105
+ owner: Address;
106
+ }
107
+ /**
108
+ * Interface for downloading single owner chunks (SOC).
109
+ *
110
+ * `download` expects an encryption key and returns decrypted content.
111
+ * `rawDownload` returns unencrypted SOC data.
112
+ */
113
+ export interface SOCReader {
114
+ /**
115
+ * Resolve SOC owner address. For SOCWriter without signer, this may be
116
+ * resolved via the proxy.
117
+ */
118
+ getOwner: () => Promise<Address>;
119
+ /**
120
+ * Download an unencrypted SOC by identifier.
121
+ *
122
+ * @param identifier - SOC identifier (32-byte value)
123
+ */
124
+ rawDownload: (identifier: Identifier | Uint8Array | string, encryptionKey?: Uint8Array | string) => Promise<SingleOwnerChunk>;
125
+ /**
126
+ * Download and decrypt an encrypted SOC by identifier.
127
+ *
128
+ * @param identifier - SOC identifier (32-byte value)
129
+ * @param encryptionKey - 32-byte encryption key returned by upload
130
+ */
131
+ download: (identifier: Identifier | Uint8Array | string, encryptionKey: Uint8Array | string) => Promise<SingleOwnerChunk>;
132
+ }
133
+ /**
134
+ * Interface for downloading and uploading single owner chunks (SOC).
135
+ *
136
+ * `upload` creates an encrypted SOC by default.
137
+ * `rawUpload` creates an unencrypted SOC.
138
+ */
139
+ export interface SOCWriter extends SOCReader {
140
+ /**
141
+ * Upload an encrypted SOC.
142
+ *
143
+ * @param identifier - SOC identifier (32-byte value)
144
+ * @param data - SOC payload data (1-4096 bytes)
145
+ * @param options - Optional upload configuration
146
+ */
147
+ upload: (identifier: Identifier | Uint8Array | string, data: Uint8Array, options?: UploadOptions) => Promise<SocUploadResult>;
148
+ /**
149
+ * Upload an unencrypted SOC.
150
+ *
151
+ * @param identifier - SOC identifier (32-byte value)
152
+ * @param data - SOC payload data (1-4096 bytes)
153
+ * @param options - Optional upload configuration
154
+ */
155
+ rawUpload: (identifier: Identifier | Uint8Array | string, data: Uint8Array, options?: UploadOptions) => Promise<SocRawUploadResult>;
156
+ }
157
+ /**
158
+ * Options for epoch feed reader creation.
159
+ */
160
+ export interface FeedReaderOptions {
161
+ /** Feed topic (32 bytes). */
162
+ topic: Identifier | Uint8Array | string | BeeTopic;
163
+ /** Optional feed owner address (20 bytes). */
164
+ owner?: Address | Uint8Array | string;
165
+ }
166
+ /**
167
+ * Options for epoch feed writer creation.
168
+ */
169
+ export interface FeedWriterOptions {
170
+ /** Feed topic (32 bytes). */
171
+ topic: Identifier | Uint8Array | string | BeeTopic;
172
+ /** Optional signer private key (32 bytes). */
173
+ signer?: BeePrivateKey | Uint8Array | string;
174
+ }
175
+ /**
176
+ * Epoch feed reader interface.
177
+ */
178
+ export interface EpochFeedDownloadOptions {
179
+ /** Unix timestamp (seconds). */
180
+ at?: bigint | number | string;
181
+ /** Hint of latest known update timestamp. */
182
+ after?: bigint | number | string;
183
+ /** Optional encryption key for encrypted feed updates. */
184
+ encryptionKey?: Uint8Array | string;
185
+ }
186
+ export interface EpochFeedUploadOptions {
187
+ /** Unix timestamp (seconds). */
188
+ at?: bigint | number | string;
189
+ /** Optional upload options for the payload upload. */
190
+ uploadOptions?: UploadOptions;
191
+ /** Whether to encrypt payload uploads (defaults to true). */
192
+ encrypt?: boolean;
193
+ /** Optional encryption key for encrypted feed updates. */
194
+ encryptionKey?: Uint8Array | string;
195
+ /** Optional hints from previous update for stateless epoch calculation. */
196
+ hints?: {
197
+ lastEpoch?: {
198
+ start: string;
199
+ level: number;
200
+ };
201
+ lastTimestamp?: string;
202
+ };
203
+ }
204
+ export interface EpochFeedDownloadPayloadResult {
205
+ /** Downloaded payload, if available. */
206
+ payload?: Uint8Array;
207
+ /** Reference used to download the payload, if available. */
208
+ reference?: Reference;
209
+ /** Encryption key (hex) if the reference is encrypted. */
210
+ encryptionKey?: string;
211
+ }
212
+ export interface EpochFeedDownloadReferenceResult {
213
+ /** Swarm reference (hex), if found. */
214
+ reference?: Reference;
215
+ /** Encryption key (hex) if the reference is encrypted. */
216
+ encryptionKey?: string;
217
+ }
218
+ export interface EpochFeedUploadResult {
219
+ /** SOC address for the feed update. */
220
+ socAddress: Reference;
221
+ /** Reference stored in the feed update. */
222
+ reference: Reference;
223
+ /** Encryption key (hex) if the reference is encrypted. */
224
+ encryptionKey?: string;
225
+ /** Epoch used for this update (for caller to store as hint) */
226
+ epoch: {
227
+ start: string;
228
+ level: number;
229
+ };
230
+ /** Timestamp used (stringified bigint) */
231
+ timestamp: string;
232
+ }
233
+ /**
234
+ * Epoch feed reader interface.
235
+ */
236
+ export interface FeedReader {
237
+ /** Resolve feed owner address (20 bytes). */
238
+ getOwner: () => Promise<Address>;
239
+ /** Download the reference for the given timestamp. */
240
+ downloadReference: (options?: EpochFeedDownloadOptions) => Promise<EpochFeedDownloadReferenceResult>;
241
+ /** Download the payload for the given timestamp. */
242
+ downloadPayload: (options?: EpochFeedDownloadOptions) => Promise<EpochFeedDownloadPayloadResult>;
243
+ /** Download unencrypted reference (for /bzz access). */
244
+ downloadRawReference: (options?: Omit<EpochFeedDownloadOptions, "encryptionKey">) => Promise<EpochFeedDownloadReferenceResult>;
245
+ /** Download unencrypted payload (for /bzz access). */
246
+ downloadRawPayload: (options?: Omit<EpochFeedDownloadOptions, "encryptionKey">) => Promise<EpochFeedDownloadPayloadResult>;
247
+ }
248
+ /**
249
+ * Epoch feed writer interface.
250
+ */
251
+ export interface FeedWriter extends FeedReader {
252
+ /** Upload payload data and update the feed. */
253
+ uploadPayload: (data: Uint8Array | string, options?: EpochFeedUploadOptions) => Promise<EpochFeedUploadResult>;
254
+ /** Update the feed with a reference. */
255
+ uploadReference: (reference: Uint8Array | string, options?: EpochFeedUploadOptions) => Promise<EpochFeedUploadResult>;
256
+ /** Upload unencrypted payload (for /bzz access). */
257
+ uploadRawPayload: (data: Uint8Array | string, options?: Omit<EpochFeedUploadOptions, "encryptionKey" | "encrypt">) => Promise<EpochFeedUploadResult>;
258
+ /** Upload unencrypted reference (for /bzz access). */
259
+ uploadRawReference: (reference: Uint8Array | string, options?: Omit<EpochFeedUploadOptions, "encryptionKey">) => Promise<EpochFeedUploadResult>;
260
+ }
261
+ /**
262
+ * Options for sequential feed reader creation.
263
+ */
264
+ export interface SequentialFeedReaderOptions {
265
+ /** Feed topic (32 bytes). */
266
+ topic: Identifier | Uint8Array | string | BeeTopic;
267
+ /** Optional feed owner address (20 bytes). */
268
+ owner?: Address | Uint8Array | string;
269
+ }
270
+ /**
271
+ * Options for sequential feed writer creation.
272
+ */
273
+ export interface SequentialFeedWriterOptions {
274
+ /** Feed topic (32 bytes). */
275
+ topic: Identifier | Uint8Array | string | BeeTopic;
276
+ /** Optional signer private key (32 bytes). */
277
+ signer?: BeePrivateKey | Uint8Array | string;
278
+ }
279
+ /**
280
+ * Options for sequential feed lookups/updates.
281
+ */
282
+ export interface SequentialFeedUpdateOptions {
283
+ /** Specific feed index to read/write. */
284
+ index?: FeedIndex | bigint;
285
+ /** Timestamp (seconds) used for lookup or payload timestamp. */
286
+ at?: Timestamp | bigint;
287
+ /** Whether payload is prefixed with timestamp (default true). */
288
+ hasTimestamp?: boolean;
289
+ /** Timeout (ms) for sequential index lookups (default 2000). */
290
+ lookupTimeoutMs?: number;
291
+ }
292
+ /**
293
+ * Options for sequential feed uploads.
294
+ */
295
+ export interface SequentialFeedUploadOptions extends UploadOptions, SequentialFeedUpdateOptions {
296
+ }
297
+ /**
298
+ * Options for sequential feed raw download (encryptionKey in options).
299
+ */
300
+ export interface SequentialFeedDownloadRawOptions extends SequentialFeedUpdateOptions {
301
+ /** Optional encryption key for decrypting encrypted feed updates. */
302
+ encryptionKey?: Uint8Array | string;
303
+ }
304
+ /**
305
+ * Options for sequential feed raw upload (encryptionKey in options).
306
+ */
307
+ export interface SequentialFeedUploadRawOptions extends SequentialFeedUploadOptions {
308
+ /** Optional encryption key for encrypting the payload. */
309
+ encryptionKey?: Uint8Array | string;
310
+ }
311
+ /**
312
+ * Result from sequential payload download.
313
+ */
314
+ export interface SequentialFeedPayloadResult {
315
+ /** Payload bytes (timestamp removed if present). */
316
+ payload: Uint8Array;
317
+ /** Timestamp extracted from payload, if present. */
318
+ timestamp?: number;
319
+ /** Current feed index as a stringified uint64. */
320
+ feedIndex: string;
321
+ /** Next feed index as a stringified uint64. */
322
+ feedIndexNext: string;
323
+ }
324
+ /**
325
+ * Result from sequential reference download.
326
+ */
327
+ export interface SequentialFeedReferenceResult {
328
+ /** Swarm reference stored in the feed update. */
329
+ reference: string;
330
+ /** Current feed index as a stringified uint64. */
331
+ feedIndex: string;
332
+ /** Next feed index as a stringified uint64. */
333
+ feedIndexNext: string;
334
+ }
335
+ /**
336
+ * Result from sequential feed upload.
337
+ */
338
+ export interface SequentialFeedUploadResult {
339
+ /** SOC address of the feed update. */
340
+ reference: string;
341
+ /** Feed index used for the update (stringified uint64). */
342
+ feedIndex: string;
343
+ /** Owner address for the feed update. */
344
+ owner: string;
345
+ /** Encryption key for decrypting payload (if encrypted). */
346
+ encryptionKey?: string;
347
+ /** Upload tag UID, if provided. */
348
+ tagUid?: number;
349
+ }
350
+ /**
351
+ * Sequential feed reader interface.
352
+ */
353
+ export interface SequentialFeedReader {
354
+ /** Resolve feed owner address (20 bytes). */
355
+ getOwner: () => Promise<Address>;
356
+ /**
357
+ * Download and decrypt payload (requires encryption key).
358
+ * @param encryptionKey - 32-byte encryption key.
359
+ */
360
+ downloadPayload: (encryptionKey: Uint8Array | string, options?: SequentialFeedUpdateOptions) => Promise<SequentialFeedPayloadResult>;
361
+ /**
362
+ * Download raw payload or decrypt if encryptionKey is provided in options.
363
+ */
364
+ downloadRawPayload: (options?: SequentialFeedDownloadRawOptions) => Promise<SequentialFeedPayloadResult>;
365
+ /**
366
+ * Download and decrypt reference (requires encryption key).
367
+ * @param encryptionKey - 32-byte encryption key.
368
+ */
369
+ downloadReference: (encryptionKey: Uint8Array | string, options?: SequentialFeedUpdateOptions) => Promise<SequentialFeedReferenceResult>;
370
+ }
371
+ /**
372
+ * Sequential feed writer interface.
373
+ */
374
+ export interface SequentialFeedWriter extends SequentialFeedReader {
375
+ /**
376
+ * Upload encrypted payload.
377
+ */
378
+ uploadPayload: (data: Uint8Array | string, options?: SequentialFeedUploadOptions) => Promise<SequentialFeedUploadResult>;
379
+ /**
380
+ * Upload raw payload (or encrypted if encryptionKey provided in options).
381
+ */
382
+ uploadRawPayload: (data: Uint8Array | string, options?: SequentialFeedUploadRawOptions) => Promise<SequentialFeedUploadResult>;
383
+ /**
384
+ * Upload a reference payload (encrypted by default).
385
+ */
386
+ uploadReference: (reference: Uint8Array | string, options?: SequentialFeedUploadOptions) => Promise<SequentialFeedUploadResult>;
387
+ }
388
+ export declare const AuthStatusSchema: z.ZodObject<{
389
+ authenticated: z.ZodBoolean;
390
+ origin: z.ZodOptional<z.ZodString>;
391
+ }, z.core.$strip>;
392
+ export type AuthStatus = z.infer<typeof AuthStatusSchema>;
393
+ export declare const ConnectionInfoSchema: z.ZodObject<{
394
+ canUpload: z.ZodBoolean;
395
+ storagePartitioned: z.ZodOptional<z.ZodBoolean>;
396
+ identity: z.ZodOptional<z.ZodObject<{
397
+ id: z.ZodString;
398
+ name: z.ZodString;
399
+ address: z.ZodString;
400
+ }, z.core.$strip>>;
401
+ }, z.core.$strip>;
402
+ export type ConnectionInfo = z.infer<typeof ConnectionInfoSchema>;
403
+ export declare const ButtonStylesSchema: z.ZodOptional<z.ZodObject<{
404
+ backgroundColor: z.ZodOptional<z.ZodString>;
405
+ color: z.ZodOptional<z.ZodString>;
406
+ border: z.ZodOptional<z.ZodString>;
407
+ borderRadius: z.ZodOptional<z.ZodString>;
408
+ padding: z.ZodOptional<z.ZodString>;
409
+ fontSize: z.ZodOptional<z.ZodString>;
410
+ fontFamily: z.ZodOptional<z.ZodString>;
411
+ fontWeight: z.ZodOptional<z.ZodString>;
412
+ cursor: z.ZodOptional<z.ZodString>;
413
+ width: z.ZodOptional<z.ZodString>;
414
+ height: z.ZodOptional<z.ZodString>;
415
+ }, z.core.$strip>>;
416
+ export type ButtonStyles = z.infer<typeof ButtonStylesSchema>;
417
+ export declare const AppMetadataSchema: z.ZodObject<{
418
+ name: z.ZodString;
419
+ description: z.ZodOptional<z.ZodString>;
420
+ icon: z.ZodOptional<z.ZodString>;
421
+ }, z.core.$strip>;
422
+ export type AppMetadata = z.infer<typeof AppMetadataSchema>;
423
+ export declare const ButtonConfigSchema: z.ZodOptional<z.ZodObject<{
424
+ connectText: z.ZodOptional<z.ZodString>;
425
+ disconnectText: z.ZodOptional<z.ZodString>;
426
+ loadingText: z.ZodOptional<z.ZodString>;
427
+ backgroundColor: z.ZodOptional<z.ZodString>;
428
+ color: z.ZodOptional<z.ZodString>;
429
+ borderRadius: z.ZodOptional<z.ZodString>;
430
+ }, z.core.$strip>>;
431
+ export interface ButtonConfig {
432
+ connectText?: string;
433
+ disconnectText?: string;
434
+ loadingText?: string;
435
+ backgroundColor?: string;
436
+ color?: string;
437
+ borderRadius?: string;
438
+ }
439
+ export declare const ParentIdentifyMessageSchema: z.ZodObject<{
440
+ type: z.ZodLiteral<"parentIdentify">;
441
+ beeApiUrl: z.ZodOptional<z.ZodString>;
442
+ popupMode: z.ZodOptional<z.ZodEnum<{
443
+ popup: "popup";
444
+ window: "window";
445
+ }>>;
446
+ metadata: z.ZodObject<{
447
+ name: z.ZodString;
448
+ description: z.ZodOptional<z.ZodString>;
449
+ icon: z.ZodOptional<z.ZodString>;
450
+ }, z.core.$strip>;
451
+ buttonConfig: z.ZodOptional<z.ZodObject<{
452
+ connectText: z.ZodOptional<z.ZodString>;
453
+ disconnectText: z.ZodOptional<z.ZodString>;
454
+ loadingText: z.ZodOptional<z.ZodString>;
455
+ backgroundColor: z.ZodOptional<z.ZodString>;
456
+ color: z.ZodOptional<z.ZodString>;
457
+ borderRadius: z.ZodOptional<z.ZodString>;
458
+ }, z.core.$strip>>;
459
+ }, z.core.$strip>;
460
+ export declare const CheckAuthMessageSchema: z.ZodObject<{
461
+ type: z.ZodLiteral<"checkAuth">;
462
+ requestId: z.ZodString;
463
+ }, z.core.$strip>;
464
+ export declare const DisconnectMessageSchema: z.ZodObject<{
465
+ type: z.ZodLiteral<"disconnect">;
466
+ requestId: z.ZodString;
467
+ }, z.core.$strip>;
468
+ export declare const RequestAuthMessageSchema: z.ZodObject<{
469
+ type: z.ZodLiteral<"requestAuth">;
470
+ styles: z.ZodOptional<z.ZodObject<{
471
+ backgroundColor: z.ZodOptional<z.ZodString>;
472
+ color: z.ZodOptional<z.ZodString>;
473
+ border: z.ZodOptional<z.ZodString>;
474
+ borderRadius: z.ZodOptional<z.ZodString>;
475
+ padding: z.ZodOptional<z.ZodString>;
476
+ fontSize: z.ZodOptional<z.ZodString>;
477
+ fontFamily: z.ZodOptional<z.ZodString>;
478
+ fontWeight: z.ZodOptional<z.ZodString>;
479
+ cursor: z.ZodOptional<z.ZodString>;
480
+ width: z.ZodOptional<z.ZodString>;
481
+ height: z.ZodOptional<z.ZodString>;
482
+ }, z.core.$strip>>;
483
+ }, z.core.$strip>;
484
+ export declare const UploadDataMessageSchema: z.ZodObject<{
485
+ type: z.ZodLiteral<"uploadData">;
486
+ requestId: z.ZodString;
487
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
488
+ options: z.ZodOptional<z.ZodObject<{
489
+ pin: z.ZodOptional<z.ZodBoolean>;
490
+ encrypt: z.ZodOptional<z.ZodBoolean>;
491
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
492
+ tag: z.ZodOptional<z.ZodNumber>;
493
+ deferred: z.ZodOptional<z.ZodBoolean>;
494
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
495
+ }, z.core.$strip>>;
496
+ requestOptions: z.ZodOptional<z.ZodObject<{
497
+ timeout: z.ZodOptional<z.ZodNumber>;
498
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
499
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
500
+ }, z.core.$strip>>;
501
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
502
+ }, z.core.$strip>;
503
+ export declare const DownloadDataMessageSchema: z.ZodObject<{
504
+ type: z.ZodLiteral<"downloadData">;
505
+ requestId: z.ZodString;
506
+ reference: z.ZodString;
507
+ options: z.ZodOptional<z.ZodObject<{
508
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
509
+ fallback: z.ZodOptional<z.ZodBoolean>;
510
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
511
+ actPublisher: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
512
+ actHistoryAddress: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
513
+ actTimestamp: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
514
+ }, z.core.$strip>>;
515
+ requestOptions: z.ZodOptional<z.ZodObject<{
516
+ timeout: z.ZodOptional<z.ZodNumber>;
517
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
518
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
519
+ }, z.core.$strip>>;
520
+ }, z.core.$strip>;
521
+ export declare const UploadFileMessageSchema: z.ZodObject<{
522
+ type: z.ZodLiteral<"uploadFile">;
523
+ requestId: z.ZodString;
524
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
525
+ name: z.ZodOptional<z.ZodString>;
526
+ options: z.ZodOptional<z.ZodObject<{
527
+ pin: z.ZodOptional<z.ZodBoolean>;
528
+ encrypt: z.ZodOptional<z.ZodBoolean>;
529
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
530
+ tag: z.ZodOptional<z.ZodNumber>;
531
+ deferred: z.ZodOptional<z.ZodBoolean>;
532
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
533
+ }, z.core.$strip>>;
534
+ requestOptions: z.ZodOptional<z.ZodObject<{
535
+ timeout: z.ZodOptional<z.ZodNumber>;
536
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
537
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
538
+ }, z.core.$strip>>;
539
+ }, z.core.$strip>;
540
+ export declare const DownloadFileMessageSchema: z.ZodObject<{
541
+ type: z.ZodLiteral<"downloadFile">;
542
+ requestId: z.ZodString;
543
+ reference: z.ZodString;
544
+ path: z.ZodOptional<z.ZodString>;
545
+ options: z.ZodOptional<z.ZodObject<{
546
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
547
+ fallback: z.ZodOptional<z.ZodBoolean>;
548
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
549
+ actPublisher: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
550
+ actHistoryAddress: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
551
+ actTimestamp: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
552
+ }, z.core.$strip>>;
553
+ requestOptions: z.ZodOptional<z.ZodObject<{
554
+ timeout: z.ZodOptional<z.ZodNumber>;
555
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
556
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
557
+ }, z.core.$strip>>;
558
+ }, z.core.$strip>;
559
+ export declare const UploadChunkMessageSchema: z.ZodObject<{
560
+ type: z.ZodLiteral<"uploadChunk">;
561
+ requestId: z.ZodString;
562
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
563
+ options: z.ZodOptional<z.ZodObject<{
564
+ pin: z.ZodOptional<z.ZodBoolean>;
565
+ encrypt: z.ZodOptional<z.ZodBoolean>;
566
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
567
+ tag: z.ZodOptional<z.ZodNumber>;
568
+ deferred: z.ZodOptional<z.ZodBoolean>;
569
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
570
+ }, z.core.$strip>>;
571
+ requestOptions: z.ZodOptional<z.ZodObject<{
572
+ timeout: z.ZodOptional<z.ZodNumber>;
573
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
574
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
575
+ }, z.core.$strip>>;
576
+ }, z.core.$strip>;
577
+ export declare const DownloadChunkMessageSchema: z.ZodObject<{
578
+ type: z.ZodLiteral<"downloadChunk">;
579
+ requestId: z.ZodString;
580
+ reference: z.ZodString;
581
+ options: z.ZodOptional<z.ZodObject<{
582
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
583
+ fallback: z.ZodOptional<z.ZodBoolean>;
584
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
585
+ actPublisher: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
586
+ actHistoryAddress: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
587
+ actTimestamp: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
588
+ }, z.core.$strip>>;
589
+ requestOptions: z.ZodOptional<z.ZodObject<{
590
+ timeout: z.ZodOptional<z.ZodNumber>;
591
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
592
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
593
+ }, z.core.$strip>>;
594
+ }, z.core.$strip>;
595
+ export declare const GetConnectionInfoMessageSchema: z.ZodObject<{
596
+ type: z.ZodLiteral<"getConnectionInfo">;
597
+ requestId: z.ZodString;
598
+ }, z.core.$strip>;
599
+ export declare const IsConnectedMessageSchema: z.ZodObject<{
600
+ type: z.ZodLiteral<"isConnected">;
601
+ requestId: z.ZodString;
602
+ }, z.core.$strip>;
603
+ export declare const GetNodeInfoMessageSchema: z.ZodObject<{
604
+ type: z.ZodLiteral<"getNodeInfo">;
605
+ requestId: z.ZodString;
606
+ }, z.core.$strip>;
607
+ export declare const GsocMineMessageSchema: z.ZodObject<{
608
+ type: z.ZodLiteral<"gsocMine">;
609
+ requestId: z.ZodString;
610
+ targetOverlay: z.ZodString;
611
+ identifier: z.ZodString;
612
+ proximity: z.ZodOptional<z.ZodNumber>;
613
+ }, z.core.$strip>;
614
+ export declare const GsocSendMessageSchema: z.ZodObject<{
615
+ type: z.ZodLiteral<"gsocSend">;
616
+ requestId: z.ZodString;
617
+ signer: z.ZodString;
618
+ identifier: z.ZodString;
619
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
620
+ options: z.ZodOptional<z.ZodObject<{
621
+ pin: z.ZodOptional<z.ZodBoolean>;
622
+ encrypt: z.ZodOptional<z.ZodBoolean>;
623
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
624
+ tag: z.ZodOptional<z.ZodNumber>;
625
+ deferred: z.ZodOptional<z.ZodBoolean>;
626
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
627
+ }, z.core.$strip>>;
628
+ requestOptions: z.ZodOptional<z.ZodObject<{
629
+ timeout: z.ZodOptional<z.ZodNumber>;
630
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
631
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
632
+ }, z.core.$strip>>;
633
+ }, z.core.$strip>;
634
+ export declare const SocUploadMessageSchema: z.ZodObject<{
635
+ type: z.ZodLiteral<"socUpload">;
636
+ requestId: z.ZodString;
637
+ identifier: z.ZodString;
638
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
639
+ signer: z.ZodOptional<z.ZodString>;
640
+ options: z.ZodOptional<z.ZodObject<{
641
+ pin: z.ZodOptional<z.ZodBoolean>;
642
+ encrypt: z.ZodOptional<z.ZodBoolean>;
643
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
644
+ tag: z.ZodOptional<z.ZodNumber>;
645
+ deferred: z.ZodOptional<z.ZodBoolean>;
646
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
647
+ }, z.core.$strip>>;
648
+ requestOptions: z.ZodOptional<z.ZodObject<{
649
+ timeout: z.ZodOptional<z.ZodNumber>;
650
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
651
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
652
+ }, z.core.$strip>>;
653
+ }, z.core.$strip>;
654
+ export declare const SocRawUploadMessageSchema: z.ZodObject<{
655
+ type: z.ZodLiteral<"socRawUpload">;
656
+ requestId: z.ZodString;
657
+ identifier: z.ZodString;
658
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
659
+ signer: z.ZodOptional<z.ZodString>;
660
+ options: z.ZodOptional<z.ZodObject<{
661
+ pin: z.ZodOptional<z.ZodBoolean>;
662
+ encrypt: z.ZodOptional<z.ZodBoolean>;
663
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
664
+ tag: z.ZodOptional<z.ZodNumber>;
665
+ deferred: z.ZodOptional<z.ZodBoolean>;
666
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
667
+ }, z.core.$strip>>;
668
+ requestOptions: z.ZodOptional<z.ZodObject<{
669
+ timeout: z.ZodOptional<z.ZodNumber>;
670
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
671
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
672
+ }, z.core.$strip>>;
673
+ }, z.core.$strip>;
674
+ export declare const SocDownloadMessageSchema: z.ZodObject<{
675
+ type: z.ZodLiteral<"socDownload">;
676
+ requestId: z.ZodString;
677
+ owner: z.ZodOptional<z.ZodString>;
678
+ identifier: z.ZodString;
679
+ encryptionKey: z.ZodString;
680
+ requestOptions: z.ZodOptional<z.ZodObject<{
681
+ timeout: z.ZodOptional<z.ZodNumber>;
682
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
683
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
684
+ }, z.core.$strip>>;
685
+ }, z.core.$strip>;
686
+ export declare const SocRawDownloadMessageSchema: z.ZodObject<{
687
+ type: z.ZodLiteral<"socRawDownload">;
688
+ requestId: z.ZodString;
689
+ owner: z.ZodOptional<z.ZodString>;
690
+ identifier: z.ZodString;
691
+ encryptionKey: z.ZodOptional<z.ZodString>;
692
+ requestOptions: z.ZodOptional<z.ZodObject<{
693
+ timeout: z.ZodOptional<z.ZodNumber>;
694
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
695
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
696
+ }, z.core.$strip>>;
697
+ }, z.core.$strip>;
698
+ export declare const SocGetOwnerMessageSchema: z.ZodObject<{
699
+ type: z.ZodLiteral<"socGetOwner">;
700
+ requestId: z.ZodString;
701
+ }, z.core.$strip>;
702
+ export declare const EpochFeedDownloadReferenceMessageSchema: z.ZodObject<{
703
+ type: z.ZodLiteral<"epochFeedDownloadReference">;
704
+ requestId: z.ZodString;
705
+ topic: z.ZodString;
706
+ owner: z.ZodOptional<z.ZodString>;
707
+ at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
708
+ after: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
709
+ encryptionKey: z.ZodOptional<z.ZodString>;
710
+ requestOptions: z.ZodOptional<z.ZodObject<{
711
+ timeout: z.ZodOptional<z.ZodNumber>;
712
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
713
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
714
+ }, z.core.$strip>>;
715
+ }, z.core.$strip>;
716
+ export declare const EpochHintsSchema: z.ZodOptional<z.ZodObject<{
717
+ lastEpoch: z.ZodOptional<z.ZodObject<{
718
+ start: z.ZodString;
719
+ level: z.ZodNumber;
720
+ }, z.core.$strip>>;
721
+ lastTimestamp: z.ZodOptional<z.ZodString>;
722
+ }, z.core.$strip>>;
723
+ export declare const EpochFeedUploadReferenceMessageSchema: z.ZodObject<{
724
+ type: z.ZodLiteral<"epochFeedUploadReference">;
725
+ requestId: z.ZodString;
726
+ topic: z.ZodString;
727
+ signer: z.ZodOptional<z.ZodString>;
728
+ at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
729
+ reference: z.ZodString;
730
+ encryptionKey: z.ZodOptional<z.ZodString>;
731
+ hints: z.ZodOptional<z.ZodObject<{
732
+ lastEpoch: z.ZodOptional<z.ZodObject<{
733
+ start: z.ZodString;
734
+ level: z.ZodNumber;
735
+ }, z.core.$strip>>;
736
+ lastTimestamp: z.ZodOptional<z.ZodString>;
737
+ }, z.core.$strip>>;
738
+ requestOptions: z.ZodOptional<z.ZodObject<{
739
+ timeout: z.ZodOptional<z.ZodNumber>;
740
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
741
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
742
+ }, z.core.$strip>>;
743
+ }, z.core.$strip>;
744
+ export declare const FeedGetOwnerMessageSchema: z.ZodObject<{
745
+ type: z.ZodLiteral<"feedGetOwner">;
746
+ requestId: z.ZodString;
747
+ }, z.core.$strip>;
748
+ export declare const SequentialFeedGetOwnerMessageSchema: z.ZodObject<{
749
+ type: z.ZodLiteral<"seqFeedGetOwner">;
750
+ requestId: z.ZodString;
751
+ }, z.core.$strip>;
752
+ export declare const SequentialFeedDownloadPayloadMessageSchema: z.ZodObject<{
753
+ type: z.ZodLiteral<"seqFeedDownloadPayload">;
754
+ requestId: z.ZodString;
755
+ topic: z.ZodString;
756
+ owner: z.ZodOptional<z.ZodString>;
757
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
758
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
759
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
760
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
761
+ encryptionKey: z.ZodString;
762
+ requestOptions: z.ZodOptional<z.ZodObject<{
763
+ timeout: z.ZodOptional<z.ZodNumber>;
764
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
765
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
766
+ }, z.core.$strip>>;
767
+ }, z.core.$strip>;
768
+ export declare const SequentialFeedDownloadRawPayloadMessageSchema: z.ZodObject<{
769
+ type: z.ZodLiteral<"seqFeedDownloadRawPayload">;
770
+ requestId: z.ZodString;
771
+ topic: z.ZodString;
772
+ owner: z.ZodOptional<z.ZodString>;
773
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
774
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
775
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
776
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
777
+ encryptionKey: z.ZodOptional<z.ZodString>;
778
+ requestOptions: z.ZodOptional<z.ZodObject<{
779
+ timeout: z.ZodOptional<z.ZodNumber>;
780
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
781
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
782
+ }, z.core.$strip>>;
783
+ }, z.core.$strip>;
784
+ export declare const SequentialFeedDownloadReferenceMessageSchema: z.ZodObject<{
785
+ type: z.ZodLiteral<"seqFeedDownloadReference">;
786
+ requestId: z.ZodString;
787
+ topic: z.ZodString;
788
+ owner: z.ZodOptional<z.ZodString>;
789
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
790
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
791
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
792
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
793
+ encryptionKey: z.ZodString;
794
+ requestOptions: z.ZodOptional<z.ZodObject<{
795
+ timeout: z.ZodOptional<z.ZodNumber>;
796
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
797
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
798
+ }, z.core.$strip>>;
799
+ }, z.core.$strip>;
800
+ export declare const SequentialFeedUploadPayloadMessageSchema: z.ZodObject<{
801
+ type: z.ZodLiteral<"seqFeedUploadPayload">;
802
+ requestId: z.ZodString;
803
+ topic: z.ZodString;
804
+ signer: z.ZodOptional<z.ZodString>;
805
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
806
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
807
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
808
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
809
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
810
+ options: z.ZodOptional<z.ZodObject<{
811
+ pin: z.ZodOptional<z.ZodBoolean>;
812
+ encrypt: z.ZodOptional<z.ZodBoolean>;
813
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
814
+ tag: z.ZodOptional<z.ZodNumber>;
815
+ deferred: z.ZodOptional<z.ZodBoolean>;
816
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
817
+ }, z.core.$strip>>;
818
+ requestOptions: z.ZodOptional<z.ZodObject<{
819
+ timeout: z.ZodOptional<z.ZodNumber>;
820
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
821
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
822
+ }, z.core.$strip>>;
823
+ }, z.core.$strip>;
824
+ export declare const SequentialFeedUploadRawPayloadMessageSchema: z.ZodObject<{
825
+ type: z.ZodLiteral<"seqFeedUploadRawPayload">;
826
+ requestId: z.ZodString;
827
+ topic: z.ZodString;
828
+ signer: z.ZodOptional<z.ZodString>;
829
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
830
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
831
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
832
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
833
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
834
+ encryptionKey: z.ZodOptional<z.ZodString>;
835
+ options: z.ZodOptional<z.ZodObject<{
836
+ pin: z.ZodOptional<z.ZodBoolean>;
837
+ encrypt: z.ZodOptional<z.ZodBoolean>;
838
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
839
+ tag: z.ZodOptional<z.ZodNumber>;
840
+ deferred: z.ZodOptional<z.ZodBoolean>;
841
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
842
+ }, z.core.$strip>>;
843
+ requestOptions: z.ZodOptional<z.ZodObject<{
844
+ timeout: z.ZodOptional<z.ZodNumber>;
845
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
846
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
847
+ }, z.core.$strip>>;
848
+ }, z.core.$strip>;
849
+ export declare const SequentialFeedUploadReferenceMessageSchema: z.ZodObject<{
850
+ type: z.ZodLiteral<"seqFeedUploadReference">;
851
+ requestId: z.ZodString;
852
+ topic: z.ZodString;
853
+ signer: z.ZodOptional<z.ZodString>;
854
+ reference: z.ZodString;
855
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
856
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
857
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
858
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
859
+ options: z.ZodOptional<z.ZodObject<{
860
+ pin: z.ZodOptional<z.ZodBoolean>;
861
+ encrypt: z.ZodOptional<z.ZodBoolean>;
862
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
863
+ tag: z.ZodOptional<z.ZodNumber>;
864
+ deferred: z.ZodOptional<z.ZodBoolean>;
865
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
866
+ }, z.core.$strip>>;
867
+ requestOptions: z.ZodOptional<z.ZodObject<{
868
+ timeout: z.ZodOptional<z.ZodNumber>;
869
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
870
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
871
+ }, z.core.$strip>>;
872
+ }, z.core.$strip>;
873
+ export declare const CreateFeedManifestMessageSchema: z.ZodObject<{
874
+ type: z.ZodLiteral<"createFeedManifest">;
875
+ requestId: z.ZodString;
876
+ topic: z.ZodString;
877
+ owner: z.ZodOptional<z.ZodString>;
878
+ feedType: z.ZodOptional<z.ZodEnum<{
879
+ Sequence: "Sequence";
880
+ Epoch: "Epoch";
881
+ }>>;
882
+ uploadOptions: z.ZodOptional<z.ZodObject<{
883
+ pin: z.ZodOptional<z.ZodBoolean>;
884
+ encrypt: z.ZodOptional<z.ZodBoolean>;
885
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
886
+ tag: z.ZodOptional<z.ZodNumber>;
887
+ deferred: z.ZodOptional<z.ZodBoolean>;
888
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
889
+ }, z.core.$strip>>;
890
+ requestOptions: z.ZodOptional<z.ZodObject<{
891
+ timeout: z.ZodOptional<z.ZodNumber>;
892
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
893
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
894
+ }, z.core.$strip>>;
895
+ }, z.core.$strip>;
896
+ export declare const ActUploadDataMessageSchema: z.ZodObject<{
897
+ type: z.ZodLiteral<"actUploadData">;
898
+ requestId: z.ZodString;
899
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
900
+ grantees: z.ZodArray<z.ZodString>;
901
+ options: z.ZodOptional<z.ZodObject<{
902
+ pin: z.ZodOptional<z.ZodBoolean>;
903
+ encrypt: z.ZodOptional<z.ZodBoolean>;
904
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
905
+ tag: z.ZodOptional<z.ZodNumber>;
906
+ deferred: z.ZodOptional<z.ZodBoolean>;
907
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
908
+ beeCompatible: z.ZodOptional<z.ZodBoolean>;
909
+ }, z.core.$strip>>;
910
+ requestOptions: z.ZodOptional<z.ZodObject<{
911
+ timeout: z.ZodOptional<z.ZodNumber>;
912
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
913
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
914
+ }, z.core.$strip>>;
915
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
916
+ }, z.core.$strip>;
917
+ export declare const ActDownloadDataMessageSchema: z.ZodObject<{
918
+ type: z.ZodLiteral<"actDownloadData">;
919
+ requestId: z.ZodString;
920
+ encryptedReference: z.ZodString;
921
+ historyReference: z.ZodString;
922
+ publisherPubKey: z.ZodString;
923
+ timestamp: z.ZodOptional<z.ZodNumber>;
924
+ requestOptions: z.ZodOptional<z.ZodObject<{
925
+ timeout: z.ZodOptional<z.ZodNumber>;
926
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
927
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
928
+ }, z.core.$strip>>;
929
+ }, z.core.$strip>;
930
+ export declare const ActAddGranteesMessageSchema: z.ZodObject<{
931
+ type: z.ZodLiteral<"actAddGrantees">;
932
+ requestId: z.ZodString;
933
+ historyReference: z.ZodString;
934
+ grantees: z.ZodArray<z.ZodString>;
935
+ requestOptions: z.ZodOptional<z.ZodObject<{
936
+ timeout: z.ZodOptional<z.ZodNumber>;
937
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
938
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
939
+ }, z.core.$strip>>;
940
+ }, z.core.$strip>;
941
+ export declare const ActRevokeGranteesMessageSchema: z.ZodObject<{
942
+ type: z.ZodLiteral<"actRevokeGrantees">;
943
+ requestId: z.ZodString;
944
+ historyReference: z.ZodString;
945
+ encryptedReference: z.ZodString;
946
+ revokeGrantees: z.ZodArray<z.ZodString>;
947
+ requestOptions: z.ZodOptional<z.ZodObject<{
948
+ timeout: z.ZodOptional<z.ZodNumber>;
949
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
950
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
951
+ }, z.core.$strip>>;
952
+ }, z.core.$strip>;
953
+ export declare const ActGetGranteesMessageSchema: z.ZodObject<{
954
+ type: z.ZodLiteral<"actGetGrantees">;
955
+ requestId: z.ZodString;
956
+ historyReference: z.ZodString;
957
+ requestOptions: z.ZodOptional<z.ZodObject<{
958
+ timeout: z.ZodOptional<z.ZodNumber>;
959
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
960
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
961
+ }, z.core.$strip>>;
962
+ }, z.core.$strip>;
963
+ export declare const GetPostageBatchMessageSchema: z.ZodObject<{
964
+ type: z.ZodLiteral<"getPostageBatch">;
965
+ requestId: z.ZodString;
966
+ }, z.core.$strip>;
967
+ export declare const ConnectMessageSchema: z.ZodObject<{
968
+ type: z.ZodLiteral<"connect">;
969
+ requestId: z.ZodString;
970
+ agent: z.ZodOptional<z.ZodBoolean>;
971
+ popupMode: z.ZodOptional<z.ZodEnum<{
972
+ popup: "popup";
973
+ window: "window";
974
+ }>>;
975
+ }, z.core.$strip>;
976
+ export declare const ParentToIframeMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
977
+ type: z.ZodLiteral<"parentIdentify">;
978
+ beeApiUrl: z.ZodOptional<z.ZodString>;
979
+ popupMode: z.ZodOptional<z.ZodEnum<{
980
+ popup: "popup";
981
+ window: "window";
982
+ }>>;
983
+ metadata: z.ZodObject<{
984
+ name: z.ZodString;
985
+ description: z.ZodOptional<z.ZodString>;
986
+ icon: z.ZodOptional<z.ZodString>;
987
+ }, z.core.$strip>;
988
+ buttonConfig: z.ZodOptional<z.ZodObject<{
989
+ connectText: z.ZodOptional<z.ZodString>;
990
+ disconnectText: z.ZodOptional<z.ZodString>;
991
+ loadingText: z.ZodOptional<z.ZodString>;
992
+ backgroundColor: z.ZodOptional<z.ZodString>;
993
+ color: z.ZodOptional<z.ZodString>;
994
+ borderRadius: z.ZodOptional<z.ZodString>;
995
+ }, z.core.$strip>>;
996
+ }, z.core.$strip>, z.ZodObject<{
997
+ type: z.ZodLiteral<"checkAuth">;
998
+ requestId: z.ZodString;
999
+ }, z.core.$strip>, z.ZodObject<{
1000
+ type: z.ZodLiteral<"disconnect">;
1001
+ requestId: z.ZodString;
1002
+ }, z.core.$strip>, z.ZodObject<{
1003
+ type: z.ZodLiteral<"requestAuth">;
1004
+ styles: z.ZodOptional<z.ZodObject<{
1005
+ backgroundColor: z.ZodOptional<z.ZodString>;
1006
+ color: z.ZodOptional<z.ZodString>;
1007
+ border: z.ZodOptional<z.ZodString>;
1008
+ borderRadius: z.ZodOptional<z.ZodString>;
1009
+ padding: z.ZodOptional<z.ZodString>;
1010
+ fontSize: z.ZodOptional<z.ZodString>;
1011
+ fontFamily: z.ZodOptional<z.ZodString>;
1012
+ fontWeight: z.ZodOptional<z.ZodString>;
1013
+ cursor: z.ZodOptional<z.ZodString>;
1014
+ width: z.ZodOptional<z.ZodString>;
1015
+ height: z.ZodOptional<z.ZodString>;
1016
+ }, z.core.$strip>>;
1017
+ }, z.core.$strip>, z.ZodObject<{
1018
+ type: z.ZodLiteral<"uploadData">;
1019
+ requestId: z.ZodString;
1020
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1021
+ options: z.ZodOptional<z.ZodObject<{
1022
+ pin: z.ZodOptional<z.ZodBoolean>;
1023
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1024
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1025
+ tag: z.ZodOptional<z.ZodNumber>;
1026
+ deferred: z.ZodOptional<z.ZodBoolean>;
1027
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1028
+ }, z.core.$strip>>;
1029
+ requestOptions: z.ZodOptional<z.ZodObject<{
1030
+ timeout: z.ZodOptional<z.ZodNumber>;
1031
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1032
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1033
+ }, z.core.$strip>>;
1034
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
1035
+ }, z.core.$strip>, z.ZodObject<{
1036
+ type: z.ZodLiteral<"downloadData">;
1037
+ requestId: z.ZodString;
1038
+ reference: z.ZodString;
1039
+ options: z.ZodOptional<z.ZodObject<{
1040
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1041
+ fallback: z.ZodOptional<z.ZodBoolean>;
1042
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1043
+ actPublisher: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
1044
+ actHistoryAddress: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
1045
+ actTimestamp: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1046
+ }, z.core.$strip>>;
1047
+ requestOptions: z.ZodOptional<z.ZodObject<{
1048
+ timeout: z.ZodOptional<z.ZodNumber>;
1049
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1050
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1051
+ }, z.core.$strip>>;
1052
+ }, z.core.$strip>, z.ZodObject<{
1053
+ type: z.ZodLiteral<"uploadFile">;
1054
+ requestId: z.ZodString;
1055
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1056
+ name: z.ZodOptional<z.ZodString>;
1057
+ options: z.ZodOptional<z.ZodObject<{
1058
+ pin: z.ZodOptional<z.ZodBoolean>;
1059
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1060
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1061
+ tag: z.ZodOptional<z.ZodNumber>;
1062
+ deferred: z.ZodOptional<z.ZodBoolean>;
1063
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1064
+ }, z.core.$strip>>;
1065
+ requestOptions: z.ZodOptional<z.ZodObject<{
1066
+ timeout: z.ZodOptional<z.ZodNumber>;
1067
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1068
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1069
+ }, z.core.$strip>>;
1070
+ }, z.core.$strip>, z.ZodObject<{
1071
+ type: z.ZodLiteral<"downloadFile">;
1072
+ requestId: z.ZodString;
1073
+ reference: z.ZodString;
1074
+ path: z.ZodOptional<z.ZodString>;
1075
+ options: z.ZodOptional<z.ZodObject<{
1076
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1077
+ fallback: z.ZodOptional<z.ZodBoolean>;
1078
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1079
+ actPublisher: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
1080
+ actHistoryAddress: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
1081
+ actTimestamp: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1082
+ }, z.core.$strip>>;
1083
+ requestOptions: z.ZodOptional<z.ZodObject<{
1084
+ timeout: z.ZodOptional<z.ZodNumber>;
1085
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1086
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1087
+ }, z.core.$strip>>;
1088
+ }, z.core.$strip>, z.ZodObject<{
1089
+ type: z.ZodLiteral<"uploadChunk">;
1090
+ requestId: z.ZodString;
1091
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1092
+ options: z.ZodOptional<z.ZodObject<{
1093
+ pin: z.ZodOptional<z.ZodBoolean>;
1094
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1095
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1096
+ tag: z.ZodOptional<z.ZodNumber>;
1097
+ deferred: z.ZodOptional<z.ZodBoolean>;
1098
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1099
+ }, z.core.$strip>>;
1100
+ requestOptions: z.ZodOptional<z.ZodObject<{
1101
+ timeout: z.ZodOptional<z.ZodNumber>;
1102
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1103
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1104
+ }, z.core.$strip>>;
1105
+ }, z.core.$strip>, z.ZodObject<{
1106
+ type: z.ZodLiteral<"downloadChunk">;
1107
+ requestId: z.ZodString;
1108
+ reference: z.ZodString;
1109
+ options: z.ZodOptional<z.ZodObject<{
1110
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1111
+ fallback: z.ZodOptional<z.ZodBoolean>;
1112
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1113
+ actPublisher: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
1114
+ actHistoryAddress: z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
1115
+ actTimestamp: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1116
+ }, z.core.$strip>>;
1117
+ requestOptions: z.ZodOptional<z.ZodObject<{
1118
+ timeout: z.ZodOptional<z.ZodNumber>;
1119
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1120
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1121
+ }, z.core.$strip>>;
1122
+ }, z.core.$strip>, z.ZodObject<{
1123
+ type: z.ZodLiteral<"getConnectionInfo">;
1124
+ requestId: z.ZodString;
1125
+ }, z.core.$strip>, z.ZodObject<{
1126
+ type: z.ZodLiteral<"isConnected">;
1127
+ requestId: z.ZodString;
1128
+ }, z.core.$strip>, z.ZodObject<{
1129
+ type: z.ZodLiteral<"getNodeInfo">;
1130
+ requestId: z.ZodString;
1131
+ }, z.core.$strip>, z.ZodObject<{
1132
+ type: z.ZodLiteral<"gsocMine">;
1133
+ requestId: z.ZodString;
1134
+ targetOverlay: z.ZodString;
1135
+ identifier: z.ZodString;
1136
+ proximity: z.ZodOptional<z.ZodNumber>;
1137
+ }, z.core.$strip>, z.ZodObject<{
1138
+ type: z.ZodLiteral<"gsocSend">;
1139
+ requestId: z.ZodString;
1140
+ signer: z.ZodString;
1141
+ identifier: z.ZodString;
1142
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1143
+ options: z.ZodOptional<z.ZodObject<{
1144
+ pin: z.ZodOptional<z.ZodBoolean>;
1145
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1146
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1147
+ tag: z.ZodOptional<z.ZodNumber>;
1148
+ deferred: z.ZodOptional<z.ZodBoolean>;
1149
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1150
+ }, z.core.$strip>>;
1151
+ requestOptions: z.ZodOptional<z.ZodObject<{
1152
+ timeout: z.ZodOptional<z.ZodNumber>;
1153
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1154
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1155
+ }, z.core.$strip>>;
1156
+ }, z.core.$strip>, z.ZodObject<{
1157
+ type: z.ZodLiteral<"socUpload">;
1158
+ requestId: z.ZodString;
1159
+ identifier: z.ZodString;
1160
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1161
+ signer: z.ZodOptional<z.ZodString>;
1162
+ options: z.ZodOptional<z.ZodObject<{
1163
+ pin: z.ZodOptional<z.ZodBoolean>;
1164
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1165
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1166
+ tag: z.ZodOptional<z.ZodNumber>;
1167
+ deferred: z.ZodOptional<z.ZodBoolean>;
1168
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1169
+ }, z.core.$strip>>;
1170
+ requestOptions: z.ZodOptional<z.ZodObject<{
1171
+ timeout: z.ZodOptional<z.ZodNumber>;
1172
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1173
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1174
+ }, z.core.$strip>>;
1175
+ }, z.core.$strip>, z.ZodObject<{
1176
+ type: z.ZodLiteral<"socRawUpload">;
1177
+ requestId: z.ZodString;
1178
+ identifier: z.ZodString;
1179
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1180
+ signer: z.ZodOptional<z.ZodString>;
1181
+ options: z.ZodOptional<z.ZodObject<{
1182
+ pin: z.ZodOptional<z.ZodBoolean>;
1183
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1184
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1185
+ tag: z.ZodOptional<z.ZodNumber>;
1186
+ deferred: z.ZodOptional<z.ZodBoolean>;
1187
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1188
+ }, z.core.$strip>>;
1189
+ requestOptions: z.ZodOptional<z.ZodObject<{
1190
+ timeout: z.ZodOptional<z.ZodNumber>;
1191
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1192
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1193
+ }, z.core.$strip>>;
1194
+ }, z.core.$strip>, z.ZodObject<{
1195
+ type: z.ZodLiteral<"socDownload">;
1196
+ requestId: z.ZodString;
1197
+ owner: z.ZodOptional<z.ZodString>;
1198
+ identifier: z.ZodString;
1199
+ encryptionKey: z.ZodString;
1200
+ requestOptions: z.ZodOptional<z.ZodObject<{
1201
+ timeout: z.ZodOptional<z.ZodNumber>;
1202
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1203
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1204
+ }, z.core.$strip>>;
1205
+ }, z.core.$strip>, z.ZodObject<{
1206
+ type: z.ZodLiteral<"socRawDownload">;
1207
+ requestId: z.ZodString;
1208
+ owner: z.ZodOptional<z.ZodString>;
1209
+ identifier: z.ZodString;
1210
+ encryptionKey: z.ZodOptional<z.ZodString>;
1211
+ requestOptions: z.ZodOptional<z.ZodObject<{
1212
+ timeout: z.ZodOptional<z.ZodNumber>;
1213
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1214
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1215
+ }, z.core.$strip>>;
1216
+ }, z.core.$strip>, z.ZodObject<{
1217
+ type: z.ZodLiteral<"socGetOwner">;
1218
+ requestId: z.ZodString;
1219
+ }, z.core.$strip>, z.ZodObject<{
1220
+ type: z.ZodLiteral<"epochFeedDownloadReference">;
1221
+ requestId: z.ZodString;
1222
+ topic: z.ZodString;
1223
+ owner: z.ZodOptional<z.ZodString>;
1224
+ at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1225
+ after: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1226
+ encryptionKey: z.ZodOptional<z.ZodString>;
1227
+ requestOptions: z.ZodOptional<z.ZodObject<{
1228
+ timeout: z.ZodOptional<z.ZodNumber>;
1229
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1230
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1231
+ }, z.core.$strip>>;
1232
+ }, z.core.$strip>, z.ZodObject<{
1233
+ type: z.ZodLiteral<"epochFeedUploadReference">;
1234
+ requestId: z.ZodString;
1235
+ topic: z.ZodString;
1236
+ signer: z.ZodOptional<z.ZodString>;
1237
+ at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1238
+ reference: z.ZodString;
1239
+ encryptionKey: z.ZodOptional<z.ZodString>;
1240
+ hints: z.ZodOptional<z.ZodObject<{
1241
+ lastEpoch: z.ZodOptional<z.ZodObject<{
1242
+ start: z.ZodString;
1243
+ level: z.ZodNumber;
1244
+ }, z.core.$strip>>;
1245
+ lastTimestamp: z.ZodOptional<z.ZodString>;
1246
+ }, z.core.$strip>>;
1247
+ requestOptions: z.ZodOptional<z.ZodObject<{
1248
+ timeout: z.ZodOptional<z.ZodNumber>;
1249
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1250
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1251
+ }, z.core.$strip>>;
1252
+ }, z.core.$strip>, z.ZodObject<{
1253
+ type: z.ZodLiteral<"feedGetOwner">;
1254
+ requestId: z.ZodString;
1255
+ }, z.core.$strip>, z.ZodObject<{
1256
+ type: z.ZodLiteral<"seqFeedGetOwner">;
1257
+ requestId: z.ZodString;
1258
+ }, z.core.$strip>, z.ZodObject<{
1259
+ type: z.ZodLiteral<"seqFeedDownloadPayload">;
1260
+ requestId: z.ZodString;
1261
+ topic: z.ZodString;
1262
+ owner: z.ZodOptional<z.ZodString>;
1263
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1264
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1265
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1266
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1267
+ encryptionKey: z.ZodString;
1268
+ requestOptions: z.ZodOptional<z.ZodObject<{
1269
+ timeout: z.ZodOptional<z.ZodNumber>;
1270
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1271
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1272
+ }, z.core.$strip>>;
1273
+ }, z.core.$strip>, z.ZodObject<{
1274
+ type: z.ZodLiteral<"seqFeedDownloadRawPayload">;
1275
+ requestId: z.ZodString;
1276
+ topic: z.ZodString;
1277
+ owner: z.ZodOptional<z.ZodString>;
1278
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1279
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1280
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1281
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1282
+ encryptionKey: z.ZodOptional<z.ZodString>;
1283
+ requestOptions: z.ZodOptional<z.ZodObject<{
1284
+ timeout: z.ZodOptional<z.ZodNumber>;
1285
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1286
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1287
+ }, z.core.$strip>>;
1288
+ }, z.core.$strip>, z.ZodObject<{
1289
+ type: z.ZodLiteral<"seqFeedDownloadReference">;
1290
+ requestId: z.ZodString;
1291
+ topic: z.ZodString;
1292
+ owner: z.ZodOptional<z.ZodString>;
1293
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1294
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1295
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1296
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1297
+ encryptionKey: z.ZodString;
1298
+ requestOptions: z.ZodOptional<z.ZodObject<{
1299
+ timeout: z.ZodOptional<z.ZodNumber>;
1300
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1301
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1302
+ }, z.core.$strip>>;
1303
+ }, z.core.$strip>, z.ZodObject<{
1304
+ type: z.ZodLiteral<"seqFeedUploadPayload">;
1305
+ requestId: z.ZodString;
1306
+ topic: z.ZodString;
1307
+ signer: z.ZodOptional<z.ZodString>;
1308
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1309
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1310
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1311
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1312
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1313
+ options: z.ZodOptional<z.ZodObject<{
1314
+ pin: z.ZodOptional<z.ZodBoolean>;
1315
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1316
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1317
+ tag: z.ZodOptional<z.ZodNumber>;
1318
+ deferred: z.ZodOptional<z.ZodBoolean>;
1319
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1320
+ }, z.core.$strip>>;
1321
+ requestOptions: z.ZodOptional<z.ZodObject<{
1322
+ timeout: z.ZodOptional<z.ZodNumber>;
1323
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1324
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1325
+ }, z.core.$strip>>;
1326
+ }, z.core.$strip>, z.ZodObject<{
1327
+ type: z.ZodLiteral<"seqFeedUploadRawPayload">;
1328
+ requestId: z.ZodString;
1329
+ topic: z.ZodString;
1330
+ signer: z.ZodOptional<z.ZodString>;
1331
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1332
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1333
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1334
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1335
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1336
+ encryptionKey: z.ZodOptional<z.ZodString>;
1337
+ options: z.ZodOptional<z.ZodObject<{
1338
+ pin: z.ZodOptional<z.ZodBoolean>;
1339
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1340
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1341
+ tag: z.ZodOptional<z.ZodNumber>;
1342
+ deferred: z.ZodOptional<z.ZodBoolean>;
1343
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1344
+ }, z.core.$strip>>;
1345
+ requestOptions: z.ZodOptional<z.ZodObject<{
1346
+ timeout: z.ZodOptional<z.ZodNumber>;
1347
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1348
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1349
+ }, z.core.$strip>>;
1350
+ }, z.core.$strip>, z.ZodObject<{
1351
+ type: z.ZodLiteral<"seqFeedUploadReference">;
1352
+ requestId: z.ZodString;
1353
+ topic: z.ZodString;
1354
+ signer: z.ZodOptional<z.ZodString>;
1355
+ reference: z.ZodString;
1356
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1357
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1358
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1359
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1360
+ options: z.ZodOptional<z.ZodObject<{
1361
+ pin: z.ZodOptional<z.ZodBoolean>;
1362
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1363
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1364
+ tag: z.ZodOptional<z.ZodNumber>;
1365
+ deferred: z.ZodOptional<z.ZodBoolean>;
1366
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1367
+ }, z.core.$strip>>;
1368
+ requestOptions: z.ZodOptional<z.ZodObject<{
1369
+ timeout: z.ZodOptional<z.ZodNumber>;
1370
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1371
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1372
+ }, z.core.$strip>>;
1373
+ }, z.core.$strip>, z.ZodObject<{
1374
+ type: z.ZodLiteral<"createFeedManifest">;
1375
+ requestId: z.ZodString;
1376
+ topic: z.ZodString;
1377
+ owner: z.ZodOptional<z.ZodString>;
1378
+ feedType: z.ZodOptional<z.ZodEnum<{
1379
+ Sequence: "Sequence";
1380
+ Epoch: "Epoch";
1381
+ }>>;
1382
+ uploadOptions: z.ZodOptional<z.ZodObject<{
1383
+ pin: z.ZodOptional<z.ZodBoolean>;
1384
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1385
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1386
+ tag: z.ZodOptional<z.ZodNumber>;
1387
+ deferred: z.ZodOptional<z.ZodBoolean>;
1388
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1389
+ }, z.core.$strip>>;
1390
+ requestOptions: z.ZodOptional<z.ZodObject<{
1391
+ timeout: z.ZodOptional<z.ZodNumber>;
1392
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1393
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1394
+ }, z.core.$strip>>;
1395
+ }, z.core.$strip>, z.ZodObject<{
1396
+ type: z.ZodLiteral<"actUploadData">;
1397
+ requestId: z.ZodString;
1398
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1399
+ grantees: z.ZodArray<z.ZodString>;
1400
+ options: z.ZodOptional<z.ZodObject<{
1401
+ pin: z.ZodOptional<z.ZodBoolean>;
1402
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1403
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1404
+ tag: z.ZodOptional<z.ZodNumber>;
1405
+ deferred: z.ZodOptional<z.ZodBoolean>;
1406
+ redundancyLevel: z.ZodOptional<z.ZodNumber>;
1407
+ beeCompatible: z.ZodOptional<z.ZodBoolean>;
1408
+ }, z.core.$strip>>;
1409
+ requestOptions: z.ZodOptional<z.ZodObject<{
1410
+ timeout: z.ZodOptional<z.ZodNumber>;
1411
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1412
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1413
+ }, z.core.$strip>>;
1414
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
1415
+ }, z.core.$strip>, z.ZodObject<{
1416
+ type: z.ZodLiteral<"actDownloadData">;
1417
+ requestId: z.ZodString;
1418
+ encryptedReference: z.ZodString;
1419
+ historyReference: z.ZodString;
1420
+ publisherPubKey: z.ZodString;
1421
+ timestamp: z.ZodOptional<z.ZodNumber>;
1422
+ requestOptions: z.ZodOptional<z.ZodObject<{
1423
+ timeout: z.ZodOptional<z.ZodNumber>;
1424
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1425
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1426
+ }, z.core.$strip>>;
1427
+ }, z.core.$strip>, z.ZodObject<{
1428
+ type: z.ZodLiteral<"actAddGrantees">;
1429
+ requestId: z.ZodString;
1430
+ historyReference: z.ZodString;
1431
+ grantees: z.ZodArray<z.ZodString>;
1432
+ requestOptions: z.ZodOptional<z.ZodObject<{
1433
+ timeout: z.ZodOptional<z.ZodNumber>;
1434
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1435
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1436
+ }, z.core.$strip>>;
1437
+ }, z.core.$strip>, z.ZodObject<{
1438
+ type: z.ZodLiteral<"actRevokeGrantees">;
1439
+ requestId: z.ZodString;
1440
+ historyReference: z.ZodString;
1441
+ encryptedReference: z.ZodString;
1442
+ revokeGrantees: z.ZodArray<z.ZodString>;
1443
+ requestOptions: z.ZodOptional<z.ZodObject<{
1444
+ timeout: z.ZodOptional<z.ZodNumber>;
1445
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1446
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1447
+ }, z.core.$strip>>;
1448
+ }, z.core.$strip>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"actGetGrantees">;
1450
+ requestId: z.ZodString;
1451
+ historyReference: z.ZodString;
1452
+ requestOptions: z.ZodOptional<z.ZodObject<{
1453
+ timeout: z.ZodOptional<z.ZodNumber>;
1454
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1455
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1456
+ }, z.core.$strip>>;
1457
+ }, z.core.$strip>, z.ZodObject<{
1458
+ type: z.ZodLiteral<"getPostageBatch">;
1459
+ requestId: z.ZodString;
1460
+ }, z.core.$strip>, z.ZodObject<{
1461
+ type: z.ZodLiteral<"connect">;
1462
+ requestId: z.ZodString;
1463
+ agent: z.ZodOptional<z.ZodBoolean>;
1464
+ popupMode: z.ZodOptional<z.ZodEnum<{
1465
+ popup: "popup";
1466
+ window: "window";
1467
+ }>>;
1468
+ }, z.core.$strip>], "type">;
1469
+ export type ParentIdentifyMessage = z.infer<typeof ParentIdentifyMessageSchema>;
1470
+ export type CheckAuthMessage = z.infer<typeof CheckAuthMessageSchema>;
1471
+ export type DisconnectMessage = z.infer<typeof DisconnectMessageSchema>;
1472
+ export type RequestAuthMessage = z.infer<typeof RequestAuthMessageSchema>;
1473
+ export type UploadDataMessage = z.infer<typeof UploadDataMessageSchema>;
1474
+ export type DownloadDataMessage = z.infer<typeof DownloadDataMessageSchema>;
1475
+ export type UploadFileMessage = z.infer<typeof UploadFileMessageSchema>;
1476
+ export type DownloadFileMessage = z.infer<typeof DownloadFileMessageSchema>;
1477
+ export type UploadChunkMessage = z.infer<typeof UploadChunkMessageSchema>;
1478
+ export type DownloadChunkMessage = z.infer<typeof DownloadChunkMessageSchema>;
1479
+ export type GetConnectionInfoMessage = z.infer<typeof GetConnectionInfoMessageSchema>;
1480
+ export type IsConnectedMessage = z.infer<typeof IsConnectedMessageSchema>;
1481
+ export type GetNodeInfoMessage = z.infer<typeof GetNodeInfoMessageSchema>;
1482
+ export type GsocMineMessage = z.infer<typeof GsocMineMessageSchema>;
1483
+ export type GsocSendMessage = z.infer<typeof GsocSendMessageSchema>;
1484
+ export type SocUploadMessage = z.infer<typeof SocUploadMessageSchema>;
1485
+ export type SocRawUploadMessage = z.infer<typeof SocRawUploadMessageSchema>;
1486
+ export type SocDownloadMessage = z.infer<typeof SocDownloadMessageSchema>;
1487
+ export type SocRawDownloadMessage = z.infer<typeof SocRawDownloadMessageSchema>;
1488
+ export type SocGetOwnerMessage = z.infer<typeof SocGetOwnerMessageSchema>;
1489
+ export type EpochFeedDownloadReferenceMessage = z.infer<typeof EpochFeedDownloadReferenceMessageSchema>;
1490
+ export type EpochFeedUploadReferenceMessage = z.infer<typeof EpochFeedUploadReferenceMessageSchema>;
1491
+ export type FeedGetOwnerMessage = z.infer<typeof FeedGetOwnerMessageSchema>;
1492
+ export type SequentialFeedGetOwnerMessage = z.infer<typeof SequentialFeedGetOwnerMessageSchema>;
1493
+ export type SequentialFeedDownloadPayloadMessage = z.infer<typeof SequentialFeedDownloadPayloadMessageSchema>;
1494
+ export type SequentialFeedDownloadRawPayloadMessage = z.infer<typeof SequentialFeedDownloadRawPayloadMessageSchema>;
1495
+ export type SequentialFeedDownloadReferenceMessage = z.infer<typeof SequentialFeedDownloadReferenceMessageSchema>;
1496
+ export type SequentialFeedUploadPayloadMessage = z.infer<typeof SequentialFeedUploadPayloadMessageSchema>;
1497
+ export type SequentialFeedUploadRawPayloadMessage = z.infer<typeof SequentialFeedUploadRawPayloadMessageSchema>;
1498
+ export type SequentialFeedUploadReferenceMessage = z.infer<typeof SequentialFeedUploadReferenceMessageSchema>;
1499
+ export type CreateFeedManifestMessage = z.infer<typeof CreateFeedManifestMessageSchema>;
1500
+ export type ActUploadDataMessage = z.infer<typeof ActUploadDataMessageSchema>;
1501
+ export type ActDownloadDataMessage = z.infer<typeof ActDownloadDataMessageSchema>;
1502
+ export type ActAddGranteesMessage = z.infer<typeof ActAddGranteesMessageSchema>;
1503
+ export type ActRevokeGranteesMessage = z.infer<typeof ActRevokeGranteesMessageSchema>;
1504
+ export type ActGetGranteesMessage = z.infer<typeof ActGetGranteesMessageSchema>;
1505
+ export type GetPostageBatchMessage = z.infer<typeof GetPostageBatchMessageSchema>;
1506
+ export type ConnectMessage = z.infer<typeof ConnectMessageSchema>;
1507
+ export type ParentToIframeMessage = z.infer<typeof ParentToIframeMessageSchema>;
1508
+ export declare const ProxyReadyMessageSchema: z.ZodObject<{
1509
+ type: z.ZodLiteral<"proxyReady">;
1510
+ authenticated: z.ZodBoolean;
1511
+ parentOrigin: z.ZodString;
1512
+ }, z.core.$strip>;
1513
+ export declare const InitErrorMessageSchema: z.ZodObject<{
1514
+ type: z.ZodLiteral<"initError">;
1515
+ error: z.ZodString;
1516
+ }, z.core.$strip>;
1517
+ export declare const AuthStatusResponseMessageSchema: z.ZodObject<{
1518
+ type: z.ZodLiteral<"authStatusResponse">;
1519
+ requestId: z.ZodString;
1520
+ authenticated: z.ZodBoolean;
1521
+ origin: z.ZodOptional<z.ZodString>;
1522
+ }, z.core.$strip>;
1523
+ export declare const DisconnectResponseMessageSchema: z.ZodObject<{
1524
+ type: z.ZodLiteral<"disconnectResponse">;
1525
+ requestId: z.ZodString;
1526
+ success: z.ZodBoolean;
1527
+ }, z.core.$strip>;
1528
+ export declare const AuthSuccessMessageSchema: z.ZodObject<{
1529
+ type: z.ZodLiteral<"authSuccess">;
1530
+ origin: z.ZodString;
1531
+ }, z.core.$strip>;
1532
+ export declare const UploadDataResponseMessageSchema: z.ZodObject<{
1533
+ type: z.ZodLiteral<"uploadDataResponse">;
1534
+ requestId: z.ZodString;
1535
+ reference: z.ZodString;
1536
+ tagUid: z.ZodOptional<z.ZodNumber>;
1537
+ }, z.core.$strip>;
1538
+ export declare const DownloadDataResponseMessageSchema: z.ZodObject<{
1539
+ type: z.ZodLiteral<"downloadDataResponse">;
1540
+ requestId: z.ZodString;
1541
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1542
+ }, z.core.$strip>;
1543
+ export declare const UploadFileResponseMessageSchema: z.ZodObject<{
1544
+ type: z.ZodLiteral<"uploadFileResponse">;
1545
+ requestId: z.ZodString;
1546
+ reference: z.ZodString;
1547
+ tagUid: z.ZodOptional<z.ZodNumber>;
1548
+ }, z.core.$strip>;
1549
+ export declare const DownloadFileResponseMessageSchema: z.ZodObject<{
1550
+ type: z.ZodLiteral<"downloadFileResponse">;
1551
+ requestId: z.ZodString;
1552
+ name: z.ZodString;
1553
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1554
+ }, z.core.$strip>;
1555
+ export declare const UploadChunkResponseMessageSchema: z.ZodObject<{
1556
+ type: z.ZodLiteral<"uploadChunkResponse">;
1557
+ requestId: z.ZodString;
1558
+ reference: z.ZodString;
1559
+ }, z.core.$strip>;
1560
+ export declare const DownloadChunkResponseMessageSchema: z.ZodObject<{
1561
+ type: z.ZodLiteral<"downloadChunkResponse">;
1562
+ requestId: z.ZodString;
1563
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1564
+ }, z.core.$strip>;
1565
+ export declare const UploadProgressMessageSchema: z.ZodObject<{
1566
+ type: z.ZodLiteral<"uploadProgress">;
1567
+ requestId: z.ZodString;
1568
+ total: z.ZodNumber;
1569
+ processed: z.ZodNumber;
1570
+ }, z.core.$strip>;
1571
+ export declare const ErrorMessageSchema: z.ZodObject<{
1572
+ type: z.ZodLiteral<"error">;
1573
+ requestId: z.ZodString;
1574
+ error: z.ZodString;
1575
+ }, z.core.$strip>;
1576
+ export declare const ConnectionInfoResponseMessageSchema: z.ZodObject<{
1577
+ type: z.ZodLiteral<"connectionInfoResponse">;
1578
+ requestId: z.ZodString;
1579
+ canUpload: z.ZodBoolean;
1580
+ storagePartitioned: z.ZodOptional<z.ZodBoolean>;
1581
+ identity: z.ZodOptional<z.ZodObject<{
1582
+ id: z.ZodString;
1583
+ name: z.ZodString;
1584
+ address: z.ZodString;
1585
+ }, z.core.$strip>>;
1586
+ }, z.core.$strip>;
1587
+ export declare const ConnectResponseMessageSchema: z.ZodObject<{
1588
+ type: z.ZodLiteral<"connectResponse">;
1589
+ requestId: z.ZodString;
1590
+ success: z.ZodBoolean;
1591
+ }, z.core.$strip>;
1592
+ export declare const IsConnectedResponseMessageSchema: z.ZodObject<{
1593
+ type: z.ZodLiteral<"isConnectedResponse">;
1594
+ requestId: z.ZodString;
1595
+ connected: z.ZodBoolean;
1596
+ }, z.core.$strip>;
1597
+ export declare const GetNodeInfoResponseMessageSchema: z.ZodObject<{
1598
+ type: z.ZodLiteral<"getNodeInfoResponse">;
1599
+ requestId: z.ZodString;
1600
+ beeMode: z.ZodString;
1601
+ chequebookEnabled: z.ZodBoolean;
1602
+ swapEnabled: z.ZodBoolean;
1603
+ }, z.core.$strip>;
1604
+ export declare const GsocMineResponseMessageSchema: z.ZodObject<{
1605
+ type: z.ZodLiteral<"gsocMineResponse">;
1606
+ requestId: z.ZodString;
1607
+ signer: z.ZodString;
1608
+ }, z.core.$strip>;
1609
+ export declare const GsocSendResponseMessageSchema: z.ZodObject<{
1610
+ type: z.ZodLiteral<"gsocSendResponse">;
1611
+ requestId: z.ZodString;
1612
+ reference: z.ZodString;
1613
+ tagUid: z.ZodOptional<z.ZodNumber>;
1614
+ }, z.core.$strip>;
1615
+ export declare const SocUploadResponseMessageSchema: z.ZodObject<{
1616
+ type: z.ZodLiteral<"socUploadResponse">;
1617
+ requestId: z.ZodString;
1618
+ reference: z.ZodString;
1619
+ tagUid: z.ZodOptional<z.ZodNumber>;
1620
+ encryptionKey: z.ZodString;
1621
+ owner: z.ZodString;
1622
+ }, z.core.$strip>;
1623
+ export declare const SocRawUploadResponseMessageSchema: z.ZodObject<{
1624
+ type: z.ZodLiteral<"socRawUploadResponse">;
1625
+ requestId: z.ZodString;
1626
+ reference: z.ZodString;
1627
+ tagUid: z.ZodOptional<z.ZodNumber>;
1628
+ encryptionKey: z.ZodOptional<z.ZodString>;
1629
+ owner: z.ZodString;
1630
+ }, z.core.$strip>;
1631
+ export declare const SocDownloadResponseMessageSchema: z.ZodObject<{
1632
+ type: z.ZodLiteral<"socDownloadResponse">;
1633
+ requestId: z.ZodString;
1634
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1635
+ identifier: z.ZodString;
1636
+ signature: z.ZodString;
1637
+ span: z.ZodNumber;
1638
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1639
+ address: z.ZodString;
1640
+ owner: z.ZodString;
1641
+ }, z.core.$strip>;
1642
+ export declare const SocRawDownloadResponseMessageSchema: z.ZodObject<{
1643
+ type: z.ZodLiteral<"socRawDownloadResponse">;
1644
+ requestId: z.ZodString;
1645
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1646
+ identifier: z.ZodString;
1647
+ signature: z.ZodString;
1648
+ span: z.ZodNumber;
1649
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1650
+ address: z.ZodString;
1651
+ owner: z.ZodString;
1652
+ }, z.core.$strip>;
1653
+ export declare const SocGetOwnerResponseMessageSchema: z.ZodObject<{
1654
+ type: z.ZodLiteral<"socGetOwnerResponse">;
1655
+ requestId: z.ZodString;
1656
+ owner: z.ZodString;
1657
+ }, z.core.$strip>;
1658
+ export declare const EpochFeedDownloadReferenceResponseMessageSchema: z.ZodObject<{
1659
+ type: z.ZodLiteral<"epochFeedDownloadReferenceResponse">;
1660
+ requestId: z.ZodString;
1661
+ reference: z.ZodOptional<z.ZodString>;
1662
+ }, z.core.$strip>;
1663
+ export declare const EpochFeedUploadReferenceResponseMessageSchema: z.ZodObject<{
1664
+ type: z.ZodLiteral<"epochFeedUploadReferenceResponse">;
1665
+ requestId: z.ZodString;
1666
+ socAddress: z.ZodString;
1667
+ encryptionKey: z.ZodOptional<z.ZodString>;
1668
+ epoch: z.ZodObject<{
1669
+ start: z.ZodString;
1670
+ level: z.ZodNumber;
1671
+ }, z.core.$strip>;
1672
+ timestamp: z.ZodString;
1673
+ }, z.core.$strip>;
1674
+ export declare const FeedGetOwnerResponseMessageSchema: z.ZodObject<{
1675
+ type: z.ZodLiteral<"feedGetOwnerResponse">;
1676
+ requestId: z.ZodString;
1677
+ owner: z.ZodString;
1678
+ }, z.core.$strip>;
1679
+ export declare const SequentialFeedGetOwnerResponseMessageSchema: z.ZodObject<{
1680
+ type: z.ZodLiteral<"seqFeedGetOwnerResponse">;
1681
+ requestId: z.ZodString;
1682
+ owner: z.ZodString;
1683
+ }, z.core.$strip>;
1684
+ export declare const SequentialFeedDownloadPayloadResponseMessageSchema: z.ZodObject<{
1685
+ type: z.ZodLiteral<"seqFeedDownloadPayloadResponse">;
1686
+ requestId: z.ZodString;
1687
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1688
+ timestamp: z.ZodOptional<z.ZodNumber>;
1689
+ feedIndex: z.ZodString;
1690
+ feedIndexNext: z.ZodString;
1691
+ }, z.core.$strip>;
1692
+ export declare const SequentialFeedDownloadRawPayloadResponseMessageSchema: z.ZodObject<{
1693
+ type: z.ZodLiteral<"seqFeedDownloadRawPayloadResponse">;
1694
+ requestId: z.ZodString;
1695
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1696
+ timestamp: z.ZodOptional<z.ZodNumber>;
1697
+ feedIndex: z.ZodString;
1698
+ feedIndexNext: z.ZodString;
1699
+ }, z.core.$strip>;
1700
+ export declare const SequentialFeedDownloadReferenceResponseMessageSchema: z.ZodObject<{
1701
+ type: z.ZodLiteral<"seqFeedDownloadReferenceResponse">;
1702
+ requestId: z.ZodString;
1703
+ reference: z.ZodString;
1704
+ feedIndex: z.ZodString;
1705
+ feedIndexNext: z.ZodString;
1706
+ }, z.core.$strip>;
1707
+ export declare const SequentialFeedUploadPayloadResponseMessageSchema: z.ZodObject<{
1708
+ type: z.ZodLiteral<"seqFeedUploadPayloadResponse">;
1709
+ requestId: z.ZodString;
1710
+ reference: z.ZodString;
1711
+ feedIndex: z.ZodString;
1712
+ owner: z.ZodString;
1713
+ encryptionKey: z.ZodOptional<z.ZodString>;
1714
+ tagUid: z.ZodOptional<z.ZodNumber>;
1715
+ }, z.core.$strip>;
1716
+ export declare const SequentialFeedUploadRawPayloadResponseMessageSchema: z.ZodObject<{
1717
+ type: z.ZodLiteral<"seqFeedUploadRawPayloadResponse">;
1718
+ requestId: z.ZodString;
1719
+ reference: z.ZodString;
1720
+ feedIndex: z.ZodString;
1721
+ owner: z.ZodString;
1722
+ encryptionKey: z.ZodOptional<z.ZodString>;
1723
+ tagUid: z.ZodOptional<z.ZodNumber>;
1724
+ }, z.core.$strip>;
1725
+ export declare const SequentialFeedUploadReferenceResponseMessageSchema: z.ZodObject<{
1726
+ type: z.ZodLiteral<"seqFeedUploadReferenceResponse">;
1727
+ requestId: z.ZodString;
1728
+ reference: z.ZodString;
1729
+ feedIndex: z.ZodString;
1730
+ owner: z.ZodString;
1731
+ encryptionKey: z.ZodOptional<z.ZodString>;
1732
+ tagUid: z.ZodOptional<z.ZodNumber>;
1733
+ }, z.core.$strip>;
1734
+ export declare const CreateFeedManifestResponseMessageSchema: z.ZodObject<{
1735
+ type: z.ZodLiteral<"createFeedManifestResponse">;
1736
+ requestId: z.ZodString;
1737
+ reference: z.ZodString;
1738
+ }, z.core.$strip>;
1739
+ export declare const ActUploadDataResponseMessageSchema: z.ZodObject<{
1740
+ type: z.ZodLiteral<"actUploadDataResponse">;
1741
+ requestId: z.ZodString;
1742
+ encryptedReference: z.ZodString;
1743
+ historyReference: z.ZodString;
1744
+ granteeListReference: z.ZodString;
1745
+ publisherPubKey: z.ZodString;
1746
+ actReference: z.ZodString;
1747
+ tagUid: z.ZodOptional<z.ZodNumber>;
1748
+ }, z.core.$strip>;
1749
+ export declare const ActDownloadDataResponseMessageSchema: z.ZodObject<{
1750
+ type: z.ZodLiteral<"actDownloadDataResponse">;
1751
+ requestId: z.ZodString;
1752
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1753
+ }, z.core.$strip>;
1754
+ export declare const ActAddGranteesResponseMessageSchema: z.ZodObject<{
1755
+ type: z.ZodLiteral<"actAddGranteesResponse">;
1756
+ requestId: z.ZodString;
1757
+ historyReference: z.ZodString;
1758
+ granteeListReference: z.ZodString;
1759
+ actReference: z.ZodString;
1760
+ }, z.core.$strip>;
1761
+ export declare const ActRevokeGranteesResponseMessageSchema: z.ZodObject<{
1762
+ type: z.ZodLiteral<"actRevokeGranteesResponse">;
1763
+ requestId: z.ZodString;
1764
+ encryptedReference: z.ZodString;
1765
+ historyReference: z.ZodString;
1766
+ granteeListReference: z.ZodString;
1767
+ actReference: z.ZodString;
1768
+ }, z.core.$strip>;
1769
+ export declare const ActGetGranteesResponseMessageSchema: z.ZodObject<{
1770
+ type: z.ZodLiteral<"actGetGranteesResponse">;
1771
+ requestId: z.ZodString;
1772
+ grantees: z.ZodArray<z.ZodString>;
1773
+ }, z.core.$strip>;
1774
+ export declare const GetPostageBatchResponseMessageSchema: z.ZodObject<{
1775
+ type: z.ZodLiteral<"getPostageBatchResponse">;
1776
+ requestId: z.ZodString;
1777
+ postageBatch: z.ZodOptional<z.ZodObject<{
1778
+ batchID: z.ZodString;
1779
+ utilization: z.ZodNumber;
1780
+ usable: z.ZodBoolean;
1781
+ label: z.ZodString;
1782
+ depth: z.ZodNumber;
1783
+ amount: z.ZodString;
1784
+ bucketDepth: z.ZodNumber;
1785
+ blockNumber: z.ZodNumber;
1786
+ immutableFlag: z.ZodBoolean;
1787
+ exists: z.ZodBoolean;
1788
+ batchTTL: z.ZodOptional<z.ZodNumber>;
1789
+ }, z.core.$strip>>;
1790
+ error: z.ZodOptional<z.ZodString>;
1791
+ }, z.core.$strip>;
1792
+ export declare const IframeToParentMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1793
+ type: z.ZodLiteral<"proxyReady">;
1794
+ authenticated: z.ZodBoolean;
1795
+ parentOrigin: z.ZodString;
1796
+ }, z.core.$strip>, z.ZodObject<{
1797
+ type: z.ZodLiteral<"initError">;
1798
+ error: z.ZodString;
1799
+ }, z.core.$strip>, z.ZodObject<{
1800
+ type: z.ZodLiteral<"authStatusResponse">;
1801
+ requestId: z.ZodString;
1802
+ authenticated: z.ZodBoolean;
1803
+ origin: z.ZodOptional<z.ZodString>;
1804
+ }, z.core.$strip>, z.ZodObject<{
1805
+ type: z.ZodLiteral<"disconnectResponse">;
1806
+ requestId: z.ZodString;
1807
+ success: z.ZodBoolean;
1808
+ }, z.core.$strip>, z.ZodObject<{
1809
+ type: z.ZodLiteral<"authSuccess">;
1810
+ origin: z.ZodString;
1811
+ }, z.core.$strip>, z.ZodObject<{
1812
+ type: z.ZodLiteral<"uploadDataResponse">;
1813
+ requestId: z.ZodString;
1814
+ reference: z.ZodString;
1815
+ tagUid: z.ZodOptional<z.ZodNumber>;
1816
+ }, z.core.$strip>, z.ZodObject<{
1817
+ type: z.ZodLiteral<"downloadDataResponse">;
1818
+ requestId: z.ZodString;
1819
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1820
+ }, z.core.$strip>, z.ZodObject<{
1821
+ type: z.ZodLiteral<"uploadFileResponse">;
1822
+ requestId: z.ZodString;
1823
+ reference: z.ZodString;
1824
+ tagUid: z.ZodOptional<z.ZodNumber>;
1825
+ }, z.core.$strip>, z.ZodObject<{
1826
+ type: z.ZodLiteral<"downloadFileResponse">;
1827
+ requestId: z.ZodString;
1828
+ name: z.ZodString;
1829
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1830
+ }, z.core.$strip>, z.ZodObject<{
1831
+ type: z.ZodLiteral<"uploadChunkResponse">;
1832
+ requestId: z.ZodString;
1833
+ reference: z.ZodString;
1834
+ }, z.core.$strip>, z.ZodObject<{
1835
+ type: z.ZodLiteral<"downloadChunkResponse">;
1836
+ requestId: z.ZodString;
1837
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1838
+ }, z.core.$strip>, z.ZodObject<{
1839
+ type: z.ZodLiteral<"uploadProgress">;
1840
+ requestId: z.ZodString;
1841
+ total: z.ZodNumber;
1842
+ processed: z.ZodNumber;
1843
+ }, z.core.$strip>, z.ZodObject<{
1844
+ type: z.ZodLiteral<"error">;
1845
+ requestId: z.ZodString;
1846
+ error: z.ZodString;
1847
+ }, z.core.$strip>, z.ZodObject<{
1848
+ type: z.ZodLiteral<"connectionInfoResponse">;
1849
+ requestId: z.ZodString;
1850
+ canUpload: z.ZodBoolean;
1851
+ storagePartitioned: z.ZodOptional<z.ZodBoolean>;
1852
+ identity: z.ZodOptional<z.ZodObject<{
1853
+ id: z.ZodString;
1854
+ name: z.ZodString;
1855
+ address: z.ZodString;
1856
+ }, z.core.$strip>>;
1857
+ }, z.core.$strip>, z.ZodObject<{
1858
+ type: z.ZodLiteral<"connectResponse">;
1859
+ requestId: z.ZodString;
1860
+ success: z.ZodBoolean;
1861
+ }, z.core.$strip>, z.ZodObject<{
1862
+ type: z.ZodLiteral<"isConnectedResponse">;
1863
+ requestId: z.ZodString;
1864
+ connected: z.ZodBoolean;
1865
+ }, z.core.$strip>, z.ZodObject<{
1866
+ type: z.ZodLiteral<"getNodeInfoResponse">;
1867
+ requestId: z.ZodString;
1868
+ beeMode: z.ZodString;
1869
+ chequebookEnabled: z.ZodBoolean;
1870
+ swapEnabled: z.ZodBoolean;
1871
+ }, z.core.$strip>, z.ZodObject<{
1872
+ type: z.ZodLiteral<"gsocMineResponse">;
1873
+ requestId: z.ZodString;
1874
+ signer: z.ZodString;
1875
+ }, z.core.$strip>, z.ZodObject<{
1876
+ type: z.ZodLiteral<"gsocSendResponse">;
1877
+ requestId: z.ZodString;
1878
+ reference: z.ZodString;
1879
+ tagUid: z.ZodOptional<z.ZodNumber>;
1880
+ }, z.core.$strip>, z.ZodObject<{
1881
+ type: z.ZodLiteral<"socUploadResponse">;
1882
+ requestId: z.ZodString;
1883
+ reference: z.ZodString;
1884
+ tagUid: z.ZodOptional<z.ZodNumber>;
1885
+ encryptionKey: z.ZodString;
1886
+ owner: z.ZodString;
1887
+ }, z.core.$strip>, z.ZodObject<{
1888
+ type: z.ZodLiteral<"socRawUploadResponse">;
1889
+ requestId: z.ZodString;
1890
+ reference: z.ZodString;
1891
+ tagUid: z.ZodOptional<z.ZodNumber>;
1892
+ encryptionKey: z.ZodOptional<z.ZodString>;
1893
+ owner: z.ZodString;
1894
+ }, z.core.$strip>, z.ZodObject<{
1895
+ type: z.ZodLiteral<"socDownloadResponse">;
1896
+ requestId: z.ZodString;
1897
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1898
+ identifier: z.ZodString;
1899
+ signature: z.ZodString;
1900
+ span: z.ZodNumber;
1901
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1902
+ address: z.ZodString;
1903
+ owner: z.ZodString;
1904
+ }, z.core.$strip>, z.ZodObject<{
1905
+ type: z.ZodLiteral<"socRawDownloadResponse">;
1906
+ requestId: z.ZodString;
1907
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1908
+ identifier: z.ZodString;
1909
+ signature: z.ZodString;
1910
+ span: z.ZodNumber;
1911
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1912
+ address: z.ZodString;
1913
+ owner: z.ZodString;
1914
+ }, z.core.$strip>, z.ZodObject<{
1915
+ type: z.ZodLiteral<"socGetOwnerResponse">;
1916
+ requestId: z.ZodString;
1917
+ owner: z.ZodString;
1918
+ }, z.core.$strip>, z.ZodObject<{
1919
+ type: z.ZodLiteral<"epochFeedDownloadReferenceResponse">;
1920
+ requestId: z.ZodString;
1921
+ reference: z.ZodOptional<z.ZodString>;
1922
+ }, z.core.$strip>, z.ZodObject<{
1923
+ type: z.ZodLiteral<"epochFeedUploadReferenceResponse">;
1924
+ requestId: z.ZodString;
1925
+ socAddress: z.ZodString;
1926
+ encryptionKey: z.ZodOptional<z.ZodString>;
1927
+ epoch: z.ZodObject<{
1928
+ start: z.ZodString;
1929
+ level: z.ZodNumber;
1930
+ }, z.core.$strip>;
1931
+ timestamp: z.ZodString;
1932
+ }, z.core.$strip>, z.ZodObject<{
1933
+ type: z.ZodLiteral<"feedGetOwnerResponse">;
1934
+ requestId: z.ZodString;
1935
+ owner: z.ZodString;
1936
+ }, z.core.$strip>, z.ZodObject<{
1937
+ type: z.ZodLiteral<"seqFeedGetOwnerResponse">;
1938
+ requestId: z.ZodString;
1939
+ owner: z.ZodString;
1940
+ }, z.core.$strip>, z.ZodObject<{
1941
+ type: z.ZodLiteral<"seqFeedDownloadPayloadResponse">;
1942
+ requestId: z.ZodString;
1943
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1944
+ timestamp: z.ZodOptional<z.ZodNumber>;
1945
+ feedIndex: z.ZodString;
1946
+ feedIndexNext: z.ZodString;
1947
+ }, z.core.$strip>, z.ZodObject<{
1948
+ type: z.ZodLiteral<"seqFeedDownloadRawPayloadResponse">;
1949
+ requestId: z.ZodString;
1950
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1951
+ timestamp: z.ZodOptional<z.ZodNumber>;
1952
+ feedIndex: z.ZodString;
1953
+ feedIndexNext: z.ZodString;
1954
+ }, z.core.$strip>, z.ZodObject<{
1955
+ type: z.ZodLiteral<"seqFeedDownloadReferenceResponse">;
1956
+ requestId: z.ZodString;
1957
+ reference: z.ZodString;
1958
+ feedIndex: z.ZodString;
1959
+ feedIndexNext: z.ZodString;
1960
+ }, z.core.$strip>, z.ZodObject<{
1961
+ type: z.ZodLiteral<"seqFeedUploadPayloadResponse">;
1962
+ requestId: z.ZodString;
1963
+ reference: z.ZodString;
1964
+ feedIndex: z.ZodString;
1965
+ owner: z.ZodString;
1966
+ encryptionKey: z.ZodOptional<z.ZodString>;
1967
+ tagUid: z.ZodOptional<z.ZodNumber>;
1968
+ }, z.core.$strip>, z.ZodObject<{
1969
+ type: z.ZodLiteral<"seqFeedUploadRawPayloadResponse">;
1970
+ requestId: z.ZodString;
1971
+ reference: z.ZodString;
1972
+ feedIndex: z.ZodString;
1973
+ owner: z.ZodString;
1974
+ encryptionKey: z.ZodOptional<z.ZodString>;
1975
+ tagUid: z.ZodOptional<z.ZodNumber>;
1976
+ }, z.core.$strip>, z.ZodObject<{
1977
+ type: z.ZodLiteral<"seqFeedUploadReferenceResponse">;
1978
+ requestId: z.ZodString;
1979
+ reference: z.ZodString;
1980
+ feedIndex: z.ZodString;
1981
+ owner: z.ZodString;
1982
+ encryptionKey: z.ZodOptional<z.ZodString>;
1983
+ tagUid: z.ZodOptional<z.ZodNumber>;
1984
+ }, z.core.$strip>, z.ZodObject<{
1985
+ type: z.ZodLiteral<"createFeedManifestResponse">;
1986
+ requestId: z.ZodString;
1987
+ reference: z.ZodString;
1988
+ }, z.core.$strip>, z.ZodObject<{
1989
+ type: z.ZodLiteral<"actUploadDataResponse">;
1990
+ requestId: z.ZodString;
1991
+ encryptedReference: z.ZodString;
1992
+ historyReference: z.ZodString;
1993
+ granteeListReference: z.ZodString;
1994
+ publisherPubKey: z.ZodString;
1995
+ actReference: z.ZodString;
1996
+ tagUid: z.ZodOptional<z.ZodNumber>;
1997
+ }, z.core.$strip>, z.ZodObject<{
1998
+ type: z.ZodLiteral<"actDownloadDataResponse">;
1999
+ requestId: z.ZodString;
2000
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2001
+ }, z.core.$strip>, z.ZodObject<{
2002
+ type: z.ZodLiteral<"actAddGranteesResponse">;
2003
+ requestId: z.ZodString;
2004
+ historyReference: z.ZodString;
2005
+ granteeListReference: z.ZodString;
2006
+ actReference: z.ZodString;
2007
+ }, z.core.$strip>, z.ZodObject<{
2008
+ type: z.ZodLiteral<"actRevokeGranteesResponse">;
2009
+ requestId: z.ZodString;
2010
+ encryptedReference: z.ZodString;
2011
+ historyReference: z.ZodString;
2012
+ granteeListReference: z.ZodString;
2013
+ actReference: z.ZodString;
2014
+ }, z.core.$strip>, z.ZodObject<{
2015
+ type: z.ZodLiteral<"actGetGranteesResponse">;
2016
+ requestId: z.ZodString;
2017
+ grantees: z.ZodArray<z.ZodString>;
2018
+ }, z.core.$strip>, z.ZodObject<{
2019
+ type: z.ZodLiteral<"getPostageBatchResponse">;
2020
+ requestId: z.ZodString;
2021
+ postageBatch: z.ZodOptional<z.ZodObject<{
2022
+ batchID: z.ZodString;
2023
+ utilization: z.ZodNumber;
2024
+ usable: z.ZodBoolean;
2025
+ label: z.ZodString;
2026
+ depth: z.ZodNumber;
2027
+ amount: z.ZodString;
2028
+ bucketDepth: z.ZodNumber;
2029
+ blockNumber: z.ZodNumber;
2030
+ immutableFlag: z.ZodBoolean;
2031
+ exists: z.ZodBoolean;
2032
+ batchTTL: z.ZodOptional<z.ZodNumber>;
2033
+ }, z.core.$strip>>;
2034
+ error: z.ZodOptional<z.ZodString>;
2035
+ }, z.core.$strip>], "type">;
2036
+ export type ProxyReadyMessage = z.infer<typeof ProxyReadyMessageSchema>;
2037
+ export type InitErrorMessage = z.infer<typeof InitErrorMessageSchema>;
2038
+ export type AuthStatusResponseMessage = z.infer<typeof AuthStatusResponseMessageSchema>;
2039
+ export type DisconnectResponseMessage = z.infer<typeof DisconnectResponseMessageSchema>;
2040
+ export type AuthSuccessMessage = z.infer<typeof AuthSuccessMessageSchema>;
2041
+ export type UploadDataResponseMessage = z.infer<typeof UploadDataResponseMessageSchema>;
2042
+ export type DownloadDataResponseMessage = z.infer<typeof DownloadDataResponseMessageSchema>;
2043
+ export type UploadFileResponseMessage = z.infer<typeof UploadFileResponseMessageSchema>;
2044
+ export type DownloadFileResponseMessage = z.infer<typeof DownloadFileResponseMessageSchema>;
2045
+ export type UploadChunkResponseMessage = z.infer<typeof UploadChunkResponseMessageSchema>;
2046
+ export type DownloadChunkResponseMessage = z.infer<typeof DownloadChunkResponseMessageSchema>;
2047
+ export type UploadProgressMessage = z.infer<typeof UploadProgressMessageSchema>;
2048
+ export type ErrorMessage = z.infer<typeof ErrorMessageSchema>;
2049
+ export type ConnectionInfoResponseMessage = z.infer<typeof ConnectionInfoResponseMessageSchema>;
2050
+ export type ConnectResponseMessage = z.infer<typeof ConnectResponseMessageSchema>;
2051
+ export type IsConnectedResponseMessage = z.infer<typeof IsConnectedResponseMessageSchema>;
2052
+ export type GetNodeInfoResponseMessage = z.infer<typeof GetNodeInfoResponseMessageSchema>;
2053
+ export type GsocMineResponseMessage = z.infer<typeof GsocMineResponseMessageSchema>;
2054
+ export type GsocSendResponseMessage = z.infer<typeof GsocSendResponseMessageSchema>;
2055
+ export type SocUploadResponseMessage = z.infer<typeof SocUploadResponseMessageSchema>;
2056
+ export type SocRawUploadResponseMessage = z.infer<typeof SocRawUploadResponseMessageSchema>;
2057
+ export type SocDownloadResponseMessage = z.infer<typeof SocDownloadResponseMessageSchema>;
2058
+ export type SocRawDownloadResponseMessage = z.infer<typeof SocRawDownloadResponseMessageSchema>;
2059
+ export type SocGetOwnerResponseMessage = z.infer<typeof SocGetOwnerResponseMessageSchema>;
2060
+ export type EpochFeedDownloadReferenceResponseMessage = z.infer<typeof EpochFeedDownloadReferenceResponseMessageSchema>;
2061
+ export type EpochFeedUploadReferenceResponseMessage = z.infer<typeof EpochFeedUploadReferenceResponseMessageSchema>;
2062
+ export type FeedGetOwnerResponseMessage = z.infer<typeof FeedGetOwnerResponseMessageSchema>;
2063
+ export type SequentialFeedGetOwnerResponseMessage = z.infer<typeof SequentialFeedGetOwnerResponseMessageSchema>;
2064
+ export type SequentialFeedDownloadPayloadResponseMessage = z.infer<typeof SequentialFeedDownloadPayloadResponseMessageSchema>;
2065
+ export type SequentialFeedDownloadRawPayloadResponseMessage = z.infer<typeof SequentialFeedDownloadRawPayloadResponseMessageSchema>;
2066
+ export type SequentialFeedDownloadReferenceResponseMessage = z.infer<typeof SequentialFeedDownloadReferenceResponseMessageSchema>;
2067
+ export type SequentialFeedUploadPayloadResponseMessage = z.infer<typeof SequentialFeedUploadPayloadResponseMessageSchema>;
2068
+ export type SequentialFeedUploadRawPayloadResponseMessage = z.infer<typeof SequentialFeedUploadRawPayloadResponseMessageSchema>;
2069
+ export type SequentialFeedUploadReferenceResponseMessage = z.infer<typeof SequentialFeedUploadReferenceResponseMessageSchema>;
2070
+ export type CreateFeedManifestResponseMessage = z.infer<typeof CreateFeedManifestResponseMessageSchema>;
2071
+ export type ActUploadDataResponseMessage = z.infer<typeof ActUploadDataResponseMessageSchema>;
2072
+ export type ActDownloadDataResponseMessage = z.infer<typeof ActDownloadDataResponseMessageSchema>;
2073
+ export type ActAddGranteesResponseMessage = z.infer<typeof ActAddGranteesResponseMessageSchema>;
2074
+ export type ActRevokeGranteesResponseMessage = z.infer<typeof ActRevokeGranteesResponseMessageSchema>;
2075
+ export type ActGetGranteesResponseMessage = z.infer<typeof ActGetGranteesResponseMessageSchema>;
2076
+ export type GetPostageBatchResponseMessage = z.infer<typeof GetPostageBatchResponseMessageSchema>;
2077
+ export type IframeToParentMessage = z.infer<typeof IframeToParentMessageSchema>;
2078
+ export declare const AuthDataSchema: z.ZodObject<{
2079
+ secret: z.ZodString;
2080
+ postageBatchId: z.ZodOptional<z.ZodString>;
2081
+ signerKey: z.ZodOptional<z.ZodString>;
2082
+ networkSettings: z.ZodOptional<z.ZodObject<{
2083
+ beeNodeUrl: z.ZodString;
2084
+ gnosisRpcUrl: z.ZodString;
2085
+ }, z.core.$strip>>;
2086
+ identityId: z.ZodOptional<z.ZodString>;
2087
+ identityName: z.ZodOptional<z.ZodString>;
2088
+ identityAddress: z.ZodOptional<z.ZodString>;
2089
+ }, z.core.$strip>;
2090
+ export type AuthData = z.infer<typeof AuthDataSchema>;
2091
+ export declare const SetSecretMessageSchema: z.ZodObject<{
2092
+ type: z.ZodLiteral<"setSecret">;
2093
+ appOrigin: z.ZodString;
2094
+ challenge: z.ZodString;
2095
+ data: z.ZodObject<{
2096
+ secret: z.ZodString;
2097
+ postageBatchId: z.ZodOptional<z.ZodString>;
2098
+ signerKey: z.ZodOptional<z.ZodString>;
2099
+ networkSettings: z.ZodOptional<z.ZodObject<{
2100
+ beeNodeUrl: z.ZodString;
2101
+ gnosisRpcUrl: z.ZodString;
2102
+ }, z.core.$strip>>;
2103
+ identityId: z.ZodOptional<z.ZodString>;
2104
+ identityName: z.ZodOptional<z.ZodString>;
2105
+ identityAddress: z.ZodOptional<z.ZodString>;
2106
+ }, z.core.$strip>;
2107
+ }, z.core.$strip>;
2108
+ export declare const PopupToIframeMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2109
+ type: z.ZodLiteral<"setSecret">;
2110
+ appOrigin: z.ZodString;
2111
+ challenge: z.ZodString;
2112
+ data: z.ZodObject<{
2113
+ secret: z.ZodString;
2114
+ postageBatchId: z.ZodOptional<z.ZodString>;
2115
+ signerKey: z.ZodOptional<z.ZodString>;
2116
+ networkSettings: z.ZodOptional<z.ZodObject<{
2117
+ beeNodeUrl: z.ZodString;
2118
+ gnosisRpcUrl: z.ZodString;
2119
+ }, z.core.$strip>>;
2120
+ identityId: z.ZodOptional<z.ZodString>;
2121
+ identityName: z.ZodOptional<z.ZodString>;
2122
+ identityAddress: z.ZodOptional<z.ZodString>;
2123
+ }, z.core.$strip>;
2124
+ }, z.core.$strip>], "type">;
2125
+ export type SetSecretMessage = z.infer<typeof SetSecretMessageSchema>;
2126
+ export type PopupToIframeMessage = z.infer<typeof PopupToIframeMessageSchema>;
2127
+ export interface ClientOptions {
2128
+ iframeOrigin: string;
2129
+ iframePath?: string;
2130
+ timeout?: number;
2131
+ initializationTimeout?: number;
2132
+ onAuthChange?: (authenticated: boolean) => void;
2133
+ popupMode?: "popup" | "window";
2134
+ metadata: AppMetadata;
2135
+ buttonConfig?: ButtonConfig;
2136
+ containerId?: string;
2137
+ }
2138
+ export interface AuthOptions {
2139
+ masterKeyStorageKey?: string;
2140
+ }
2141
+ /**
2142
+ * Configuration options for the connect() method.
2143
+ */
2144
+ export interface ConnectOptions {
2145
+ /**
2146
+ * When true, shows the agent sign-up option on the connect page.
2147
+ * Agents are automated services that can perform operations on behalf of users.
2148
+ */
2149
+ agent?: boolean;
2150
+ /**
2151
+ * Override popup mode for this connect call.
2152
+ * "popup" opens a sized popup window, "window" opens a full browser tab.
2153
+ */
2154
+ popupMode?: "popup" | "window";
2155
+ }
2156
+ export type { PasskeyAccount, EthereumAccount, AgentAccount, Account, Identity, ConnectedApp, PostageStamp, } from "./schemas";
2157
+ //# sourceMappingURL=types.d.ts.map