@solarpunkltd/swarm-id 0.0.0-stage → 0.8.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 (111) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +89 -2
  3. package/dist/bus/account-bus.d.ts +104 -0
  4. package/dist/bus/account-delta.d.ts +52 -0
  5. package/dist/bus/bus-context.d.ts +7 -0
  6. package/dist/bus/envelope.d.ts +9 -0
  7. package/dist/bus/messages.d.ts +241 -0
  8. package/dist/bus/presence.d.ts +62 -0
  9. package/dist/bus/signaling-transport.d.ts +79 -0
  10. package/dist/chunk/bmt.d.ts +16 -0
  11. package/dist/chunk/cac.d.ts +17 -0
  12. package/dist/chunk/constants.d.ts +10 -0
  13. package/dist/chunk/encrypted-cac.d.ts +47 -0
  14. package/dist/chunk/encryption.d.ts +85 -0
  15. package/dist/chunk/index.d.ts +5 -0
  16. package/dist/chunks/chat-binding-DO5aGhPl.js +23 -0
  17. package/dist/chunks/chat-binding-DO5aGhPl.js.map +1 -0
  18. package/dist/errors.d.ts +35 -0
  19. package/dist/index.d.ts +27 -0
  20. package/dist/internal.d.ts +49 -0
  21. package/dist/internal.esm.js +2 -0
  22. package/dist/internal.esm.js.map +1 -0
  23. package/dist/proxy/act/act.d.ts +58 -0
  24. package/dist/proxy/act/crypto.d.ts +46 -0
  25. package/dist/proxy/act/grantee-list.d.ts +81 -0
  26. package/dist/proxy/act/history.d.ts +182 -0
  27. package/dist/proxy/act/index.d.ts +114 -0
  28. package/dist/proxy/app-stamp-limits.d.ts +62 -0
  29. package/dist/proxy/chunk-upload-stream.d.ts +37 -0
  30. package/dist/proxy/chunking.d.ts +15 -0
  31. package/dist/proxy/collection.d.ts +38 -0
  32. package/dist/proxy/download-data.d.ts +27 -0
  33. package/dist/proxy/errors.d.ts +8 -0
  34. package/dist/proxy/feed-manifest.d.ts +60 -0
  35. package/dist/proxy/feeds/epochs/async-finder.d.ts +70 -0
  36. package/dist/proxy/feeds/epochs/epoch.d.ts +79 -0
  37. package/dist/proxy/feeds/epochs/finder.d.ts +60 -0
  38. package/dist/proxy/feeds/epochs/index.d.ts +30 -0
  39. package/dist/proxy/feeds/epochs/types.d.ts +110 -0
  40. package/dist/proxy/feeds/epochs/updater.d.ts +76 -0
  41. package/dist/proxy/feeds/epochs/utils.d.ts +21 -0
  42. package/dist/proxy/feeds/index.d.ts +4 -0
  43. package/dist/proxy/feeds/sequence/async-finder.d.ts +14 -0
  44. package/dist/proxy/feeds/sequence/finder.d.ts +11 -0
  45. package/dist/proxy/feeds/sequence/index.d.ts +22 -0
  46. package/dist/proxy/feeds/sequence/types.d.ts +82 -0
  47. package/dist/proxy/feeds/sequence/updater.d.ts +20 -0
  48. package/dist/proxy/index.d.ts +5 -0
  49. package/dist/proxy/manifest-builder.d.ts +164 -0
  50. package/dist/proxy/mantaray.d.ts +76 -0
  51. package/dist/proxy/soc-restamp-slots.d.ts +48 -0
  52. package/dist/proxy/stamp-chunk.d.ts +45 -0
  53. package/dist/proxy/stamp-worker-handler.d.ts +32 -0
  54. package/dist/proxy/stamp-worker-pool.d.ts +52 -0
  55. package/dist/proxy/stamp-worker.d.ts +1 -0
  56. package/dist/proxy/types.d.ts +38 -0
  57. package/dist/proxy/upload.d.ts +207 -0
  58. package/dist/schemas.d.ts +671 -0
  59. package/dist/stamp-worker.iife.js +1 -0
  60. package/dist/storage/debounced-uploader.d.ts +61 -0
  61. package/dist/storage/utilization-store.d.ts +113 -0
  62. package/dist/swarm-id-client.d.ts +1143 -0
  63. package/dist/swarm-id-proxy.d.ts +1079 -0
  64. package/dist/swarm-id.esm.js +2 -0
  65. package/dist/swarm-id.esm.js.map +1 -0
  66. package/dist/sync/batch-write-coordinator.d.ts +348 -0
  67. package/dist/sync/device-roster.d.ts +59 -0
  68. package/dist/sync/device-state.d.ts +199 -0
  69. package/dist/sync/fold-account-from-swarm.d.ts +53 -0
  70. package/dist/sync/index.d.ts +11 -0
  71. package/dist/sync/merge-snapshot.d.ts +57 -0
  72. package/dist/sync/partition-intent.d.ts +218 -0
  73. package/dist/sync/partition-lease.d.ts +531 -0
  74. package/dist/sync/partition-lock.d.ts +218 -0
  75. package/dist/sync/partition-state.d.ts +287 -0
  76. package/dist/sync/session-check.d.ts +29 -0
  77. package/dist/sync/store-interfaces.d.ts +48 -0
  78. package/dist/sync/sync-account.d.ts +45 -0
  79. package/dist/sync/timing-constants.d.ts +32 -0
  80. package/dist/sync/types.d.ts +18 -0
  81. package/dist/types.d.ts +3042 -0
  82. package/dist/utils/account-state-snapshot.d.ts +43 -0
  83. package/dist/utils/active-devices.d.ts +45 -0
  84. package/dist/utils/avatar.d.ts +30 -0
  85. package/dist/utils/batch-utilization.d.ts +840 -0
  86. package/dist/utils/batch-write-lock.d.ts +12 -0
  87. package/dist/utils/bee-error.d.ts +11 -0
  88. package/dist/utils/chat-binding.d.ts +113 -0
  89. package/dist/utils/coalesced-task.d.ts +28 -0
  90. package/dist/utils/collection.d.ts +6 -0
  91. package/dist/utils/connection-info.d.ts +11 -0
  92. package/dist/utils/constants.d.ts +28 -0
  93. package/dist/utils/device-id.d.ts +109 -0
  94. package/dist/utils/hex.d.ts +31 -0
  95. package/dist/utils/json-rpc.d.ts +34 -0
  96. package/dist/utils/key-derivation.d.ts +124 -0
  97. package/dist/utils/lock-soc.d.ts +35 -0
  98. package/dist/utils/postage-contract.d.ts +143 -0
  99. package/dist/utils/postage-stamp-association.d.ts +39 -0
  100. package/dist/utils/promise.d.ts +37 -0
  101. package/dist/utils/sealed-values.d.ts +23 -0
  102. package/dist/utils/seed-encryption.d.ts +17 -0
  103. package/dist/utils/site-allow-list.d.ts +54 -0
  104. package/dist/utils/stamp-lifespan.d.ts +37 -0
  105. package/dist/utils/storage-managers.d.ts +62 -0
  106. package/dist/utils/storage-probe.d.ts +40 -0
  107. package/dist/utils/tag.d.ts +11 -0
  108. package/dist/utils/ttl.d.ts +120 -0
  109. package/dist/utils/url.d.ts +55 -0
  110. package/dist/utils/versioned-storage.d.ts +183 -0
  111. package/package.json +91 -3
@@ -0,0 +1,3042 @@
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 STORAGE_KEY_ACCOUNTS = "swarm-id-accounts";
6
+ export declare const STORAGE_KEY_NETWORK_SETTINGS = "swarm-id-network-settings";
7
+ export declare const STORAGE_CHALLENGE_KEY = "swarm-storage-challenge";
8
+ /** The cached allow list of sites (`utils/site-allow-list.ts`). */
9
+ export declare const STORAGE_KEY_SITE_ALLOW_LIST = "swarm-id-site-allow-list";
10
+ export declare const STORAGE_KEY_LEASE_CACHE_PREFIX = "swarm-id-lease-v2";
11
+ export declare const STORAGE_KEY_APP_STAMP_USAGE_PREFIX = "swarm-id-app-stamp-usage";
12
+ export declare const STORAGE_KEY_SOC_RESTAMP_SLOTS_PREFIX = "swarm-id-soc-restamp-slots";
13
+ /**
14
+ * Key PREFIX for the handed-over session a PARTITIONED proxy keeps, so a reload
15
+ * does not log the user out of the dApp (#635). The key itself is per dApp
16
+ * origin — see {@link partitionSessionStorageKey}, which is what every reader
17
+ * and writer calls.
18
+ *
19
+ * Its own key rather than the accounts document, and not by preference:
20
+ * `LocalAccountSchemaV1` quarantines vault-less records, and the hydrated
21
+ * partition account carries inert vault placeholders by design — it would fail
22
+ * to parse on load. This is a session, and takes a session's shape.
23
+ *
24
+ * Written only from a partitioned context, where the store is already scoped to
25
+ * (this origin, the embedding page's origin) by the browser. `parentOrigin` is
26
+ * recorded anyway so a record can be refused rather than trusted on the strength
27
+ * of where it was found.
28
+ */
29
+ export declare const STORAGE_KEY_PARTITION_SESSION = "swarm-id-partition-session";
30
+ /**
31
+ * localStorage key for the proxy's partition-lease cache (a
32
+ * `PartitionLeaseStateSnapshot`), per account AND per batch. Same-origin tabs
33
+ * share this, so the SwarmID UI reads it to render the *self* device's active
34
+ * partition without a Swarm round-trip. The proxy is the sole writer.
35
+ *
36
+ * The batch is in the key because the lease is: a lane is one partition of one
37
+ * batch (#589), and an account has two coordinators whenever a dApp carries a
38
+ * per-app stamp override. Under one key per account they shared a slot and
39
+ * overwrote each other — safe, since `PartitionLease.hydrate` refuses a
40
+ * snapshot whose `batchId` differs, but a hint that stops hinting exactly when
41
+ * there are two writers to hint for is no hint. The `batchId` inside the record
42
+ * stays as the second line of that pair of braces, as `parentOrigin` does in
43
+ * the partitioned session (#671).
44
+ */
45
+ export declare function leaseCacheStorageKey(accountId: string, batchId: string): string;
46
+ /**
47
+ * Where the frame counts what one app has stamped with one of the account's
48
+ * stamps (`proxy/app-stamp-limits.ts`), per app origin and per batch, so the
49
+ * limits survive a reload and a new stamp starts a new count.
50
+ */
51
+ export declare function appStampUsageStorageKey(appOrigin: string, batchId: string): string;
52
+ /**
53
+ * Where the frame keeps which slot each single-owner chunk one app had
54
+ * stamped went to (`proxy/soc-restamp-slots.ts`), per app origin and per
55
+ * batch, so stamping the same address again after a reload reuses the slot.
56
+ */
57
+ export declare function socRestampSlotsStorageKey(appOrigin: string, batchId: string): string;
58
+ /**
59
+ * Where a partitioned session is stored, per dApp origin.
60
+ *
61
+ * The store this lands in is partitioned by (iframe origin, top-level SITE),
62
+ * and a site ignores subdomains and ports — so `app1.foo.com` and
63
+ * `app2.foo.com`, or two localhost ports, share it. Under one fixed name the
64
+ * second dApp to connect overwrote the first one's session, and the first came
65
+ * back to a record belonging to somebody else, read it as "no session", and
66
+ * needed the popup again — both of them, on every reload (#671). The origin
67
+ * belongs in the key, as it already does in the stamper's.
68
+ */
69
+ export declare function partitionSessionStorageKey(parentOrigin: string): string;
70
+ export declare const UploadOptionsSchema: z.ZodOptional<z.ZodObject<{
71
+ pin: z.ZodOptional<z.ZodBoolean>;
72
+ encrypt: z.ZodOptional<z.ZodBoolean>;
73
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
74
+ tag: z.ZodOptional<z.ZodNumber>;
75
+ deferred: z.ZodOptional<z.ZodBoolean>;
76
+ }, z.core.$strip>>;
77
+ export declare const ActPublisherSchema: z.ZodEnum<{
78
+ app: "app";
79
+ identity: "identity";
80
+ }>;
81
+ export type ActPublisher = z.infer<typeof ActPublisherSchema>;
82
+ export declare const ActUploadOptionsSchema: z.ZodOptional<z.ZodObject<{
83
+ pin: z.ZodOptional<z.ZodBoolean>;
84
+ encrypt: z.ZodOptional<z.ZodBoolean>;
85
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
86
+ tag: z.ZodOptional<z.ZodNumber>;
87
+ deferred: z.ZodOptional<z.ZodBoolean>;
88
+ beeCompatible: z.ZodOptional<z.ZodBoolean>;
89
+ publisher: z.ZodOptional<z.ZodEnum<{
90
+ app: "app";
91
+ identity: "identity";
92
+ }>>;
93
+ }, z.core.$strip>>;
94
+ export declare const RequestOptionsSchema: z.ZodOptional<z.ZodObject<{
95
+ timeout: z.ZodOptional<z.ZodNumber>;
96
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
97
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
98
+ }, z.core.$strip>>;
99
+ export declare const DownloadOptionsSchema: z.ZodOptional<z.ZodObject<{
100
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
101
+ fallback: z.ZodOptional<z.ZodBoolean>;
102
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
103
+ actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
104
+ actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
105
+ actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
106
+ }, z.core.$strip>>;
107
+ export interface UploadProgress {
108
+ total: number;
109
+ processed: number;
110
+ }
111
+ export interface UploadOptions {
112
+ /** Pin on the user's own node. Ignored on a subsidised gateway (#752). */
113
+ pin?: boolean;
114
+ encrypt?: boolean;
115
+ encryptManifest?: boolean;
116
+ tag?: number;
117
+ deferred?: boolean;
118
+ onProgress?: (progress: UploadProgress) => void;
119
+ /** Use WebSocket for chunk upload instead of HTTP. Per-chunk stamping is used. */
120
+ useWebSocket?: boolean;
121
+ /** Use Web Workers for parallel stamp signing. Speeds up upload on multi-core CPUs. */
122
+ useWorkers?: boolean;
123
+ /** Number of Web Workers to use for parallel stamp signing. Defaults to navigator.hardwareConcurrency. */
124
+ workerCount?: number;
125
+ /** Upload concurrency (parallel in-flight chunks). HTTP default: 8, WebSocket default: 32. */
126
+ concurrency?: number;
127
+ }
128
+ export type RequestOptions = z.infer<typeof RequestOptionsSchema>;
129
+ export type DownloadOptions = z.infer<typeof DownloadOptionsSchema>;
130
+ /**
131
+ * Options for `uploadFiles` (#750). Content is encrypted unless `encrypt` is
132
+ * `false`; the manifest — and so the root reference — is encrypted unless
133
+ * `encrypt` or `encryptManifest` is `false`. `onProgress` counts files.
134
+ */
135
+ export interface UploadFilesOptions extends Pick<UploadOptions, "pin" | "encrypt" | "encryptManifest" | "tag" | "deferred" | "onProgress" | "useWorkers" | "workerCount"> {
136
+ /** Served for the bare `/bzz/<reference>/` (`website-index-document`) */
137
+ indexDocument?: string;
138
+ /** Served for a path that is not in the folder (`website-error-document`) */
139
+ errorDocument?: string;
140
+ }
141
+ /** One file to upload with `uploadFiles`, when not handing over `File`s */
142
+ export interface CollectionFileInput {
143
+ /** Path inside the folder, `/`-separated, no leading slash */
144
+ path: string;
145
+ file: Blob;
146
+ }
147
+ /** One file of a folder, as it crosses the bridge */
148
+ export declare const CollectionFileSchema: z.ZodObject<{
149
+ path: z.ZodString;
150
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
151
+ contentType: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strip>;
153
+ export type CollectionFile = z.infer<typeof CollectionFileSchema>;
154
+ /** One file of a listed folder. `reference` is readable with `downloadData` */
155
+ export declare const CollectionEntrySchema: z.ZodObject<{
156
+ path: z.ZodString;
157
+ reference: z.ZodString;
158
+ contentType: z.ZodOptional<z.ZodString>;
159
+ }, z.core.$strip>;
160
+ export type CollectionEntry = z.infer<typeof CollectionEntrySchema>;
161
+ export interface ActUploadOptions extends UploadOptions {
162
+ beeCompatible?: boolean;
163
+ /**
164
+ * Which of the user's keys publishes the ACT (default `"app"`, the
165
+ * origin-bound app key). `"identity"` publishes with the account-wide
166
+ * sharing key, so any of the user's apps can manage the grantees later.
167
+ */
168
+ publisher?: ActPublisher;
169
+ }
170
+ export declare const UploadResultSchema: z.ZodObject<{
171
+ reference: z.ZodString;
172
+ tagUid: z.ZodOptional<z.ZodNumber>;
173
+ }, z.core.$strip>;
174
+ export declare const SocUploadResultSchema: z.ZodObject<{
175
+ reference: z.ZodString;
176
+ tagUid: z.ZodOptional<z.ZodNumber>;
177
+ encryptionKey: z.ZodOptional<z.ZodString>;
178
+ owner: z.ZodString;
179
+ }, z.core.$strip>;
180
+ export declare const SocRawUploadResultSchema: z.ZodObject<{
181
+ reference: z.ZodString;
182
+ tagUid: z.ZodOptional<z.ZodNumber>;
183
+ encryptionKey: z.ZodOptional<z.ZodString>;
184
+ owner: z.ZodString;
185
+ }, z.core.$strip>;
186
+ export declare const FileDataSchema: z.ZodObject<{
187
+ name: z.ZodString;
188
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
189
+ }, z.core.$strip>;
190
+ export declare const PostageBatchSchema: z.ZodObject<{
191
+ batchID: z.ZodString;
192
+ utilization: z.ZodNumber;
193
+ usable: z.ZodBoolean;
194
+ label: z.ZodString;
195
+ depth: z.ZodNumber;
196
+ amount: z.ZodString;
197
+ bucketDepth: z.ZodNumber;
198
+ blockNumber: z.ZodNumber;
199
+ immutableFlag: z.ZodBoolean;
200
+ exists: z.ZodBoolean;
201
+ batchTTL: z.ZodOptional<z.ZodNumber>;
202
+ }, z.core.$strip>;
203
+ export type UploadResult = z.infer<typeof UploadResultSchema>;
204
+ export type SocUploadResult = z.infer<typeof SocUploadResultSchema>;
205
+ export type SocRawUploadResult = z.infer<typeof SocRawUploadResultSchema>;
206
+ export type FileData = z.infer<typeof FileDataSchema>;
207
+ export type PostageBatch = z.infer<typeof PostageBatchSchema>;
208
+ export interface SingleOwnerChunk {
209
+ data: Uint8Array;
210
+ identifier: Identifier;
211
+ signature: Signature;
212
+ span: number;
213
+ payload: Uint8Array;
214
+ address: Reference;
215
+ owner: Address;
216
+ }
217
+ /**
218
+ * The chunk `SwarmIdClient.stampChunk` asks the frame to stamp. `data` is the
219
+ * whole chunk body, the 8-byte little-endian span followed by the payload.
220
+ */
221
+ export type StampChunkInput = {
222
+ kind: "content";
223
+ data: Uint8Array;
224
+ } | {
225
+ kind: "soc";
226
+ identifier: Identifier | Uint8Array | string;
227
+ data: Uint8Array;
228
+ /** `"app"` signs with the site's own app secret */
229
+ signer: "app" | {
230
+ privateKey: Uint8Array | string;
231
+ };
232
+ };
233
+ /** What `SwarmIdClient.stampChunk` returns, enough to send the exact chunk */
234
+ export interface StampedChunk {
235
+ /** The chunk's address, computed by the frame */
236
+ address: string;
237
+ /** The postage stamp as hex, the value of Bee's `swarm-postage-stamp` header */
238
+ stamp: string;
239
+ /** For a single-owner chunk: the owner the frame signed as */
240
+ owner?: Address;
241
+ /** For a single-owner chunk: the signature, for `/soc/<owner>/<id>?sig=` */
242
+ signature?: Signature;
243
+ }
244
+ /**
245
+ * Interface for downloading single owner chunks (SOC).
246
+ *
247
+ * `download` expects an encryption key and returns decrypted content.
248
+ * `rawDownload` returns unencrypted SOC data.
249
+ */
250
+ export interface SOCReader {
251
+ /**
252
+ * Resolve SOC owner address. For SOCWriter without signer, this may be
253
+ * resolved via the proxy.
254
+ */
255
+ getOwner: () => Promise<Address>;
256
+ /**
257
+ * Download an unencrypted SOC by identifier.
258
+ *
259
+ * @param identifier - SOC identifier (32-byte value)
260
+ */
261
+ rawDownload: (identifier: Identifier | Uint8Array | string, encryptionKey?: Uint8Array | string) => Promise<SingleOwnerChunk>;
262
+ /**
263
+ * Download and decrypt an encrypted SOC by identifier.
264
+ *
265
+ * @param identifier - SOC identifier (32-byte value)
266
+ * @param encryptionKey - 32-byte encryption key returned by upload
267
+ */
268
+ download: (identifier: Identifier | Uint8Array | string, encryptionKey: Uint8Array | string) => Promise<SingleOwnerChunk>;
269
+ }
270
+ /**
271
+ * Interface for downloading and uploading single owner chunks (SOC).
272
+ *
273
+ * `upload` creates an encrypted SOC by default.
274
+ * `rawUpload` creates an unencrypted SOC.
275
+ */
276
+ export interface SOCWriter extends SOCReader {
277
+ /**
278
+ * Upload an encrypted SOC.
279
+ *
280
+ * @param identifier - SOC identifier (32-byte value)
281
+ * @param data - SOC payload data (1-4096 bytes)
282
+ * @param options - Optional upload configuration
283
+ */
284
+ upload: (identifier: Identifier | Uint8Array | string, data: Uint8Array, options?: UploadOptions) => Promise<SocUploadResult>;
285
+ /**
286
+ * Upload an unencrypted SOC.
287
+ *
288
+ * @param identifier - SOC identifier (32-byte value)
289
+ * @param data - SOC payload data (1-4096 bytes)
290
+ * @param options - Optional upload configuration
291
+ */
292
+ rawUpload: (identifier: Identifier | Uint8Array | string, data: Uint8Array, options?: UploadOptions) => Promise<SocRawUploadResult>;
293
+ }
294
+ /**
295
+ * Options for epoch feed reader creation.
296
+ */
297
+ export interface FeedReaderOptions {
298
+ /** Feed topic (32 bytes). */
299
+ topic: Identifier | Uint8Array | string | BeeTopic;
300
+ /** Optional feed owner address (20 bytes). */
301
+ owner?: Address | Uint8Array | string;
302
+ }
303
+ /**
304
+ * Options for epoch feed writer creation.
305
+ */
306
+ export interface FeedWriterOptions {
307
+ /** Feed topic (32 bytes). */
308
+ topic: Identifier | Uint8Array | string | BeeTopic;
309
+ /** Optional signer private key (32 bytes). */
310
+ signer?: BeePrivateKey | Uint8Array | string;
311
+ }
312
+ /**
313
+ * Epoch feed reader interface.
314
+ */
315
+ export interface EpochFeedDownloadOptions {
316
+ /** Unix timestamp (seconds). */
317
+ at?: bigint | number | string;
318
+ /** Hint of latest known update timestamp. */
319
+ after?: bigint | number | string;
320
+ /** Optional encryption key for encrypted feed updates. */
321
+ encryptionKey?: Uint8Array | string;
322
+ }
323
+ export interface EpochFeedUploadOptions {
324
+ /** Unix timestamp (seconds). */
325
+ at?: bigint | number | string;
326
+ /** Optional upload options for the payload upload. */
327
+ uploadOptions?: UploadOptions;
328
+ /** Whether to encrypt payload uploads (defaults to true). */
329
+ encrypt?: boolean;
330
+ /** Optional encryption key for encrypted feed updates. */
331
+ encryptionKey?: Uint8Array | string;
332
+ /** Optional hints from previous update for stateless epoch calculation. */
333
+ hints?: {
334
+ lastEpoch?: {
335
+ start: string;
336
+ level: number;
337
+ };
338
+ lastTimestamp?: string;
339
+ };
340
+ }
341
+ export interface EpochFeedDownloadPayloadResult {
342
+ /** Downloaded payload, if available. */
343
+ payload?: Uint8Array;
344
+ /** Reference used to download the payload, if available. */
345
+ reference?: Reference;
346
+ /** Encryption key (hex) if the reference is encrypted. */
347
+ encryptionKey?: string;
348
+ }
349
+ export interface EpochFeedDownloadReferenceResult {
350
+ /** Swarm reference (hex), if found. */
351
+ reference?: Reference;
352
+ /** Encryption key (hex) if the reference is encrypted. */
353
+ encryptionKey?: string;
354
+ }
355
+ export interface EpochFeedUploadResult {
356
+ /** SOC address for the feed update. */
357
+ socAddress: Reference;
358
+ /** Reference stored in the feed update. */
359
+ reference: Reference;
360
+ /** Encryption key (hex) if the reference is encrypted. */
361
+ encryptionKey?: string;
362
+ /** Epoch used for this update (for caller to store as hint) */
363
+ epoch: {
364
+ start: string;
365
+ level: number;
366
+ };
367
+ /** Timestamp used (stringified bigint) */
368
+ timestamp: string;
369
+ }
370
+ /**
371
+ * Epoch feed reader interface.
372
+ */
373
+ export interface FeedReader {
374
+ /** Resolve feed owner address (20 bytes). */
375
+ getOwner: () => Promise<Address>;
376
+ /** Download the reference for the given timestamp. */
377
+ downloadReference: (options?: EpochFeedDownloadOptions) => Promise<EpochFeedDownloadReferenceResult>;
378
+ /** Download the payload for the given timestamp. */
379
+ downloadPayload: (options?: EpochFeedDownloadOptions) => Promise<EpochFeedDownloadPayloadResult>;
380
+ /** Download unencrypted reference (for /bzz access). */
381
+ downloadRawReference: (options?: Omit<EpochFeedDownloadOptions, "encryptionKey">) => Promise<EpochFeedDownloadReferenceResult>;
382
+ /** Download unencrypted payload (for /bzz access). */
383
+ downloadRawPayload: (options?: Omit<EpochFeedDownloadOptions, "encryptionKey">) => Promise<EpochFeedDownloadPayloadResult>;
384
+ }
385
+ /**
386
+ * Epoch feed writer interface.
387
+ */
388
+ export interface FeedWriter extends FeedReader {
389
+ /** Upload payload data and update the feed. */
390
+ uploadPayload: (data: Uint8Array | string, options?: EpochFeedUploadOptions) => Promise<EpochFeedUploadResult>;
391
+ /** Update the feed with a reference. */
392
+ uploadReference: (reference: Uint8Array | string, options?: EpochFeedUploadOptions) => Promise<EpochFeedUploadResult>;
393
+ /** Upload unencrypted payload (for /bzz access). */
394
+ uploadRawPayload: (data: Uint8Array | string, options?: Omit<EpochFeedUploadOptions, "encryptionKey" | "encrypt">) => Promise<EpochFeedUploadResult>;
395
+ /** Upload unencrypted reference (for /bzz access). */
396
+ uploadRawReference: (reference: Uint8Array | string, options?: Omit<EpochFeedUploadOptions, "encryptionKey">) => Promise<EpochFeedUploadResult>;
397
+ }
398
+ /**
399
+ * Options for sequential feed reader creation.
400
+ */
401
+ export interface SequentialFeedReaderOptions {
402
+ /** Feed topic (32 bytes). */
403
+ topic: Identifier | Uint8Array | string | BeeTopic;
404
+ /** Optional feed owner address (20 bytes). */
405
+ owner?: Address | Uint8Array | string;
406
+ }
407
+ /**
408
+ * Options for sequential feed writer creation.
409
+ */
410
+ export interface SequentialFeedWriterOptions {
411
+ /** Feed topic (32 bytes). */
412
+ topic: Identifier | Uint8Array | string | BeeTopic;
413
+ /** Optional signer private key (32 bytes). */
414
+ signer?: BeePrivateKey | Uint8Array | string;
415
+ }
416
+ /**
417
+ * Options for sequential feed lookups/updates.
418
+ */
419
+ export interface SequentialFeedUpdateOptions {
420
+ /** Specific feed index to read/write. */
421
+ index?: FeedIndex | bigint;
422
+ /** Timestamp (seconds) used for lookup or payload timestamp. */
423
+ at?: Timestamp | bigint;
424
+ /** Whether payload is prefixed with timestamp (default true). */
425
+ hasTimestamp?: boolean;
426
+ /** Timeout (ms) for sequential index lookups (default 2000). */
427
+ lookupTimeoutMs?: number;
428
+ }
429
+ /**
430
+ * Options for sequential feed uploads.
431
+ */
432
+ export interface SequentialFeedUploadOptions extends UploadOptions, SequentialFeedUpdateOptions {
433
+ }
434
+ /**
435
+ * Options for sequential feed raw download (encryptionKey in options).
436
+ */
437
+ export interface SequentialFeedDownloadRawOptions extends SequentialFeedUpdateOptions {
438
+ /** Optional encryption key for decrypting encrypted feed updates. */
439
+ encryptionKey?: Uint8Array | string;
440
+ }
441
+ /**
442
+ * Options for sequential feed raw upload (encryptionKey in options).
443
+ */
444
+ export interface SequentialFeedUploadRawOptions extends SequentialFeedUploadOptions {
445
+ /** Optional encryption key for encrypting the payload. */
446
+ encryptionKey?: Uint8Array | string;
447
+ }
448
+ /**
449
+ * Result from sequential payload download.
450
+ */
451
+ export interface SequentialFeedPayloadResult {
452
+ /** Payload bytes (timestamp removed if present). */
453
+ payload: Uint8Array;
454
+ /** Timestamp extracted from payload, if present. */
455
+ timestamp?: number;
456
+ /** Current feed index as a stringified uint64. */
457
+ feedIndex: string;
458
+ /** Next feed index as a stringified uint64. */
459
+ feedIndexNext: string;
460
+ }
461
+ /**
462
+ * Result from sequential reference download.
463
+ */
464
+ export interface SequentialFeedReferenceResult {
465
+ /** Swarm reference stored in the feed update. */
466
+ reference: string;
467
+ /** Current feed index as a stringified uint64. */
468
+ feedIndex: string;
469
+ /** Next feed index as a stringified uint64. */
470
+ feedIndexNext: string;
471
+ }
472
+ /**
473
+ * Result from sequential feed upload.
474
+ */
475
+ export interface SequentialFeedUploadResult {
476
+ /** SOC address of the feed update. */
477
+ reference: string;
478
+ /** Feed index used for the update (stringified uint64). */
479
+ feedIndex: string;
480
+ /** Owner address for the feed update. */
481
+ owner: string;
482
+ /** Encryption key for decrypting payload (if encrypted). */
483
+ encryptionKey?: string;
484
+ /** Upload tag UID, if provided. */
485
+ tagUid?: number;
486
+ }
487
+ /**
488
+ * Sequential feed reader interface.
489
+ */
490
+ export interface SequentialFeedReader {
491
+ /** Resolve feed owner address (20 bytes). */
492
+ getOwner: () => Promise<Address>;
493
+ /**
494
+ * Download and decrypt payload (requires encryption key).
495
+ * @param encryptionKey - 32-byte encryption key.
496
+ */
497
+ downloadPayload: (encryptionKey: Uint8Array | string, options?: SequentialFeedUpdateOptions) => Promise<SequentialFeedPayloadResult>;
498
+ /**
499
+ * Download raw payload or decrypt if encryptionKey is provided in options.
500
+ */
501
+ downloadRawPayload: (options?: SequentialFeedDownloadRawOptions) => Promise<SequentialFeedPayloadResult>;
502
+ /**
503
+ * Download and decrypt reference (requires encryption key).
504
+ * @param encryptionKey - 32-byte encryption key.
505
+ */
506
+ downloadReference: (encryptionKey: Uint8Array | string, options?: SequentialFeedUpdateOptions) => Promise<SequentialFeedReferenceResult>;
507
+ }
508
+ /**
509
+ * Sequential feed writer interface.
510
+ */
511
+ export interface SequentialFeedWriter extends SequentialFeedReader {
512
+ /**
513
+ * Upload encrypted payload.
514
+ */
515
+ uploadPayload: (data: Uint8Array | string, options?: SequentialFeedUploadOptions) => Promise<SequentialFeedUploadResult>;
516
+ /**
517
+ * Upload raw payload (or encrypted if encryptionKey provided in options).
518
+ */
519
+ uploadRawPayload: (data: Uint8Array | string, options?: SequentialFeedUploadRawOptions) => Promise<SequentialFeedUploadResult>;
520
+ /**
521
+ * Upload a reference payload (encrypted by default).
522
+ */
523
+ uploadReference: (reference: Uint8Array | string, options?: SequentialFeedUploadOptions) => Promise<SequentialFeedUploadResult>;
524
+ }
525
+ export declare const AuthStatusSchema: z.ZodObject<{
526
+ authenticated: z.ZodBoolean;
527
+ origin: z.ZodOptional<z.ZodString>;
528
+ beeApiUrl: z.ZodOptional<z.ZodString>;
529
+ }, z.core.$strip>;
530
+ export type AuthStatus = z.infer<typeof AuthStatusSchema>;
531
+ export declare const UploadModeSchema: z.ZodEnum<{
532
+ "user-stamp": "user-stamp";
533
+ subsidised: "subsidised";
534
+ unavailable: "unavailable";
535
+ }>;
536
+ export type UploadMode = z.infer<typeof UploadModeSchema>;
537
+ /**
538
+ * Why a session cannot upload, when `uploadMode` is `"unavailable"`.
539
+ *
540
+ * - `no-stamp` — no stamp resolved: the account has no drive, or its pointers
541
+ * name one that is gone
542
+ * - `stamper-failed` — the stamp resolved and the stamper still did not build.
543
+ * `initializeStamper` logs and returns rather than throwing, so without this
544
+ * the symptom is indistinguishable from having no stamp at all.
545
+ * - `stamp-expired` — the stamp resolved, but its stored lifetime has run out
546
+ * (#745). The stamper builds from the record regardless, so without this the
547
+ * session claimed `user-stamp` and the first refused write surfaced as
548
+ * partition contention.
549
+ * - `stamp-not-usable` — the stamp resolved and is not expired, but its
550
+ * stored record says the node does not have the batch (`exists: false`) or
551
+ * cannot use it (`usable: false`). Opening the drive in the identity UI
552
+ * refreshes the record from the chain (#765).
553
+ * - `subsidised`: only in a refused `stampChunk`, never in ConnectionInfo.
554
+ * The account is in subsidised mode, the gateway stamps every upload, so
555
+ * there is no stamp of the person's to hand back.
556
+ * - `app-stamp-count`, `app-stamp-rate`, `app-bucket-share`: only in a refused
557
+ * `stampChunk`. The app reached one of its own limits on the account's
558
+ * stamp (`proxy/app-stamp-limits.ts`): its count on this stamp, its rate,
559
+ * or its share of the chunk's bucket.
560
+ * - `app-slice-full`: only in a refused `stampChunk`. The chunk's bucket has
561
+ * no slot left for app stamps, the rest is kept for the account's own
562
+ * uploads (`ACCOUNT_RESERVED_LANE_SHARE`).
563
+ * - `session-unconfirmed`: the session was restored from storage and the
564
+ * check that it was not ended while no page was open could not read the
565
+ * account's published state. Writes stay refused until a later check, made
566
+ * on the next write, can.
567
+ */
568
+ export declare const UploadUnavailableReasonSchema: z.ZodEnum<{
569
+ subsidised: "subsidised";
570
+ "no-stamp": "no-stamp";
571
+ "stamper-failed": "stamper-failed";
572
+ "stamp-expired": "stamp-expired";
573
+ "stamp-not-usable": "stamp-not-usable";
574
+ "app-stamp-count": "app-stamp-count";
575
+ "app-stamp-rate": "app-stamp-rate";
576
+ "app-bucket-share": "app-bucket-share";
577
+ "app-slice-full": "app-slice-full";
578
+ "session-unconfirmed": "session-unconfirmed";
579
+ }>;
580
+ export type UploadUnavailableReason = z.infer<typeof UploadUnavailableReasonSchema>;
581
+ /**
582
+ * Where an avatar image came from. Only `generated` — derived from the
583
+ * identity id — exists today; a union so another kind of image could be
584
+ * added without reshaping the value.
585
+ */
586
+ export declare const AvatarSourceSchema: z.ZodEnum<{
587
+ generated: "generated";
588
+ }>;
589
+ export type AvatarSource = z.infer<typeof AvatarSourceSchema>;
590
+ export declare const AvatarSchema: z.ZodObject<{
591
+ source: z.ZodEnum<{
592
+ generated: "generated";
593
+ }>;
594
+ url: z.ZodString;
595
+ }, z.core.$strip>;
596
+ export type Avatar = z.infer<typeof AvatarSchema>;
597
+ /** The dApp-visible identity, shared by the snapshot and the wire message. */
598
+ export declare const ConnectionIdentitySchema: z.ZodObject<{
599
+ id: z.ZodString;
600
+ name: z.ZodString;
601
+ address: z.ZodString;
602
+ publicKey: z.ZodOptional<z.ZodString>;
603
+ sharingPublicKey: z.ZodOptional<z.ZodString>;
604
+ postageSignerAddress: z.ZodOptional<z.ZodString>;
605
+ avatar: z.ZodObject<{
606
+ source: z.ZodEnum<{
607
+ generated: "generated";
608
+ }>;
609
+ url: z.ZodString;
610
+ }, z.core.$strip>;
611
+ }, z.core.$strip>;
612
+ export type ConnectionIdentity = z.infer<typeof ConnectionIdentitySchema>;
613
+ export declare const ConnectionInfoSchema: z.ZodObject<{
614
+ canUpload: z.ZodBoolean;
615
+ storagePartitioned: z.ZodOptional<z.ZodBoolean>;
616
+ uploadMode: z.ZodOptional<z.ZodEnum<{
617
+ "user-stamp": "user-stamp";
618
+ subsidised: "subsidised";
619
+ unavailable: "unavailable";
620
+ }>>;
621
+ uploadUnavailableReason: z.ZodOptional<z.ZodEnum<{
622
+ subsidised: "subsidised";
623
+ "no-stamp": "no-stamp";
624
+ "stamper-failed": "stamper-failed";
625
+ "stamp-expired": "stamp-expired";
626
+ "stamp-not-usable": "stamp-not-usable";
627
+ "app-stamp-count": "app-stamp-count";
628
+ "app-stamp-rate": "app-stamp-rate";
629
+ "app-bucket-share": "app-bucket-share";
630
+ "app-slice-full": "app-slice-full";
631
+ "session-unconfirmed": "session-unconfirmed";
632
+ }>>;
633
+ partition: z.ZodOptional<z.ZodNumber>;
634
+ identity: z.ZodOptional<z.ZodObject<{
635
+ id: z.ZodString;
636
+ name: z.ZodString;
637
+ address: z.ZodString;
638
+ publicKey: z.ZodOptional<z.ZodString>;
639
+ sharingPublicKey: z.ZodOptional<z.ZodString>;
640
+ postageSignerAddress: z.ZodOptional<z.ZodString>;
641
+ avatar: z.ZodObject<{
642
+ source: z.ZodEnum<{
643
+ generated: "generated";
644
+ }>;
645
+ url: z.ZodString;
646
+ }, z.core.$strip>;
647
+ }, z.core.$strip>>;
648
+ appKey: z.ZodOptional<z.ZodObject<{
649
+ address: z.ZodString;
650
+ publicKey: z.ZodString;
651
+ }, z.core.$strip>>;
652
+ chatBinding: z.ZodOptional<z.ZodObject<{
653
+ message: z.ZodString;
654
+ signature: z.ZodString;
655
+ }, z.core.$strip>>;
656
+ beeApiUrl: z.ZodOptional<z.ZodString>;
657
+ }, z.core.$strip>;
658
+ export type ConnectionInfo = z.infer<typeof ConnectionInfoSchema>;
659
+ export declare const AppMetadataSchema: z.ZodObject<{
660
+ name: z.ZodString;
661
+ description: z.ZodOptional<z.ZodString>;
662
+ icon: z.ZodOptional<z.ZodString>;
663
+ }, z.core.$strip>;
664
+ export type AppMetadata = z.infer<typeof AppMetadataSchema>;
665
+ export declare const ButtonConfigSchema: z.ZodOptional<z.ZodObject<{
666
+ connectText: z.ZodOptional<z.ZodString>;
667
+ disconnectText: z.ZodOptional<z.ZodString>;
668
+ loadingText: z.ZodOptional<z.ZodString>;
669
+ backgroundColor: z.ZodOptional<z.ZodString>;
670
+ color: z.ZodOptional<z.ZodString>;
671
+ borderRadius: z.ZodOptional<z.ZodString>;
672
+ fontFamily: z.ZodOptional<z.ZodString>;
673
+ fontSize: z.ZodOptional<z.ZodString>;
674
+ fontWeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
675
+ }, z.core.$strip>>;
676
+ export interface ButtonConfig {
677
+ connectText?: string;
678
+ disconnectText?: string;
679
+ loadingText?: string;
680
+ backgroundColor?: string;
681
+ color?: string;
682
+ borderRadius?: string;
683
+ fontFamily?: string;
684
+ fontSize?: string;
685
+ fontWeight?: string | number;
686
+ }
687
+ export declare const ParentIdentifyMessageSchema: z.ZodObject<{
688
+ type: z.ZodLiteral<"parentIdentify">;
689
+ requestId: z.ZodString;
690
+ beeApiUrl: z.ZodOptional<z.ZodString>;
691
+ popupMode: z.ZodOptional<z.ZodEnum<{
692
+ popup: "popup";
693
+ window: "window";
694
+ }>>;
695
+ metadata: z.ZodObject<{
696
+ name: z.ZodString;
697
+ description: z.ZodOptional<z.ZodString>;
698
+ icon: z.ZodOptional<z.ZodString>;
699
+ }, z.core.$strip>;
700
+ buttonConfig: z.ZodOptional<z.ZodObject<{
701
+ connectText: z.ZodOptional<z.ZodString>;
702
+ disconnectText: z.ZodOptional<z.ZodString>;
703
+ loadingText: z.ZodOptional<z.ZodString>;
704
+ backgroundColor: z.ZodOptional<z.ZodString>;
705
+ color: z.ZodOptional<z.ZodString>;
706
+ borderRadius: z.ZodOptional<z.ZodString>;
707
+ fontFamily: z.ZodOptional<z.ZodString>;
708
+ fontSize: z.ZodOptional<z.ZodString>;
709
+ fontWeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
710
+ }, z.core.$strip>>;
711
+ subsidisedGatewayUrl: z.ZodOptional<z.ZodString>;
712
+ }, z.core.$strip>;
713
+ export declare const CheckAuthMessageSchema: z.ZodObject<{
714
+ type: z.ZodLiteral<"checkAuth">;
715
+ requestId: z.ZodString;
716
+ }, z.core.$strip>;
717
+ export declare const DisconnectMessageSchema: z.ZodObject<{
718
+ type: z.ZodLiteral<"disconnect">;
719
+ requestId: z.ZodString;
720
+ }, z.core.$strip>;
721
+ export declare const UploadDataMessageSchema: z.ZodObject<{
722
+ type: z.ZodLiteral<"uploadData">;
723
+ requestId: z.ZodString;
724
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
725
+ options: z.ZodOptional<z.ZodObject<{
726
+ pin: z.ZodOptional<z.ZodBoolean>;
727
+ encrypt: z.ZodOptional<z.ZodBoolean>;
728
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
729
+ tag: z.ZodOptional<z.ZodNumber>;
730
+ deferred: z.ZodOptional<z.ZodBoolean>;
731
+ }, z.core.$strip>>;
732
+ requestOptions: z.ZodOptional<z.ZodObject<{
733
+ timeout: z.ZodOptional<z.ZodNumber>;
734
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
735
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
736
+ }, z.core.$strip>>;
737
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
738
+ useWebSocket: z.ZodOptional<z.ZodBoolean>;
739
+ useWorkers: z.ZodOptional<z.ZodBoolean>;
740
+ workerCount: z.ZodOptional<z.ZodNumber>;
741
+ concurrency: z.ZodOptional<z.ZodNumber>;
742
+ }, z.core.$strip>;
743
+ export declare const DownloadDataMessageSchema: z.ZodObject<{
744
+ type: z.ZodLiteral<"downloadData">;
745
+ requestId: z.ZodString;
746
+ reference: z.ZodString;
747
+ options: z.ZodOptional<z.ZodObject<{
748
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
749
+ fallback: z.ZodOptional<z.ZodBoolean>;
750
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
751
+ actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
752
+ actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
753
+ actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
754
+ }, z.core.$strip>>;
755
+ requestOptions: z.ZodOptional<z.ZodObject<{
756
+ timeout: z.ZodOptional<z.ZodNumber>;
757
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
758
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
759
+ }, z.core.$strip>>;
760
+ }, z.core.$strip>;
761
+ export declare const DeriveAppSecretMessageSchema: z.ZodObject<{
762
+ type: z.ZodLiteral<"deriveAppSecret">;
763
+ requestId: z.ZodString;
764
+ label: z.ZodString;
765
+ }, z.core.$strip>;
766
+ /**
767
+ * The site's own Bee address for this frame from now on, replacing the one
768
+ * `parentIdentify` gave, for the site's session alone.
769
+ */
770
+ export declare const SetBeeApiUrlMessageSchema: z.ZodObject<{
771
+ type: z.ZodLiteral<"setBeeApiUrl">;
772
+ requestId: z.ZodString;
773
+ beeApiUrl: z.ZodString;
774
+ }, z.core.$strip>;
775
+ export declare const GetChatKeyMessageSchema: z.ZodObject<{
776
+ type: z.ZodLiteral<"getChatKey">;
777
+ requestId: z.ZodString;
778
+ }, z.core.$strip>;
779
+ /**
780
+ * Who signs a single-owner chunk in `stampChunk`: the site's own app secret,
781
+ * or a private key the site supplies (a chat's shared GSOC inbox key).
782
+ */
783
+ export declare const StampChunkSignerSchema: z.ZodUnion<readonly [z.ZodLiteral<"app">, z.ZodObject<{
784
+ privateKey: z.ZodString;
785
+ }, z.core.$strict>]>;
786
+ /**
787
+ * The chunk `stampChunk` stamps, always whole so the frame computes its
788
+ * address itself. `data` is span plus payload. Strict, so a chunk that also
789
+ * carries an address, an owner or a signature is refused: the frame never
790
+ * stamps an address it did not compute, nor a chunk somebody else signed.
791
+ */
792
+ export declare const StampChunkRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
793
+ kind: z.ZodLiteral<"content">;
794
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
795
+ }, z.core.$strict>, z.ZodObject<{
796
+ kind: z.ZodLiteral<"soc">;
797
+ identifier: z.ZodString;
798
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
799
+ signer: z.ZodUnion<readonly [z.ZodLiteral<"app">, z.ZodObject<{
800
+ privateKey: z.ZodString;
801
+ }, z.core.$strict>]>;
802
+ }, z.core.$strict>], "kind">;
803
+ export declare const StampChunkMessageSchema: z.ZodObject<{
804
+ type: z.ZodLiteral<"stampChunk">;
805
+ requestId: z.ZodString;
806
+ chunk: z.ZodDiscriminatedUnion<[z.ZodObject<{
807
+ kind: z.ZodLiteral<"content">;
808
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
809
+ }, z.core.$strict>, z.ZodObject<{
810
+ kind: z.ZodLiteral<"soc">;
811
+ identifier: z.ZodString;
812
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
813
+ signer: z.ZodUnion<readonly [z.ZodLiteral<"app">, z.ZodObject<{
814
+ privateKey: z.ZodString;
815
+ }, z.core.$strict>]>;
816
+ }, z.core.$strict>], "kind">;
817
+ }, z.core.$strict>;
818
+ export declare const UploadFileMessageSchema: z.ZodObject<{
819
+ type: z.ZodLiteral<"uploadFile">;
820
+ requestId: z.ZodString;
821
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
822
+ name: z.ZodOptional<z.ZodString>;
823
+ options: z.ZodOptional<z.ZodObject<{
824
+ pin: z.ZodOptional<z.ZodBoolean>;
825
+ encrypt: z.ZodOptional<z.ZodBoolean>;
826
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
827
+ tag: z.ZodOptional<z.ZodNumber>;
828
+ deferred: z.ZodOptional<z.ZodBoolean>;
829
+ }, z.core.$strip>>;
830
+ requestOptions: z.ZodOptional<z.ZodObject<{
831
+ timeout: z.ZodOptional<z.ZodNumber>;
832
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
833
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
834
+ }, z.core.$strip>>;
835
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
836
+ useWebSocket: z.ZodOptional<z.ZodBoolean>;
837
+ useWorkers: z.ZodOptional<z.ZodBoolean>;
838
+ workerCount: z.ZodOptional<z.ZodNumber>;
839
+ concurrency: z.ZodOptional<z.ZodNumber>;
840
+ }, z.core.$strip>;
841
+ export declare const DownloadFileMessageSchema: z.ZodObject<{
842
+ type: z.ZodLiteral<"downloadFile">;
843
+ requestId: z.ZodString;
844
+ reference: z.ZodString;
845
+ path: z.ZodOptional<z.ZodString>;
846
+ options: z.ZodOptional<z.ZodObject<{
847
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
848
+ fallback: z.ZodOptional<z.ZodBoolean>;
849
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
850
+ actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
851
+ actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
852
+ actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
853
+ }, z.core.$strip>>;
854
+ requestOptions: z.ZodOptional<z.ZodObject<{
855
+ timeout: z.ZodOptional<z.ZodNumber>;
856
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
857
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
858
+ }, z.core.$strip>>;
859
+ }, z.core.$strip>;
860
+ export declare const UploadFilesMessageSchema: z.ZodObject<{
861
+ type: z.ZodLiteral<"uploadFiles">;
862
+ requestId: z.ZodString;
863
+ files: z.ZodArray<z.ZodObject<{
864
+ path: z.ZodString;
865
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
866
+ contentType: z.ZodOptional<z.ZodString>;
867
+ }, z.core.$strip>>;
868
+ options: z.ZodOptional<z.ZodObject<{
869
+ pin: z.ZodOptional<z.ZodBoolean>;
870
+ encrypt: z.ZodOptional<z.ZodBoolean>;
871
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
872
+ tag: z.ZodOptional<z.ZodNumber>;
873
+ deferred: z.ZodOptional<z.ZodBoolean>;
874
+ indexDocument: z.ZodOptional<z.ZodString>;
875
+ errorDocument: z.ZodOptional<z.ZodString>;
876
+ }, z.core.$strip>>;
877
+ requestOptions: z.ZodOptional<z.ZodObject<{
878
+ timeout: z.ZodOptional<z.ZodNumber>;
879
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
880
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
881
+ }, z.core.$strip>>;
882
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
883
+ useWorkers: z.ZodOptional<z.ZodBoolean>;
884
+ workerCount: z.ZodOptional<z.ZodNumber>;
885
+ }, z.core.$strip>;
886
+ export declare const ListFilesMessageSchema: z.ZodObject<{
887
+ type: z.ZodLiteral<"listFiles">;
888
+ requestId: z.ZodString;
889
+ reference: z.ZodString;
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 UploadChunkMessageSchema: z.ZodObject<{
897
+ type: z.ZodLiteral<"uploadChunk">;
898
+ requestId: z.ZodString;
899
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
900
+ options: z.ZodOptional<z.ZodObject<{
901
+ pin: z.ZodOptional<z.ZodBoolean>;
902
+ encrypt: z.ZodOptional<z.ZodBoolean>;
903
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
904
+ tag: z.ZodOptional<z.ZodNumber>;
905
+ deferred: z.ZodOptional<z.ZodBoolean>;
906
+ }, z.core.$strip>>;
907
+ requestOptions: z.ZodOptional<z.ZodObject<{
908
+ timeout: z.ZodOptional<z.ZodNumber>;
909
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
910
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
911
+ }, z.core.$strip>>;
912
+ }, z.core.$strip>;
913
+ export declare const DownloadChunkMessageSchema: z.ZodObject<{
914
+ type: z.ZodLiteral<"downloadChunk">;
915
+ requestId: z.ZodString;
916
+ reference: z.ZodString;
917
+ options: z.ZodOptional<z.ZodObject<{
918
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
919
+ fallback: z.ZodOptional<z.ZodBoolean>;
920
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
921
+ actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
922
+ actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
923
+ actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
924
+ }, z.core.$strip>>;
925
+ requestOptions: z.ZodOptional<z.ZodObject<{
926
+ timeout: z.ZodOptional<z.ZodNumber>;
927
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
928
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
929
+ }, z.core.$strip>>;
930
+ }, z.core.$strip>;
931
+ export declare const IsConnectedMessageSchema: z.ZodObject<{
932
+ type: z.ZodLiteral<"isConnected">;
933
+ requestId: z.ZodString;
934
+ }, z.core.$strip>;
935
+ export declare const GetNodeInfoMessageSchema: z.ZodObject<{
936
+ type: z.ZodLiteral<"getNodeInfo">;
937
+ requestId: z.ZodString;
938
+ }, z.core.$strip>;
939
+ export declare const GsocMineMessageSchema: z.ZodObject<{
940
+ type: z.ZodLiteral<"gsocMine">;
941
+ requestId: z.ZodString;
942
+ targetOverlay: z.ZodString;
943
+ identifier: z.ZodString;
944
+ proximity: z.ZodOptional<z.ZodNumber>;
945
+ }, z.core.$strip>;
946
+ export declare const GsocSendMessageSchema: z.ZodObject<{
947
+ type: z.ZodLiteral<"gsocSend">;
948
+ requestId: z.ZodString;
949
+ signer: z.ZodString;
950
+ identifier: z.ZodString;
951
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
952
+ options: z.ZodOptional<z.ZodObject<{
953
+ pin: z.ZodOptional<z.ZodBoolean>;
954
+ encrypt: z.ZodOptional<z.ZodBoolean>;
955
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
956
+ tag: z.ZodOptional<z.ZodNumber>;
957
+ deferred: z.ZodOptional<z.ZodBoolean>;
958
+ }, z.core.$strip>>;
959
+ requestOptions: z.ZodOptional<z.ZodObject<{
960
+ timeout: z.ZodOptional<z.ZodNumber>;
961
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
962
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
963
+ }, z.core.$strip>>;
964
+ }, z.core.$strip>;
965
+ export declare const SocUploadMessageSchema: z.ZodObject<{
966
+ type: z.ZodLiteral<"socUpload">;
967
+ requestId: z.ZodString;
968
+ identifier: z.ZodString;
969
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
970
+ signer: z.ZodOptional<z.ZodString>;
971
+ options: z.ZodOptional<z.ZodObject<{
972
+ pin: z.ZodOptional<z.ZodBoolean>;
973
+ encrypt: z.ZodOptional<z.ZodBoolean>;
974
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
975
+ tag: z.ZodOptional<z.ZodNumber>;
976
+ deferred: z.ZodOptional<z.ZodBoolean>;
977
+ }, z.core.$strip>>;
978
+ requestOptions: z.ZodOptional<z.ZodObject<{
979
+ timeout: z.ZodOptional<z.ZodNumber>;
980
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
981
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
982
+ }, z.core.$strip>>;
983
+ }, z.core.$strip>;
984
+ export declare const SocRawUploadMessageSchema: z.ZodObject<{
985
+ type: z.ZodLiteral<"socRawUpload">;
986
+ requestId: z.ZodString;
987
+ identifier: z.ZodString;
988
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
989
+ signer: z.ZodOptional<z.ZodString>;
990
+ options: z.ZodOptional<z.ZodObject<{
991
+ pin: z.ZodOptional<z.ZodBoolean>;
992
+ encrypt: z.ZodOptional<z.ZodBoolean>;
993
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
994
+ tag: z.ZodOptional<z.ZodNumber>;
995
+ deferred: z.ZodOptional<z.ZodBoolean>;
996
+ }, z.core.$strip>>;
997
+ requestOptions: z.ZodOptional<z.ZodObject<{
998
+ timeout: z.ZodOptional<z.ZodNumber>;
999
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1000
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1001
+ }, z.core.$strip>>;
1002
+ }, z.core.$strip>;
1003
+ export declare const SocDownloadMessageSchema: z.ZodObject<{
1004
+ type: z.ZodLiteral<"socDownload">;
1005
+ requestId: z.ZodString;
1006
+ owner: z.ZodOptional<z.ZodString>;
1007
+ identifier: z.ZodString;
1008
+ encryptionKey: z.ZodString;
1009
+ requestOptions: z.ZodOptional<z.ZodObject<{
1010
+ timeout: z.ZodOptional<z.ZodNumber>;
1011
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1012
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1013
+ }, z.core.$strip>>;
1014
+ }, z.core.$strip>;
1015
+ export declare const SocRawDownloadMessageSchema: z.ZodObject<{
1016
+ type: z.ZodLiteral<"socRawDownload">;
1017
+ requestId: z.ZodString;
1018
+ owner: z.ZodOptional<z.ZodString>;
1019
+ identifier: z.ZodString;
1020
+ encryptionKey: z.ZodOptional<z.ZodString>;
1021
+ requestOptions: z.ZodOptional<z.ZodObject<{
1022
+ timeout: z.ZodOptional<z.ZodNumber>;
1023
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1024
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1025
+ }, z.core.$strip>>;
1026
+ }, z.core.$strip>;
1027
+ export declare const SocGetOwnerMessageSchema: z.ZodObject<{
1028
+ type: z.ZodLiteral<"socGetOwner">;
1029
+ requestId: z.ZodString;
1030
+ }, z.core.$strip>;
1031
+ export declare const EpochFeedDownloadReferenceMessageSchema: z.ZodObject<{
1032
+ type: z.ZodLiteral<"epochFeedDownloadReference">;
1033
+ requestId: z.ZodString;
1034
+ topic: z.ZodString;
1035
+ owner: z.ZodOptional<z.ZodString>;
1036
+ at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1037
+ after: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1038
+ encryptionKey: z.ZodOptional<z.ZodString>;
1039
+ requestOptions: z.ZodOptional<z.ZodObject<{
1040
+ timeout: z.ZodOptional<z.ZodNumber>;
1041
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1042
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1043
+ }, z.core.$strip>>;
1044
+ }, z.core.$strip>;
1045
+ export declare const EpochHintsSchema: z.ZodOptional<z.ZodObject<{
1046
+ lastEpoch: z.ZodOptional<z.ZodObject<{
1047
+ start: z.ZodString;
1048
+ level: z.ZodNumber;
1049
+ }, z.core.$strip>>;
1050
+ lastTimestamp: z.ZodOptional<z.ZodString>;
1051
+ }, z.core.$strip>>;
1052
+ export declare const EpochFeedUploadReferenceMessageSchema: z.ZodObject<{
1053
+ type: z.ZodLiteral<"epochFeedUploadReference">;
1054
+ requestId: z.ZodString;
1055
+ topic: z.ZodString;
1056
+ signer: z.ZodOptional<z.ZodString>;
1057
+ at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1058
+ reference: z.ZodString;
1059
+ encryptionKey: z.ZodOptional<z.ZodString>;
1060
+ hints: z.ZodOptional<z.ZodObject<{
1061
+ lastEpoch: z.ZodOptional<z.ZodObject<{
1062
+ start: z.ZodString;
1063
+ level: z.ZodNumber;
1064
+ }, z.core.$strip>>;
1065
+ lastTimestamp: z.ZodOptional<z.ZodString>;
1066
+ }, z.core.$strip>>;
1067
+ requestOptions: z.ZodOptional<z.ZodObject<{
1068
+ timeout: z.ZodOptional<z.ZodNumber>;
1069
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1070
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1071
+ }, z.core.$strip>>;
1072
+ }, z.core.$strip>;
1073
+ export declare const FeedGetOwnerMessageSchema: z.ZodObject<{
1074
+ type: z.ZodLiteral<"feedGetOwner">;
1075
+ requestId: z.ZodString;
1076
+ }, z.core.$strip>;
1077
+ export declare const SequentialFeedGetOwnerMessageSchema: z.ZodObject<{
1078
+ type: z.ZodLiteral<"seqFeedGetOwner">;
1079
+ requestId: z.ZodString;
1080
+ }, z.core.$strip>;
1081
+ export declare const SequentialFeedDownloadPayloadMessageSchema: z.ZodObject<{
1082
+ type: z.ZodLiteral<"seqFeedDownloadPayload">;
1083
+ requestId: z.ZodString;
1084
+ topic: z.ZodString;
1085
+ owner: z.ZodOptional<z.ZodString>;
1086
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1087
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1088
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1089
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1090
+ encryptionKey: z.ZodString;
1091
+ requestOptions: z.ZodOptional<z.ZodObject<{
1092
+ timeout: z.ZodOptional<z.ZodNumber>;
1093
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1094
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1095
+ }, z.core.$strip>>;
1096
+ }, z.core.$strip>;
1097
+ export declare const SequentialFeedDownloadRawPayloadMessageSchema: z.ZodObject<{
1098
+ type: z.ZodLiteral<"seqFeedDownloadRawPayload">;
1099
+ requestId: z.ZodString;
1100
+ topic: z.ZodString;
1101
+ owner: z.ZodOptional<z.ZodString>;
1102
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1103
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1104
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1105
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1106
+ encryptionKey: z.ZodOptional<z.ZodString>;
1107
+ requestOptions: z.ZodOptional<z.ZodObject<{
1108
+ timeout: z.ZodOptional<z.ZodNumber>;
1109
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1110
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1111
+ }, z.core.$strip>>;
1112
+ }, z.core.$strip>;
1113
+ export declare const SequentialFeedDownloadReferenceMessageSchema: z.ZodObject<{
1114
+ type: z.ZodLiteral<"seqFeedDownloadReference">;
1115
+ requestId: z.ZodString;
1116
+ topic: z.ZodString;
1117
+ owner: z.ZodOptional<z.ZodString>;
1118
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1119
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1120
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1121
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1122
+ encryptionKey: z.ZodString;
1123
+ requestOptions: z.ZodOptional<z.ZodObject<{
1124
+ timeout: z.ZodOptional<z.ZodNumber>;
1125
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1126
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1127
+ }, z.core.$strip>>;
1128
+ }, z.core.$strip>;
1129
+ export declare const SequentialFeedUploadPayloadMessageSchema: z.ZodObject<{
1130
+ type: z.ZodLiteral<"seqFeedUploadPayload">;
1131
+ requestId: z.ZodString;
1132
+ topic: z.ZodString;
1133
+ signer: z.ZodOptional<z.ZodString>;
1134
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1135
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1136
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1137
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1138
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1139
+ options: z.ZodOptional<z.ZodObject<{
1140
+ pin: z.ZodOptional<z.ZodBoolean>;
1141
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1142
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1143
+ tag: z.ZodOptional<z.ZodNumber>;
1144
+ deferred: z.ZodOptional<z.ZodBoolean>;
1145
+ }, z.core.$strip>>;
1146
+ requestOptions: z.ZodOptional<z.ZodObject<{
1147
+ timeout: z.ZodOptional<z.ZodNumber>;
1148
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1149
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1150
+ }, z.core.$strip>>;
1151
+ }, z.core.$strip>;
1152
+ export declare const SequentialFeedUploadRawPayloadMessageSchema: z.ZodObject<{
1153
+ type: z.ZodLiteral<"seqFeedUploadRawPayload">;
1154
+ requestId: z.ZodString;
1155
+ topic: z.ZodString;
1156
+ signer: z.ZodOptional<z.ZodString>;
1157
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1158
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1159
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1160
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1161
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1162
+ encryptionKey: z.ZodOptional<z.ZodString>;
1163
+ options: z.ZodOptional<z.ZodObject<{
1164
+ pin: z.ZodOptional<z.ZodBoolean>;
1165
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1166
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1167
+ tag: z.ZodOptional<z.ZodNumber>;
1168
+ deferred: z.ZodOptional<z.ZodBoolean>;
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>;
1176
+ export declare const SequentialFeedUploadReferenceMessageSchema: z.ZodObject<{
1177
+ type: z.ZodLiteral<"seqFeedUploadReference">;
1178
+ requestId: z.ZodString;
1179
+ topic: z.ZodString;
1180
+ signer: z.ZodOptional<z.ZodString>;
1181
+ reference: z.ZodString;
1182
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1183
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1184
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1185
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1186
+ options: z.ZodOptional<z.ZodObject<{
1187
+ pin: z.ZodOptional<z.ZodBoolean>;
1188
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1189
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1190
+ tag: z.ZodOptional<z.ZodNumber>;
1191
+ deferred: z.ZodOptional<z.ZodBoolean>;
1192
+ }, z.core.$strip>>;
1193
+ requestOptions: z.ZodOptional<z.ZodObject<{
1194
+ timeout: z.ZodOptional<z.ZodNumber>;
1195
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1196
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1197
+ }, z.core.$strip>>;
1198
+ }, z.core.$strip>;
1199
+ export declare const CreateFeedManifestMessageSchema: z.ZodObject<{
1200
+ type: z.ZodLiteral<"createFeedManifest">;
1201
+ requestId: z.ZodString;
1202
+ topic: z.ZodString;
1203
+ owner: z.ZodOptional<z.ZodString>;
1204
+ feedType: z.ZodOptional<z.ZodEnum<{
1205
+ Sequence: "Sequence";
1206
+ Epoch: "Epoch";
1207
+ }>>;
1208
+ uploadOptions: z.ZodOptional<z.ZodObject<{
1209
+ pin: z.ZodOptional<z.ZodBoolean>;
1210
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1211
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1212
+ tag: z.ZodOptional<z.ZodNumber>;
1213
+ deferred: z.ZodOptional<z.ZodBoolean>;
1214
+ }, z.core.$strip>>;
1215
+ requestOptions: z.ZodOptional<z.ZodObject<{
1216
+ timeout: z.ZodOptional<z.ZodNumber>;
1217
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1218
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1219
+ }, z.core.$strip>>;
1220
+ }, z.core.$strip>;
1221
+ export declare const ActUploadDataMessageSchema: z.ZodObject<{
1222
+ type: z.ZodLiteral<"actUploadData">;
1223
+ requestId: z.ZodString;
1224
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1225
+ grantees: z.ZodArray<z.ZodString>;
1226
+ options: z.ZodOptional<z.ZodObject<{
1227
+ pin: z.ZodOptional<z.ZodBoolean>;
1228
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1229
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1230
+ tag: z.ZodOptional<z.ZodNumber>;
1231
+ deferred: z.ZodOptional<z.ZodBoolean>;
1232
+ beeCompatible: z.ZodOptional<z.ZodBoolean>;
1233
+ publisher: z.ZodOptional<z.ZodEnum<{
1234
+ app: "app";
1235
+ identity: "identity";
1236
+ }>>;
1237
+ }, z.core.$strip>>;
1238
+ requestOptions: z.ZodOptional<z.ZodObject<{
1239
+ timeout: z.ZodOptional<z.ZodNumber>;
1240
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1241
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1242
+ }, z.core.$strip>>;
1243
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
1244
+ }, z.core.$strip>;
1245
+ export declare const ActDownloadDataMessageSchema: z.ZodObject<{
1246
+ type: z.ZodLiteral<"actDownloadData">;
1247
+ requestId: z.ZodString;
1248
+ encryptedReference: z.ZodString;
1249
+ historyReference: z.ZodString;
1250
+ publisherPubKey: z.ZodString;
1251
+ timestamp: z.ZodOptional<z.ZodNumber>;
1252
+ requestOptions: z.ZodOptional<z.ZodObject<{
1253
+ timeout: z.ZodOptional<z.ZodNumber>;
1254
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1255
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1256
+ }, z.core.$strip>>;
1257
+ }, z.core.$strip>;
1258
+ export declare const ActAddGranteesMessageSchema: z.ZodObject<{
1259
+ type: z.ZodLiteral<"actAddGrantees">;
1260
+ requestId: z.ZodString;
1261
+ historyReference: z.ZodString;
1262
+ grantees: z.ZodArray<z.ZodString>;
1263
+ requestOptions: z.ZodOptional<z.ZodObject<{
1264
+ timeout: z.ZodOptional<z.ZodNumber>;
1265
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1266
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1267
+ }, z.core.$strip>>;
1268
+ }, z.core.$strip>;
1269
+ export declare const ActRevokeGranteesMessageSchema: z.ZodObject<{
1270
+ type: z.ZodLiteral<"actRevokeGrantees">;
1271
+ requestId: z.ZodString;
1272
+ historyReference: z.ZodString;
1273
+ encryptedReference: z.ZodString;
1274
+ revokeGrantees: z.ZodArray<z.ZodString>;
1275
+ requestOptions: z.ZodOptional<z.ZodObject<{
1276
+ timeout: z.ZodOptional<z.ZodNumber>;
1277
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1278
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1279
+ }, z.core.$strip>>;
1280
+ }, z.core.$strip>;
1281
+ export declare const ActGetGranteesMessageSchema: z.ZodObject<{
1282
+ type: z.ZodLiteral<"actGetGrantees">;
1283
+ requestId: z.ZodString;
1284
+ historyReference: z.ZodString;
1285
+ requestOptions: z.ZodOptional<z.ZodObject<{
1286
+ timeout: z.ZodOptional<z.ZodNumber>;
1287
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1288
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1289
+ }, z.core.$strip>>;
1290
+ }, z.core.$strip>;
1291
+ export declare const GetPostageBatchMessageSchema: z.ZodObject<{
1292
+ type: z.ZodLiteral<"getPostageBatch">;
1293
+ requestId: z.ZodString;
1294
+ }, z.core.$strip>;
1295
+ export declare const ConnectMessageSchema: z.ZodObject<{
1296
+ type: z.ZodLiteral<"connect">;
1297
+ requestId: z.ZodString;
1298
+ popupMode: z.ZodOptional<z.ZodEnum<{
1299
+ popup: "popup";
1300
+ window: "window";
1301
+ }>>;
1302
+ }, z.core.$strip>;
1303
+ export declare const ParentToIframeMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1304
+ type: z.ZodLiteral<"parentIdentify">;
1305
+ requestId: z.ZodString;
1306
+ beeApiUrl: z.ZodOptional<z.ZodString>;
1307
+ popupMode: z.ZodOptional<z.ZodEnum<{
1308
+ popup: "popup";
1309
+ window: "window";
1310
+ }>>;
1311
+ metadata: z.ZodObject<{
1312
+ name: z.ZodString;
1313
+ description: z.ZodOptional<z.ZodString>;
1314
+ icon: z.ZodOptional<z.ZodString>;
1315
+ }, z.core.$strip>;
1316
+ buttonConfig: z.ZodOptional<z.ZodObject<{
1317
+ connectText: z.ZodOptional<z.ZodString>;
1318
+ disconnectText: z.ZodOptional<z.ZodString>;
1319
+ loadingText: z.ZodOptional<z.ZodString>;
1320
+ backgroundColor: z.ZodOptional<z.ZodString>;
1321
+ color: z.ZodOptional<z.ZodString>;
1322
+ borderRadius: z.ZodOptional<z.ZodString>;
1323
+ fontFamily: z.ZodOptional<z.ZodString>;
1324
+ fontSize: z.ZodOptional<z.ZodString>;
1325
+ fontWeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1326
+ }, z.core.$strip>>;
1327
+ subsidisedGatewayUrl: z.ZodOptional<z.ZodString>;
1328
+ }, z.core.$strip>, z.ZodObject<{
1329
+ type: z.ZodLiteral<"checkAuth">;
1330
+ requestId: z.ZodString;
1331
+ }, z.core.$strip>, z.ZodObject<{
1332
+ type: z.ZodLiteral<"disconnect">;
1333
+ requestId: z.ZodString;
1334
+ }, z.core.$strip>, z.ZodObject<{
1335
+ type: z.ZodLiteral<"uploadData">;
1336
+ requestId: z.ZodString;
1337
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1338
+ options: z.ZodOptional<z.ZodObject<{
1339
+ pin: z.ZodOptional<z.ZodBoolean>;
1340
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1341
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1342
+ tag: z.ZodOptional<z.ZodNumber>;
1343
+ deferred: z.ZodOptional<z.ZodBoolean>;
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
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
1351
+ useWebSocket: z.ZodOptional<z.ZodBoolean>;
1352
+ useWorkers: z.ZodOptional<z.ZodBoolean>;
1353
+ workerCount: z.ZodOptional<z.ZodNumber>;
1354
+ concurrency: z.ZodOptional<z.ZodNumber>;
1355
+ }, z.core.$strip>, z.ZodObject<{
1356
+ type: z.ZodLiteral<"downloadData">;
1357
+ requestId: z.ZodString;
1358
+ reference: z.ZodString;
1359
+ options: z.ZodOptional<z.ZodObject<{
1360
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1361
+ fallback: z.ZodOptional<z.ZodBoolean>;
1362
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1363
+ actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
1364
+ actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
1365
+ actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1366
+ }, z.core.$strip>>;
1367
+ requestOptions: z.ZodOptional<z.ZodObject<{
1368
+ timeout: z.ZodOptional<z.ZodNumber>;
1369
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1370
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1371
+ }, z.core.$strip>>;
1372
+ }, z.core.$strip>, z.ZodObject<{
1373
+ type: z.ZodLiteral<"deriveAppSecret">;
1374
+ requestId: z.ZodString;
1375
+ label: z.ZodString;
1376
+ }, z.core.$strip>, z.ZodObject<{
1377
+ type: z.ZodLiteral<"getChatKey">;
1378
+ requestId: z.ZodString;
1379
+ }, z.core.$strip>, z.ZodObject<{
1380
+ type: z.ZodLiteral<"setBeeApiUrl">;
1381
+ requestId: z.ZodString;
1382
+ beeApiUrl: z.ZodString;
1383
+ }, z.core.$strip>, z.ZodObject<{
1384
+ type: z.ZodLiteral<"stampChunk">;
1385
+ requestId: z.ZodString;
1386
+ chunk: z.ZodDiscriminatedUnion<[z.ZodObject<{
1387
+ kind: z.ZodLiteral<"content">;
1388
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1389
+ }, z.core.$strict>, z.ZodObject<{
1390
+ kind: z.ZodLiteral<"soc">;
1391
+ identifier: z.ZodString;
1392
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1393
+ signer: z.ZodUnion<readonly [z.ZodLiteral<"app">, z.ZodObject<{
1394
+ privateKey: z.ZodString;
1395
+ }, z.core.$strict>]>;
1396
+ }, z.core.$strict>], "kind">;
1397
+ }, z.core.$strict>, z.ZodObject<{
1398
+ type: z.ZodLiteral<"uploadFile">;
1399
+ requestId: z.ZodString;
1400
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1401
+ name: z.ZodOptional<z.ZodString>;
1402
+ options: z.ZodOptional<z.ZodObject<{
1403
+ pin: z.ZodOptional<z.ZodBoolean>;
1404
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1405
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1406
+ tag: z.ZodOptional<z.ZodNumber>;
1407
+ deferred: 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
+ useWebSocket: z.ZodOptional<z.ZodBoolean>;
1416
+ useWorkers: z.ZodOptional<z.ZodBoolean>;
1417
+ workerCount: z.ZodOptional<z.ZodNumber>;
1418
+ concurrency: z.ZodOptional<z.ZodNumber>;
1419
+ }, z.core.$strip>, z.ZodObject<{
1420
+ type: z.ZodLiteral<"downloadFile">;
1421
+ requestId: z.ZodString;
1422
+ reference: z.ZodString;
1423
+ path: z.ZodOptional<z.ZodString>;
1424
+ options: z.ZodOptional<z.ZodObject<{
1425
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1426
+ fallback: z.ZodOptional<z.ZodBoolean>;
1427
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1428
+ actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
1429
+ actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
1430
+ actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1431
+ }, z.core.$strip>>;
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<"uploadFiles">;
1439
+ requestId: z.ZodString;
1440
+ files: z.ZodArray<z.ZodObject<{
1441
+ path: z.ZodString;
1442
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1443
+ contentType: z.ZodOptional<z.ZodString>;
1444
+ }, z.core.$strip>>;
1445
+ options: z.ZodOptional<z.ZodObject<{
1446
+ pin: z.ZodOptional<z.ZodBoolean>;
1447
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1448
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1449
+ tag: z.ZodOptional<z.ZodNumber>;
1450
+ deferred: z.ZodOptional<z.ZodBoolean>;
1451
+ indexDocument: z.ZodOptional<z.ZodString>;
1452
+ errorDocument: z.ZodOptional<z.ZodString>;
1453
+ }, z.core.$strip>>;
1454
+ requestOptions: z.ZodOptional<z.ZodObject<{
1455
+ timeout: z.ZodOptional<z.ZodNumber>;
1456
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1457
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1458
+ }, z.core.$strip>>;
1459
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
1460
+ useWorkers: z.ZodOptional<z.ZodBoolean>;
1461
+ workerCount: z.ZodOptional<z.ZodNumber>;
1462
+ }, z.core.$strip>, z.ZodObject<{
1463
+ type: z.ZodLiteral<"listFiles">;
1464
+ requestId: z.ZodString;
1465
+ reference: z.ZodString;
1466
+ requestOptions: z.ZodOptional<z.ZodObject<{
1467
+ timeout: z.ZodOptional<z.ZodNumber>;
1468
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1469
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1470
+ }, z.core.$strip>>;
1471
+ }, z.core.$strip>, z.ZodObject<{
1472
+ type: z.ZodLiteral<"uploadChunk">;
1473
+ requestId: z.ZodString;
1474
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1475
+ options: z.ZodOptional<z.ZodObject<{
1476
+ pin: z.ZodOptional<z.ZodBoolean>;
1477
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1478
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1479
+ tag: z.ZodOptional<z.ZodNumber>;
1480
+ deferred: z.ZodOptional<z.ZodBoolean>;
1481
+ }, z.core.$strip>>;
1482
+ requestOptions: z.ZodOptional<z.ZodObject<{
1483
+ timeout: z.ZodOptional<z.ZodNumber>;
1484
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1485
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1486
+ }, z.core.$strip>>;
1487
+ }, z.core.$strip>, z.ZodObject<{
1488
+ type: z.ZodLiteral<"downloadChunk">;
1489
+ requestId: z.ZodString;
1490
+ reference: z.ZodString;
1491
+ options: z.ZodOptional<z.ZodObject<{
1492
+ redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1493
+ fallback: z.ZodOptional<z.ZodBoolean>;
1494
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1495
+ actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
1496
+ actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
1497
+ actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1498
+ }, z.core.$strip>>;
1499
+ requestOptions: z.ZodOptional<z.ZodObject<{
1500
+ timeout: z.ZodOptional<z.ZodNumber>;
1501
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1502
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1503
+ }, z.core.$strip>>;
1504
+ }, z.core.$strip>, z.ZodObject<{
1505
+ type: z.ZodLiteral<"isConnected">;
1506
+ requestId: z.ZodString;
1507
+ }, z.core.$strip>, z.ZodObject<{
1508
+ type: z.ZodLiteral<"getNodeInfo">;
1509
+ requestId: z.ZodString;
1510
+ }, z.core.$strip>, z.ZodObject<{
1511
+ type: z.ZodLiteral<"gsocMine">;
1512
+ requestId: z.ZodString;
1513
+ targetOverlay: z.ZodString;
1514
+ identifier: z.ZodString;
1515
+ proximity: z.ZodOptional<z.ZodNumber>;
1516
+ }, z.core.$strip>, z.ZodObject<{
1517
+ type: z.ZodLiteral<"gsocSend">;
1518
+ requestId: z.ZodString;
1519
+ signer: z.ZodString;
1520
+ identifier: z.ZodString;
1521
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1522
+ options: z.ZodOptional<z.ZodObject<{
1523
+ pin: z.ZodOptional<z.ZodBoolean>;
1524
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1525
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1526
+ tag: z.ZodOptional<z.ZodNumber>;
1527
+ deferred: z.ZodOptional<z.ZodBoolean>;
1528
+ }, z.core.$strip>>;
1529
+ requestOptions: z.ZodOptional<z.ZodObject<{
1530
+ timeout: z.ZodOptional<z.ZodNumber>;
1531
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1532
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1533
+ }, z.core.$strip>>;
1534
+ }, z.core.$strip>, z.ZodObject<{
1535
+ type: z.ZodLiteral<"socUpload">;
1536
+ requestId: z.ZodString;
1537
+ identifier: z.ZodString;
1538
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1539
+ signer: z.ZodOptional<z.ZodString>;
1540
+ options: z.ZodOptional<z.ZodObject<{
1541
+ pin: z.ZodOptional<z.ZodBoolean>;
1542
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1543
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1544
+ tag: z.ZodOptional<z.ZodNumber>;
1545
+ deferred: z.ZodOptional<z.ZodBoolean>;
1546
+ }, z.core.$strip>>;
1547
+ requestOptions: z.ZodOptional<z.ZodObject<{
1548
+ timeout: z.ZodOptional<z.ZodNumber>;
1549
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1550
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1551
+ }, z.core.$strip>>;
1552
+ }, z.core.$strip>, z.ZodObject<{
1553
+ type: z.ZodLiteral<"socRawUpload">;
1554
+ requestId: z.ZodString;
1555
+ identifier: z.ZodString;
1556
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1557
+ signer: z.ZodOptional<z.ZodString>;
1558
+ options: z.ZodOptional<z.ZodObject<{
1559
+ pin: z.ZodOptional<z.ZodBoolean>;
1560
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1561
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1562
+ tag: z.ZodOptional<z.ZodNumber>;
1563
+ deferred: z.ZodOptional<z.ZodBoolean>;
1564
+ }, z.core.$strip>>;
1565
+ requestOptions: z.ZodOptional<z.ZodObject<{
1566
+ timeout: z.ZodOptional<z.ZodNumber>;
1567
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1568
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1569
+ }, z.core.$strip>>;
1570
+ }, z.core.$strip>, z.ZodObject<{
1571
+ type: z.ZodLiteral<"socDownload">;
1572
+ requestId: z.ZodString;
1573
+ owner: z.ZodOptional<z.ZodString>;
1574
+ identifier: z.ZodString;
1575
+ encryptionKey: z.ZodString;
1576
+ requestOptions: z.ZodOptional<z.ZodObject<{
1577
+ timeout: z.ZodOptional<z.ZodNumber>;
1578
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1579
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1580
+ }, z.core.$strip>>;
1581
+ }, z.core.$strip>, z.ZodObject<{
1582
+ type: z.ZodLiteral<"socRawDownload">;
1583
+ requestId: z.ZodString;
1584
+ owner: z.ZodOptional<z.ZodString>;
1585
+ identifier: z.ZodString;
1586
+ encryptionKey: z.ZodOptional<z.ZodString>;
1587
+ requestOptions: z.ZodOptional<z.ZodObject<{
1588
+ timeout: z.ZodOptional<z.ZodNumber>;
1589
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1590
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1591
+ }, z.core.$strip>>;
1592
+ }, z.core.$strip>, z.ZodObject<{
1593
+ type: z.ZodLiteral<"socGetOwner">;
1594
+ requestId: z.ZodString;
1595
+ }, z.core.$strip>, z.ZodObject<{
1596
+ type: z.ZodLiteral<"epochFeedDownloadReference">;
1597
+ requestId: z.ZodString;
1598
+ topic: z.ZodString;
1599
+ owner: z.ZodOptional<z.ZodString>;
1600
+ at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1601
+ after: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1602
+ encryptionKey: z.ZodOptional<z.ZodString>;
1603
+ requestOptions: z.ZodOptional<z.ZodObject<{
1604
+ timeout: z.ZodOptional<z.ZodNumber>;
1605
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1606
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1607
+ }, z.core.$strip>>;
1608
+ }, z.core.$strip>, z.ZodObject<{
1609
+ type: z.ZodLiteral<"epochFeedUploadReference">;
1610
+ requestId: z.ZodString;
1611
+ topic: z.ZodString;
1612
+ signer: z.ZodOptional<z.ZodString>;
1613
+ at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1614
+ reference: z.ZodString;
1615
+ encryptionKey: z.ZodOptional<z.ZodString>;
1616
+ hints: z.ZodOptional<z.ZodObject<{
1617
+ lastEpoch: z.ZodOptional<z.ZodObject<{
1618
+ start: z.ZodString;
1619
+ level: z.ZodNumber;
1620
+ }, z.core.$strip>>;
1621
+ lastTimestamp: z.ZodOptional<z.ZodString>;
1622
+ }, z.core.$strip>>;
1623
+ requestOptions: z.ZodOptional<z.ZodObject<{
1624
+ timeout: z.ZodOptional<z.ZodNumber>;
1625
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1626
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1627
+ }, z.core.$strip>>;
1628
+ }, z.core.$strip>, z.ZodObject<{
1629
+ type: z.ZodLiteral<"feedGetOwner">;
1630
+ requestId: z.ZodString;
1631
+ }, z.core.$strip>, z.ZodObject<{
1632
+ type: z.ZodLiteral<"seqFeedGetOwner">;
1633
+ requestId: z.ZodString;
1634
+ }, z.core.$strip>, z.ZodObject<{
1635
+ type: z.ZodLiteral<"seqFeedDownloadPayload">;
1636
+ requestId: z.ZodString;
1637
+ topic: z.ZodString;
1638
+ owner: z.ZodOptional<z.ZodString>;
1639
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1640
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1641
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1642
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1643
+ encryptionKey: z.ZodString;
1644
+ requestOptions: z.ZodOptional<z.ZodObject<{
1645
+ timeout: z.ZodOptional<z.ZodNumber>;
1646
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1647
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1648
+ }, z.core.$strip>>;
1649
+ }, z.core.$strip>, z.ZodObject<{
1650
+ type: z.ZodLiteral<"seqFeedDownloadRawPayload">;
1651
+ requestId: z.ZodString;
1652
+ topic: z.ZodString;
1653
+ owner: z.ZodOptional<z.ZodString>;
1654
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1655
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1656
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1657
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1658
+ encryptionKey: z.ZodOptional<z.ZodString>;
1659
+ requestOptions: z.ZodOptional<z.ZodObject<{
1660
+ timeout: z.ZodOptional<z.ZodNumber>;
1661
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1662
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1663
+ }, z.core.$strip>>;
1664
+ }, z.core.$strip>, z.ZodObject<{
1665
+ type: z.ZodLiteral<"seqFeedDownloadReference">;
1666
+ requestId: z.ZodString;
1667
+ topic: z.ZodString;
1668
+ owner: z.ZodOptional<z.ZodString>;
1669
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1670
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1671
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1672
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1673
+ encryptionKey: z.ZodString;
1674
+ requestOptions: z.ZodOptional<z.ZodObject<{
1675
+ timeout: z.ZodOptional<z.ZodNumber>;
1676
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1677
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1678
+ }, z.core.$strip>>;
1679
+ }, z.core.$strip>, z.ZodObject<{
1680
+ type: z.ZodLiteral<"seqFeedUploadPayload">;
1681
+ requestId: z.ZodString;
1682
+ topic: z.ZodString;
1683
+ signer: z.ZodOptional<z.ZodString>;
1684
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1685
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1686
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1687
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1688
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1689
+ options: z.ZodOptional<z.ZodObject<{
1690
+ pin: z.ZodOptional<z.ZodBoolean>;
1691
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1692
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1693
+ tag: z.ZodOptional<z.ZodNumber>;
1694
+ deferred: z.ZodOptional<z.ZodBoolean>;
1695
+ }, z.core.$strip>>;
1696
+ requestOptions: z.ZodOptional<z.ZodObject<{
1697
+ timeout: z.ZodOptional<z.ZodNumber>;
1698
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1699
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1700
+ }, z.core.$strip>>;
1701
+ }, z.core.$strip>, z.ZodObject<{
1702
+ type: z.ZodLiteral<"seqFeedUploadRawPayload">;
1703
+ requestId: z.ZodString;
1704
+ topic: z.ZodString;
1705
+ signer: z.ZodOptional<z.ZodString>;
1706
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1707
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1708
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1709
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1710
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1711
+ encryptionKey: z.ZodOptional<z.ZodString>;
1712
+ options: z.ZodOptional<z.ZodObject<{
1713
+ pin: z.ZodOptional<z.ZodBoolean>;
1714
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1715
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1716
+ tag: z.ZodOptional<z.ZodNumber>;
1717
+ deferred: z.ZodOptional<z.ZodBoolean>;
1718
+ }, z.core.$strip>>;
1719
+ requestOptions: z.ZodOptional<z.ZodObject<{
1720
+ timeout: z.ZodOptional<z.ZodNumber>;
1721
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1722
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1723
+ }, z.core.$strip>>;
1724
+ }, z.core.$strip>, z.ZodObject<{
1725
+ type: z.ZodLiteral<"seqFeedUploadReference">;
1726
+ requestId: z.ZodString;
1727
+ topic: z.ZodString;
1728
+ signer: z.ZodOptional<z.ZodString>;
1729
+ reference: z.ZodString;
1730
+ index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1731
+ at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1732
+ hasTimestamp: z.ZodOptional<z.ZodBoolean>;
1733
+ lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
1734
+ options: z.ZodOptional<z.ZodObject<{
1735
+ pin: z.ZodOptional<z.ZodBoolean>;
1736
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1737
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1738
+ tag: z.ZodOptional<z.ZodNumber>;
1739
+ deferred: z.ZodOptional<z.ZodBoolean>;
1740
+ }, z.core.$strip>>;
1741
+ requestOptions: z.ZodOptional<z.ZodObject<{
1742
+ timeout: z.ZodOptional<z.ZodNumber>;
1743
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1744
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1745
+ }, z.core.$strip>>;
1746
+ }, z.core.$strip>, z.ZodObject<{
1747
+ type: z.ZodLiteral<"createFeedManifest">;
1748
+ requestId: z.ZodString;
1749
+ topic: z.ZodString;
1750
+ owner: z.ZodOptional<z.ZodString>;
1751
+ feedType: z.ZodOptional<z.ZodEnum<{
1752
+ Sequence: "Sequence";
1753
+ Epoch: "Epoch";
1754
+ }>>;
1755
+ uploadOptions: z.ZodOptional<z.ZodObject<{
1756
+ pin: z.ZodOptional<z.ZodBoolean>;
1757
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1758
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1759
+ tag: z.ZodOptional<z.ZodNumber>;
1760
+ deferred: z.ZodOptional<z.ZodBoolean>;
1761
+ }, z.core.$strip>>;
1762
+ requestOptions: z.ZodOptional<z.ZodObject<{
1763
+ timeout: z.ZodOptional<z.ZodNumber>;
1764
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1765
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1766
+ }, z.core.$strip>>;
1767
+ }, z.core.$strip>, z.ZodObject<{
1768
+ type: z.ZodLiteral<"actUploadData">;
1769
+ requestId: z.ZodString;
1770
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1771
+ grantees: z.ZodArray<z.ZodString>;
1772
+ options: z.ZodOptional<z.ZodObject<{
1773
+ pin: z.ZodOptional<z.ZodBoolean>;
1774
+ encrypt: z.ZodOptional<z.ZodBoolean>;
1775
+ encryptManifest: z.ZodOptional<z.ZodBoolean>;
1776
+ tag: z.ZodOptional<z.ZodNumber>;
1777
+ deferred: z.ZodOptional<z.ZodBoolean>;
1778
+ beeCompatible: z.ZodOptional<z.ZodBoolean>;
1779
+ publisher: z.ZodOptional<z.ZodEnum<{
1780
+ app: "app";
1781
+ identity: "identity";
1782
+ }>>;
1783
+ }, z.core.$strip>>;
1784
+ requestOptions: z.ZodOptional<z.ZodObject<{
1785
+ timeout: z.ZodOptional<z.ZodNumber>;
1786
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1787
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1788
+ }, z.core.$strip>>;
1789
+ enableProgress: z.ZodOptional<z.ZodBoolean>;
1790
+ }, z.core.$strip>, z.ZodObject<{
1791
+ type: z.ZodLiteral<"actDownloadData">;
1792
+ requestId: z.ZodString;
1793
+ encryptedReference: z.ZodString;
1794
+ historyReference: z.ZodString;
1795
+ publisherPubKey: z.ZodString;
1796
+ timestamp: z.ZodOptional<z.ZodNumber>;
1797
+ requestOptions: z.ZodOptional<z.ZodObject<{
1798
+ timeout: z.ZodOptional<z.ZodNumber>;
1799
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1800
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1801
+ }, z.core.$strip>>;
1802
+ }, z.core.$strip>, z.ZodObject<{
1803
+ type: z.ZodLiteral<"actAddGrantees">;
1804
+ requestId: z.ZodString;
1805
+ historyReference: z.ZodString;
1806
+ grantees: z.ZodArray<z.ZodString>;
1807
+ requestOptions: z.ZodOptional<z.ZodObject<{
1808
+ timeout: z.ZodOptional<z.ZodNumber>;
1809
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1810
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1811
+ }, z.core.$strip>>;
1812
+ }, z.core.$strip>, z.ZodObject<{
1813
+ type: z.ZodLiteral<"actRevokeGrantees">;
1814
+ requestId: z.ZodString;
1815
+ historyReference: z.ZodString;
1816
+ encryptedReference: z.ZodString;
1817
+ revokeGrantees: z.ZodArray<z.ZodString>;
1818
+ requestOptions: z.ZodOptional<z.ZodObject<{
1819
+ timeout: z.ZodOptional<z.ZodNumber>;
1820
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1821
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1822
+ }, z.core.$strip>>;
1823
+ }, z.core.$strip>, z.ZodObject<{
1824
+ type: z.ZodLiteral<"actGetGrantees">;
1825
+ requestId: z.ZodString;
1826
+ historyReference: z.ZodString;
1827
+ requestOptions: z.ZodOptional<z.ZodObject<{
1828
+ timeout: z.ZodOptional<z.ZodNumber>;
1829
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1830
+ endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
1831
+ }, z.core.$strip>>;
1832
+ }, z.core.$strip>, z.ZodObject<{
1833
+ type: z.ZodLiteral<"getPostageBatch">;
1834
+ requestId: z.ZodString;
1835
+ }, z.core.$strip>, z.ZodObject<{
1836
+ type: z.ZodLiteral<"connect">;
1837
+ requestId: z.ZodString;
1838
+ popupMode: z.ZodOptional<z.ZodEnum<{
1839
+ popup: "popup";
1840
+ window: "window";
1841
+ }>>;
1842
+ }, z.core.$strip>], "type">;
1843
+ export type ParentIdentifyMessage = z.infer<typeof ParentIdentifyMessageSchema>;
1844
+ export type CheckAuthMessage = z.infer<typeof CheckAuthMessageSchema>;
1845
+ export type DisconnectMessage = z.infer<typeof DisconnectMessageSchema>;
1846
+ export type UploadDataMessage = z.infer<typeof UploadDataMessageSchema>;
1847
+ export type DownloadDataMessage = z.infer<typeof DownloadDataMessageSchema>;
1848
+ export type DeriveAppSecretMessage = z.infer<typeof DeriveAppSecretMessageSchema>;
1849
+ export type GetChatKeyMessage = z.infer<typeof GetChatKeyMessageSchema>;
1850
+ export type SetBeeApiUrlMessage = z.infer<typeof SetBeeApiUrlMessageSchema>;
1851
+ export type StampChunkSigner = z.infer<typeof StampChunkSignerSchema>;
1852
+ export type StampChunkRequest = z.infer<typeof StampChunkRequestSchema>;
1853
+ export type StampChunkMessage = z.infer<typeof StampChunkMessageSchema>;
1854
+ export type UploadFileMessage = z.infer<typeof UploadFileMessageSchema>;
1855
+ export type DownloadFileMessage = z.infer<typeof DownloadFileMessageSchema>;
1856
+ export type UploadFilesMessage = z.infer<typeof UploadFilesMessageSchema>;
1857
+ export type ListFilesMessage = z.infer<typeof ListFilesMessageSchema>;
1858
+ export type UploadChunkMessage = z.infer<typeof UploadChunkMessageSchema>;
1859
+ export type DownloadChunkMessage = z.infer<typeof DownloadChunkMessageSchema>;
1860
+ export type IsConnectedMessage = z.infer<typeof IsConnectedMessageSchema>;
1861
+ export type GetNodeInfoMessage = z.infer<typeof GetNodeInfoMessageSchema>;
1862
+ export type GsocMineMessage = z.infer<typeof GsocMineMessageSchema>;
1863
+ export type GsocSendMessage = z.infer<typeof GsocSendMessageSchema>;
1864
+ export type SocUploadMessage = z.infer<typeof SocUploadMessageSchema>;
1865
+ export type SocRawUploadMessage = z.infer<typeof SocRawUploadMessageSchema>;
1866
+ export type SocDownloadMessage = z.infer<typeof SocDownloadMessageSchema>;
1867
+ export type SocRawDownloadMessage = z.infer<typeof SocRawDownloadMessageSchema>;
1868
+ export type SocGetOwnerMessage = z.infer<typeof SocGetOwnerMessageSchema>;
1869
+ export type EpochFeedDownloadReferenceMessage = z.infer<typeof EpochFeedDownloadReferenceMessageSchema>;
1870
+ export type EpochFeedUploadReferenceMessage = z.infer<typeof EpochFeedUploadReferenceMessageSchema>;
1871
+ export type FeedGetOwnerMessage = z.infer<typeof FeedGetOwnerMessageSchema>;
1872
+ export type SequentialFeedGetOwnerMessage = z.infer<typeof SequentialFeedGetOwnerMessageSchema>;
1873
+ export type SequentialFeedDownloadPayloadMessage = z.infer<typeof SequentialFeedDownloadPayloadMessageSchema>;
1874
+ export type SequentialFeedDownloadRawPayloadMessage = z.infer<typeof SequentialFeedDownloadRawPayloadMessageSchema>;
1875
+ export type SequentialFeedDownloadReferenceMessage = z.infer<typeof SequentialFeedDownloadReferenceMessageSchema>;
1876
+ export type SequentialFeedUploadPayloadMessage = z.infer<typeof SequentialFeedUploadPayloadMessageSchema>;
1877
+ export type SequentialFeedUploadRawPayloadMessage = z.infer<typeof SequentialFeedUploadRawPayloadMessageSchema>;
1878
+ export type SequentialFeedUploadReferenceMessage = z.infer<typeof SequentialFeedUploadReferenceMessageSchema>;
1879
+ export type CreateFeedManifestMessage = z.infer<typeof CreateFeedManifestMessageSchema>;
1880
+ export type ActUploadDataMessage = z.infer<typeof ActUploadDataMessageSchema>;
1881
+ export type ActDownloadDataMessage = z.infer<typeof ActDownloadDataMessageSchema>;
1882
+ export type ActAddGranteesMessage = z.infer<typeof ActAddGranteesMessageSchema>;
1883
+ export type ActRevokeGranteesMessage = z.infer<typeof ActRevokeGranteesMessageSchema>;
1884
+ export type ActGetGranteesMessage = z.infer<typeof ActGetGranteesMessageSchema>;
1885
+ export type GetPostageBatchMessage = z.infer<typeof GetPostageBatchMessageSchema>;
1886
+ export type ConnectMessage = z.infer<typeof ConnectMessageSchema>;
1887
+ export type ParentToIframeMessage = z.infer<typeof ParentToIframeMessageSchema>;
1888
+ export declare const ProxyReadyMessageSchema: z.ZodObject<{
1889
+ type: z.ZodLiteral<"proxyReady">;
1890
+ authenticated: z.ZodBoolean;
1891
+ parentOrigin: z.ZodString;
1892
+ storageShared: z.ZodOptional<z.ZodBoolean>;
1893
+ }, z.core.$strip>;
1894
+ export declare const InitErrorMessageSchema: z.ZodObject<{
1895
+ type: z.ZodLiteral<"initError">;
1896
+ error: z.ZodString;
1897
+ }, z.core.$strip>;
1898
+ export declare const AuthStatusResponseMessageSchema: z.ZodObject<{
1899
+ type: z.ZodLiteral<"authStatusResponse">;
1900
+ requestId: z.ZodString;
1901
+ authenticated: z.ZodBoolean;
1902
+ origin: z.ZodOptional<z.ZodString>;
1903
+ beeApiUrl: z.ZodOptional<z.ZodString>;
1904
+ }, z.core.$strip>;
1905
+ export declare const DisconnectResponseMessageSchema: z.ZodObject<{
1906
+ type: z.ZodLiteral<"disconnectResponse">;
1907
+ requestId: z.ZodString;
1908
+ success: z.ZodBoolean;
1909
+ }, z.core.$strip>;
1910
+ export declare const AuthSuccessMessageSchema: z.ZodObject<{
1911
+ type: z.ZodLiteral<"authSuccess">;
1912
+ origin: z.ZodString;
1913
+ }, z.core.$strip>;
1914
+ export declare const UploadDataResponseMessageSchema: z.ZodObject<{
1915
+ type: z.ZodLiteral<"uploadDataResponse">;
1916
+ requestId: z.ZodString;
1917
+ reference: z.ZodString;
1918
+ tagUid: z.ZodOptional<z.ZodNumber>;
1919
+ }, z.core.$strip>;
1920
+ export declare const DownloadDataResponseMessageSchema: z.ZodObject<{
1921
+ type: z.ZodLiteral<"downloadDataResponse">;
1922
+ requestId: z.ZodString;
1923
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1924
+ }, z.core.$strip>;
1925
+ export declare const DeriveAppSecretResponseMessageSchema: z.ZodObject<{
1926
+ type: z.ZodLiteral<"deriveAppSecretResponse">;
1927
+ requestId: z.ZodString;
1928
+ secret: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1929
+ }, z.core.$strip>;
1930
+ export declare const GetChatKeyResponseMessageSchema: z.ZodObject<{
1931
+ type: z.ZodLiteral<"getChatKeyResponse">;
1932
+ requestId: z.ZodString;
1933
+ chatKey: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1934
+ }, z.core.$strip>;
1935
+ export declare const SetBeeApiUrlResponseMessageSchema: z.ZodObject<{
1936
+ type: z.ZodLiteral<"setBeeApiUrlResponse">;
1937
+ requestId: z.ZodString;
1938
+ beeApiUrl: z.ZodString;
1939
+ }, z.core.$strip>;
1940
+ export declare const StampChunkResponseMessageSchema: z.ZodObject<{
1941
+ type: z.ZodLiteral<"stampChunkResponse">;
1942
+ requestId: z.ZodString;
1943
+ address: z.ZodString;
1944
+ stamp: z.ZodString;
1945
+ owner: z.ZodOptional<z.ZodString>;
1946
+ signature: z.ZodOptional<z.ZodString>;
1947
+ }, z.core.$strip>;
1948
+ export declare const UploadFileResponseMessageSchema: z.ZodObject<{
1949
+ type: z.ZodLiteral<"uploadFileResponse">;
1950
+ requestId: z.ZodString;
1951
+ reference: z.ZodString;
1952
+ tagUid: z.ZodOptional<z.ZodNumber>;
1953
+ }, z.core.$strip>;
1954
+ export declare const DownloadFileResponseMessageSchema: z.ZodObject<{
1955
+ type: z.ZodLiteral<"downloadFileResponse">;
1956
+ requestId: z.ZodString;
1957
+ name: z.ZodString;
1958
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1959
+ }, z.core.$strip>;
1960
+ export declare const UploadFilesResponseMessageSchema: z.ZodObject<{
1961
+ type: z.ZodLiteral<"uploadFilesResponse">;
1962
+ requestId: z.ZodString;
1963
+ reference: z.ZodString;
1964
+ tagUid: z.ZodOptional<z.ZodNumber>;
1965
+ }, z.core.$strip>;
1966
+ export declare const ListFilesResponseMessageSchema: z.ZodObject<{
1967
+ type: z.ZodLiteral<"listFilesResponse">;
1968
+ requestId: z.ZodString;
1969
+ entries: z.ZodArray<z.ZodObject<{
1970
+ path: z.ZodString;
1971
+ reference: z.ZodString;
1972
+ contentType: z.ZodOptional<z.ZodString>;
1973
+ }, z.core.$strip>>;
1974
+ }, z.core.$strip>;
1975
+ export declare const UploadChunkResponseMessageSchema: z.ZodObject<{
1976
+ type: z.ZodLiteral<"uploadChunkResponse">;
1977
+ requestId: z.ZodString;
1978
+ reference: z.ZodString;
1979
+ }, z.core.$strip>;
1980
+ export declare const DownloadChunkResponseMessageSchema: z.ZodObject<{
1981
+ type: z.ZodLiteral<"downloadChunkResponse">;
1982
+ requestId: z.ZodString;
1983
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1984
+ }, z.core.$strip>;
1985
+ export declare const UploadProgressMessageSchema: z.ZodObject<{
1986
+ type: z.ZodLiteral<"uploadProgress">;
1987
+ requestId: z.ZodString;
1988
+ total: z.ZodNumber;
1989
+ processed: z.ZodNumber;
1990
+ }, z.core.$strip>;
1991
+ /**
1992
+ * Why a request failed, as a dApp can branch on it (#761). `error.message`
1993
+ * carries the text as before; the code is the stable part.
1994
+ *
1995
+ * - `not-authenticated` — no session for this origin
1996
+ * - `upload-unavailable` — the session refuses to stamp; `reason` says why,
1997
+ * in the same vocabulary as `ConnectionInfo.uploadUnavailableReason`
1998
+ * - `partition-contended` — every partition of the batch is held by other
1999
+ * devices and none yielded in time
2000
+ * - `lease-lost` — this device's partition was reclaimed mid-write
2001
+ * - `bee-rejected` — Bee or the gateway answered with a non-2xx status:
2002
+ * `status`, `beeMessage` and `url` say which
2003
+ * - `network` — the request never got a response (a CORS preflight refusal
2004
+ * shows as this)
2005
+ * - `timeout` — a deadline: the proxy's, or the client's round trip
2006
+ * - `invalid-request` — the message or an argument failed validation
2007
+ * - `invalid-state` — the client cannot take the call in its current state:
2008
+ * `initialize()` has not resolved, was already called, or `destroy()` ran;
2009
+ * a call (or an `initialize()`) still pending when `destroy()` runs rejects
2010
+ * with it too
2011
+ * - `init-failed` — the proxy iframe did not come up: it failed to load, the
2012
+ * proxy refused the origin, or it did not answer within
2013
+ * `initializationTimeout`
2014
+ * - `popup-blocked` — the browser blocked the authentication popup `connect()`
2015
+ * opens (not called from a user gesture, or a blocker)
2016
+ * - `internal` — anything else, message preserved
2017
+ */
2018
+ export declare const SwarmIdErrorCodeSchema: z.ZodEnum<{
2019
+ timeout: "timeout";
2020
+ "not-authenticated": "not-authenticated";
2021
+ "upload-unavailable": "upload-unavailable";
2022
+ "partition-contended": "partition-contended";
2023
+ "lease-lost": "lease-lost";
2024
+ "bee-rejected": "bee-rejected";
2025
+ network: "network";
2026
+ "invalid-request": "invalid-request";
2027
+ "invalid-state": "invalid-state";
2028
+ "init-failed": "init-failed";
2029
+ "popup-blocked": "popup-blocked";
2030
+ internal: "internal";
2031
+ }>;
2032
+ export type SwarmIdErrorCode = z.infer<typeof SwarmIdErrorCodeSchema>;
2033
+ /** The fields of a `SwarmIdError` as they cross the bridge */
2034
+ export declare const WireErrorSchema: z.ZodObject<{
2035
+ error: z.ZodString;
2036
+ code: z.ZodCatch<z.ZodEnum<{
2037
+ timeout: "timeout";
2038
+ "not-authenticated": "not-authenticated";
2039
+ "upload-unavailable": "upload-unavailable";
2040
+ "partition-contended": "partition-contended";
2041
+ "lease-lost": "lease-lost";
2042
+ "bee-rejected": "bee-rejected";
2043
+ network: "network";
2044
+ "invalid-request": "invalid-request";
2045
+ "invalid-state": "invalid-state";
2046
+ "init-failed": "init-failed";
2047
+ "popup-blocked": "popup-blocked";
2048
+ internal: "internal";
2049
+ }>>;
2050
+ reason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
2051
+ subsidised: "subsidised";
2052
+ "no-stamp": "no-stamp";
2053
+ "stamper-failed": "stamper-failed";
2054
+ "stamp-expired": "stamp-expired";
2055
+ "stamp-not-usable": "stamp-not-usable";
2056
+ "app-stamp-count": "app-stamp-count";
2057
+ "app-stamp-rate": "app-stamp-rate";
2058
+ "app-bucket-share": "app-bucket-share";
2059
+ "app-slice-full": "app-slice-full";
2060
+ "session-unconfirmed": "session-unconfirmed";
2061
+ }>>>;
2062
+ status: z.ZodOptional<z.ZodNumber>;
2063
+ beeMessage: z.ZodOptional<z.ZodString>;
2064
+ url: z.ZodOptional<z.ZodString>;
2065
+ }, z.core.$strip>;
2066
+ export type WireError = z.infer<typeof WireErrorSchema>;
2067
+ export declare const ErrorMessageSchema: z.ZodObject<{
2068
+ error: z.ZodString;
2069
+ code: z.ZodCatch<z.ZodEnum<{
2070
+ timeout: "timeout";
2071
+ "not-authenticated": "not-authenticated";
2072
+ "upload-unavailable": "upload-unavailable";
2073
+ "partition-contended": "partition-contended";
2074
+ "lease-lost": "lease-lost";
2075
+ "bee-rejected": "bee-rejected";
2076
+ network: "network";
2077
+ "invalid-request": "invalid-request";
2078
+ "invalid-state": "invalid-state";
2079
+ "init-failed": "init-failed";
2080
+ "popup-blocked": "popup-blocked";
2081
+ internal: "internal";
2082
+ }>>;
2083
+ reason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
2084
+ subsidised: "subsidised";
2085
+ "no-stamp": "no-stamp";
2086
+ "stamper-failed": "stamper-failed";
2087
+ "stamp-expired": "stamp-expired";
2088
+ "stamp-not-usable": "stamp-not-usable";
2089
+ "app-stamp-count": "app-stamp-count";
2090
+ "app-stamp-rate": "app-stamp-rate";
2091
+ "app-bucket-share": "app-bucket-share";
2092
+ "app-slice-full": "app-slice-full";
2093
+ "session-unconfirmed": "session-unconfirmed";
2094
+ }>>>;
2095
+ status: z.ZodOptional<z.ZodNumber>;
2096
+ beeMessage: z.ZodOptional<z.ZodString>;
2097
+ url: z.ZodOptional<z.ZodString>;
2098
+ type: z.ZodLiteral<"error">;
2099
+ requestId: z.ZodString;
2100
+ }, z.core.$strip>;
2101
+ export declare const ConnectionInfoChangedMessageSchema: z.ZodObject<{
2102
+ type: z.ZodLiteral<"connectionInfoChanged">;
2103
+ canUpload: z.ZodBoolean;
2104
+ storagePartitioned: z.ZodOptional<z.ZodBoolean>;
2105
+ uploadMode: z.ZodOptional<z.ZodEnum<{
2106
+ "user-stamp": "user-stamp";
2107
+ subsidised: "subsidised";
2108
+ unavailable: "unavailable";
2109
+ }>>;
2110
+ uploadUnavailableReason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
2111
+ subsidised: "subsidised";
2112
+ "no-stamp": "no-stamp";
2113
+ "stamper-failed": "stamper-failed";
2114
+ "stamp-expired": "stamp-expired";
2115
+ "stamp-not-usable": "stamp-not-usable";
2116
+ "app-stamp-count": "app-stamp-count";
2117
+ "app-stamp-rate": "app-stamp-rate";
2118
+ "app-bucket-share": "app-bucket-share";
2119
+ "app-slice-full": "app-slice-full";
2120
+ "session-unconfirmed": "session-unconfirmed";
2121
+ }>>>;
2122
+ identity: z.ZodOptional<z.ZodObject<{
2123
+ id: z.ZodString;
2124
+ name: z.ZodString;
2125
+ address: z.ZodString;
2126
+ publicKey: z.ZodOptional<z.ZodString>;
2127
+ sharingPublicKey: z.ZodOptional<z.ZodString>;
2128
+ postageSignerAddress: z.ZodOptional<z.ZodString>;
2129
+ avatar: z.ZodObject<{
2130
+ source: z.ZodEnum<{
2131
+ generated: "generated";
2132
+ }>;
2133
+ url: z.ZodString;
2134
+ }, z.core.$strip>;
2135
+ }, z.core.$strip>>;
2136
+ appKey: z.ZodOptional<z.ZodObject<{
2137
+ address: z.ZodString;
2138
+ publicKey: z.ZodString;
2139
+ }, z.core.$strip>>;
2140
+ partition: z.ZodOptional<z.ZodNumber>;
2141
+ chatBinding: z.ZodOptional<z.ZodObject<{
2142
+ message: z.ZodString;
2143
+ signature: z.ZodString;
2144
+ }, z.core.$strip>>;
2145
+ beeApiUrl: z.ZodOptional<z.ZodString>;
2146
+ }, z.core.$strip>;
2147
+ export declare const ConnectResponseMessageSchema: z.ZodObject<{
2148
+ type: z.ZodLiteral<"connectResponse">;
2149
+ requestId: z.ZodString;
2150
+ success: z.ZodBoolean;
2151
+ }, z.core.$strip>;
2152
+ export declare const IsConnectedResponseMessageSchema: z.ZodObject<{
2153
+ type: z.ZodLiteral<"isConnectedResponse">;
2154
+ requestId: z.ZodString;
2155
+ connected: z.ZodBoolean;
2156
+ }, z.core.$strip>;
2157
+ export declare const GetNodeInfoResponseMessageSchema: z.ZodObject<{
2158
+ type: z.ZodLiteral<"getNodeInfoResponse">;
2159
+ requestId: z.ZodString;
2160
+ beeMode: z.ZodString;
2161
+ chequebookEnabled: z.ZodBoolean;
2162
+ swapEnabled: z.ZodBoolean;
2163
+ }, z.core.$strip>;
2164
+ export declare const GsocMineResponseMessageSchema: z.ZodObject<{
2165
+ type: z.ZodLiteral<"gsocMineResponse">;
2166
+ requestId: z.ZodString;
2167
+ signer: z.ZodString;
2168
+ }, z.core.$strip>;
2169
+ export declare const GsocSendResponseMessageSchema: z.ZodObject<{
2170
+ type: z.ZodLiteral<"gsocSendResponse">;
2171
+ requestId: z.ZodString;
2172
+ reference: z.ZodString;
2173
+ tagUid: z.ZodOptional<z.ZodNumber>;
2174
+ }, z.core.$strip>;
2175
+ export declare const SocUploadResponseMessageSchema: z.ZodObject<{
2176
+ type: z.ZodLiteral<"socUploadResponse">;
2177
+ requestId: z.ZodString;
2178
+ reference: z.ZodString;
2179
+ tagUid: z.ZodOptional<z.ZodNumber>;
2180
+ encryptionKey: z.ZodOptional<z.ZodString>;
2181
+ owner: z.ZodString;
2182
+ }, z.core.$strip>;
2183
+ export declare const SocRawUploadResponseMessageSchema: z.ZodObject<{
2184
+ type: z.ZodLiteral<"socRawUploadResponse">;
2185
+ requestId: z.ZodString;
2186
+ reference: z.ZodString;
2187
+ tagUid: z.ZodOptional<z.ZodNumber>;
2188
+ encryptionKey: z.ZodOptional<z.ZodString>;
2189
+ owner: z.ZodString;
2190
+ }, z.core.$strip>;
2191
+ export declare const SocDownloadResponseMessageSchema: z.ZodObject<{
2192
+ type: z.ZodLiteral<"socDownloadResponse">;
2193
+ requestId: z.ZodString;
2194
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2195
+ identifier: z.ZodString;
2196
+ signature: z.ZodString;
2197
+ span: z.ZodNumber;
2198
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2199
+ address: z.ZodString;
2200
+ owner: z.ZodString;
2201
+ }, z.core.$strip>;
2202
+ export declare const SocRawDownloadResponseMessageSchema: z.ZodObject<{
2203
+ type: z.ZodLiteral<"socRawDownloadResponse">;
2204
+ requestId: z.ZodString;
2205
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2206
+ identifier: z.ZodString;
2207
+ signature: z.ZodString;
2208
+ span: z.ZodNumber;
2209
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2210
+ address: z.ZodString;
2211
+ owner: z.ZodString;
2212
+ }, z.core.$strip>;
2213
+ export declare const SocGetOwnerResponseMessageSchema: z.ZodObject<{
2214
+ type: z.ZodLiteral<"socGetOwnerResponse">;
2215
+ requestId: z.ZodString;
2216
+ owner: z.ZodString;
2217
+ }, z.core.$strip>;
2218
+ export declare const EpochFeedDownloadReferenceResponseMessageSchema: z.ZodObject<{
2219
+ type: z.ZodLiteral<"epochFeedDownloadReferenceResponse">;
2220
+ requestId: z.ZodString;
2221
+ reference: z.ZodOptional<z.ZodString>;
2222
+ }, z.core.$strip>;
2223
+ export declare const EpochFeedUploadReferenceResponseMessageSchema: z.ZodObject<{
2224
+ type: z.ZodLiteral<"epochFeedUploadReferenceResponse">;
2225
+ requestId: z.ZodString;
2226
+ socAddress: z.ZodString;
2227
+ encryptionKey: z.ZodOptional<z.ZodString>;
2228
+ epoch: z.ZodObject<{
2229
+ start: z.ZodString;
2230
+ level: z.ZodNumber;
2231
+ }, z.core.$strip>;
2232
+ timestamp: z.ZodString;
2233
+ }, z.core.$strip>;
2234
+ export declare const FeedGetOwnerResponseMessageSchema: z.ZodObject<{
2235
+ type: z.ZodLiteral<"feedGetOwnerResponse">;
2236
+ requestId: z.ZodString;
2237
+ owner: z.ZodString;
2238
+ }, z.core.$strip>;
2239
+ export declare const SequentialFeedGetOwnerResponseMessageSchema: z.ZodObject<{
2240
+ type: z.ZodLiteral<"seqFeedGetOwnerResponse">;
2241
+ requestId: z.ZodString;
2242
+ owner: z.ZodString;
2243
+ }, z.core.$strip>;
2244
+ export declare const SequentialFeedDownloadPayloadResponseMessageSchema: z.ZodObject<{
2245
+ type: z.ZodLiteral<"seqFeedDownloadPayloadResponse">;
2246
+ requestId: z.ZodString;
2247
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2248
+ timestamp: z.ZodOptional<z.ZodNumber>;
2249
+ feedIndex: z.ZodString;
2250
+ feedIndexNext: z.ZodString;
2251
+ }, z.core.$strip>;
2252
+ export declare const SequentialFeedDownloadRawPayloadResponseMessageSchema: z.ZodObject<{
2253
+ type: z.ZodLiteral<"seqFeedDownloadRawPayloadResponse">;
2254
+ requestId: z.ZodString;
2255
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2256
+ timestamp: z.ZodOptional<z.ZodNumber>;
2257
+ feedIndex: z.ZodString;
2258
+ feedIndexNext: z.ZodString;
2259
+ }, z.core.$strip>;
2260
+ export declare const SequentialFeedDownloadReferenceResponseMessageSchema: z.ZodObject<{
2261
+ type: z.ZodLiteral<"seqFeedDownloadReferenceResponse">;
2262
+ requestId: z.ZodString;
2263
+ reference: z.ZodString;
2264
+ feedIndex: z.ZodString;
2265
+ feedIndexNext: z.ZodString;
2266
+ }, z.core.$strip>;
2267
+ export declare const SequentialFeedUploadPayloadResponseMessageSchema: z.ZodObject<{
2268
+ type: z.ZodLiteral<"seqFeedUploadPayloadResponse">;
2269
+ requestId: z.ZodString;
2270
+ reference: z.ZodString;
2271
+ feedIndex: z.ZodString;
2272
+ owner: z.ZodString;
2273
+ encryptionKey: z.ZodOptional<z.ZodString>;
2274
+ tagUid: z.ZodOptional<z.ZodNumber>;
2275
+ }, z.core.$strip>;
2276
+ export declare const SequentialFeedUploadRawPayloadResponseMessageSchema: z.ZodObject<{
2277
+ type: z.ZodLiteral<"seqFeedUploadRawPayloadResponse">;
2278
+ requestId: z.ZodString;
2279
+ reference: z.ZodString;
2280
+ feedIndex: z.ZodString;
2281
+ owner: z.ZodString;
2282
+ encryptionKey: z.ZodOptional<z.ZodString>;
2283
+ tagUid: z.ZodOptional<z.ZodNumber>;
2284
+ }, z.core.$strip>;
2285
+ export declare const SequentialFeedUploadReferenceResponseMessageSchema: z.ZodObject<{
2286
+ type: z.ZodLiteral<"seqFeedUploadReferenceResponse">;
2287
+ requestId: z.ZodString;
2288
+ reference: z.ZodString;
2289
+ feedIndex: z.ZodString;
2290
+ owner: z.ZodString;
2291
+ encryptionKey: z.ZodOptional<z.ZodString>;
2292
+ tagUid: z.ZodOptional<z.ZodNumber>;
2293
+ }, z.core.$strip>;
2294
+ export declare const CreateFeedManifestResponseMessageSchema: z.ZodObject<{
2295
+ type: z.ZodLiteral<"createFeedManifestResponse">;
2296
+ requestId: z.ZodString;
2297
+ reference: z.ZodString;
2298
+ }, z.core.$strip>;
2299
+ export declare const ActUploadDataResponseMessageSchema: z.ZodObject<{
2300
+ type: z.ZodLiteral<"actUploadDataResponse">;
2301
+ requestId: z.ZodString;
2302
+ encryptedReference: z.ZodString;
2303
+ historyReference: z.ZodString;
2304
+ granteeListReference: z.ZodString;
2305
+ publisherPubKey: z.ZodString;
2306
+ actReference: z.ZodString;
2307
+ tagUid: z.ZodOptional<z.ZodNumber>;
2308
+ }, z.core.$strip>;
2309
+ export declare const ActDownloadDataResponseMessageSchema: z.ZodObject<{
2310
+ type: z.ZodLiteral<"actDownloadDataResponse">;
2311
+ requestId: z.ZodString;
2312
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2313
+ }, z.core.$strip>;
2314
+ export declare const ActAddGranteesResponseMessageSchema: z.ZodObject<{
2315
+ type: z.ZodLiteral<"actAddGranteesResponse">;
2316
+ requestId: z.ZodString;
2317
+ historyReference: z.ZodString;
2318
+ granteeListReference: z.ZodString;
2319
+ actReference: z.ZodString;
2320
+ }, z.core.$strip>;
2321
+ export declare const ActRevokeGranteesResponseMessageSchema: z.ZodObject<{
2322
+ type: z.ZodLiteral<"actRevokeGranteesResponse">;
2323
+ requestId: z.ZodString;
2324
+ encryptedReference: z.ZodString;
2325
+ historyReference: z.ZodString;
2326
+ granteeListReference: z.ZodString;
2327
+ actReference: z.ZodString;
2328
+ }, z.core.$strip>;
2329
+ export declare const ActGetGranteesResponseMessageSchema: z.ZodObject<{
2330
+ type: z.ZodLiteral<"actGetGranteesResponse">;
2331
+ requestId: z.ZodString;
2332
+ grantees: z.ZodArray<z.ZodString>;
2333
+ }, z.core.$strip>;
2334
+ export declare const GetPostageBatchResponseMessageSchema: z.ZodObject<{
2335
+ type: z.ZodLiteral<"getPostageBatchResponse">;
2336
+ requestId: z.ZodString;
2337
+ postageBatch: z.ZodOptional<z.ZodObject<{
2338
+ batchID: z.ZodString;
2339
+ utilization: z.ZodNumber;
2340
+ usable: z.ZodBoolean;
2341
+ label: z.ZodString;
2342
+ depth: z.ZodNumber;
2343
+ amount: z.ZodString;
2344
+ bucketDepth: z.ZodNumber;
2345
+ blockNumber: z.ZodNumber;
2346
+ immutableFlag: z.ZodBoolean;
2347
+ exists: z.ZodBoolean;
2348
+ batchTTL: z.ZodOptional<z.ZodNumber>;
2349
+ }, z.core.$strip>>;
2350
+ }, z.core.$strip>;
2351
+ export declare const IframeToParentMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2352
+ type: z.ZodLiteral<"proxyReady">;
2353
+ authenticated: z.ZodBoolean;
2354
+ parentOrigin: z.ZodString;
2355
+ storageShared: z.ZodOptional<z.ZodBoolean>;
2356
+ }, z.core.$strip>, z.ZodObject<{
2357
+ type: z.ZodLiteral<"initError">;
2358
+ error: z.ZodString;
2359
+ }, z.core.$strip>, z.ZodObject<{
2360
+ type: z.ZodLiteral<"authStatusResponse">;
2361
+ requestId: z.ZodString;
2362
+ authenticated: z.ZodBoolean;
2363
+ origin: z.ZodOptional<z.ZodString>;
2364
+ beeApiUrl: z.ZodOptional<z.ZodString>;
2365
+ }, z.core.$strip>, z.ZodObject<{
2366
+ type: z.ZodLiteral<"disconnectResponse">;
2367
+ requestId: z.ZodString;
2368
+ success: z.ZodBoolean;
2369
+ }, z.core.$strip>, z.ZodObject<{
2370
+ type: z.ZodLiteral<"authSuccess">;
2371
+ origin: z.ZodString;
2372
+ }, z.core.$strip>, z.ZodObject<{
2373
+ type: z.ZodLiteral<"uploadDataResponse">;
2374
+ requestId: z.ZodString;
2375
+ reference: z.ZodString;
2376
+ tagUid: z.ZodOptional<z.ZodNumber>;
2377
+ }, z.core.$strip>, z.ZodObject<{
2378
+ type: z.ZodLiteral<"downloadDataResponse">;
2379
+ requestId: z.ZodString;
2380
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2381
+ }, z.core.$strip>, z.ZodObject<{
2382
+ type: z.ZodLiteral<"deriveAppSecretResponse">;
2383
+ requestId: z.ZodString;
2384
+ secret: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2385
+ }, z.core.$strip>, z.ZodObject<{
2386
+ type: z.ZodLiteral<"getChatKeyResponse">;
2387
+ requestId: z.ZodString;
2388
+ chatKey: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2389
+ }, z.core.$strip>, z.ZodObject<{
2390
+ type: z.ZodLiteral<"setBeeApiUrlResponse">;
2391
+ requestId: z.ZodString;
2392
+ beeApiUrl: z.ZodString;
2393
+ }, z.core.$strip>, z.ZodObject<{
2394
+ type: z.ZodLiteral<"stampChunkResponse">;
2395
+ requestId: z.ZodString;
2396
+ address: z.ZodString;
2397
+ stamp: z.ZodString;
2398
+ owner: z.ZodOptional<z.ZodString>;
2399
+ signature: z.ZodOptional<z.ZodString>;
2400
+ }, z.core.$strip>, z.ZodObject<{
2401
+ type: z.ZodLiteral<"uploadFileResponse">;
2402
+ requestId: z.ZodString;
2403
+ reference: z.ZodString;
2404
+ tagUid: z.ZodOptional<z.ZodNumber>;
2405
+ }, z.core.$strip>, z.ZodObject<{
2406
+ type: z.ZodLiteral<"downloadFileResponse">;
2407
+ requestId: z.ZodString;
2408
+ name: z.ZodString;
2409
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2410
+ }, z.core.$strip>, z.ZodObject<{
2411
+ type: z.ZodLiteral<"uploadFilesResponse">;
2412
+ requestId: z.ZodString;
2413
+ reference: z.ZodString;
2414
+ tagUid: z.ZodOptional<z.ZodNumber>;
2415
+ }, z.core.$strip>, z.ZodObject<{
2416
+ type: z.ZodLiteral<"listFilesResponse">;
2417
+ requestId: z.ZodString;
2418
+ entries: z.ZodArray<z.ZodObject<{
2419
+ path: z.ZodString;
2420
+ reference: z.ZodString;
2421
+ contentType: z.ZodOptional<z.ZodString>;
2422
+ }, z.core.$strip>>;
2423
+ }, z.core.$strip>, z.ZodObject<{
2424
+ type: z.ZodLiteral<"uploadChunkResponse">;
2425
+ requestId: z.ZodString;
2426
+ reference: z.ZodString;
2427
+ }, z.core.$strip>, z.ZodObject<{
2428
+ type: z.ZodLiteral<"downloadChunkResponse">;
2429
+ requestId: z.ZodString;
2430
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2431
+ }, z.core.$strip>, z.ZodObject<{
2432
+ type: z.ZodLiteral<"uploadProgress">;
2433
+ requestId: z.ZodString;
2434
+ total: z.ZodNumber;
2435
+ processed: z.ZodNumber;
2436
+ }, z.core.$strip>, z.ZodObject<{
2437
+ error: z.ZodString;
2438
+ code: z.ZodCatch<z.ZodEnum<{
2439
+ timeout: "timeout";
2440
+ "not-authenticated": "not-authenticated";
2441
+ "upload-unavailable": "upload-unavailable";
2442
+ "partition-contended": "partition-contended";
2443
+ "lease-lost": "lease-lost";
2444
+ "bee-rejected": "bee-rejected";
2445
+ network: "network";
2446
+ "invalid-request": "invalid-request";
2447
+ "invalid-state": "invalid-state";
2448
+ "init-failed": "init-failed";
2449
+ "popup-blocked": "popup-blocked";
2450
+ internal: "internal";
2451
+ }>>;
2452
+ reason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
2453
+ subsidised: "subsidised";
2454
+ "no-stamp": "no-stamp";
2455
+ "stamper-failed": "stamper-failed";
2456
+ "stamp-expired": "stamp-expired";
2457
+ "stamp-not-usable": "stamp-not-usable";
2458
+ "app-stamp-count": "app-stamp-count";
2459
+ "app-stamp-rate": "app-stamp-rate";
2460
+ "app-bucket-share": "app-bucket-share";
2461
+ "app-slice-full": "app-slice-full";
2462
+ "session-unconfirmed": "session-unconfirmed";
2463
+ }>>>;
2464
+ status: z.ZodOptional<z.ZodNumber>;
2465
+ beeMessage: z.ZodOptional<z.ZodString>;
2466
+ url: z.ZodOptional<z.ZodString>;
2467
+ type: z.ZodLiteral<"error">;
2468
+ requestId: z.ZodString;
2469
+ }, z.core.$strip>, z.ZodObject<{
2470
+ type: z.ZodLiteral<"connectionInfoChanged">;
2471
+ canUpload: z.ZodBoolean;
2472
+ storagePartitioned: z.ZodOptional<z.ZodBoolean>;
2473
+ uploadMode: z.ZodOptional<z.ZodEnum<{
2474
+ "user-stamp": "user-stamp";
2475
+ subsidised: "subsidised";
2476
+ unavailable: "unavailable";
2477
+ }>>;
2478
+ uploadUnavailableReason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
2479
+ subsidised: "subsidised";
2480
+ "no-stamp": "no-stamp";
2481
+ "stamper-failed": "stamper-failed";
2482
+ "stamp-expired": "stamp-expired";
2483
+ "stamp-not-usable": "stamp-not-usable";
2484
+ "app-stamp-count": "app-stamp-count";
2485
+ "app-stamp-rate": "app-stamp-rate";
2486
+ "app-bucket-share": "app-bucket-share";
2487
+ "app-slice-full": "app-slice-full";
2488
+ "session-unconfirmed": "session-unconfirmed";
2489
+ }>>>;
2490
+ identity: z.ZodOptional<z.ZodObject<{
2491
+ id: z.ZodString;
2492
+ name: z.ZodString;
2493
+ address: z.ZodString;
2494
+ publicKey: z.ZodOptional<z.ZodString>;
2495
+ sharingPublicKey: z.ZodOptional<z.ZodString>;
2496
+ postageSignerAddress: z.ZodOptional<z.ZodString>;
2497
+ avatar: z.ZodObject<{
2498
+ source: z.ZodEnum<{
2499
+ generated: "generated";
2500
+ }>;
2501
+ url: z.ZodString;
2502
+ }, z.core.$strip>;
2503
+ }, z.core.$strip>>;
2504
+ appKey: z.ZodOptional<z.ZodObject<{
2505
+ address: z.ZodString;
2506
+ publicKey: z.ZodString;
2507
+ }, z.core.$strip>>;
2508
+ partition: z.ZodOptional<z.ZodNumber>;
2509
+ chatBinding: z.ZodOptional<z.ZodObject<{
2510
+ message: z.ZodString;
2511
+ signature: z.ZodString;
2512
+ }, z.core.$strip>>;
2513
+ beeApiUrl: z.ZodOptional<z.ZodString>;
2514
+ }, z.core.$strip>, z.ZodObject<{
2515
+ type: z.ZodLiteral<"connectResponse">;
2516
+ requestId: z.ZodString;
2517
+ success: z.ZodBoolean;
2518
+ }, z.core.$strip>, z.ZodObject<{
2519
+ type: z.ZodLiteral<"isConnectedResponse">;
2520
+ requestId: z.ZodString;
2521
+ connected: z.ZodBoolean;
2522
+ }, z.core.$strip>, z.ZodObject<{
2523
+ type: z.ZodLiteral<"getNodeInfoResponse">;
2524
+ requestId: z.ZodString;
2525
+ beeMode: z.ZodString;
2526
+ chequebookEnabled: z.ZodBoolean;
2527
+ swapEnabled: z.ZodBoolean;
2528
+ }, z.core.$strip>, z.ZodObject<{
2529
+ type: z.ZodLiteral<"gsocMineResponse">;
2530
+ requestId: z.ZodString;
2531
+ signer: z.ZodString;
2532
+ }, z.core.$strip>, z.ZodObject<{
2533
+ type: z.ZodLiteral<"gsocSendResponse">;
2534
+ requestId: z.ZodString;
2535
+ reference: z.ZodString;
2536
+ tagUid: z.ZodOptional<z.ZodNumber>;
2537
+ }, z.core.$strip>, z.ZodObject<{
2538
+ type: z.ZodLiteral<"socUploadResponse">;
2539
+ requestId: z.ZodString;
2540
+ reference: z.ZodString;
2541
+ tagUid: z.ZodOptional<z.ZodNumber>;
2542
+ encryptionKey: z.ZodOptional<z.ZodString>;
2543
+ owner: z.ZodString;
2544
+ }, z.core.$strip>, z.ZodObject<{
2545
+ type: z.ZodLiteral<"socRawUploadResponse">;
2546
+ requestId: z.ZodString;
2547
+ reference: z.ZodString;
2548
+ tagUid: z.ZodOptional<z.ZodNumber>;
2549
+ encryptionKey: z.ZodOptional<z.ZodString>;
2550
+ owner: z.ZodString;
2551
+ }, z.core.$strip>, z.ZodObject<{
2552
+ type: z.ZodLiteral<"socDownloadResponse">;
2553
+ requestId: z.ZodString;
2554
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2555
+ identifier: z.ZodString;
2556
+ signature: z.ZodString;
2557
+ span: z.ZodNumber;
2558
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2559
+ address: z.ZodString;
2560
+ owner: z.ZodString;
2561
+ }, z.core.$strip>, z.ZodObject<{
2562
+ type: z.ZodLiteral<"socRawDownloadResponse">;
2563
+ requestId: z.ZodString;
2564
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2565
+ identifier: z.ZodString;
2566
+ signature: z.ZodString;
2567
+ span: z.ZodNumber;
2568
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2569
+ address: z.ZodString;
2570
+ owner: z.ZodString;
2571
+ }, z.core.$strip>, z.ZodObject<{
2572
+ type: z.ZodLiteral<"socGetOwnerResponse">;
2573
+ requestId: z.ZodString;
2574
+ owner: z.ZodString;
2575
+ }, z.core.$strip>, z.ZodObject<{
2576
+ type: z.ZodLiteral<"epochFeedDownloadReferenceResponse">;
2577
+ requestId: z.ZodString;
2578
+ reference: z.ZodOptional<z.ZodString>;
2579
+ }, z.core.$strip>, z.ZodObject<{
2580
+ type: z.ZodLiteral<"epochFeedUploadReferenceResponse">;
2581
+ requestId: z.ZodString;
2582
+ socAddress: z.ZodString;
2583
+ encryptionKey: z.ZodOptional<z.ZodString>;
2584
+ epoch: z.ZodObject<{
2585
+ start: z.ZodString;
2586
+ level: z.ZodNumber;
2587
+ }, z.core.$strip>;
2588
+ timestamp: z.ZodString;
2589
+ }, z.core.$strip>, z.ZodObject<{
2590
+ type: z.ZodLiteral<"feedGetOwnerResponse">;
2591
+ requestId: z.ZodString;
2592
+ owner: z.ZodString;
2593
+ }, z.core.$strip>, z.ZodObject<{
2594
+ type: z.ZodLiteral<"seqFeedGetOwnerResponse">;
2595
+ requestId: z.ZodString;
2596
+ owner: z.ZodString;
2597
+ }, z.core.$strip>, z.ZodObject<{
2598
+ type: z.ZodLiteral<"seqFeedDownloadPayloadResponse">;
2599
+ requestId: z.ZodString;
2600
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2601
+ timestamp: z.ZodOptional<z.ZodNumber>;
2602
+ feedIndex: z.ZodString;
2603
+ feedIndexNext: z.ZodString;
2604
+ }, z.core.$strip>, z.ZodObject<{
2605
+ type: z.ZodLiteral<"seqFeedDownloadRawPayloadResponse">;
2606
+ requestId: z.ZodString;
2607
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2608
+ timestamp: z.ZodOptional<z.ZodNumber>;
2609
+ feedIndex: z.ZodString;
2610
+ feedIndexNext: z.ZodString;
2611
+ }, z.core.$strip>, z.ZodObject<{
2612
+ type: z.ZodLiteral<"seqFeedDownloadReferenceResponse">;
2613
+ requestId: z.ZodString;
2614
+ reference: z.ZodString;
2615
+ feedIndex: z.ZodString;
2616
+ feedIndexNext: z.ZodString;
2617
+ }, z.core.$strip>, z.ZodObject<{
2618
+ type: z.ZodLiteral<"seqFeedUploadPayloadResponse">;
2619
+ requestId: z.ZodString;
2620
+ reference: z.ZodString;
2621
+ feedIndex: z.ZodString;
2622
+ owner: z.ZodString;
2623
+ encryptionKey: z.ZodOptional<z.ZodString>;
2624
+ tagUid: z.ZodOptional<z.ZodNumber>;
2625
+ }, z.core.$strip>, z.ZodObject<{
2626
+ type: z.ZodLiteral<"seqFeedUploadRawPayloadResponse">;
2627
+ requestId: z.ZodString;
2628
+ reference: z.ZodString;
2629
+ feedIndex: z.ZodString;
2630
+ owner: z.ZodString;
2631
+ encryptionKey: z.ZodOptional<z.ZodString>;
2632
+ tagUid: z.ZodOptional<z.ZodNumber>;
2633
+ }, z.core.$strip>, z.ZodObject<{
2634
+ type: z.ZodLiteral<"seqFeedUploadReferenceResponse">;
2635
+ requestId: z.ZodString;
2636
+ reference: z.ZodString;
2637
+ feedIndex: z.ZodString;
2638
+ owner: z.ZodString;
2639
+ encryptionKey: z.ZodOptional<z.ZodString>;
2640
+ tagUid: z.ZodOptional<z.ZodNumber>;
2641
+ }, z.core.$strip>, z.ZodObject<{
2642
+ type: z.ZodLiteral<"createFeedManifestResponse">;
2643
+ requestId: z.ZodString;
2644
+ reference: z.ZodString;
2645
+ }, z.core.$strip>, z.ZodObject<{
2646
+ type: z.ZodLiteral<"actUploadDataResponse">;
2647
+ requestId: z.ZodString;
2648
+ encryptedReference: z.ZodString;
2649
+ historyReference: z.ZodString;
2650
+ granteeListReference: z.ZodString;
2651
+ publisherPubKey: z.ZodString;
2652
+ actReference: z.ZodString;
2653
+ tagUid: z.ZodOptional<z.ZodNumber>;
2654
+ }, z.core.$strip>, z.ZodObject<{
2655
+ type: z.ZodLiteral<"actDownloadDataResponse">;
2656
+ requestId: z.ZodString;
2657
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
2658
+ }, z.core.$strip>, z.ZodObject<{
2659
+ type: z.ZodLiteral<"actAddGranteesResponse">;
2660
+ requestId: z.ZodString;
2661
+ historyReference: z.ZodString;
2662
+ granteeListReference: z.ZodString;
2663
+ actReference: z.ZodString;
2664
+ }, z.core.$strip>, z.ZodObject<{
2665
+ type: z.ZodLiteral<"actRevokeGranteesResponse">;
2666
+ requestId: z.ZodString;
2667
+ encryptedReference: z.ZodString;
2668
+ historyReference: z.ZodString;
2669
+ granteeListReference: z.ZodString;
2670
+ actReference: z.ZodString;
2671
+ }, z.core.$strip>, z.ZodObject<{
2672
+ type: z.ZodLiteral<"actGetGranteesResponse">;
2673
+ requestId: z.ZodString;
2674
+ grantees: z.ZodArray<z.ZodString>;
2675
+ }, z.core.$strip>, z.ZodObject<{
2676
+ type: z.ZodLiteral<"getPostageBatchResponse">;
2677
+ requestId: z.ZodString;
2678
+ postageBatch: z.ZodOptional<z.ZodObject<{
2679
+ batchID: z.ZodString;
2680
+ utilization: z.ZodNumber;
2681
+ usable: z.ZodBoolean;
2682
+ label: z.ZodString;
2683
+ depth: z.ZodNumber;
2684
+ amount: z.ZodString;
2685
+ bucketDepth: z.ZodNumber;
2686
+ blockNumber: z.ZodNumber;
2687
+ immutableFlag: z.ZodBoolean;
2688
+ exists: z.ZodBoolean;
2689
+ batchTTL: z.ZodOptional<z.ZodNumber>;
2690
+ }, z.core.$strip>>;
2691
+ }, z.core.$strip>], "type">;
2692
+ export type ProxyReadyMessage = z.infer<typeof ProxyReadyMessageSchema>;
2693
+ export type InitErrorMessage = z.infer<typeof InitErrorMessageSchema>;
2694
+ export type AuthStatusResponseMessage = z.infer<typeof AuthStatusResponseMessageSchema>;
2695
+ export type DisconnectResponseMessage = z.infer<typeof DisconnectResponseMessageSchema>;
2696
+ export type AuthSuccessMessage = z.infer<typeof AuthSuccessMessageSchema>;
2697
+ export type UploadDataResponseMessage = z.infer<typeof UploadDataResponseMessageSchema>;
2698
+ export type DownloadDataResponseMessage = z.infer<typeof DownloadDataResponseMessageSchema>;
2699
+ export type GetChatKeyResponseMessage = z.infer<typeof GetChatKeyResponseMessageSchema>;
2700
+ export type SetBeeApiUrlResponseMessage = z.infer<typeof SetBeeApiUrlResponseMessageSchema>;
2701
+ export type DeriveAppSecretResponseMessage = z.infer<typeof DeriveAppSecretResponseMessageSchema>;
2702
+ export type StampChunkResponseMessage = z.infer<typeof StampChunkResponseMessageSchema>;
2703
+ export type UploadFileResponseMessage = z.infer<typeof UploadFileResponseMessageSchema>;
2704
+ export type DownloadFileResponseMessage = z.infer<typeof DownloadFileResponseMessageSchema>;
2705
+ export type UploadFilesResponseMessage = z.infer<typeof UploadFilesResponseMessageSchema>;
2706
+ export type ListFilesResponseMessage = z.infer<typeof ListFilesResponseMessageSchema>;
2707
+ export type UploadChunkResponseMessage = z.infer<typeof UploadChunkResponseMessageSchema>;
2708
+ export type DownloadChunkResponseMessage = z.infer<typeof DownloadChunkResponseMessageSchema>;
2709
+ export type UploadProgressMessage = z.infer<typeof UploadProgressMessageSchema>;
2710
+ export type ErrorMessage = z.infer<typeof ErrorMessageSchema>;
2711
+ export type ConnectionInfoChangedMessage = z.infer<typeof ConnectionInfoChangedMessageSchema>;
2712
+ export type ConnectResponseMessage = z.infer<typeof ConnectResponseMessageSchema>;
2713
+ export type IsConnectedResponseMessage = z.infer<typeof IsConnectedResponseMessageSchema>;
2714
+ export type GetNodeInfoResponseMessage = z.infer<typeof GetNodeInfoResponseMessageSchema>;
2715
+ export type GsocMineResponseMessage = z.infer<typeof GsocMineResponseMessageSchema>;
2716
+ export type GsocSendResponseMessage = z.infer<typeof GsocSendResponseMessageSchema>;
2717
+ export type SocUploadResponseMessage = z.infer<typeof SocUploadResponseMessageSchema>;
2718
+ export type SocRawUploadResponseMessage = z.infer<typeof SocRawUploadResponseMessageSchema>;
2719
+ export type SocDownloadResponseMessage = z.infer<typeof SocDownloadResponseMessageSchema>;
2720
+ export type SocRawDownloadResponseMessage = z.infer<typeof SocRawDownloadResponseMessageSchema>;
2721
+ export type SocGetOwnerResponseMessage = z.infer<typeof SocGetOwnerResponseMessageSchema>;
2722
+ export type EpochFeedDownloadReferenceResponseMessage = z.infer<typeof EpochFeedDownloadReferenceResponseMessageSchema>;
2723
+ export type EpochFeedUploadReferenceResponseMessage = z.infer<typeof EpochFeedUploadReferenceResponseMessageSchema>;
2724
+ export type FeedGetOwnerResponseMessage = z.infer<typeof FeedGetOwnerResponseMessageSchema>;
2725
+ export type SequentialFeedGetOwnerResponseMessage = z.infer<typeof SequentialFeedGetOwnerResponseMessageSchema>;
2726
+ export type SequentialFeedDownloadPayloadResponseMessage = z.infer<typeof SequentialFeedDownloadPayloadResponseMessageSchema>;
2727
+ export type SequentialFeedDownloadRawPayloadResponseMessage = z.infer<typeof SequentialFeedDownloadRawPayloadResponseMessageSchema>;
2728
+ export type SequentialFeedDownloadReferenceResponseMessage = z.infer<typeof SequentialFeedDownloadReferenceResponseMessageSchema>;
2729
+ export type SequentialFeedUploadPayloadResponseMessage = z.infer<typeof SequentialFeedUploadPayloadResponseMessageSchema>;
2730
+ export type SequentialFeedUploadRawPayloadResponseMessage = z.infer<typeof SequentialFeedUploadRawPayloadResponseMessageSchema>;
2731
+ export type SequentialFeedUploadReferenceResponseMessage = z.infer<typeof SequentialFeedUploadReferenceResponseMessageSchema>;
2732
+ export type CreateFeedManifestResponseMessage = z.infer<typeof CreateFeedManifestResponseMessageSchema>;
2733
+ export type ActUploadDataResponseMessage = z.infer<typeof ActUploadDataResponseMessageSchema>;
2734
+ export type ActDownloadDataResponseMessage = z.infer<typeof ActDownloadDataResponseMessageSchema>;
2735
+ export type ActAddGranteesResponseMessage = z.infer<typeof ActAddGranteesResponseMessageSchema>;
2736
+ export type ActRevokeGranteesResponseMessage = z.infer<typeof ActRevokeGranteesResponseMessageSchema>;
2737
+ export type ActGetGranteesResponseMessage = z.infer<typeof ActGetGranteesResponseMessageSchema>;
2738
+ export type GetPostageBatchResponseMessage = z.infer<typeof GetPostageBatchResponseMessageSchema>;
2739
+ export type IframeToParentMessage = z.infer<typeof IframeToParentMessageSchema>;
2740
+ export declare const AuthDataSchema: z.ZodObject<{
2741
+ secret: z.ZodString;
2742
+ networkSettings: z.ZodOptional<z.ZodObject<{
2743
+ beeNodeUrl: z.ZodString;
2744
+ gnosisRpcUrl: z.ZodString;
2745
+ }, z.core.$strip>>;
2746
+ account: z.ZodObject<{
2747
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").EthAddress, string>>;
2748
+ name: z.ZodString;
2749
+ createdAt: z.ZodNumber;
2750
+ derivationKey: z.ZodString;
2751
+ publicKey: z.ZodString;
2752
+ defaultPostageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
2753
+ devices: z.ZodDefault<z.ZodArray<z.ZodObject<{
2754
+ deviceId: z.ZodString;
2755
+ createdAt: z.ZodNumber;
2756
+ lastSignedInAt: z.ZodNumber;
2757
+ name: z.ZodOptional<z.ZodString>;
2758
+ nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
2759
+ removedAt: z.ZodOptional<z.ZodNumber>;
2760
+ }, z.core.$strip>>>;
2761
+ connectedApps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2762
+ appUrl: z.ZodString;
2763
+ appName: z.ZodString;
2764
+ lastConnectedAt: z.ZodNumber;
2765
+ appIcon: z.ZodOptional<z.ZodString>;
2766
+ appDescription: z.ZodOptional<z.ZodString>;
2767
+ connectedUntil: z.ZodOptional<z.ZodNumber>;
2768
+ appSecret: z.ZodOptional<z.ZodString>;
2769
+ postageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
2770
+ postageStampBatchIDAt: z.ZodOptional<z.ZodNumber>;
2771
+ revokedAt: z.ZodOptional<z.ZodNumber>;
2772
+ disconnectedAt: z.ZodOptional<z.ZodNumber>;
2773
+ chatBinding: z.ZodOptional<z.ZodObject<{
2774
+ message: z.ZodString;
2775
+ signature: z.ZodString;
2776
+ }, z.core.$strip>>;
2777
+ }, z.core.$strip>>>;
2778
+ postageStamps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2779
+ batchID: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>;
2780
+ signerKey: z.ZodPipe<z.ZodString, z.ZodTransform<BeePrivateKey, string>>;
2781
+ name: z.ZodOptional<z.ZodString>;
2782
+ nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
2783
+ utilization: z.ZodNumber;
2784
+ usable: z.ZodBoolean;
2785
+ depth: z.ZodNumber;
2786
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2787
+ bucketDepth: z.ZodNumber;
2788
+ blockNumber: z.ZodNumber;
2789
+ immutableFlag: z.ZodBoolean;
2790
+ exists: z.ZodBoolean;
2791
+ batchTTL: z.ZodOptional<z.ZodNumber>;
2792
+ createdAt: z.ZodNumber;
2793
+ updatedAt: z.ZodOptional<z.ZodNumber>;
2794
+ deletedAt: z.ZodOptional<z.ZodNumber>;
2795
+ }, z.core.$strip>>>;
2796
+ settings: z.ZodOptional<z.ZodObject<{
2797
+ appSessionDuration: z.ZodOptional<z.ZodNumber>;
2798
+ }, z.core.$strip>>;
2799
+ accountNameAt: z.ZodOptional<z.ZodNumber>;
2800
+ defaultStampAt: z.ZodOptional<z.ZodNumber>;
2801
+ settingsAt: z.ZodOptional<z.ZodNumber>;
2802
+ lastModified: z.ZodOptional<z.ZodNumber>;
2803
+ partitionCount: z.ZodOptional<z.ZodNumber>;
2804
+ }, z.core.$strip>;
2805
+ chatBinding: z.ZodOptional<z.ZodObject<{
2806
+ message: z.ZodString;
2807
+ signature: z.ZodString;
2808
+ }, z.core.$strip>>;
2809
+ }, z.core.$strip>;
2810
+ export type AuthData = z.infer<typeof AuthDataSchema>;
2811
+ /**
2812
+ * A partitioned session at rest (#635), under
2813
+ * {@link partitionSessionStorageKey}.
2814
+ *
2815
+ * It holds the payload the connect popup handed over — plus the deadline the
2816
+ * session was given. In full, what is now at rest for the life of the session:
2817
+ *
2818
+ * - the **app secret**, this origin's own credential;
2819
+ * - the **narrowed stamp projection** — #578 limits it to the stamps this app
2820
+ * can spend, signer keys included;
2821
+ * - the account's **`derivationKey`**, which `serializeSyncedAccount` carries.
2822
+ * This one is NOT app-narrowed: it derives the bus topic and envelope keys
2823
+ * and the Swarm encryption/backup keys, so it is the most sensitive field
2824
+ * here. `connect-handshake.ts` names the same trade-off for the in-memory
2825
+ * handover; persisting it widens the window, not the exposure.
2826
+ *
2827
+ * The popup hands all of it over on every load today; keeping it changes the
2828
+ * window from the life of the page to the life of the session, in a store only
2829
+ * this (SwarmID origin, dApp origin) pair can read, and sealed there.
2830
+ *
2831
+ * `connectedUntil` is the same clock the unpartitioned path enforces from
2832
+ * shared storage, so both modes end a session on the same rule. What the
2833
+ * deadline cannot see is a revoke made while the tab was closed; a restored
2834
+ * session verifies against the account's own Swarm state for that.
2835
+ */
2836
+ export declare const PartitionSessionSchemaV1: z.ZodObject<{
2837
+ version: z.ZodLiteral<1>;
2838
+ parentOrigin: z.ZodString;
2839
+ connectedUntil: z.ZodNumber;
2840
+ data: z.ZodString;
2841
+ }, z.core.$strip>;
2842
+ export type StoredPartitionSession = z.infer<typeof PartitionSessionSchemaV1>;
2843
+ /** A stored session once opened, with its payload parsed. */
2844
+ export interface PartitionSession {
2845
+ parentOrigin: string;
2846
+ connectedUntil: number;
2847
+ data: AuthData;
2848
+ }
2849
+ export declare const SetSecretMessageSchema: z.ZodObject<{
2850
+ type: z.ZodLiteral<"setSecret">;
2851
+ appOrigin: z.ZodString;
2852
+ challenge: z.ZodString;
2853
+ data: z.ZodObject<{
2854
+ secret: z.ZodString;
2855
+ networkSettings: z.ZodOptional<z.ZodObject<{
2856
+ beeNodeUrl: z.ZodString;
2857
+ gnosisRpcUrl: z.ZodString;
2858
+ }, z.core.$strip>>;
2859
+ account: z.ZodObject<{
2860
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").EthAddress, string>>;
2861
+ name: z.ZodString;
2862
+ createdAt: z.ZodNumber;
2863
+ derivationKey: z.ZodString;
2864
+ publicKey: z.ZodString;
2865
+ defaultPostageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
2866
+ devices: z.ZodDefault<z.ZodArray<z.ZodObject<{
2867
+ deviceId: z.ZodString;
2868
+ createdAt: z.ZodNumber;
2869
+ lastSignedInAt: z.ZodNumber;
2870
+ name: z.ZodOptional<z.ZodString>;
2871
+ nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
2872
+ removedAt: z.ZodOptional<z.ZodNumber>;
2873
+ }, z.core.$strip>>>;
2874
+ connectedApps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2875
+ appUrl: z.ZodString;
2876
+ appName: z.ZodString;
2877
+ lastConnectedAt: z.ZodNumber;
2878
+ appIcon: z.ZodOptional<z.ZodString>;
2879
+ appDescription: z.ZodOptional<z.ZodString>;
2880
+ connectedUntil: z.ZodOptional<z.ZodNumber>;
2881
+ appSecret: z.ZodOptional<z.ZodString>;
2882
+ postageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
2883
+ postageStampBatchIDAt: z.ZodOptional<z.ZodNumber>;
2884
+ revokedAt: z.ZodOptional<z.ZodNumber>;
2885
+ disconnectedAt: z.ZodOptional<z.ZodNumber>;
2886
+ chatBinding: z.ZodOptional<z.ZodObject<{
2887
+ message: z.ZodString;
2888
+ signature: z.ZodString;
2889
+ }, z.core.$strip>>;
2890
+ }, z.core.$strip>>>;
2891
+ postageStamps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2892
+ batchID: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>;
2893
+ signerKey: z.ZodPipe<z.ZodString, z.ZodTransform<BeePrivateKey, string>>;
2894
+ name: z.ZodOptional<z.ZodString>;
2895
+ nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
2896
+ utilization: z.ZodNumber;
2897
+ usable: z.ZodBoolean;
2898
+ depth: z.ZodNumber;
2899
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2900
+ bucketDepth: z.ZodNumber;
2901
+ blockNumber: z.ZodNumber;
2902
+ immutableFlag: z.ZodBoolean;
2903
+ exists: z.ZodBoolean;
2904
+ batchTTL: z.ZodOptional<z.ZodNumber>;
2905
+ createdAt: z.ZodNumber;
2906
+ updatedAt: z.ZodOptional<z.ZodNumber>;
2907
+ deletedAt: z.ZodOptional<z.ZodNumber>;
2908
+ }, z.core.$strip>>>;
2909
+ settings: z.ZodOptional<z.ZodObject<{
2910
+ appSessionDuration: z.ZodOptional<z.ZodNumber>;
2911
+ }, z.core.$strip>>;
2912
+ accountNameAt: z.ZodOptional<z.ZodNumber>;
2913
+ defaultStampAt: z.ZodOptional<z.ZodNumber>;
2914
+ settingsAt: z.ZodOptional<z.ZodNumber>;
2915
+ lastModified: z.ZodOptional<z.ZodNumber>;
2916
+ partitionCount: z.ZodOptional<z.ZodNumber>;
2917
+ }, z.core.$strip>;
2918
+ chatBinding: z.ZodOptional<z.ZodObject<{
2919
+ message: z.ZodString;
2920
+ signature: z.ZodString;
2921
+ }, z.core.$strip>>;
2922
+ }, z.core.$strip>;
2923
+ }, z.core.$strip>;
2924
+ export declare const PopupToIframeMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2925
+ type: z.ZodLiteral<"setSecret">;
2926
+ appOrigin: z.ZodString;
2927
+ challenge: z.ZodString;
2928
+ data: z.ZodObject<{
2929
+ secret: z.ZodString;
2930
+ networkSettings: z.ZodOptional<z.ZodObject<{
2931
+ beeNodeUrl: z.ZodString;
2932
+ gnosisRpcUrl: z.ZodString;
2933
+ }, z.core.$strip>>;
2934
+ account: z.ZodObject<{
2935
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").EthAddress, string>>;
2936
+ name: z.ZodString;
2937
+ createdAt: z.ZodNumber;
2938
+ derivationKey: z.ZodString;
2939
+ publicKey: z.ZodString;
2940
+ defaultPostageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
2941
+ devices: z.ZodDefault<z.ZodArray<z.ZodObject<{
2942
+ deviceId: z.ZodString;
2943
+ createdAt: z.ZodNumber;
2944
+ lastSignedInAt: z.ZodNumber;
2945
+ name: z.ZodOptional<z.ZodString>;
2946
+ nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
2947
+ removedAt: z.ZodOptional<z.ZodNumber>;
2948
+ }, z.core.$strip>>>;
2949
+ connectedApps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2950
+ appUrl: z.ZodString;
2951
+ appName: z.ZodString;
2952
+ lastConnectedAt: z.ZodNumber;
2953
+ appIcon: z.ZodOptional<z.ZodString>;
2954
+ appDescription: z.ZodOptional<z.ZodString>;
2955
+ connectedUntil: z.ZodOptional<z.ZodNumber>;
2956
+ appSecret: z.ZodOptional<z.ZodString>;
2957
+ postageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
2958
+ postageStampBatchIDAt: z.ZodOptional<z.ZodNumber>;
2959
+ revokedAt: z.ZodOptional<z.ZodNumber>;
2960
+ disconnectedAt: z.ZodOptional<z.ZodNumber>;
2961
+ chatBinding: z.ZodOptional<z.ZodObject<{
2962
+ message: z.ZodString;
2963
+ signature: z.ZodString;
2964
+ }, z.core.$strip>>;
2965
+ }, z.core.$strip>>>;
2966
+ postageStamps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2967
+ batchID: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>;
2968
+ signerKey: z.ZodPipe<z.ZodString, z.ZodTransform<BeePrivateKey, string>>;
2969
+ name: z.ZodOptional<z.ZodString>;
2970
+ nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
2971
+ utilization: z.ZodNumber;
2972
+ usable: z.ZodBoolean;
2973
+ depth: z.ZodNumber;
2974
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2975
+ bucketDepth: z.ZodNumber;
2976
+ blockNumber: z.ZodNumber;
2977
+ immutableFlag: z.ZodBoolean;
2978
+ exists: z.ZodBoolean;
2979
+ batchTTL: z.ZodOptional<z.ZodNumber>;
2980
+ createdAt: z.ZodNumber;
2981
+ updatedAt: z.ZodOptional<z.ZodNumber>;
2982
+ deletedAt: z.ZodOptional<z.ZodNumber>;
2983
+ }, z.core.$strip>>>;
2984
+ settings: z.ZodOptional<z.ZodObject<{
2985
+ appSessionDuration: z.ZodOptional<z.ZodNumber>;
2986
+ }, z.core.$strip>>;
2987
+ accountNameAt: z.ZodOptional<z.ZodNumber>;
2988
+ defaultStampAt: z.ZodOptional<z.ZodNumber>;
2989
+ settingsAt: z.ZodOptional<z.ZodNumber>;
2990
+ lastModified: z.ZodOptional<z.ZodNumber>;
2991
+ partitionCount: z.ZodOptional<z.ZodNumber>;
2992
+ }, z.core.$strip>;
2993
+ chatBinding: z.ZodOptional<z.ZodObject<{
2994
+ message: z.ZodString;
2995
+ signature: z.ZodString;
2996
+ }, z.core.$strip>>;
2997
+ }, z.core.$strip>;
2998
+ }, z.core.$strip>], "type">;
2999
+ export type SetSecretMessage = z.infer<typeof SetSecretMessageSchema>;
3000
+ export type PopupToIframeMessage = z.infer<typeof PopupToIframeMessageSchema>;
3001
+ export interface ClientOptions {
3002
+ iframeOrigin: string;
3003
+ iframePath?: string;
3004
+ timeout?: number;
3005
+ initializationTimeout?: number;
3006
+ /**
3007
+ * Invoked whenever the dApp-visible ConnectionInfo changes (identity rename,
3008
+ * default-stamp change, local↔synced account migration, postage stamp added,
3009
+ * auth transitions, etc.). Fires once on initial auth check, then on every
3010
+ * effective change. The current snapshot is also available synchronously
3011
+ * via `client.connectionInfo`.
3012
+ */
3013
+ onConnectionChange?: (info: ConnectionInfo) => void;
3014
+ popupMode?: "popup" | "window";
3015
+ metadata: AppMetadata;
3016
+ buttonConfig?: ButtonConfig;
3017
+ containerId?: string;
3018
+ /** URL of a subsidised gateway for users without postage stamps. Gateway handles stamping server-side. */
3019
+ subsidisedGatewayUrl?: string;
3020
+ /**
3021
+ * The Bee node this site's content reads and stamped uploads go through, in
3022
+ * place of the node the person set in Swarm ID, which keeps applying on
3023
+ * every other site. The person's account and device coordination stay on
3024
+ * their own node. An http(s) URL, optionally with a path. Change it later
3025
+ * with `setBeeApiUrl`. Held by this site's frame alone and never stored.
3026
+ */
3027
+ beeApiUrl?: string;
3028
+ }
3029
+ export interface AuthOptions {
3030
+ masterKeyStorageKey?: string;
3031
+ }
3032
+ /**
3033
+ * Configuration options for the connect() method.
3034
+ */
3035
+ export interface ConnectOptions {
3036
+ /**
3037
+ * Override popup mode for this connect call.
3038
+ * "popup" opens a sized popup window, "window" opens a full browser tab.
3039
+ */
3040
+ popupMode?: "popup" | "window";
3041
+ }
3042
+ export type { Account, SyncedAccount, ConnectedApp, PostageStamp, } from "./schemas";