@minip2p/react-native 0.4.5 → 0.4.7
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/Minip2p.podspec +1 -1
- package/android/src/main/java/com/minip2p/Minip2pPackage.kt +2 -2
- package/android/src/main/jniLibs/arm64-v8a/libminip2p_ffi.so +0 -0
- package/android/src/main/jniLibs/x86_64/libminip2p_ffi.so +0 -0
- package/build/Minip2pFfi.xcframework/ios-arm64/libminip2p_ffi.a +0 -0
- package/build/Minip2pFfi.xcframework/ios-arm64-simulator/libminip2p_ffi.a +0 -0
- package/cpp/generated/minip2p_ffi.cpp +263 -205
- package/cpp/generated/minip2p_ffi.hpp +8 -6
- package/lib/module/adapter.js +11 -10
- package/lib/module/adapter.js.map +1 -1
- package/lib/module/event-drain.js +71 -0
- package/lib/module/event-drain.js.map +1 -0
- package/lib/module/generated/minip2p_ffi-ffi.js.map +1 -1
- package/lib/module/generated/minip2p_ffi.js +665 -693
- package/lib/module/generated/minip2p_ffi.js.map +1 -1
- package/lib/typescript/src/NativeMinip2p.d.ts.map +1 -1
- package/lib/typescript/src/adapter.d.ts.map +1 -1
- package/lib/typescript/src/event-drain.d.ts +10 -0
- package/lib/typescript/src/event-drain.d.ts.map +1 -0
- package/lib/typescript/src/generated/minip2p_ffi-ffi.d.ts +16 -14
- package/lib/typescript/src/generated/minip2p_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/src/generated/minip2p_ffi.d.ts +785 -782
- package/lib/typescript/src/generated/minip2p_ffi.d.ts.map +1 -1
- package/lib/typescript/src/hook-lifecycle.d.ts.map +1 -1
- package/lib/typescript/src/hooks.d.ts.map +1 -1
- package/lib/typescript/src/native.d.ts.map +1 -1
- package/lib/typescript/tests/adapter-event-drain.test.d.ts +2 -0
- package/lib/typescript/tests/adapter-event-drain.test.d.ts.map +1 -0
- package/lib/typescript/tests/event-drain.test.d.ts +2 -0
- package/lib/typescript/tests/event-drain.test.d.ts.map +1 -0
- package/lib/typescript/vitest.built.config.d.ts +3 -0
- package/lib/typescript/vitest.built.config.d.ts.map +1 -0
- package/package.json +18 -18
- package/src/adapter.ts +15 -11
- package/src/event-drain.ts +80 -0
- package/src/generated/minip2p_ffi-ffi.ts +16 -14
- package/src/generated/minip2p_ffi.ts +665 -705
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { type UniffiByteArray, type UniffiGcObject, type UniffiHandle, FfiConverterObject, FfiConverterObjectWithCallbacks,
|
|
1
|
+
import { type UniffiByteArray, type UniffiGcObject, type UniffiHandle, Cursor, FfiConverterObject, FfiConverterObjectWithCallbacks, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "@ubjs/core";
|
|
2
2
|
/**
|
|
3
3
|
* Builds a circuit multiaddress for `peer_id` through `relay_addr`.
|
|
4
|
-
*
|
|
5
|
-
* `relay_addr` is any direct `/quic-v1` or `/tcp` peer address.
|
|
6
4
|
*/
|
|
7
5
|
export declare function circuitAddress(relayAddr: string, peerId: string): string;
|
|
8
6
|
/**
|
|
@@ -173,8 +171,8 @@ export type EndpointConfig = {
|
|
|
173
171
|
* Generated factory for {@link EndpointConfig} record objects.
|
|
174
172
|
*/
|
|
175
173
|
export declare const EndpointConfig: Readonly<{
|
|
176
|
-
create: (partial: Partial<EndpointConfig> & Required<Omit<EndpointConfig, "
|
|
177
|
-
new: (partial: Partial<EndpointConfig> & Required<Omit<EndpointConfig, "
|
|
174
|
+
create: (partial: Partial<EndpointConfig> & Required<Omit<EndpointConfig, "agentVersion" | "discovery" | "mdns" | "quic" | "tcp">>) => EndpointConfig;
|
|
175
|
+
new: (partial: Partial<EndpointConfig> & Required<Omit<EndpointConfig, "agentVersion" | "discovery" | "mdns" | "quic" | "tcp">>) => EndpointConfig;
|
|
178
176
|
defaults: () => Partial<EndpointConfig>;
|
|
179
177
|
}>;
|
|
180
178
|
/**
|
|
@@ -210,8 +208,8 @@ export type IdentifyInfo = {
|
|
|
210
208
|
* Generated factory for {@link IdentifyInfo} record objects.
|
|
211
209
|
*/
|
|
212
210
|
export declare const IdentifyInfo: Readonly<{
|
|
213
|
-
create: (partial: Partial<IdentifyInfo> & Required<Omit<IdentifyInfo, "agentVersion" | "
|
|
214
|
-
new: (partial: Partial<IdentifyInfo> & Required<Omit<IdentifyInfo, "agentVersion" | "
|
|
211
|
+
create: (partial: Partial<IdentifyInfo> & Required<Omit<IdentifyInfo, "agentVersion" | "observedAddr" | "protocolVersion" | "publicKey">>) => IdentifyInfo;
|
|
212
|
+
new: (partial: Partial<IdentifyInfo> & Required<Omit<IdentifyInfo, "agentVersion" | "observedAddr" | "protocolVersion" | "publicKey">>) => IdentifyInfo;
|
|
215
213
|
defaults: () => Partial<IdentifyInfo>;
|
|
216
214
|
}>;
|
|
217
215
|
/**
|
|
@@ -390,119 +388,125 @@ export declare const FfiError: Readonly<{
|
|
|
390
388
|
instanceOf: (obj: any) => obj is FfiError;
|
|
391
389
|
AlreadyStarted: {
|
|
392
390
|
new (): {
|
|
393
|
-
readonly tag: FfiError_Tags.AlreadyStarted;
|
|
394
391
|
/**
|
|
395
392
|
* @private
|
|
396
393
|
* This field is private and should not be used, use `tag` instead.
|
|
397
394
|
*/
|
|
398
395
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
396
|
+
readonly tag: FfiError_Tags.AlreadyStarted;
|
|
399
397
|
name: string;
|
|
400
398
|
message: string;
|
|
401
399
|
stack?: string;
|
|
402
400
|
cause?: unknown;
|
|
403
401
|
};
|
|
404
402
|
"new"(): {
|
|
405
|
-
readonly tag: FfiError_Tags.AlreadyStarted;
|
|
406
403
|
/**
|
|
407
404
|
* @private
|
|
408
405
|
* This field is private and should not be used, use `tag` instead.
|
|
409
406
|
*/
|
|
410
407
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
408
|
+
readonly tag: FfiError_Tags.AlreadyStarted;
|
|
411
409
|
name: string;
|
|
412
410
|
message: string;
|
|
413
411
|
stack?: string;
|
|
414
412
|
cause?: unknown;
|
|
415
413
|
};
|
|
416
414
|
instanceOf(obj: any): obj is {
|
|
417
|
-
readonly tag: FfiError_Tags.AlreadyStarted;
|
|
418
415
|
/**
|
|
419
416
|
* @private
|
|
420
417
|
* This field is private and should not be used, use `tag` instead.
|
|
421
418
|
*/
|
|
422
419
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
420
|
+
readonly tag: FfiError_Tags.AlreadyStarted;
|
|
423
421
|
name: string;
|
|
424
422
|
message: string;
|
|
425
423
|
stack?: string;
|
|
426
424
|
cause?: unknown;
|
|
427
425
|
};
|
|
428
426
|
hasInner(obj: any): obj is {
|
|
429
|
-
readonly tag: FfiError_Tags.AlreadyStarted;
|
|
430
427
|
/**
|
|
431
428
|
* @private
|
|
432
429
|
* This field is private and should not be used, use `tag` instead.
|
|
433
430
|
*/
|
|
434
431
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
432
|
+
readonly tag: FfiError_Tags.AlreadyStarted;
|
|
435
433
|
name: string;
|
|
436
434
|
message: string;
|
|
437
435
|
stack?: string;
|
|
438
436
|
cause?: unknown;
|
|
439
437
|
};
|
|
440
438
|
isError(error: unknown): error is Error;
|
|
439
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
440
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
441
|
+
stackTraceLimit: number;
|
|
441
442
|
};
|
|
442
443
|
Stopped: {
|
|
443
444
|
new (): {
|
|
444
|
-
readonly tag: FfiError_Tags.Stopped;
|
|
445
445
|
/**
|
|
446
446
|
* @private
|
|
447
447
|
* This field is private and should not be used, use `tag` instead.
|
|
448
448
|
*/
|
|
449
449
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
450
|
+
readonly tag: FfiError_Tags.Stopped;
|
|
450
451
|
name: string;
|
|
451
452
|
message: string;
|
|
452
453
|
stack?: string;
|
|
453
454
|
cause?: unknown;
|
|
454
455
|
};
|
|
455
456
|
"new"(): {
|
|
456
|
-
readonly tag: FfiError_Tags.Stopped;
|
|
457
457
|
/**
|
|
458
458
|
* @private
|
|
459
459
|
* This field is private and should not be used, use `tag` instead.
|
|
460
460
|
*/
|
|
461
461
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
462
|
+
readonly tag: FfiError_Tags.Stopped;
|
|
462
463
|
name: string;
|
|
463
464
|
message: string;
|
|
464
465
|
stack?: string;
|
|
465
466
|
cause?: unknown;
|
|
466
467
|
};
|
|
467
468
|
instanceOf(obj: any): obj is {
|
|
468
|
-
readonly tag: FfiError_Tags.Stopped;
|
|
469
469
|
/**
|
|
470
470
|
* @private
|
|
471
471
|
* This field is private and should not be used, use `tag` instead.
|
|
472
472
|
*/
|
|
473
473
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
474
|
+
readonly tag: FfiError_Tags.Stopped;
|
|
474
475
|
name: string;
|
|
475
476
|
message: string;
|
|
476
477
|
stack?: string;
|
|
477
478
|
cause?: unknown;
|
|
478
479
|
};
|
|
479
480
|
hasInner(obj: any): obj is {
|
|
480
|
-
readonly tag: FfiError_Tags.Stopped;
|
|
481
481
|
/**
|
|
482
482
|
* @private
|
|
483
483
|
* This field is private and should not be used, use `tag` instead.
|
|
484
484
|
*/
|
|
485
485
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
486
|
+
readonly tag: FfiError_Tags.Stopped;
|
|
486
487
|
name: string;
|
|
487
488
|
message: string;
|
|
488
489
|
stack?: string;
|
|
489
490
|
cause?: unknown;
|
|
490
491
|
};
|
|
491
492
|
isError(error: unknown): error is Error;
|
|
493
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
494
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
495
|
+
stackTraceLimit: number;
|
|
492
496
|
};
|
|
493
497
|
InvalidConfig: {
|
|
494
498
|
new (inner: {
|
|
495
499
|
detail: string;
|
|
496
500
|
}): {
|
|
497
|
-
readonly tag: FfiError_Tags.InvalidConfig;
|
|
498
|
-
readonly inner: Readonly<{
|
|
499
|
-
detail: string;
|
|
500
|
-
}>;
|
|
501
501
|
/**
|
|
502
502
|
* @private
|
|
503
503
|
* This field is private and should not be used, use `tag` instead.
|
|
504
504
|
*/
|
|
505
505
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
506
|
+
readonly tag: FfiError_Tags.InvalidConfig;
|
|
507
|
+
readonly inner: Readonly<{
|
|
508
|
+
detail: string;
|
|
509
|
+
}>;
|
|
506
510
|
name: string;
|
|
507
511
|
message: string;
|
|
508
512
|
stack?: string;
|
|
@@ -511,60 +515,60 @@ export declare const FfiError: Readonly<{
|
|
|
511
515
|
"new"(inner: {
|
|
512
516
|
detail: string;
|
|
513
517
|
}): {
|
|
514
|
-
readonly tag: FfiError_Tags.InvalidConfig;
|
|
515
|
-
readonly inner: Readonly<{
|
|
516
|
-
detail: string;
|
|
517
|
-
}>;
|
|
518
518
|
/**
|
|
519
519
|
* @private
|
|
520
520
|
* This field is private and should not be used, use `tag` instead.
|
|
521
521
|
*/
|
|
522
522
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
523
|
+
readonly tag: FfiError_Tags.InvalidConfig;
|
|
524
|
+
readonly inner: Readonly<{
|
|
525
|
+
detail: string;
|
|
526
|
+
}>;
|
|
523
527
|
name: string;
|
|
524
528
|
message: string;
|
|
525
529
|
stack?: string;
|
|
526
530
|
cause?: unknown;
|
|
527
531
|
};
|
|
528
532
|
instanceOf(obj: any): obj is {
|
|
529
|
-
readonly tag: FfiError_Tags.InvalidConfig;
|
|
530
|
-
readonly inner: Readonly<{
|
|
531
|
-
detail: string;
|
|
532
|
-
}>;
|
|
533
533
|
/**
|
|
534
534
|
* @private
|
|
535
535
|
* This field is private and should not be used, use `tag` instead.
|
|
536
536
|
*/
|
|
537
537
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
538
|
+
readonly tag: FfiError_Tags.InvalidConfig;
|
|
539
|
+
readonly inner: Readonly<{
|
|
540
|
+
detail: string;
|
|
541
|
+
}>;
|
|
538
542
|
name: string;
|
|
539
543
|
message: string;
|
|
540
544
|
stack?: string;
|
|
541
545
|
cause?: unknown;
|
|
542
546
|
};
|
|
543
547
|
hasInner(obj: any): obj is {
|
|
544
|
-
readonly tag: FfiError_Tags.InvalidConfig;
|
|
545
|
-
readonly inner: Readonly<{
|
|
546
|
-
detail: string;
|
|
547
|
-
}>;
|
|
548
548
|
/**
|
|
549
549
|
* @private
|
|
550
550
|
* This field is private and should not be used, use `tag` instead.
|
|
551
551
|
*/
|
|
552
552
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
553
|
+
readonly tag: FfiError_Tags.InvalidConfig;
|
|
554
|
+
readonly inner: Readonly<{
|
|
555
|
+
detail: string;
|
|
556
|
+
}>;
|
|
553
557
|
name: string;
|
|
554
558
|
message: string;
|
|
555
559
|
stack?: string;
|
|
556
560
|
cause?: unknown;
|
|
557
561
|
};
|
|
558
562
|
getInner(obj: {
|
|
559
|
-
readonly tag: FfiError_Tags.InvalidConfig;
|
|
560
|
-
readonly inner: Readonly<{
|
|
561
|
-
detail: string;
|
|
562
|
-
}>;
|
|
563
563
|
/**
|
|
564
564
|
* @private
|
|
565
565
|
* This field is private and should not be used, use `tag` instead.
|
|
566
566
|
*/
|
|
567
567
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
568
|
+
readonly tag: FfiError_Tags.InvalidConfig;
|
|
569
|
+
readonly inner: Readonly<{
|
|
570
|
+
detail: string;
|
|
571
|
+
}>;
|
|
568
572
|
name: string;
|
|
569
573
|
message: string;
|
|
570
574
|
stack?: string;
|
|
@@ -573,20 +577,23 @@ export declare const FfiError: Readonly<{
|
|
|
573
577
|
detail: string;
|
|
574
578
|
}>;
|
|
575
579
|
isError(error: unknown): error is Error;
|
|
580
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
581
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
582
|
+
stackTraceLimit: number;
|
|
576
583
|
};
|
|
577
584
|
InvalidKey: {
|
|
578
585
|
new (inner: {
|
|
579
586
|
detail: string;
|
|
580
587
|
}): {
|
|
581
|
-
readonly tag: FfiError_Tags.InvalidKey;
|
|
582
|
-
readonly inner: Readonly<{
|
|
583
|
-
detail: string;
|
|
584
|
-
}>;
|
|
585
588
|
/**
|
|
586
589
|
* @private
|
|
587
590
|
* This field is private and should not be used, use `tag` instead.
|
|
588
591
|
*/
|
|
589
592
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
593
|
+
readonly tag: FfiError_Tags.InvalidKey;
|
|
594
|
+
readonly inner: Readonly<{
|
|
595
|
+
detail: string;
|
|
596
|
+
}>;
|
|
590
597
|
name: string;
|
|
591
598
|
message: string;
|
|
592
599
|
stack?: string;
|
|
@@ -595,60 +602,60 @@ export declare const FfiError: Readonly<{
|
|
|
595
602
|
"new"(inner: {
|
|
596
603
|
detail: string;
|
|
597
604
|
}): {
|
|
598
|
-
readonly tag: FfiError_Tags.InvalidKey;
|
|
599
|
-
readonly inner: Readonly<{
|
|
600
|
-
detail: string;
|
|
601
|
-
}>;
|
|
602
605
|
/**
|
|
603
606
|
* @private
|
|
604
607
|
* This field is private and should not be used, use `tag` instead.
|
|
605
608
|
*/
|
|
606
609
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
610
|
+
readonly tag: FfiError_Tags.InvalidKey;
|
|
611
|
+
readonly inner: Readonly<{
|
|
612
|
+
detail: string;
|
|
613
|
+
}>;
|
|
607
614
|
name: string;
|
|
608
615
|
message: string;
|
|
609
616
|
stack?: string;
|
|
610
617
|
cause?: unknown;
|
|
611
618
|
};
|
|
612
619
|
instanceOf(obj: any): obj is {
|
|
613
|
-
readonly tag: FfiError_Tags.InvalidKey;
|
|
614
|
-
readonly inner: Readonly<{
|
|
615
|
-
detail: string;
|
|
616
|
-
}>;
|
|
617
620
|
/**
|
|
618
621
|
* @private
|
|
619
622
|
* This field is private and should not be used, use `tag` instead.
|
|
620
623
|
*/
|
|
621
624
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
625
|
+
readonly tag: FfiError_Tags.InvalidKey;
|
|
626
|
+
readonly inner: Readonly<{
|
|
627
|
+
detail: string;
|
|
628
|
+
}>;
|
|
622
629
|
name: string;
|
|
623
630
|
message: string;
|
|
624
631
|
stack?: string;
|
|
625
632
|
cause?: unknown;
|
|
626
633
|
};
|
|
627
634
|
hasInner(obj: any): obj is {
|
|
628
|
-
readonly tag: FfiError_Tags.InvalidKey;
|
|
629
|
-
readonly inner: Readonly<{
|
|
630
|
-
detail: string;
|
|
631
|
-
}>;
|
|
632
635
|
/**
|
|
633
636
|
* @private
|
|
634
637
|
* This field is private and should not be used, use `tag` instead.
|
|
635
638
|
*/
|
|
636
639
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
640
|
+
readonly tag: FfiError_Tags.InvalidKey;
|
|
641
|
+
readonly inner: Readonly<{
|
|
642
|
+
detail: string;
|
|
643
|
+
}>;
|
|
637
644
|
name: string;
|
|
638
645
|
message: string;
|
|
639
646
|
stack?: string;
|
|
640
647
|
cause?: unknown;
|
|
641
648
|
};
|
|
642
649
|
getInner(obj: {
|
|
643
|
-
readonly tag: FfiError_Tags.InvalidKey;
|
|
644
|
-
readonly inner: Readonly<{
|
|
645
|
-
detail: string;
|
|
646
|
-
}>;
|
|
647
650
|
/**
|
|
648
651
|
* @private
|
|
649
652
|
* This field is private and should not be used, use `tag` instead.
|
|
650
653
|
*/
|
|
651
654
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
655
|
+
readonly tag: FfiError_Tags.InvalidKey;
|
|
656
|
+
readonly inner: Readonly<{
|
|
657
|
+
detail: string;
|
|
658
|
+
}>;
|
|
652
659
|
name: string;
|
|
653
660
|
message: string;
|
|
654
661
|
stack?: string;
|
|
@@ -657,20 +664,23 @@ export declare const FfiError: Readonly<{
|
|
|
657
664
|
detail: string;
|
|
658
665
|
}>;
|
|
659
666
|
isError(error: unknown): error is Error;
|
|
667
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
668
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
669
|
+
stackTraceLimit: number;
|
|
660
670
|
};
|
|
661
671
|
InvalidPeerId: {
|
|
662
672
|
new (inner: {
|
|
663
673
|
detail: string;
|
|
664
674
|
}): {
|
|
665
|
-
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
666
|
-
readonly inner: Readonly<{
|
|
667
|
-
detail: string;
|
|
668
|
-
}>;
|
|
669
675
|
/**
|
|
670
676
|
* @private
|
|
671
677
|
* This field is private and should not be used, use `tag` instead.
|
|
672
678
|
*/
|
|
673
679
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
680
|
+
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
681
|
+
readonly inner: Readonly<{
|
|
682
|
+
detail: string;
|
|
683
|
+
}>;
|
|
674
684
|
name: string;
|
|
675
685
|
message: string;
|
|
676
686
|
stack?: string;
|
|
@@ -679,60 +689,60 @@ export declare const FfiError: Readonly<{
|
|
|
679
689
|
"new"(inner: {
|
|
680
690
|
detail: string;
|
|
681
691
|
}): {
|
|
682
|
-
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
683
|
-
readonly inner: Readonly<{
|
|
684
|
-
detail: string;
|
|
685
|
-
}>;
|
|
686
692
|
/**
|
|
687
693
|
* @private
|
|
688
694
|
* This field is private and should not be used, use `tag` instead.
|
|
689
695
|
*/
|
|
690
696
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
697
|
+
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
698
|
+
readonly inner: Readonly<{
|
|
699
|
+
detail: string;
|
|
700
|
+
}>;
|
|
691
701
|
name: string;
|
|
692
702
|
message: string;
|
|
693
703
|
stack?: string;
|
|
694
704
|
cause?: unknown;
|
|
695
705
|
};
|
|
696
706
|
instanceOf(obj: any): obj is {
|
|
697
|
-
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
698
|
-
readonly inner: Readonly<{
|
|
699
|
-
detail: string;
|
|
700
|
-
}>;
|
|
701
707
|
/**
|
|
702
708
|
* @private
|
|
703
709
|
* This field is private and should not be used, use `tag` instead.
|
|
704
710
|
*/
|
|
705
711
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
712
|
+
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
713
|
+
readonly inner: Readonly<{
|
|
714
|
+
detail: string;
|
|
715
|
+
}>;
|
|
706
716
|
name: string;
|
|
707
717
|
message: string;
|
|
708
718
|
stack?: string;
|
|
709
719
|
cause?: unknown;
|
|
710
720
|
};
|
|
711
721
|
hasInner(obj: any): obj is {
|
|
712
|
-
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
713
|
-
readonly inner: Readonly<{
|
|
714
|
-
detail: string;
|
|
715
|
-
}>;
|
|
716
722
|
/**
|
|
717
723
|
* @private
|
|
718
724
|
* This field is private and should not be used, use `tag` instead.
|
|
719
725
|
*/
|
|
720
726
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
727
|
+
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
728
|
+
readonly inner: Readonly<{
|
|
729
|
+
detail: string;
|
|
730
|
+
}>;
|
|
721
731
|
name: string;
|
|
722
732
|
message: string;
|
|
723
733
|
stack?: string;
|
|
724
734
|
cause?: unknown;
|
|
725
735
|
};
|
|
726
736
|
getInner(obj: {
|
|
727
|
-
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
728
|
-
readonly inner: Readonly<{
|
|
729
|
-
detail: string;
|
|
730
|
-
}>;
|
|
731
737
|
/**
|
|
732
738
|
* @private
|
|
733
739
|
* This field is private and should not be used, use `tag` instead.
|
|
734
740
|
*/
|
|
735
741
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
742
|
+
readonly tag: FfiError_Tags.InvalidPeerId;
|
|
743
|
+
readonly inner: Readonly<{
|
|
744
|
+
detail: string;
|
|
745
|
+
}>;
|
|
736
746
|
name: string;
|
|
737
747
|
message: string;
|
|
738
748
|
stack?: string;
|
|
@@ -741,20 +751,23 @@ export declare const FfiError: Readonly<{
|
|
|
741
751
|
detail: string;
|
|
742
752
|
}>;
|
|
743
753
|
isError(error: unknown): error is Error;
|
|
754
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
755
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
756
|
+
stackTraceLimit: number;
|
|
744
757
|
};
|
|
745
758
|
InvalidAddress: {
|
|
746
759
|
new (inner: {
|
|
747
760
|
detail: string;
|
|
748
761
|
}): {
|
|
749
|
-
readonly tag: FfiError_Tags.InvalidAddress;
|
|
750
|
-
readonly inner: Readonly<{
|
|
751
|
-
detail: string;
|
|
752
|
-
}>;
|
|
753
762
|
/**
|
|
754
763
|
* @private
|
|
755
764
|
* This field is private and should not be used, use `tag` instead.
|
|
756
765
|
*/
|
|
757
766
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
767
|
+
readonly tag: FfiError_Tags.InvalidAddress;
|
|
768
|
+
readonly inner: Readonly<{
|
|
769
|
+
detail: string;
|
|
770
|
+
}>;
|
|
758
771
|
name: string;
|
|
759
772
|
message: string;
|
|
760
773
|
stack?: string;
|
|
@@ -763,60 +776,60 @@ export declare const FfiError: Readonly<{
|
|
|
763
776
|
"new"(inner: {
|
|
764
777
|
detail: string;
|
|
765
778
|
}): {
|
|
766
|
-
readonly tag: FfiError_Tags.InvalidAddress;
|
|
767
|
-
readonly inner: Readonly<{
|
|
768
|
-
detail: string;
|
|
769
|
-
}>;
|
|
770
779
|
/**
|
|
771
780
|
* @private
|
|
772
781
|
* This field is private and should not be used, use `tag` instead.
|
|
773
782
|
*/
|
|
774
783
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
784
|
+
readonly tag: FfiError_Tags.InvalidAddress;
|
|
785
|
+
readonly inner: Readonly<{
|
|
786
|
+
detail: string;
|
|
787
|
+
}>;
|
|
775
788
|
name: string;
|
|
776
789
|
message: string;
|
|
777
790
|
stack?: string;
|
|
778
791
|
cause?: unknown;
|
|
779
792
|
};
|
|
780
793
|
instanceOf(obj: any): obj is {
|
|
781
|
-
readonly tag: FfiError_Tags.InvalidAddress;
|
|
782
|
-
readonly inner: Readonly<{
|
|
783
|
-
detail: string;
|
|
784
|
-
}>;
|
|
785
794
|
/**
|
|
786
795
|
* @private
|
|
787
796
|
* This field is private and should not be used, use `tag` instead.
|
|
788
797
|
*/
|
|
789
798
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
799
|
+
readonly tag: FfiError_Tags.InvalidAddress;
|
|
800
|
+
readonly inner: Readonly<{
|
|
801
|
+
detail: string;
|
|
802
|
+
}>;
|
|
790
803
|
name: string;
|
|
791
804
|
message: string;
|
|
792
805
|
stack?: string;
|
|
793
806
|
cause?: unknown;
|
|
794
807
|
};
|
|
795
808
|
hasInner(obj: any): obj is {
|
|
796
|
-
readonly tag: FfiError_Tags.InvalidAddress;
|
|
797
|
-
readonly inner: Readonly<{
|
|
798
|
-
detail: string;
|
|
799
|
-
}>;
|
|
800
809
|
/**
|
|
801
810
|
* @private
|
|
802
811
|
* This field is private and should not be used, use `tag` instead.
|
|
803
812
|
*/
|
|
804
813
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
814
|
+
readonly tag: FfiError_Tags.InvalidAddress;
|
|
815
|
+
readonly inner: Readonly<{
|
|
816
|
+
detail: string;
|
|
817
|
+
}>;
|
|
805
818
|
name: string;
|
|
806
819
|
message: string;
|
|
807
820
|
stack?: string;
|
|
808
821
|
cause?: unknown;
|
|
809
822
|
};
|
|
810
823
|
getInner(obj: {
|
|
811
|
-
readonly tag: FfiError_Tags.InvalidAddress;
|
|
812
|
-
readonly inner: Readonly<{
|
|
813
|
-
detail: string;
|
|
814
|
-
}>;
|
|
815
824
|
/**
|
|
816
825
|
* @private
|
|
817
826
|
* This field is private and should not be used, use `tag` instead.
|
|
818
827
|
*/
|
|
819
828
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
829
|
+
readonly tag: FfiError_Tags.InvalidAddress;
|
|
830
|
+
readonly inner: Readonly<{
|
|
831
|
+
detail: string;
|
|
832
|
+
}>;
|
|
820
833
|
name: string;
|
|
821
834
|
message: string;
|
|
822
835
|
stack?: string;
|
|
@@ -825,20 +838,23 @@ export declare const FfiError: Readonly<{
|
|
|
825
838
|
detail: string;
|
|
826
839
|
}>;
|
|
827
840
|
isError(error: unknown): error is Error;
|
|
841
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
842
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
843
|
+
stackTraceLimit: number;
|
|
828
844
|
};
|
|
829
845
|
InvalidTopic: {
|
|
830
846
|
new (inner: {
|
|
831
847
|
detail: string;
|
|
832
848
|
}): {
|
|
833
|
-
readonly tag: FfiError_Tags.InvalidTopic;
|
|
834
|
-
readonly inner: Readonly<{
|
|
835
|
-
detail: string;
|
|
836
|
-
}>;
|
|
837
849
|
/**
|
|
838
850
|
* @private
|
|
839
851
|
* This field is private and should not be used, use `tag` instead.
|
|
840
852
|
*/
|
|
841
853
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
854
|
+
readonly tag: FfiError_Tags.InvalidTopic;
|
|
855
|
+
readonly inner: Readonly<{
|
|
856
|
+
detail: string;
|
|
857
|
+
}>;
|
|
842
858
|
name: string;
|
|
843
859
|
message: string;
|
|
844
860
|
stack?: string;
|
|
@@ -847,60 +863,60 @@ export declare const FfiError: Readonly<{
|
|
|
847
863
|
"new"(inner: {
|
|
848
864
|
detail: string;
|
|
849
865
|
}): {
|
|
850
|
-
readonly tag: FfiError_Tags.InvalidTopic;
|
|
851
|
-
readonly inner: Readonly<{
|
|
852
|
-
detail: string;
|
|
853
|
-
}>;
|
|
854
866
|
/**
|
|
855
867
|
* @private
|
|
856
868
|
* This field is private and should not be used, use `tag` instead.
|
|
857
869
|
*/
|
|
858
870
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
871
|
+
readonly tag: FfiError_Tags.InvalidTopic;
|
|
872
|
+
readonly inner: Readonly<{
|
|
873
|
+
detail: string;
|
|
874
|
+
}>;
|
|
859
875
|
name: string;
|
|
860
876
|
message: string;
|
|
861
877
|
stack?: string;
|
|
862
878
|
cause?: unknown;
|
|
863
879
|
};
|
|
864
880
|
instanceOf(obj: any): obj is {
|
|
865
|
-
readonly tag: FfiError_Tags.InvalidTopic;
|
|
866
|
-
readonly inner: Readonly<{
|
|
867
|
-
detail: string;
|
|
868
|
-
}>;
|
|
869
881
|
/**
|
|
870
882
|
* @private
|
|
871
883
|
* This field is private and should not be used, use `tag` instead.
|
|
872
884
|
*/
|
|
873
885
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
886
|
+
readonly tag: FfiError_Tags.InvalidTopic;
|
|
887
|
+
readonly inner: Readonly<{
|
|
888
|
+
detail: string;
|
|
889
|
+
}>;
|
|
874
890
|
name: string;
|
|
875
891
|
message: string;
|
|
876
892
|
stack?: string;
|
|
877
893
|
cause?: unknown;
|
|
878
894
|
};
|
|
879
895
|
hasInner(obj: any): obj is {
|
|
880
|
-
readonly tag: FfiError_Tags.InvalidTopic;
|
|
881
|
-
readonly inner: Readonly<{
|
|
882
|
-
detail: string;
|
|
883
|
-
}>;
|
|
884
896
|
/**
|
|
885
897
|
* @private
|
|
886
898
|
* This field is private and should not be used, use `tag` instead.
|
|
887
899
|
*/
|
|
888
900
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
901
|
+
readonly tag: FfiError_Tags.InvalidTopic;
|
|
902
|
+
readonly inner: Readonly<{
|
|
903
|
+
detail: string;
|
|
904
|
+
}>;
|
|
889
905
|
name: string;
|
|
890
906
|
message: string;
|
|
891
907
|
stack?: string;
|
|
892
908
|
cause?: unknown;
|
|
893
909
|
};
|
|
894
910
|
getInner(obj: {
|
|
895
|
-
readonly tag: FfiError_Tags.InvalidTopic;
|
|
896
|
-
readonly inner: Readonly<{
|
|
897
|
-
detail: string;
|
|
898
|
-
}>;
|
|
899
911
|
/**
|
|
900
912
|
* @private
|
|
901
913
|
* This field is private and should not be used, use `tag` instead.
|
|
902
914
|
*/
|
|
903
915
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
916
|
+
readonly tag: FfiError_Tags.InvalidTopic;
|
|
917
|
+
readonly inner: Readonly<{
|
|
918
|
+
detail: string;
|
|
919
|
+
}>;
|
|
904
920
|
name: string;
|
|
905
921
|
message: string;
|
|
906
922
|
stack?: string;
|
|
@@ -909,20 +925,23 @@ export declare const FfiError: Readonly<{
|
|
|
909
925
|
detail: string;
|
|
910
926
|
}>;
|
|
911
927
|
isError(error: unknown): error is Error;
|
|
928
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
929
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
930
|
+
stackTraceLimit: number;
|
|
912
931
|
};
|
|
913
932
|
NotPermitted: {
|
|
914
933
|
new (inner: {
|
|
915
934
|
detail: string;
|
|
916
935
|
}): {
|
|
917
|
-
readonly tag: FfiError_Tags.NotPermitted;
|
|
918
|
-
readonly inner: Readonly<{
|
|
919
|
-
detail: string;
|
|
920
|
-
}>;
|
|
921
936
|
/**
|
|
922
937
|
* @private
|
|
923
938
|
* This field is private and should not be used, use `tag` instead.
|
|
924
939
|
*/
|
|
925
940
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
941
|
+
readonly tag: FfiError_Tags.NotPermitted;
|
|
942
|
+
readonly inner: Readonly<{
|
|
943
|
+
detail: string;
|
|
944
|
+
}>;
|
|
926
945
|
name: string;
|
|
927
946
|
message: string;
|
|
928
947
|
stack?: string;
|
|
@@ -931,184 +950,193 @@ export declare const FfiError: Readonly<{
|
|
|
931
950
|
"new"(inner: {
|
|
932
951
|
detail: string;
|
|
933
952
|
}): {
|
|
934
|
-
readonly tag: FfiError_Tags.NotPermitted;
|
|
935
|
-
readonly inner: Readonly<{
|
|
936
|
-
detail: string;
|
|
937
|
-
}>;
|
|
938
953
|
/**
|
|
939
954
|
* @private
|
|
940
955
|
* This field is private and should not be used, use `tag` instead.
|
|
941
956
|
*/
|
|
942
957
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
958
|
+
readonly tag: FfiError_Tags.NotPermitted;
|
|
959
|
+
readonly inner: Readonly<{
|
|
960
|
+
detail: string;
|
|
961
|
+
}>;
|
|
943
962
|
name: string;
|
|
944
963
|
message: string;
|
|
945
964
|
stack?: string;
|
|
946
965
|
cause?: unknown;
|
|
947
966
|
};
|
|
948
967
|
instanceOf(obj: any): obj is {
|
|
949
|
-
readonly tag: FfiError_Tags.NotPermitted;
|
|
950
|
-
readonly inner: Readonly<{
|
|
951
|
-
detail: string;
|
|
952
|
-
}>;
|
|
953
968
|
/**
|
|
954
969
|
* @private
|
|
955
970
|
* This field is private and should not be used, use `tag` instead.
|
|
956
971
|
*/
|
|
957
972
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
973
|
+
readonly tag: FfiError_Tags.NotPermitted;
|
|
974
|
+
readonly inner: Readonly<{
|
|
975
|
+
detail: string;
|
|
976
|
+
}>;
|
|
958
977
|
name: string;
|
|
959
978
|
message: string;
|
|
960
979
|
stack?: string;
|
|
961
980
|
cause?: unknown;
|
|
962
981
|
};
|
|
963
982
|
hasInner(obj: any): obj is {
|
|
964
|
-
readonly tag: FfiError_Tags.NotPermitted;
|
|
965
|
-
readonly inner: Readonly<{
|
|
966
|
-
detail: string;
|
|
967
|
-
}>;
|
|
968
983
|
/**
|
|
969
984
|
* @private
|
|
970
985
|
* This field is private and should not be used, use `tag` instead.
|
|
971
986
|
*/
|
|
972
987
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
988
|
+
readonly tag: FfiError_Tags.NotPermitted;
|
|
989
|
+
readonly inner: Readonly<{
|
|
990
|
+
detail: string;
|
|
991
|
+
}>;
|
|
973
992
|
name: string;
|
|
974
993
|
message: string;
|
|
975
994
|
stack?: string;
|
|
976
995
|
cause?: unknown;
|
|
977
996
|
};
|
|
978
997
|
getInner(obj: {
|
|
979
|
-
readonly tag: FfiError_Tags.NotPermitted;
|
|
980
|
-
readonly inner: Readonly<{
|
|
981
|
-
detail: string;
|
|
982
|
-
}>;
|
|
983
998
|
/**
|
|
984
999
|
* @private
|
|
985
1000
|
* This field is private and should not be used, use `tag` instead.
|
|
986
1001
|
*/
|
|
987
1002
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1003
|
+
readonly tag: FfiError_Tags.NotPermitted;
|
|
1004
|
+
readonly inner: Readonly<{
|
|
1005
|
+
detail: string;
|
|
1006
|
+
}>;
|
|
1007
|
+
name: string;
|
|
1008
|
+
message: string;
|
|
1009
|
+
stack?: string;
|
|
991
1010
|
cause?: unknown;
|
|
992
1011
|
}): Readonly<{
|
|
993
1012
|
detail: string;
|
|
994
1013
|
}>;
|
|
995
1014
|
isError(error: unknown): error is Error;
|
|
1015
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1016
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1017
|
+
stackTraceLimit: number;
|
|
996
1018
|
};
|
|
997
1019
|
Backpressure: {
|
|
998
1020
|
new (): {
|
|
999
|
-
readonly tag: FfiError_Tags.Backpressure;
|
|
1000
1021
|
/**
|
|
1001
1022
|
* @private
|
|
1002
1023
|
* This field is private and should not be used, use `tag` instead.
|
|
1003
1024
|
*/
|
|
1004
1025
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1026
|
+
readonly tag: FfiError_Tags.Backpressure;
|
|
1005
1027
|
name: string;
|
|
1006
1028
|
message: string;
|
|
1007
1029
|
stack?: string;
|
|
1008
1030
|
cause?: unknown;
|
|
1009
1031
|
};
|
|
1010
1032
|
"new"(): {
|
|
1011
|
-
readonly tag: FfiError_Tags.Backpressure;
|
|
1012
1033
|
/**
|
|
1013
1034
|
* @private
|
|
1014
1035
|
* This field is private and should not be used, use `tag` instead.
|
|
1015
1036
|
*/
|
|
1016
1037
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1038
|
+
readonly tag: FfiError_Tags.Backpressure;
|
|
1017
1039
|
name: string;
|
|
1018
1040
|
message: string;
|
|
1019
1041
|
stack?: string;
|
|
1020
1042
|
cause?: unknown;
|
|
1021
1043
|
};
|
|
1022
1044
|
instanceOf(obj: any): obj is {
|
|
1023
|
-
readonly tag: FfiError_Tags.Backpressure;
|
|
1024
1045
|
/**
|
|
1025
1046
|
* @private
|
|
1026
1047
|
* This field is private and should not be used, use `tag` instead.
|
|
1027
1048
|
*/
|
|
1028
1049
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1050
|
+
readonly tag: FfiError_Tags.Backpressure;
|
|
1029
1051
|
name: string;
|
|
1030
1052
|
message: string;
|
|
1031
1053
|
stack?: string;
|
|
1032
1054
|
cause?: unknown;
|
|
1033
1055
|
};
|
|
1034
1056
|
hasInner(obj: any): obj is {
|
|
1035
|
-
readonly tag: FfiError_Tags.Backpressure;
|
|
1036
1057
|
/**
|
|
1037
1058
|
* @private
|
|
1038
1059
|
* This field is private and should not be used, use `tag` instead.
|
|
1039
1060
|
*/
|
|
1040
1061
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1062
|
+
readonly tag: FfiError_Tags.Backpressure;
|
|
1041
1063
|
name: string;
|
|
1042
1064
|
message: string;
|
|
1043
1065
|
stack?: string;
|
|
1044
1066
|
cause?: unknown;
|
|
1045
1067
|
};
|
|
1046
1068
|
isError(error: unknown): error is Error;
|
|
1069
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1070
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1071
|
+
stackTraceLimit: number;
|
|
1047
1072
|
};
|
|
1048
1073
|
MessageTooLarge: {
|
|
1049
1074
|
new (): {
|
|
1050
|
-
|
|
1075
|
+
name: string;
|
|
1076
|
+
message: string;
|
|
1077
|
+
stack?: string;
|
|
1051
1078
|
/**
|
|
1052
1079
|
* @private
|
|
1053
1080
|
* This field is private and should not be used, use `tag` instead.
|
|
1054
1081
|
*/
|
|
1055
1082
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1056
|
-
|
|
1057
|
-
message: string;
|
|
1058
|
-
stack?: string;
|
|
1083
|
+
readonly tag: FfiError_Tags.MessageTooLarge;
|
|
1059
1084
|
cause?: unknown;
|
|
1060
1085
|
};
|
|
1061
1086
|
"new"(): {
|
|
1062
|
-
|
|
1087
|
+
name: string;
|
|
1088
|
+
message: string;
|
|
1089
|
+
stack?: string;
|
|
1063
1090
|
/**
|
|
1064
1091
|
* @private
|
|
1065
1092
|
* This field is private and should not be used, use `tag` instead.
|
|
1066
1093
|
*/
|
|
1067
1094
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1068
|
-
|
|
1069
|
-
message: string;
|
|
1070
|
-
stack?: string;
|
|
1095
|
+
readonly tag: FfiError_Tags.MessageTooLarge;
|
|
1071
1096
|
cause?: unknown;
|
|
1072
1097
|
};
|
|
1073
1098
|
instanceOf(obj: any): obj is {
|
|
1074
|
-
|
|
1099
|
+
name: string;
|
|
1100
|
+
message: string;
|
|
1101
|
+
stack?: string;
|
|
1075
1102
|
/**
|
|
1076
1103
|
* @private
|
|
1077
1104
|
* This field is private and should not be used, use `tag` instead.
|
|
1078
1105
|
*/
|
|
1079
1106
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1080
|
-
|
|
1081
|
-
message: string;
|
|
1082
|
-
stack?: string;
|
|
1107
|
+
readonly tag: FfiError_Tags.MessageTooLarge;
|
|
1083
1108
|
cause?: unknown;
|
|
1084
1109
|
};
|
|
1085
1110
|
hasInner(obj: any): obj is {
|
|
1086
|
-
|
|
1111
|
+
name: string;
|
|
1112
|
+
message: string;
|
|
1113
|
+
stack?: string;
|
|
1087
1114
|
/**
|
|
1088
1115
|
* @private
|
|
1089
1116
|
* This field is private and should not be used, use `tag` instead.
|
|
1090
1117
|
*/
|
|
1091
1118
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1092
|
-
|
|
1093
|
-
message: string;
|
|
1094
|
-
stack?: string;
|
|
1119
|
+
readonly tag: FfiError_Tags.MessageTooLarge;
|
|
1095
1120
|
cause?: unknown;
|
|
1096
1121
|
};
|
|
1097
1122
|
isError(error: unknown): error is Error;
|
|
1123
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1124
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1125
|
+
stackTraceLimit: number;
|
|
1098
1126
|
};
|
|
1099
1127
|
Transport: {
|
|
1100
1128
|
new (inner: {
|
|
1101
1129
|
detail: string;
|
|
1102
1130
|
}): {
|
|
1103
|
-
readonly tag: FfiError_Tags.Transport;
|
|
1104
|
-
readonly inner: Readonly<{
|
|
1105
|
-
detail: string;
|
|
1106
|
-
}>;
|
|
1107
1131
|
/**
|
|
1108
1132
|
* @private
|
|
1109
1133
|
* This field is private and should not be used, use `tag` instead.
|
|
1110
1134
|
*/
|
|
1111
1135
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1136
|
+
readonly tag: FfiError_Tags.Transport;
|
|
1137
|
+
readonly inner: Readonly<{
|
|
1138
|
+
detail: string;
|
|
1139
|
+
}>;
|
|
1112
1140
|
name: string;
|
|
1113
1141
|
message: string;
|
|
1114
1142
|
stack?: string;
|
|
@@ -1117,60 +1145,60 @@ export declare const FfiError: Readonly<{
|
|
|
1117
1145
|
"new"(inner: {
|
|
1118
1146
|
detail: string;
|
|
1119
1147
|
}): {
|
|
1120
|
-
readonly tag: FfiError_Tags.Transport;
|
|
1121
|
-
readonly inner: Readonly<{
|
|
1122
|
-
detail: string;
|
|
1123
|
-
}>;
|
|
1124
1148
|
/**
|
|
1125
1149
|
* @private
|
|
1126
1150
|
* This field is private and should not be used, use `tag` instead.
|
|
1127
1151
|
*/
|
|
1128
1152
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1153
|
+
readonly tag: FfiError_Tags.Transport;
|
|
1154
|
+
readonly inner: Readonly<{
|
|
1155
|
+
detail: string;
|
|
1156
|
+
}>;
|
|
1129
1157
|
name: string;
|
|
1130
1158
|
message: string;
|
|
1131
1159
|
stack?: string;
|
|
1132
1160
|
cause?: unknown;
|
|
1133
1161
|
};
|
|
1134
1162
|
instanceOf(obj: any): obj is {
|
|
1135
|
-
readonly tag: FfiError_Tags.Transport;
|
|
1136
|
-
readonly inner: Readonly<{
|
|
1137
|
-
detail: string;
|
|
1138
|
-
}>;
|
|
1139
1163
|
/**
|
|
1140
1164
|
* @private
|
|
1141
1165
|
* This field is private and should not be used, use `tag` instead.
|
|
1142
1166
|
*/
|
|
1143
1167
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1168
|
+
readonly tag: FfiError_Tags.Transport;
|
|
1169
|
+
readonly inner: Readonly<{
|
|
1170
|
+
detail: string;
|
|
1171
|
+
}>;
|
|
1144
1172
|
name: string;
|
|
1145
1173
|
message: string;
|
|
1146
1174
|
stack?: string;
|
|
1147
1175
|
cause?: unknown;
|
|
1148
1176
|
};
|
|
1149
1177
|
hasInner(obj: any): obj is {
|
|
1150
|
-
readonly tag: FfiError_Tags.Transport;
|
|
1151
|
-
readonly inner: Readonly<{
|
|
1152
|
-
detail: string;
|
|
1153
|
-
}>;
|
|
1154
1178
|
/**
|
|
1155
1179
|
* @private
|
|
1156
1180
|
* This field is private and should not be used, use `tag` instead.
|
|
1157
1181
|
*/
|
|
1158
1182
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1183
|
+
readonly tag: FfiError_Tags.Transport;
|
|
1184
|
+
readonly inner: Readonly<{
|
|
1185
|
+
detail: string;
|
|
1186
|
+
}>;
|
|
1159
1187
|
name: string;
|
|
1160
1188
|
message: string;
|
|
1161
1189
|
stack?: string;
|
|
1162
1190
|
cause?: unknown;
|
|
1163
1191
|
};
|
|
1164
1192
|
getInner(obj: {
|
|
1165
|
-
readonly tag: FfiError_Tags.Transport;
|
|
1166
|
-
readonly inner: Readonly<{
|
|
1167
|
-
detail: string;
|
|
1168
|
-
}>;
|
|
1169
1193
|
/**
|
|
1170
1194
|
* @private
|
|
1171
1195
|
* This field is private and should not be used, use `tag` instead.
|
|
1172
1196
|
*/
|
|
1173
1197
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1198
|
+
readonly tag: FfiError_Tags.Transport;
|
|
1199
|
+
readonly inner: Readonly<{
|
|
1200
|
+
detail: string;
|
|
1201
|
+
}>;
|
|
1174
1202
|
name: string;
|
|
1175
1203
|
message: string;
|
|
1176
1204
|
stack?: string;
|
|
@@ -1179,20 +1207,23 @@ export declare const FfiError: Readonly<{
|
|
|
1179
1207
|
detail: string;
|
|
1180
1208
|
}>;
|
|
1181
1209
|
isError(error: unknown): error is Error;
|
|
1210
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1211
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1212
|
+
stackTraceLimit: number;
|
|
1182
1213
|
};
|
|
1183
1214
|
InvalidState: {
|
|
1184
1215
|
new (inner: {
|
|
1185
1216
|
detail: string;
|
|
1186
1217
|
}): {
|
|
1187
|
-
readonly tag: FfiError_Tags.InvalidState;
|
|
1188
|
-
readonly inner: Readonly<{
|
|
1189
|
-
detail: string;
|
|
1190
|
-
}>;
|
|
1191
1218
|
/**
|
|
1192
1219
|
* @private
|
|
1193
1220
|
* This field is private and should not be used, use `tag` instead.
|
|
1194
1221
|
*/
|
|
1195
1222
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1223
|
+
readonly tag: FfiError_Tags.InvalidState;
|
|
1224
|
+
readonly inner: Readonly<{
|
|
1225
|
+
detail: string;
|
|
1226
|
+
}>;
|
|
1196
1227
|
name: string;
|
|
1197
1228
|
message: string;
|
|
1198
1229
|
stack?: string;
|
|
@@ -1201,60 +1232,60 @@ export declare const FfiError: Readonly<{
|
|
|
1201
1232
|
"new"(inner: {
|
|
1202
1233
|
detail: string;
|
|
1203
1234
|
}): {
|
|
1204
|
-
readonly tag: FfiError_Tags.InvalidState;
|
|
1205
|
-
readonly inner: Readonly<{
|
|
1206
|
-
detail: string;
|
|
1207
|
-
}>;
|
|
1208
1235
|
/**
|
|
1209
1236
|
* @private
|
|
1210
1237
|
* This field is private and should not be used, use `tag` instead.
|
|
1211
1238
|
*/
|
|
1212
1239
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1240
|
+
readonly tag: FfiError_Tags.InvalidState;
|
|
1241
|
+
readonly inner: Readonly<{
|
|
1242
|
+
detail: string;
|
|
1243
|
+
}>;
|
|
1213
1244
|
name: string;
|
|
1214
1245
|
message: string;
|
|
1215
1246
|
stack?: string;
|
|
1216
1247
|
cause?: unknown;
|
|
1217
1248
|
};
|
|
1218
1249
|
instanceOf(obj: any): obj is {
|
|
1219
|
-
readonly tag: FfiError_Tags.InvalidState;
|
|
1220
|
-
readonly inner: Readonly<{
|
|
1221
|
-
detail: string;
|
|
1222
|
-
}>;
|
|
1223
1250
|
/**
|
|
1224
1251
|
* @private
|
|
1225
1252
|
* This field is private and should not be used, use `tag` instead.
|
|
1226
1253
|
*/
|
|
1227
1254
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1255
|
+
readonly tag: FfiError_Tags.InvalidState;
|
|
1256
|
+
readonly inner: Readonly<{
|
|
1257
|
+
detail: string;
|
|
1258
|
+
}>;
|
|
1228
1259
|
name: string;
|
|
1229
1260
|
message: string;
|
|
1230
1261
|
stack?: string;
|
|
1231
1262
|
cause?: unknown;
|
|
1232
1263
|
};
|
|
1233
1264
|
hasInner(obj: any): obj is {
|
|
1234
|
-
readonly tag: FfiError_Tags.InvalidState;
|
|
1235
|
-
readonly inner: Readonly<{
|
|
1236
|
-
detail: string;
|
|
1237
|
-
}>;
|
|
1238
1265
|
/**
|
|
1239
1266
|
* @private
|
|
1240
1267
|
* This field is private and should not be used, use `tag` instead.
|
|
1241
1268
|
*/
|
|
1242
1269
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1270
|
+
readonly tag: FfiError_Tags.InvalidState;
|
|
1271
|
+
readonly inner: Readonly<{
|
|
1272
|
+
detail: string;
|
|
1273
|
+
}>;
|
|
1243
1274
|
name: string;
|
|
1244
1275
|
message: string;
|
|
1245
1276
|
stack?: string;
|
|
1246
1277
|
cause?: unknown;
|
|
1247
1278
|
};
|
|
1248
1279
|
getInner(obj: {
|
|
1249
|
-
readonly tag: FfiError_Tags.InvalidState;
|
|
1250
|
-
readonly inner: Readonly<{
|
|
1251
|
-
detail: string;
|
|
1252
|
-
}>;
|
|
1253
1280
|
/**
|
|
1254
1281
|
* @private
|
|
1255
1282
|
* This field is private and should not be used, use `tag` instead.
|
|
1256
1283
|
*/
|
|
1257
1284
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1285
|
+
readonly tag: FfiError_Tags.InvalidState;
|
|
1286
|
+
readonly inner: Readonly<{
|
|
1287
|
+
detail: string;
|
|
1288
|
+
}>;
|
|
1258
1289
|
name: string;
|
|
1259
1290
|
message: string;
|
|
1260
1291
|
stack?: string;
|
|
@@ -1263,20 +1294,23 @@ export declare const FfiError: Readonly<{
|
|
|
1263
1294
|
detail: string;
|
|
1264
1295
|
}>;
|
|
1265
1296
|
isError(error: unknown): error is Error;
|
|
1297
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1298
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1299
|
+
stackTraceLimit: number;
|
|
1266
1300
|
};
|
|
1267
1301
|
Internal: {
|
|
1268
1302
|
new (inner: {
|
|
1269
1303
|
detail: string;
|
|
1270
1304
|
}): {
|
|
1271
|
-
readonly tag: FfiError_Tags.Internal;
|
|
1272
|
-
readonly inner: Readonly<{
|
|
1273
|
-
detail: string;
|
|
1274
|
-
}>;
|
|
1275
1305
|
/**
|
|
1276
1306
|
* @private
|
|
1277
1307
|
* This field is private and should not be used, use `tag` instead.
|
|
1278
1308
|
*/
|
|
1279
1309
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1310
|
+
readonly tag: FfiError_Tags.Internal;
|
|
1311
|
+
readonly inner: Readonly<{
|
|
1312
|
+
detail: string;
|
|
1313
|
+
}>;
|
|
1280
1314
|
name: string;
|
|
1281
1315
|
message: string;
|
|
1282
1316
|
stack?: string;
|
|
@@ -1285,60 +1319,60 @@ export declare const FfiError: Readonly<{
|
|
|
1285
1319
|
"new"(inner: {
|
|
1286
1320
|
detail: string;
|
|
1287
1321
|
}): {
|
|
1288
|
-
readonly tag: FfiError_Tags.Internal;
|
|
1289
|
-
readonly inner: Readonly<{
|
|
1290
|
-
detail: string;
|
|
1291
|
-
}>;
|
|
1292
1322
|
/**
|
|
1293
1323
|
* @private
|
|
1294
1324
|
* This field is private and should not be used, use `tag` instead.
|
|
1295
1325
|
*/
|
|
1296
1326
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1327
|
+
readonly tag: FfiError_Tags.Internal;
|
|
1328
|
+
readonly inner: Readonly<{
|
|
1329
|
+
detail: string;
|
|
1330
|
+
}>;
|
|
1297
1331
|
name: string;
|
|
1298
1332
|
message: string;
|
|
1299
1333
|
stack?: string;
|
|
1300
1334
|
cause?: unknown;
|
|
1301
1335
|
};
|
|
1302
1336
|
instanceOf(obj: any): obj is {
|
|
1303
|
-
readonly tag: FfiError_Tags.Internal;
|
|
1304
|
-
readonly inner: Readonly<{
|
|
1305
|
-
detail: string;
|
|
1306
|
-
}>;
|
|
1307
1337
|
/**
|
|
1308
1338
|
* @private
|
|
1309
1339
|
* This field is private and should not be used, use `tag` instead.
|
|
1310
1340
|
*/
|
|
1311
1341
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1342
|
+
readonly tag: FfiError_Tags.Internal;
|
|
1343
|
+
readonly inner: Readonly<{
|
|
1344
|
+
detail: string;
|
|
1345
|
+
}>;
|
|
1312
1346
|
name: string;
|
|
1313
1347
|
message: string;
|
|
1314
1348
|
stack?: string;
|
|
1315
1349
|
cause?: unknown;
|
|
1316
1350
|
};
|
|
1317
1351
|
hasInner(obj: any): obj is {
|
|
1318
|
-
readonly tag: FfiError_Tags.Internal;
|
|
1319
|
-
readonly inner: Readonly<{
|
|
1320
|
-
detail: string;
|
|
1321
|
-
}>;
|
|
1322
1352
|
/**
|
|
1323
1353
|
* @private
|
|
1324
1354
|
* This field is private and should not be used, use `tag` instead.
|
|
1325
1355
|
*/
|
|
1326
1356
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1357
|
+
readonly tag: FfiError_Tags.Internal;
|
|
1358
|
+
readonly inner: Readonly<{
|
|
1359
|
+
detail: string;
|
|
1360
|
+
}>;
|
|
1327
1361
|
name: string;
|
|
1328
1362
|
message: string;
|
|
1329
1363
|
stack?: string;
|
|
1330
1364
|
cause?: unknown;
|
|
1331
1365
|
};
|
|
1332
1366
|
getInner(obj: {
|
|
1333
|
-
readonly tag: FfiError_Tags.Internal;
|
|
1334
|
-
readonly inner: Readonly<{
|
|
1335
|
-
detail: string;
|
|
1336
|
-
}>;
|
|
1337
1367
|
/**
|
|
1338
1368
|
* @private
|
|
1339
1369
|
* This field is private and should not be used, use `tag` instead.
|
|
1340
1370
|
*/
|
|
1341
1371
|
readonly [uniffiTypeNameSymbol]: "FfiError";
|
|
1372
|
+
readonly tag: FfiError_Tags.Internal;
|
|
1373
|
+
readonly inner: Readonly<{
|
|
1374
|
+
detail: string;
|
|
1375
|
+
}>;
|
|
1342
1376
|
name: string;
|
|
1343
1377
|
message: string;
|
|
1344
1378
|
stack?: string;
|
|
@@ -1347,6 +1381,9 @@ export declare const FfiError: Readonly<{
|
|
|
1347
1381
|
detail: string;
|
|
1348
1382
|
}>;
|
|
1349
1383
|
isError(error: unknown): error is Error;
|
|
1384
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1385
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1386
|
+
stackTraceLimit: number;
|
|
1350
1387
|
};
|
|
1351
1388
|
}>;
|
|
1352
1389
|
/**
|
|
@@ -1407,93 +1444,93 @@ export declare const PathKind: Readonly<{
|
|
|
1407
1444
|
instanceOf: (obj: any) => obj is PathKind;
|
|
1408
1445
|
DirectDialed: {
|
|
1409
1446
|
new (): {
|
|
1410
|
-
readonly tag: PathKind_Tags.DirectDialed;
|
|
1411
1447
|
/**
|
|
1412
1448
|
* @private
|
|
1413
1449
|
* This field is private and should not be used, use `tag` instead.
|
|
1414
1450
|
*/
|
|
1415
1451
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1452
|
+
readonly tag: PathKind_Tags.DirectDialed;
|
|
1416
1453
|
};
|
|
1417
1454
|
"new"(): {
|
|
1418
|
-
readonly tag: PathKind_Tags.DirectDialed;
|
|
1419
1455
|
/**
|
|
1420
1456
|
* @private
|
|
1421
1457
|
* This field is private and should not be used, use `tag` instead.
|
|
1422
1458
|
*/
|
|
1423
1459
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1460
|
+
readonly tag: PathKind_Tags.DirectDialed;
|
|
1424
1461
|
};
|
|
1425
1462
|
instanceOf(obj: any): obj is {
|
|
1426
|
-
readonly tag: PathKind_Tags.DirectDialed;
|
|
1427
1463
|
/**
|
|
1428
1464
|
* @private
|
|
1429
1465
|
* This field is private and should not be used, use `tag` instead.
|
|
1430
1466
|
*/
|
|
1431
1467
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1468
|
+
readonly tag: PathKind_Tags.DirectDialed;
|
|
1432
1469
|
};
|
|
1433
1470
|
};
|
|
1434
1471
|
DirectPunched: {
|
|
1435
1472
|
new (): {
|
|
1436
|
-
readonly tag: PathKind_Tags.DirectPunched;
|
|
1437
1473
|
/**
|
|
1438
1474
|
* @private
|
|
1439
1475
|
* This field is private and should not be used, use `tag` instead.
|
|
1440
1476
|
*/
|
|
1441
1477
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1478
|
+
readonly tag: PathKind_Tags.DirectPunched;
|
|
1442
1479
|
};
|
|
1443
1480
|
"new"(): {
|
|
1444
|
-
readonly tag: PathKind_Tags.DirectPunched;
|
|
1445
1481
|
/**
|
|
1446
1482
|
* @private
|
|
1447
1483
|
* This field is private and should not be used, use `tag` instead.
|
|
1448
1484
|
*/
|
|
1449
1485
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1486
|
+
readonly tag: PathKind_Tags.DirectPunched;
|
|
1450
1487
|
};
|
|
1451
1488
|
instanceOf(obj: any): obj is {
|
|
1452
|
-
readonly tag: PathKind_Tags.DirectPunched;
|
|
1453
1489
|
/**
|
|
1454
1490
|
* @private
|
|
1455
1491
|
* This field is private and should not be used, use `tag` instead.
|
|
1456
1492
|
*/
|
|
1457
1493
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1494
|
+
readonly tag: PathKind_Tags.DirectPunched;
|
|
1458
1495
|
};
|
|
1459
1496
|
};
|
|
1460
1497
|
Relayed: {
|
|
1461
1498
|
new (inner: {
|
|
1462
1499
|
relayPeerId: string;
|
|
1463
1500
|
}): {
|
|
1464
|
-
readonly tag: PathKind_Tags.Relayed;
|
|
1465
|
-
readonly inner: Readonly<{
|
|
1466
|
-
relayPeerId: string;
|
|
1467
|
-
}>;
|
|
1468
1501
|
/**
|
|
1469
1502
|
* @private
|
|
1470
1503
|
* This field is private and should not be used, use `tag` instead.
|
|
1471
1504
|
*/
|
|
1472
1505
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1473
|
-
};
|
|
1474
|
-
"new"(inner: {
|
|
1475
|
-
relayPeerId: string;
|
|
1476
|
-
}): {
|
|
1477
1506
|
readonly tag: PathKind_Tags.Relayed;
|
|
1478
1507
|
readonly inner: Readonly<{
|
|
1479
1508
|
relayPeerId: string;
|
|
1480
1509
|
}>;
|
|
1510
|
+
};
|
|
1511
|
+
"new"(inner: {
|
|
1512
|
+
relayPeerId: string;
|
|
1513
|
+
}): {
|
|
1481
1514
|
/**
|
|
1482
1515
|
* @private
|
|
1483
1516
|
* This field is private and should not be used, use `tag` instead.
|
|
1484
1517
|
*/
|
|
1485
1518
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1486
|
-
};
|
|
1487
|
-
instanceOf(obj: any): obj is {
|
|
1488
1519
|
readonly tag: PathKind_Tags.Relayed;
|
|
1489
1520
|
readonly inner: Readonly<{
|
|
1490
1521
|
relayPeerId: string;
|
|
1491
1522
|
}>;
|
|
1523
|
+
};
|
|
1524
|
+
instanceOf(obj: any): obj is {
|
|
1492
1525
|
/**
|
|
1493
1526
|
* @private
|
|
1494
1527
|
* This field is private and should not be used, use `tag` instead.
|
|
1495
1528
|
*/
|
|
1496
1529
|
readonly [uniffiTypeNameSymbol]: "PathKind";
|
|
1530
|
+
readonly tag: PathKind_Tags.Relayed;
|
|
1531
|
+
readonly inner: Readonly<{
|
|
1532
|
+
relayPeerId: string;
|
|
1533
|
+
}>;
|
|
1497
1534
|
};
|
|
1498
1535
|
};
|
|
1499
1536
|
}>;
|
|
@@ -1547,43 +1584,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
1547
1584
|
dropped: bigint;
|
|
1548
1585
|
totalDropped: bigint;
|
|
1549
1586
|
}): {
|
|
1550
|
-
readonly tag: P2pEvent_Tags.EventsDropped;
|
|
1551
|
-
readonly inner: Readonly<{
|
|
1552
|
-
dropped: bigint;
|
|
1553
|
-
totalDropped: bigint;
|
|
1554
|
-
}>;
|
|
1555
1587
|
/**
|
|
1556
1588
|
* @private
|
|
1557
1589
|
* This field is private and should not be used, use `tag` instead.
|
|
1558
1590
|
*/
|
|
1559
1591
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1560
|
-
};
|
|
1561
|
-
"new"(inner: {
|
|
1562
|
-
dropped: bigint;
|
|
1563
|
-
totalDropped: bigint;
|
|
1564
|
-
}): {
|
|
1565
1592
|
readonly tag: P2pEvent_Tags.EventsDropped;
|
|
1566
1593
|
readonly inner: Readonly<{
|
|
1567
1594
|
dropped: bigint;
|
|
1568
1595
|
totalDropped: bigint;
|
|
1569
1596
|
}>;
|
|
1597
|
+
};
|
|
1598
|
+
"new"(inner: {
|
|
1599
|
+
dropped: bigint;
|
|
1600
|
+
totalDropped: bigint;
|
|
1601
|
+
}): {
|
|
1570
1602
|
/**
|
|
1571
1603
|
* @private
|
|
1572
1604
|
* This field is private and should not be used, use `tag` instead.
|
|
1573
1605
|
*/
|
|
1574
1606
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1575
|
-
};
|
|
1576
|
-
instanceOf(obj: any): obj is {
|
|
1577
1607
|
readonly tag: P2pEvent_Tags.EventsDropped;
|
|
1578
1608
|
readonly inner: Readonly<{
|
|
1579
1609
|
dropped: bigint;
|
|
1580
1610
|
totalDropped: bigint;
|
|
1581
1611
|
}>;
|
|
1612
|
+
};
|
|
1613
|
+
instanceOf(obj: any): obj is {
|
|
1582
1614
|
/**
|
|
1583
1615
|
* @private
|
|
1584
1616
|
* This field is private and should not be used, use `tag` instead.
|
|
1585
1617
|
*/
|
|
1586
1618
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1619
|
+
readonly tag: P2pEvent_Tags.EventsDropped;
|
|
1620
|
+
readonly inner: Readonly<{
|
|
1621
|
+
dropped: bigint;
|
|
1622
|
+
totalDropped: bigint;
|
|
1623
|
+
}>;
|
|
1587
1624
|
};
|
|
1588
1625
|
};
|
|
1589
1626
|
DriverFailed: {
|
|
@@ -1591,43 +1628,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
1591
1628
|
kind: DriverFailureKind;
|
|
1592
1629
|
detail: string;
|
|
1593
1630
|
}): {
|
|
1594
|
-
readonly tag: P2pEvent_Tags.DriverFailed;
|
|
1595
|
-
readonly inner: Readonly<{
|
|
1596
|
-
kind: DriverFailureKind;
|
|
1597
|
-
detail: string;
|
|
1598
|
-
}>;
|
|
1599
1631
|
/**
|
|
1600
1632
|
* @private
|
|
1601
1633
|
* This field is private and should not be used, use `tag` instead.
|
|
1602
1634
|
*/
|
|
1603
1635
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1604
|
-
};
|
|
1605
|
-
"new"(inner: {
|
|
1606
|
-
kind: DriverFailureKind;
|
|
1607
|
-
detail: string;
|
|
1608
|
-
}): {
|
|
1609
1636
|
readonly tag: P2pEvent_Tags.DriverFailed;
|
|
1610
1637
|
readonly inner: Readonly<{
|
|
1611
1638
|
kind: DriverFailureKind;
|
|
1612
1639
|
detail: string;
|
|
1613
1640
|
}>;
|
|
1641
|
+
};
|
|
1642
|
+
"new"(inner: {
|
|
1643
|
+
kind: DriverFailureKind;
|
|
1644
|
+
detail: string;
|
|
1645
|
+
}): {
|
|
1614
1646
|
/**
|
|
1615
1647
|
* @private
|
|
1616
1648
|
* This field is private and should not be used, use `tag` instead.
|
|
1617
1649
|
*/
|
|
1618
1650
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1619
|
-
};
|
|
1620
|
-
instanceOf(obj: any): obj is {
|
|
1621
1651
|
readonly tag: P2pEvent_Tags.DriverFailed;
|
|
1622
1652
|
readonly inner: Readonly<{
|
|
1623
1653
|
kind: DriverFailureKind;
|
|
1624
1654
|
detail: string;
|
|
1625
1655
|
}>;
|
|
1656
|
+
};
|
|
1657
|
+
instanceOf(obj: any): obj is {
|
|
1626
1658
|
/**
|
|
1627
1659
|
* @private
|
|
1628
1660
|
* This field is private and should not be used, use `tag` instead.
|
|
1629
1661
|
*/
|
|
1630
1662
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1663
|
+
readonly tag: P2pEvent_Tags.DriverFailed;
|
|
1664
|
+
readonly inner: Readonly<{
|
|
1665
|
+
kind: DriverFailureKind;
|
|
1666
|
+
detail: string;
|
|
1667
|
+
}>;
|
|
1631
1668
|
};
|
|
1632
1669
|
};
|
|
1633
1670
|
ConnectionEstablished: {
|
|
@@ -1635,43 +1672,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
1635
1672
|
peerId: string;
|
|
1636
1673
|
connId: bigint;
|
|
1637
1674
|
}): {
|
|
1638
|
-
readonly tag: P2pEvent_Tags.ConnectionEstablished;
|
|
1639
|
-
readonly inner: Readonly<{
|
|
1640
|
-
peerId: string;
|
|
1641
|
-
connId: bigint;
|
|
1642
|
-
}>;
|
|
1643
1675
|
/**
|
|
1644
1676
|
* @private
|
|
1645
1677
|
* This field is private and should not be used, use `tag` instead.
|
|
1646
1678
|
*/
|
|
1647
1679
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1648
|
-
};
|
|
1649
|
-
"new"(inner: {
|
|
1650
|
-
peerId: string;
|
|
1651
|
-
connId: bigint;
|
|
1652
|
-
}): {
|
|
1653
1680
|
readonly tag: P2pEvent_Tags.ConnectionEstablished;
|
|
1654
1681
|
readonly inner: Readonly<{
|
|
1655
1682
|
peerId: string;
|
|
1656
1683
|
connId: bigint;
|
|
1657
1684
|
}>;
|
|
1685
|
+
};
|
|
1686
|
+
"new"(inner: {
|
|
1687
|
+
peerId: string;
|
|
1688
|
+
connId: bigint;
|
|
1689
|
+
}): {
|
|
1658
1690
|
/**
|
|
1659
1691
|
* @private
|
|
1660
1692
|
* This field is private and should not be used, use `tag` instead.
|
|
1661
1693
|
*/
|
|
1662
1694
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1663
|
-
};
|
|
1664
|
-
instanceOf(obj: any): obj is {
|
|
1665
1695
|
readonly tag: P2pEvent_Tags.ConnectionEstablished;
|
|
1666
1696
|
readonly inner: Readonly<{
|
|
1667
1697
|
peerId: string;
|
|
1668
1698
|
connId: bigint;
|
|
1669
1699
|
}>;
|
|
1700
|
+
};
|
|
1701
|
+
instanceOf(obj: any): obj is {
|
|
1670
1702
|
/**
|
|
1671
1703
|
* @private
|
|
1672
1704
|
* This field is private and should not be used, use `tag` instead.
|
|
1673
1705
|
*/
|
|
1674
1706
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1707
|
+
readonly tag: P2pEvent_Tags.ConnectionEstablished;
|
|
1708
|
+
readonly inner: Readonly<{
|
|
1709
|
+
peerId: string;
|
|
1710
|
+
connId: bigint;
|
|
1711
|
+
}>;
|
|
1675
1712
|
};
|
|
1676
1713
|
};
|
|
1677
1714
|
ConnectionClosed: {
|
|
@@ -1679,43 +1716,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
1679
1716
|
peerId: string;
|
|
1680
1717
|
connId: bigint;
|
|
1681
1718
|
}): {
|
|
1682
|
-
readonly tag: P2pEvent_Tags.ConnectionClosed;
|
|
1683
|
-
readonly inner: Readonly<{
|
|
1684
|
-
peerId: string;
|
|
1685
|
-
connId: bigint;
|
|
1686
|
-
}>;
|
|
1687
1719
|
/**
|
|
1688
1720
|
* @private
|
|
1689
1721
|
* This field is private and should not be used, use `tag` instead.
|
|
1690
1722
|
*/
|
|
1691
1723
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1692
|
-
};
|
|
1693
|
-
"new"(inner: {
|
|
1694
|
-
peerId: string;
|
|
1695
|
-
connId: bigint;
|
|
1696
|
-
}): {
|
|
1697
1724
|
readonly tag: P2pEvent_Tags.ConnectionClosed;
|
|
1698
1725
|
readonly inner: Readonly<{
|
|
1699
1726
|
peerId: string;
|
|
1700
1727
|
connId: bigint;
|
|
1701
1728
|
}>;
|
|
1729
|
+
};
|
|
1730
|
+
"new"(inner: {
|
|
1731
|
+
peerId: string;
|
|
1732
|
+
connId: bigint;
|
|
1733
|
+
}): {
|
|
1702
1734
|
/**
|
|
1703
1735
|
* @private
|
|
1704
1736
|
* This field is private and should not be used, use `tag` instead.
|
|
1705
1737
|
*/
|
|
1706
1738
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1707
|
-
};
|
|
1708
|
-
instanceOf(obj: any): obj is {
|
|
1709
1739
|
readonly tag: P2pEvent_Tags.ConnectionClosed;
|
|
1710
1740
|
readonly inner: Readonly<{
|
|
1711
1741
|
peerId: string;
|
|
1712
1742
|
connId: bigint;
|
|
1713
1743
|
}>;
|
|
1744
|
+
};
|
|
1745
|
+
instanceOf(obj: any): obj is {
|
|
1714
1746
|
/**
|
|
1715
1747
|
* @private
|
|
1716
1748
|
* This field is private and should not be used, use `tag` instead.
|
|
1717
1749
|
*/
|
|
1718
1750
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1751
|
+
readonly tag: P2pEvent_Tags.ConnectionClosed;
|
|
1752
|
+
readonly inner: Readonly<{
|
|
1753
|
+
peerId: string;
|
|
1754
|
+
connId: bigint;
|
|
1755
|
+
}>;
|
|
1719
1756
|
};
|
|
1720
1757
|
};
|
|
1721
1758
|
PeerReady: {
|
|
@@ -1723,43 +1760,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
1723
1760
|
peerId: string;
|
|
1724
1761
|
protocols: Array<string>;
|
|
1725
1762
|
}): {
|
|
1726
|
-
readonly tag: P2pEvent_Tags.PeerReady;
|
|
1727
|
-
readonly inner: Readonly<{
|
|
1728
|
-
peerId: string;
|
|
1729
|
-
protocols: Array<string>;
|
|
1730
|
-
}>;
|
|
1731
1763
|
/**
|
|
1732
1764
|
* @private
|
|
1733
1765
|
* This field is private and should not be used, use `tag` instead.
|
|
1734
1766
|
*/
|
|
1735
1767
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1736
|
-
};
|
|
1737
|
-
"new"(inner: {
|
|
1738
|
-
peerId: string;
|
|
1739
|
-
protocols: Array<string>;
|
|
1740
|
-
}): {
|
|
1741
1768
|
readonly tag: P2pEvent_Tags.PeerReady;
|
|
1742
1769
|
readonly inner: Readonly<{
|
|
1743
1770
|
peerId: string;
|
|
1744
1771
|
protocols: Array<string>;
|
|
1745
1772
|
}>;
|
|
1773
|
+
};
|
|
1774
|
+
"new"(inner: {
|
|
1775
|
+
peerId: string;
|
|
1776
|
+
protocols: Array<string>;
|
|
1777
|
+
}): {
|
|
1746
1778
|
/**
|
|
1747
1779
|
* @private
|
|
1748
1780
|
* This field is private and should not be used, use `tag` instead.
|
|
1749
1781
|
*/
|
|
1750
1782
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1751
|
-
};
|
|
1752
|
-
instanceOf(obj: any): obj is {
|
|
1753
1783
|
readonly tag: P2pEvent_Tags.PeerReady;
|
|
1754
1784
|
readonly inner: Readonly<{
|
|
1755
1785
|
peerId: string;
|
|
1756
1786
|
protocols: Array<string>;
|
|
1757
1787
|
}>;
|
|
1788
|
+
};
|
|
1789
|
+
instanceOf(obj: any): obj is {
|
|
1758
1790
|
/**
|
|
1759
1791
|
* @private
|
|
1760
1792
|
* This field is private and should not be used, use `tag` instead.
|
|
1761
1793
|
*/
|
|
1762
1794
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1795
|
+
readonly tag: P2pEvent_Tags.PeerReady;
|
|
1796
|
+
readonly inner: Readonly<{
|
|
1797
|
+
peerId: string;
|
|
1798
|
+
protocols: Array<string>;
|
|
1799
|
+
}>;
|
|
1763
1800
|
};
|
|
1764
1801
|
};
|
|
1765
1802
|
IdentifyReceived: {
|
|
@@ -1767,43 +1804,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
1767
1804
|
peerId: string;
|
|
1768
1805
|
info: IdentifyInfo;
|
|
1769
1806
|
}): {
|
|
1770
|
-
readonly tag: P2pEvent_Tags.IdentifyReceived;
|
|
1771
|
-
readonly inner: Readonly<{
|
|
1772
|
-
peerId: string;
|
|
1773
|
-
info: IdentifyInfo;
|
|
1774
|
-
}>;
|
|
1775
1807
|
/**
|
|
1776
1808
|
* @private
|
|
1777
1809
|
* This field is private and should not be used, use `tag` instead.
|
|
1778
1810
|
*/
|
|
1779
1811
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1780
|
-
};
|
|
1781
|
-
"new"(inner: {
|
|
1782
|
-
peerId: string;
|
|
1783
|
-
info: IdentifyInfo;
|
|
1784
|
-
}): {
|
|
1785
1812
|
readonly tag: P2pEvent_Tags.IdentifyReceived;
|
|
1786
1813
|
readonly inner: Readonly<{
|
|
1787
1814
|
peerId: string;
|
|
1788
1815
|
info: IdentifyInfo;
|
|
1789
1816
|
}>;
|
|
1817
|
+
};
|
|
1818
|
+
"new"(inner: {
|
|
1819
|
+
peerId: string;
|
|
1820
|
+
info: IdentifyInfo;
|
|
1821
|
+
}): {
|
|
1790
1822
|
/**
|
|
1791
1823
|
* @private
|
|
1792
1824
|
* This field is private and should not be used, use `tag` instead.
|
|
1793
1825
|
*/
|
|
1794
1826
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1795
|
-
};
|
|
1796
|
-
instanceOf(obj: any): obj is {
|
|
1797
1827
|
readonly tag: P2pEvent_Tags.IdentifyReceived;
|
|
1798
1828
|
readonly inner: Readonly<{
|
|
1799
1829
|
peerId: string;
|
|
1800
1830
|
info: IdentifyInfo;
|
|
1801
1831
|
}>;
|
|
1832
|
+
};
|
|
1833
|
+
instanceOf(obj: any): obj is {
|
|
1802
1834
|
/**
|
|
1803
1835
|
* @private
|
|
1804
1836
|
* This field is private and should not be used, use `tag` instead.
|
|
1805
1837
|
*/
|
|
1806
1838
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1839
|
+
readonly tag: P2pEvent_Tags.IdentifyReceived;
|
|
1840
|
+
readonly inner: Readonly<{
|
|
1841
|
+
peerId: string;
|
|
1842
|
+
info: IdentifyInfo;
|
|
1843
|
+
}>;
|
|
1807
1844
|
};
|
|
1808
1845
|
};
|
|
1809
1846
|
PingRttMeasured: {
|
|
@@ -1811,82 +1848,82 @@ export declare const P2pEvent: Readonly<{
|
|
|
1811
1848
|
peerId: string;
|
|
1812
1849
|
rttMs: bigint;
|
|
1813
1850
|
}): {
|
|
1814
|
-
readonly tag: P2pEvent_Tags.PingRttMeasured;
|
|
1815
|
-
readonly inner: Readonly<{
|
|
1816
|
-
peerId: string;
|
|
1817
|
-
rttMs: bigint;
|
|
1818
|
-
}>;
|
|
1819
1851
|
/**
|
|
1820
1852
|
* @private
|
|
1821
1853
|
* This field is private and should not be used, use `tag` instead.
|
|
1822
1854
|
*/
|
|
1823
1855
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1824
|
-
};
|
|
1825
|
-
"new"(inner: {
|
|
1826
|
-
peerId: string;
|
|
1827
|
-
rttMs: bigint;
|
|
1828
|
-
}): {
|
|
1829
1856
|
readonly tag: P2pEvent_Tags.PingRttMeasured;
|
|
1830
1857
|
readonly inner: Readonly<{
|
|
1831
1858
|
peerId: string;
|
|
1832
1859
|
rttMs: bigint;
|
|
1833
1860
|
}>;
|
|
1861
|
+
};
|
|
1862
|
+
"new"(inner: {
|
|
1863
|
+
peerId: string;
|
|
1864
|
+
rttMs: bigint;
|
|
1865
|
+
}): {
|
|
1834
1866
|
/**
|
|
1835
1867
|
* @private
|
|
1836
1868
|
* This field is private and should not be used, use `tag` instead.
|
|
1837
1869
|
*/
|
|
1838
1870
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1839
|
-
};
|
|
1840
|
-
instanceOf(obj: any): obj is {
|
|
1841
1871
|
readonly tag: P2pEvent_Tags.PingRttMeasured;
|
|
1842
1872
|
readonly inner: Readonly<{
|
|
1843
1873
|
peerId: string;
|
|
1844
1874
|
rttMs: bigint;
|
|
1845
1875
|
}>;
|
|
1876
|
+
};
|
|
1877
|
+
instanceOf(obj: any): obj is {
|
|
1846
1878
|
/**
|
|
1847
1879
|
* @private
|
|
1848
1880
|
* This field is private and should not be used, use `tag` instead.
|
|
1849
1881
|
*/
|
|
1850
1882
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1883
|
+
readonly tag: P2pEvent_Tags.PingRttMeasured;
|
|
1884
|
+
readonly inner: Readonly<{
|
|
1885
|
+
peerId: string;
|
|
1886
|
+
rttMs: bigint;
|
|
1887
|
+
}>;
|
|
1851
1888
|
};
|
|
1852
1889
|
};
|
|
1853
1890
|
PingTimeout: {
|
|
1854
1891
|
new (inner: {
|
|
1855
1892
|
peerId: string;
|
|
1856
1893
|
}): {
|
|
1857
|
-
readonly tag: P2pEvent_Tags.PingTimeout;
|
|
1858
|
-
readonly inner: Readonly<{
|
|
1859
|
-
peerId: string;
|
|
1860
|
-
}>;
|
|
1861
1894
|
/**
|
|
1862
1895
|
* @private
|
|
1863
1896
|
* This field is private and should not be used, use `tag` instead.
|
|
1864
1897
|
*/
|
|
1865
1898
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1866
|
-
};
|
|
1867
|
-
"new"(inner: {
|
|
1868
|
-
peerId: string;
|
|
1869
|
-
}): {
|
|
1870
1899
|
readonly tag: P2pEvent_Tags.PingTimeout;
|
|
1871
1900
|
readonly inner: Readonly<{
|
|
1872
1901
|
peerId: string;
|
|
1873
1902
|
}>;
|
|
1903
|
+
};
|
|
1904
|
+
"new"(inner: {
|
|
1905
|
+
peerId: string;
|
|
1906
|
+
}): {
|
|
1874
1907
|
/**
|
|
1875
1908
|
* @private
|
|
1876
1909
|
* This field is private and should not be used, use `tag` instead.
|
|
1877
1910
|
*/
|
|
1878
1911
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1879
|
-
};
|
|
1880
|
-
instanceOf(obj: any): obj is {
|
|
1881
1912
|
readonly tag: P2pEvent_Tags.PingTimeout;
|
|
1882
1913
|
readonly inner: Readonly<{
|
|
1883
1914
|
peerId: string;
|
|
1884
1915
|
}>;
|
|
1916
|
+
};
|
|
1917
|
+
instanceOf(obj: any): obj is {
|
|
1885
1918
|
/**
|
|
1886
1919
|
* @private
|
|
1887
1920
|
* This field is private and should not be used, use `tag` instead.
|
|
1888
1921
|
*/
|
|
1889
1922
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1923
|
+
readonly tag: P2pEvent_Tags.PingTimeout;
|
|
1924
|
+
readonly inner: Readonly<{
|
|
1925
|
+
peerId: string;
|
|
1926
|
+
}>;
|
|
1890
1927
|
};
|
|
1891
1928
|
};
|
|
1892
1929
|
StreamReady: {
|
|
@@ -1897,6 +1934,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
1897
1934
|
protocolId: string;
|
|
1898
1935
|
initiatedLocally: boolean;
|
|
1899
1936
|
}): {
|
|
1937
|
+
/**
|
|
1938
|
+
* @private
|
|
1939
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1940
|
+
*/
|
|
1941
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1900
1942
|
readonly tag: P2pEvent_Tags.StreamReady;
|
|
1901
1943
|
readonly inner: Readonly<{
|
|
1902
1944
|
peerId: string;
|
|
@@ -1905,11 +1947,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
1905
1947
|
protocolId: string;
|
|
1906
1948
|
initiatedLocally: boolean;
|
|
1907
1949
|
}>;
|
|
1908
|
-
/**
|
|
1909
|
-
* @private
|
|
1910
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1911
|
-
*/
|
|
1912
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1913
1950
|
};
|
|
1914
1951
|
"new"(inner: {
|
|
1915
1952
|
peerId: string;
|
|
@@ -1918,6 +1955,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
1918
1955
|
protocolId: string;
|
|
1919
1956
|
initiatedLocally: boolean;
|
|
1920
1957
|
}): {
|
|
1958
|
+
/**
|
|
1959
|
+
* @private
|
|
1960
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1961
|
+
*/
|
|
1962
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1921
1963
|
readonly tag: P2pEvent_Tags.StreamReady;
|
|
1922
1964
|
readonly inner: Readonly<{
|
|
1923
1965
|
peerId: string;
|
|
@@ -1926,13 +1968,13 @@ export declare const P2pEvent: Readonly<{
|
|
|
1926
1968
|
protocolId: string;
|
|
1927
1969
|
initiatedLocally: boolean;
|
|
1928
1970
|
}>;
|
|
1971
|
+
};
|
|
1972
|
+
instanceOf(obj: any): obj is {
|
|
1929
1973
|
/**
|
|
1930
1974
|
* @private
|
|
1931
1975
|
* This field is private and should not be used, use `tag` instead.
|
|
1932
1976
|
*/
|
|
1933
1977
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1934
|
-
};
|
|
1935
|
-
instanceOf(obj: any): obj is {
|
|
1936
1978
|
readonly tag: P2pEvent_Tags.StreamReady;
|
|
1937
1979
|
readonly inner: Readonly<{
|
|
1938
1980
|
peerId: string;
|
|
@@ -1941,11 +1983,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
1941
1983
|
protocolId: string;
|
|
1942
1984
|
initiatedLocally: boolean;
|
|
1943
1985
|
}>;
|
|
1944
|
-
/**
|
|
1945
|
-
* @private
|
|
1946
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1947
|
-
*/
|
|
1948
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1949
1986
|
};
|
|
1950
1987
|
};
|
|
1951
1988
|
StreamData: {
|
|
@@ -1955,6 +1992,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
1955
1992
|
streamId: bigint;
|
|
1956
1993
|
data: ArrayBuffer;
|
|
1957
1994
|
}): {
|
|
1995
|
+
/**
|
|
1996
|
+
* @private
|
|
1997
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1998
|
+
*/
|
|
1999
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1958
2000
|
readonly tag: P2pEvent_Tags.StreamData;
|
|
1959
2001
|
readonly inner: Readonly<{
|
|
1960
2002
|
peerId: string;
|
|
@@ -1962,11 +2004,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
1962
2004
|
streamId: bigint;
|
|
1963
2005
|
data: ArrayBuffer;
|
|
1964
2006
|
}>;
|
|
1965
|
-
/**
|
|
1966
|
-
* @private
|
|
1967
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1968
|
-
*/
|
|
1969
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1970
2007
|
};
|
|
1971
2008
|
"new"(inner: {
|
|
1972
2009
|
peerId: string;
|
|
@@ -1974,6 +2011,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
1974
2011
|
streamId: bigint;
|
|
1975
2012
|
data: ArrayBuffer;
|
|
1976
2013
|
}): {
|
|
2014
|
+
/**
|
|
2015
|
+
* @private
|
|
2016
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2017
|
+
*/
|
|
2018
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1977
2019
|
readonly tag: P2pEvent_Tags.StreamData;
|
|
1978
2020
|
readonly inner: Readonly<{
|
|
1979
2021
|
peerId: string;
|
|
@@ -1981,13 +2023,13 @@ export declare const P2pEvent: Readonly<{
|
|
|
1981
2023
|
streamId: bigint;
|
|
1982
2024
|
data: ArrayBuffer;
|
|
1983
2025
|
}>;
|
|
2026
|
+
};
|
|
2027
|
+
instanceOf(obj: any): obj is {
|
|
1984
2028
|
/**
|
|
1985
2029
|
* @private
|
|
1986
2030
|
* This field is private and should not be used, use `tag` instead.
|
|
1987
2031
|
*/
|
|
1988
2032
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
1989
|
-
};
|
|
1990
|
-
instanceOf(obj: any): obj is {
|
|
1991
2033
|
readonly tag: P2pEvent_Tags.StreamData;
|
|
1992
2034
|
readonly inner: Readonly<{
|
|
1993
2035
|
peerId: string;
|
|
@@ -1995,11 +2037,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
1995
2037
|
streamId: bigint;
|
|
1996
2038
|
data: ArrayBuffer;
|
|
1997
2039
|
}>;
|
|
1998
|
-
/**
|
|
1999
|
-
* @private
|
|
2000
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2001
|
-
*/
|
|
2002
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2003
2040
|
};
|
|
2004
2041
|
};
|
|
2005
2042
|
StreamRemoteWriteClosed: {
|
|
@@ -2008,47 +2045,47 @@ export declare const P2pEvent: Readonly<{
|
|
|
2008
2045
|
connId: bigint;
|
|
2009
2046
|
streamId: bigint;
|
|
2010
2047
|
}): {
|
|
2048
|
+
/**
|
|
2049
|
+
* @private
|
|
2050
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2051
|
+
*/
|
|
2052
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2011
2053
|
readonly tag: P2pEvent_Tags.StreamRemoteWriteClosed;
|
|
2012
2054
|
readonly inner: Readonly<{
|
|
2013
2055
|
peerId: string;
|
|
2014
2056
|
connId: bigint;
|
|
2015
2057
|
streamId: bigint;
|
|
2016
2058
|
}>;
|
|
2017
|
-
/**
|
|
2018
|
-
* @private
|
|
2019
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2020
|
-
*/
|
|
2021
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2022
2059
|
};
|
|
2023
2060
|
"new"(inner: {
|
|
2024
2061
|
peerId: string;
|
|
2025
2062
|
connId: bigint;
|
|
2026
2063
|
streamId: bigint;
|
|
2027
2064
|
}): {
|
|
2065
|
+
/**
|
|
2066
|
+
* @private
|
|
2067
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2068
|
+
*/
|
|
2069
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2028
2070
|
readonly tag: P2pEvent_Tags.StreamRemoteWriteClosed;
|
|
2029
2071
|
readonly inner: Readonly<{
|
|
2030
2072
|
peerId: string;
|
|
2031
2073
|
connId: bigint;
|
|
2032
2074
|
streamId: bigint;
|
|
2033
2075
|
}>;
|
|
2076
|
+
};
|
|
2077
|
+
instanceOf(obj: any): obj is {
|
|
2034
2078
|
/**
|
|
2035
2079
|
* @private
|
|
2036
2080
|
* This field is private and should not be used, use `tag` instead.
|
|
2037
2081
|
*/
|
|
2038
2082
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2039
|
-
};
|
|
2040
|
-
instanceOf(obj: any): obj is {
|
|
2041
2083
|
readonly tag: P2pEvent_Tags.StreamRemoteWriteClosed;
|
|
2042
2084
|
readonly inner: Readonly<{
|
|
2043
2085
|
peerId: string;
|
|
2044
2086
|
connId: bigint;
|
|
2045
2087
|
streamId: bigint;
|
|
2046
2088
|
}>;
|
|
2047
|
-
/**
|
|
2048
|
-
* @private
|
|
2049
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2050
|
-
*/
|
|
2051
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2052
2089
|
};
|
|
2053
2090
|
};
|
|
2054
2091
|
StreamClosed: {
|
|
@@ -2057,47 +2094,47 @@ export declare const P2pEvent: Readonly<{
|
|
|
2057
2094
|
connId: bigint;
|
|
2058
2095
|
streamId: bigint;
|
|
2059
2096
|
}): {
|
|
2097
|
+
/**
|
|
2098
|
+
* @private
|
|
2099
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2100
|
+
*/
|
|
2101
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2060
2102
|
readonly tag: P2pEvent_Tags.StreamClosed;
|
|
2061
2103
|
readonly inner: Readonly<{
|
|
2062
2104
|
peerId: string;
|
|
2063
2105
|
connId: bigint;
|
|
2064
2106
|
streamId: bigint;
|
|
2065
2107
|
}>;
|
|
2066
|
-
/**
|
|
2067
|
-
* @private
|
|
2068
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2069
|
-
*/
|
|
2070
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2071
2108
|
};
|
|
2072
2109
|
"new"(inner: {
|
|
2073
2110
|
peerId: string;
|
|
2074
2111
|
connId: bigint;
|
|
2075
2112
|
streamId: bigint;
|
|
2076
2113
|
}): {
|
|
2114
|
+
/**
|
|
2115
|
+
* @private
|
|
2116
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2117
|
+
*/
|
|
2118
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2077
2119
|
readonly tag: P2pEvent_Tags.StreamClosed;
|
|
2078
2120
|
readonly inner: Readonly<{
|
|
2079
2121
|
peerId: string;
|
|
2080
2122
|
connId: bigint;
|
|
2081
2123
|
streamId: bigint;
|
|
2082
2124
|
}>;
|
|
2125
|
+
};
|
|
2126
|
+
instanceOf(obj: any): obj is {
|
|
2083
2127
|
/**
|
|
2084
2128
|
* @private
|
|
2085
2129
|
* This field is private and should not be used, use `tag` instead.
|
|
2086
2130
|
*/
|
|
2087
2131
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2088
|
-
};
|
|
2089
|
-
instanceOf(obj: any): obj is {
|
|
2090
2132
|
readonly tag: P2pEvent_Tags.StreamClosed;
|
|
2091
2133
|
readonly inner: Readonly<{
|
|
2092
2134
|
peerId: string;
|
|
2093
2135
|
connId: bigint;
|
|
2094
2136
|
streamId: bigint;
|
|
2095
2137
|
}>;
|
|
2096
|
-
/**
|
|
2097
|
-
* @private
|
|
2098
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2099
|
-
*/
|
|
2100
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2101
2138
|
};
|
|
2102
2139
|
};
|
|
2103
2140
|
EndpointError: {
|
|
@@ -2108,6 +2145,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
2108
2145
|
streamId?: bigint;
|
|
2109
2146
|
detail: string;
|
|
2110
2147
|
}): {
|
|
2148
|
+
/**
|
|
2149
|
+
* @private
|
|
2150
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2151
|
+
*/
|
|
2152
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2111
2153
|
readonly tag: P2pEvent_Tags.EndpointError;
|
|
2112
2154
|
readonly inner: Readonly<{
|
|
2113
2155
|
kind: EndpointErrorKind;
|
|
@@ -2116,11 +2158,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
2116
2158
|
streamId?: bigint;
|
|
2117
2159
|
detail: string;
|
|
2118
2160
|
}>;
|
|
2119
|
-
/**
|
|
2120
|
-
* @private
|
|
2121
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2122
|
-
*/
|
|
2123
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2124
2161
|
};
|
|
2125
2162
|
"new"(inner: {
|
|
2126
2163
|
kind: EndpointErrorKind;
|
|
@@ -2129,6 +2166,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
2129
2166
|
streamId?: bigint;
|
|
2130
2167
|
detail: string;
|
|
2131
2168
|
}): {
|
|
2169
|
+
/**
|
|
2170
|
+
* @private
|
|
2171
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2172
|
+
*/
|
|
2173
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2132
2174
|
readonly tag: P2pEvent_Tags.EndpointError;
|
|
2133
2175
|
readonly inner: Readonly<{
|
|
2134
2176
|
kind: EndpointErrorKind;
|
|
@@ -2137,13 +2179,13 @@ export declare const P2pEvent: Readonly<{
|
|
|
2137
2179
|
streamId?: bigint;
|
|
2138
2180
|
detail: string;
|
|
2139
2181
|
}>;
|
|
2182
|
+
};
|
|
2183
|
+
instanceOf(obj: any): obj is {
|
|
2140
2184
|
/**
|
|
2141
2185
|
* @private
|
|
2142
2186
|
* This field is private and should not be used, use `tag` instead.
|
|
2143
2187
|
*/
|
|
2144
2188
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2145
|
-
};
|
|
2146
|
-
instanceOf(obj: any): obj is {
|
|
2147
2189
|
readonly tag: P2pEvent_Tags.EndpointError;
|
|
2148
2190
|
readonly inner: Readonly<{
|
|
2149
2191
|
kind: EndpointErrorKind;
|
|
@@ -2152,11 +2194,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
2152
2194
|
streamId?: bigint;
|
|
2153
2195
|
detail: string;
|
|
2154
2196
|
}>;
|
|
2155
|
-
/**
|
|
2156
|
-
* @private
|
|
2157
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2158
|
-
*/
|
|
2159
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2160
2197
|
};
|
|
2161
2198
|
};
|
|
2162
2199
|
ReachabilityChanged: {
|
|
@@ -2165,86 +2202,86 @@ export declare const P2pEvent: Readonly<{
|
|
|
2165
2202
|
current: Reachability;
|
|
2166
2203
|
confirmedAddrs: Array<string>;
|
|
2167
2204
|
}): {
|
|
2205
|
+
/**
|
|
2206
|
+
* @private
|
|
2207
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2208
|
+
*/
|
|
2209
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2168
2210
|
readonly tag: P2pEvent_Tags.ReachabilityChanged;
|
|
2169
2211
|
readonly inner: Readonly<{
|
|
2170
2212
|
previous: Reachability;
|
|
2171
2213
|
current: Reachability;
|
|
2172
2214
|
confirmedAddrs: Array<string>;
|
|
2173
2215
|
}>;
|
|
2174
|
-
/**
|
|
2175
|
-
* @private
|
|
2176
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2177
|
-
*/
|
|
2178
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2179
2216
|
};
|
|
2180
2217
|
"new"(inner: {
|
|
2181
2218
|
previous: Reachability;
|
|
2182
2219
|
current: Reachability;
|
|
2183
2220
|
confirmedAddrs: Array<string>;
|
|
2184
2221
|
}): {
|
|
2222
|
+
/**
|
|
2223
|
+
* @private
|
|
2224
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2225
|
+
*/
|
|
2226
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2185
2227
|
readonly tag: P2pEvent_Tags.ReachabilityChanged;
|
|
2186
2228
|
readonly inner: Readonly<{
|
|
2187
2229
|
previous: Reachability;
|
|
2188
2230
|
current: Reachability;
|
|
2189
2231
|
confirmedAddrs: Array<string>;
|
|
2190
2232
|
}>;
|
|
2233
|
+
};
|
|
2234
|
+
instanceOf(obj: any): obj is {
|
|
2191
2235
|
/**
|
|
2192
2236
|
* @private
|
|
2193
2237
|
* This field is private and should not be used, use `tag` instead.
|
|
2194
2238
|
*/
|
|
2195
2239
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2196
|
-
};
|
|
2197
|
-
instanceOf(obj: any): obj is {
|
|
2198
2240
|
readonly tag: P2pEvent_Tags.ReachabilityChanged;
|
|
2199
2241
|
readonly inner: Readonly<{
|
|
2200
2242
|
previous: Reachability;
|
|
2201
2243
|
current: Reachability;
|
|
2202
2244
|
confirmedAddrs: Array<string>;
|
|
2203
2245
|
}>;
|
|
2204
|
-
/**
|
|
2205
|
-
* @private
|
|
2206
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2207
|
-
*/
|
|
2208
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2209
2246
|
};
|
|
2210
2247
|
};
|
|
2211
2248
|
PublicAddressesChanged: {
|
|
2212
2249
|
new (inner: {
|
|
2213
2250
|
addrs: Array<string>;
|
|
2214
2251
|
}): {
|
|
2215
|
-
readonly tag: P2pEvent_Tags.PublicAddressesChanged;
|
|
2216
|
-
readonly inner: Readonly<{
|
|
2217
|
-
addrs: Array<string>;
|
|
2218
|
-
}>;
|
|
2219
2252
|
/**
|
|
2220
2253
|
* @private
|
|
2221
2254
|
* This field is private and should not be used, use `tag` instead.
|
|
2222
2255
|
*/
|
|
2223
2256
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2224
|
-
};
|
|
2225
|
-
"new"(inner: {
|
|
2226
|
-
addrs: Array<string>;
|
|
2227
|
-
}): {
|
|
2228
2257
|
readonly tag: P2pEvent_Tags.PublicAddressesChanged;
|
|
2229
2258
|
readonly inner: Readonly<{
|
|
2230
2259
|
addrs: Array<string>;
|
|
2231
2260
|
}>;
|
|
2261
|
+
};
|
|
2262
|
+
"new"(inner: {
|
|
2263
|
+
addrs: Array<string>;
|
|
2264
|
+
}): {
|
|
2232
2265
|
/**
|
|
2233
2266
|
* @private
|
|
2234
2267
|
* This field is private and should not be used, use `tag` instead.
|
|
2235
2268
|
*/
|
|
2236
2269
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2237
|
-
};
|
|
2238
|
-
instanceOf(obj: any): obj is {
|
|
2239
2270
|
readonly tag: P2pEvent_Tags.PublicAddressesChanged;
|
|
2240
2271
|
readonly inner: Readonly<{
|
|
2241
2272
|
addrs: Array<string>;
|
|
2242
2273
|
}>;
|
|
2274
|
+
};
|
|
2275
|
+
instanceOf(obj: any): obj is {
|
|
2243
2276
|
/**
|
|
2244
2277
|
* @private
|
|
2245
2278
|
* This field is private and should not be used, use `tag` instead.
|
|
2246
2279
|
*/
|
|
2247
2280
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2281
|
+
readonly tag: P2pEvent_Tags.PublicAddressesChanged;
|
|
2282
|
+
readonly inner: Readonly<{
|
|
2283
|
+
addrs: Array<string>;
|
|
2284
|
+
}>;
|
|
2248
2285
|
};
|
|
2249
2286
|
};
|
|
2250
2287
|
RelayReserved: {
|
|
@@ -2252,82 +2289,82 @@ export declare const P2pEvent: Readonly<{
|
|
|
2252
2289
|
relayPeerId: string;
|
|
2253
2290
|
expiresUnixSecs?: bigint;
|
|
2254
2291
|
}): {
|
|
2255
|
-
readonly tag: P2pEvent_Tags.RelayReserved;
|
|
2256
|
-
readonly inner: Readonly<{
|
|
2257
|
-
relayPeerId: string;
|
|
2258
|
-
expiresUnixSecs?: bigint;
|
|
2259
|
-
}>;
|
|
2260
2292
|
/**
|
|
2261
2293
|
* @private
|
|
2262
2294
|
* This field is private and should not be used, use `tag` instead.
|
|
2263
2295
|
*/
|
|
2264
2296
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2265
|
-
};
|
|
2266
|
-
"new"(inner: {
|
|
2267
|
-
relayPeerId: string;
|
|
2268
|
-
expiresUnixSecs?: bigint;
|
|
2269
|
-
}): {
|
|
2270
2297
|
readonly tag: P2pEvent_Tags.RelayReserved;
|
|
2271
2298
|
readonly inner: Readonly<{
|
|
2272
2299
|
relayPeerId: string;
|
|
2273
2300
|
expiresUnixSecs?: bigint;
|
|
2274
2301
|
}>;
|
|
2302
|
+
};
|
|
2303
|
+
"new"(inner: {
|
|
2304
|
+
relayPeerId: string;
|
|
2305
|
+
expiresUnixSecs?: bigint;
|
|
2306
|
+
}): {
|
|
2275
2307
|
/**
|
|
2276
2308
|
* @private
|
|
2277
2309
|
* This field is private and should not be used, use `tag` instead.
|
|
2278
2310
|
*/
|
|
2279
2311
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2280
|
-
};
|
|
2281
|
-
instanceOf(obj: any): obj is {
|
|
2282
2312
|
readonly tag: P2pEvent_Tags.RelayReserved;
|
|
2283
2313
|
readonly inner: Readonly<{
|
|
2284
2314
|
relayPeerId: string;
|
|
2285
2315
|
expiresUnixSecs?: bigint;
|
|
2286
2316
|
}>;
|
|
2317
|
+
};
|
|
2318
|
+
instanceOf(obj: any): obj is {
|
|
2287
2319
|
/**
|
|
2288
2320
|
* @private
|
|
2289
2321
|
* This field is private and should not be used, use `tag` instead.
|
|
2290
2322
|
*/
|
|
2291
2323
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2324
|
+
readonly tag: P2pEvent_Tags.RelayReserved;
|
|
2325
|
+
readonly inner: Readonly<{
|
|
2326
|
+
relayPeerId: string;
|
|
2327
|
+
expiresUnixSecs?: bigint;
|
|
2328
|
+
}>;
|
|
2292
2329
|
};
|
|
2293
2330
|
};
|
|
2294
2331
|
RelayReservationLost: {
|
|
2295
2332
|
new (inner: {
|
|
2296
2333
|
relayPeerId: string;
|
|
2297
2334
|
}): {
|
|
2298
|
-
readonly tag: P2pEvent_Tags.RelayReservationLost;
|
|
2299
|
-
readonly inner: Readonly<{
|
|
2300
|
-
relayPeerId: string;
|
|
2301
|
-
}>;
|
|
2302
2335
|
/**
|
|
2303
2336
|
* @private
|
|
2304
2337
|
* This field is private and should not be used, use `tag` instead.
|
|
2305
2338
|
*/
|
|
2306
2339
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2307
|
-
};
|
|
2308
|
-
"new"(inner: {
|
|
2309
|
-
relayPeerId: string;
|
|
2310
|
-
}): {
|
|
2311
2340
|
readonly tag: P2pEvent_Tags.RelayReservationLost;
|
|
2312
2341
|
readonly inner: Readonly<{
|
|
2313
2342
|
relayPeerId: string;
|
|
2314
2343
|
}>;
|
|
2344
|
+
};
|
|
2345
|
+
"new"(inner: {
|
|
2346
|
+
relayPeerId: string;
|
|
2347
|
+
}): {
|
|
2315
2348
|
/**
|
|
2316
2349
|
* @private
|
|
2317
2350
|
* This field is private and should not be used, use `tag` instead.
|
|
2318
2351
|
*/
|
|
2319
2352
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2320
|
-
};
|
|
2321
|
-
instanceOf(obj: any): obj is {
|
|
2322
2353
|
readonly tag: P2pEvent_Tags.RelayReservationLost;
|
|
2323
2354
|
readonly inner: Readonly<{
|
|
2324
2355
|
relayPeerId: string;
|
|
2325
2356
|
}>;
|
|
2357
|
+
};
|
|
2358
|
+
instanceOf(obj: any): obj is {
|
|
2326
2359
|
/**
|
|
2327
2360
|
* @private
|
|
2328
2361
|
* This field is private and should not be used, use `tag` instead.
|
|
2329
2362
|
*/
|
|
2330
2363
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2364
|
+
readonly tag: P2pEvent_Tags.RelayReservationLost;
|
|
2365
|
+
readonly inner: Readonly<{
|
|
2366
|
+
relayPeerId: string;
|
|
2367
|
+
}>;
|
|
2331
2368
|
};
|
|
2332
2369
|
};
|
|
2333
2370
|
PathEstablished: {
|
|
@@ -2336,47 +2373,47 @@ export declare const P2pEvent: Readonly<{
|
|
|
2336
2373
|
peerId: string;
|
|
2337
2374
|
path: PathKind;
|
|
2338
2375
|
}): {
|
|
2376
|
+
/**
|
|
2377
|
+
* @private
|
|
2378
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2379
|
+
*/
|
|
2380
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2339
2381
|
readonly tag: P2pEvent_Tags.PathEstablished;
|
|
2340
2382
|
readonly inner: Readonly<{
|
|
2341
2383
|
connectId: bigint;
|
|
2342
2384
|
peerId: string;
|
|
2343
2385
|
path: PathKind;
|
|
2344
2386
|
}>;
|
|
2345
|
-
/**
|
|
2346
|
-
* @private
|
|
2347
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2348
|
-
*/
|
|
2349
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2350
2387
|
};
|
|
2351
2388
|
"new"(inner: {
|
|
2352
2389
|
connectId: bigint;
|
|
2353
2390
|
peerId: string;
|
|
2354
2391
|
path: PathKind;
|
|
2355
2392
|
}): {
|
|
2393
|
+
/**
|
|
2394
|
+
* @private
|
|
2395
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2396
|
+
*/
|
|
2397
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2356
2398
|
readonly tag: P2pEvent_Tags.PathEstablished;
|
|
2357
2399
|
readonly inner: Readonly<{
|
|
2358
2400
|
connectId: bigint;
|
|
2359
2401
|
peerId: string;
|
|
2360
2402
|
path: PathKind;
|
|
2361
2403
|
}>;
|
|
2404
|
+
};
|
|
2405
|
+
instanceOf(obj: any): obj is {
|
|
2362
2406
|
/**
|
|
2363
2407
|
* @private
|
|
2364
2408
|
* This field is private and should not be used, use `tag` instead.
|
|
2365
2409
|
*/
|
|
2366
2410
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2367
|
-
};
|
|
2368
|
-
instanceOf(obj: any): obj is {
|
|
2369
2411
|
readonly tag: P2pEvent_Tags.PathEstablished;
|
|
2370
2412
|
readonly inner: Readonly<{
|
|
2371
2413
|
connectId: bigint;
|
|
2372
2414
|
peerId: string;
|
|
2373
2415
|
path: PathKind;
|
|
2374
2416
|
}>;
|
|
2375
|
-
/**
|
|
2376
|
-
* @private
|
|
2377
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2378
|
-
*/
|
|
2379
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2380
2417
|
};
|
|
2381
2418
|
};
|
|
2382
2419
|
InboundPathEstablished: {
|
|
@@ -2384,43 +2421,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
2384
2421
|
peerId: string;
|
|
2385
2422
|
path: PathKind;
|
|
2386
2423
|
}): {
|
|
2387
|
-
readonly tag: P2pEvent_Tags.InboundPathEstablished;
|
|
2388
|
-
readonly inner: Readonly<{
|
|
2389
|
-
peerId: string;
|
|
2390
|
-
path: PathKind;
|
|
2391
|
-
}>;
|
|
2392
2424
|
/**
|
|
2393
2425
|
* @private
|
|
2394
2426
|
* This field is private and should not be used, use `tag` instead.
|
|
2395
2427
|
*/
|
|
2396
2428
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2397
|
-
};
|
|
2398
|
-
"new"(inner: {
|
|
2399
|
-
peerId: string;
|
|
2400
|
-
path: PathKind;
|
|
2401
|
-
}): {
|
|
2402
2429
|
readonly tag: P2pEvent_Tags.InboundPathEstablished;
|
|
2403
2430
|
readonly inner: Readonly<{
|
|
2404
2431
|
peerId: string;
|
|
2405
2432
|
path: PathKind;
|
|
2406
2433
|
}>;
|
|
2434
|
+
};
|
|
2435
|
+
"new"(inner: {
|
|
2436
|
+
peerId: string;
|
|
2437
|
+
path: PathKind;
|
|
2438
|
+
}): {
|
|
2407
2439
|
/**
|
|
2408
2440
|
* @private
|
|
2409
2441
|
* This field is private and should not be used, use `tag` instead.
|
|
2410
2442
|
*/
|
|
2411
2443
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2412
|
-
};
|
|
2413
|
-
instanceOf(obj: any): obj is {
|
|
2414
2444
|
readonly tag: P2pEvent_Tags.InboundPathEstablished;
|
|
2415
2445
|
readonly inner: Readonly<{
|
|
2416
2446
|
peerId: string;
|
|
2417
2447
|
path: PathKind;
|
|
2418
2448
|
}>;
|
|
2449
|
+
};
|
|
2450
|
+
instanceOf(obj: any): obj is {
|
|
2419
2451
|
/**
|
|
2420
2452
|
* @private
|
|
2421
2453
|
* This field is private and should not be used, use `tag` instead.
|
|
2422
2454
|
*/
|
|
2423
2455
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2456
|
+
readonly tag: P2pEvent_Tags.InboundPathEstablished;
|
|
2457
|
+
readonly inner: Readonly<{
|
|
2458
|
+
peerId: string;
|
|
2459
|
+
path: PathKind;
|
|
2460
|
+
}>;
|
|
2424
2461
|
};
|
|
2425
2462
|
};
|
|
2426
2463
|
PathUpgraded: {
|
|
@@ -2430,6 +2467,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
2430
2467
|
from: PathKind;
|
|
2431
2468
|
to: PathKind;
|
|
2432
2469
|
}): {
|
|
2470
|
+
/**
|
|
2471
|
+
* @private
|
|
2472
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2473
|
+
*/
|
|
2474
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2433
2475
|
readonly tag: P2pEvent_Tags.PathUpgraded;
|
|
2434
2476
|
readonly inner: Readonly<{
|
|
2435
2477
|
connectId: bigint;
|
|
@@ -2437,11 +2479,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
2437
2479
|
from: PathKind;
|
|
2438
2480
|
to: PathKind;
|
|
2439
2481
|
}>;
|
|
2440
|
-
/**
|
|
2441
|
-
* @private
|
|
2442
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2443
|
-
*/
|
|
2444
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2445
2482
|
};
|
|
2446
2483
|
"new"(inner: {
|
|
2447
2484
|
connectId: bigint;
|
|
@@ -2449,6 +2486,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
2449
2486
|
from: PathKind;
|
|
2450
2487
|
to: PathKind;
|
|
2451
2488
|
}): {
|
|
2489
|
+
/**
|
|
2490
|
+
* @private
|
|
2491
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2492
|
+
*/
|
|
2493
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2452
2494
|
readonly tag: P2pEvent_Tags.PathUpgraded;
|
|
2453
2495
|
readonly inner: Readonly<{
|
|
2454
2496
|
connectId: bigint;
|
|
@@ -2456,13 +2498,13 @@ export declare const P2pEvent: Readonly<{
|
|
|
2456
2498
|
from: PathKind;
|
|
2457
2499
|
to: PathKind;
|
|
2458
2500
|
}>;
|
|
2501
|
+
};
|
|
2502
|
+
instanceOf(obj: any): obj is {
|
|
2459
2503
|
/**
|
|
2460
2504
|
* @private
|
|
2461
2505
|
* This field is private and should not be used, use `tag` instead.
|
|
2462
2506
|
*/
|
|
2463
2507
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2464
|
-
};
|
|
2465
|
-
instanceOf(obj: any): obj is {
|
|
2466
2508
|
readonly tag: P2pEvent_Tags.PathUpgraded;
|
|
2467
2509
|
readonly inner: Readonly<{
|
|
2468
2510
|
connectId: bigint;
|
|
@@ -2470,11 +2512,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
2470
2512
|
from: PathKind;
|
|
2471
2513
|
to: PathKind;
|
|
2472
2514
|
}>;
|
|
2473
|
-
/**
|
|
2474
|
-
* @private
|
|
2475
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2476
|
-
*/
|
|
2477
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2478
2515
|
};
|
|
2479
2516
|
};
|
|
2480
2517
|
HolePunchFailed: {
|
|
@@ -2483,47 +2520,47 @@ export declare const P2pEvent: Readonly<{
|
|
|
2483
2520
|
attempt: number;
|
|
2484
2521
|
reason: string;
|
|
2485
2522
|
}): {
|
|
2523
|
+
/**
|
|
2524
|
+
* @private
|
|
2525
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2526
|
+
*/
|
|
2527
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2486
2528
|
readonly tag: P2pEvent_Tags.HolePunchFailed;
|
|
2487
2529
|
readonly inner: Readonly<{
|
|
2488
2530
|
connectId: bigint;
|
|
2489
2531
|
attempt: number;
|
|
2490
2532
|
reason: string;
|
|
2491
2533
|
}>;
|
|
2492
|
-
/**
|
|
2493
|
-
* @private
|
|
2494
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2495
|
-
*/
|
|
2496
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2497
2534
|
};
|
|
2498
2535
|
"new"(inner: {
|
|
2499
2536
|
connectId: bigint;
|
|
2500
2537
|
attempt: number;
|
|
2501
2538
|
reason: string;
|
|
2502
2539
|
}): {
|
|
2540
|
+
/**
|
|
2541
|
+
* @private
|
|
2542
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2543
|
+
*/
|
|
2544
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2503
2545
|
readonly tag: P2pEvent_Tags.HolePunchFailed;
|
|
2504
2546
|
readonly inner: Readonly<{
|
|
2505
2547
|
connectId: bigint;
|
|
2506
2548
|
attempt: number;
|
|
2507
2549
|
reason: string;
|
|
2508
2550
|
}>;
|
|
2551
|
+
};
|
|
2552
|
+
instanceOf(obj: any): obj is {
|
|
2509
2553
|
/**
|
|
2510
2554
|
* @private
|
|
2511
2555
|
* This field is private and should not be used, use `tag` instead.
|
|
2512
2556
|
*/
|
|
2513
2557
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2514
|
-
};
|
|
2515
|
-
instanceOf(obj: any): obj is {
|
|
2516
2558
|
readonly tag: P2pEvent_Tags.HolePunchFailed;
|
|
2517
2559
|
readonly inner: Readonly<{
|
|
2518
2560
|
connectId: bigint;
|
|
2519
2561
|
attempt: number;
|
|
2520
2562
|
reason: string;
|
|
2521
2563
|
}>;
|
|
2522
|
-
/**
|
|
2523
|
-
* @private
|
|
2524
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2525
|
-
*/
|
|
2526
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2527
2564
|
};
|
|
2528
2565
|
};
|
|
2529
2566
|
FellBackToRelay: {
|
|
@@ -2531,43 +2568,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
2531
2568
|
connectId: bigint;
|
|
2532
2569
|
peerId: string;
|
|
2533
2570
|
}): {
|
|
2534
|
-
readonly tag: P2pEvent_Tags.FellBackToRelay;
|
|
2535
|
-
readonly inner: Readonly<{
|
|
2536
|
-
connectId: bigint;
|
|
2537
|
-
peerId: string;
|
|
2538
|
-
}>;
|
|
2539
2571
|
/**
|
|
2540
2572
|
* @private
|
|
2541
2573
|
* This field is private and should not be used, use `tag` instead.
|
|
2542
2574
|
*/
|
|
2543
2575
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2544
|
-
};
|
|
2545
|
-
"new"(inner: {
|
|
2546
|
-
connectId: bigint;
|
|
2547
|
-
peerId: string;
|
|
2548
|
-
}): {
|
|
2549
2576
|
readonly tag: P2pEvent_Tags.FellBackToRelay;
|
|
2550
2577
|
readonly inner: Readonly<{
|
|
2551
2578
|
connectId: bigint;
|
|
2552
2579
|
peerId: string;
|
|
2553
2580
|
}>;
|
|
2581
|
+
};
|
|
2582
|
+
"new"(inner: {
|
|
2583
|
+
connectId: bigint;
|
|
2584
|
+
peerId: string;
|
|
2585
|
+
}): {
|
|
2554
2586
|
/**
|
|
2555
2587
|
* @private
|
|
2556
2588
|
* This field is private and should not be used, use `tag` instead.
|
|
2557
2589
|
*/
|
|
2558
2590
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2559
|
-
};
|
|
2560
|
-
instanceOf(obj: any): obj is {
|
|
2561
2591
|
readonly tag: P2pEvent_Tags.FellBackToRelay;
|
|
2562
2592
|
readonly inner: Readonly<{
|
|
2563
2593
|
connectId: bigint;
|
|
2564
2594
|
peerId: string;
|
|
2565
2595
|
}>;
|
|
2596
|
+
};
|
|
2597
|
+
instanceOf(obj: any): obj is {
|
|
2566
2598
|
/**
|
|
2567
2599
|
* @private
|
|
2568
2600
|
* This field is private and should not be used, use `tag` instead.
|
|
2569
2601
|
*/
|
|
2570
2602
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2603
|
+
readonly tag: P2pEvent_Tags.FellBackToRelay;
|
|
2604
|
+
readonly inner: Readonly<{
|
|
2605
|
+
connectId: bigint;
|
|
2606
|
+
peerId: string;
|
|
2607
|
+
}>;
|
|
2571
2608
|
};
|
|
2572
2609
|
};
|
|
2573
2610
|
ConnectFailed: {
|
|
@@ -2577,6 +2614,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
2577
2614
|
kind: NatErrorKind;
|
|
2578
2615
|
detail: string;
|
|
2579
2616
|
}): {
|
|
2617
|
+
/**
|
|
2618
|
+
* @private
|
|
2619
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2620
|
+
*/
|
|
2621
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2580
2622
|
readonly tag: P2pEvent_Tags.ConnectFailed;
|
|
2581
2623
|
readonly inner: Readonly<{
|
|
2582
2624
|
connectId: bigint;
|
|
@@ -2584,11 +2626,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
2584
2626
|
kind: NatErrorKind;
|
|
2585
2627
|
detail: string;
|
|
2586
2628
|
}>;
|
|
2587
|
-
/**
|
|
2588
|
-
* @private
|
|
2589
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2590
|
-
*/
|
|
2591
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2592
2629
|
};
|
|
2593
2630
|
"new"(inner: {
|
|
2594
2631
|
connectId: bigint;
|
|
@@ -2596,6 +2633,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
2596
2633
|
kind: NatErrorKind;
|
|
2597
2634
|
detail: string;
|
|
2598
2635
|
}): {
|
|
2636
|
+
/**
|
|
2637
|
+
* @private
|
|
2638
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2639
|
+
*/
|
|
2640
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2599
2641
|
readonly tag: P2pEvent_Tags.ConnectFailed;
|
|
2600
2642
|
readonly inner: Readonly<{
|
|
2601
2643
|
connectId: bigint;
|
|
@@ -2603,13 +2645,13 @@ export declare const P2pEvent: Readonly<{
|
|
|
2603
2645
|
kind: NatErrorKind;
|
|
2604
2646
|
detail: string;
|
|
2605
2647
|
}>;
|
|
2648
|
+
};
|
|
2649
|
+
instanceOf(obj: any): obj is {
|
|
2606
2650
|
/**
|
|
2607
2651
|
* @private
|
|
2608
2652
|
* This field is private and should not be used, use `tag` instead.
|
|
2609
2653
|
*/
|
|
2610
2654
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2611
|
-
};
|
|
2612
|
-
instanceOf(obj: any): obj is {
|
|
2613
2655
|
readonly tag: P2pEvent_Tags.ConnectFailed;
|
|
2614
2656
|
readonly inner: Readonly<{
|
|
2615
2657
|
connectId: bigint;
|
|
@@ -2617,50 +2659,45 @@ export declare const P2pEvent: Readonly<{
|
|
|
2617
2659
|
kind: NatErrorKind;
|
|
2618
2660
|
detail: string;
|
|
2619
2661
|
}>;
|
|
2620
|
-
/**
|
|
2621
|
-
* @private
|
|
2622
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2623
|
-
*/
|
|
2624
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2625
2662
|
};
|
|
2626
2663
|
};
|
|
2627
2664
|
InboundDirectUpgrade: {
|
|
2628
2665
|
new (inner: {
|
|
2629
2666
|
peerId: string;
|
|
2630
2667
|
}): {
|
|
2631
|
-
readonly tag: P2pEvent_Tags.InboundDirectUpgrade;
|
|
2632
|
-
readonly inner: Readonly<{
|
|
2633
|
-
peerId: string;
|
|
2634
|
-
}>;
|
|
2635
2668
|
/**
|
|
2636
2669
|
* @private
|
|
2637
2670
|
* This field is private and should not be used, use `tag` instead.
|
|
2638
2671
|
*/
|
|
2639
2672
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2640
|
-
};
|
|
2641
|
-
"new"(inner: {
|
|
2642
|
-
peerId: string;
|
|
2643
|
-
}): {
|
|
2644
2673
|
readonly tag: P2pEvent_Tags.InboundDirectUpgrade;
|
|
2645
2674
|
readonly inner: Readonly<{
|
|
2646
2675
|
peerId: string;
|
|
2647
2676
|
}>;
|
|
2677
|
+
};
|
|
2678
|
+
"new"(inner: {
|
|
2679
|
+
peerId: string;
|
|
2680
|
+
}): {
|
|
2648
2681
|
/**
|
|
2649
2682
|
* @private
|
|
2650
2683
|
* This field is private and should not be used, use `tag` instead.
|
|
2651
2684
|
*/
|
|
2652
2685
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2653
|
-
};
|
|
2654
|
-
instanceOf(obj: any): obj is {
|
|
2655
2686
|
readonly tag: P2pEvent_Tags.InboundDirectUpgrade;
|
|
2656
2687
|
readonly inner: Readonly<{
|
|
2657
2688
|
peerId: string;
|
|
2658
2689
|
}>;
|
|
2690
|
+
};
|
|
2691
|
+
instanceOf(obj: any): obj is {
|
|
2659
2692
|
/**
|
|
2660
2693
|
* @private
|
|
2661
2694
|
* This field is private and should not be used, use `tag` instead.
|
|
2662
2695
|
*/
|
|
2663
2696
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2697
|
+
readonly tag: P2pEvent_Tags.InboundDirectUpgrade;
|
|
2698
|
+
readonly inner: Readonly<{
|
|
2699
|
+
peerId: string;
|
|
2700
|
+
}>;
|
|
2664
2701
|
};
|
|
2665
2702
|
};
|
|
2666
2703
|
Message: {
|
|
@@ -2671,6 +2708,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
2671
2708
|
seqno: ArrayBuffer;
|
|
2672
2709
|
signed: boolean;
|
|
2673
2710
|
}): {
|
|
2711
|
+
/**
|
|
2712
|
+
* @private
|
|
2713
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2714
|
+
*/
|
|
2715
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2674
2716
|
readonly tag: P2pEvent_Tags.Message;
|
|
2675
2717
|
readonly inner: Readonly<{
|
|
2676
2718
|
fromPeerId: string;
|
|
@@ -2679,11 +2721,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
2679
2721
|
seqno: ArrayBuffer;
|
|
2680
2722
|
signed: boolean;
|
|
2681
2723
|
}>;
|
|
2682
|
-
/**
|
|
2683
|
-
* @private
|
|
2684
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2685
|
-
*/
|
|
2686
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2687
2724
|
};
|
|
2688
2725
|
"new"(inner: {
|
|
2689
2726
|
fromPeerId: string;
|
|
@@ -2692,6 +2729,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
2692
2729
|
seqno: ArrayBuffer;
|
|
2693
2730
|
signed: boolean;
|
|
2694
2731
|
}): {
|
|
2732
|
+
/**
|
|
2733
|
+
* @private
|
|
2734
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2735
|
+
*/
|
|
2736
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2695
2737
|
readonly tag: P2pEvent_Tags.Message;
|
|
2696
2738
|
readonly inner: Readonly<{
|
|
2697
2739
|
fromPeerId: string;
|
|
@@ -2700,13 +2742,13 @@ export declare const P2pEvent: Readonly<{
|
|
|
2700
2742
|
seqno: ArrayBuffer;
|
|
2701
2743
|
signed: boolean;
|
|
2702
2744
|
}>;
|
|
2745
|
+
};
|
|
2746
|
+
instanceOf(obj: any): obj is {
|
|
2703
2747
|
/**
|
|
2704
2748
|
* @private
|
|
2705
2749
|
* This field is private and should not be used, use `tag` instead.
|
|
2706
2750
|
*/
|
|
2707
2751
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2708
|
-
};
|
|
2709
|
-
instanceOf(obj: any): obj is {
|
|
2710
2752
|
readonly tag: P2pEvent_Tags.Message;
|
|
2711
2753
|
readonly inner: Readonly<{
|
|
2712
2754
|
fromPeerId: string;
|
|
@@ -2715,11 +2757,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
2715
2757
|
seqno: ArrayBuffer;
|
|
2716
2758
|
signed: boolean;
|
|
2717
2759
|
}>;
|
|
2718
|
-
/**
|
|
2719
|
-
* @private
|
|
2720
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2721
|
-
*/
|
|
2722
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2723
2760
|
};
|
|
2724
2761
|
};
|
|
2725
2762
|
PeerSubscribed: {
|
|
@@ -2727,43 +2764,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
2727
2764
|
peerId: string;
|
|
2728
2765
|
topic: string;
|
|
2729
2766
|
}): {
|
|
2730
|
-
readonly tag: P2pEvent_Tags.PeerSubscribed;
|
|
2731
|
-
readonly inner: Readonly<{
|
|
2732
|
-
peerId: string;
|
|
2733
|
-
topic: string;
|
|
2734
|
-
}>;
|
|
2735
2767
|
/**
|
|
2736
2768
|
* @private
|
|
2737
2769
|
* This field is private and should not be used, use `tag` instead.
|
|
2738
2770
|
*/
|
|
2739
2771
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2740
|
-
};
|
|
2741
|
-
"new"(inner: {
|
|
2742
|
-
peerId: string;
|
|
2743
|
-
topic: string;
|
|
2744
|
-
}): {
|
|
2745
2772
|
readonly tag: P2pEvent_Tags.PeerSubscribed;
|
|
2746
2773
|
readonly inner: Readonly<{
|
|
2747
2774
|
peerId: string;
|
|
2748
2775
|
topic: string;
|
|
2749
2776
|
}>;
|
|
2777
|
+
};
|
|
2778
|
+
"new"(inner: {
|
|
2779
|
+
peerId: string;
|
|
2780
|
+
topic: string;
|
|
2781
|
+
}): {
|
|
2750
2782
|
/**
|
|
2751
2783
|
* @private
|
|
2752
2784
|
* This field is private and should not be used, use `tag` instead.
|
|
2753
2785
|
*/
|
|
2754
2786
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2755
|
-
};
|
|
2756
|
-
instanceOf(obj: any): obj is {
|
|
2757
2787
|
readonly tag: P2pEvent_Tags.PeerSubscribed;
|
|
2758
2788
|
readonly inner: Readonly<{
|
|
2759
2789
|
peerId: string;
|
|
2760
2790
|
topic: string;
|
|
2761
2791
|
}>;
|
|
2792
|
+
};
|
|
2793
|
+
instanceOf(obj: any): obj is {
|
|
2762
2794
|
/**
|
|
2763
2795
|
* @private
|
|
2764
2796
|
* This field is private and should not be used, use `tag` instead.
|
|
2765
2797
|
*/
|
|
2766
2798
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2799
|
+
readonly tag: P2pEvent_Tags.PeerSubscribed;
|
|
2800
|
+
readonly inner: Readonly<{
|
|
2801
|
+
peerId: string;
|
|
2802
|
+
topic: string;
|
|
2803
|
+
}>;
|
|
2767
2804
|
};
|
|
2768
2805
|
};
|
|
2769
2806
|
PeerUnsubscribed: {
|
|
@@ -2771,43 +2808,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
2771
2808
|
peerId: string;
|
|
2772
2809
|
topic: string;
|
|
2773
2810
|
}): {
|
|
2774
|
-
readonly tag: P2pEvent_Tags.PeerUnsubscribed;
|
|
2775
|
-
readonly inner: Readonly<{
|
|
2776
|
-
peerId: string;
|
|
2777
|
-
topic: string;
|
|
2778
|
-
}>;
|
|
2779
2811
|
/**
|
|
2780
2812
|
* @private
|
|
2781
2813
|
* This field is private and should not be used, use `tag` instead.
|
|
2782
2814
|
*/
|
|
2783
2815
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2784
|
-
};
|
|
2785
|
-
"new"(inner: {
|
|
2786
|
-
peerId: string;
|
|
2787
|
-
topic: string;
|
|
2788
|
-
}): {
|
|
2789
2816
|
readonly tag: P2pEvent_Tags.PeerUnsubscribed;
|
|
2790
2817
|
readonly inner: Readonly<{
|
|
2791
2818
|
peerId: string;
|
|
2792
2819
|
topic: string;
|
|
2793
2820
|
}>;
|
|
2821
|
+
};
|
|
2822
|
+
"new"(inner: {
|
|
2823
|
+
peerId: string;
|
|
2824
|
+
topic: string;
|
|
2825
|
+
}): {
|
|
2794
2826
|
/**
|
|
2795
2827
|
* @private
|
|
2796
2828
|
* This field is private and should not be used, use `tag` instead.
|
|
2797
2829
|
*/
|
|
2798
2830
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2799
|
-
};
|
|
2800
|
-
instanceOf(obj: any): obj is {
|
|
2801
2831
|
readonly tag: P2pEvent_Tags.PeerUnsubscribed;
|
|
2802
2832
|
readonly inner: Readonly<{
|
|
2803
2833
|
peerId: string;
|
|
2804
2834
|
topic: string;
|
|
2805
2835
|
}>;
|
|
2836
|
+
};
|
|
2837
|
+
instanceOf(obj: any): obj is {
|
|
2806
2838
|
/**
|
|
2807
2839
|
* @private
|
|
2808
2840
|
* This field is private and should not be used, use `tag` instead.
|
|
2809
2841
|
*/
|
|
2810
2842
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2843
|
+
readonly tag: P2pEvent_Tags.PeerUnsubscribed;
|
|
2844
|
+
readonly inner: Readonly<{
|
|
2845
|
+
peerId: string;
|
|
2846
|
+
topic: string;
|
|
2847
|
+
}>;
|
|
2811
2848
|
};
|
|
2812
2849
|
};
|
|
2813
2850
|
PubsubOutboundFailure: {
|
|
@@ -2815,43 +2852,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
2815
2852
|
peerId: string;
|
|
2816
2853
|
reason: string;
|
|
2817
2854
|
}): {
|
|
2818
|
-
readonly tag: P2pEvent_Tags.PubsubOutboundFailure;
|
|
2819
|
-
readonly inner: Readonly<{
|
|
2820
|
-
peerId: string;
|
|
2821
|
-
reason: string;
|
|
2822
|
-
}>;
|
|
2823
2855
|
/**
|
|
2824
2856
|
* @private
|
|
2825
2857
|
* This field is private and should not be used, use `tag` instead.
|
|
2826
2858
|
*/
|
|
2827
2859
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2828
|
-
};
|
|
2829
|
-
"new"(inner: {
|
|
2830
|
-
peerId: string;
|
|
2831
|
-
reason: string;
|
|
2832
|
-
}): {
|
|
2833
2860
|
readonly tag: P2pEvent_Tags.PubsubOutboundFailure;
|
|
2834
2861
|
readonly inner: Readonly<{
|
|
2835
2862
|
peerId: string;
|
|
2836
2863
|
reason: string;
|
|
2837
2864
|
}>;
|
|
2865
|
+
};
|
|
2866
|
+
"new"(inner: {
|
|
2867
|
+
peerId: string;
|
|
2868
|
+
reason: string;
|
|
2869
|
+
}): {
|
|
2838
2870
|
/**
|
|
2839
2871
|
* @private
|
|
2840
2872
|
* This field is private and should not be used, use `tag` instead.
|
|
2841
2873
|
*/
|
|
2842
2874
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2843
|
-
};
|
|
2844
|
-
instanceOf(obj: any): obj is {
|
|
2845
2875
|
readonly tag: P2pEvent_Tags.PubsubOutboundFailure;
|
|
2846
2876
|
readonly inner: Readonly<{
|
|
2847
2877
|
peerId: string;
|
|
2848
2878
|
reason: string;
|
|
2849
2879
|
}>;
|
|
2880
|
+
};
|
|
2881
|
+
instanceOf(obj: any): obj is {
|
|
2850
2882
|
/**
|
|
2851
2883
|
* @private
|
|
2852
2884
|
* This field is private and should not be used, use `tag` instead.
|
|
2853
2885
|
*/
|
|
2854
2886
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2887
|
+
readonly tag: P2pEvent_Tags.PubsubOutboundFailure;
|
|
2888
|
+
readonly inner: Readonly<{
|
|
2889
|
+
peerId: string;
|
|
2890
|
+
reason: string;
|
|
2891
|
+
}>;
|
|
2855
2892
|
};
|
|
2856
2893
|
};
|
|
2857
2894
|
PubsubProtocolViolation: {
|
|
@@ -2859,43 +2896,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
2859
2896
|
peerId: string;
|
|
2860
2897
|
reason: string;
|
|
2861
2898
|
}): {
|
|
2862
|
-
readonly tag: P2pEvent_Tags.PubsubProtocolViolation;
|
|
2863
|
-
readonly inner: Readonly<{
|
|
2864
|
-
peerId: string;
|
|
2865
|
-
reason: string;
|
|
2866
|
-
}>;
|
|
2867
2899
|
/**
|
|
2868
2900
|
* @private
|
|
2869
2901
|
* This field is private and should not be used, use `tag` instead.
|
|
2870
2902
|
*/
|
|
2871
2903
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2872
|
-
};
|
|
2873
|
-
"new"(inner: {
|
|
2874
|
-
peerId: string;
|
|
2875
|
-
reason: string;
|
|
2876
|
-
}): {
|
|
2877
2904
|
readonly tag: P2pEvent_Tags.PubsubProtocolViolation;
|
|
2878
2905
|
readonly inner: Readonly<{
|
|
2879
2906
|
peerId: string;
|
|
2880
2907
|
reason: string;
|
|
2881
2908
|
}>;
|
|
2909
|
+
};
|
|
2910
|
+
"new"(inner: {
|
|
2911
|
+
peerId: string;
|
|
2912
|
+
reason: string;
|
|
2913
|
+
}): {
|
|
2882
2914
|
/**
|
|
2883
2915
|
* @private
|
|
2884
2916
|
* This field is private and should not be used, use `tag` instead.
|
|
2885
2917
|
*/
|
|
2886
2918
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2887
|
-
};
|
|
2888
|
-
instanceOf(obj: any): obj is {
|
|
2889
2919
|
readonly tag: P2pEvent_Tags.PubsubProtocolViolation;
|
|
2890
2920
|
readonly inner: Readonly<{
|
|
2891
2921
|
peerId: string;
|
|
2892
2922
|
reason: string;
|
|
2893
2923
|
}>;
|
|
2924
|
+
};
|
|
2925
|
+
instanceOf(obj: any): obj is {
|
|
2894
2926
|
/**
|
|
2895
2927
|
* @private
|
|
2896
2928
|
* This field is private and should not be used, use `tag` instead.
|
|
2897
2929
|
*/
|
|
2898
2930
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2931
|
+
readonly tag: P2pEvent_Tags.PubsubProtocolViolation;
|
|
2932
|
+
readonly inner: Readonly<{
|
|
2933
|
+
peerId: string;
|
|
2934
|
+
reason: string;
|
|
2935
|
+
}>;
|
|
2899
2936
|
};
|
|
2900
2937
|
};
|
|
2901
2938
|
PeerDiscovered: {
|
|
@@ -2904,47 +2941,47 @@ export declare const P2pEvent: Readonly<{
|
|
|
2904
2941
|
addrs: Array<string>;
|
|
2905
2942
|
source: DiscoverySource;
|
|
2906
2943
|
}): {
|
|
2944
|
+
/**
|
|
2945
|
+
* @private
|
|
2946
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2947
|
+
*/
|
|
2948
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2907
2949
|
readonly tag: P2pEvent_Tags.PeerDiscovered;
|
|
2908
2950
|
readonly inner: Readonly<{
|
|
2909
2951
|
peerId: string;
|
|
2910
2952
|
addrs: Array<string>;
|
|
2911
2953
|
source: DiscoverySource;
|
|
2912
2954
|
}>;
|
|
2913
|
-
/**
|
|
2914
|
-
* @private
|
|
2915
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2916
|
-
*/
|
|
2917
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2918
2955
|
};
|
|
2919
2956
|
"new"(inner: {
|
|
2920
2957
|
peerId: string;
|
|
2921
2958
|
addrs: Array<string>;
|
|
2922
2959
|
source: DiscoverySource;
|
|
2923
2960
|
}): {
|
|
2961
|
+
/**
|
|
2962
|
+
* @private
|
|
2963
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2964
|
+
*/
|
|
2965
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2924
2966
|
readonly tag: P2pEvent_Tags.PeerDiscovered;
|
|
2925
2967
|
readonly inner: Readonly<{
|
|
2926
2968
|
peerId: string;
|
|
2927
2969
|
addrs: Array<string>;
|
|
2928
2970
|
source: DiscoverySource;
|
|
2929
2971
|
}>;
|
|
2972
|
+
};
|
|
2973
|
+
instanceOf(obj: any): obj is {
|
|
2930
2974
|
/**
|
|
2931
2975
|
* @private
|
|
2932
2976
|
* This field is private and should not be used, use `tag` instead.
|
|
2933
2977
|
*/
|
|
2934
2978
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2935
|
-
};
|
|
2936
|
-
instanceOf(obj: any): obj is {
|
|
2937
2979
|
readonly tag: P2pEvent_Tags.PeerDiscovered;
|
|
2938
2980
|
readonly inner: Readonly<{
|
|
2939
2981
|
peerId: string;
|
|
2940
2982
|
addrs: Array<string>;
|
|
2941
2983
|
source: DiscoverySource;
|
|
2942
2984
|
}>;
|
|
2943
|
-
/**
|
|
2944
|
-
* @private
|
|
2945
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2946
|
-
*/
|
|
2947
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2948
2985
|
};
|
|
2949
2986
|
};
|
|
2950
2987
|
PeerUpdated: {
|
|
@@ -2953,86 +2990,86 @@ export declare const P2pEvent: Readonly<{
|
|
|
2953
2990
|
addrs: Array<string>;
|
|
2954
2991
|
source: DiscoverySource;
|
|
2955
2992
|
}): {
|
|
2993
|
+
/**
|
|
2994
|
+
* @private
|
|
2995
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2996
|
+
*/
|
|
2997
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2956
2998
|
readonly tag: P2pEvent_Tags.PeerUpdated;
|
|
2957
2999
|
readonly inner: Readonly<{
|
|
2958
3000
|
peerId: string;
|
|
2959
3001
|
addrs: Array<string>;
|
|
2960
3002
|
source: DiscoverySource;
|
|
2961
3003
|
}>;
|
|
2962
|
-
/**
|
|
2963
|
-
* @private
|
|
2964
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2965
|
-
*/
|
|
2966
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2967
3004
|
};
|
|
2968
3005
|
"new"(inner: {
|
|
2969
3006
|
peerId: string;
|
|
2970
3007
|
addrs: Array<string>;
|
|
2971
3008
|
source: DiscoverySource;
|
|
2972
3009
|
}): {
|
|
3010
|
+
/**
|
|
3011
|
+
* @private
|
|
3012
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3013
|
+
*/
|
|
3014
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2973
3015
|
readonly tag: P2pEvent_Tags.PeerUpdated;
|
|
2974
3016
|
readonly inner: Readonly<{
|
|
2975
3017
|
peerId: string;
|
|
2976
3018
|
addrs: Array<string>;
|
|
2977
3019
|
source: DiscoverySource;
|
|
2978
3020
|
}>;
|
|
3021
|
+
};
|
|
3022
|
+
instanceOf(obj: any): obj is {
|
|
2979
3023
|
/**
|
|
2980
3024
|
* @private
|
|
2981
3025
|
* This field is private and should not be used, use `tag` instead.
|
|
2982
3026
|
*/
|
|
2983
3027
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2984
|
-
};
|
|
2985
|
-
instanceOf(obj: any): obj is {
|
|
2986
3028
|
readonly tag: P2pEvent_Tags.PeerUpdated;
|
|
2987
3029
|
readonly inner: Readonly<{
|
|
2988
3030
|
peerId: string;
|
|
2989
3031
|
addrs: Array<string>;
|
|
2990
3032
|
source: DiscoverySource;
|
|
2991
3033
|
}>;
|
|
2992
|
-
/**
|
|
2993
|
-
* @private
|
|
2994
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2995
|
-
*/
|
|
2996
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
2997
3034
|
};
|
|
2998
3035
|
};
|
|
2999
3036
|
PeerExpired: {
|
|
3000
3037
|
new (inner: {
|
|
3001
3038
|
peerId: string;
|
|
3002
3039
|
}): {
|
|
3003
|
-
readonly tag: P2pEvent_Tags.PeerExpired;
|
|
3004
|
-
readonly inner: Readonly<{
|
|
3005
|
-
peerId: string;
|
|
3006
|
-
}>;
|
|
3007
3040
|
/**
|
|
3008
3041
|
* @private
|
|
3009
3042
|
* This field is private and should not be used, use `tag` instead.
|
|
3010
3043
|
*/
|
|
3011
3044
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3012
|
-
};
|
|
3013
|
-
"new"(inner: {
|
|
3014
|
-
peerId: string;
|
|
3015
|
-
}): {
|
|
3016
3045
|
readonly tag: P2pEvent_Tags.PeerExpired;
|
|
3017
3046
|
readonly inner: Readonly<{
|
|
3018
3047
|
peerId: string;
|
|
3019
3048
|
}>;
|
|
3049
|
+
};
|
|
3050
|
+
"new"(inner: {
|
|
3051
|
+
peerId: string;
|
|
3052
|
+
}): {
|
|
3020
3053
|
/**
|
|
3021
3054
|
* @private
|
|
3022
3055
|
* This field is private and should not be used, use `tag` instead.
|
|
3023
3056
|
*/
|
|
3024
3057
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3025
|
-
};
|
|
3026
|
-
instanceOf(obj: any): obj is {
|
|
3027
3058
|
readonly tag: P2pEvent_Tags.PeerExpired;
|
|
3028
3059
|
readonly inner: Readonly<{
|
|
3029
3060
|
peerId: string;
|
|
3030
3061
|
}>;
|
|
3062
|
+
};
|
|
3063
|
+
instanceOf(obj: any): obj is {
|
|
3031
3064
|
/**
|
|
3032
3065
|
* @private
|
|
3033
3066
|
* This field is private and should not be used, use `tag` instead.
|
|
3034
3067
|
*/
|
|
3035
3068
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3069
|
+
readonly tag: P2pEvent_Tags.PeerExpired;
|
|
3070
|
+
readonly inner: Readonly<{
|
|
3071
|
+
peerId: string;
|
|
3072
|
+
}>;
|
|
3036
3073
|
};
|
|
3037
3074
|
};
|
|
3038
3075
|
DiscoveryDialFailed: {
|
|
@@ -3040,43 +3077,43 @@ export declare const P2pEvent: Readonly<{
|
|
|
3040
3077
|
peerId: string;
|
|
3041
3078
|
reason: string;
|
|
3042
3079
|
}): {
|
|
3043
|
-
readonly tag: P2pEvent_Tags.DiscoveryDialFailed;
|
|
3044
|
-
readonly inner: Readonly<{
|
|
3045
|
-
peerId: string;
|
|
3046
|
-
reason: string;
|
|
3047
|
-
}>;
|
|
3048
3080
|
/**
|
|
3049
3081
|
* @private
|
|
3050
3082
|
* This field is private and should not be used, use `tag` instead.
|
|
3051
3083
|
*/
|
|
3052
3084
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3053
|
-
};
|
|
3054
|
-
"new"(inner: {
|
|
3055
|
-
peerId: string;
|
|
3056
|
-
reason: string;
|
|
3057
|
-
}): {
|
|
3058
3085
|
readonly tag: P2pEvent_Tags.DiscoveryDialFailed;
|
|
3059
3086
|
readonly inner: Readonly<{
|
|
3060
3087
|
peerId: string;
|
|
3061
3088
|
reason: string;
|
|
3062
3089
|
}>;
|
|
3090
|
+
};
|
|
3091
|
+
"new"(inner: {
|
|
3092
|
+
peerId: string;
|
|
3093
|
+
reason: string;
|
|
3094
|
+
}): {
|
|
3063
3095
|
/**
|
|
3064
3096
|
* @private
|
|
3065
3097
|
* This field is private and should not be used, use `tag` instead.
|
|
3066
3098
|
*/
|
|
3067
3099
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3068
|
-
};
|
|
3069
|
-
instanceOf(obj: any): obj is {
|
|
3070
3100
|
readonly tag: P2pEvent_Tags.DiscoveryDialFailed;
|
|
3071
3101
|
readonly inner: Readonly<{
|
|
3072
3102
|
peerId: string;
|
|
3073
3103
|
reason: string;
|
|
3074
3104
|
}>;
|
|
3105
|
+
};
|
|
3106
|
+
instanceOf(obj: any): obj is {
|
|
3075
3107
|
/**
|
|
3076
3108
|
* @private
|
|
3077
3109
|
* This field is private and should not be used, use `tag` instead.
|
|
3078
3110
|
*/
|
|
3079
3111
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3112
|
+
readonly tag: P2pEvent_Tags.DiscoveryDialFailed;
|
|
3113
|
+
readonly inner: Readonly<{
|
|
3114
|
+
peerId: string;
|
|
3115
|
+
reason: string;
|
|
3116
|
+
}>;
|
|
3080
3117
|
};
|
|
3081
3118
|
};
|
|
3082
3119
|
DiscoveryProtocolViolation: {
|
|
@@ -3086,6 +3123,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
3086
3123
|
reason: string;
|
|
3087
3124
|
suppressed: number;
|
|
3088
3125
|
}): {
|
|
3126
|
+
/**
|
|
3127
|
+
* @private
|
|
3128
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3129
|
+
*/
|
|
3130
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3089
3131
|
readonly tag: P2pEvent_Tags.DiscoveryProtocolViolation;
|
|
3090
3132
|
readonly inner: Readonly<{
|
|
3091
3133
|
peerId?: string;
|
|
@@ -3093,11 +3135,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
3093
3135
|
reason: string;
|
|
3094
3136
|
suppressed: number;
|
|
3095
3137
|
}>;
|
|
3096
|
-
/**
|
|
3097
|
-
* @private
|
|
3098
|
-
* This field is private and should not be used, use `tag` instead.
|
|
3099
|
-
*/
|
|
3100
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3101
3138
|
};
|
|
3102
3139
|
"new"(inner: {
|
|
3103
3140
|
peerId?: string;
|
|
@@ -3105,6 +3142,11 @@ export declare const P2pEvent: Readonly<{
|
|
|
3105
3142
|
reason: string;
|
|
3106
3143
|
suppressed: number;
|
|
3107
3144
|
}): {
|
|
3145
|
+
/**
|
|
3146
|
+
* @private
|
|
3147
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3148
|
+
*/
|
|
3149
|
+
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3108
3150
|
readonly tag: P2pEvent_Tags.DiscoveryProtocolViolation;
|
|
3109
3151
|
readonly inner: Readonly<{
|
|
3110
3152
|
peerId?: string;
|
|
@@ -3112,13 +3154,13 @@ export declare const P2pEvent: Readonly<{
|
|
|
3112
3154
|
reason: string;
|
|
3113
3155
|
suppressed: number;
|
|
3114
3156
|
}>;
|
|
3157
|
+
};
|
|
3158
|
+
instanceOf(obj: any): obj is {
|
|
3115
3159
|
/**
|
|
3116
3160
|
* @private
|
|
3117
3161
|
* This field is private and should not be used, use `tag` instead.
|
|
3118
3162
|
*/
|
|
3119
3163
|
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3120
|
-
};
|
|
3121
|
-
instanceOf(obj: any): obj is {
|
|
3122
3164
|
readonly tag: P2pEvent_Tags.DiscoveryProtocolViolation;
|
|
3123
3165
|
readonly inner: Readonly<{
|
|
3124
3166
|
peerId?: string;
|
|
@@ -3126,11 +3168,6 @@ export declare const P2pEvent: Readonly<{
|
|
|
3126
3168
|
reason: string;
|
|
3127
3169
|
suppressed: number;
|
|
3128
3170
|
}>;
|
|
3129
|
-
/**
|
|
3130
|
-
* @private
|
|
3131
|
-
* This field is private and should not be used, use `tag` instead.
|
|
3132
|
-
*/
|
|
3133
|
-
readonly [uniffiTypeNameSymbol]: "P2pEvent";
|
|
3134
3171
|
};
|
|
3135
3172
|
};
|
|
3136
3173
|
}>;
|
|
@@ -3139,39 +3176,39 @@ export declare const P2pEvent: Readonly<{
|
|
|
3139
3176
|
*/
|
|
3140
3177
|
export type P2pEvent = InstanceType<typeof P2pEvent['EventsDropped' | 'DriverFailed' | 'ConnectionEstablished' | 'ConnectionClosed' | 'PeerReady' | 'IdentifyReceived' | 'PingRttMeasured' | 'PingTimeout' | 'StreamReady' | 'StreamData' | 'StreamRemoteWriteClosed' | 'StreamClosed' | 'EndpointError' | 'ReachabilityChanged' | 'PublicAddressesChanged' | 'RelayReserved' | 'RelayReservationLost' | 'PathEstablished' | 'InboundPathEstablished' | 'PathUpgraded' | 'HolePunchFailed' | 'FellBackToRelay' | 'ConnectFailed' | 'InboundDirectUpgrade' | 'Message' | 'PeerSubscribed' | 'PeerUnsubscribed' | 'PubsubOutboundFailure' | 'PubsubProtocolViolation' | 'PeerDiscovered' | 'PeerUpdated' | 'PeerExpired' | 'DiscoveryDialFailed' | 'DiscoveryProtocolViolation']>;
|
|
3141
3178
|
/**
|
|
3142
|
-
*
|
|
3179
|
+
* Doorbell implemented by the embedding runtime.
|
|
3143
3180
|
*/
|
|
3144
|
-
export interface
|
|
3181
|
+
export interface P2pEventDoorbell {
|
|
3145
3182
|
/**
|
|
3146
|
-
*
|
|
3183
|
+
* Reports that synchronous event draining can make progress.
|
|
3147
3184
|
*/
|
|
3148
|
-
|
|
3185
|
+
onEventsReady(): void;
|
|
3149
3186
|
}
|
|
3150
3187
|
/**
|
|
3151
|
-
*
|
|
3188
|
+
* Doorbell implemented by the embedding runtime.
|
|
3152
3189
|
*/
|
|
3153
|
-
export declare class
|
|
3154
|
-
readonly [uniffiTypeNameSymbol] = "
|
|
3190
|
+
export declare class P2pEventDoorbellImpl extends UniffiAbstractObject implements P2pEventDoorbell {
|
|
3191
|
+
readonly [uniffiTypeNameSymbol] = "P2pEventDoorbellImpl";
|
|
3155
3192
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3156
3193
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
3157
3194
|
private constructor();
|
|
3158
3195
|
/**
|
|
3159
|
-
*
|
|
3196
|
+
* Reports that synchronous event draining can make progress.
|
|
3160
3197
|
*/
|
|
3161
|
-
|
|
3198
|
+
onEventsReady(): void;
|
|
3162
3199
|
uniffiDestroy(): void;
|
|
3163
|
-
static instanceOf(obj_: any): obj_ is
|
|
3200
|
+
static instanceOf(obj_: any): obj_ is P2pEventDoorbellImpl;
|
|
3164
3201
|
}
|
|
3165
3202
|
/**
|
|
3166
3203
|
* A minip2p endpoint owned by a foreign runtime.
|
|
3167
3204
|
*/
|
|
3168
3205
|
export interface P2pEndpointLike {
|
|
3169
3206
|
/**
|
|
3170
|
-
*
|
|
3207
|
+
* Forgets a stream.
|
|
3171
3208
|
*/
|
|
3172
3209
|
abandonStream(peerId: string, streamId: bigint): void;
|
|
3173
3210
|
/**
|
|
3174
|
-
* Returns the active
|
|
3211
|
+
* Returns the active relay reservation.
|
|
3175
3212
|
*/
|
|
3176
3213
|
activeReservation(): RelayReservationInfo | undefined;
|
|
3177
3214
|
/**
|
|
@@ -3179,123 +3216,115 @@ export interface P2pEndpointLike {
|
|
|
3179
3216
|
*/
|
|
3180
3217
|
addProtocol(protocolId: string): void;
|
|
3181
3218
|
/**
|
|
3182
|
-
* Cancels a
|
|
3183
|
-
*
|
|
3184
|
-
* Queued connection events are suppressed when possible. A listener
|
|
3185
|
-
* callback that already won the dispatch race may still arrive.
|
|
3219
|
+
* Cancels a connection attempt.
|
|
3186
3220
|
*/
|
|
3187
3221
|
cancelConnect(id: bigint): void;
|
|
3188
3222
|
/**
|
|
3189
|
-
* Half-closes
|
|
3223
|
+
* Half-closes a stream's write side.
|
|
3190
3224
|
*/
|
|
3191
3225
|
closeStreamWrite(peerId: string, streamId: bigint): void;
|
|
3192
3226
|
/**
|
|
3193
|
-
* Starts a connection attempt
|
|
3227
|
+
* Starts a connection attempt.
|
|
3194
3228
|
*/
|
|
3195
3229
|
connect(peerId: string): bigint;
|
|
3196
3230
|
/**
|
|
3197
|
-
* Starts a
|
|
3198
|
-
* address.
|
|
3231
|
+
* Starts a direct-address connection attempt.
|
|
3199
3232
|
*/
|
|
3200
3233
|
connectAddr(address: string): bigint;
|
|
3201
3234
|
/**
|
|
3202
|
-
* Starts a
|
|
3235
|
+
* Starts a connection attempt with explicit addresses.
|
|
3203
3236
|
*/
|
|
3204
3237
|
connectWithAddrs(peerId: string, addresses: Array<string>): bigint;
|
|
3205
3238
|
/**
|
|
3206
|
-
* Returns peers
|
|
3239
|
+
* Returns connected peers.
|
|
3207
3240
|
*/
|
|
3208
3241
|
connectedPeers(): Array<string>;
|
|
3209
3242
|
/**
|
|
3210
|
-
* Dials
|
|
3243
|
+
* Dials on all applicable address families.
|
|
3211
3244
|
*/
|
|
3212
3245
|
dial(address: string): Array<bigint>;
|
|
3213
3246
|
/**
|
|
3214
|
-
* Dials
|
|
3247
|
+
* Dials using IPv4.
|
|
3215
3248
|
*/
|
|
3216
3249
|
dialIp4(address: string): bigint;
|
|
3217
3250
|
/**
|
|
3218
|
-
* Dials
|
|
3251
|
+
* Dials using IPv6.
|
|
3219
3252
|
*/
|
|
3220
3253
|
dialIp6(address: string): bigint;
|
|
3221
3254
|
/**
|
|
3222
|
-
*
|
|
3223
|
-
*
|
|
3224
|
-
* Cancelling a connection attempt suppresses that attempt's progress
|
|
3225
|
-
* events, but cannot retract a transport connection that has already
|
|
3226
|
-
* completed. Call this method when cancellation must also close an
|
|
3227
|
-
* established connection.
|
|
3255
|
+
* Disconnects a peer.
|
|
3228
3256
|
*/
|
|
3229
3257
|
disconnect(peerId: string): void;
|
|
3230
3258
|
/**
|
|
3231
|
-
* Returns the discovery
|
|
3259
|
+
* Returns the discovery clock.
|
|
3232
3260
|
*/
|
|
3233
3261
|
discoveryNowMs(): bigint | undefined;
|
|
3234
3262
|
/**
|
|
3235
|
-
*
|
|
3263
|
+
* Pulls at most `limit` queued events in order.
|
|
3264
|
+
*/
|
|
3265
|
+
drainEvents(limit: number): Array<P2pEvent>;
|
|
3266
|
+
/**
|
|
3267
|
+
* Returns whether Identify completed for a peer.
|
|
3236
3268
|
*/
|
|
3237
3269
|
isPeerReady(peerId: string): boolean;
|
|
3238
3270
|
/**
|
|
3239
|
-
* Returns whether the
|
|
3240
|
-
*
|
|
3241
|
-
* This becomes `false` when shutdown is requested. Use
|
|
3242
|
-
* [`P2pEndpoint::wait_stopped`] to observe complete driver exit.
|
|
3271
|
+
* Returns whether the driver accepts work.
|
|
3243
3272
|
*/
|
|
3244
3273
|
isRunning(): boolean;
|
|
3245
3274
|
/**
|
|
3246
|
-
* Returns the
|
|
3275
|
+
* Returns the discovery address book.
|
|
3247
3276
|
*/
|
|
3248
3277
|
knownPeers(): Array<KnownPeerInfo>;
|
|
3249
3278
|
/**
|
|
3250
|
-
* Returns
|
|
3279
|
+
* Returns bound peer addresses.
|
|
3251
3280
|
*/
|
|
3252
3281
|
listenAddrs(): Array<string>;
|
|
3253
3282
|
/**
|
|
3254
|
-
* Opens
|
|
3283
|
+
* Opens an application stream.
|
|
3255
3284
|
*/
|
|
3256
3285
|
openStream(peerId: string, protocolId: string): OpenStreamResult;
|
|
3257
3286
|
/**
|
|
3258
|
-
* Returns the current
|
|
3287
|
+
* Returns the current path to a peer.
|
|
3259
3288
|
*/
|
|
3260
3289
|
path(peerId: string): PathKind | undefined;
|
|
3261
3290
|
/**
|
|
3262
|
-
* Returns the local peer ID
|
|
3291
|
+
* Returns the local peer ID.
|
|
3263
3292
|
*/
|
|
3264
3293
|
peerId(): string;
|
|
3265
3294
|
/**
|
|
3266
|
-
* Returns the latest Identify snapshot
|
|
3295
|
+
* Returns the latest Identify snapshot.
|
|
3267
3296
|
*/
|
|
3268
3297
|
peerInfo(peerId: string): IdentifyInfo | undefined;
|
|
3269
3298
|
/**
|
|
3270
|
-
* Sends an explicit ping
|
|
3299
|
+
* Sends an explicit ping.
|
|
3271
3300
|
*/
|
|
3272
3301
|
ping(peerId: string): void;
|
|
3273
3302
|
/**
|
|
3274
|
-
* Publishes one
|
|
3303
|
+
* Publishes one payload.
|
|
3275
3304
|
*/
|
|
3276
3305
|
publish(topic: string, data: ArrayBuffer): void;
|
|
3277
3306
|
/**
|
|
3278
|
-
* Returns the current
|
|
3307
|
+
* Returns the current reachability verdict.
|
|
3279
3308
|
*/
|
|
3280
3309
|
reachability(): Reachability;
|
|
3281
3310
|
/**
|
|
3282
|
-
* Resets
|
|
3311
|
+
* Resets a stream.
|
|
3283
3312
|
*/
|
|
3284
3313
|
resetStream(peerId: string, streamId: bigint): void;
|
|
3285
3314
|
/**
|
|
3286
|
-
* Sends
|
|
3315
|
+
* Sends bytes on a stream.
|
|
3287
3316
|
*/
|
|
3288
3317
|
sendStream(peerId: string, streamId: bigint, data: ArrayBuffer): void;
|
|
3289
3318
|
/**
|
|
3290
|
-
* Selects active or idle
|
|
3319
|
+
* Selects active or idle polling.
|
|
3291
3320
|
*/
|
|
3292
3321
|
setActive(active: boolean): void;
|
|
3293
3322
|
/**
|
|
3294
|
-
* Starts the detached
|
|
3323
|
+
* Starts the detached driver and registers its doorbell.
|
|
3295
3324
|
*/
|
|
3296
|
-
start(
|
|
3325
|
+
start(doorbell: P2pEventDoorbell): void;
|
|
3297
3326
|
/**
|
|
3298
|
-
* Requests shutdown
|
|
3327
|
+
* Requests shutdown.
|
|
3299
3328
|
*/
|
|
3300
3329
|
stop(): void;
|
|
3301
3330
|
/**
|
|
@@ -3307,14 +3336,7 @@ export interface P2pEndpointLike {
|
|
|
3307
3336
|
*/
|
|
3308
3337
|
unsubscribe(topic: string): boolean;
|
|
3309
3338
|
/**
|
|
3310
|
-
* Waits
|
|
3311
|
-
*
|
|
3312
|
-
* A newly created endpoint still owns bound sockets, so this returns
|
|
3313
|
-
* `false` until `stop` releases it. For a running endpoint, `stop` only
|
|
3314
|
-
* requests shutdown and this waits for the driver exit cleanup.
|
|
3315
|
-
*
|
|
3316
|
-
* Calling this from a listener callback would wait on the callback's own
|
|
3317
|
-
* driver thread, so that case returns `false` immediately.
|
|
3339
|
+
* Waits for complete driver shutdown.
|
|
3318
3340
|
*/
|
|
3319
3341
|
waitStopped(timeoutMs: bigint): boolean;
|
|
3320
3342
|
}
|
|
@@ -3330,19 +3352,15 @@ export declare class P2pEndpoint extends UniffiAbstractObject implements P2pEndp
|
|
|
3330
3352
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3331
3353
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
3332
3354
|
/**
|
|
3333
|
-
*
|
|
3334
|
-
* an endpoint.
|
|
3335
|
-
*
|
|
3336
|
-
* The endpoint begins in the created state and owns its bound sockets,
|
|
3337
|
-
* but does not run a background driver until explicitly started.
|
|
3355
|
+
* Creates an endpoint after validating configuration and binding sockets.
|
|
3338
3356
|
*/
|
|
3339
3357
|
constructor(secretKey: ArrayBuffer, config: EndpointConfig);
|
|
3340
3358
|
/**
|
|
3341
|
-
*
|
|
3359
|
+
* Forgets a stream.
|
|
3342
3360
|
*/
|
|
3343
3361
|
abandonStream(peerId: string, streamId: bigint): void;
|
|
3344
3362
|
/**
|
|
3345
|
-
* Returns the active
|
|
3363
|
+
* Returns the active relay reservation.
|
|
3346
3364
|
*/
|
|
3347
3365
|
activeReservation(): RelayReservationInfo | undefined;
|
|
3348
3366
|
/**
|
|
@@ -3350,123 +3368,115 @@ export declare class P2pEndpoint extends UniffiAbstractObject implements P2pEndp
|
|
|
3350
3368
|
*/
|
|
3351
3369
|
addProtocol(protocolId: string): void;
|
|
3352
3370
|
/**
|
|
3353
|
-
* Cancels a
|
|
3354
|
-
*
|
|
3355
|
-
* Queued connection events are suppressed when possible. A listener
|
|
3356
|
-
* callback that already won the dispatch race may still arrive.
|
|
3371
|
+
* Cancels a connection attempt.
|
|
3357
3372
|
*/
|
|
3358
3373
|
cancelConnect(id: bigint): void;
|
|
3359
3374
|
/**
|
|
3360
|
-
* Half-closes
|
|
3375
|
+
* Half-closes a stream's write side.
|
|
3361
3376
|
*/
|
|
3362
3377
|
closeStreamWrite(peerId: string, streamId: bigint): void;
|
|
3363
3378
|
/**
|
|
3364
|
-
* Starts a connection attempt
|
|
3379
|
+
* Starts a connection attempt.
|
|
3365
3380
|
*/
|
|
3366
3381
|
connect(peerId: string): bigint;
|
|
3367
3382
|
/**
|
|
3368
|
-
* Starts a
|
|
3369
|
-
* address.
|
|
3383
|
+
* Starts a direct-address connection attempt.
|
|
3370
3384
|
*/
|
|
3371
3385
|
connectAddr(address: string): bigint;
|
|
3372
3386
|
/**
|
|
3373
|
-
* Starts a
|
|
3387
|
+
* Starts a connection attempt with explicit addresses.
|
|
3374
3388
|
*/
|
|
3375
3389
|
connectWithAddrs(peerId: string, addresses: Array<string>): bigint;
|
|
3376
3390
|
/**
|
|
3377
|
-
* Returns peers
|
|
3391
|
+
* Returns connected peers.
|
|
3378
3392
|
*/
|
|
3379
3393
|
connectedPeers(): Array<string>;
|
|
3380
3394
|
/**
|
|
3381
|
-
* Dials
|
|
3395
|
+
* Dials on all applicable address families.
|
|
3382
3396
|
*/
|
|
3383
3397
|
dial(address: string): Array<bigint>;
|
|
3384
3398
|
/**
|
|
3385
|
-
* Dials
|
|
3399
|
+
* Dials using IPv4.
|
|
3386
3400
|
*/
|
|
3387
3401
|
dialIp4(address: string): bigint;
|
|
3388
3402
|
/**
|
|
3389
|
-
* Dials
|
|
3403
|
+
* Dials using IPv6.
|
|
3390
3404
|
*/
|
|
3391
3405
|
dialIp6(address: string): bigint;
|
|
3392
3406
|
/**
|
|
3393
|
-
*
|
|
3394
|
-
*
|
|
3395
|
-
* Cancelling a connection attempt suppresses that attempt's progress
|
|
3396
|
-
* events, but cannot retract a transport connection that has already
|
|
3397
|
-
* completed. Call this method when cancellation must also close an
|
|
3398
|
-
* established connection.
|
|
3407
|
+
* Disconnects a peer.
|
|
3399
3408
|
*/
|
|
3400
3409
|
disconnect(peerId: string): void;
|
|
3401
3410
|
/**
|
|
3402
|
-
* Returns the discovery
|
|
3411
|
+
* Returns the discovery clock.
|
|
3403
3412
|
*/
|
|
3404
3413
|
discoveryNowMs(): bigint | undefined;
|
|
3405
3414
|
/**
|
|
3406
|
-
*
|
|
3415
|
+
* Pulls at most `limit` queued events in order.
|
|
3416
|
+
*/
|
|
3417
|
+
drainEvents(limit: number): Array<P2pEvent>;
|
|
3418
|
+
/**
|
|
3419
|
+
* Returns whether Identify completed for a peer.
|
|
3407
3420
|
*/
|
|
3408
3421
|
isPeerReady(peerId: string): boolean;
|
|
3409
3422
|
/**
|
|
3410
|
-
* Returns whether the
|
|
3411
|
-
*
|
|
3412
|
-
* This becomes `false` when shutdown is requested. Use
|
|
3413
|
-
* [`P2pEndpoint::wait_stopped`] to observe complete driver exit.
|
|
3423
|
+
* Returns whether the driver accepts work.
|
|
3414
3424
|
*/
|
|
3415
3425
|
isRunning(): boolean;
|
|
3416
3426
|
/**
|
|
3417
|
-
* Returns the
|
|
3427
|
+
* Returns the discovery address book.
|
|
3418
3428
|
*/
|
|
3419
3429
|
knownPeers(): Array<KnownPeerInfo>;
|
|
3420
3430
|
/**
|
|
3421
|
-
* Returns
|
|
3431
|
+
* Returns bound peer addresses.
|
|
3422
3432
|
*/
|
|
3423
3433
|
listenAddrs(): Array<string>;
|
|
3424
3434
|
/**
|
|
3425
|
-
* Opens
|
|
3435
|
+
* Opens an application stream.
|
|
3426
3436
|
*/
|
|
3427
3437
|
openStream(peerId: string, protocolId: string): OpenStreamResult;
|
|
3428
3438
|
/**
|
|
3429
|
-
* Returns the current
|
|
3439
|
+
* Returns the current path to a peer.
|
|
3430
3440
|
*/
|
|
3431
3441
|
path(peerId: string): PathKind | undefined;
|
|
3432
3442
|
/**
|
|
3433
|
-
* Returns the local peer ID
|
|
3443
|
+
* Returns the local peer ID.
|
|
3434
3444
|
*/
|
|
3435
3445
|
peerId(): string;
|
|
3436
3446
|
/**
|
|
3437
|
-
* Returns the latest Identify snapshot
|
|
3447
|
+
* Returns the latest Identify snapshot.
|
|
3438
3448
|
*/
|
|
3439
3449
|
peerInfo(peerId: string): IdentifyInfo | undefined;
|
|
3440
3450
|
/**
|
|
3441
|
-
* Sends an explicit ping
|
|
3451
|
+
* Sends an explicit ping.
|
|
3442
3452
|
*/
|
|
3443
3453
|
ping(peerId: string): void;
|
|
3444
3454
|
/**
|
|
3445
|
-
* Publishes one
|
|
3455
|
+
* Publishes one payload.
|
|
3446
3456
|
*/
|
|
3447
3457
|
publish(topic: string, data: ArrayBuffer): void;
|
|
3448
3458
|
/**
|
|
3449
|
-
* Returns the current
|
|
3459
|
+
* Returns the current reachability verdict.
|
|
3450
3460
|
*/
|
|
3451
3461
|
reachability(): Reachability;
|
|
3452
3462
|
/**
|
|
3453
|
-
* Resets
|
|
3463
|
+
* Resets a stream.
|
|
3454
3464
|
*/
|
|
3455
3465
|
resetStream(peerId: string, streamId: bigint): void;
|
|
3456
3466
|
/**
|
|
3457
|
-
* Sends
|
|
3467
|
+
* Sends bytes on a stream.
|
|
3458
3468
|
*/
|
|
3459
3469
|
sendStream(peerId: string, streamId: bigint, data: ArrayBuffer): void;
|
|
3460
3470
|
/**
|
|
3461
|
-
* Selects active or idle
|
|
3471
|
+
* Selects active or idle polling.
|
|
3462
3472
|
*/
|
|
3463
3473
|
setActive(active: boolean): void;
|
|
3464
3474
|
/**
|
|
3465
|
-
* Starts the detached
|
|
3475
|
+
* Starts the detached driver and registers its doorbell.
|
|
3466
3476
|
*/
|
|
3467
|
-
start(
|
|
3477
|
+
start(doorbell: P2pEventDoorbell): void;
|
|
3468
3478
|
/**
|
|
3469
|
-
* Requests shutdown
|
|
3479
|
+
* Requests shutdown.
|
|
3470
3480
|
*/
|
|
3471
3481
|
stop(): void;
|
|
3472
3482
|
/**
|
|
@@ -3478,14 +3488,7 @@ export declare class P2pEndpoint extends UniffiAbstractObject implements P2pEndp
|
|
|
3478
3488
|
*/
|
|
3479
3489
|
unsubscribe(topic: string): boolean;
|
|
3480
3490
|
/**
|
|
3481
|
-
* Waits
|
|
3482
|
-
*
|
|
3483
|
-
* A newly created endpoint still owns bound sockets, so this returns
|
|
3484
|
-
* `false` until `stop` releases it. For a running endpoint, `stop` only
|
|
3485
|
-
* requests shutdown and this waits for the driver exit cleanup.
|
|
3486
|
-
*
|
|
3487
|
-
* Calling this from a listener callback would wait on the callback's own
|
|
3488
|
-
* driver thread, so that case returns `false` immediately.
|
|
3491
|
+
* Waits for complete driver shutdown.
|
|
3489
3492
|
*/
|
|
3490
3493
|
waitStopped(timeoutMs: bigint): boolean;
|
|
3491
3494
|
uniffiDestroy(): void;
|
|
@@ -3506,122 +3509,122 @@ declare const _default: Readonly<{
|
|
|
3506
3509
|
initialize: typeof uniffiEnsureInitialized;
|
|
3507
3510
|
converters: {
|
|
3508
3511
|
FfiConverterTypeDiscoveryOptions: {
|
|
3509
|
-
|
|
3510
|
-
|
|
3512
|
+
readFromCursor(c: Cursor): DiscoveryOptions;
|
|
3513
|
+
writeIntoCursor(value: DiscoveryOptions, c: Cursor): void;
|
|
3511
3514
|
allocationSize(value: DiscoveryOptions): number;
|
|
3512
3515
|
lift(value: UniffiByteArray): DiscoveryOptions;
|
|
3513
3516
|
lower(value: DiscoveryOptions, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3514
3517
|
};
|
|
3515
3518
|
FfiConverterTypeDiscoverySource: {
|
|
3516
|
-
|
|
3517
|
-
|
|
3519
|
+
readFromCursor(c: Cursor): DiscoverySource;
|
|
3520
|
+
writeIntoCursor(value: DiscoverySource, c: Cursor): void;
|
|
3518
3521
|
allocationSize(value: DiscoverySource): number;
|
|
3519
3522
|
lift(value: UniffiByteArray): DiscoverySource;
|
|
3520
3523
|
lower(value: DiscoverySource, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3521
3524
|
};
|
|
3522
3525
|
FfiConverterTypeDriverFailureKind: {
|
|
3523
|
-
|
|
3524
|
-
|
|
3526
|
+
readFromCursor(c: Cursor): DriverFailureKind;
|
|
3527
|
+
writeIntoCursor(value: DriverFailureKind, c: Cursor): void;
|
|
3525
3528
|
allocationSize(value: DriverFailureKind): number;
|
|
3526
3529
|
lift(value: UniffiByteArray): DriverFailureKind;
|
|
3527
3530
|
lower(value: DriverFailureKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3528
3531
|
};
|
|
3529
3532
|
FfiConverterTypeEndpointConfig: {
|
|
3530
|
-
|
|
3531
|
-
|
|
3533
|
+
readFromCursor(c: Cursor): EndpointConfig;
|
|
3534
|
+
writeIntoCursor(value: EndpointConfig, c: Cursor): void;
|
|
3532
3535
|
allocationSize(value: EndpointConfig): number;
|
|
3533
3536
|
lift(value: UniffiByteArray): EndpointConfig;
|
|
3534
3537
|
lower(value: EndpointConfig, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3535
3538
|
};
|
|
3536
3539
|
FfiConverterTypeEndpointErrorKind: {
|
|
3537
|
-
|
|
3538
|
-
|
|
3540
|
+
readFromCursor(c: Cursor): EndpointErrorKind;
|
|
3541
|
+
writeIntoCursor(value: EndpointErrorKind, c: Cursor): void;
|
|
3539
3542
|
allocationSize(value: EndpointErrorKind): number;
|
|
3540
3543
|
lift(value: UniffiByteArray): EndpointErrorKind;
|
|
3541
3544
|
lower(value: EndpointErrorKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3542
3545
|
};
|
|
3543
3546
|
FfiConverterTypeFfiError: {
|
|
3544
|
-
|
|
3545
|
-
|
|
3547
|
+
readFromCursor(c: Cursor): FfiError;
|
|
3548
|
+
writeIntoCursor(value: FfiError, c: Cursor): void;
|
|
3546
3549
|
allocationSize(value: FfiError): number;
|
|
3547
3550
|
lift(value: UniffiByteArray): FfiError;
|
|
3548
3551
|
lower(value: FfiError, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3549
3552
|
};
|
|
3550
3553
|
FfiConverterTypeIdentifyInfo: {
|
|
3551
|
-
|
|
3552
|
-
|
|
3554
|
+
readFromCursor(c: Cursor): IdentifyInfo;
|
|
3555
|
+
writeIntoCursor(value: IdentifyInfo, c: Cursor): void;
|
|
3553
3556
|
allocationSize(value: IdentifyInfo): number;
|
|
3554
3557
|
lift(value: UniffiByteArray): IdentifyInfo;
|
|
3555
3558
|
lower(value: IdentifyInfo, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3556
3559
|
};
|
|
3557
3560
|
FfiConverterTypeKnownPeerInfo: {
|
|
3558
|
-
|
|
3559
|
-
|
|
3561
|
+
readFromCursor(c: Cursor): KnownPeerInfo;
|
|
3562
|
+
writeIntoCursor(value: KnownPeerInfo, c: Cursor): void;
|
|
3560
3563
|
allocationSize(value: KnownPeerInfo): number;
|
|
3561
3564
|
lift(value: UniffiByteArray): KnownPeerInfo;
|
|
3562
3565
|
lower(value: KnownPeerInfo, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3563
3566
|
};
|
|
3564
3567
|
FfiConverterTypeMdnsOptions: {
|
|
3565
|
-
|
|
3566
|
-
|
|
3568
|
+
readFromCursor(c: Cursor): MdnsOptions;
|
|
3569
|
+
writeIntoCursor(value: MdnsOptions, c: Cursor): void;
|
|
3567
3570
|
allocationSize(value: MdnsOptions): number;
|
|
3568
3571
|
lift(value: UniffiByteArray): MdnsOptions;
|
|
3569
3572
|
lower(value: MdnsOptions, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3570
3573
|
};
|
|
3571
3574
|
FfiConverterTypeNatErrorKind: {
|
|
3572
|
-
|
|
3573
|
-
|
|
3575
|
+
readFromCursor(c: Cursor): NatErrorKind;
|
|
3576
|
+
writeIntoCursor(value: NatErrorKind, c: Cursor): void;
|
|
3574
3577
|
allocationSize(value: NatErrorKind): number;
|
|
3575
3578
|
lift(value: UniffiByteArray): NatErrorKind;
|
|
3576
3579
|
lower(value: NatErrorKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3577
3580
|
};
|
|
3578
3581
|
FfiConverterTypeOpenStreamResult: {
|
|
3579
|
-
|
|
3580
|
-
|
|
3582
|
+
readFromCursor(c: Cursor): OpenStreamResult;
|
|
3583
|
+
writeIntoCursor(value: OpenStreamResult, c: Cursor): void;
|
|
3581
3584
|
allocationSize(value: OpenStreamResult): number;
|
|
3582
3585
|
lift(value: UniffiByteArray): OpenStreamResult;
|
|
3583
3586
|
lower(value: OpenStreamResult, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3584
3587
|
};
|
|
3585
3588
|
FfiConverterTypeP2pEndpoint: FfiConverterObject<P2pEndpointLike>;
|
|
3586
3589
|
FfiConverterTypeP2pEvent: {
|
|
3587
|
-
|
|
3588
|
-
|
|
3590
|
+
readFromCursor(c: Cursor): P2pEvent;
|
|
3591
|
+
writeIntoCursor(value: P2pEvent, c: Cursor): void;
|
|
3589
3592
|
allocationSize(value: P2pEvent): number;
|
|
3590
3593
|
lift(value: UniffiByteArray): P2pEvent;
|
|
3591
3594
|
lower(value: P2pEvent, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3592
3595
|
};
|
|
3593
|
-
|
|
3596
|
+
FfiConverterTypeP2pEventDoorbell: FfiConverterObjectWithCallbacks<P2pEventDoorbell>;
|
|
3594
3597
|
FfiConverterTypePathKind: {
|
|
3595
|
-
|
|
3596
|
-
|
|
3598
|
+
readFromCursor(c: Cursor): PathKind;
|
|
3599
|
+
writeIntoCursor(value: PathKind, c: Cursor): void;
|
|
3597
3600
|
allocationSize(value: PathKind): number;
|
|
3598
3601
|
lift(value: UniffiByteArray): PathKind;
|
|
3599
3602
|
lower(value: PathKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3600
3603
|
};
|
|
3601
3604
|
FfiConverterTypePubsubRouter: {
|
|
3602
|
-
|
|
3603
|
-
|
|
3605
|
+
readFromCursor(c: Cursor): PubsubRouter;
|
|
3606
|
+
writeIntoCursor(value: PubsubRouter, c: Cursor): void;
|
|
3604
3607
|
allocationSize(value: PubsubRouter): number;
|
|
3605
3608
|
lift(value: UniffiByteArray): PubsubRouter;
|
|
3606
3609
|
lower(value: PubsubRouter, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3607
3610
|
};
|
|
3608
3611
|
FfiConverterTypeReachability: {
|
|
3609
|
-
|
|
3610
|
-
|
|
3612
|
+
readFromCursor(c: Cursor): Reachability;
|
|
3613
|
+
writeIntoCursor(value: Reachability, c: Cursor): void;
|
|
3611
3614
|
allocationSize(value: Reachability): number;
|
|
3612
3615
|
lift(value: UniffiByteArray): Reachability;
|
|
3613
3616
|
lower(value: Reachability, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3614
3617
|
};
|
|
3615
3618
|
FfiConverterTypeRelayReservationInfo: {
|
|
3616
|
-
|
|
3617
|
-
|
|
3619
|
+
readFromCursor(c: Cursor): RelayReservationInfo;
|
|
3620
|
+
writeIntoCursor(value: RelayReservationInfo, c: Cursor): void;
|
|
3618
3621
|
allocationSize(value: RelayReservationInfo): number;
|
|
3619
3622
|
lift(value: UniffiByteArray): RelayReservationInfo;
|
|
3620
3623
|
lower(value: RelayReservationInfo, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3621
3624
|
};
|
|
3622
3625
|
FfiConverterTypeTransportOptions: {
|
|
3623
|
-
|
|
3624
|
-
|
|
3626
|
+
readFromCursor(c: Cursor): TransportOptions;
|
|
3627
|
+
writeIntoCursor(value: TransportOptions, c: Cursor): void;
|
|
3625
3628
|
allocationSize(value: TransportOptions): number;
|
|
3626
3629
|
lift(value: UniffiByteArray): TransportOptions;
|
|
3627
3630
|
lower(value: TransportOptions, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|