pubky-app-specs 0.3.5 → 0.4.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/README.md +22 -21
- package/example.js +93 -0
- package/{pubky_app_specs.js → index.cjs} +573 -390
- package/index.js +2946 -0
- package/package.json +22 -8
- package/pubky_app_specs.d.ts +42 -179
- package/pubky_app_specs_bg.wasm +0 -0
- package/LICENSE +0 -21
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
let imports = {};
|
|
3
|
+
imports['__wbindgen_placeholder__'] = module.exports;
|
|
1
4
|
let wasm;
|
|
5
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
2
6
|
|
|
3
7
|
let WASM_VECTOR_LEN = 0;
|
|
4
8
|
|
|
@@ -11,7 +15,7 @@ function getUint8ArrayMemory0() {
|
|
|
11
15
|
return cachedUint8ArrayMemory0;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
15
19
|
|
|
16
20
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
17
21
|
? function (arg, view) {
|
|
@@ -158,9 +162,9 @@ function debugString(val) {
|
|
|
158
162
|
return className;
|
|
159
163
|
}
|
|
160
164
|
|
|
161
|
-
|
|
165
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
162
166
|
|
|
163
|
-
|
|
167
|
+
cachedTextDecoder.decode();
|
|
164
168
|
|
|
165
169
|
function getStringFromWasm0(ptr, len) {
|
|
166
170
|
ptr = ptr >>> 0;
|
|
@@ -203,7 +207,7 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
203
207
|
* @param {string} user_id
|
|
204
208
|
* @returns {string}
|
|
205
209
|
*/
|
|
206
|
-
|
|
210
|
+
module.exports.baseUriBuilder = function(user_id) {
|
|
207
211
|
let deferred2_0;
|
|
208
212
|
let deferred2_1;
|
|
209
213
|
try {
|
|
@@ -216,13 +220,14 @@ export function baseUriBuilder(user_id) {
|
|
|
216
220
|
} finally {
|
|
217
221
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
218
222
|
}
|
|
219
|
-
}
|
|
223
|
+
};
|
|
220
224
|
|
|
221
225
|
/**
|
|
226
|
+
* Builds an User URI of the form "pubky://<user_pubky_id>/pub/pubky.app/profile.json"
|
|
222
227
|
* @param {string} user_id
|
|
223
228
|
* @returns {string}
|
|
224
229
|
*/
|
|
225
|
-
|
|
230
|
+
module.exports.userUriBuilder = function(user_id) {
|
|
226
231
|
let deferred2_0;
|
|
227
232
|
let deferred2_1;
|
|
228
233
|
try {
|
|
@@ -235,14 +240,15 @@ export function userUriBuilder(user_id) {
|
|
|
235
240
|
} finally {
|
|
236
241
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
237
242
|
}
|
|
238
|
-
}
|
|
243
|
+
};
|
|
239
244
|
|
|
240
245
|
/**
|
|
246
|
+
* Builds a Post URI of the form "pubky://<author_id>/pub/pubky.app/posts/<post_id>"
|
|
241
247
|
* @param {string} author_id
|
|
242
248
|
* @param {string} post_id
|
|
243
249
|
* @returns {string}
|
|
244
250
|
*/
|
|
245
|
-
|
|
251
|
+
module.exports.postUriBuilder = function(author_id, post_id) {
|
|
246
252
|
let deferred3_0;
|
|
247
253
|
let deferred3_1;
|
|
248
254
|
try {
|
|
@@ -257,7 +263,188 @@ export function postUriBuilder(author_id, post_id) {
|
|
|
257
263
|
} finally {
|
|
258
264
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
259
265
|
}
|
|
260
|
-
}
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Builds a Follow URI of the form "pubky://<author_id>/pub/pubky.app/follows/<follow_id>"
|
|
270
|
+
* @param {string} author_id
|
|
271
|
+
* @param {string} follow_id
|
|
272
|
+
* @returns {string}
|
|
273
|
+
*/
|
|
274
|
+
module.exports.followUriBuilder = function(author_id, follow_id) {
|
|
275
|
+
let deferred3_0;
|
|
276
|
+
let deferred3_1;
|
|
277
|
+
try {
|
|
278
|
+
const ptr0 = passStringToWasm0(author_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
279
|
+
const len0 = WASM_VECTOR_LEN;
|
|
280
|
+
const ptr1 = passStringToWasm0(follow_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
const len1 = WASM_VECTOR_LEN;
|
|
282
|
+
const ret = wasm.followUriBuilder(ptr0, len0, ptr1, len1);
|
|
283
|
+
deferred3_0 = ret[0];
|
|
284
|
+
deferred3_1 = ret[1];
|
|
285
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
286
|
+
} finally {
|
|
287
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Builds a Mute URI of the form "pubky://<author_id>/pub/pubky.app/mutes/<mute_id>"
|
|
293
|
+
* @param {string} author_id
|
|
294
|
+
* @param {string} mute_id
|
|
295
|
+
* @returns {string}
|
|
296
|
+
*/
|
|
297
|
+
module.exports.muteUriBuilder = function(author_id, mute_id) {
|
|
298
|
+
let deferred3_0;
|
|
299
|
+
let deferred3_1;
|
|
300
|
+
try {
|
|
301
|
+
const ptr0 = passStringToWasm0(author_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
302
|
+
const len0 = WASM_VECTOR_LEN;
|
|
303
|
+
const ptr1 = passStringToWasm0(mute_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
304
|
+
const len1 = WASM_VECTOR_LEN;
|
|
305
|
+
const ret = wasm.muteUriBuilder(ptr0, len0, ptr1, len1);
|
|
306
|
+
deferred3_0 = ret[0];
|
|
307
|
+
deferred3_1 = ret[1];
|
|
308
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
309
|
+
} finally {
|
|
310
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Builds a Bookmark URI of the form "pubky://<author_id>/pub/pubky.app/bookmarks/<bookmark_id>"
|
|
316
|
+
* @param {string} author_id
|
|
317
|
+
* @param {string} bookmark_id
|
|
318
|
+
* @returns {string}
|
|
319
|
+
*/
|
|
320
|
+
module.exports.bookmarkUriBuilder = function(author_id, bookmark_id) {
|
|
321
|
+
let deferred3_0;
|
|
322
|
+
let deferred3_1;
|
|
323
|
+
try {
|
|
324
|
+
const ptr0 = passStringToWasm0(author_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
325
|
+
const len0 = WASM_VECTOR_LEN;
|
|
326
|
+
const ptr1 = passStringToWasm0(bookmark_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
327
|
+
const len1 = WASM_VECTOR_LEN;
|
|
328
|
+
const ret = wasm.bookmarkUriBuilder(ptr0, len0, ptr1, len1);
|
|
329
|
+
deferred3_0 = ret[0];
|
|
330
|
+
deferred3_1 = ret[1];
|
|
331
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
332
|
+
} finally {
|
|
333
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Builds a Tag URI of the form "pubky://<author_id>/pub/pubky.app/tags/<tag_id>"
|
|
339
|
+
* @param {string} author_id
|
|
340
|
+
* @param {string} tag_id
|
|
341
|
+
* @returns {string}
|
|
342
|
+
*/
|
|
343
|
+
module.exports.tagUriBuilder = function(author_id, tag_id) {
|
|
344
|
+
let deferred3_0;
|
|
345
|
+
let deferred3_1;
|
|
346
|
+
try {
|
|
347
|
+
const ptr0 = passStringToWasm0(author_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
348
|
+
const len0 = WASM_VECTOR_LEN;
|
|
349
|
+
const ptr1 = passStringToWasm0(tag_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
350
|
+
const len1 = WASM_VECTOR_LEN;
|
|
351
|
+
const ret = wasm.tagUriBuilder(ptr0, len0, ptr1, len1);
|
|
352
|
+
deferred3_0 = ret[0];
|
|
353
|
+
deferred3_1 = ret[1];
|
|
354
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
355
|
+
} finally {
|
|
356
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Builds a File URI of the form "pubky://<author_id>/pub/pubky.app/files/<file_id>"
|
|
362
|
+
* @param {string} author_id
|
|
363
|
+
* @param {string} file_id
|
|
364
|
+
* @returns {string}
|
|
365
|
+
*/
|
|
366
|
+
module.exports.fileUriBuilder = function(author_id, file_id) {
|
|
367
|
+
let deferred3_0;
|
|
368
|
+
let deferred3_1;
|
|
369
|
+
try {
|
|
370
|
+
const ptr0 = passStringToWasm0(author_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
371
|
+
const len0 = WASM_VECTOR_LEN;
|
|
372
|
+
const ptr1 = passStringToWasm0(file_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
373
|
+
const len1 = WASM_VECTOR_LEN;
|
|
374
|
+
const ret = wasm.fileUriBuilder(ptr0, len0, ptr1, len1);
|
|
375
|
+
deferred3_0 = ret[0];
|
|
376
|
+
deferred3_1 = ret[1];
|
|
377
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
378
|
+
} finally {
|
|
379
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Builds a Blob URI of the form "pubky://<author_id>/pub/pubky.app/blobs/<blob_id>"
|
|
385
|
+
* @param {string} author_id
|
|
386
|
+
* @param {string} blob_id
|
|
387
|
+
* @returns {string}
|
|
388
|
+
*/
|
|
389
|
+
module.exports.blobUriBuilder = function(author_id, blob_id) {
|
|
390
|
+
let deferred3_0;
|
|
391
|
+
let deferred3_1;
|
|
392
|
+
try {
|
|
393
|
+
const ptr0 = passStringToWasm0(author_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
394
|
+
const len0 = WASM_VECTOR_LEN;
|
|
395
|
+
const ptr1 = passStringToWasm0(blob_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
396
|
+
const len1 = WASM_VECTOR_LEN;
|
|
397
|
+
const ret = wasm.blobUriBuilder(ptr0, len0, ptr1, len1);
|
|
398
|
+
deferred3_0 = ret[0];
|
|
399
|
+
deferred3_1 = ret[1];
|
|
400
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
401
|
+
} finally {
|
|
402
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Builds a Feed URI of the form "pubky://<author_id>/pub/pubky.app/feeds/<feed_id>"
|
|
408
|
+
* @param {string} author_id
|
|
409
|
+
* @param {string} feed_id
|
|
410
|
+
* @returns {string}
|
|
411
|
+
*/
|
|
412
|
+
module.exports.feedUriBuilder = function(author_id, feed_id) {
|
|
413
|
+
let deferred3_0;
|
|
414
|
+
let deferred3_1;
|
|
415
|
+
try {
|
|
416
|
+
const ptr0 = passStringToWasm0(author_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
417
|
+
const len0 = WASM_VECTOR_LEN;
|
|
418
|
+
const ptr1 = passStringToWasm0(feed_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
419
|
+
const len1 = WASM_VECTOR_LEN;
|
|
420
|
+
const ret = wasm.feedUriBuilder(ptr0, len0, ptr1, len1);
|
|
421
|
+
deferred3_0 = ret[0];
|
|
422
|
+
deferred3_1 = ret[1];
|
|
423
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
424
|
+
} finally {
|
|
425
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Builds a LastRead URI of the form "pubky://<author_id>/pub/pubky.app/last_read"
|
|
431
|
+
* @param {string} author_id
|
|
432
|
+
* @returns {string}
|
|
433
|
+
*/
|
|
434
|
+
module.exports.lastReadUriBuilder = function(author_id) {
|
|
435
|
+
let deferred2_0;
|
|
436
|
+
let deferred2_1;
|
|
437
|
+
try {
|
|
438
|
+
const ptr0 = passStringToWasm0(author_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
439
|
+
const len0 = WASM_VECTOR_LEN;
|
|
440
|
+
const ret = wasm.lastReadUriBuilder(ptr0, len0);
|
|
441
|
+
deferred2_0 = ret[0];
|
|
442
|
+
deferred2_1 = ret[1];
|
|
443
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
444
|
+
} finally {
|
|
445
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
446
|
+
}
|
|
447
|
+
};
|
|
261
448
|
|
|
262
449
|
/**
|
|
263
450
|
* Parses a Pubky URI and returns a strongly typed `ParsedUriResult`.
|
|
@@ -296,7 +483,7 @@ export function postUriBuilder(author_id, post_id) {
|
|
|
296
483
|
* @param {string} uri
|
|
297
484
|
* @returns {ParsedUriResult}
|
|
298
485
|
*/
|
|
299
|
-
|
|
486
|
+
module.exports.parse_uri = function(uri) {
|
|
300
487
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
301
488
|
const len0 = WASM_VECTOR_LEN;
|
|
302
489
|
const ret = wasm.parse_uri(ptr0, len0);
|
|
@@ -304,13 +491,13 @@ export function parse_uri(uri) {
|
|
|
304
491
|
throw takeFromExternrefTable0(ret[1]);
|
|
305
492
|
}
|
|
306
493
|
return ParsedUriResult.__wrap(ret[0]);
|
|
307
|
-
}
|
|
494
|
+
};
|
|
308
495
|
|
|
309
496
|
/**
|
|
310
497
|
* Enum representing the layout of the feed.
|
|
311
498
|
* @enum {0 | 1 | 2}
|
|
312
499
|
*/
|
|
313
|
-
|
|
500
|
+
module.exports.PubkyAppFeedLayout = Object.freeze({
|
|
314
501
|
Columns: 0, "0": "Columns",
|
|
315
502
|
Wide: 1, "1": "Wide",
|
|
316
503
|
Visual: 2, "2": "Visual",
|
|
@@ -319,7 +506,7 @@ export const PubkyAppFeedLayout = Object.freeze({
|
|
|
319
506
|
* Enum representing the reach of the feed.
|
|
320
507
|
* @enum {0 | 1 | 2 | 3}
|
|
321
508
|
*/
|
|
322
|
-
|
|
509
|
+
module.exports.PubkyAppFeedReach = Object.freeze({
|
|
323
510
|
Following: 0, "0": "Following",
|
|
324
511
|
Followers: 1, "1": "Followers",
|
|
325
512
|
Friends: 2, "2": "Friends",
|
|
@@ -329,7 +516,7 @@ export const PubkyAppFeedReach = Object.freeze({
|
|
|
329
516
|
* Enum representing the sort order of the feed.
|
|
330
517
|
* @enum {0 | 1}
|
|
331
518
|
*/
|
|
332
|
-
|
|
519
|
+
module.exports.PubkyAppFeedSort = Object.freeze({
|
|
333
520
|
Recent: 0, "0": "Recent",
|
|
334
521
|
Popularity: 1, "1": "Popularity",
|
|
335
522
|
});
|
|
@@ -338,7 +525,7 @@ export const PubkyAppFeedSort = Object.freeze({
|
|
|
338
525
|
* Used primarily to best display the content in UI
|
|
339
526
|
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
340
527
|
*/
|
|
341
|
-
|
|
528
|
+
module.exports.PubkyAppPostKind = Object.freeze({
|
|
342
529
|
Short: 0, "0": "Short",
|
|
343
530
|
Long: 1, "1": "Long",
|
|
344
531
|
Image: 2, "2": "Image",
|
|
@@ -351,7 +538,7 @@ const BlobResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
351
538
|
? { register: () => {}, unregister: () => {} }
|
|
352
539
|
: new FinalizationRegistry(ptr => wasm.__wbg_blobresult_free(ptr >>> 0, 1));
|
|
353
540
|
|
|
354
|
-
|
|
541
|
+
class BlobResult {
|
|
355
542
|
|
|
356
543
|
static __wrap(ptr) {
|
|
357
544
|
ptr = ptr >>> 0;
|
|
@@ -387,12 +574,13 @@ export class BlobResult {
|
|
|
387
574
|
return Meta.__wrap(ret);
|
|
388
575
|
}
|
|
389
576
|
}
|
|
577
|
+
module.exports.BlobResult = BlobResult;
|
|
390
578
|
|
|
391
579
|
const BookmarkResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
392
580
|
? { register: () => {}, unregister: () => {} }
|
|
393
581
|
: new FinalizationRegistry(ptr => wasm.__wbg_bookmarkresult_free(ptr >>> 0, 1));
|
|
394
582
|
|
|
395
|
-
|
|
583
|
+
class BookmarkResult {
|
|
396
584
|
|
|
397
585
|
static __wrap(ptr) {
|
|
398
586
|
ptr = ptr >>> 0;
|
|
@@ -428,12 +616,13 @@ export class BookmarkResult {
|
|
|
428
616
|
return Meta.__wrap(ret);
|
|
429
617
|
}
|
|
430
618
|
}
|
|
619
|
+
module.exports.BookmarkResult = BookmarkResult;
|
|
431
620
|
|
|
432
621
|
const FeedResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
433
622
|
? { register: () => {}, unregister: () => {} }
|
|
434
623
|
: new FinalizationRegistry(ptr => wasm.__wbg_feedresult_free(ptr >>> 0, 1));
|
|
435
624
|
|
|
436
|
-
|
|
625
|
+
class FeedResult {
|
|
437
626
|
|
|
438
627
|
static __wrap(ptr) {
|
|
439
628
|
ptr = ptr >>> 0;
|
|
@@ -469,12 +658,13 @@ export class FeedResult {
|
|
|
469
658
|
return Meta.__wrap(ret);
|
|
470
659
|
}
|
|
471
660
|
}
|
|
661
|
+
module.exports.FeedResult = FeedResult;
|
|
472
662
|
|
|
473
663
|
const FileResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
474
664
|
? { register: () => {}, unregister: () => {} }
|
|
475
665
|
: new FinalizationRegistry(ptr => wasm.__wbg_fileresult_free(ptr >>> 0, 1));
|
|
476
666
|
|
|
477
|
-
|
|
667
|
+
class FileResult {
|
|
478
668
|
|
|
479
669
|
static __wrap(ptr) {
|
|
480
670
|
ptr = ptr >>> 0;
|
|
@@ -510,12 +700,13 @@ export class FileResult {
|
|
|
510
700
|
return Meta.__wrap(ret);
|
|
511
701
|
}
|
|
512
702
|
}
|
|
703
|
+
module.exports.FileResult = FileResult;
|
|
513
704
|
|
|
514
705
|
const FollowResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
515
706
|
? { register: () => {}, unregister: () => {} }
|
|
516
707
|
: new FinalizationRegistry(ptr => wasm.__wbg_followresult_free(ptr >>> 0, 1));
|
|
517
708
|
|
|
518
|
-
|
|
709
|
+
class FollowResult {
|
|
519
710
|
|
|
520
711
|
static __wrap(ptr) {
|
|
521
712
|
ptr = ptr >>> 0;
|
|
@@ -551,12 +742,13 @@ export class FollowResult {
|
|
|
551
742
|
return Meta.__wrap(ret);
|
|
552
743
|
}
|
|
553
744
|
}
|
|
745
|
+
module.exports.FollowResult = FollowResult;
|
|
554
746
|
|
|
555
747
|
const LastReadResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
556
748
|
? { register: () => {}, unregister: () => {} }
|
|
557
749
|
: new FinalizationRegistry(ptr => wasm.__wbg_lastreadresult_free(ptr >>> 0, 1));
|
|
558
750
|
|
|
559
|
-
|
|
751
|
+
class LastReadResult {
|
|
560
752
|
|
|
561
753
|
static __wrap(ptr) {
|
|
562
754
|
ptr = ptr >>> 0;
|
|
@@ -592,6 +784,7 @@ export class LastReadResult {
|
|
|
592
784
|
return Meta.__wrap(ret);
|
|
593
785
|
}
|
|
594
786
|
}
|
|
787
|
+
module.exports.LastReadResult = LastReadResult;
|
|
595
788
|
|
|
596
789
|
const MetaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
597
790
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -604,7 +797,7 @@ const MetaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
604
797
|
* - Generates the path (if applicable).
|
|
605
798
|
* - Returns { json, id, path, url } or a descriptive error.
|
|
606
799
|
*/
|
|
607
|
-
|
|
800
|
+
class Meta {
|
|
608
801
|
|
|
609
802
|
static __wrap(ptr) {
|
|
610
803
|
ptr = ptr >>> 0;
|
|
@@ -671,12 +864,13 @@ export class Meta {
|
|
|
671
864
|
}
|
|
672
865
|
}
|
|
673
866
|
}
|
|
867
|
+
module.exports.Meta = Meta;
|
|
674
868
|
|
|
675
869
|
const MuteResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
676
870
|
? { register: () => {}, unregister: () => {} }
|
|
677
871
|
: new FinalizationRegistry(ptr => wasm.__wbg_muteresult_free(ptr >>> 0, 1));
|
|
678
872
|
|
|
679
|
-
|
|
873
|
+
class MuteResult {
|
|
680
874
|
|
|
681
875
|
static __wrap(ptr) {
|
|
682
876
|
ptr = ptr >>> 0;
|
|
@@ -712,6 +906,7 @@ export class MuteResult {
|
|
|
712
906
|
return Meta.__wrap(ret);
|
|
713
907
|
}
|
|
714
908
|
}
|
|
909
|
+
module.exports.MuteResult = MuteResult;
|
|
715
910
|
|
|
716
911
|
const ParsedUriResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
717
912
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -722,7 +917,7 @@ const ParsedUriResultFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
722
917
|
* - `resource`: a string representing the kind of resource (derived from internal `Resource` enum Display).
|
|
723
918
|
* - `resource_id`: an optional resource identifier (if applicable).
|
|
724
919
|
*/
|
|
725
|
-
|
|
920
|
+
class ParsedUriResult {
|
|
726
921
|
|
|
727
922
|
static __wrap(ptr) {
|
|
728
923
|
ptr = ptr >>> 0;
|
|
@@ -789,12 +984,13 @@ export class ParsedUriResult {
|
|
|
789
984
|
return v1;
|
|
790
985
|
}
|
|
791
986
|
}
|
|
987
|
+
module.exports.ParsedUriResult = ParsedUriResult;
|
|
792
988
|
|
|
793
989
|
const PostResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
794
990
|
? { register: () => {}, unregister: () => {} }
|
|
795
991
|
: new FinalizationRegistry(ptr => wasm.__wbg_postresult_free(ptr >>> 0, 1));
|
|
796
992
|
|
|
797
|
-
|
|
993
|
+
class PostResult {
|
|
798
994
|
|
|
799
995
|
static __wrap(ptr) {
|
|
800
996
|
ptr = ptr >>> 0;
|
|
@@ -830,15 +1026,16 @@ export class PostResult {
|
|
|
830
1026
|
return Meta.__wrap(ret);
|
|
831
1027
|
}
|
|
832
1028
|
}
|
|
1029
|
+
module.exports.PostResult = PostResult;
|
|
833
1030
|
|
|
834
1031
|
const PubkyAppBlobFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
835
1032
|
? { register: () => {}, unregister: () => {} }
|
|
836
1033
|
: new FinalizationRegistry(ptr => wasm.__wbg_pubkyappblob_free(ptr >>> 0, 1));
|
|
837
1034
|
/**
|
|
838
|
-
* Represents a file uploaded by the user.
|
|
839
|
-
* URI: /pub/pubky.app/
|
|
1035
|
+
* Represents a blob, which backs a file uploaded by the user.
|
|
1036
|
+
* URI: /pub/pubky.app/blobs/:blob_id
|
|
840
1037
|
*/
|
|
841
|
-
|
|
1038
|
+
class PubkyAppBlob {
|
|
842
1039
|
|
|
843
1040
|
static __wrap(ptr) {
|
|
844
1041
|
ptr = ptr >>> 0;
|
|
@@ -889,6 +1086,7 @@ export class PubkyAppBlob {
|
|
|
889
1086
|
return ret;
|
|
890
1087
|
}
|
|
891
1088
|
}
|
|
1089
|
+
module.exports.PubkyAppBlob = PubkyAppBlob;
|
|
892
1090
|
|
|
893
1091
|
const PubkyAppBookmarkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
894
1092
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -903,7 +1101,7 @@ const PubkyAppBookmarkFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
903
1101
|
*
|
|
904
1102
|
* Where bookmark_id is Crockford-base32(Blake3("{uri_bookmarked}"")[:half])
|
|
905
1103
|
*/
|
|
906
|
-
|
|
1104
|
+
class PubkyAppBookmark {
|
|
907
1105
|
|
|
908
1106
|
static __wrap(ptr) {
|
|
909
1107
|
ptr = ptr >>> 0;
|
|
@@ -976,6 +1174,7 @@ export class PubkyAppBookmark {
|
|
|
976
1174
|
}
|
|
977
1175
|
}
|
|
978
1176
|
}
|
|
1177
|
+
module.exports.PubkyAppBookmark = PubkyAppBookmark;
|
|
979
1178
|
|
|
980
1179
|
const PubkyAppFeedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
981
1180
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -983,7 +1182,7 @@ const PubkyAppFeedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
983
1182
|
/**
|
|
984
1183
|
* Represents a feed configuration.
|
|
985
1184
|
*/
|
|
986
|
-
|
|
1185
|
+
class PubkyAppFeed {
|
|
987
1186
|
|
|
988
1187
|
static __wrap(ptr) {
|
|
989
1188
|
ptr = ptr >>> 0;
|
|
@@ -1064,6 +1263,7 @@ export class PubkyAppFeed {
|
|
|
1064
1263
|
}
|
|
1065
1264
|
}
|
|
1066
1265
|
}
|
|
1266
|
+
module.exports.PubkyAppFeed = PubkyAppFeed;
|
|
1067
1267
|
|
|
1068
1268
|
const PubkyAppFeedConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1069
1269
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1071,7 +1271,7 @@ const PubkyAppFeedConfigFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
1071
1271
|
/**
|
|
1072
1272
|
* Configuration object for the feed.
|
|
1073
1273
|
*/
|
|
1074
|
-
|
|
1274
|
+
class PubkyAppFeedConfig {
|
|
1075
1275
|
|
|
1076
1276
|
static __wrap(ptr) {
|
|
1077
1277
|
ptr = ptr >>> 0;
|
|
@@ -1159,6 +1359,7 @@ export class PubkyAppFeedConfig {
|
|
|
1159
1359
|
return ret === 6 ? undefined : ret;
|
|
1160
1360
|
}
|
|
1161
1361
|
}
|
|
1362
|
+
module.exports.PubkyAppFeedConfig = PubkyAppFeedConfig;
|
|
1162
1363
|
|
|
1163
1364
|
const PubkyAppFileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1164
1365
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1167,7 +1368,7 @@ const PubkyAppFileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1167
1368
|
* Represents a file uploaded by the user.
|
|
1168
1369
|
* URI: /pub/pubky.app/files/:file_id
|
|
1169
1370
|
*/
|
|
1170
|
-
|
|
1371
|
+
class PubkyAppFile {
|
|
1171
1372
|
|
|
1172
1373
|
static __wrap(ptr) {
|
|
1173
1374
|
ptr = ptr >>> 0;
|
|
@@ -1281,6 +1482,7 @@ export class PubkyAppFile {
|
|
|
1281
1482
|
return takeFromExternrefTable0(ret[0]);
|
|
1282
1483
|
}
|
|
1283
1484
|
}
|
|
1485
|
+
module.exports.PubkyAppFile = PubkyAppFile;
|
|
1284
1486
|
|
|
1285
1487
|
const PubkyAppFollowFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1286
1488
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1296,7 +1498,7 @@ const PubkyAppFollowFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1296
1498
|
*
|
|
1297
1499
|
* `/pub/pubky.app/follows/pxnu33x7jtpx9ar1ytsi4yxbp6a5o36gwhffs8zoxmbuptici1jy`
|
|
1298
1500
|
*/
|
|
1299
|
-
|
|
1501
|
+
class PubkyAppFollow {
|
|
1300
1502
|
|
|
1301
1503
|
static __wrap(ptr) {
|
|
1302
1504
|
ptr = ptr >>> 0;
|
|
@@ -1352,6 +1554,7 @@ export class PubkyAppFollow {
|
|
|
1352
1554
|
return takeFromExternrefTable0(ret[0]);
|
|
1353
1555
|
}
|
|
1354
1556
|
}
|
|
1557
|
+
module.exports.PubkyAppFollow = PubkyAppFollow;
|
|
1355
1558
|
|
|
1356
1559
|
const PubkyAppLastReadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1357
1560
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1360,7 +1563,7 @@ const PubkyAppLastReadFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
1360
1563
|
* Represents the last read timestamp for notifications.
|
|
1361
1564
|
* URI: /pub/pubky.app/last_read
|
|
1362
1565
|
*/
|
|
1363
|
-
|
|
1566
|
+
class PubkyAppLastRead {
|
|
1364
1567
|
|
|
1365
1568
|
static __wrap(ptr) {
|
|
1366
1569
|
ptr = ptr >>> 0;
|
|
@@ -1416,6 +1619,7 @@ export class PubkyAppLastRead {
|
|
|
1416
1619
|
return takeFromExternrefTable0(ret[0]);
|
|
1417
1620
|
}
|
|
1418
1621
|
}
|
|
1622
|
+
module.exports.PubkyAppLastRead = PubkyAppLastRead;
|
|
1419
1623
|
|
|
1420
1624
|
const PubkyAppMuteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1421
1625
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1428,7 +1632,7 @@ const PubkyAppMuteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1428
1632
|
*
|
|
1429
1633
|
* `/pub/pubky.app/mutes/pxnu33x7jtpx9ar1ytsi4yxbp6a5o36gwhffs8zoxmbuptici1jy`
|
|
1430
1634
|
*/
|
|
1431
|
-
|
|
1635
|
+
class PubkyAppMute {
|
|
1432
1636
|
|
|
1433
1637
|
static __wrap(ptr) {
|
|
1434
1638
|
ptr = ptr >>> 0;
|
|
@@ -1484,6 +1688,7 @@ export class PubkyAppMute {
|
|
|
1484
1688
|
return takeFromExternrefTable0(ret[0]);
|
|
1485
1689
|
}
|
|
1486
1690
|
}
|
|
1691
|
+
module.exports.PubkyAppMute = PubkyAppMute;
|
|
1487
1692
|
|
|
1488
1693
|
const PubkyAppPostFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1489
1694
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1497,7 +1702,7 @@ const PubkyAppPostFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1497
1702
|
*
|
|
1498
1703
|
* `/pub/pubky.app/posts/00321FCW75ZFY`
|
|
1499
1704
|
*/
|
|
1500
|
-
|
|
1705
|
+
class PubkyAppPost {
|
|
1501
1706
|
|
|
1502
1707
|
static __wrap(ptr) {
|
|
1503
1708
|
ptr = ptr >>> 0;
|
|
@@ -1534,11 +1739,19 @@ export class PubkyAppPost {
|
|
|
1534
1739
|
}
|
|
1535
1740
|
}
|
|
1536
1741
|
/**
|
|
1537
|
-
* @returns {
|
|
1742
|
+
* @returns {string}
|
|
1538
1743
|
*/
|
|
1539
1744
|
get kind() {
|
|
1540
|
-
|
|
1541
|
-
|
|
1745
|
+
let deferred1_0;
|
|
1746
|
+
let deferred1_1;
|
|
1747
|
+
try {
|
|
1748
|
+
const ret = wasm.pubkyapppost_kind(this.__wbg_ptr);
|
|
1749
|
+
deferred1_0 = ret[0];
|
|
1750
|
+
deferred1_1 = ret[1];
|
|
1751
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1752
|
+
} finally {
|
|
1753
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1754
|
+
}
|
|
1542
1755
|
}
|
|
1543
1756
|
/**
|
|
1544
1757
|
* @returns {string | undefined}
|
|
@@ -1618,6 +1831,7 @@ export class PubkyAppPost {
|
|
|
1618
1831
|
return this;
|
|
1619
1832
|
}
|
|
1620
1833
|
}
|
|
1834
|
+
module.exports.PubkyAppPost = PubkyAppPost;
|
|
1621
1835
|
|
|
1622
1836
|
const PubkyAppPostEmbedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1623
1837
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1625,7 +1839,7 @@ const PubkyAppPostEmbedFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
1625
1839
|
/**
|
|
1626
1840
|
* Represents embedded content within a post
|
|
1627
1841
|
*/
|
|
1628
|
-
|
|
1842
|
+
class PubkyAppPostEmbed {
|
|
1629
1843
|
|
|
1630
1844
|
static __wrap(ptr) {
|
|
1631
1845
|
ptr = ptr >>> 0;
|
|
@@ -1659,11 +1873,19 @@ export class PubkyAppPostEmbed {
|
|
|
1659
1873
|
return this;
|
|
1660
1874
|
}
|
|
1661
1875
|
/**
|
|
1662
|
-
* @returns {
|
|
1876
|
+
* @returns {string}
|
|
1663
1877
|
*/
|
|
1664
1878
|
get kind() {
|
|
1665
|
-
|
|
1666
|
-
|
|
1879
|
+
let deferred1_0;
|
|
1880
|
+
let deferred1_1;
|
|
1881
|
+
try {
|
|
1882
|
+
const ret = wasm.pubkyapppostembed_kind(this.__wbg_ptr);
|
|
1883
|
+
deferred1_0 = ret[0];
|
|
1884
|
+
deferred1_1 = ret[1];
|
|
1885
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1886
|
+
} finally {
|
|
1887
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1888
|
+
}
|
|
1667
1889
|
}
|
|
1668
1890
|
/**
|
|
1669
1891
|
* @returns {string}
|
|
@@ -1681,6 +1903,7 @@ export class PubkyAppPostEmbed {
|
|
|
1681
1903
|
}
|
|
1682
1904
|
}
|
|
1683
1905
|
}
|
|
1906
|
+
module.exports.PubkyAppPostEmbed = PubkyAppPostEmbed;
|
|
1684
1907
|
|
|
1685
1908
|
const PubkyAppTagFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1686
1909
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1695,7 +1918,7 @@ const PubkyAppTagFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1695
1918
|
*
|
|
1696
1919
|
* Where tag_id is Crockford-base32(Blake3("{uri_tagged}:{label}")[:half])
|
|
1697
1920
|
*/
|
|
1698
|
-
|
|
1921
|
+
class PubkyAppTag {
|
|
1699
1922
|
|
|
1700
1923
|
static __wrap(ptr) {
|
|
1701
1924
|
ptr = ptr >>> 0;
|
|
@@ -1784,6 +2007,7 @@ export class PubkyAppTag {
|
|
|
1784
2007
|
}
|
|
1785
2008
|
}
|
|
1786
2009
|
}
|
|
2010
|
+
module.exports.PubkyAppTag = PubkyAppTag;
|
|
1787
2011
|
|
|
1788
2012
|
const PubkyAppUserFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1789
2013
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1791,7 +2015,7 @@ const PubkyAppUserFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1791
2015
|
/**
|
|
1792
2016
|
* URI: /pub/pubky.app/profile.json
|
|
1793
2017
|
*/
|
|
1794
|
-
|
|
2018
|
+
class PubkyAppUser {
|
|
1795
2019
|
|
|
1796
2020
|
static __wrap(ptr) {
|
|
1797
2021
|
ptr = ptr >>> 0;
|
|
@@ -1921,6 +2145,7 @@ export class PubkyAppUser {
|
|
|
1921
2145
|
return this;
|
|
1922
2146
|
}
|
|
1923
2147
|
}
|
|
2148
|
+
module.exports.PubkyAppUser = PubkyAppUser;
|
|
1924
2149
|
|
|
1925
2150
|
const PubkyAppUserLinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1926
2151
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1928,7 +2153,7 @@ const PubkyAppUserLinkFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
1928
2153
|
/**
|
|
1929
2154
|
* Represents a user's single link with a title and URL.
|
|
1930
2155
|
*/
|
|
1931
|
-
|
|
2156
|
+
class PubkyAppUserLink {
|
|
1932
2157
|
|
|
1933
2158
|
static __wrap(ptr) {
|
|
1934
2159
|
ptr = ptr >>> 0;
|
|
@@ -2002,6 +2227,7 @@ export class PubkyAppUserLink {
|
|
|
2002
2227
|
return this;
|
|
2003
2228
|
}
|
|
2004
2229
|
}
|
|
2230
|
+
module.exports.PubkyAppUserLink = PubkyAppUserLink;
|
|
2005
2231
|
|
|
2006
2232
|
const PubkyIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2007
2233
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2009,7 +2235,7 @@ const PubkyIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
2009
2235
|
/**
|
|
2010
2236
|
* Represents user data with name, bio, image, links, and status.
|
|
2011
2237
|
*/
|
|
2012
|
-
|
|
2238
|
+
class PubkyId {
|
|
2013
2239
|
|
|
2014
2240
|
__destroy_into_raw() {
|
|
2015
2241
|
const ptr = this.__wbg_ptr;
|
|
@@ -2023,6 +2249,7 @@ export class PubkyId {
|
|
|
2023
2249
|
wasm.__wbg_pubkyid_free(ptr, 0);
|
|
2024
2250
|
}
|
|
2025
2251
|
}
|
|
2252
|
+
module.exports.PubkyId = PubkyId;
|
|
2026
2253
|
|
|
2027
2254
|
const PubkySpecsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2028
2255
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2030,7 +2257,7 @@ const PubkySpecsBuilderFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
2030
2257
|
/**
|
|
2031
2258
|
* Represents a user's single link with a title and URL.
|
|
2032
2259
|
*/
|
|
2033
|
-
|
|
2260
|
+
class PubkySpecsBuilder {
|
|
2034
2261
|
|
|
2035
2262
|
__destroy_into_raw() {
|
|
2036
2263
|
const ptr = this.__wbg_ptr;
|
|
@@ -2250,12 +2477,13 @@ export class PubkySpecsBuilder {
|
|
|
2250
2477
|
return BlobResult.__wrap(ret[0]);
|
|
2251
2478
|
}
|
|
2252
2479
|
}
|
|
2480
|
+
module.exports.PubkySpecsBuilder = PubkySpecsBuilder;
|
|
2253
2481
|
|
|
2254
2482
|
const TagResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2255
2483
|
? { register: () => {}, unregister: () => {} }
|
|
2256
2484
|
: new FinalizationRegistry(ptr => wasm.__wbg_tagresult_free(ptr >>> 0, 1));
|
|
2257
2485
|
|
|
2258
|
-
|
|
2486
|
+
class TagResult {
|
|
2259
2487
|
|
|
2260
2488
|
static __wrap(ptr) {
|
|
2261
2489
|
ptr = ptr >>> 0;
|
|
@@ -2291,12 +2519,13 @@ export class TagResult {
|
|
|
2291
2519
|
return Meta.__wrap(ret);
|
|
2292
2520
|
}
|
|
2293
2521
|
}
|
|
2522
|
+
module.exports.TagResult = TagResult;
|
|
2294
2523
|
|
|
2295
2524
|
const UserResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2296
2525
|
? { register: () => {}, unregister: () => {} }
|
|
2297
2526
|
: new FinalizationRegistry(ptr => wasm.__wbg_userresult_free(ptr >>> 0, 1));
|
|
2298
2527
|
|
|
2299
|
-
|
|
2528
|
+
class UserResult {
|
|
2300
2529
|
|
|
2301
2530
|
static __wrap(ptr) {
|
|
2302
2531
|
ptr = ptr >>> 0;
|
|
@@ -2332,346 +2561,300 @@ export class UserResult {
|
|
|
2332
2561
|
return Meta.__wrap(ret);
|
|
2333
2562
|
}
|
|
2334
2563
|
}
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
}
|
|
2385
|
-
|
|
2386
|
-
const ret = arg0.done;
|
|
2387
|
-
return ret;
|
|
2388
|
-
};
|
|
2389
|
-
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
2390
|
-
const ret = Object.entries(arg0);
|
|
2391
|
-
return ret;
|
|
2392
|
-
};
|
|
2393
|
-
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
2394
|
-
const ret = Reflect.get(arg0, arg1);
|
|
2395
|
-
return ret;
|
|
2396
|
-
}, arguments) };
|
|
2397
|
-
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
2398
|
-
const ret = arg0[arg1 >>> 0];
|
|
2399
|
-
return ret;
|
|
2400
|
-
};
|
|
2401
|
-
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
2402
|
-
const ret = arg0[arg1];
|
|
2403
|
-
return ret;
|
|
2404
|
-
};
|
|
2405
|
-
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
2406
|
-
let result;
|
|
2407
|
-
try {
|
|
2408
|
-
result = arg0 instanceof ArrayBuffer;
|
|
2409
|
-
} catch (_) {
|
|
2410
|
-
result = false;
|
|
2411
|
-
}
|
|
2412
|
-
const ret = result;
|
|
2413
|
-
return ret;
|
|
2414
|
-
};
|
|
2415
|
-
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
2416
|
-
let result;
|
|
2417
|
-
try {
|
|
2418
|
-
result = arg0 instanceof Uint8Array;
|
|
2419
|
-
} catch (_) {
|
|
2420
|
-
result = false;
|
|
2421
|
-
}
|
|
2422
|
-
const ret = result;
|
|
2423
|
-
return ret;
|
|
2424
|
-
};
|
|
2425
|
-
imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
2426
|
-
const ret = Array.isArray(arg0);
|
|
2427
|
-
return ret;
|
|
2428
|
-
};
|
|
2429
|
-
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
2430
|
-
const ret = Number.isSafeInteger(arg0);
|
|
2431
|
-
return ret;
|
|
2432
|
-
};
|
|
2433
|
-
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
2434
|
-
const ret = Symbol.iterator;
|
|
2435
|
-
return ret;
|
|
2436
|
-
};
|
|
2437
|
-
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
2438
|
-
const ret = arg0.length;
|
|
2439
|
-
return ret;
|
|
2440
|
-
};
|
|
2441
|
-
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
2442
|
-
const ret = arg0.length;
|
|
2443
|
-
return ret;
|
|
2444
|
-
};
|
|
2445
|
-
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
2446
|
-
const ret = new Object();
|
|
2447
|
-
return ret;
|
|
2448
|
-
};
|
|
2449
|
-
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
2450
|
-
const ret = new Array();
|
|
2451
|
-
return ret;
|
|
2452
|
-
};
|
|
2453
|
-
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
2454
|
-
const ret = new Uint8Array(arg0);
|
|
2455
|
-
return ret;
|
|
2456
|
-
};
|
|
2457
|
-
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
2458
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
2459
|
-
return ret;
|
|
2460
|
-
};
|
|
2461
|
-
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
2462
|
-
const ret = arg0.next;
|
|
2463
|
-
return ret;
|
|
2464
|
-
};
|
|
2465
|
-
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
2466
|
-
const ret = arg0.next();
|
|
2467
|
-
return ret;
|
|
2468
|
-
}, arguments) };
|
|
2469
|
-
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
2470
|
-
const ret = Date.now();
|
|
2471
|
-
return ret;
|
|
2472
|
-
};
|
|
2473
|
-
imports.wbg.__wbg_pubkyappuserlink_new = function(arg0) {
|
|
2474
|
-
const ret = PubkyAppUserLink.__wrap(arg0);
|
|
2475
|
-
return ret;
|
|
2476
|
-
};
|
|
2477
|
-
imports.wbg.__wbg_pubkyappuserlink_unwrap = function(arg0) {
|
|
2478
|
-
const ret = PubkyAppUserLink.__unwrap(arg0);
|
|
2479
|
-
return ret;
|
|
2480
|
-
};
|
|
2481
|
-
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
2482
|
-
arg0[arg1 >>> 0] = arg2;
|
|
2483
|
-
};
|
|
2484
|
-
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
2485
|
-
arg0[arg1] = arg2;
|
|
2486
|
-
};
|
|
2487
|
-
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
2488
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
2489
|
-
};
|
|
2490
|
-
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
2491
|
-
const ret = arg0.value;
|
|
2492
|
-
return ret;
|
|
2493
|
-
};
|
|
2494
|
-
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
2495
|
-
const ret = +arg0;
|
|
2496
|
-
return ret;
|
|
2497
|
-
};
|
|
2498
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
2499
|
-
const ret = arg0;
|
|
2500
|
-
return ret;
|
|
2501
|
-
};
|
|
2502
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2503
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2504
|
-
return ret;
|
|
2505
|
-
};
|
|
2506
|
-
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
2507
|
-
const v = arg1;
|
|
2508
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2509
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2510
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2511
|
-
};
|
|
2512
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
2513
|
-
const v = arg0;
|
|
2514
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
2515
|
-
return ret;
|
|
2516
|
-
};
|
|
2517
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
2518
|
-
const ret = debugString(arg1);
|
|
2519
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2520
|
-
const len1 = WASM_VECTOR_LEN;
|
|
2521
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2522
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2523
|
-
};
|
|
2524
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2525
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2526
|
-
return ret;
|
|
2527
|
-
};
|
|
2528
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2529
|
-
const ret = arg0 in arg1;
|
|
2530
|
-
return ret;
|
|
2531
|
-
};
|
|
2532
|
-
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
2533
|
-
const table = wasm.__wbindgen_export_4;
|
|
2534
|
-
const offset = table.grow(4);
|
|
2535
|
-
table.set(0, undefined);
|
|
2536
|
-
table.set(offset + 0, undefined);
|
|
2537
|
-
table.set(offset + 1, null);
|
|
2538
|
-
table.set(offset + 2, true);
|
|
2539
|
-
table.set(offset + 3, false);
|
|
2540
|
-
;
|
|
2541
|
-
};
|
|
2542
|
-
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
2543
|
-
const ret = typeof(arg0) === 'bigint';
|
|
2544
|
-
return ret;
|
|
2545
|
-
};
|
|
2546
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
2547
|
-
const ret = typeof(arg0) === 'function';
|
|
2548
|
-
return ret;
|
|
2549
|
-
};
|
|
2550
|
-
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
2551
|
-
const ret = arg0 === null;
|
|
2552
|
-
return ret;
|
|
2553
|
-
};
|
|
2554
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2555
|
-
const val = arg0;
|
|
2556
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2557
|
-
return ret;
|
|
2558
|
-
};
|
|
2559
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
2560
|
-
const ret = typeof(arg0) === 'string';
|
|
2561
|
-
return ret;
|
|
2562
|
-
};
|
|
2563
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2564
|
-
const ret = arg0 === undefined;
|
|
2565
|
-
return ret;
|
|
2566
|
-
};
|
|
2567
|
-
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
2568
|
-
const ret = arg0 === arg1;
|
|
2569
|
-
return ret;
|
|
2570
|
-
};
|
|
2571
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2572
|
-
const ret = arg0 == arg1;
|
|
2573
|
-
return ret;
|
|
2574
|
-
};
|
|
2575
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
2576
|
-
const ret = wasm.memory;
|
|
2577
|
-
return ret;
|
|
2578
|
-
};
|
|
2579
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
2580
|
-
const obj = arg1;
|
|
2581
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2582
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2583
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2584
|
-
};
|
|
2585
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
2586
|
-
const ret = arg0;
|
|
2587
|
-
return ret;
|
|
2588
|
-
};
|
|
2589
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2590
|
-
const obj = arg1;
|
|
2591
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2592
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2593
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2594
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2595
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2596
|
-
};
|
|
2597
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2598
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2599
|
-
return ret;
|
|
2600
|
-
};
|
|
2601
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
2602
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2603
|
-
};
|
|
2604
|
-
|
|
2605
|
-
return imports;
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
function __wbg_init_memory(imports, memory) {
|
|
2609
|
-
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
function __wbg_finalize_init(instance, module) {
|
|
2613
|
-
wasm = instance.exports;
|
|
2614
|
-
__wbg_init.__wbindgen_wasm_module = module;
|
|
2615
|
-
cachedDataViewMemory0 = null;
|
|
2616
|
-
cachedUint8ArrayMemory0 = null;
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
wasm.__wbindgen_start();
|
|
2620
|
-
return wasm;
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
function initSync(module) {
|
|
2624
|
-
if (wasm !== undefined) return wasm;
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
if (typeof module !== 'undefined') {
|
|
2628
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2629
|
-
({module} = module)
|
|
2630
|
-
} else {
|
|
2631
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
|
-
const imports = __wbg_get_imports();
|
|
2636
|
-
|
|
2637
|
-
__wbg_init_memory(imports);
|
|
2638
|
-
|
|
2639
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
2640
|
-
module = new WebAssembly.Module(module);
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
2644
|
-
|
|
2645
|
-
return __wbg_finalize_init(instance, module);
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
async function __wbg_init(module_or_path) {
|
|
2649
|
-
if (wasm !== undefined) return wasm;
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
if (typeof module_or_path !== 'undefined') {
|
|
2653
|
-
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2654
|
-
({module_or_path} = module_or_path)
|
|
2655
|
-
} else {
|
|
2656
|
-
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
|
-
if (typeof module_or_path === 'undefined') {
|
|
2661
|
-
module_or_path = new URL('pubky_app_specs_bg.wasm', import.meta.url);
|
|
2662
|
-
}
|
|
2663
|
-
const imports = __wbg_get_imports();
|
|
2664
|
-
|
|
2665
|
-
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2666
|
-
module_or_path = fetch(module_or_path);
|
|
2564
|
+
module.exports.UserResult = UserResult;
|
|
2565
|
+
|
|
2566
|
+
module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
2567
|
+
const ret = String(arg1);
|
|
2568
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2569
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2570
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2571
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2572
|
+
};
|
|
2573
|
+
|
|
2574
|
+
module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
2575
|
+
const ret = arg0.buffer;
|
|
2576
|
+
return ret;
|
|
2577
|
+
};
|
|
2578
|
+
|
|
2579
|
+
module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
2580
|
+
const ret = arg0.call(arg1);
|
|
2581
|
+
return ret;
|
|
2582
|
+
}, arguments) };
|
|
2583
|
+
|
|
2584
|
+
module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
2585
|
+
const ret = arg0.done;
|
|
2586
|
+
return ret;
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
module.exports.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
2590
|
+
const ret = Object.entries(arg0);
|
|
2591
|
+
return ret;
|
|
2592
|
+
};
|
|
2593
|
+
|
|
2594
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
2595
|
+
const ret = Reflect.get(arg0, arg1);
|
|
2596
|
+
return ret;
|
|
2597
|
+
}, arguments) };
|
|
2598
|
+
|
|
2599
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
2600
|
+
const ret = arg0[arg1 >>> 0];
|
|
2601
|
+
return ret;
|
|
2602
|
+
};
|
|
2603
|
+
|
|
2604
|
+
module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
2605
|
+
const ret = arg0[arg1];
|
|
2606
|
+
return ret;
|
|
2607
|
+
};
|
|
2608
|
+
|
|
2609
|
+
module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
2610
|
+
let result;
|
|
2611
|
+
try {
|
|
2612
|
+
result = arg0 instanceof ArrayBuffer;
|
|
2613
|
+
} catch (_) {
|
|
2614
|
+
result = false;
|
|
2667
2615
|
}
|
|
2616
|
+
const ret = result;
|
|
2617
|
+
return ret;
|
|
2618
|
+
};
|
|
2668
2619
|
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2620
|
+
module.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
2621
|
+
let result;
|
|
2622
|
+
try {
|
|
2623
|
+
result = arg0 instanceof Uint8Array;
|
|
2624
|
+
} catch (_) {
|
|
2625
|
+
result = false;
|
|
2626
|
+
}
|
|
2627
|
+
const ret = result;
|
|
2628
|
+
return ret;
|
|
2629
|
+
};
|
|
2630
|
+
|
|
2631
|
+
module.exports.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
2632
|
+
const ret = Array.isArray(arg0);
|
|
2633
|
+
return ret;
|
|
2634
|
+
};
|
|
2635
|
+
|
|
2636
|
+
module.exports.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
2637
|
+
const ret = Number.isSafeInteger(arg0);
|
|
2638
|
+
return ret;
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
module.exports.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
2642
|
+
const ret = Symbol.iterator;
|
|
2643
|
+
return ret;
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2646
|
+
module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
2647
|
+
const ret = arg0.length;
|
|
2648
|
+
return ret;
|
|
2649
|
+
};
|
|
2650
|
+
|
|
2651
|
+
module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
2652
|
+
const ret = arg0.length;
|
|
2653
|
+
return ret;
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
module.exports.__wbg_new_405e22f390576ce2 = function() {
|
|
2657
|
+
const ret = new Object();
|
|
2658
|
+
return ret;
|
|
2659
|
+
};
|
|
2660
|
+
|
|
2661
|
+
module.exports.__wbg_new_78feb108b6472713 = function() {
|
|
2662
|
+
const ret = new Array();
|
|
2663
|
+
return ret;
|
|
2664
|
+
};
|
|
2665
|
+
|
|
2666
|
+
module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
2667
|
+
const ret = new Uint8Array(arg0);
|
|
2668
|
+
return ret;
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2671
|
+
module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
2672
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
2673
|
+
return ret;
|
|
2674
|
+
};
|
|
2675
|
+
|
|
2676
|
+
module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
2677
|
+
const ret = arg0.next;
|
|
2678
|
+
return ret;
|
|
2679
|
+
};
|
|
2680
|
+
|
|
2681
|
+
module.exports.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
2682
|
+
const ret = arg0.next();
|
|
2683
|
+
return ret;
|
|
2684
|
+
}, arguments) };
|
|
2685
|
+
|
|
2686
|
+
module.exports.__wbg_now_807e54c39636c349 = function() {
|
|
2687
|
+
const ret = Date.now();
|
|
2688
|
+
return ret;
|
|
2689
|
+
};
|
|
2690
|
+
|
|
2691
|
+
module.exports.__wbg_pubkyappuserlink_new = function(arg0) {
|
|
2692
|
+
const ret = PubkyAppUserLink.__wrap(arg0);
|
|
2693
|
+
return ret;
|
|
2694
|
+
};
|
|
2695
|
+
|
|
2696
|
+
module.exports.__wbg_pubkyappuserlink_unwrap = function(arg0) {
|
|
2697
|
+
const ret = PubkyAppUserLink.__unwrap(arg0);
|
|
2698
|
+
return ret;
|
|
2699
|
+
};
|
|
2700
|
+
|
|
2701
|
+
module.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
2702
|
+
arg0[arg1 >>> 0] = arg2;
|
|
2703
|
+
};
|
|
2704
|
+
|
|
2705
|
+
module.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
2706
|
+
arg0[arg1] = arg2;
|
|
2707
|
+
};
|
|
2708
|
+
|
|
2709
|
+
module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
2710
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
2711
|
+
};
|
|
2712
|
+
|
|
2713
|
+
module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
2714
|
+
const ret = arg0.value;
|
|
2715
|
+
return ret;
|
|
2716
|
+
};
|
|
2717
|
+
|
|
2718
|
+
module.exports.__wbindgen_as_number = function(arg0) {
|
|
2719
|
+
const ret = +arg0;
|
|
2720
|
+
return ret;
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
2724
|
+
const ret = arg0;
|
|
2725
|
+
return ret;
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2729
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2730
|
+
return ret;
|
|
2731
|
+
};
|
|
2732
|
+
|
|
2733
|
+
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
2734
|
+
const v = arg1;
|
|
2735
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2736
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2737
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2740
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
2741
|
+
const v = arg0;
|
|
2742
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
2743
|
+
return ret;
|
|
2744
|
+
};
|
|
2745
|
+
|
|
2746
|
+
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
2747
|
+
const ret = debugString(arg1);
|
|
2748
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2749
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2750
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2751
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2752
|
+
};
|
|
2753
|
+
|
|
2754
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2755
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2756
|
+
return ret;
|
|
2757
|
+
};
|
|
2758
|
+
|
|
2759
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2760
|
+
const ret = arg0 in arg1;
|
|
2761
|
+
return ret;
|
|
2762
|
+
};
|
|
2763
|
+
|
|
2764
|
+
module.exports.__wbindgen_init_externref_table = function() {
|
|
2765
|
+
const table = wasm.__wbindgen_export_4;
|
|
2766
|
+
const offset = table.grow(4);
|
|
2767
|
+
table.set(0, undefined);
|
|
2768
|
+
table.set(offset + 0, undefined);
|
|
2769
|
+
table.set(offset + 1, null);
|
|
2770
|
+
table.set(offset + 2, true);
|
|
2771
|
+
table.set(offset + 3, false);
|
|
2772
|
+
;
|
|
2773
|
+
};
|
|
2774
|
+
|
|
2775
|
+
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
2776
|
+
const ret = typeof(arg0) === 'bigint';
|
|
2777
|
+
return ret;
|
|
2778
|
+
};
|
|
2779
|
+
|
|
2780
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
2781
|
+
const ret = typeof(arg0) === 'function';
|
|
2782
|
+
return ret;
|
|
2783
|
+
};
|
|
2784
|
+
|
|
2785
|
+
module.exports.__wbindgen_is_null = function(arg0) {
|
|
2786
|
+
const ret = arg0 === null;
|
|
2787
|
+
return ret;
|
|
2788
|
+
};
|
|
2789
|
+
|
|
2790
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2791
|
+
const val = arg0;
|
|
2792
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2793
|
+
return ret;
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2796
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
2797
|
+
const ret = typeof(arg0) === 'string';
|
|
2798
|
+
return ret;
|
|
2799
|
+
};
|
|
2800
|
+
|
|
2801
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2802
|
+
const ret = arg0 === undefined;
|
|
2803
|
+
return ret;
|
|
2804
|
+
};
|
|
2805
|
+
|
|
2806
|
+
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
2807
|
+
const ret = arg0 === arg1;
|
|
2808
|
+
return ret;
|
|
2809
|
+
};
|
|
2810
|
+
|
|
2811
|
+
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2812
|
+
const ret = arg0 == arg1;
|
|
2813
|
+
return ret;
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
module.exports.__wbindgen_memory = function() {
|
|
2817
|
+
const ret = wasm.memory;
|
|
2818
|
+
return ret;
|
|
2819
|
+
};
|
|
2820
|
+
|
|
2821
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
2822
|
+
const obj = arg1;
|
|
2823
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2824
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2825
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2828
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
2829
|
+
const ret = arg0;
|
|
2830
|
+
return ret;
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2834
|
+
const obj = arg1;
|
|
2835
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2836
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2837
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2838
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2839
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2840
|
+
};
|
|
2841
|
+
|
|
2842
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2843
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2844
|
+
return ret;
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2847
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
2848
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2849
|
+
};
|
|
2850
|
+
|
|
2851
|
+
const path = require('path').join(__dirname, 'pubky_app_specs_bg.wasm');
|
|
2852
|
+
const bytes = require('fs').readFileSync(path);
|
|
2853
|
+
|
|
2854
|
+
const wasmModule = new WebAssembly.Module(bytes);
|
|
2855
|
+
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
2856
|
+
wasm = wasmInstance.exports;
|
|
2857
|
+
module.exports.__wasm = wasm;
|
|
2858
|
+
|
|
2859
|
+
wasm.__wbindgen_start();
|
|
2675
2860
|
|
|
2676
|
-
export { initSync };
|
|
2677
|
-
export default __wbg_init;
|