pubky-app-specs 0.3.0-rc.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 +21 -0
- package/README.md +167 -0
- package/package.json +25 -0
- package/pubky_app_specs.d.ts +527 -0
- package/pubky_app_specs.js +2365 -0
- package/pubky_app_specs_bg.wasm +0 -0
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export function baseUriBuilder(user_id: string): string;
|
|
4
|
+
export function userUriBuilder(user_id: string): string;
|
|
5
|
+
export function postUriBuilder(author_id: string, post_id: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Enum representing the layout of the feed.
|
|
8
|
+
*/
|
|
9
|
+
export enum PubkyAppFeedLayout {
|
|
10
|
+
Columns = 0,
|
|
11
|
+
Wide = 1,
|
|
12
|
+
Visual = 2,
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Enum representing the reach of the feed.
|
|
16
|
+
*/
|
|
17
|
+
export enum PubkyAppFeedReach {
|
|
18
|
+
Following = 0,
|
|
19
|
+
Followers = 1,
|
|
20
|
+
Friends = 2,
|
|
21
|
+
All = 3,
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Enum representing the sort order of the feed.
|
|
25
|
+
*/
|
|
26
|
+
export enum PubkyAppFeedSort {
|
|
27
|
+
Recent = 0,
|
|
28
|
+
Popularity = 1,
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Represents the type of pubky-app posted data
|
|
32
|
+
* Used primarily to best display the content in UI
|
|
33
|
+
*/
|
|
34
|
+
export enum PubkyAppPostKind {
|
|
35
|
+
Short = 0,
|
|
36
|
+
Long = 1,
|
|
37
|
+
Image = 2,
|
|
38
|
+
Video = 3,
|
|
39
|
+
Link = 4,
|
|
40
|
+
File = 5,
|
|
41
|
+
}
|
|
42
|
+
export class BlobResult {
|
|
43
|
+
private constructor();
|
|
44
|
+
free(): void;
|
|
45
|
+
readonly blob: PubkyAppBlob;
|
|
46
|
+
readonly meta: Meta;
|
|
47
|
+
}
|
|
48
|
+
export class BookmarkResult {
|
|
49
|
+
private constructor();
|
|
50
|
+
free(): void;
|
|
51
|
+
readonly bookmark: PubkyAppBookmark;
|
|
52
|
+
readonly meta: Meta;
|
|
53
|
+
}
|
|
54
|
+
export class FeedResult {
|
|
55
|
+
private constructor();
|
|
56
|
+
free(): void;
|
|
57
|
+
readonly feed: PubkyAppFeed;
|
|
58
|
+
readonly meta: Meta;
|
|
59
|
+
}
|
|
60
|
+
export class FileResult {
|
|
61
|
+
private constructor();
|
|
62
|
+
free(): void;
|
|
63
|
+
readonly file: PubkyAppFile;
|
|
64
|
+
readonly meta: Meta;
|
|
65
|
+
}
|
|
66
|
+
export class FollowResult {
|
|
67
|
+
private constructor();
|
|
68
|
+
free(): void;
|
|
69
|
+
readonly follow: PubkyAppFollow;
|
|
70
|
+
readonly meta: Meta;
|
|
71
|
+
}
|
|
72
|
+
export class LastReadResult {
|
|
73
|
+
private constructor();
|
|
74
|
+
free(): void;
|
|
75
|
+
readonly last_read: PubkyAppLastRead;
|
|
76
|
+
readonly meta: Meta;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Each FFI function:
|
|
80
|
+
* - Accepts minimal fields in a JavaScript-friendly manner (e.g. strings, JSON).
|
|
81
|
+
* - Creates the Rust model, sanitizes, and validates it.
|
|
82
|
+
* - Generates the ID (if applicable).
|
|
83
|
+
* - Generates the path (if applicable).
|
|
84
|
+
* - Returns { json, id, path, url } or a descriptive error.
|
|
85
|
+
*/
|
|
86
|
+
export class Meta {
|
|
87
|
+
private constructor();
|
|
88
|
+
free(): void;
|
|
89
|
+
readonly id: string;
|
|
90
|
+
readonly path: string;
|
|
91
|
+
readonly url: string;
|
|
92
|
+
}
|
|
93
|
+
export class MuteResult {
|
|
94
|
+
private constructor();
|
|
95
|
+
free(): void;
|
|
96
|
+
readonly mute: PubkyAppMute;
|
|
97
|
+
readonly meta: Meta;
|
|
98
|
+
}
|
|
99
|
+
export class PostResult {
|
|
100
|
+
private constructor();
|
|
101
|
+
free(): void;
|
|
102
|
+
readonly post: PubkyAppPost;
|
|
103
|
+
readonly meta: Meta;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Represents a file uploaded by the user.
|
|
107
|
+
* URI: /pub/pubky.app/files/:file_id
|
|
108
|
+
*/
|
|
109
|
+
export class PubkyAppBlob {
|
|
110
|
+
private constructor();
|
|
111
|
+
free(): void;
|
|
112
|
+
/**
|
|
113
|
+
* Serialize to JSON for WASM.
|
|
114
|
+
*/
|
|
115
|
+
toJson(): any;
|
|
116
|
+
/**
|
|
117
|
+
* Getter for the blob data as a `Uint8Array`.
|
|
118
|
+
*/
|
|
119
|
+
readonly data: Uint8Array;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Represents raw homeserver bookmark with id
|
|
123
|
+
* URI: /pub/pubky.app/bookmarks/:bookmark_id
|
|
124
|
+
*
|
|
125
|
+
* Example URI:
|
|
126
|
+
*
|
|
127
|
+
* `/pub/pubky.app/bookmarks/AF7KQ6NEV5XV1EG5DVJ2E74JJ4`
|
|
128
|
+
*
|
|
129
|
+
* Where bookmark_id is Crockford-base32(Blake3("{uri_bookmarked}"")[:half])
|
|
130
|
+
*/
|
|
131
|
+
export class PubkyAppBookmark {
|
|
132
|
+
private constructor();
|
|
133
|
+
free(): void;
|
|
134
|
+
/**
|
|
135
|
+
* Serialize to JSON for WASM.
|
|
136
|
+
*/
|
|
137
|
+
toJson(): any;
|
|
138
|
+
created_at: bigint;
|
|
139
|
+
/**
|
|
140
|
+
* Getter for `uri`.
|
|
141
|
+
*/
|
|
142
|
+
readonly uri: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Represents a feed configuration.
|
|
146
|
+
*/
|
|
147
|
+
export class PubkyAppFeed {
|
|
148
|
+
private constructor();
|
|
149
|
+
free(): void;
|
|
150
|
+
/**
|
|
151
|
+
* Serialize to JSON for WASM.
|
|
152
|
+
*/
|
|
153
|
+
toJson(): any;
|
|
154
|
+
created_at: bigint;
|
|
155
|
+
/**
|
|
156
|
+
* Getter for `feed`.
|
|
157
|
+
*/
|
|
158
|
+
readonly feed: PubkyAppFeedConfig;
|
|
159
|
+
/**
|
|
160
|
+
* Getter for `name`.
|
|
161
|
+
*/
|
|
162
|
+
readonly name: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Configuration object for the feed.
|
|
166
|
+
*/
|
|
167
|
+
export class PubkyAppFeedConfig {
|
|
168
|
+
private constructor();
|
|
169
|
+
free(): void;
|
|
170
|
+
/**
|
|
171
|
+
* Serialize to JSON for WASM.
|
|
172
|
+
*/
|
|
173
|
+
toJson(): any;
|
|
174
|
+
/**
|
|
175
|
+
* Getter for `tags`.
|
|
176
|
+
*/
|
|
177
|
+
readonly tags: string[] | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Getter for `name`.
|
|
180
|
+
*/
|
|
181
|
+
readonly reach: PubkyAppFeedReach;
|
|
182
|
+
/**
|
|
183
|
+
* Getter for `layout`.
|
|
184
|
+
*/
|
|
185
|
+
readonly layout: PubkyAppFeedLayout;
|
|
186
|
+
/**
|
|
187
|
+
* Getter for `sort`.
|
|
188
|
+
*/
|
|
189
|
+
readonly sort: PubkyAppFeedSort;
|
|
190
|
+
/**
|
|
191
|
+
* Getter for `content`.
|
|
192
|
+
*/
|
|
193
|
+
readonly content: PubkyAppPostKind | undefined;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Represents a file uploaded by the user.
|
|
197
|
+
* URI: /pub/pubky.app/files/:file_id
|
|
198
|
+
*/
|
|
199
|
+
export class PubkyAppFile {
|
|
200
|
+
private constructor();
|
|
201
|
+
free(): void;
|
|
202
|
+
toJson(): any;
|
|
203
|
+
created_at: bigint;
|
|
204
|
+
size: bigint;
|
|
205
|
+
readonly name: string;
|
|
206
|
+
readonly src: string;
|
|
207
|
+
readonly content_type: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Represents raw homeserver follow object with timestamp
|
|
211
|
+
*
|
|
212
|
+
* On follow objects, the main data is encoded in the path
|
|
213
|
+
*
|
|
214
|
+
* URI: /pub/pubky.app/follows/:user_id
|
|
215
|
+
*
|
|
216
|
+
* Example URI:
|
|
217
|
+
*
|
|
218
|
+
* `/pub/pubky.app/follows/pxnu33x7jtpx9ar1ytsi4yxbp6a5o36gwhffs8zoxmbuptici1jy`
|
|
219
|
+
*/
|
|
220
|
+
export class PubkyAppFollow {
|
|
221
|
+
private constructor();
|
|
222
|
+
free(): void;
|
|
223
|
+
toJson(): any;
|
|
224
|
+
created_at: bigint;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Represents the last read timestamp for notifications.
|
|
228
|
+
* URI: /pub/pubky.app/last_read
|
|
229
|
+
*/
|
|
230
|
+
export class PubkyAppLastRead {
|
|
231
|
+
private constructor();
|
|
232
|
+
free(): void;
|
|
233
|
+
/**
|
|
234
|
+
* Serialize to JSON for WASM.
|
|
235
|
+
*/
|
|
236
|
+
toJson(): any;
|
|
237
|
+
timestamp: bigint;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Represents raw homeserver Mute object with timestamp
|
|
241
|
+
* URI: /pub/pubky.app/mutes/:user_id
|
|
242
|
+
*
|
|
243
|
+
* Example URI:
|
|
244
|
+
*
|
|
245
|
+
* `/pub/pubky.app/mutes/pxnu33x7jtpx9ar1ytsi4yxbp6a5o36gwhffs8zoxmbuptici1jy`
|
|
246
|
+
*/
|
|
247
|
+
export class PubkyAppMute {
|
|
248
|
+
private constructor();
|
|
249
|
+
free(): void;
|
|
250
|
+
toJson(): any;
|
|
251
|
+
created_at: bigint;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Represents raw post in homeserver with content and kind
|
|
255
|
+
* URI: /pub/pubky.app/posts/:post_id
|
|
256
|
+
* Where post_id is CrockfordBase32 encoding of timestamp
|
|
257
|
+
*
|
|
258
|
+
* Example URI:
|
|
259
|
+
*
|
|
260
|
+
* `/pub/pubky.app/posts/00321FCW75ZFY`
|
|
261
|
+
*/
|
|
262
|
+
export class PubkyAppPost {
|
|
263
|
+
free(): void;
|
|
264
|
+
toJson(): any;
|
|
265
|
+
/**
|
|
266
|
+
* Creates a new `PubkyAppPost` instance and sanitizes it.
|
|
267
|
+
*/
|
|
268
|
+
constructor(content: string, kind: PubkyAppPostKind, parent?: string | null, embed?: PubkyAppPostEmbed | null, attachments?: string[] | null);
|
|
269
|
+
readonly content: string;
|
|
270
|
+
readonly kind: PubkyAppPostKind;
|
|
271
|
+
readonly parent: string | undefined;
|
|
272
|
+
readonly embed: PubkyAppPostEmbed | undefined;
|
|
273
|
+
readonly attachments: string[] | undefined;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Represents embedded content within a post
|
|
277
|
+
*/
|
|
278
|
+
export class PubkyAppPostEmbed {
|
|
279
|
+
free(): void;
|
|
280
|
+
constructor(uri: string, kind: PubkyAppPostKind);
|
|
281
|
+
readonly kind: PubkyAppPostKind;
|
|
282
|
+
readonly uri: string;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Represents raw homeserver tag with id
|
|
286
|
+
* URI: /pub/pubky.app/tags/:tag_id
|
|
287
|
+
*
|
|
288
|
+
* Example URI:
|
|
289
|
+
*
|
|
290
|
+
* `/pub/pubky.app/tags/FPB0AM9S93Q3M1GFY1KV09GMQM`
|
|
291
|
+
*
|
|
292
|
+
* Where tag_id is Crockford-base32(Blake3("{uri_tagged}:{label}")[:half])
|
|
293
|
+
*/
|
|
294
|
+
export class PubkyAppTag {
|
|
295
|
+
private constructor();
|
|
296
|
+
free(): void;
|
|
297
|
+
/**
|
|
298
|
+
* Serialize to JSON for WASM.
|
|
299
|
+
*/
|
|
300
|
+
toJson(): any;
|
|
301
|
+
created_at: bigint;
|
|
302
|
+
/**
|
|
303
|
+
* Getter for `uri`.
|
|
304
|
+
*/
|
|
305
|
+
readonly uri: string;
|
|
306
|
+
/**
|
|
307
|
+
* Getter for `label`.
|
|
308
|
+
*/
|
|
309
|
+
readonly label: string;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* URI: /pub/pubky.app/profile.json
|
|
313
|
+
*/
|
|
314
|
+
export class PubkyAppUser {
|
|
315
|
+
free(): void;
|
|
316
|
+
toJson(): any;
|
|
317
|
+
/**
|
|
318
|
+
* Creates a new `PubkyAppUser` instance and sanitizes it.
|
|
319
|
+
*/
|
|
320
|
+
constructor(name: string, bio?: string | null, image?: string | null, links?: PubkyAppUserLink[] | null, status?: string | null);
|
|
321
|
+
readonly name: string;
|
|
322
|
+
readonly bio: string | undefined;
|
|
323
|
+
readonly image: string | undefined;
|
|
324
|
+
readonly links: PubkyAppUserLink[] | undefined;
|
|
325
|
+
readonly status: string | undefined;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Represents a user's single link with a title and URL.
|
|
329
|
+
*/
|
|
330
|
+
export class PubkyAppUserLink {
|
|
331
|
+
free(): void;
|
|
332
|
+
/**
|
|
333
|
+
* Creates a new `PubkyAppUserLink` instance and sanitizes it.
|
|
334
|
+
*/
|
|
335
|
+
constructor(title: string, url: string);
|
|
336
|
+
readonly title: string;
|
|
337
|
+
readonly url: string;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Represents a user's single link with a title and URL.
|
|
341
|
+
*/
|
|
342
|
+
export class PubkySpecsBuilder {
|
|
343
|
+
free(): void;
|
|
344
|
+
/**
|
|
345
|
+
* Creates a new `PubkyAppBuilder` instance.
|
|
346
|
+
*/
|
|
347
|
+
constructor(pubky_id: string);
|
|
348
|
+
createUser(name: string, bio: string | null | undefined, image: string | null | undefined, links: any, status?: string | null): UserResult;
|
|
349
|
+
createFeed(tags: any, reach: string, layout: string, sort: string, content: string | null | undefined, name: string): FeedResult;
|
|
350
|
+
createFile(name: string, src: string, content_type: string, size: bigint): FileResult;
|
|
351
|
+
createPost(content: string, kind: PubkyAppPostKind, parent?: string | null, embed?: PubkyAppPostEmbed | null, attachments?: string[] | null): PostResult;
|
|
352
|
+
createTag(uri: string, label: string): TagResult;
|
|
353
|
+
createBookmark(uri: string): BookmarkResult;
|
|
354
|
+
createFollow(followee_id: string): FollowResult;
|
|
355
|
+
createMute(mutee_id: string): MuteResult;
|
|
356
|
+
createLastRead(): LastReadResult;
|
|
357
|
+
createBlob(blob_data: any): BlobResult;
|
|
358
|
+
}
|
|
359
|
+
export class TagResult {
|
|
360
|
+
private constructor();
|
|
361
|
+
free(): void;
|
|
362
|
+
readonly tag: PubkyAppTag;
|
|
363
|
+
readonly meta: Meta;
|
|
364
|
+
}
|
|
365
|
+
export class UserResult {
|
|
366
|
+
private constructor();
|
|
367
|
+
free(): void;
|
|
368
|
+
readonly user: PubkyAppUser;
|
|
369
|
+
readonly meta: Meta;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
373
|
+
|
|
374
|
+
export interface InitOutput {
|
|
375
|
+
readonly memory: WebAssembly.Memory;
|
|
376
|
+
readonly __wbg_pubkyappbookmark_free: (a: number, b: number) => void;
|
|
377
|
+
readonly __wbg_get_pubkyappbookmark_created_at: (a: number) => bigint;
|
|
378
|
+
readonly __wbg_set_pubkyappbookmark_created_at: (a: number, b: bigint) => void;
|
|
379
|
+
readonly pubkyappbookmark_toJson: (a: number) => [number, number, number];
|
|
380
|
+
readonly pubkyappbookmark_uri: (a: number) => [number, number];
|
|
381
|
+
readonly __wbg_pubkyappfeedconfig_free: (a: number, b: number) => void;
|
|
382
|
+
readonly pubkyappfeedconfig_toJson: (a: number) => [number, number, number];
|
|
383
|
+
readonly pubkyappfeedconfig_tags: (a: number) => [number, number];
|
|
384
|
+
readonly pubkyappfeedconfig_reach: (a: number) => number;
|
|
385
|
+
readonly pubkyappfeedconfig_layout: (a: number) => number;
|
|
386
|
+
readonly pubkyappfeedconfig_sort: (a: number) => number;
|
|
387
|
+
readonly pubkyappfeedconfig_content: (a: number) => number;
|
|
388
|
+
readonly __wbg_pubkyappfeed_free: (a: number, b: number) => void;
|
|
389
|
+
readonly __wbg_get_pubkyappfeed_created_at: (a: number) => bigint;
|
|
390
|
+
readonly __wbg_set_pubkyappfeed_created_at: (a: number, b: bigint) => void;
|
|
391
|
+
readonly pubkyappfeed_toJson: (a: number) => [number, number, number];
|
|
392
|
+
readonly pubkyappfeed_feed: (a: number) => number;
|
|
393
|
+
readonly pubkyappfeed_name: (a: number) => [number, number];
|
|
394
|
+
readonly __wbg_pubkyappfile_free: (a: number, b: number) => void;
|
|
395
|
+
readonly __wbg_get_pubkyappfile_size: (a: number) => bigint;
|
|
396
|
+
readonly __wbg_set_pubkyappfile_size: (a: number, b: bigint) => void;
|
|
397
|
+
readonly pubkyappfile_name: (a: number) => [number, number];
|
|
398
|
+
readonly pubkyappfile_src: (a: number) => [number, number];
|
|
399
|
+
readonly pubkyappfile_content_type: (a: number) => [number, number];
|
|
400
|
+
readonly pubkyappfile_toJson: (a: number) => [number, number, number];
|
|
401
|
+
readonly __wbg_pubkyappblob_free: (a: number, b: number) => void;
|
|
402
|
+
readonly pubkyappblob_toJson: (a: number) => [number, number, number];
|
|
403
|
+
readonly pubkyappblob_data: (a: number) => any;
|
|
404
|
+
readonly __wbg_pubkyappfollow_free: (a: number, b: number) => void;
|
|
405
|
+
readonly pubkyappfollow_toJson: (a: number) => [number, number, number];
|
|
406
|
+
readonly pubkyapplastread_toJson: (a: number) => [number, number, number];
|
|
407
|
+
readonly pubkyappmute_toJson: (a: number) => [number, number, number];
|
|
408
|
+
readonly __wbg_pubkyapppostembed_free: (a: number, b: number) => void;
|
|
409
|
+
readonly pubkyapppostembed_new: (a: number, b: number, c: number) => number;
|
|
410
|
+
readonly pubkyapppostembed_kind: (a: number) => number;
|
|
411
|
+
readonly pubkyapppostembed_uri: (a: number) => [number, number];
|
|
412
|
+
readonly __wbg_pubkyapppost_free: (a: number, b: number) => void;
|
|
413
|
+
readonly pubkyapppost_content: (a: number) => [number, number];
|
|
414
|
+
readonly pubkyapppost_kind: (a: number) => number;
|
|
415
|
+
readonly pubkyapppost_parent: (a: number) => [number, number];
|
|
416
|
+
readonly pubkyapppost_embed: (a: number) => number;
|
|
417
|
+
readonly pubkyapppost_attachments: (a: number) => [number, number];
|
|
418
|
+
readonly pubkyapppost_toJson: (a: number) => [number, number, number];
|
|
419
|
+
readonly pubkyapppost_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
420
|
+
readonly __wbg_pubkyapptag_free: (a: number, b: number) => void;
|
|
421
|
+
readonly pubkyapptag_toJson: (a: number) => [number, number, number];
|
|
422
|
+
readonly pubkyapptag_uri: (a: number) => [number, number];
|
|
423
|
+
readonly pubkyapptag_label: (a: number) => [number, number];
|
|
424
|
+
readonly __wbg_pubkyappuser_free: (a: number, b: number) => void;
|
|
425
|
+
readonly pubkyappuser_name: (a: number) => [number, number];
|
|
426
|
+
readonly pubkyappuser_bio: (a: number) => [number, number];
|
|
427
|
+
readonly pubkyappuser_image: (a: number) => [number, number];
|
|
428
|
+
readonly pubkyappuser_links: (a: number) => [number, number];
|
|
429
|
+
readonly pubkyappuser_status: (a: number) => [number, number];
|
|
430
|
+
readonly pubkyappuser_toJson: (a: number) => [number, number, number];
|
|
431
|
+
readonly __wbg_pubkyappuserlink_free: (a: number, b: number) => void;
|
|
432
|
+
readonly pubkyappuserlink_title: (a: number) => [number, number];
|
|
433
|
+
readonly pubkyappuserlink_url: (a: number) => [number, number];
|
|
434
|
+
readonly pubkyappuser_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
435
|
+
readonly pubkyappuserlink_new: (a: number, b: number, c: number, d: number) => number;
|
|
436
|
+
readonly baseUriBuilder: (a: number, b: number) => [number, number];
|
|
437
|
+
readonly userUriBuilder: (a: number, b: number) => [number, number];
|
|
438
|
+
readonly postUriBuilder: (a: number, b: number, c: number, d: number) => [number, number];
|
|
439
|
+
readonly __wbg_meta_free: (a: number, b: number) => void;
|
|
440
|
+
readonly meta_id: (a: number) => [number, number];
|
|
441
|
+
readonly meta_path: (a: number) => [number, number];
|
|
442
|
+
readonly meta_url: (a: number) => [number, number];
|
|
443
|
+
readonly __wbg_userresult_free: (a: number, b: number) => void;
|
|
444
|
+
readonly userresult_user: (a: number) => number;
|
|
445
|
+
readonly userresult_meta: (a: number) => number;
|
|
446
|
+
readonly __wbg_fileresult_free: (a: number, b: number) => void;
|
|
447
|
+
readonly fileresult_file: (a: number) => number;
|
|
448
|
+
readonly fileresult_meta: (a: number) => number;
|
|
449
|
+
readonly __wbg_followresult_free: (a: number, b: number) => void;
|
|
450
|
+
readonly followresult_follow: (a: number) => number;
|
|
451
|
+
readonly followresult_meta: (a: number) => number;
|
|
452
|
+
readonly __wbg_postresult_free: (a: number, b: number) => void;
|
|
453
|
+
readonly postresult_post: (a: number) => number;
|
|
454
|
+
readonly postresult_meta: (a: number) => number;
|
|
455
|
+
readonly __wbg_feedresult_free: (a: number, b: number) => void;
|
|
456
|
+
readonly feedresult_feed: (a: number) => number;
|
|
457
|
+
readonly feedresult_meta: (a: number) => number;
|
|
458
|
+
readonly __wbg_tagresult_free: (a: number, b: number) => void;
|
|
459
|
+
readonly tagresult_tag: (a: number) => number;
|
|
460
|
+
readonly tagresult_meta: (a: number) => number;
|
|
461
|
+
readonly __wbg_bookmarkresult_free: (a: number, b: number) => void;
|
|
462
|
+
readonly bookmarkresult_bookmark: (a: number) => number;
|
|
463
|
+
readonly bookmarkresult_meta: (a: number) => number;
|
|
464
|
+
readonly __wbg_blobresult_free: (a: number, b: number) => void;
|
|
465
|
+
readonly blobresult_blob: (a: number) => number;
|
|
466
|
+
readonly blobresult_meta: (a: number) => number;
|
|
467
|
+
readonly pubkyspecsbuilder_new: (a: number, b: number) => number;
|
|
468
|
+
readonly pubkyspecsbuilder_createUser: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number, j: number) => [number, number, number];
|
|
469
|
+
readonly pubkyspecsbuilder_createFeed: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => [number, number, number];
|
|
470
|
+
readonly pubkyspecsbuilder_createFile: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint) => [number, number, number];
|
|
471
|
+
readonly pubkyspecsbuilder_createPost: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
472
|
+
readonly pubkyspecsbuilder_createTag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
473
|
+
readonly pubkyspecsbuilder_createBookmark: (a: number, b: number, c: number) => [number, number, number];
|
|
474
|
+
readonly pubkyspecsbuilder_createFollow: (a: number, b: number, c: number) => [number, number, number];
|
|
475
|
+
readonly pubkyspecsbuilder_createMute: (a: number, b: number, c: number) => [number, number, number];
|
|
476
|
+
readonly pubkyspecsbuilder_createLastRead: (a: number) => [number, number, number];
|
|
477
|
+
readonly pubkyspecsbuilder_createBlob: (a: number, b: any) => [number, number, number];
|
|
478
|
+
readonly __wbg_set_pubkyappfile_created_at: (a: number, b: bigint) => void;
|
|
479
|
+
readonly __wbg_set_pubkyappfollow_created_at: (a: number, b: bigint) => void;
|
|
480
|
+
readonly __wbg_set_pubkyapplastread_timestamp: (a: number, b: bigint) => void;
|
|
481
|
+
readonly __wbg_set_pubkyappmute_created_at: (a: number, b: bigint) => void;
|
|
482
|
+
readonly __wbg_set_pubkyapptag_created_at: (a: number, b: bigint) => void;
|
|
483
|
+
readonly __wbg_get_pubkyappmute_created_at: (a: number) => bigint;
|
|
484
|
+
readonly __wbg_get_pubkyapplastread_timestamp: (a: number) => bigint;
|
|
485
|
+
readonly __wbg_get_pubkyappfollow_created_at: (a: number) => bigint;
|
|
486
|
+
readonly __wbg_get_pubkyappfile_created_at: (a: number) => bigint;
|
|
487
|
+
readonly __wbg_get_pubkyapptag_created_at: (a: number) => bigint;
|
|
488
|
+
readonly muteresult_mute: (a: number) => number;
|
|
489
|
+
readonly lastreadresult_last_read: (a: number) => number;
|
|
490
|
+
readonly __wbg_pubkyspecsbuilder_free: (a: number, b: number) => void;
|
|
491
|
+
readonly muteresult_meta: (a: number) => number;
|
|
492
|
+
readonly lastreadresult_meta: (a: number) => number;
|
|
493
|
+
readonly __wbg_muteresult_free: (a: number, b: number) => void;
|
|
494
|
+
readonly __wbg_lastreadresult_free: (a: number, b: number) => void;
|
|
495
|
+
readonly __wbg_pubkyappmute_free: (a: number, b: number) => void;
|
|
496
|
+
readonly __wbg_pubkyapplastread_free: (a: number, b: number) => void;
|
|
497
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
498
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
499
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
500
|
+
readonly __externref_table_alloc: () => number;
|
|
501
|
+
readonly __wbindgen_export_4: WebAssembly.Table;
|
|
502
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
503
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
504
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
505
|
+
readonly __wbindgen_start: () => void;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
509
|
+
/**
|
|
510
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
511
|
+
* a precompiled `WebAssembly.Module`.
|
|
512
|
+
*
|
|
513
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
514
|
+
*
|
|
515
|
+
* @returns {InitOutput}
|
|
516
|
+
*/
|
|
517
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
521
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
522
|
+
*
|
|
523
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
524
|
+
*
|
|
525
|
+
* @returns {Promise<InitOutput>}
|
|
526
|
+
*/
|
|
527
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|