@solarpunkltd/swarm-id 0.0.0-stage → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +86 -2
- package/dist/bus/account-bus.d.ts +104 -0
- package/dist/bus/account-delta.d.ts +52 -0
- package/dist/bus/bus-context.d.ts +7 -0
- package/dist/bus/envelope.d.ts +9 -0
- package/dist/bus/messages.d.ts +241 -0
- package/dist/bus/presence.d.ts +62 -0
- package/dist/bus/signaling-transport.d.ts +79 -0
- package/dist/chunk/bmt.d.ts +16 -0
- package/dist/chunk/cac.d.ts +17 -0
- package/dist/chunk/constants.d.ts +10 -0
- package/dist/chunk/encrypted-cac.d.ts +47 -0
- package/dist/chunk/encryption.d.ts +85 -0
- package/dist/chunk/index.d.ts +5 -0
- package/dist/chunks/chat-binding-DlH_ZkTn.js +23 -0
- package/dist/chunks/chat-binding-DlH_ZkTn.js.map +1 -0
- package/dist/errors.d.ts +35 -0
- package/dist/index.d.ts +27 -0
- package/dist/internal.d.ts +49 -0
- package/dist/internal.esm.js +2 -0
- package/dist/internal.esm.js.map +1 -0
- package/dist/proxy/act/act.d.ts +58 -0
- package/dist/proxy/act/crypto.d.ts +46 -0
- package/dist/proxy/act/grantee-list.d.ts +81 -0
- package/dist/proxy/act/history.d.ts +182 -0
- package/dist/proxy/act/index.d.ts +114 -0
- package/dist/proxy/app-stamp-limits.d.ts +62 -0
- package/dist/proxy/chunk-upload-stream.d.ts +37 -0
- package/dist/proxy/chunking.d.ts +15 -0
- package/dist/proxy/collection.d.ts +38 -0
- package/dist/proxy/download-data.d.ts +27 -0
- package/dist/proxy/errors.d.ts +8 -0
- package/dist/proxy/feed-manifest.d.ts +60 -0
- package/dist/proxy/feeds/epochs/async-finder.d.ts +70 -0
- package/dist/proxy/feeds/epochs/epoch.d.ts +79 -0
- package/dist/proxy/feeds/epochs/finder.d.ts +60 -0
- package/dist/proxy/feeds/epochs/index.d.ts +30 -0
- package/dist/proxy/feeds/epochs/types.d.ts +110 -0
- package/dist/proxy/feeds/epochs/updater.d.ts +76 -0
- package/dist/proxy/feeds/epochs/utils.d.ts +21 -0
- package/dist/proxy/feeds/index.d.ts +4 -0
- package/dist/proxy/feeds/sequence/async-finder.d.ts +14 -0
- package/dist/proxy/feeds/sequence/finder.d.ts +11 -0
- package/dist/proxy/feeds/sequence/index.d.ts +22 -0
- package/dist/proxy/feeds/sequence/types.d.ts +82 -0
- package/dist/proxy/feeds/sequence/updater.d.ts +20 -0
- package/dist/proxy/index.d.ts +5 -0
- package/dist/proxy/manifest-builder.d.ts +164 -0
- package/dist/proxy/mantaray.d.ts +76 -0
- package/dist/proxy/soc-restamp-slots.d.ts +48 -0
- package/dist/proxy/stamp-chunk.d.ts +45 -0
- package/dist/proxy/stamp-worker-handler.d.ts +32 -0
- package/dist/proxy/stamp-worker-pool.d.ts +52 -0
- package/dist/proxy/stamp-worker.d.ts +1 -0
- package/dist/proxy/types.d.ts +38 -0
- package/dist/proxy/upload.d.ts +207 -0
- package/dist/schemas.d.ts +665 -0
- package/dist/stamp-worker.iife.js +1 -0
- package/dist/storage/debounced-uploader.d.ts +61 -0
- package/dist/storage/utilization-store.d.ts +113 -0
- package/dist/swarm-id-client.d.ts +1114 -0
- package/dist/swarm-id-proxy.d.ts +1031 -0
- package/dist/swarm-id.esm.js +2 -0
- package/dist/swarm-id.esm.js.map +1 -0
- package/dist/sync/batch-write-coordinator.d.ts +347 -0
- package/dist/sync/device-roster.d.ts +59 -0
- package/dist/sync/device-state.d.ts +199 -0
- package/dist/sync/fold-account-from-swarm.d.ts +53 -0
- package/dist/sync/index.d.ts +11 -0
- package/dist/sync/merge-snapshot.d.ts +57 -0
- package/dist/sync/partition-intent.d.ts +218 -0
- package/dist/sync/partition-lease.d.ts +531 -0
- package/dist/sync/partition-lock.d.ts +218 -0
- package/dist/sync/partition-state.d.ts +287 -0
- package/dist/sync/session-check.d.ts +29 -0
- package/dist/sync/store-interfaces.d.ts +48 -0
- package/dist/sync/sync-account.d.ts +45 -0
- package/dist/sync/timing-constants.d.ts +32 -0
- package/dist/sync/types.d.ts +18 -0
- package/dist/types.d.ts +3007 -0
- package/dist/utils/account-state-snapshot.d.ts +43 -0
- package/dist/utils/active-devices.d.ts +45 -0
- package/dist/utils/avatar.d.ts +30 -0
- package/dist/utils/batch-utilization.d.ts +840 -0
- package/dist/utils/batch-write-lock.d.ts +12 -0
- package/dist/utils/bee-error.d.ts +11 -0
- package/dist/utils/chat-binding.d.ts +113 -0
- package/dist/utils/coalesced-task.d.ts +28 -0
- package/dist/utils/collection.d.ts +6 -0
- package/dist/utils/connection-info.d.ts +11 -0
- package/dist/utils/constants.d.ts +28 -0
- package/dist/utils/device-id.d.ts +109 -0
- package/dist/utils/hex.d.ts +31 -0
- package/dist/utils/json-rpc.d.ts +34 -0
- package/dist/utils/key-derivation.d.ts +124 -0
- package/dist/utils/lock-soc.d.ts +35 -0
- package/dist/utils/postage-contract.d.ts +143 -0
- package/dist/utils/postage-stamp-association.d.ts +39 -0
- package/dist/utils/promise.d.ts +37 -0
- package/dist/utils/sealed-values.d.ts +23 -0
- package/dist/utils/seed-encryption.d.ts +17 -0
- package/dist/utils/site-allow-list.d.ts +54 -0
- package/dist/utils/stamp-lifespan.d.ts +37 -0
- package/dist/utils/storage-managers.d.ts +62 -0
- package/dist/utils/storage-probe.d.ts +40 -0
- package/dist/utils/tag.d.ts +11 -0
- package/dist/utils/ttl.d.ts +120 -0
- package/dist/utils/url.d.ts +47 -0
- package/dist/utils/versioned-storage.d.ts +183 -0
- package/package.json +91 -3
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,3007 @@
|
|
|
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
|
+
}, z.core.$strip>;
|
|
657
|
+
export type ConnectionInfo = z.infer<typeof ConnectionInfoSchema>;
|
|
658
|
+
export declare const AppMetadataSchema: z.ZodObject<{
|
|
659
|
+
name: z.ZodString;
|
|
660
|
+
description: z.ZodOptional<z.ZodString>;
|
|
661
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, z.core.$strip>;
|
|
663
|
+
export type AppMetadata = z.infer<typeof AppMetadataSchema>;
|
|
664
|
+
export declare const ButtonConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
665
|
+
connectText: z.ZodOptional<z.ZodString>;
|
|
666
|
+
disconnectText: z.ZodOptional<z.ZodString>;
|
|
667
|
+
loadingText: z.ZodOptional<z.ZodString>;
|
|
668
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
669
|
+
color: z.ZodOptional<z.ZodString>;
|
|
670
|
+
borderRadius: z.ZodOptional<z.ZodString>;
|
|
671
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
672
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
673
|
+
fontWeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
674
|
+
}, z.core.$strip>>;
|
|
675
|
+
export interface ButtonConfig {
|
|
676
|
+
connectText?: string;
|
|
677
|
+
disconnectText?: string;
|
|
678
|
+
loadingText?: string;
|
|
679
|
+
backgroundColor?: string;
|
|
680
|
+
color?: string;
|
|
681
|
+
borderRadius?: string;
|
|
682
|
+
fontFamily?: string;
|
|
683
|
+
fontSize?: string;
|
|
684
|
+
fontWeight?: string | number;
|
|
685
|
+
}
|
|
686
|
+
export declare const ParentIdentifyMessageSchema: z.ZodObject<{
|
|
687
|
+
type: z.ZodLiteral<"parentIdentify">;
|
|
688
|
+
requestId: z.ZodString;
|
|
689
|
+
beeApiUrl: z.ZodOptional<z.ZodString>;
|
|
690
|
+
popupMode: z.ZodOptional<z.ZodEnum<{
|
|
691
|
+
popup: "popup";
|
|
692
|
+
window: "window";
|
|
693
|
+
}>>;
|
|
694
|
+
metadata: z.ZodObject<{
|
|
695
|
+
name: z.ZodString;
|
|
696
|
+
description: z.ZodOptional<z.ZodString>;
|
|
697
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
698
|
+
}, z.core.$strip>;
|
|
699
|
+
buttonConfig: z.ZodOptional<z.ZodObject<{
|
|
700
|
+
connectText: z.ZodOptional<z.ZodString>;
|
|
701
|
+
disconnectText: z.ZodOptional<z.ZodString>;
|
|
702
|
+
loadingText: z.ZodOptional<z.ZodString>;
|
|
703
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
704
|
+
color: z.ZodOptional<z.ZodString>;
|
|
705
|
+
borderRadius: z.ZodOptional<z.ZodString>;
|
|
706
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
707
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
708
|
+
fontWeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
709
|
+
}, z.core.$strip>>;
|
|
710
|
+
subsidisedGatewayUrl: z.ZodOptional<z.ZodString>;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
export declare const CheckAuthMessageSchema: z.ZodObject<{
|
|
713
|
+
type: z.ZodLiteral<"checkAuth">;
|
|
714
|
+
requestId: z.ZodString;
|
|
715
|
+
}, z.core.$strip>;
|
|
716
|
+
export declare const DisconnectMessageSchema: z.ZodObject<{
|
|
717
|
+
type: z.ZodLiteral<"disconnect">;
|
|
718
|
+
requestId: z.ZodString;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
export declare const UploadDataMessageSchema: z.ZodObject<{
|
|
721
|
+
type: z.ZodLiteral<"uploadData">;
|
|
722
|
+
requestId: z.ZodString;
|
|
723
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
724
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
725
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
726
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
728
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
729
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
730
|
+
}, z.core.$strip>>;
|
|
731
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
732
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
733
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
734
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
735
|
+
}, z.core.$strip>>;
|
|
736
|
+
enableProgress: z.ZodOptional<z.ZodBoolean>;
|
|
737
|
+
useWebSocket: z.ZodOptional<z.ZodBoolean>;
|
|
738
|
+
useWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
+
workerCount: z.ZodOptional<z.ZodNumber>;
|
|
740
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
741
|
+
}, z.core.$strip>;
|
|
742
|
+
export declare const DownloadDataMessageSchema: z.ZodObject<{
|
|
743
|
+
type: z.ZodLiteral<"downloadData">;
|
|
744
|
+
requestId: z.ZodString;
|
|
745
|
+
reference: z.ZodString;
|
|
746
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
748
|
+
fallback: z.ZodOptional<z.ZodBoolean>;
|
|
749
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
750
|
+
actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
751
|
+
actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
752
|
+
actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
753
|
+
}, z.core.$strip>>;
|
|
754
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
755
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
756
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
757
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
758
|
+
}, z.core.$strip>>;
|
|
759
|
+
}, z.core.$strip>;
|
|
760
|
+
export declare const DeriveAppSecretMessageSchema: z.ZodObject<{
|
|
761
|
+
type: z.ZodLiteral<"deriveAppSecret">;
|
|
762
|
+
requestId: z.ZodString;
|
|
763
|
+
label: z.ZodString;
|
|
764
|
+
}, z.core.$strip>;
|
|
765
|
+
export declare const GetChatKeyMessageSchema: z.ZodObject<{
|
|
766
|
+
type: z.ZodLiteral<"getChatKey">;
|
|
767
|
+
requestId: z.ZodString;
|
|
768
|
+
}, z.core.$strip>;
|
|
769
|
+
/**
|
|
770
|
+
* Who signs a single-owner chunk in `stampChunk`: the site's own app secret,
|
|
771
|
+
* or a private key the site supplies (a chat's shared GSOC inbox key).
|
|
772
|
+
*/
|
|
773
|
+
export declare const StampChunkSignerSchema: z.ZodUnion<readonly [z.ZodLiteral<"app">, z.ZodObject<{
|
|
774
|
+
privateKey: z.ZodString;
|
|
775
|
+
}, z.core.$strict>]>;
|
|
776
|
+
/**
|
|
777
|
+
* The chunk `stampChunk` stamps, always whole so the frame computes its
|
|
778
|
+
* address itself. `data` is span plus payload. Strict, so a chunk that also
|
|
779
|
+
* carries an address, an owner or a signature is refused: the frame never
|
|
780
|
+
* stamps an address it did not compute, nor a chunk somebody else signed.
|
|
781
|
+
*/
|
|
782
|
+
export declare const StampChunkRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
783
|
+
kind: z.ZodLiteral<"content">;
|
|
784
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
785
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
786
|
+
kind: z.ZodLiteral<"soc">;
|
|
787
|
+
identifier: z.ZodString;
|
|
788
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
789
|
+
signer: z.ZodUnion<readonly [z.ZodLiteral<"app">, z.ZodObject<{
|
|
790
|
+
privateKey: z.ZodString;
|
|
791
|
+
}, z.core.$strict>]>;
|
|
792
|
+
}, z.core.$strict>], "kind">;
|
|
793
|
+
export declare const StampChunkMessageSchema: z.ZodObject<{
|
|
794
|
+
type: z.ZodLiteral<"stampChunk">;
|
|
795
|
+
requestId: z.ZodString;
|
|
796
|
+
chunk: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
797
|
+
kind: z.ZodLiteral<"content">;
|
|
798
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
799
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
800
|
+
kind: z.ZodLiteral<"soc">;
|
|
801
|
+
identifier: z.ZodString;
|
|
802
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
803
|
+
signer: z.ZodUnion<readonly [z.ZodLiteral<"app">, z.ZodObject<{
|
|
804
|
+
privateKey: z.ZodString;
|
|
805
|
+
}, z.core.$strict>]>;
|
|
806
|
+
}, z.core.$strict>], "kind">;
|
|
807
|
+
}, z.core.$strict>;
|
|
808
|
+
export declare const UploadFileMessageSchema: z.ZodObject<{
|
|
809
|
+
type: z.ZodLiteral<"uploadFile">;
|
|
810
|
+
requestId: z.ZodString;
|
|
811
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
812
|
+
name: z.ZodOptional<z.ZodString>;
|
|
813
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
814
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
815
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
816
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
817
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
818
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
819
|
+
}, z.core.$strip>>;
|
|
820
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
821
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
822
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
823
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
824
|
+
}, z.core.$strip>>;
|
|
825
|
+
enableProgress: z.ZodOptional<z.ZodBoolean>;
|
|
826
|
+
useWebSocket: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
+
useWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
828
|
+
workerCount: z.ZodOptional<z.ZodNumber>;
|
|
829
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
830
|
+
}, z.core.$strip>;
|
|
831
|
+
export declare const DownloadFileMessageSchema: z.ZodObject<{
|
|
832
|
+
type: z.ZodLiteral<"downloadFile">;
|
|
833
|
+
requestId: z.ZodString;
|
|
834
|
+
reference: z.ZodString;
|
|
835
|
+
path: z.ZodOptional<z.ZodString>;
|
|
836
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
837
|
+
redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
838
|
+
fallback: z.ZodOptional<z.ZodBoolean>;
|
|
839
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
840
|
+
actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
841
|
+
actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
842
|
+
actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
843
|
+
}, z.core.$strip>>;
|
|
844
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
845
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
846
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
847
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
848
|
+
}, z.core.$strip>>;
|
|
849
|
+
}, z.core.$strip>;
|
|
850
|
+
export declare const UploadFilesMessageSchema: z.ZodObject<{
|
|
851
|
+
type: z.ZodLiteral<"uploadFiles">;
|
|
852
|
+
requestId: z.ZodString;
|
|
853
|
+
files: z.ZodArray<z.ZodObject<{
|
|
854
|
+
path: z.ZodString;
|
|
855
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
856
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
857
|
+
}, z.core.$strip>>;
|
|
858
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
859
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
860
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
861
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
862
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
863
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
864
|
+
indexDocument: z.ZodOptional<z.ZodString>;
|
|
865
|
+
errorDocument: z.ZodOptional<z.ZodString>;
|
|
866
|
+
}, z.core.$strip>>;
|
|
867
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
868
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
869
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
870
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
871
|
+
}, z.core.$strip>>;
|
|
872
|
+
enableProgress: z.ZodOptional<z.ZodBoolean>;
|
|
873
|
+
useWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
874
|
+
workerCount: z.ZodOptional<z.ZodNumber>;
|
|
875
|
+
}, z.core.$strip>;
|
|
876
|
+
export declare const ListFilesMessageSchema: z.ZodObject<{
|
|
877
|
+
type: z.ZodLiteral<"listFiles">;
|
|
878
|
+
requestId: z.ZodString;
|
|
879
|
+
reference: z.ZodString;
|
|
880
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
881
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
882
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
883
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
884
|
+
}, z.core.$strip>>;
|
|
885
|
+
}, z.core.$strip>;
|
|
886
|
+
export declare const UploadChunkMessageSchema: z.ZodObject<{
|
|
887
|
+
type: z.ZodLiteral<"uploadChunk">;
|
|
888
|
+
requestId: z.ZodString;
|
|
889
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
890
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
891
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
892
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
893
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
894
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
895
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
896
|
+
}, z.core.$strip>>;
|
|
897
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
898
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
899
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
900
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
901
|
+
}, z.core.$strip>>;
|
|
902
|
+
}, z.core.$strip>;
|
|
903
|
+
export declare const DownloadChunkMessageSchema: z.ZodObject<{
|
|
904
|
+
type: z.ZodLiteral<"downloadChunk">;
|
|
905
|
+
requestId: z.ZodString;
|
|
906
|
+
reference: z.ZodString;
|
|
907
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
908
|
+
redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
909
|
+
fallback: z.ZodOptional<z.ZodBoolean>;
|
|
910
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
911
|
+
actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
912
|
+
actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
913
|
+
actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
914
|
+
}, z.core.$strip>>;
|
|
915
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
916
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
917
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
918
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
919
|
+
}, z.core.$strip>>;
|
|
920
|
+
}, z.core.$strip>;
|
|
921
|
+
export declare const IsConnectedMessageSchema: z.ZodObject<{
|
|
922
|
+
type: z.ZodLiteral<"isConnected">;
|
|
923
|
+
requestId: z.ZodString;
|
|
924
|
+
}, z.core.$strip>;
|
|
925
|
+
export declare const GetNodeInfoMessageSchema: z.ZodObject<{
|
|
926
|
+
type: z.ZodLiteral<"getNodeInfo">;
|
|
927
|
+
requestId: z.ZodString;
|
|
928
|
+
}, z.core.$strip>;
|
|
929
|
+
export declare const GsocMineMessageSchema: z.ZodObject<{
|
|
930
|
+
type: z.ZodLiteral<"gsocMine">;
|
|
931
|
+
requestId: z.ZodString;
|
|
932
|
+
targetOverlay: z.ZodString;
|
|
933
|
+
identifier: z.ZodString;
|
|
934
|
+
proximity: z.ZodOptional<z.ZodNumber>;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
export declare const GsocSendMessageSchema: z.ZodObject<{
|
|
937
|
+
type: z.ZodLiteral<"gsocSend">;
|
|
938
|
+
requestId: z.ZodString;
|
|
939
|
+
signer: z.ZodString;
|
|
940
|
+
identifier: z.ZodString;
|
|
941
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
942
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
943
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
944
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
945
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
946
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
947
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
948
|
+
}, z.core.$strip>>;
|
|
949
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
950
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
951
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
952
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
953
|
+
}, z.core.$strip>>;
|
|
954
|
+
}, z.core.$strip>;
|
|
955
|
+
export declare const SocUploadMessageSchema: z.ZodObject<{
|
|
956
|
+
type: z.ZodLiteral<"socUpload">;
|
|
957
|
+
requestId: z.ZodString;
|
|
958
|
+
identifier: z.ZodString;
|
|
959
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
960
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
961
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
962
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
963
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
964
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
965
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
966
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
967
|
+
}, z.core.$strip>>;
|
|
968
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
969
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
970
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
971
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
972
|
+
}, z.core.$strip>>;
|
|
973
|
+
}, z.core.$strip>;
|
|
974
|
+
export declare const SocRawUploadMessageSchema: z.ZodObject<{
|
|
975
|
+
type: z.ZodLiteral<"socRawUpload">;
|
|
976
|
+
requestId: z.ZodString;
|
|
977
|
+
identifier: z.ZodString;
|
|
978
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
979
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
980
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
981
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
982
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
983
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
984
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
985
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
986
|
+
}, z.core.$strip>>;
|
|
987
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
988
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
989
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
990
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
991
|
+
}, z.core.$strip>>;
|
|
992
|
+
}, z.core.$strip>;
|
|
993
|
+
export declare const SocDownloadMessageSchema: z.ZodObject<{
|
|
994
|
+
type: z.ZodLiteral<"socDownload">;
|
|
995
|
+
requestId: z.ZodString;
|
|
996
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
997
|
+
identifier: z.ZodString;
|
|
998
|
+
encryptionKey: z.ZodString;
|
|
999
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1000
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1002
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1003
|
+
}, z.core.$strip>>;
|
|
1004
|
+
}, z.core.$strip>;
|
|
1005
|
+
export declare const SocRawDownloadMessageSchema: z.ZodObject<{
|
|
1006
|
+
type: z.ZodLiteral<"socRawDownload">;
|
|
1007
|
+
requestId: z.ZodString;
|
|
1008
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
identifier: z.ZodString;
|
|
1010
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1012
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1013
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1014
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1015
|
+
}, z.core.$strip>>;
|
|
1016
|
+
}, z.core.$strip>;
|
|
1017
|
+
export declare const SocGetOwnerMessageSchema: z.ZodObject<{
|
|
1018
|
+
type: z.ZodLiteral<"socGetOwner">;
|
|
1019
|
+
requestId: z.ZodString;
|
|
1020
|
+
}, z.core.$strip>;
|
|
1021
|
+
export declare const EpochFeedDownloadReferenceMessageSchema: z.ZodObject<{
|
|
1022
|
+
type: z.ZodLiteral<"epochFeedDownloadReference">;
|
|
1023
|
+
requestId: z.ZodString;
|
|
1024
|
+
topic: z.ZodString;
|
|
1025
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1027
|
+
after: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1028
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1030
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1031
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1032
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1033
|
+
}, z.core.$strip>>;
|
|
1034
|
+
}, z.core.$strip>;
|
|
1035
|
+
export declare const EpochHintsSchema: z.ZodOptional<z.ZodObject<{
|
|
1036
|
+
lastEpoch: z.ZodOptional<z.ZodObject<{
|
|
1037
|
+
start: z.ZodString;
|
|
1038
|
+
level: z.ZodNumber;
|
|
1039
|
+
}, z.core.$strip>>;
|
|
1040
|
+
lastTimestamp: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
}, z.core.$strip>>;
|
|
1042
|
+
export declare const EpochFeedUploadReferenceMessageSchema: z.ZodObject<{
|
|
1043
|
+
type: z.ZodLiteral<"epochFeedUploadReference">;
|
|
1044
|
+
requestId: z.ZodString;
|
|
1045
|
+
topic: z.ZodString;
|
|
1046
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1048
|
+
reference: z.ZodString;
|
|
1049
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
hints: z.ZodOptional<z.ZodObject<{
|
|
1051
|
+
lastEpoch: z.ZodOptional<z.ZodObject<{
|
|
1052
|
+
start: z.ZodString;
|
|
1053
|
+
level: z.ZodNumber;
|
|
1054
|
+
}, z.core.$strip>>;
|
|
1055
|
+
lastTimestamp: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
}, z.core.$strip>>;
|
|
1057
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1058
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1059
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1060
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1061
|
+
}, z.core.$strip>>;
|
|
1062
|
+
}, z.core.$strip>;
|
|
1063
|
+
export declare const FeedGetOwnerMessageSchema: z.ZodObject<{
|
|
1064
|
+
type: z.ZodLiteral<"feedGetOwner">;
|
|
1065
|
+
requestId: z.ZodString;
|
|
1066
|
+
}, z.core.$strip>;
|
|
1067
|
+
export declare const SequentialFeedGetOwnerMessageSchema: z.ZodObject<{
|
|
1068
|
+
type: z.ZodLiteral<"seqFeedGetOwner">;
|
|
1069
|
+
requestId: z.ZodString;
|
|
1070
|
+
}, z.core.$strip>;
|
|
1071
|
+
export declare const SequentialFeedDownloadPayloadMessageSchema: z.ZodObject<{
|
|
1072
|
+
type: z.ZodLiteral<"seqFeedDownloadPayload">;
|
|
1073
|
+
requestId: z.ZodString;
|
|
1074
|
+
topic: z.ZodString;
|
|
1075
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1077
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1078
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1079
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1080
|
+
encryptionKey: z.ZodString;
|
|
1081
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1082
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1083
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1084
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1085
|
+
}, z.core.$strip>>;
|
|
1086
|
+
}, z.core.$strip>;
|
|
1087
|
+
export declare const SequentialFeedDownloadRawPayloadMessageSchema: z.ZodObject<{
|
|
1088
|
+
type: z.ZodLiteral<"seqFeedDownloadRawPayload">;
|
|
1089
|
+
requestId: z.ZodString;
|
|
1090
|
+
topic: z.ZodString;
|
|
1091
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1093
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1094
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1095
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1096
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1098
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1099
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1100
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1101
|
+
}, z.core.$strip>>;
|
|
1102
|
+
}, z.core.$strip>;
|
|
1103
|
+
export declare const SequentialFeedDownloadReferenceMessageSchema: z.ZodObject<{
|
|
1104
|
+
type: z.ZodLiteral<"seqFeedDownloadReference">;
|
|
1105
|
+
requestId: z.ZodString;
|
|
1106
|
+
topic: z.ZodString;
|
|
1107
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1109
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1110
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1111
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1112
|
+
encryptionKey: z.ZodString;
|
|
1113
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1114
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1115
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1116
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1117
|
+
}, z.core.$strip>>;
|
|
1118
|
+
}, z.core.$strip>;
|
|
1119
|
+
export declare const SequentialFeedUploadPayloadMessageSchema: z.ZodObject<{
|
|
1120
|
+
type: z.ZodLiteral<"seqFeedUploadPayload">;
|
|
1121
|
+
requestId: z.ZodString;
|
|
1122
|
+
topic: z.ZodString;
|
|
1123
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1125
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1126
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1127
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1128
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1129
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1130
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1131
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1132
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1133
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1134
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1135
|
+
}, z.core.$strip>>;
|
|
1136
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1137
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1138
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1139
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1140
|
+
}, z.core.$strip>>;
|
|
1141
|
+
}, z.core.$strip>;
|
|
1142
|
+
export declare const SequentialFeedUploadRawPayloadMessageSchema: z.ZodObject<{
|
|
1143
|
+
type: z.ZodLiteral<"seqFeedUploadRawPayload">;
|
|
1144
|
+
requestId: z.ZodString;
|
|
1145
|
+
topic: z.ZodString;
|
|
1146
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1147
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1148
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1149
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1150
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1151
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1152
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1153
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1154
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1155
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1156
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1157
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1158
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1159
|
+
}, z.core.$strip>>;
|
|
1160
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1161
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1162
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1163
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1164
|
+
}, z.core.$strip>>;
|
|
1165
|
+
}, z.core.$strip>;
|
|
1166
|
+
export declare const SequentialFeedUploadReferenceMessageSchema: z.ZodObject<{
|
|
1167
|
+
type: z.ZodLiteral<"seqFeedUploadReference">;
|
|
1168
|
+
requestId: z.ZodString;
|
|
1169
|
+
topic: z.ZodString;
|
|
1170
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
reference: z.ZodString;
|
|
1172
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1173
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1174
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1175
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1176
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1177
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1178
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1179
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1180
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1181
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1182
|
+
}, z.core.$strip>>;
|
|
1183
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1184
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1185
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1186
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1187
|
+
}, z.core.$strip>>;
|
|
1188
|
+
}, z.core.$strip>;
|
|
1189
|
+
export declare const CreateFeedManifestMessageSchema: z.ZodObject<{
|
|
1190
|
+
type: z.ZodLiteral<"createFeedManifest">;
|
|
1191
|
+
requestId: z.ZodString;
|
|
1192
|
+
topic: z.ZodString;
|
|
1193
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
feedType: z.ZodOptional<z.ZodEnum<{
|
|
1195
|
+
Sequence: "Sequence";
|
|
1196
|
+
Epoch: "Epoch";
|
|
1197
|
+
}>>;
|
|
1198
|
+
uploadOptions: z.ZodOptional<z.ZodObject<{
|
|
1199
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1200
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1201
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1202
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1203
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1204
|
+
}, z.core.$strip>>;
|
|
1205
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1206
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1207
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1208
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1209
|
+
}, z.core.$strip>>;
|
|
1210
|
+
}, z.core.$strip>;
|
|
1211
|
+
export declare const ActUploadDataMessageSchema: z.ZodObject<{
|
|
1212
|
+
type: z.ZodLiteral<"actUploadData">;
|
|
1213
|
+
requestId: z.ZodString;
|
|
1214
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1215
|
+
grantees: z.ZodArray<z.ZodString>;
|
|
1216
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1217
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1218
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1219
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1220
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1221
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1222
|
+
beeCompatible: z.ZodOptional<z.ZodBoolean>;
|
|
1223
|
+
publisher: z.ZodOptional<z.ZodEnum<{
|
|
1224
|
+
app: "app";
|
|
1225
|
+
identity: "identity";
|
|
1226
|
+
}>>;
|
|
1227
|
+
}, z.core.$strip>>;
|
|
1228
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1229
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1230
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1231
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1232
|
+
}, z.core.$strip>>;
|
|
1233
|
+
enableProgress: z.ZodOptional<z.ZodBoolean>;
|
|
1234
|
+
}, z.core.$strip>;
|
|
1235
|
+
export declare const ActDownloadDataMessageSchema: z.ZodObject<{
|
|
1236
|
+
type: z.ZodLiteral<"actDownloadData">;
|
|
1237
|
+
requestId: z.ZodString;
|
|
1238
|
+
encryptedReference: z.ZodString;
|
|
1239
|
+
historyReference: z.ZodString;
|
|
1240
|
+
publisherPubKey: z.ZodString;
|
|
1241
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1242
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1243
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1244
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1245
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1246
|
+
}, z.core.$strip>>;
|
|
1247
|
+
}, z.core.$strip>;
|
|
1248
|
+
export declare const ActAddGranteesMessageSchema: z.ZodObject<{
|
|
1249
|
+
type: z.ZodLiteral<"actAddGrantees">;
|
|
1250
|
+
requestId: z.ZodString;
|
|
1251
|
+
historyReference: z.ZodString;
|
|
1252
|
+
grantees: z.ZodArray<z.ZodString>;
|
|
1253
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1254
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1255
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1256
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1257
|
+
}, z.core.$strip>>;
|
|
1258
|
+
}, z.core.$strip>;
|
|
1259
|
+
export declare const ActRevokeGranteesMessageSchema: z.ZodObject<{
|
|
1260
|
+
type: z.ZodLiteral<"actRevokeGrantees">;
|
|
1261
|
+
requestId: z.ZodString;
|
|
1262
|
+
historyReference: z.ZodString;
|
|
1263
|
+
encryptedReference: z.ZodString;
|
|
1264
|
+
revokeGrantees: z.ZodArray<z.ZodString>;
|
|
1265
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1266
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1267
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1268
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1269
|
+
}, z.core.$strip>>;
|
|
1270
|
+
}, z.core.$strip>;
|
|
1271
|
+
export declare const ActGetGranteesMessageSchema: z.ZodObject<{
|
|
1272
|
+
type: z.ZodLiteral<"actGetGrantees">;
|
|
1273
|
+
requestId: z.ZodString;
|
|
1274
|
+
historyReference: 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 GetPostageBatchMessageSchema: z.ZodObject<{
|
|
1282
|
+
type: z.ZodLiteral<"getPostageBatch">;
|
|
1283
|
+
requestId: z.ZodString;
|
|
1284
|
+
}, z.core.$strip>;
|
|
1285
|
+
export declare const ConnectMessageSchema: z.ZodObject<{
|
|
1286
|
+
type: z.ZodLiteral<"connect">;
|
|
1287
|
+
requestId: z.ZodString;
|
|
1288
|
+
popupMode: z.ZodOptional<z.ZodEnum<{
|
|
1289
|
+
popup: "popup";
|
|
1290
|
+
window: "window";
|
|
1291
|
+
}>>;
|
|
1292
|
+
}, z.core.$strip>;
|
|
1293
|
+
export declare const ParentToIframeMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1294
|
+
type: z.ZodLiteral<"parentIdentify">;
|
|
1295
|
+
requestId: z.ZodString;
|
|
1296
|
+
beeApiUrl: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
popupMode: z.ZodOptional<z.ZodEnum<{
|
|
1298
|
+
popup: "popup";
|
|
1299
|
+
window: "window";
|
|
1300
|
+
}>>;
|
|
1301
|
+
metadata: z.ZodObject<{
|
|
1302
|
+
name: z.ZodString;
|
|
1303
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
}, z.core.$strip>;
|
|
1306
|
+
buttonConfig: z.ZodOptional<z.ZodObject<{
|
|
1307
|
+
connectText: z.ZodOptional<z.ZodString>;
|
|
1308
|
+
disconnectText: z.ZodOptional<z.ZodString>;
|
|
1309
|
+
loadingText: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
1311
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1312
|
+
borderRadius: z.ZodOptional<z.ZodString>;
|
|
1313
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1314
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
fontWeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1316
|
+
}, z.core.$strip>>;
|
|
1317
|
+
subsidisedGatewayUrl: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1319
|
+
type: z.ZodLiteral<"checkAuth">;
|
|
1320
|
+
requestId: z.ZodString;
|
|
1321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1322
|
+
type: z.ZodLiteral<"disconnect">;
|
|
1323
|
+
requestId: z.ZodString;
|
|
1324
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1325
|
+
type: z.ZodLiteral<"uploadData">;
|
|
1326
|
+
requestId: z.ZodString;
|
|
1327
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1328
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1329
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1330
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1331
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1332
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1333
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1334
|
+
}, z.core.$strip>>;
|
|
1335
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1336
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1337
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1338
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1339
|
+
}, z.core.$strip>>;
|
|
1340
|
+
enableProgress: z.ZodOptional<z.ZodBoolean>;
|
|
1341
|
+
useWebSocket: z.ZodOptional<z.ZodBoolean>;
|
|
1342
|
+
useWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
1343
|
+
workerCount: z.ZodOptional<z.ZodNumber>;
|
|
1344
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
1345
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1346
|
+
type: z.ZodLiteral<"downloadData">;
|
|
1347
|
+
requestId: z.ZodString;
|
|
1348
|
+
reference: z.ZodString;
|
|
1349
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1350
|
+
redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
1351
|
+
fallback: z.ZodOptional<z.ZodBoolean>;
|
|
1352
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1353
|
+
actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
1354
|
+
actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
1355
|
+
actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1356
|
+
}, z.core.$strip>>;
|
|
1357
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1358
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1359
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1360
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1361
|
+
}, z.core.$strip>>;
|
|
1362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1363
|
+
type: z.ZodLiteral<"deriveAppSecret">;
|
|
1364
|
+
requestId: z.ZodString;
|
|
1365
|
+
label: z.ZodString;
|
|
1366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1367
|
+
type: z.ZodLiteral<"getChatKey">;
|
|
1368
|
+
requestId: z.ZodString;
|
|
1369
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1370
|
+
type: z.ZodLiteral<"stampChunk">;
|
|
1371
|
+
requestId: z.ZodString;
|
|
1372
|
+
chunk: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1373
|
+
kind: z.ZodLiteral<"content">;
|
|
1374
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1375
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1376
|
+
kind: z.ZodLiteral<"soc">;
|
|
1377
|
+
identifier: z.ZodString;
|
|
1378
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1379
|
+
signer: z.ZodUnion<readonly [z.ZodLiteral<"app">, z.ZodObject<{
|
|
1380
|
+
privateKey: z.ZodString;
|
|
1381
|
+
}, z.core.$strict>]>;
|
|
1382
|
+
}, z.core.$strict>], "kind">;
|
|
1383
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1384
|
+
type: z.ZodLiteral<"uploadFile">;
|
|
1385
|
+
requestId: z.ZodString;
|
|
1386
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1387
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1389
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1390
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1391
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1392
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1393
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1394
|
+
}, z.core.$strip>>;
|
|
1395
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1396
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1397
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1398
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1399
|
+
}, z.core.$strip>>;
|
|
1400
|
+
enableProgress: z.ZodOptional<z.ZodBoolean>;
|
|
1401
|
+
useWebSocket: z.ZodOptional<z.ZodBoolean>;
|
|
1402
|
+
useWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
1403
|
+
workerCount: z.ZodOptional<z.ZodNumber>;
|
|
1404
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
1405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1406
|
+
type: z.ZodLiteral<"downloadFile">;
|
|
1407
|
+
requestId: z.ZodString;
|
|
1408
|
+
reference: z.ZodString;
|
|
1409
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1410
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1411
|
+
redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
1412
|
+
fallback: z.ZodOptional<z.ZodBoolean>;
|
|
1413
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1414
|
+
actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
1415
|
+
actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
1416
|
+
actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1417
|
+
}, z.core.$strip>>;
|
|
1418
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1419
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1420
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1421
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1422
|
+
}, z.core.$strip>>;
|
|
1423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1424
|
+
type: z.ZodLiteral<"uploadFiles">;
|
|
1425
|
+
requestId: z.ZodString;
|
|
1426
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1427
|
+
path: z.ZodString;
|
|
1428
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1429
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
}, z.core.$strip>>;
|
|
1431
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1432
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1433
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1434
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1435
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1436
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1437
|
+
indexDocument: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
errorDocument: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
}, z.core.$strip>>;
|
|
1440
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1441
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1442
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1443
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1444
|
+
}, z.core.$strip>>;
|
|
1445
|
+
enableProgress: z.ZodOptional<z.ZodBoolean>;
|
|
1446
|
+
useWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
1447
|
+
workerCount: z.ZodOptional<z.ZodNumber>;
|
|
1448
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1449
|
+
type: z.ZodLiteral<"listFiles">;
|
|
1450
|
+
requestId: z.ZodString;
|
|
1451
|
+
reference: z.ZodString;
|
|
1452
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1453
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1454
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1455
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1456
|
+
}, z.core.$strip>>;
|
|
1457
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1458
|
+
type: z.ZodLiteral<"uploadChunk">;
|
|
1459
|
+
requestId: z.ZodString;
|
|
1460
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1461
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1462
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1463
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1464
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1465
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1466
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1467
|
+
}, z.core.$strip>>;
|
|
1468
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1469
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1470
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1471
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1472
|
+
}, z.core.$strip>>;
|
|
1473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1474
|
+
type: z.ZodLiteral<"downloadChunk">;
|
|
1475
|
+
requestId: z.ZodString;
|
|
1476
|
+
reference: z.ZodString;
|
|
1477
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1478
|
+
redundancyStrategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
1479
|
+
fallback: z.ZodOptional<z.ZodBoolean>;
|
|
1480
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1481
|
+
actPublisher: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
1482
|
+
actHistoryAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>>;
|
|
1483
|
+
actTimestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1484
|
+
}, z.core.$strip>>;
|
|
1485
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1486
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1487
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1488
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1489
|
+
}, z.core.$strip>>;
|
|
1490
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1491
|
+
type: z.ZodLiteral<"isConnected">;
|
|
1492
|
+
requestId: z.ZodString;
|
|
1493
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1494
|
+
type: z.ZodLiteral<"getNodeInfo">;
|
|
1495
|
+
requestId: z.ZodString;
|
|
1496
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1497
|
+
type: z.ZodLiteral<"gsocMine">;
|
|
1498
|
+
requestId: z.ZodString;
|
|
1499
|
+
targetOverlay: z.ZodString;
|
|
1500
|
+
identifier: z.ZodString;
|
|
1501
|
+
proximity: z.ZodOptional<z.ZodNumber>;
|
|
1502
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1503
|
+
type: z.ZodLiteral<"gsocSend">;
|
|
1504
|
+
requestId: z.ZodString;
|
|
1505
|
+
signer: z.ZodString;
|
|
1506
|
+
identifier: z.ZodString;
|
|
1507
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1508
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1509
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1510
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1511
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1512
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1513
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1514
|
+
}, z.core.$strip>>;
|
|
1515
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1516
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1517
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1518
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1519
|
+
}, z.core.$strip>>;
|
|
1520
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1521
|
+
type: z.ZodLiteral<"socUpload">;
|
|
1522
|
+
requestId: z.ZodString;
|
|
1523
|
+
identifier: z.ZodString;
|
|
1524
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1525
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1527
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1528
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1529
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1530
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1531
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1532
|
+
}, z.core.$strip>>;
|
|
1533
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1534
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1535
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1536
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1537
|
+
}, z.core.$strip>>;
|
|
1538
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1539
|
+
type: z.ZodLiteral<"socRawUpload">;
|
|
1540
|
+
requestId: z.ZodString;
|
|
1541
|
+
identifier: z.ZodString;
|
|
1542
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1543
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1544
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1545
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1546
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1547
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1548
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1549
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1550
|
+
}, z.core.$strip>>;
|
|
1551
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1552
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1553
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1554
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1555
|
+
}, z.core.$strip>>;
|
|
1556
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1557
|
+
type: z.ZodLiteral<"socDownload">;
|
|
1558
|
+
requestId: z.ZodString;
|
|
1559
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
identifier: z.ZodString;
|
|
1561
|
+
encryptionKey: z.ZodString;
|
|
1562
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1563
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1564
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1565
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1566
|
+
}, z.core.$strip>>;
|
|
1567
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1568
|
+
type: z.ZodLiteral<"socRawDownload">;
|
|
1569
|
+
requestId: z.ZodString;
|
|
1570
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
identifier: z.ZodString;
|
|
1572
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1574
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1575
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1576
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1577
|
+
}, z.core.$strip>>;
|
|
1578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1579
|
+
type: z.ZodLiteral<"socGetOwner">;
|
|
1580
|
+
requestId: z.ZodString;
|
|
1581
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1582
|
+
type: z.ZodLiteral<"epochFeedDownloadReference">;
|
|
1583
|
+
requestId: z.ZodString;
|
|
1584
|
+
topic: z.ZodString;
|
|
1585
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1586
|
+
at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1587
|
+
after: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1588
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1589
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1590
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1591
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1592
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1593
|
+
}, z.core.$strip>>;
|
|
1594
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1595
|
+
type: z.ZodLiteral<"epochFeedUploadReference">;
|
|
1596
|
+
requestId: z.ZodString;
|
|
1597
|
+
topic: z.ZodString;
|
|
1598
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1599
|
+
at: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1600
|
+
reference: z.ZodString;
|
|
1601
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1602
|
+
hints: z.ZodOptional<z.ZodObject<{
|
|
1603
|
+
lastEpoch: z.ZodOptional<z.ZodObject<{
|
|
1604
|
+
start: z.ZodString;
|
|
1605
|
+
level: z.ZodNumber;
|
|
1606
|
+
}, z.core.$strip>>;
|
|
1607
|
+
lastTimestamp: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
}, z.core.$strip>>;
|
|
1609
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1610
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1611
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1612
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1613
|
+
}, z.core.$strip>>;
|
|
1614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1615
|
+
type: z.ZodLiteral<"feedGetOwner">;
|
|
1616
|
+
requestId: z.ZodString;
|
|
1617
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1618
|
+
type: z.ZodLiteral<"seqFeedGetOwner">;
|
|
1619
|
+
requestId: z.ZodString;
|
|
1620
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1621
|
+
type: z.ZodLiteral<"seqFeedDownloadPayload">;
|
|
1622
|
+
requestId: z.ZodString;
|
|
1623
|
+
topic: z.ZodString;
|
|
1624
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1625
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1626
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1627
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1628
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1629
|
+
encryptionKey: z.ZodString;
|
|
1630
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1631
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1632
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1633
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1634
|
+
}, z.core.$strip>>;
|
|
1635
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1636
|
+
type: z.ZodLiteral<"seqFeedDownloadRawPayload">;
|
|
1637
|
+
requestId: z.ZodString;
|
|
1638
|
+
topic: z.ZodString;
|
|
1639
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1640
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1641
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1642
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1643
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1644
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1645
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1646
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1647
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1648
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1649
|
+
}, z.core.$strip>>;
|
|
1650
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1651
|
+
type: z.ZodLiteral<"seqFeedDownloadReference">;
|
|
1652
|
+
requestId: z.ZodString;
|
|
1653
|
+
topic: z.ZodString;
|
|
1654
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1656
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1657
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1658
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1659
|
+
encryptionKey: z.ZodString;
|
|
1660
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1661
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1662
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1663
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1664
|
+
}, z.core.$strip>>;
|
|
1665
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1666
|
+
type: z.ZodLiteral<"seqFeedUploadPayload">;
|
|
1667
|
+
requestId: z.ZodString;
|
|
1668
|
+
topic: z.ZodString;
|
|
1669
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1671
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1672
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1673
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1674
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1675
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1676
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1677
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1678
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1679
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1680
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1681
|
+
}, z.core.$strip>>;
|
|
1682
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1683
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1684
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1685
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1686
|
+
}, z.core.$strip>>;
|
|
1687
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1688
|
+
type: z.ZodLiteral<"seqFeedUploadRawPayload">;
|
|
1689
|
+
requestId: z.ZodString;
|
|
1690
|
+
topic: z.ZodString;
|
|
1691
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1692
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1693
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1694
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1695
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1696
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1697
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1699
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1700
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1701
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1702
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1703
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1704
|
+
}, z.core.$strip>>;
|
|
1705
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1706
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1707
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1708
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1709
|
+
}, z.core.$strip>>;
|
|
1710
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1711
|
+
type: z.ZodLiteral<"seqFeedUploadReference">;
|
|
1712
|
+
requestId: z.ZodString;
|
|
1713
|
+
topic: z.ZodString;
|
|
1714
|
+
signer: z.ZodOptional<z.ZodString>;
|
|
1715
|
+
reference: z.ZodString;
|
|
1716
|
+
index: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1717
|
+
at: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1718
|
+
hasTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1719
|
+
lookupTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1720
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1721
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1722
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1723
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1724
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1725
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1726
|
+
}, z.core.$strip>>;
|
|
1727
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1728
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1729
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1730
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1731
|
+
}, z.core.$strip>>;
|
|
1732
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1733
|
+
type: z.ZodLiteral<"createFeedManifest">;
|
|
1734
|
+
requestId: z.ZodString;
|
|
1735
|
+
topic: z.ZodString;
|
|
1736
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1737
|
+
feedType: z.ZodOptional<z.ZodEnum<{
|
|
1738
|
+
Sequence: "Sequence";
|
|
1739
|
+
Epoch: "Epoch";
|
|
1740
|
+
}>>;
|
|
1741
|
+
uploadOptions: z.ZodOptional<z.ZodObject<{
|
|
1742
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1743
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1744
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1745
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1746
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1747
|
+
}, z.core.$strip>>;
|
|
1748
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1749
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1750
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1751
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1752
|
+
}, z.core.$strip>>;
|
|
1753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1754
|
+
type: z.ZodLiteral<"actUploadData">;
|
|
1755
|
+
requestId: z.ZodString;
|
|
1756
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1757
|
+
grantees: z.ZodArray<z.ZodString>;
|
|
1758
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1759
|
+
pin: z.ZodOptional<z.ZodBoolean>;
|
|
1760
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
1761
|
+
encryptManifest: z.ZodOptional<z.ZodBoolean>;
|
|
1762
|
+
tag: z.ZodOptional<z.ZodNumber>;
|
|
1763
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1764
|
+
beeCompatible: z.ZodOptional<z.ZodBoolean>;
|
|
1765
|
+
publisher: z.ZodOptional<z.ZodEnum<{
|
|
1766
|
+
app: "app";
|
|
1767
|
+
identity: "identity";
|
|
1768
|
+
}>>;
|
|
1769
|
+
}, z.core.$strip>>;
|
|
1770
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1771
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1772
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1773
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1774
|
+
}, z.core.$strip>>;
|
|
1775
|
+
enableProgress: z.ZodOptional<z.ZodBoolean>;
|
|
1776
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1777
|
+
type: z.ZodLiteral<"actDownloadData">;
|
|
1778
|
+
requestId: z.ZodString;
|
|
1779
|
+
encryptedReference: z.ZodString;
|
|
1780
|
+
historyReference: z.ZodString;
|
|
1781
|
+
publisherPubKey: z.ZodString;
|
|
1782
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1783
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1784
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1785
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1786
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1787
|
+
}, z.core.$strip>>;
|
|
1788
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1789
|
+
type: z.ZodLiteral<"actAddGrantees">;
|
|
1790
|
+
requestId: z.ZodString;
|
|
1791
|
+
historyReference: z.ZodString;
|
|
1792
|
+
grantees: z.ZodArray<z.ZodString>;
|
|
1793
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1794
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1795
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1796
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1797
|
+
}, z.core.$strip>>;
|
|
1798
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1799
|
+
type: z.ZodLiteral<"actRevokeGrantees">;
|
|
1800
|
+
requestId: z.ZodString;
|
|
1801
|
+
historyReference: z.ZodString;
|
|
1802
|
+
encryptedReference: z.ZodString;
|
|
1803
|
+
revokeGrantees: z.ZodArray<z.ZodString>;
|
|
1804
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1805
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1806
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1807
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1808
|
+
}, z.core.$strip>>;
|
|
1809
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1810
|
+
type: z.ZodLiteral<"actGetGrantees">;
|
|
1811
|
+
requestId: z.ZodString;
|
|
1812
|
+
historyReference: z.ZodString;
|
|
1813
|
+
requestOptions: z.ZodOptional<z.ZodObject<{
|
|
1814
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1815
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1816
|
+
endlesslyRetry: z.ZodOptional<z.ZodBoolean>;
|
|
1817
|
+
}, z.core.$strip>>;
|
|
1818
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1819
|
+
type: z.ZodLiteral<"getPostageBatch">;
|
|
1820
|
+
requestId: z.ZodString;
|
|
1821
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1822
|
+
type: z.ZodLiteral<"connect">;
|
|
1823
|
+
requestId: z.ZodString;
|
|
1824
|
+
popupMode: z.ZodOptional<z.ZodEnum<{
|
|
1825
|
+
popup: "popup";
|
|
1826
|
+
window: "window";
|
|
1827
|
+
}>>;
|
|
1828
|
+
}, z.core.$strip>], "type">;
|
|
1829
|
+
export type ParentIdentifyMessage = z.infer<typeof ParentIdentifyMessageSchema>;
|
|
1830
|
+
export type CheckAuthMessage = z.infer<typeof CheckAuthMessageSchema>;
|
|
1831
|
+
export type DisconnectMessage = z.infer<typeof DisconnectMessageSchema>;
|
|
1832
|
+
export type UploadDataMessage = z.infer<typeof UploadDataMessageSchema>;
|
|
1833
|
+
export type DownloadDataMessage = z.infer<typeof DownloadDataMessageSchema>;
|
|
1834
|
+
export type DeriveAppSecretMessage = z.infer<typeof DeriveAppSecretMessageSchema>;
|
|
1835
|
+
export type GetChatKeyMessage = z.infer<typeof GetChatKeyMessageSchema>;
|
|
1836
|
+
export type StampChunkSigner = z.infer<typeof StampChunkSignerSchema>;
|
|
1837
|
+
export type StampChunkRequest = z.infer<typeof StampChunkRequestSchema>;
|
|
1838
|
+
export type StampChunkMessage = z.infer<typeof StampChunkMessageSchema>;
|
|
1839
|
+
export type UploadFileMessage = z.infer<typeof UploadFileMessageSchema>;
|
|
1840
|
+
export type DownloadFileMessage = z.infer<typeof DownloadFileMessageSchema>;
|
|
1841
|
+
export type UploadFilesMessage = z.infer<typeof UploadFilesMessageSchema>;
|
|
1842
|
+
export type ListFilesMessage = z.infer<typeof ListFilesMessageSchema>;
|
|
1843
|
+
export type UploadChunkMessage = z.infer<typeof UploadChunkMessageSchema>;
|
|
1844
|
+
export type DownloadChunkMessage = z.infer<typeof DownloadChunkMessageSchema>;
|
|
1845
|
+
export type IsConnectedMessage = z.infer<typeof IsConnectedMessageSchema>;
|
|
1846
|
+
export type GetNodeInfoMessage = z.infer<typeof GetNodeInfoMessageSchema>;
|
|
1847
|
+
export type GsocMineMessage = z.infer<typeof GsocMineMessageSchema>;
|
|
1848
|
+
export type GsocSendMessage = z.infer<typeof GsocSendMessageSchema>;
|
|
1849
|
+
export type SocUploadMessage = z.infer<typeof SocUploadMessageSchema>;
|
|
1850
|
+
export type SocRawUploadMessage = z.infer<typeof SocRawUploadMessageSchema>;
|
|
1851
|
+
export type SocDownloadMessage = z.infer<typeof SocDownloadMessageSchema>;
|
|
1852
|
+
export type SocRawDownloadMessage = z.infer<typeof SocRawDownloadMessageSchema>;
|
|
1853
|
+
export type SocGetOwnerMessage = z.infer<typeof SocGetOwnerMessageSchema>;
|
|
1854
|
+
export type EpochFeedDownloadReferenceMessage = z.infer<typeof EpochFeedDownloadReferenceMessageSchema>;
|
|
1855
|
+
export type EpochFeedUploadReferenceMessage = z.infer<typeof EpochFeedUploadReferenceMessageSchema>;
|
|
1856
|
+
export type FeedGetOwnerMessage = z.infer<typeof FeedGetOwnerMessageSchema>;
|
|
1857
|
+
export type SequentialFeedGetOwnerMessage = z.infer<typeof SequentialFeedGetOwnerMessageSchema>;
|
|
1858
|
+
export type SequentialFeedDownloadPayloadMessage = z.infer<typeof SequentialFeedDownloadPayloadMessageSchema>;
|
|
1859
|
+
export type SequentialFeedDownloadRawPayloadMessage = z.infer<typeof SequentialFeedDownloadRawPayloadMessageSchema>;
|
|
1860
|
+
export type SequentialFeedDownloadReferenceMessage = z.infer<typeof SequentialFeedDownloadReferenceMessageSchema>;
|
|
1861
|
+
export type SequentialFeedUploadPayloadMessage = z.infer<typeof SequentialFeedUploadPayloadMessageSchema>;
|
|
1862
|
+
export type SequentialFeedUploadRawPayloadMessage = z.infer<typeof SequentialFeedUploadRawPayloadMessageSchema>;
|
|
1863
|
+
export type SequentialFeedUploadReferenceMessage = z.infer<typeof SequentialFeedUploadReferenceMessageSchema>;
|
|
1864
|
+
export type CreateFeedManifestMessage = z.infer<typeof CreateFeedManifestMessageSchema>;
|
|
1865
|
+
export type ActUploadDataMessage = z.infer<typeof ActUploadDataMessageSchema>;
|
|
1866
|
+
export type ActDownloadDataMessage = z.infer<typeof ActDownloadDataMessageSchema>;
|
|
1867
|
+
export type ActAddGranteesMessage = z.infer<typeof ActAddGranteesMessageSchema>;
|
|
1868
|
+
export type ActRevokeGranteesMessage = z.infer<typeof ActRevokeGranteesMessageSchema>;
|
|
1869
|
+
export type ActGetGranteesMessage = z.infer<typeof ActGetGranteesMessageSchema>;
|
|
1870
|
+
export type GetPostageBatchMessage = z.infer<typeof GetPostageBatchMessageSchema>;
|
|
1871
|
+
export type ConnectMessage = z.infer<typeof ConnectMessageSchema>;
|
|
1872
|
+
export type ParentToIframeMessage = z.infer<typeof ParentToIframeMessageSchema>;
|
|
1873
|
+
export declare const ProxyReadyMessageSchema: z.ZodObject<{
|
|
1874
|
+
type: z.ZodLiteral<"proxyReady">;
|
|
1875
|
+
authenticated: z.ZodBoolean;
|
|
1876
|
+
parentOrigin: z.ZodString;
|
|
1877
|
+
storageShared: z.ZodOptional<z.ZodBoolean>;
|
|
1878
|
+
}, z.core.$strip>;
|
|
1879
|
+
export declare const InitErrorMessageSchema: z.ZodObject<{
|
|
1880
|
+
type: z.ZodLiteral<"initError">;
|
|
1881
|
+
error: z.ZodString;
|
|
1882
|
+
}, z.core.$strip>;
|
|
1883
|
+
export declare const AuthStatusResponseMessageSchema: z.ZodObject<{
|
|
1884
|
+
type: z.ZodLiteral<"authStatusResponse">;
|
|
1885
|
+
requestId: z.ZodString;
|
|
1886
|
+
authenticated: z.ZodBoolean;
|
|
1887
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
1888
|
+
beeApiUrl: z.ZodOptional<z.ZodString>;
|
|
1889
|
+
}, z.core.$strip>;
|
|
1890
|
+
export declare const DisconnectResponseMessageSchema: z.ZodObject<{
|
|
1891
|
+
type: z.ZodLiteral<"disconnectResponse">;
|
|
1892
|
+
requestId: z.ZodString;
|
|
1893
|
+
success: z.ZodBoolean;
|
|
1894
|
+
}, z.core.$strip>;
|
|
1895
|
+
export declare const AuthSuccessMessageSchema: z.ZodObject<{
|
|
1896
|
+
type: z.ZodLiteral<"authSuccess">;
|
|
1897
|
+
origin: z.ZodString;
|
|
1898
|
+
}, z.core.$strip>;
|
|
1899
|
+
export declare const UploadDataResponseMessageSchema: z.ZodObject<{
|
|
1900
|
+
type: z.ZodLiteral<"uploadDataResponse">;
|
|
1901
|
+
requestId: z.ZodString;
|
|
1902
|
+
reference: z.ZodString;
|
|
1903
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
1904
|
+
}, z.core.$strip>;
|
|
1905
|
+
export declare const DownloadDataResponseMessageSchema: z.ZodObject<{
|
|
1906
|
+
type: z.ZodLiteral<"downloadDataResponse">;
|
|
1907
|
+
requestId: z.ZodString;
|
|
1908
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1909
|
+
}, z.core.$strip>;
|
|
1910
|
+
export declare const DeriveAppSecretResponseMessageSchema: z.ZodObject<{
|
|
1911
|
+
type: z.ZodLiteral<"deriveAppSecretResponse">;
|
|
1912
|
+
requestId: z.ZodString;
|
|
1913
|
+
secret: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1914
|
+
}, z.core.$strip>;
|
|
1915
|
+
export declare const GetChatKeyResponseMessageSchema: z.ZodObject<{
|
|
1916
|
+
type: z.ZodLiteral<"getChatKeyResponse">;
|
|
1917
|
+
requestId: z.ZodString;
|
|
1918
|
+
chatKey: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1919
|
+
}, z.core.$strip>;
|
|
1920
|
+
export declare const StampChunkResponseMessageSchema: z.ZodObject<{
|
|
1921
|
+
type: z.ZodLiteral<"stampChunkResponse">;
|
|
1922
|
+
requestId: z.ZodString;
|
|
1923
|
+
address: z.ZodString;
|
|
1924
|
+
stamp: z.ZodString;
|
|
1925
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
1927
|
+
}, z.core.$strip>;
|
|
1928
|
+
export declare const UploadFileResponseMessageSchema: z.ZodObject<{
|
|
1929
|
+
type: z.ZodLiteral<"uploadFileResponse">;
|
|
1930
|
+
requestId: z.ZodString;
|
|
1931
|
+
reference: z.ZodString;
|
|
1932
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
1933
|
+
}, z.core.$strip>;
|
|
1934
|
+
export declare const DownloadFileResponseMessageSchema: z.ZodObject<{
|
|
1935
|
+
type: z.ZodLiteral<"downloadFileResponse">;
|
|
1936
|
+
requestId: z.ZodString;
|
|
1937
|
+
name: z.ZodString;
|
|
1938
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1939
|
+
}, z.core.$strip>;
|
|
1940
|
+
export declare const UploadFilesResponseMessageSchema: z.ZodObject<{
|
|
1941
|
+
type: z.ZodLiteral<"uploadFilesResponse">;
|
|
1942
|
+
requestId: z.ZodString;
|
|
1943
|
+
reference: z.ZodString;
|
|
1944
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
1945
|
+
}, z.core.$strip>;
|
|
1946
|
+
export declare const ListFilesResponseMessageSchema: z.ZodObject<{
|
|
1947
|
+
type: z.ZodLiteral<"listFilesResponse">;
|
|
1948
|
+
requestId: z.ZodString;
|
|
1949
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1950
|
+
path: z.ZodString;
|
|
1951
|
+
reference: z.ZodString;
|
|
1952
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
1953
|
+
}, z.core.$strip>>;
|
|
1954
|
+
}, z.core.$strip>;
|
|
1955
|
+
export declare const UploadChunkResponseMessageSchema: z.ZodObject<{
|
|
1956
|
+
type: z.ZodLiteral<"uploadChunkResponse">;
|
|
1957
|
+
requestId: z.ZodString;
|
|
1958
|
+
reference: z.ZodString;
|
|
1959
|
+
}, z.core.$strip>;
|
|
1960
|
+
export declare const DownloadChunkResponseMessageSchema: z.ZodObject<{
|
|
1961
|
+
type: z.ZodLiteral<"downloadChunkResponse">;
|
|
1962
|
+
requestId: z.ZodString;
|
|
1963
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1964
|
+
}, z.core.$strip>;
|
|
1965
|
+
export declare const UploadProgressMessageSchema: z.ZodObject<{
|
|
1966
|
+
type: z.ZodLiteral<"uploadProgress">;
|
|
1967
|
+
requestId: z.ZodString;
|
|
1968
|
+
total: z.ZodNumber;
|
|
1969
|
+
processed: z.ZodNumber;
|
|
1970
|
+
}, z.core.$strip>;
|
|
1971
|
+
/**
|
|
1972
|
+
* Why a request failed, as a dApp can branch on it (#761). `error.message`
|
|
1973
|
+
* carries the text as before; the code is the stable part.
|
|
1974
|
+
*
|
|
1975
|
+
* - `not-authenticated` — no session for this origin
|
|
1976
|
+
* - `upload-unavailable` — the session refuses to stamp; `reason` says why,
|
|
1977
|
+
* in the same vocabulary as `ConnectionInfo.uploadUnavailableReason`
|
|
1978
|
+
* - `partition-contended` — every partition of the batch is held by other
|
|
1979
|
+
* devices and none yielded in time
|
|
1980
|
+
* - `lease-lost` — this device's partition was reclaimed mid-write
|
|
1981
|
+
* - `bee-rejected` — Bee or the gateway answered with a non-2xx status:
|
|
1982
|
+
* `status`, `beeMessage` and `url` say which
|
|
1983
|
+
* - `network` — the request never got a response (a CORS preflight refusal
|
|
1984
|
+
* shows as this)
|
|
1985
|
+
* - `timeout` — a deadline: the proxy's, or the client's round trip
|
|
1986
|
+
* - `invalid-request` — the message or an argument failed validation
|
|
1987
|
+
* - `invalid-state` — the client cannot take the call in its current state:
|
|
1988
|
+
* `initialize()` has not resolved, was already called, or `destroy()` ran;
|
|
1989
|
+
* a call (or an `initialize()`) still pending when `destroy()` runs rejects
|
|
1990
|
+
* with it too
|
|
1991
|
+
* - `init-failed` — the proxy iframe did not come up: it failed to load, the
|
|
1992
|
+
* proxy refused the origin, or it did not answer within
|
|
1993
|
+
* `initializationTimeout`
|
|
1994
|
+
* - `popup-blocked` — the browser blocked the authentication popup `connect()`
|
|
1995
|
+
* opens (not called from a user gesture, or a blocker)
|
|
1996
|
+
* - `internal` — anything else, message preserved
|
|
1997
|
+
*/
|
|
1998
|
+
export declare const SwarmIdErrorCodeSchema: z.ZodEnum<{
|
|
1999
|
+
timeout: "timeout";
|
|
2000
|
+
"not-authenticated": "not-authenticated";
|
|
2001
|
+
"upload-unavailable": "upload-unavailable";
|
|
2002
|
+
"partition-contended": "partition-contended";
|
|
2003
|
+
"lease-lost": "lease-lost";
|
|
2004
|
+
"bee-rejected": "bee-rejected";
|
|
2005
|
+
network: "network";
|
|
2006
|
+
"invalid-request": "invalid-request";
|
|
2007
|
+
"invalid-state": "invalid-state";
|
|
2008
|
+
"init-failed": "init-failed";
|
|
2009
|
+
"popup-blocked": "popup-blocked";
|
|
2010
|
+
internal: "internal";
|
|
2011
|
+
}>;
|
|
2012
|
+
export type SwarmIdErrorCode = z.infer<typeof SwarmIdErrorCodeSchema>;
|
|
2013
|
+
/** The fields of a `SwarmIdError` as they cross the bridge */
|
|
2014
|
+
export declare const WireErrorSchema: z.ZodObject<{
|
|
2015
|
+
error: z.ZodString;
|
|
2016
|
+
code: z.ZodCatch<z.ZodEnum<{
|
|
2017
|
+
timeout: "timeout";
|
|
2018
|
+
"not-authenticated": "not-authenticated";
|
|
2019
|
+
"upload-unavailable": "upload-unavailable";
|
|
2020
|
+
"partition-contended": "partition-contended";
|
|
2021
|
+
"lease-lost": "lease-lost";
|
|
2022
|
+
"bee-rejected": "bee-rejected";
|
|
2023
|
+
network: "network";
|
|
2024
|
+
"invalid-request": "invalid-request";
|
|
2025
|
+
"invalid-state": "invalid-state";
|
|
2026
|
+
"init-failed": "init-failed";
|
|
2027
|
+
"popup-blocked": "popup-blocked";
|
|
2028
|
+
internal: "internal";
|
|
2029
|
+
}>>;
|
|
2030
|
+
reason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
2031
|
+
subsidised: "subsidised";
|
|
2032
|
+
"no-stamp": "no-stamp";
|
|
2033
|
+
"stamper-failed": "stamper-failed";
|
|
2034
|
+
"stamp-expired": "stamp-expired";
|
|
2035
|
+
"stamp-not-usable": "stamp-not-usable";
|
|
2036
|
+
"app-stamp-count": "app-stamp-count";
|
|
2037
|
+
"app-stamp-rate": "app-stamp-rate";
|
|
2038
|
+
"app-bucket-share": "app-bucket-share";
|
|
2039
|
+
"app-slice-full": "app-slice-full";
|
|
2040
|
+
"session-unconfirmed": "session-unconfirmed";
|
|
2041
|
+
}>>>;
|
|
2042
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
2043
|
+
beeMessage: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
}, z.core.$strip>;
|
|
2046
|
+
export type WireError = z.infer<typeof WireErrorSchema>;
|
|
2047
|
+
export declare const ErrorMessageSchema: z.ZodObject<{
|
|
2048
|
+
error: z.ZodString;
|
|
2049
|
+
code: z.ZodCatch<z.ZodEnum<{
|
|
2050
|
+
timeout: "timeout";
|
|
2051
|
+
"not-authenticated": "not-authenticated";
|
|
2052
|
+
"upload-unavailable": "upload-unavailable";
|
|
2053
|
+
"partition-contended": "partition-contended";
|
|
2054
|
+
"lease-lost": "lease-lost";
|
|
2055
|
+
"bee-rejected": "bee-rejected";
|
|
2056
|
+
network: "network";
|
|
2057
|
+
"invalid-request": "invalid-request";
|
|
2058
|
+
"invalid-state": "invalid-state";
|
|
2059
|
+
"init-failed": "init-failed";
|
|
2060
|
+
"popup-blocked": "popup-blocked";
|
|
2061
|
+
internal: "internal";
|
|
2062
|
+
}>>;
|
|
2063
|
+
reason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
2064
|
+
subsidised: "subsidised";
|
|
2065
|
+
"no-stamp": "no-stamp";
|
|
2066
|
+
"stamper-failed": "stamper-failed";
|
|
2067
|
+
"stamp-expired": "stamp-expired";
|
|
2068
|
+
"stamp-not-usable": "stamp-not-usable";
|
|
2069
|
+
"app-stamp-count": "app-stamp-count";
|
|
2070
|
+
"app-stamp-rate": "app-stamp-rate";
|
|
2071
|
+
"app-bucket-share": "app-bucket-share";
|
|
2072
|
+
"app-slice-full": "app-slice-full";
|
|
2073
|
+
"session-unconfirmed": "session-unconfirmed";
|
|
2074
|
+
}>>>;
|
|
2075
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
2076
|
+
beeMessage: z.ZodOptional<z.ZodString>;
|
|
2077
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2078
|
+
type: z.ZodLiteral<"error">;
|
|
2079
|
+
requestId: z.ZodString;
|
|
2080
|
+
}, z.core.$strip>;
|
|
2081
|
+
export declare const ConnectionInfoChangedMessageSchema: z.ZodObject<{
|
|
2082
|
+
type: z.ZodLiteral<"connectionInfoChanged">;
|
|
2083
|
+
canUpload: z.ZodBoolean;
|
|
2084
|
+
storagePartitioned: z.ZodOptional<z.ZodBoolean>;
|
|
2085
|
+
uploadMode: z.ZodOptional<z.ZodEnum<{
|
|
2086
|
+
"user-stamp": "user-stamp";
|
|
2087
|
+
subsidised: "subsidised";
|
|
2088
|
+
unavailable: "unavailable";
|
|
2089
|
+
}>>;
|
|
2090
|
+
uploadUnavailableReason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
2091
|
+
subsidised: "subsidised";
|
|
2092
|
+
"no-stamp": "no-stamp";
|
|
2093
|
+
"stamper-failed": "stamper-failed";
|
|
2094
|
+
"stamp-expired": "stamp-expired";
|
|
2095
|
+
"stamp-not-usable": "stamp-not-usable";
|
|
2096
|
+
"app-stamp-count": "app-stamp-count";
|
|
2097
|
+
"app-stamp-rate": "app-stamp-rate";
|
|
2098
|
+
"app-bucket-share": "app-bucket-share";
|
|
2099
|
+
"app-slice-full": "app-slice-full";
|
|
2100
|
+
"session-unconfirmed": "session-unconfirmed";
|
|
2101
|
+
}>>>;
|
|
2102
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2103
|
+
id: z.ZodString;
|
|
2104
|
+
name: z.ZodString;
|
|
2105
|
+
address: z.ZodString;
|
|
2106
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
2107
|
+
sharingPublicKey: z.ZodOptional<z.ZodString>;
|
|
2108
|
+
postageSignerAddress: z.ZodOptional<z.ZodString>;
|
|
2109
|
+
avatar: z.ZodObject<{
|
|
2110
|
+
source: z.ZodEnum<{
|
|
2111
|
+
generated: "generated";
|
|
2112
|
+
}>;
|
|
2113
|
+
url: z.ZodString;
|
|
2114
|
+
}, z.core.$strip>;
|
|
2115
|
+
}, z.core.$strip>>;
|
|
2116
|
+
appKey: z.ZodOptional<z.ZodObject<{
|
|
2117
|
+
address: z.ZodString;
|
|
2118
|
+
publicKey: z.ZodString;
|
|
2119
|
+
}, z.core.$strip>>;
|
|
2120
|
+
partition: z.ZodOptional<z.ZodNumber>;
|
|
2121
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
2122
|
+
message: z.ZodString;
|
|
2123
|
+
signature: z.ZodString;
|
|
2124
|
+
}, z.core.$strip>>;
|
|
2125
|
+
}, z.core.$strip>;
|
|
2126
|
+
export declare const ConnectResponseMessageSchema: z.ZodObject<{
|
|
2127
|
+
type: z.ZodLiteral<"connectResponse">;
|
|
2128
|
+
requestId: z.ZodString;
|
|
2129
|
+
success: z.ZodBoolean;
|
|
2130
|
+
}, z.core.$strip>;
|
|
2131
|
+
export declare const IsConnectedResponseMessageSchema: z.ZodObject<{
|
|
2132
|
+
type: z.ZodLiteral<"isConnectedResponse">;
|
|
2133
|
+
requestId: z.ZodString;
|
|
2134
|
+
connected: z.ZodBoolean;
|
|
2135
|
+
}, z.core.$strip>;
|
|
2136
|
+
export declare const GetNodeInfoResponseMessageSchema: z.ZodObject<{
|
|
2137
|
+
type: z.ZodLiteral<"getNodeInfoResponse">;
|
|
2138
|
+
requestId: z.ZodString;
|
|
2139
|
+
beeMode: z.ZodString;
|
|
2140
|
+
chequebookEnabled: z.ZodBoolean;
|
|
2141
|
+
swapEnabled: z.ZodBoolean;
|
|
2142
|
+
}, z.core.$strip>;
|
|
2143
|
+
export declare const GsocMineResponseMessageSchema: z.ZodObject<{
|
|
2144
|
+
type: z.ZodLiteral<"gsocMineResponse">;
|
|
2145
|
+
requestId: z.ZodString;
|
|
2146
|
+
signer: z.ZodString;
|
|
2147
|
+
}, z.core.$strip>;
|
|
2148
|
+
export declare const GsocSendResponseMessageSchema: z.ZodObject<{
|
|
2149
|
+
type: z.ZodLiteral<"gsocSendResponse">;
|
|
2150
|
+
requestId: z.ZodString;
|
|
2151
|
+
reference: z.ZodString;
|
|
2152
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2153
|
+
}, z.core.$strip>;
|
|
2154
|
+
export declare const SocUploadResponseMessageSchema: z.ZodObject<{
|
|
2155
|
+
type: z.ZodLiteral<"socUploadResponse">;
|
|
2156
|
+
requestId: z.ZodString;
|
|
2157
|
+
reference: z.ZodString;
|
|
2158
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2159
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2160
|
+
owner: z.ZodString;
|
|
2161
|
+
}, z.core.$strip>;
|
|
2162
|
+
export declare const SocRawUploadResponseMessageSchema: z.ZodObject<{
|
|
2163
|
+
type: z.ZodLiteral<"socRawUploadResponse">;
|
|
2164
|
+
requestId: z.ZodString;
|
|
2165
|
+
reference: z.ZodString;
|
|
2166
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2167
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
owner: z.ZodString;
|
|
2169
|
+
}, z.core.$strip>;
|
|
2170
|
+
export declare const SocDownloadResponseMessageSchema: z.ZodObject<{
|
|
2171
|
+
type: z.ZodLiteral<"socDownloadResponse">;
|
|
2172
|
+
requestId: z.ZodString;
|
|
2173
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2174
|
+
identifier: z.ZodString;
|
|
2175
|
+
signature: z.ZodString;
|
|
2176
|
+
span: z.ZodNumber;
|
|
2177
|
+
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2178
|
+
address: z.ZodString;
|
|
2179
|
+
owner: z.ZodString;
|
|
2180
|
+
}, z.core.$strip>;
|
|
2181
|
+
export declare const SocRawDownloadResponseMessageSchema: z.ZodObject<{
|
|
2182
|
+
type: z.ZodLiteral<"socRawDownloadResponse">;
|
|
2183
|
+
requestId: z.ZodString;
|
|
2184
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2185
|
+
identifier: z.ZodString;
|
|
2186
|
+
signature: z.ZodString;
|
|
2187
|
+
span: z.ZodNumber;
|
|
2188
|
+
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2189
|
+
address: z.ZodString;
|
|
2190
|
+
owner: z.ZodString;
|
|
2191
|
+
}, z.core.$strip>;
|
|
2192
|
+
export declare const SocGetOwnerResponseMessageSchema: z.ZodObject<{
|
|
2193
|
+
type: z.ZodLiteral<"socGetOwnerResponse">;
|
|
2194
|
+
requestId: z.ZodString;
|
|
2195
|
+
owner: z.ZodString;
|
|
2196
|
+
}, z.core.$strip>;
|
|
2197
|
+
export declare const EpochFeedDownloadReferenceResponseMessageSchema: z.ZodObject<{
|
|
2198
|
+
type: z.ZodLiteral<"epochFeedDownloadReferenceResponse">;
|
|
2199
|
+
requestId: z.ZodString;
|
|
2200
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
2201
|
+
}, z.core.$strip>;
|
|
2202
|
+
export declare const EpochFeedUploadReferenceResponseMessageSchema: z.ZodObject<{
|
|
2203
|
+
type: z.ZodLiteral<"epochFeedUploadReferenceResponse">;
|
|
2204
|
+
requestId: z.ZodString;
|
|
2205
|
+
socAddress: z.ZodString;
|
|
2206
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2207
|
+
epoch: z.ZodObject<{
|
|
2208
|
+
start: z.ZodString;
|
|
2209
|
+
level: z.ZodNumber;
|
|
2210
|
+
}, z.core.$strip>;
|
|
2211
|
+
timestamp: z.ZodString;
|
|
2212
|
+
}, z.core.$strip>;
|
|
2213
|
+
export declare const FeedGetOwnerResponseMessageSchema: z.ZodObject<{
|
|
2214
|
+
type: z.ZodLiteral<"feedGetOwnerResponse">;
|
|
2215
|
+
requestId: z.ZodString;
|
|
2216
|
+
owner: z.ZodString;
|
|
2217
|
+
}, z.core.$strip>;
|
|
2218
|
+
export declare const SequentialFeedGetOwnerResponseMessageSchema: z.ZodObject<{
|
|
2219
|
+
type: z.ZodLiteral<"seqFeedGetOwnerResponse">;
|
|
2220
|
+
requestId: z.ZodString;
|
|
2221
|
+
owner: z.ZodString;
|
|
2222
|
+
}, z.core.$strip>;
|
|
2223
|
+
export declare const SequentialFeedDownloadPayloadResponseMessageSchema: z.ZodObject<{
|
|
2224
|
+
type: z.ZodLiteral<"seqFeedDownloadPayloadResponse">;
|
|
2225
|
+
requestId: z.ZodString;
|
|
2226
|
+
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2227
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2228
|
+
feedIndex: z.ZodString;
|
|
2229
|
+
feedIndexNext: z.ZodString;
|
|
2230
|
+
}, z.core.$strip>;
|
|
2231
|
+
export declare const SequentialFeedDownloadRawPayloadResponseMessageSchema: z.ZodObject<{
|
|
2232
|
+
type: z.ZodLiteral<"seqFeedDownloadRawPayloadResponse">;
|
|
2233
|
+
requestId: z.ZodString;
|
|
2234
|
+
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2235
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2236
|
+
feedIndex: z.ZodString;
|
|
2237
|
+
feedIndexNext: z.ZodString;
|
|
2238
|
+
}, z.core.$strip>;
|
|
2239
|
+
export declare const SequentialFeedDownloadReferenceResponseMessageSchema: z.ZodObject<{
|
|
2240
|
+
type: z.ZodLiteral<"seqFeedDownloadReferenceResponse">;
|
|
2241
|
+
requestId: z.ZodString;
|
|
2242
|
+
reference: z.ZodString;
|
|
2243
|
+
feedIndex: z.ZodString;
|
|
2244
|
+
feedIndexNext: z.ZodString;
|
|
2245
|
+
}, z.core.$strip>;
|
|
2246
|
+
export declare const SequentialFeedUploadPayloadResponseMessageSchema: z.ZodObject<{
|
|
2247
|
+
type: z.ZodLiteral<"seqFeedUploadPayloadResponse">;
|
|
2248
|
+
requestId: z.ZodString;
|
|
2249
|
+
reference: z.ZodString;
|
|
2250
|
+
feedIndex: z.ZodString;
|
|
2251
|
+
owner: z.ZodString;
|
|
2252
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2253
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2254
|
+
}, z.core.$strip>;
|
|
2255
|
+
export declare const SequentialFeedUploadRawPayloadResponseMessageSchema: z.ZodObject<{
|
|
2256
|
+
type: z.ZodLiteral<"seqFeedUploadRawPayloadResponse">;
|
|
2257
|
+
requestId: z.ZodString;
|
|
2258
|
+
reference: z.ZodString;
|
|
2259
|
+
feedIndex: z.ZodString;
|
|
2260
|
+
owner: z.ZodString;
|
|
2261
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2262
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2263
|
+
}, z.core.$strip>;
|
|
2264
|
+
export declare const SequentialFeedUploadReferenceResponseMessageSchema: z.ZodObject<{
|
|
2265
|
+
type: z.ZodLiteral<"seqFeedUploadReferenceResponse">;
|
|
2266
|
+
requestId: z.ZodString;
|
|
2267
|
+
reference: z.ZodString;
|
|
2268
|
+
feedIndex: z.ZodString;
|
|
2269
|
+
owner: z.ZodString;
|
|
2270
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2271
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2272
|
+
}, z.core.$strip>;
|
|
2273
|
+
export declare const CreateFeedManifestResponseMessageSchema: z.ZodObject<{
|
|
2274
|
+
type: z.ZodLiteral<"createFeedManifestResponse">;
|
|
2275
|
+
requestId: z.ZodString;
|
|
2276
|
+
reference: z.ZodString;
|
|
2277
|
+
}, z.core.$strip>;
|
|
2278
|
+
export declare const ActUploadDataResponseMessageSchema: z.ZodObject<{
|
|
2279
|
+
type: z.ZodLiteral<"actUploadDataResponse">;
|
|
2280
|
+
requestId: z.ZodString;
|
|
2281
|
+
encryptedReference: z.ZodString;
|
|
2282
|
+
historyReference: z.ZodString;
|
|
2283
|
+
granteeListReference: z.ZodString;
|
|
2284
|
+
publisherPubKey: z.ZodString;
|
|
2285
|
+
actReference: z.ZodString;
|
|
2286
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2287
|
+
}, z.core.$strip>;
|
|
2288
|
+
export declare const ActDownloadDataResponseMessageSchema: z.ZodObject<{
|
|
2289
|
+
type: z.ZodLiteral<"actDownloadDataResponse">;
|
|
2290
|
+
requestId: z.ZodString;
|
|
2291
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2292
|
+
}, z.core.$strip>;
|
|
2293
|
+
export declare const ActAddGranteesResponseMessageSchema: z.ZodObject<{
|
|
2294
|
+
type: z.ZodLiteral<"actAddGranteesResponse">;
|
|
2295
|
+
requestId: z.ZodString;
|
|
2296
|
+
historyReference: z.ZodString;
|
|
2297
|
+
granteeListReference: z.ZodString;
|
|
2298
|
+
actReference: z.ZodString;
|
|
2299
|
+
}, z.core.$strip>;
|
|
2300
|
+
export declare const ActRevokeGranteesResponseMessageSchema: z.ZodObject<{
|
|
2301
|
+
type: z.ZodLiteral<"actRevokeGranteesResponse">;
|
|
2302
|
+
requestId: z.ZodString;
|
|
2303
|
+
encryptedReference: z.ZodString;
|
|
2304
|
+
historyReference: z.ZodString;
|
|
2305
|
+
granteeListReference: z.ZodString;
|
|
2306
|
+
actReference: z.ZodString;
|
|
2307
|
+
}, z.core.$strip>;
|
|
2308
|
+
export declare const ActGetGranteesResponseMessageSchema: z.ZodObject<{
|
|
2309
|
+
type: z.ZodLiteral<"actGetGranteesResponse">;
|
|
2310
|
+
requestId: z.ZodString;
|
|
2311
|
+
grantees: z.ZodArray<z.ZodString>;
|
|
2312
|
+
}, z.core.$strip>;
|
|
2313
|
+
export declare const GetPostageBatchResponseMessageSchema: z.ZodObject<{
|
|
2314
|
+
type: z.ZodLiteral<"getPostageBatchResponse">;
|
|
2315
|
+
requestId: z.ZodString;
|
|
2316
|
+
postageBatch: z.ZodOptional<z.ZodObject<{
|
|
2317
|
+
batchID: z.ZodString;
|
|
2318
|
+
utilization: z.ZodNumber;
|
|
2319
|
+
usable: z.ZodBoolean;
|
|
2320
|
+
label: z.ZodString;
|
|
2321
|
+
depth: z.ZodNumber;
|
|
2322
|
+
amount: z.ZodString;
|
|
2323
|
+
bucketDepth: z.ZodNumber;
|
|
2324
|
+
blockNumber: z.ZodNumber;
|
|
2325
|
+
immutableFlag: z.ZodBoolean;
|
|
2326
|
+
exists: z.ZodBoolean;
|
|
2327
|
+
batchTTL: z.ZodOptional<z.ZodNumber>;
|
|
2328
|
+
}, z.core.$strip>>;
|
|
2329
|
+
}, z.core.$strip>;
|
|
2330
|
+
export declare const IframeToParentMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2331
|
+
type: z.ZodLiteral<"proxyReady">;
|
|
2332
|
+
authenticated: z.ZodBoolean;
|
|
2333
|
+
parentOrigin: z.ZodString;
|
|
2334
|
+
storageShared: z.ZodOptional<z.ZodBoolean>;
|
|
2335
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2336
|
+
type: z.ZodLiteral<"initError">;
|
|
2337
|
+
error: z.ZodString;
|
|
2338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2339
|
+
type: z.ZodLiteral<"authStatusResponse">;
|
|
2340
|
+
requestId: z.ZodString;
|
|
2341
|
+
authenticated: z.ZodBoolean;
|
|
2342
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
2343
|
+
beeApiUrl: z.ZodOptional<z.ZodString>;
|
|
2344
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2345
|
+
type: z.ZodLiteral<"disconnectResponse">;
|
|
2346
|
+
requestId: z.ZodString;
|
|
2347
|
+
success: z.ZodBoolean;
|
|
2348
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2349
|
+
type: z.ZodLiteral<"authSuccess">;
|
|
2350
|
+
origin: z.ZodString;
|
|
2351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2352
|
+
type: z.ZodLiteral<"uploadDataResponse">;
|
|
2353
|
+
requestId: z.ZodString;
|
|
2354
|
+
reference: z.ZodString;
|
|
2355
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2356
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2357
|
+
type: z.ZodLiteral<"downloadDataResponse">;
|
|
2358
|
+
requestId: z.ZodString;
|
|
2359
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2361
|
+
type: z.ZodLiteral<"deriveAppSecretResponse">;
|
|
2362
|
+
requestId: z.ZodString;
|
|
2363
|
+
secret: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2365
|
+
type: z.ZodLiteral<"getChatKeyResponse">;
|
|
2366
|
+
requestId: z.ZodString;
|
|
2367
|
+
chatKey: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2369
|
+
type: z.ZodLiteral<"stampChunkResponse">;
|
|
2370
|
+
requestId: z.ZodString;
|
|
2371
|
+
address: z.ZodString;
|
|
2372
|
+
stamp: z.ZodString;
|
|
2373
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
2374
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
2375
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2376
|
+
type: z.ZodLiteral<"uploadFileResponse">;
|
|
2377
|
+
requestId: z.ZodString;
|
|
2378
|
+
reference: z.ZodString;
|
|
2379
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2381
|
+
type: z.ZodLiteral<"downloadFileResponse">;
|
|
2382
|
+
requestId: z.ZodString;
|
|
2383
|
+
name: z.ZodString;
|
|
2384
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2386
|
+
type: z.ZodLiteral<"uploadFilesResponse">;
|
|
2387
|
+
requestId: z.ZodString;
|
|
2388
|
+
reference: z.ZodString;
|
|
2389
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2391
|
+
type: z.ZodLiteral<"listFilesResponse">;
|
|
2392
|
+
requestId: z.ZodString;
|
|
2393
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
2394
|
+
path: z.ZodString;
|
|
2395
|
+
reference: z.ZodString;
|
|
2396
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
2397
|
+
}, z.core.$strip>>;
|
|
2398
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2399
|
+
type: z.ZodLiteral<"uploadChunkResponse">;
|
|
2400
|
+
requestId: z.ZodString;
|
|
2401
|
+
reference: z.ZodString;
|
|
2402
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2403
|
+
type: z.ZodLiteral<"downloadChunkResponse">;
|
|
2404
|
+
requestId: z.ZodString;
|
|
2405
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2407
|
+
type: z.ZodLiteral<"uploadProgress">;
|
|
2408
|
+
requestId: z.ZodString;
|
|
2409
|
+
total: z.ZodNumber;
|
|
2410
|
+
processed: z.ZodNumber;
|
|
2411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2412
|
+
error: z.ZodString;
|
|
2413
|
+
code: z.ZodCatch<z.ZodEnum<{
|
|
2414
|
+
timeout: "timeout";
|
|
2415
|
+
"not-authenticated": "not-authenticated";
|
|
2416
|
+
"upload-unavailable": "upload-unavailable";
|
|
2417
|
+
"partition-contended": "partition-contended";
|
|
2418
|
+
"lease-lost": "lease-lost";
|
|
2419
|
+
"bee-rejected": "bee-rejected";
|
|
2420
|
+
network: "network";
|
|
2421
|
+
"invalid-request": "invalid-request";
|
|
2422
|
+
"invalid-state": "invalid-state";
|
|
2423
|
+
"init-failed": "init-failed";
|
|
2424
|
+
"popup-blocked": "popup-blocked";
|
|
2425
|
+
internal: "internal";
|
|
2426
|
+
}>>;
|
|
2427
|
+
reason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
2428
|
+
subsidised: "subsidised";
|
|
2429
|
+
"no-stamp": "no-stamp";
|
|
2430
|
+
"stamper-failed": "stamper-failed";
|
|
2431
|
+
"stamp-expired": "stamp-expired";
|
|
2432
|
+
"stamp-not-usable": "stamp-not-usable";
|
|
2433
|
+
"app-stamp-count": "app-stamp-count";
|
|
2434
|
+
"app-stamp-rate": "app-stamp-rate";
|
|
2435
|
+
"app-bucket-share": "app-bucket-share";
|
|
2436
|
+
"app-slice-full": "app-slice-full";
|
|
2437
|
+
"session-unconfirmed": "session-unconfirmed";
|
|
2438
|
+
}>>>;
|
|
2439
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
2440
|
+
beeMessage: z.ZodOptional<z.ZodString>;
|
|
2441
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2442
|
+
type: z.ZodLiteral<"error">;
|
|
2443
|
+
requestId: z.ZodString;
|
|
2444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2445
|
+
type: z.ZodLiteral<"connectionInfoChanged">;
|
|
2446
|
+
canUpload: z.ZodBoolean;
|
|
2447
|
+
storagePartitioned: z.ZodOptional<z.ZodBoolean>;
|
|
2448
|
+
uploadMode: z.ZodOptional<z.ZodEnum<{
|
|
2449
|
+
"user-stamp": "user-stamp";
|
|
2450
|
+
subsidised: "subsidised";
|
|
2451
|
+
unavailable: "unavailable";
|
|
2452
|
+
}>>;
|
|
2453
|
+
uploadUnavailableReason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
2454
|
+
subsidised: "subsidised";
|
|
2455
|
+
"no-stamp": "no-stamp";
|
|
2456
|
+
"stamper-failed": "stamper-failed";
|
|
2457
|
+
"stamp-expired": "stamp-expired";
|
|
2458
|
+
"stamp-not-usable": "stamp-not-usable";
|
|
2459
|
+
"app-stamp-count": "app-stamp-count";
|
|
2460
|
+
"app-stamp-rate": "app-stamp-rate";
|
|
2461
|
+
"app-bucket-share": "app-bucket-share";
|
|
2462
|
+
"app-slice-full": "app-slice-full";
|
|
2463
|
+
"session-unconfirmed": "session-unconfirmed";
|
|
2464
|
+
}>>>;
|
|
2465
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2466
|
+
id: z.ZodString;
|
|
2467
|
+
name: z.ZodString;
|
|
2468
|
+
address: z.ZodString;
|
|
2469
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
2470
|
+
sharingPublicKey: z.ZodOptional<z.ZodString>;
|
|
2471
|
+
postageSignerAddress: z.ZodOptional<z.ZodString>;
|
|
2472
|
+
avatar: z.ZodObject<{
|
|
2473
|
+
source: z.ZodEnum<{
|
|
2474
|
+
generated: "generated";
|
|
2475
|
+
}>;
|
|
2476
|
+
url: z.ZodString;
|
|
2477
|
+
}, z.core.$strip>;
|
|
2478
|
+
}, z.core.$strip>>;
|
|
2479
|
+
appKey: z.ZodOptional<z.ZodObject<{
|
|
2480
|
+
address: z.ZodString;
|
|
2481
|
+
publicKey: z.ZodString;
|
|
2482
|
+
}, z.core.$strip>>;
|
|
2483
|
+
partition: z.ZodOptional<z.ZodNumber>;
|
|
2484
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
2485
|
+
message: z.ZodString;
|
|
2486
|
+
signature: z.ZodString;
|
|
2487
|
+
}, z.core.$strip>>;
|
|
2488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2489
|
+
type: z.ZodLiteral<"connectResponse">;
|
|
2490
|
+
requestId: z.ZodString;
|
|
2491
|
+
success: z.ZodBoolean;
|
|
2492
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2493
|
+
type: z.ZodLiteral<"isConnectedResponse">;
|
|
2494
|
+
requestId: z.ZodString;
|
|
2495
|
+
connected: z.ZodBoolean;
|
|
2496
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2497
|
+
type: z.ZodLiteral<"getNodeInfoResponse">;
|
|
2498
|
+
requestId: z.ZodString;
|
|
2499
|
+
beeMode: z.ZodString;
|
|
2500
|
+
chequebookEnabled: z.ZodBoolean;
|
|
2501
|
+
swapEnabled: z.ZodBoolean;
|
|
2502
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2503
|
+
type: z.ZodLiteral<"gsocMineResponse">;
|
|
2504
|
+
requestId: z.ZodString;
|
|
2505
|
+
signer: z.ZodString;
|
|
2506
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2507
|
+
type: z.ZodLiteral<"gsocSendResponse">;
|
|
2508
|
+
requestId: z.ZodString;
|
|
2509
|
+
reference: z.ZodString;
|
|
2510
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2512
|
+
type: z.ZodLiteral<"socUploadResponse">;
|
|
2513
|
+
requestId: z.ZodString;
|
|
2514
|
+
reference: z.ZodString;
|
|
2515
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2516
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2517
|
+
owner: z.ZodString;
|
|
2518
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2519
|
+
type: z.ZodLiteral<"socRawUploadResponse">;
|
|
2520
|
+
requestId: z.ZodString;
|
|
2521
|
+
reference: z.ZodString;
|
|
2522
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2523
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2524
|
+
owner: z.ZodString;
|
|
2525
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2526
|
+
type: z.ZodLiteral<"socDownloadResponse">;
|
|
2527
|
+
requestId: z.ZodString;
|
|
2528
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2529
|
+
identifier: z.ZodString;
|
|
2530
|
+
signature: z.ZodString;
|
|
2531
|
+
span: z.ZodNumber;
|
|
2532
|
+
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2533
|
+
address: z.ZodString;
|
|
2534
|
+
owner: z.ZodString;
|
|
2535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2536
|
+
type: z.ZodLiteral<"socRawDownloadResponse">;
|
|
2537
|
+
requestId: z.ZodString;
|
|
2538
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2539
|
+
identifier: z.ZodString;
|
|
2540
|
+
signature: z.ZodString;
|
|
2541
|
+
span: z.ZodNumber;
|
|
2542
|
+
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2543
|
+
address: z.ZodString;
|
|
2544
|
+
owner: z.ZodString;
|
|
2545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2546
|
+
type: z.ZodLiteral<"socGetOwnerResponse">;
|
|
2547
|
+
requestId: z.ZodString;
|
|
2548
|
+
owner: z.ZodString;
|
|
2549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2550
|
+
type: z.ZodLiteral<"epochFeedDownloadReferenceResponse">;
|
|
2551
|
+
requestId: z.ZodString;
|
|
2552
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
2553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2554
|
+
type: z.ZodLiteral<"epochFeedUploadReferenceResponse">;
|
|
2555
|
+
requestId: z.ZodString;
|
|
2556
|
+
socAddress: z.ZodString;
|
|
2557
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2558
|
+
epoch: z.ZodObject<{
|
|
2559
|
+
start: z.ZodString;
|
|
2560
|
+
level: z.ZodNumber;
|
|
2561
|
+
}, z.core.$strip>;
|
|
2562
|
+
timestamp: z.ZodString;
|
|
2563
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2564
|
+
type: z.ZodLiteral<"feedGetOwnerResponse">;
|
|
2565
|
+
requestId: z.ZodString;
|
|
2566
|
+
owner: z.ZodString;
|
|
2567
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2568
|
+
type: z.ZodLiteral<"seqFeedGetOwnerResponse">;
|
|
2569
|
+
requestId: z.ZodString;
|
|
2570
|
+
owner: z.ZodString;
|
|
2571
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2572
|
+
type: z.ZodLiteral<"seqFeedDownloadPayloadResponse">;
|
|
2573
|
+
requestId: z.ZodString;
|
|
2574
|
+
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2575
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2576
|
+
feedIndex: z.ZodString;
|
|
2577
|
+
feedIndexNext: z.ZodString;
|
|
2578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2579
|
+
type: z.ZodLiteral<"seqFeedDownloadRawPayloadResponse">;
|
|
2580
|
+
requestId: z.ZodString;
|
|
2581
|
+
payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2582
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2583
|
+
feedIndex: z.ZodString;
|
|
2584
|
+
feedIndexNext: z.ZodString;
|
|
2585
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2586
|
+
type: z.ZodLiteral<"seqFeedDownloadReferenceResponse">;
|
|
2587
|
+
requestId: z.ZodString;
|
|
2588
|
+
reference: z.ZodString;
|
|
2589
|
+
feedIndex: z.ZodString;
|
|
2590
|
+
feedIndexNext: z.ZodString;
|
|
2591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2592
|
+
type: z.ZodLiteral<"seqFeedUploadPayloadResponse">;
|
|
2593
|
+
requestId: z.ZodString;
|
|
2594
|
+
reference: z.ZodString;
|
|
2595
|
+
feedIndex: z.ZodString;
|
|
2596
|
+
owner: z.ZodString;
|
|
2597
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2598
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2599
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2600
|
+
type: z.ZodLiteral<"seqFeedUploadRawPayloadResponse">;
|
|
2601
|
+
requestId: z.ZodString;
|
|
2602
|
+
reference: z.ZodString;
|
|
2603
|
+
feedIndex: z.ZodString;
|
|
2604
|
+
owner: z.ZodString;
|
|
2605
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2606
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2607
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2608
|
+
type: z.ZodLiteral<"seqFeedUploadReferenceResponse">;
|
|
2609
|
+
requestId: z.ZodString;
|
|
2610
|
+
reference: z.ZodString;
|
|
2611
|
+
feedIndex: z.ZodString;
|
|
2612
|
+
owner: z.ZodString;
|
|
2613
|
+
encryptionKey: z.ZodOptional<z.ZodString>;
|
|
2614
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2616
|
+
type: z.ZodLiteral<"createFeedManifestResponse">;
|
|
2617
|
+
requestId: z.ZodString;
|
|
2618
|
+
reference: z.ZodString;
|
|
2619
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2620
|
+
type: z.ZodLiteral<"actUploadDataResponse">;
|
|
2621
|
+
requestId: z.ZodString;
|
|
2622
|
+
encryptedReference: z.ZodString;
|
|
2623
|
+
historyReference: z.ZodString;
|
|
2624
|
+
granteeListReference: z.ZodString;
|
|
2625
|
+
publisherPubKey: z.ZodString;
|
|
2626
|
+
actReference: z.ZodString;
|
|
2627
|
+
tagUid: z.ZodOptional<z.ZodNumber>;
|
|
2628
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2629
|
+
type: z.ZodLiteral<"actDownloadDataResponse">;
|
|
2630
|
+
requestId: z.ZodString;
|
|
2631
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
2632
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2633
|
+
type: z.ZodLiteral<"actAddGranteesResponse">;
|
|
2634
|
+
requestId: z.ZodString;
|
|
2635
|
+
historyReference: z.ZodString;
|
|
2636
|
+
granteeListReference: z.ZodString;
|
|
2637
|
+
actReference: z.ZodString;
|
|
2638
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2639
|
+
type: z.ZodLiteral<"actRevokeGranteesResponse">;
|
|
2640
|
+
requestId: z.ZodString;
|
|
2641
|
+
encryptedReference: z.ZodString;
|
|
2642
|
+
historyReference: z.ZodString;
|
|
2643
|
+
granteeListReference: z.ZodString;
|
|
2644
|
+
actReference: z.ZodString;
|
|
2645
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2646
|
+
type: z.ZodLiteral<"actGetGranteesResponse">;
|
|
2647
|
+
requestId: z.ZodString;
|
|
2648
|
+
grantees: z.ZodArray<z.ZodString>;
|
|
2649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2650
|
+
type: z.ZodLiteral<"getPostageBatchResponse">;
|
|
2651
|
+
requestId: z.ZodString;
|
|
2652
|
+
postageBatch: z.ZodOptional<z.ZodObject<{
|
|
2653
|
+
batchID: z.ZodString;
|
|
2654
|
+
utilization: z.ZodNumber;
|
|
2655
|
+
usable: z.ZodBoolean;
|
|
2656
|
+
label: z.ZodString;
|
|
2657
|
+
depth: z.ZodNumber;
|
|
2658
|
+
amount: z.ZodString;
|
|
2659
|
+
bucketDepth: z.ZodNumber;
|
|
2660
|
+
blockNumber: z.ZodNumber;
|
|
2661
|
+
immutableFlag: z.ZodBoolean;
|
|
2662
|
+
exists: z.ZodBoolean;
|
|
2663
|
+
batchTTL: z.ZodOptional<z.ZodNumber>;
|
|
2664
|
+
}, z.core.$strip>>;
|
|
2665
|
+
}, z.core.$strip>], "type">;
|
|
2666
|
+
export type ProxyReadyMessage = z.infer<typeof ProxyReadyMessageSchema>;
|
|
2667
|
+
export type InitErrorMessage = z.infer<typeof InitErrorMessageSchema>;
|
|
2668
|
+
export type AuthStatusResponseMessage = z.infer<typeof AuthStatusResponseMessageSchema>;
|
|
2669
|
+
export type DisconnectResponseMessage = z.infer<typeof DisconnectResponseMessageSchema>;
|
|
2670
|
+
export type AuthSuccessMessage = z.infer<typeof AuthSuccessMessageSchema>;
|
|
2671
|
+
export type UploadDataResponseMessage = z.infer<typeof UploadDataResponseMessageSchema>;
|
|
2672
|
+
export type DownloadDataResponseMessage = z.infer<typeof DownloadDataResponseMessageSchema>;
|
|
2673
|
+
export type GetChatKeyResponseMessage = z.infer<typeof GetChatKeyResponseMessageSchema>;
|
|
2674
|
+
export type DeriveAppSecretResponseMessage = z.infer<typeof DeriveAppSecretResponseMessageSchema>;
|
|
2675
|
+
export type StampChunkResponseMessage = z.infer<typeof StampChunkResponseMessageSchema>;
|
|
2676
|
+
export type UploadFileResponseMessage = z.infer<typeof UploadFileResponseMessageSchema>;
|
|
2677
|
+
export type DownloadFileResponseMessage = z.infer<typeof DownloadFileResponseMessageSchema>;
|
|
2678
|
+
export type UploadFilesResponseMessage = z.infer<typeof UploadFilesResponseMessageSchema>;
|
|
2679
|
+
export type ListFilesResponseMessage = z.infer<typeof ListFilesResponseMessageSchema>;
|
|
2680
|
+
export type UploadChunkResponseMessage = z.infer<typeof UploadChunkResponseMessageSchema>;
|
|
2681
|
+
export type DownloadChunkResponseMessage = z.infer<typeof DownloadChunkResponseMessageSchema>;
|
|
2682
|
+
export type UploadProgressMessage = z.infer<typeof UploadProgressMessageSchema>;
|
|
2683
|
+
export type ErrorMessage = z.infer<typeof ErrorMessageSchema>;
|
|
2684
|
+
export type ConnectionInfoChangedMessage = z.infer<typeof ConnectionInfoChangedMessageSchema>;
|
|
2685
|
+
export type ConnectResponseMessage = z.infer<typeof ConnectResponseMessageSchema>;
|
|
2686
|
+
export type IsConnectedResponseMessage = z.infer<typeof IsConnectedResponseMessageSchema>;
|
|
2687
|
+
export type GetNodeInfoResponseMessage = z.infer<typeof GetNodeInfoResponseMessageSchema>;
|
|
2688
|
+
export type GsocMineResponseMessage = z.infer<typeof GsocMineResponseMessageSchema>;
|
|
2689
|
+
export type GsocSendResponseMessage = z.infer<typeof GsocSendResponseMessageSchema>;
|
|
2690
|
+
export type SocUploadResponseMessage = z.infer<typeof SocUploadResponseMessageSchema>;
|
|
2691
|
+
export type SocRawUploadResponseMessage = z.infer<typeof SocRawUploadResponseMessageSchema>;
|
|
2692
|
+
export type SocDownloadResponseMessage = z.infer<typeof SocDownloadResponseMessageSchema>;
|
|
2693
|
+
export type SocRawDownloadResponseMessage = z.infer<typeof SocRawDownloadResponseMessageSchema>;
|
|
2694
|
+
export type SocGetOwnerResponseMessage = z.infer<typeof SocGetOwnerResponseMessageSchema>;
|
|
2695
|
+
export type EpochFeedDownloadReferenceResponseMessage = z.infer<typeof EpochFeedDownloadReferenceResponseMessageSchema>;
|
|
2696
|
+
export type EpochFeedUploadReferenceResponseMessage = z.infer<typeof EpochFeedUploadReferenceResponseMessageSchema>;
|
|
2697
|
+
export type FeedGetOwnerResponseMessage = z.infer<typeof FeedGetOwnerResponseMessageSchema>;
|
|
2698
|
+
export type SequentialFeedGetOwnerResponseMessage = z.infer<typeof SequentialFeedGetOwnerResponseMessageSchema>;
|
|
2699
|
+
export type SequentialFeedDownloadPayloadResponseMessage = z.infer<typeof SequentialFeedDownloadPayloadResponseMessageSchema>;
|
|
2700
|
+
export type SequentialFeedDownloadRawPayloadResponseMessage = z.infer<typeof SequentialFeedDownloadRawPayloadResponseMessageSchema>;
|
|
2701
|
+
export type SequentialFeedDownloadReferenceResponseMessage = z.infer<typeof SequentialFeedDownloadReferenceResponseMessageSchema>;
|
|
2702
|
+
export type SequentialFeedUploadPayloadResponseMessage = z.infer<typeof SequentialFeedUploadPayloadResponseMessageSchema>;
|
|
2703
|
+
export type SequentialFeedUploadRawPayloadResponseMessage = z.infer<typeof SequentialFeedUploadRawPayloadResponseMessageSchema>;
|
|
2704
|
+
export type SequentialFeedUploadReferenceResponseMessage = z.infer<typeof SequentialFeedUploadReferenceResponseMessageSchema>;
|
|
2705
|
+
export type CreateFeedManifestResponseMessage = z.infer<typeof CreateFeedManifestResponseMessageSchema>;
|
|
2706
|
+
export type ActUploadDataResponseMessage = z.infer<typeof ActUploadDataResponseMessageSchema>;
|
|
2707
|
+
export type ActDownloadDataResponseMessage = z.infer<typeof ActDownloadDataResponseMessageSchema>;
|
|
2708
|
+
export type ActAddGranteesResponseMessage = z.infer<typeof ActAddGranteesResponseMessageSchema>;
|
|
2709
|
+
export type ActRevokeGranteesResponseMessage = z.infer<typeof ActRevokeGranteesResponseMessageSchema>;
|
|
2710
|
+
export type ActGetGranteesResponseMessage = z.infer<typeof ActGetGranteesResponseMessageSchema>;
|
|
2711
|
+
export type GetPostageBatchResponseMessage = z.infer<typeof GetPostageBatchResponseMessageSchema>;
|
|
2712
|
+
export type IframeToParentMessage = z.infer<typeof IframeToParentMessageSchema>;
|
|
2713
|
+
export declare const AuthDataSchema: z.ZodObject<{
|
|
2714
|
+
secret: z.ZodString;
|
|
2715
|
+
networkSettings: z.ZodOptional<z.ZodObject<{
|
|
2716
|
+
beeNodeUrl: z.ZodString;
|
|
2717
|
+
gnosisRpcUrl: z.ZodString;
|
|
2718
|
+
}, z.core.$strip>>;
|
|
2719
|
+
account: z.ZodObject<{
|
|
2720
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").EthAddress, string>>;
|
|
2721
|
+
name: z.ZodString;
|
|
2722
|
+
createdAt: z.ZodNumber;
|
|
2723
|
+
derivationKey: z.ZodString;
|
|
2724
|
+
publicKey: z.ZodString;
|
|
2725
|
+
defaultPostageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
|
|
2726
|
+
devices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2727
|
+
deviceId: z.ZodString;
|
|
2728
|
+
createdAt: z.ZodNumber;
|
|
2729
|
+
lastSignedInAt: z.ZodNumber;
|
|
2730
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2731
|
+
nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2732
|
+
removedAt: z.ZodOptional<z.ZodNumber>;
|
|
2733
|
+
}, z.core.$strip>>>;
|
|
2734
|
+
connectedApps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2735
|
+
appUrl: z.ZodString;
|
|
2736
|
+
appName: z.ZodString;
|
|
2737
|
+
lastConnectedAt: z.ZodNumber;
|
|
2738
|
+
appIcon: z.ZodOptional<z.ZodString>;
|
|
2739
|
+
appDescription: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
connectedUntil: z.ZodOptional<z.ZodNumber>;
|
|
2741
|
+
appSecret: z.ZodOptional<z.ZodString>;
|
|
2742
|
+
postageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
|
|
2743
|
+
postageStampBatchIDAt: z.ZodOptional<z.ZodNumber>;
|
|
2744
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
2745
|
+
disconnectedAt: z.ZodOptional<z.ZodNumber>;
|
|
2746
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
2747
|
+
message: z.ZodString;
|
|
2748
|
+
signature: z.ZodString;
|
|
2749
|
+
}, z.core.$strip>>;
|
|
2750
|
+
}, z.core.$strip>>>;
|
|
2751
|
+
postageStamps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2752
|
+
batchID: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>;
|
|
2753
|
+
signerKey: z.ZodPipe<z.ZodString, z.ZodTransform<BeePrivateKey, string>>;
|
|
2754
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2756
|
+
utilization: z.ZodNumber;
|
|
2757
|
+
usable: z.ZodBoolean;
|
|
2758
|
+
depth: z.ZodNumber;
|
|
2759
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
2760
|
+
bucketDepth: z.ZodNumber;
|
|
2761
|
+
blockNumber: z.ZodNumber;
|
|
2762
|
+
immutableFlag: z.ZodBoolean;
|
|
2763
|
+
exists: z.ZodBoolean;
|
|
2764
|
+
batchTTL: z.ZodOptional<z.ZodNumber>;
|
|
2765
|
+
createdAt: z.ZodNumber;
|
|
2766
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2767
|
+
deletedAt: z.ZodOptional<z.ZodNumber>;
|
|
2768
|
+
}, z.core.$strip>>>;
|
|
2769
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
2770
|
+
appSessionDuration: z.ZodOptional<z.ZodNumber>;
|
|
2771
|
+
}, z.core.$strip>>;
|
|
2772
|
+
accountNameAt: z.ZodOptional<z.ZodNumber>;
|
|
2773
|
+
defaultStampAt: z.ZodOptional<z.ZodNumber>;
|
|
2774
|
+
settingsAt: z.ZodOptional<z.ZodNumber>;
|
|
2775
|
+
lastModified: z.ZodOptional<z.ZodNumber>;
|
|
2776
|
+
partitionCount: z.ZodOptional<z.ZodNumber>;
|
|
2777
|
+
}, z.core.$strip>;
|
|
2778
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
2779
|
+
message: z.ZodString;
|
|
2780
|
+
signature: z.ZodString;
|
|
2781
|
+
}, z.core.$strip>>;
|
|
2782
|
+
}, z.core.$strip>;
|
|
2783
|
+
export type AuthData = z.infer<typeof AuthDataSchema>;
|
|
2784
|
+
/**
|
|
2785
|
+
* A partitioned session at rest (#635), under
|
|
2786
|
+
* {@link partitionSessionStorageKey}.
|
|
2787
|
+
*
|
|
2788
|
+
* It holds the payload the connect popup handed over — plus the deadline the
|
|
2789
|
+
* session was given. In full, what is now at rest for the life of the session:
|
|
2790
|
+
*
|
|
2791
|
+
* - the **app secret**, this origin's own credential;
|
|
2792
|
+
* - the **narrowed stamp projection** — #578 limits it to the stamps this app
|
|
2793
|
+
* can spend, signer keys included;
|
|
2794
|
+
* - the account's **`derivationKey`**, which `serializeSyncedAccount` carries.
|
|
2795
|
+
* This one is NOT app-narrowed: it derives the bus topic and envelope keys
|
|
2796
|
+
* and the Swarm encryption/backup keys, so it is the most sensitive field
|
|
2797
|
+
* here. `connect-handshake.ts` names the same trade-off for the in-memory
|
|
2798
|
+
* handover; persisting it widens the window, not the exposure.
|
|
2799
|
+
*
|
|
2800
|
+
* The popup hands all of it over on every load today; keeping it changes the
|
|
2801
|
+
* window from the life of the page to the life of the session, in a store only
|
|
2802
|
+
* this (SwarmID origin, dApp origin) pair can read, and sealed there.
|
|
2803
|
+
*
|
|
2804
|
+
* `connectedUntil` is the same clock the unpartitioned path enforces from
|
|
2805
|
+
* shared storage, so both modes end a session on the same rule. What the
|
|
2806
|
+
* deadline cannot see is a revoke made while the tab was closed; a restored
|
|
2807
|
+
* session verifies against the account's own Swarm state for that.
|
|
2808
|
+
*/
|
|
2809
|
+
export declare const PartitionSessionSchemaV1: z.ZodObject<{
|
|
2810
|
+
version: z.ZodLiteral<1>;
|
|
2811
|
+
parentOrigin: z.ZodString;
|
|
2812
|
+
connectedUntil: z.ZodNumber;
|
|
2813
|
+
data: z.ZodString;
|
|
2814
|
+
}, z.core.$strip>;
|
|
2815
|
+
export type StoredPartitionSession = z.infer<typeof PartitionSessionSchemaV1>;
|
|
2816
|
+
/** A stored session once opened, with its payload parsed. */
|
|
2817
|
+
export interface PartitionSession {
|
|
2818
|
+
parentOrigin: string;
|
|
2819
|
+
connectedUntil: number;
|
|
2820
|
+
data: AuthData;
|
|
2821
|
+
}
|
|
2822
|
+
export declare const SetSecretMessageSchema: z.ZodObject<{
|
|
2823
|
+
type: z.ZodLiteral<"setSecret">;
|
|
2824
|
+
appOrigin: z.ZodString;
|
|
2825
|
+
challenge: z.ZodString;
|
|
2826
|
+
data: z.ZodObject<{
|
|
2827
|
+
secret: z.ZodString;
|
|
2828
|
+
networkSettings: z.ZodOptional<z.ZodObject<{
|
|
2829
|
+
beeNodeUrl: z.ZodString;
|
|
2830
|
+
gnosisRpcUrl: z.ZodString;
|
|
2831
|
+
}, z.core.$strip>>;
|
|
2832
|
+
account: z.ZodObject<{
|
|
2833
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").EthAddress, string>>;
|
|
2834
|
+
name: z.ZodString;
|
|
2835
|
+
createdAt: z.ZodNumber;
|
|
2836
|
+
derivationKey: z.ZodString;
|
|
2837
|
+
publicKey: z.ZodString;
|
|
2838
|
+
defaultPostageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
|
|
2839
|
+
devices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2840
|
+
deviceId: z.ZodString;
|
|
2841
|
+
createdAt: z.ZodNumber;
|
|
2842
|
+
lastSignedInAt: z.ZodNumber;
|
|
2843
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2844
|
+
nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2845
|
+
removedAt: z.ZodOptional<z.ZodNumber>;
|
|
2846
|
+
}, z.core.$strip>>>;
|
|
2847
|
+
connectedApps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2848
|
+
appUrl: z.ZodString;
|
|
2849
|
+
appName: z.ZodString;
|
|
2850
|
+
lastConnectedAt: z.ZodNumber;
|
|
2851
|
+
appIcon: z.ZodOptional<z.ZodString>;
|
|
2852
|
+
appDescription: z.ZodOptional<z.ZodString>;
|
|
2853
|
+
connectedUntil: z.ZodOptional<z.ZodNumber>;
|
|
2854
|
+
appSecret: z.ZodOptional<z.ZodString>;
|
|
2855
|
+
postageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
|
|
2856
|
+
postageStampBatchIDAt: z.ZodOptional<z.ZodNumber>;
|
|
2857
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
2858
|
+
disconnectedAt: z.ZodOptional<z.ZodNumber>;
|
|
2859
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
2860
|
+
message: z.ZodString;
|
|
2861
|
+
signature: z.ZodString;
|
|
2862
|
+
}, z.core.$strip>>;
|
|
2863
|
+
}, z.core.$strip>>>;
|
|
2864
|
+
postageStamps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2865
|
+
batchID: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>;
|
|
2866
|
+
signerKey: z.ZodPipe<z.ZodString, z.ZodTransform<BeePrivateKey, string>>;
|
|
2867
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2868
|
+
nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2869
|
+
utilization: z.ZodNumber;
|
|
2870
|
+
usable: z.ZodBoolean;
|
|
2871
|
+
depth: z.ZodNumber;
|
|
2872
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
2873
|
+
bucketDepth: z.ZodNumber;
|
|
2874
|
+
blockNumber: z.ZodNumber;
|
|
2875
|
+
immutableFlag: z.ZodBoolean;
|
|
2876
|
+
exists: z.ZodBoolean;
|
|
2877
|
+
batchTTL: z.ZodOptional<z.ZodNumber>;
|
|
2878
|
+
createdAt: z.ZodNumber;
|
|
2879
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2880
|
+
deletedAt: z.ZodOptional<z.ZodNumber>;
|
|
2881
|
+
}, z.core.$strip>>>;
|
|
2882
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
2883
|
+
appSessionDuration: z.ZodOptional<z.ZodNumber>;
|
|
2884
|
+
}, z.core.$strip>>;
|
|
2885
|
+
accountNameAt: z.ZodOptional<z.ZodNumber>;
|
|
2886
|
+
defaultStampAt: z.ZodOptional<z.ZodNumber>;
|
|
2887
|
+
settingsAt: z.ZodOptional<z.ZodNumber>;
|
|
2888
|
+
lastModified: z.ZodOptional<z.ZodNumber>;
|
|
2889
|
+
partitionCount: z.ZodOptional<z.ZodNumber>;
|
|
2890
|
+
}, z.core.$strip>;
|
|
2891
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
2892
|
+
message: z.ZodString;
|
|
2893
|
+
signature: z.ZodString;
|
|
2894
|
+
}, z.core.$strip>>;
|
|
2895
|
+
}, z.core.$strip>;
|
|
2896
|
+
}, z.core.$strip>;
|
|
2897
|
+
export declare const PopupToIframeMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2898
|
+
type: z.ZodLiteral<"setSecret">;
|
|
2899
|
+
appOrigin: z.ZodString;
|
|
2900
|
+
challenge: z.ZodString;
|
|
2901
|
+
data: z.ZodObject<{
|
|
2902
|
+
secret: z.ZodString;
|
|
2903
|
+
networkSettings: z.ZodOptional<z.ZodObject<{
|
|
2904
|
+
beeNodeUrl: z.ZodString;
|
|
2905
|
+
gnosisRpcUrl: z.ZodString;
|
|
2906
|
+
}, z.core.$strip>>;
|
|
2907
|
+
account: z.ZodObject<{
|
|
2908
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").EthAddress, string>>;
|
|
2909
|
+
name: z.ZodString;
|
|
2910
|
+
createdAt: z.ZodNumber;
|
|
2911
|
+
derivationKey: z.ZodString;
|
|
2912
|
+
publicKey: z.ZodString;
|
|
2913
|
+
defaultPostageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
|
|
2914
|
+
devices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2915
|
+
deviceId: z.ZodString;
|
|
2916
|
+
createdAt: z.ZodNumber;
|
|
2917
|
+
lastSignedInAt: z.ZodNumber;
|
|
2918
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2919
|
+
nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2920
|
+
removedAt: z.ZodOptional<z.ZodNumber>;
|
|
2921
|
+
}, z.core.$strip>>>;
|
|
2922
|
+
connectedApps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2923
|
+
appUrl: z.ZodString;
|
|
2924
|
+
appName: z.ZodString;
|
|
2925
|
+
lastConnectedAt: z.ZodNumber;
|
|
2926
|
+
appIcon: z.ZodOptional<z.ZodString>;
|
|
2927
|
+
appDescription: z.ZodOptional<z.ZodString>;
|
|
2928
|
+
connectedUntil: z.ZodOptional<z.ZodNumber>;
|
|
2929
|
+
appSecret: z.ZodOptional<z.ZodString>;
|
|
2930
|
+
postageStampBatchID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>>;
|
|
2931
|
+
postageStampBatchIDAt: z.ZodOptional<z.ZodNumber>;
|
|
2932
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
2933
|
+
disconnectedAt: z.ZodOptional<z.ZodNumber>;
|
|
2934
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
2935
|
+
message: z.ZodString;
|
|
2936
|
+
signature: z.ZodString;
|
|
2937
|
+
}, z.core.$strip>>;
|
|
2938
|
+
}, z.core.$strip>>>;
|
|
2939
|
+
postageStamps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2940
|
+
batchID: z.ZodPipe<z.ZodString, z.ZodTransform<import("@ethersphere/core-sdk").BatchId, string>>;
|
|
2941
|
+
signerKey: z.ZodPipe<z.ZodString, z.ZodTransform<BeePrivateKey, string>>;
|
|
2942
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2943
|
+
nameUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2944
|
+
utilization: z.ZodNumber;
|
|
2945
|
+
usable: z.ZodBoolean;
|
|
2946
|
+
depth: z.ZodNumber;
|
|
2947
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
|
|
2948
|
+
bucketDepth: z.ZodNumber;
|
|
2949
|
+
blockNumber: z.ZodNumber;
|
|
2950
|
+
immutableFlag: z.ZodBoolean;
|
|
2951
|
+
exists: z.ZodBoolean;
|
|
2952
|
+
batchTTL: z.ZodOptional<z.ZodNumber>;
|
|
2953
|
+
createdAt: z.ZodNumber;
|
|
2954
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2955
|
+
deletedAt: z.ZodOptional<z.ZodNumber>;
|
|
2956
|
+
}, z.core.$strip>>>;
|
|
2957
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
2958
|
+
appSessionDuration: z.ZodOptional<z.ZodNumber>;
|
|
2959
|
+
}, z.core.$strip>>;
|
|
2960
|
+
accountNameAt: z.ZodOptional<z.ZodNumber>;
|
|
2961
|
+
defaultStampAt: z.ZodOptional<z.ZodNumber>;
|
|
2962
|
+
settingsAt: z.ZodOptional<z.ZodNumber>;
|
|
2963
|
+
lastModified: z.ZodOptional<z.ZodNumber>;
|
|
2964
|
+
partitionCount: z.ZodOptional<z.ZodNumber>;
|
|
2965
|
+
}, z.core.$strip>;
|
|
2966
|
+
chatBinding: z.ZodOptional<z.ZodObject<{
|
|
2967
|
+
message: z.ZodString;
|
|
2968
|
+
signature: z.ZodString;
|
|
2969
|
+
}, z.core.$strip>>;
|
|
2970
|
+
}, z.core.$strip>;
|
|
2971
|
+
}, z.core.$strip>], "type">;
|
|
2972
|
+
export type SetSecretMessage = z.infer<typeof SetSecretMessageSchema>;
|
|
2973
|
+
export type PopupToIframeMessage = z.infer<typeof PopupToIframeMessageSchema>;
|
|
2974
|
+
export interface ClientOptions {
|
|
2975
|
+
iframeOrigin: string;
|
|
2976
|
+
iframePath?: string;
|
|
2977
|
+
timeout?: number;
|
|
2978
|
+
initializationTimeout?: number;
|
|
2979
|
+
/**
|
|
2980
|
+
* Invoked whenever the dApp-visible ConnectionInfo changes (identity rename,
|
|
2981
|
+
* default-stamp change, local↔synced account migration, postage stamp added,
|
|
2982
|
+
* auth transitions, etc.). Fires once on initial auth check, then on every
|
|
2983
|
+
* effective change. The current snapshot is also available synchronously
|
|
2984
|
+
* via `client.connectionInfo`.
|
|
2985
|
+
*/
|
|
2986
|
+
onConnectionChange?: (info: ConnectionInfo) => void;
|
|
2987
|
+
popupMode?: "popup" | "window";
|
|
2988
|
+
metadata: AppMetadata;
|
|
2989
|
+
buttonConfig?: ButtonConfig;
|
|
2990
|
+
containerId?: string;
|
|
2991
|
+
/** URL of a subsidised gateway for users without postage stamps. Gateway handles stamping server-side. */
|
|
2992
|
+
subsidisedGatewayUrl?: string;
|
|
2993
|
+
}
|
|
2994
|
+
export interface AuthOptions {
|
|
2995
|
+
masterKeyStorageKey?: string;
|
|
2996
|
+
}
|
|
2997
|
+
/**
|
|
2998
|
+
* Configuration options for the connect() method.
|
|
2999
|
+
*/
|
|
3000
|
+
export interface ConnectOptions {
|
|
3001
|
+
/**
|
|
3002
|
+
* Override popup mode for this connect call.
|
|
3003
|
+
* "popup" opens a sized popup window, "window" opens a full browser tab.
|
|
3004
|
+
*/
|
|
3005
|
+
popupMode?: "popup" | "window";
|
|
3006
|
+
}
|
|
3007
|
+
export type { Account, SyncedAccount, ConnectedApp, PostageStamp, } from "./schemas";
|