@coasys/ad4m 0.10.1-rc9-dev → 0.10.1-release-candidate-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -3274,17 +3274,22 @@ function dummyFn() {
3274
3274
  function dummyDecorator() {
3275
3275
  return dummyFn;
3276
3276
  }
3277
+ const Arg = dummyDecorator;
3277
3278
  const Field = dummyDecorator;
3278
3279
  const InputType = dummyDecorator;
3280
+ const Mutation = dummyDecorator;
3279
3281
  const ObjectType = dummyDecorator;
3282
+ const Query = dummyDecorator;
3283
+ const Resolver = dummyDecorator;
3284
+ const Subscription = dummyDecorator;
3280
3285
 
3281
- var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3286
+ var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3282
3287
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3283
3288
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3284
3289
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3285
3290
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3286
3291
  };
3287
- var __metadata$f = (undefined && undefined.__metadata) || function (k, v) {
3292
+ var __metadata$g = (undefined && undefined.__metadata) || function (k, v) {
3288
3293
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3289
3294
  };
3290
3295
  let Icon = class Icon {
@@ -3292,22 +3297,22 @@ let Icon = class Icon {
3292
3297
  this.code = code;
3293
3298
  }
3294
3299
  };
3295
- __decorate$f([
3300
+ __decorate$g([
3296
3301
  Field(),
3297
- __metadata$f("design:type", String)
3302
+ __metadata$g("design:type", String)
3298
3303
  ], Icon.prototype, "code", void 0);
3299
- Icon = __decorate$f([
3304
+ Icon = __decorate$g([
3300
3305
  ObjectType(),
3301
- __metadata$f("design:paramtypes", [String])
3306
+ __metadata$g("design:paramtypes", [String])
3302
3307
  ], Icon);
3303
3308
 
3304
- var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3309
+ var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3305
3310
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3306
3311
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3307
3312
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3308
3313
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3309
3314
  };
3310
- var __metadata$e = (undefined && undefined.__metadata) || function (k, v) {
3315
+ var __metadata$f = (undefined && undefined.__metadata) || function (k, v) {
3311
3316
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3312
3317
  };
3313
3318
  // Unique Language ID with option type
@@ -3317,26 +3322,26 @@ let LanguageRef = class LanguageRef {
3317
3322
  this.name = name;
3318
3323
  }
3319
3324
  };
3320
- __decorate$e([
3325
+ __decorate$f([
3321
3326
  Field(),
3322
- __metadata$e("design:type", String)
3327
+ __metadata$f("design:type", String)
3323
3328
  ], LanguageRef.prototype, "address", void 0);
3324
- __decorate$e([
3329
+ __decorate$f([
3325
3330
  Field(),
3326
- __metadata$e("design:type", String)
3331
+ __metadata$f("design:type", String)
3327
3332
  ], LanguageRef.prototype, "name", void 0);
3328
- LanguageRef = __decorate$e([
3333
+ LanguageRef = __decorate$f([
3329
3334
  ObjectType(),
3330
- __metadata$e("design:paramtypes", [String, String])
3335
+ __metadata$f("design:paramtypes", [String, String])
3331
3336
  ], LanguageRef);
3332
3337
 
3333
- var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3338
+ var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3334
3339
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3335
3340
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3336
3341
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3337
3342
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3338
3343
  };
3339
- var __metadata$d = (undefined && undefined.__metadata) || function (k, v) {
3344
+ var __metadata$e = (undefined && undefined.__metadata) || function (k, v) {
3340
3345
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3341
3346
  };
3342
3347
  let ExpressionProof = class ExpressionProof {
@@ -3345,46 +3350,46 @@ let ExpressionProof = class ExpressionProof {
3345
3350
  this.signature = sig;
3346
3351
  }
3347
3352
  };
3348
- __decorate$d([
3353
+ __decorate$e([
3349
3354
  Field(),
3350
- __metadata$d("design:type", String)
3355
+ __metadata$e("design:type", String)
3351
3356
  ], ExpressionProof.prototype, "signature", void 0);
3352
- __decorate$d([
3357
+ __decorate$e([
3353
3358
  Field(),
3354
- __metadata$d("design:type", String)
3359
+ __metadata$e("design:type", String)
3355
3360
  ], ExpressionProof.prototype, "key", void 0);
3356
- __decorate$d([
3361
+ __decorate$e([
3357
3362
  Field(),
3358
- __metadata$d("design:type", Boolean)
3363
+ __metadata$e("design:type", Boolean)
3359
3364
  ], ExpressionProof.prototype, "valid", void 0);
3360
- __decorate$d([
3365
+ __decorate$e([
3361
3366
  Field(),
3362
- __metadata$d("design:type", Boolean)
3367
+ __metadata$e("design:type", Boolean)
3363
3368
  ], ExpressionProof.prototype, "invalid", void 0);
3364
- ExpressionProof = __decorate$d([
3369
+ ExpressionProof = __decorate$e([
3365
3370
  ObjectType(),
3366
3371
  InputType(),
3367
- __metadata$d("design:paramtypes", [String, String])
3372
+ __metadata$e("design:paramtypes", [String, String])
3368
3373
  ], ExpressionProof);
3369
3374
  let ExpressionProofInput = class ExpressionProofInput {
3370
3375
  };
3371
- __decorate$d([
3376
+ __decorate$e([
3372
3377
  Field(),
3373
- __metadata$d("design:type", String)
3378
+ __metadata$e("design:type", String)
3374
3379
  ], ExpressionProofInput.prototype, "signature", void 0);
3375
- __decorate$d([
3380
+ __decorate$e([
3376
3381
  Field(),
3377
- __metadata$d("design:type", String)
3382
+ __metadata$e("design:type", String)
3378
3383
  ], ExpressionProofInput.prototype, "key", void 0);
3379
- __decorate$d([
3384
+ __decorate$e([
3380
3385
  Field(),
3381
- __metadata$d("design:type", Boolean)
3386
+ __metadata$e("design:type", Boolean)
3382
3387
  ], ExpressionProofInput.prototype, "valid", void 0);
3383
- __decorate$d([
3388
+ __decorate$e([
3384
3389
  Field(),
3385
- __metadata$d("design:type", Boolean)
3390
+ __metadata$e("design:type", Boolean)
3386
3391
  ], ExpressionProofInput.prototype, "invalid", void 0);
3387
- ExpressionProofInput = __decorate$d([
3392
+ ExpressionProofInput = __decorate$e([
3388
3393
  InputType()
3389
3394
  ], ExpressionProofInput);
3390
3395
  //Note having any as return type here fixes compilation errors but I think we loose the ExpressionClass type in resulting .d.ts gql files
@@ -3397,81 +3402,81 @@ function ExpressionGeneric(DataTypeClass) {
3397
3402
  this.proof = proof;
3398
3403
  }
3399
3404
  };
3400
- __decorate$d([
3405
+ __decorate$e([
3401
3406
  Field(),
3402
- __metadata$d("design:type", String)
3407
+ __metadata$e("design:type", String)
3403
3408
  ], ExpressionClass.prototype, "author", void 0);
3404
- __decorate$d([
3409
+ __decorate$e([
3405
3410
  Field(),
3406
- __metadata$d("design:type", String)
3411
+ __metadata$e("design:type", String)
3407
3412
  ], ExpressionClass.prototype, "timestamp", void 0);
3408
- __decorate$d([
3413
+ __decorate$e([
3409
3414
  Field(),
3410
- __metadata$d("design:type", Object)
3415
+ __metadata$e("design:type", Object)
3411
3416
  ], ExpressionClass.prototype, "data", void 0);
3412
- __decorate$d([
3417
+ __decorate$e([
3413
3418
  Field(),
3414
- __metadata$d("design:type", ExpressionProof)
3419
+ __metadata$e("design:type", ExpressionProof)
3415
3420
  ], ExpressionClass.prototype, "proof", void 0);
3416
- ExpressionClass = __decorate$d([
3421
+ ExpressionClass = __decorate$e([
3417
3422
  ObjectType(),
3418
- __metadata$d("design:paramtypes", [String, String, Object, ExpressionProof])
3423
+ __metadata$e("design:paramtypes", [String, String, Object, ExpressionProof])
3419
3424
  ], ExpressionClass);
3420
3425
  return ExpressionClass;
3421
3426
  }
3422
3427
  function ExpressionGenericInput(DataTypeClass) {
3423
3428
  let ExpressionClass = class ExpressionClass {
3424
3429
  };
3425
- __decorate$d([
3430
+ __decorate$e([
3426
3431
  Field(),
3427
- __metadata$d("design:type", String)
3432
+ __metadata$e("design:type", String)
3428
3433
  ], ExpressionClass.prototype, "author", void 0);
3429
- __decorate$d([
3434
+ __decorate$e([
3430
3435
  Field(),
3431
- __metadata$d("design:type", String)
3436
+ __metadata$e("design:type", String)
3432
3437
  ], ExpressionClass.prototype, "timestamp", void 0);
3433
- __decorate$d([
3438
+ __decorate$e([
3434
3439
  Field(),
3435
- __metadata$d("design:type", Object)
3440
+ __metadata$e("design:type", Object)
3436
3441
  ], ExpressionClass.prototype, "data", void 0);
3437
- __decorate$d([
3442
+ __decorate$e([
3438
3443
  Field(),
3439
- __metadata$d("design:type", ExpressionProofInput)
3444
+ __metadata$e("design:type", ExpressionProofInput)
3440
3445
  ], ExpressionClass.prototype, "proof", void 0);
3441
- ExpressionClass = __decorate$d([
3446
+ ExpressionClass = __decorate$e([
3442
3447
  InputType()
3443
3448
  ], ExpressionClass);
3444
3449
  return ExpressionClass;
3445
3450
  }
3446
3451
  let Expression = class Expression extends ExpressionGeneric() {
3447
3452
  };
3448
- Expression = __decorate$d([
3453
+ Expression = __decorate$e([
3449
3454
  ObjectType()
3450
3455
  ], Expression);
3451
3456
  let ExpressionRendered = class ExpressionRendered extends ExpressionGeneric() {
3452
3457
  };
3453
- __decorate$d([
3458
+ __decorate$e([
3454
3459
  Field(),
3455
- __metadata$d("design:type", LanguageRef)
3460
+ __metadata$e("design:type", LanguageRef)
3456
3461
  ], ExpressionRendered.prototype, "language", void 0);
3457
- __decorate$d([
3462
+ __decorate$e([
3458
3463
  Field(),
3459
- __metadata$d("design:type", Icon)
3464
+ __metadata$e("design:type", Icon)
3460
3465
  ], ExpressionRendered.prototype, "icon", void 0);
3461
- ExpressionRendered = __decorate$d([
3466
+ ExpressionRendered = __decorate$e([
3462
3467
  ObjectType()
3463
3468
  ], ExpressionRendered);
3464
3469
  function isExpression(e) {
3465
3470
  return e && e.author && e.timestamp && e.data;
3466
3471
  }
3467
3472
 
3468
- var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3473
+ var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3469
3474
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3470
3475
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3471
3476
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3472
3477
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3473
3478
  };
3474
- var __metadata$c = (undefined && undefined.__metadata) || function (k, v) {
3479
+ var __metadata$d = (undefined && undefined.__metadata) || function (k, v) {
3475
3480
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3476
3481
  };
3477
3482
  let Link = class Link {
@@ -3481,33 +3486,33 @@ let Link = class Link {
3481
3486
  this.predicate = obj.predicate ? obj.predicate : '';
3482
3487
  }
3483
3488
  };
3484
- __decorate$c([
3489
+ __decorate$d([
3485
3490
  Field(),
3486
- __metadata$c("design:type", String)
3491
+ __metadata$d("design:type", String)
3487
3492
  ], Link.prototype, "source", void 0);
3488
- __decorate$c([
3493
+ __decorate$d([
3489
3494
  Field(),
3490
- __metadata$c("design:type", String)
3495
+ __metadata$d("design:type", String)
3491
3496
  ], Link.prototype, "target", void 0);
3492
- __decorate$c([
3497
+ __decorate$d([
3493
3498
  Field(),
3494
- __metadata$c("design:type", String)
3499
+ __metadata$d("design:type", String)
3495
3500
  ], Link.prototype, "predicate", void 0);
3496
- Link = __decorate$c([
3501
+ Link = __decorate$d([
3497
3502
  ObjectType(),
3498
- __metadata$c("design:paramtypes", [Object])
3503
+ __metadata$d("design:paramtypes", [Object])
3499
3504
  ], Link);
3500
3505
  let LinkMutations = class LinkMutations {
3501
3506
  };
3502
- __decorate$c([
3507
+ __decorate$d([
3503
3508
  Field(),
3504
- __metadata$c("design:type", Array)
3509
+ __metadata$d("design:type", Array)
3505
3510
  ], LinkMutations.prototype, "additions", void 0);
3506
- __decorate$c([
3511
+ __decorate$d([
3507
3512
  Field(),
3508
- __metadata$c("design:type", Array)
3513
+ __metadata$d("design:type", Array)
3509
3514
  ], LinkMutations.prototype, "removals", void 0);
3510
- LinkMutations = __decorate$c([
3515
+ LinkMutations = __decorate$d([
3511
3516
  InputType()
3512
3517
  ], LinkMutations);
3513
3518
  let LinkExpressionMutations = class LinkExpressionMutations {
@@ -3516,33 +3521,33 @@ let LinkExpressionMutations = class LinkExpressionMutations {
3516
3521
  this.removals = removals;
3517
3522
  }
3518
3523
  };
3519
- __decorate$c([
3524
+ __decorate$d([
3520
3525
  Field(),
3521
- __metadata$c("design:type", Array)
3526
+ __metadata$d("design:type", Array)
3522
3527
  ], LinkExpressionMutations.prototype, "additions", void 0);
3523
- __decorate$c([
3528
+ __decorate$d([
3524
3529
  Field(),
3525
- __metadata$c("design:type", Array)
3530
+ __metadata$d("design:type", Array)
3526
3531
  ], LinkExpressionMutations.prototype, "removals", void 0);
3527
- LinkExpressionMutations = __decorate$c([
3532
+ LinkExpressionMutations = __decorate$d([
3528
3533
  ObjectType(),
3529
- __metadata$c("design:paramtypes", [Array, Array])
3534
+ __metadata$d("design:paramtypes", [Array, Array])
3530
3535
  ], LinkExpressionMutations);
3531
3536
  let LinkInput = class LinkInput {
3532
3537
  };
3533
- __decorate$c([
3538
+ __decorate$d([
3534
3539
  Field(),
3535
- __metadata$c("design:type", String)
3540
+ __metadata$d("design:type", String)
3536
3541
  ], LinkInput.prototype, "source", void 0);
3537
- __decorate$c([
3542
+ __decorate$d([
3538
3543
  Field(),
3539
- __metadata$c("design:type", String)
3544
+ __metadata$d("design:type", String)
3540
3545
  ], LinkInput.prototype, "target", void 0);
3541
- __decorate$c([
3546
+ __decorate$d([
3542
3547
  Field(),
3543
- __metadata$c("design:type", String)
3548
+ __metadata$d("design:type", String)
3544
3549
  ], LinkInput.prototype, "predicate", void 0);
3545
- LinkInput = __decorate$c([
3550
+ LinkInput = __decorate$d([
3546
3551
  InputType()
3547
3552
  ], LinkInput);
3548
3553
  let LinkExpression = class LinkExpression extends ExpressionGeneric() {
@@ -3558,20 +3563,20 @@ let LinkExpression = class LinkExpression extends ExpressionGeneric() {
3558
3563
  return hash;
3559
3564
  }
3560
3565
  };
3561
- __decorate$c([
3566
+ __decorate$d([
3562
3567
  Field(),
3563
- __metadata$c("design:type", String)
3568
+ __metadata$d("design:type", String)
3564
3569
  ], LinkExpression.prototype, "status", void 0);
3565
- LinkExpression = __decorate$c([
3570
+ LinkExpression = __decorate$d([
3566
3571
  ObjectType()
3567
3572
  ], LinkExpression);
3568
3573
  let LinkExpressionInput = class LinkExpressionInput extends ExpressionGenericInput() {
3569
3574
  };
3570
- __decorate$c([
3575
+ __decorate$d([
3571
3576
  Field(),
3572
- __metadata$c("design:type", String)
3577
+ __metadata$d("design:type", String)
3573
3578
  ], LinkExpressionInput.prototype, "status", void 0);
3574
- LinkExpressionInput = __decorate$c([
3579
+ LinkExpressionInput = __decorate$d([
3575
3580
  InputType()
3576
3581
  ], LinkExpressionInput);
3577
3582
  function linkEqual(l1, l2) {
@@ -3590,26 +3595,26 @@ let LinkExpressionUpdated = class LinkExpressionUpdated {
3590
3595
  this.newLink = newLink;
3591
3596
  }
3592
3597
  };
3593
- __decorate$c([
3598
+ __decorate$d([
3594
3599
  Field(),
3595
- __metadata$c("design:type", LinkExpression)
3600
+ __metadata$d("design:type", LinkExpression)
3596
3601
  ], LinkExpressionUpdated.prototype, "oldLink", void 0);
3597
- __decorate$c([
3602
+ __decorate$d([
3598
3603
  Field(),
3599
- __metadata$c("design:type", LinkExpression)
3604
+ __metadata$d("design:type", LinkExpression)
3600
3605
  ], LinkExpressionUpdated.prototype, "newLink", void 0);
3601
- LinkExpressionUpdated = __decorate$c([
3606
+ LinkExpressionUpdated = __decorate$d([
3602
3607
  ObjectType(),
3603
- __metadata$c("design:paramtypes", [LinkExpression, LinkExpression])
3608
+ __metadata$d("design:paramtypes", [LinkExpression, LinkExpression])
3604
3609
  ], LinkExpressionUpdated);
3605
3610
 
3606
- var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3611
+ var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3607
3612
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3608
3613
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3609
3614
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3610
3615
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3611
3616
  };
3612
- var __metadata$b = (undefined && undefined.__metadata) || function (k, v) {
3617
+ var __metadata$c = (undefined && undefined.__metadata) || function (k, v) {
3613
3618
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3614
3619
  };
3615
3620
  var PerspectiveUnsignedInput_1;
@@ -3696,21 +3701,21 @@ let Perspective = class Perspective {
3696
3701
  return null;
3697
3702
  }
3698
3703
  };
3699
- __decorate$b([
3704
+ __decorate$c([
3700
3705
  Field(),
3701
- __metadata$b("design:type", Array)
3706
+ __metadata$c("design:type", Array)
3702
3707
  ], Perspective.prototype, "links", void 0);
3703
- Perspective = __decorate$b([
3708
+ Perspective = __decorate$c([
3704
3709
  ObjectType(),
3705
- __metadata$b("design:paramtypes", [Array])
3710
+ __metadata$c("design:paramtypes", [Array])
3706
3711
  ], Perspective);
3707
3712
  let PerspectiveInput = class PerspectiveInput {
3708
3713
  };
3709
- __decorate$b([
3714
+ __decorate$c([
3710
3715
  Field(),
3711
- __metadata$b("design:type", Array)
3716
+ __metadata$c("design:type", Array)
3712
3717
  ], PerspectiveInput.prototype, "links", void 0);
3713
- PerspectiveInput = __decorate$b([
3718
+ PerspectiveInput = __decorate$c([
3714
3719
  InputType()
3715
3720
  ], PerspectiveInput);
3716
3721
  let PerspectiveUnsignedInput = PerspectiveUnsignedInput_1 = class PerspectiveUnsignedInput {
@@ -3726,27 +3731,27 @@ let PerspectiveUnsignedInput = PerspectiveUnsignedInput_1 = class PerspectiveUns
3726
3731
  return obj;
3727
3732
  }
3728
3733
  };
3729
- __decorate$b([
3734
+ __decorate$c([
3730
3735
  Field(),
3731
- __metadata$b("design:type", Array)
3736
+ __metadata$c("design:type", Array)
3732
3737
  ], PerspectiveUnsignedInput.prototype, "links", void 0);
3733
- PerspectiveUnsignedInput = PerspectiveUnsignedInput_1 = __decorate$b([
3738
+ PerspectiveUnsignedInput = PerspectiveUnsignedInput_1 = __decorate$c([
3734
3739
  InputType(),
3735
- __metadata$b("design:paramtypes", [Array])
3740
+ __metadata$c("design:paramtypes", [Array])
3736
3741
  ], PerspectiveUnsignedInput);
3737
3742
  let PerspectiveExpression = class PerspectiveExpression extends ExpressionGeneric() {
3738
3743
  };
3739
- PerspectiveExpression = __decorate$b([
3744
+ PerspectiveExpression = __decorate$c([
3740
3745
  ObjectType()
3741
3746
  ], PerspectiveExpression);
3742
3747
 
3743
- var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3748
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3744
3749
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3745
3750
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3746
3751
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3747
3752
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3748
3753
  };
3749
- var __metadata$a = (undefined && undefined.__metadata) || function (k, v) {
3754
+ var __metadata$b = (undefined && undefined.__metadata) || function (k, v) {
3750
3755
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3751
3756
  };
3752
3757
  /** AD4M's representation of an Agent
@@ -3776,25 +3781,25 @@ let Agent = class Agent {
3776
3781
  }
3777
3782
  }
3778
3783
  };
3779
- __decorate$a([
3784
+ __decorate$b([
3780
3785
  Field(),
3781
- __metadata$a("design:type", String)
3786
+ __metadata$b("design:type", String)
3782
3787
  ], Agent.prototype, "did", void 0);
3783
- __decorate$a([
3788
+ __decorate$b([
3784
3789
  Field(),
3785
- __metadata$a("design:type", Perspective)
3790
+ __metadata$b("design:type", Perspective)
3786
3791
  ], Agent.prototype, "perspective", void 0);
3787
- __decorate$a([
3792
+ __decorate$b([
3788
3793
  Field(),
3789
- __metadata$a("design:type", String)
3794
+ __metadata$b("design:type", String)
3790
3795
  ], Agent.prototype, "directMessageLanguage", void 0);
3791
- Agent = __decorate$a([
3796
+ Agent = __decorate$b([
3792
3797
  ObjectType(),
3793
- __metadata$a("design:paramtypes", [String, Perspective])
3798
+ __metadata$b("design:paramtypes", [String, Perspective])
3794
3799
  ], Agent);
3795
3800
  let AgentExpression = class AgentExpression extends ExpressionGeneric() {
3796
3801
  };
3797
- AgentExpression = __decorate$a([
3802
+ AgentExpression = __decorate$b([
3798
3803
  ObjectType()
3799
3804
  ], AgentExpression);
3800
3805
  let EntanglementProof = class EntanglementProof {
@@ -3807,33 +3812,33 @@ let EntanglementProof = class EntanglementProof {
3807
3812
  this.didSignedByDeviceKey = didSignedByDeviceKey;
3808
3813
  }
3809
3814
  };
3810
- __decorate$a([
3815
+ __decorate$b([
3811
3816
  Field(),
3812
- __metadata$a("design:type", String)
3817
+ __metadata$b("design:type", String)
3813
3818
  ], EntanglementProof.prototype, "did", void 0);
3814
- __decorate$a([
3819
+ __decorate$b([
3815
3820
  Field(),
3816
- __metadata$a("design:type", String)
3821
+ __metadata$b("design:type", String)
3817
3822
  ], EntanglementProof.prototype, "didSigningKeyId", void 0);
3818
- __decorate$a([
3823
+ __decorate$b([
3819
3824
  Field(),
3820
- __metadata$a("design:type", String)
3825
+ __metadata$b("design:type", String)
3821
3826
  ], EntanglementProof.prototype, "deviceKeyType", void 0);
3822
- __decorate$a([
3827
+ __decorate$b([
3823
3828
  Field(),
3824
- __metadata$a("design:type", String)
3829
+ __metadata$b("design:type", String)
3825
3830
  ], EntanglementProof.prototype, "deviceKey", void 0);
3826
- __decorate$a([
3831
+ __decorate$b([
3827
3832
  Field(),
3828
- __metadata$a("design:type", String)
3833
+ __metadata$b("design:type", String)
3829
3834
  ], EntanglementProof.prototype, "deviceKeySignedByDid", void 0);
3830
- __decorate$a([
3835
+ __decorate$b([
3831
3836
  Field(),
3832
- __metadata$a("design:type", String)
3837
+ __metadata$b("design:type", String)
3833
3838
  ], EntanglementProof.prototype, "didSignedByDeviceKey", void 0);
3834
- EntanglementProof = __decorate$a([
3839
+ EntanglementProof = __decorate$b([
3835
3840
  ObjectType(),
3836
- __metadata$a("design:paramtypes", [String, String, String, String, String, String])
3841
+ __metadata$b("design:paramtypes", [String, String, String, String, String, String])
3837
3842
  ], EntanglementProof);
3838
3843
  let EntanglementProofInput = class EntanglementProofInput {
3839
3844
  constructor(did, didSigningKeyId, deviceKeyType, deviceKey, deviceKeySignedByDid, didSignedByDeviceKey) {
@@ -3845,33 +3850,33 @@ let EntanglementProofInput = class EntanglementProofInput {
3845
3850
  this.didSignedByDeviceKey = didSignedByDeviceKey;
3846
3851
  }
3847
3852
  };
3848
- __decorate$a([
3853
+ __decorate$b([
3849
3854
  Field(),
3850
- __metadata$a("design:type", String)
3855
+ __metadata$b("design:type", String)
3851
3856
  ], EntanglementProofInput.prototype, "did", void 0);
3852
- __decorate$a([
3857
+ __decorate$b([
3853
3858
  Field(),
3854
- __metadata$a("design:type", String)
3859
+ __metadata$b("design:type", String)
3855
3860
  ], EntanglementProofInput.prototype, "didSigningKeyId", void 0);
3856
- __decorate$a([
3861
+ __decorate$b([
3857
3862
  Field(),
3858
- __metadata$a("design:type", String)
3863
+ __metadata$b("design:type", String)
3859
3864
  ], EntanglementProofInput.prototype, "deviceKeyType", void 0);
3860
- __decorate$a([
3865
+ __decorate$b([
3861
3866
  Field(),
3862
- __metadata$a("design:type", String)
3867
+ __metadata$b("design:type", String)
3863
3868
  ], EntanglementProofInput.prototype, "deviceKey", void 0);
3864
- __decorate$a([
3869
+ __decorate$b([
3865
3870
  Field(),
3866
- __metadata$a("design:type", String)
3871
+ __metadata$b("design:type", String)
3867
3872
  ], EntanglementProofInput.prototype, "deviceKeySignedByDid", void 0);
3868
- __decorate$a([
3873
+ __decorate$b([
3869
3874
  Field(),
3870
- __metadata$a("design:type", String)
3875
+ __metadata$b("design:type", String)
3871
3876
  ], EntanglementProofInput.prototype, "didSignedByDeviceKey", void 0);
3872
- EntanglementProofInput = __decorate$a([
3877
+ EntanglementProofInput = __decorate$b([
3873
3878
  InputType(),
3874
- __metadata$a("design:paramtypes", [String, String, String, String, String, String])
3879
+ __metadata$b("design:paramtypes", [String, String, String, String, String, String])
3875
3880
  ], EntanglementProofInput);
3876
3881
  let AgentSignature = class AgentSignature {
3877
3882
  constructor(signature, publicKey) {
@@ -3879,17 +3884,17 @@ let AgentSignature = class AgentSignature {
3879
3884
  this.publicKey = publicKey;
3880
3885
  }
3881
3886
  };
3882
- __decorate$a([
3887
+ __decorate$b([
3883
3888
  Field(),
3884
- __metadata$a("design:type", String)
3889
+ __metadata$b("design:type", String)
3885
3890
  ], AgentSignature.prototype, "signature", void 0);
3886
- __decorate$a([
3891
+ __decorate$b([
3887
3892
  Field(),
3888
- __metadata$a("design:type", String)
3893
+ __metadata$b("design:type", String)
3889
3894
  ], AgentSignature.prototype, "publicKey", void 0);
3890
- AgentSignature = __decorate$a([
3895
+ AgentSignature = __decorate$b([
3891
3896
  ObjectType(),
3892
- __metadata$a("design:paramtypes", [String, String])
3897
+ __metadata$b("design:paramtypes", [String, String])
3893
3898
  ], AgentSignature);
3894
3899
  let Resource = class Resource {
3895
3900
  constructor(domain, pointers) {
@@ -3897,17 +3902,17 @@ let Resource = class Resource {
3897
3902
  this.pointers = pointers;
3898
3903
  }
3899
3904
  };
3900
- __decorate$a([
3905
+ __decorate$b([
3901
3906
  Field(),
3902
- __metadata$a("design:type", String)
3907
+ __metadata$b("design:type", String)
3903
3908
  ], Resource.prototype, "domain", void 0);
3904
- __decorate$a([
3909
+ __decorate$b([
3905
3910
  Field(),
3906
- __metadata$a("design:type", Array)
3911
+ __metadata$b("design:type", Array)
3907
3912
  ], Resource.prototype, "pointers", void 0);
3908
- Resource = __decorate$a([
3913
+ Resource = __decorate$b([
3909
3914
  ObjectType(),
3910
- __metadata$a("design:paramtypes", [String, Array])
3915
+ __metadata$b("design:paramtypes", [String, Array])
3911
3916
  ], Resource);
3912
3917
  let Capability = class Capability {
3913
3918
  constructor(withF, can) {
@@ -3915,17 +3920,17 @@ let Capability = class Capability {
3915
3920
  this.can = can;
3916
3921
  }
3917
3922
  };
3918
- __decorate$a([
3923
+ __decorate$b([
3919
3924
  Field(),
3920
- __metadata$a("design:type", Resource)
3925
+ __metadata$b("design:type", Resource)
3921
3926
  ], Capability.prototype, "with", void 0);
3922
- __decorate$a([
3927
+ __decorate$b([
3923
3928
  Field(),
3924
- __metadata$a("design:type", Array)
3929
+ __metadata$b("design:type", Array)
3925
3930
  ], Capability.prototype, "can", void 0);
3926
- Capability = __decorate$a([
3931
+ Capability = __decorate$b([
3927
3932
  ObjectType(),
3928
- __metadata$a("design:paramtypes", [Resource, Array])
3933
+ __metadata$b("design:paramtypes", [Resource, Array])
3929
3934
  ], Capability);
3930
3935
  let AuthInfo = class AuthInfo {
3931
3936
  constructor(appName, appDesc, appUrl, capabilities, appIconPath) {
@@ -3936,29 +3941,29 @@ let AuthInfo = class AuthInfo {
3936
3941
  this.capabilities = capabilities;
3937
3942
  }
3938
3943
  };
3939
- __decorate$a([
3944
+ __decorate$b([
3940
3945
  Field(),
3941
- __metadata$a("design:type", String)
3946
+ __metadata$b("design:type", String)
3942
3947
  ], AuthInfo.prototype, "appName", void 0);
3943
- __decorate$a([
3948
+ __decorate$b([
3944
3949
  Field(),
3945
- __metadata$a("design:type", String)
3950
+ __metadata$b("design:type", String)
3946
3951
  ], AuthInfo.prototype, "appDesc", void 0);
3947
- __decorate$a([
3952
+ __decorate$b([
3948
3953
  Field(),
3949
- __metadata$a("design:type", String)
3954
+ __metadata$b("design:type", String)
3950
3955
  ], AuthInfo.prototype, "appUrl", void 0);
3951
- __decorate$a([
3956
+ __decorate$b([
3952
3957
  Field(),
3953
- __metadata$a("design:type", String)
3958
+ __metadata$b("design:type", String)
3954
3959
  ], AuthInfo.prototype, "appIconPath", void 0);
3955
- __decorate$a([
3960
+ __decorate$b([
3956
3961
  Field(),
3957
- __metadata$a("design:type", Array)
3962
+ __metadata$b("design:type", Array)
3958
3963
  ], AuthInfo.prototype, "capabilities", void 0);
3959
- AuthInfo = __decorate$a([
3964
+ AuthInfo = __decorate$b([
3960
3965
  ObjectType(),
3961
- __metadata$a("design:paramtypes", [String, String, String, Array, String])
3966
+ __metadata$b("design:paramtypes", [String, String, String, Array, String])
3962
3967
  ], AuthInfo);
3963
3968
  let Apps = class Apps {
3964
3969
  constructor(requestId, auth, token, revoked) {
@@ -3968,25 +3973,25 @@ let Apps = class Apps {
3968
3973
  this.revoked = revoked;
3969
3974
  }
3970
3975
  };
3971
- __decorate$a([
3976
+ __decorate$b([
3972
3977
  Field(),
3973
- __metadata$a("design:type", String)
3978
+ __metadata$b("design:type", String)
3974
3979
  ], Apps.prototype, "requestId", void 0);
3975
- __decorate$a([
3980
+ __decorate$b([
3976
3981
  Field(),
3977
- __metadata$a("design:type", String)
3982
+ __metadata$b("design:type", String)
3978
3983
  ], Apps.prototype, "token", void 0);
3979
- __decorate$a([
3984
+ __decorate$b([
3980
3985
  Field(),
3981
- __metadata$a("design:type", Boolean)
3986
+ __metadata$b("design:type", Boolean)
3982
3987
  ], Apps.prototype, "revoked", void 0);
3983
- __decorate$a([
3988
+ __decorate$b([
3984
3989
  Field(),
3985
- __metadata$a("design:type", AuthInfo)
3990
+ __metadata$b("design:type", AuthInfo)
3986
3991
  ], Apps.prototype, "auth", void 0);
3987
- Apps = __decorate$a([
3992
+ Apps = __decorate$b([
3988
3993
  ObjectType(),
3989
- __metadata$a("design:paramtypes", [String, AuthInfo, String, Boolean])
3994
+ __metadata$b("design:paramtypes", [String, AuthInfo, String, Boolean])
3990
3995
  ], Apps);
3991
3996
  let ResourceInput = class ResourceInput {
3992
3997
  constructor(domain, pointers) {
@@ -3994,17 +3999,17 @@ let ResourceInput = class ResourceInput {
3994
3999
  this.pointers = pointers;
3995
4000
  }
3996
4001
  };
3997
- __decorate$a([
4002
+ __decorate$b([
3998
4003
  Field(),
3999
- __metadata$a("design:type", String)
4004
+ __metadata$b("design:type", String)
4000
4005
  ], ResourceInput.prototype, "domain", void 0);
4001
- __decorate$a([
4006
+ __decorate$b([
4002
4007
  Field(),
4003
- __metadata$a("design:type", Array)
4008
+ __metadata$b("design:type", Array)
4004
4009
  ], ResourceInput.prototype, "pointers", void 0);
4005
- ResourceInput = __decorate$a([
4010
+ ResourceInput = __decorate$b([
4006
4011
  InputType(),
4007
- __metadata$a("design:paramtypes", [String, Array])
4012
+ __metadata$b("design:paramtypes", [String, Array])
4008
4013
  ], ResourceInput);
4009
4014
  let CapabilityInput = class CapabilityInput {
4010
4015
  constructor(withF, can) {
@@ -4012,17 +4017,17 @@ let CapabilityInput = class CapabilityInput {
4012
4017
  this.can = can;
4013
4018
  }
4014
4019
  };
4015
- __decorate$a([
4020
+ __decorate$b([
4016
4021
  Field(),
4017
- __metadata$a("design:type", ResourceInput)
4022
+ __metadata$b("design:type", ResourceInput)
4018
4023
  ], CapabilityInput.prototype, "with", void 0);
4019
- __decorate$a([
4024
+ __decorate$b([
4020
4025
  Field(),
4021
- __metadata$a("design:type", Array)
4026
+ __metadata$b("design:type", Array)
4022
4027
  ], CapabilityInput.prototype, "can", void 0);
4023
- CapabilityInput = __decorate$a([
4028
+ CapabilityInput = __decorate$b([
4024
4029
  InputType(),
4025
- __metadata$a("design:paramtypes", [ResourceInput, Array])
4030
+ __metadata$b("design:paramtypes", [ResourceInput, Array])
4026
4031
  ], CapabilityInput);
4027
4032
  let AuthInfoInput = class AuthInfoInput {
4028
4033
  constructor(appName, appDesc, appDomain, appUrl, appIconPath, capabilities) {
@@ -4034,42 +4039,42 @@ let AuthInfoInput = class AuthInfoInput {
4034
4039
  this.appIconPath = appIconPath;
4035
4040
  }
4036
4041
  };
4037
- __decorate$a([
4042
+ __decorate$b([
4038
4043
  Field(),
4039
- __metadata$a("design:type", String)
4044
+ __metadata$b("design:type", String)
4040
4045
  ], AuthInfoInput.prototype, "appName", void 0);
4041
- __decorate$a([
4046
+ __decorate$b([
4042
4047
  Field(),
4043
- __metadata$a("design:type", String)
4048
+ __metadata$b("design:type", String)
4044
4049
  ], AuthInfoInput.prototype, "appDesc", void 0);
4045
- __decorate$a([
4050
+ __decorate$b([
4046
4051
  Field(),
4047
- __metadata$a("design:type", String)
4052
+ __metadata$b("design:type", String)
4048
4053
  ], AuthInfoInput.prototype, "appDomain", void 0);
4049
- __decorate$a([
4054
+ __decorate$b([
4050
4055
  Field(),
4051
- __metadata$a("design:type", String)
4056
+ __metadata$b("design:type", String)
4052
4057
  ], AuthInfoInput.prototype, "appUrl", void 0);
4053
- __decorate$a([
4058
+ __decorate$b([
4054
4059
  Field(),
4055
- __metadata$a("design:type", String)
4060
+ __metadata$b("design:type", String)
4056
4061
  ], AuthInfoInput.prototype, "appIconPath", void 0);
4057
- __decorate$a([
4062
+ __decorate$b([
4058
4063
  Field(),
4059
- __metadata$a("design:type", Array)
4064
+ __metadata$b("design:type", Array)
4060
4065
  ], AuthInfoInput.prototype, "capabilities", void 0);
4061
- AuthInfoInput = __decorate$a([
4066
+ AuthInfoInput = __decorate$b([
4062
4067
  InputType(),
4063
- __metadata$a("design:paramtypes", [String, String, String, String, String, Array])
4068
+ __metadata$b("design:paramtypes", [String, String, String, String, String, Array])
4064
4069
  ], AuthInfoInput);
4065
4070
 
4066
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4071
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4067
4072
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4068
4073
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4069
4074
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4070
4075
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4071
4076
  };
4072
- var __metadata$9 = (undefined && undefined.__metadata) || function (k, v) {
4077
+ var __metadata$a = (undefined && undefined.__metadata) || function (k, v) {
4073
4078
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4074
4079
  };
4075
4080
  let AgentStatus = class AgentStatus {
@@ -4098,29 +4103,29 @@ let AgentStatus = class AgentStatus {
4098
4103
  }
4099
4104
  }
4100
4105
  };
4101
- __decorate$9([
4106
+ __decorate$a([
4102
4107
  Field(),
4103
- __metadata$9("design:type", Boolean)
4108
+ __metadata$a("design:type", Boolean)
4104
4109
  ], AgentStatus.prototype, "isInitialized", void 0);
4105
- __decorate$9([
4110
+ __decorate$a([
4106
4111
  Field(),
4107
- __metadata$9("design:type", Boolean)
4112
+ __metadata$a("design:type", Boolean)
4108
4113
  ], AgentStatus.prototype, "isUnlocked", void 0);
4109
- __decorate$9([
4114
+ __decorate$a([
4110
4115
  Field(),
4111
- __metadata$9("design:type", String)
4116
+ __metadata$a("design:type", String)
4112
4117
  ], AgentStatus.prototype, "did", void 0);
4113
- __decorate$9([
4118
+ __decorate$a([
4114
4119
  Field(),
4115
- __metadata$9("design:type", String)
4120
+ __metadata$a("design:type", String)
4116
4121
  ], AgentStatus.prototype, "didDocument", void 0);
4117
- __decorate$9([
4122
+ __decorate$a([
4118
4123
  Field(),
4119
- __metadata$9("design:type", String)
4124
+ __metadata$a("design:type", String)
4120
4125
  ], AgentStatus.prototype, "error", void 0);
4121
- AgentStatus = __decorate$9([
4126
+ AgentStatus = __decorate$a([
4122
4127
  ObjectType(),
4123
- __metadata$9("design:paramtypes", [Object])
4128
+ __metadata$a("design:paramtypes", [Object])
4124
4129
  ], AgentStatus);
4125
4130
 
4126
4131
  var __classPrivateFieldSet$d = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
@@ -4163,11 +4168,11 @@ class NeighbourhoodProxy {
4163
4168
  async sendSignalU(remoteAgentDid, payload) {
4164
4169
  return await __classPrivateFieldGet$d(this, _NeighbourhoodProxy_client, "f").sendSignalU(__classPrivateFieldGet$d(this, _NeighbourhoodProxy_pID, "f"), remoteAgentDid, payload);
4165
4170
  }
4166
- async sendBroadcast(payload) {
4167
- return await __classPrivateFieldGet$d(this, _NeighbourhoodProxy_client, "f").sendBroadcast(__classPrivateFieldGet$d(this, _NeighbourhoodProxy_pID, "f"), payload);
4171
+ async sendBroadcast(payload, loopback = false) {
4172
+ return await __classPrivateFieldGet$d(this, _NeighbourhoodProxy_client, "f").sendBroadcast(__classPrivateFieldGet$d(this, _NeighbourhoodProxy_pID, "f"), payload, loopback);
4168
4173
  }
4169
- async sendBroadcastU(payload) {
4170
- return await __classPrivateFieldGet$d(this, _NeighbourhoodProxy_client, "f").sendBroadcastU(__classPrivateFieldGet$d(this, _NeighbourhoodProxy_pID, "f"), payload);
4174
+ async sendBroadcastU(payload, loopback = false) {
4175
+ return await __classPrivateFieldGet$d(this, _NeighbourhoodProxy_client, "f").sendBroadcastU(__classPrivateFieldGet$d(this, _NeighbourhoodProxy_pID, "f"), payload, loopback);
4171
4176
  }
4172
4177
  async addSignalHandler(handler) {
4173
4178
  await __classPrivateFieldGet$d(this, _NeighbourhoodProxy_client, "f").addSignalHandler(__classPrivateFieldGet$d(this, _NeighbourhoodProxy_pID, "f"), handler);
@@ -4178,13 +4183,13 @@ class NeighbourhoodProxy {
4178
4183
  }
4179
4184
  _NeighbourhoodProxy_client = new WeakMap(), _NeighbourhoodProxy_pID = new WeakMap();
4180
4185
 
4181
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4186
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4182
4187
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4183
4188
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4184
4189
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4185
4190
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4186
4191
  };
4187
- var __metadata$8 = (undefined && undefined.__metadata) || function (k, v) {
4192
+ var __metadata$9 = (undefined && undefined.__metadata) || function (k, v) {
4188
4193
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4189
4194
  };
4190
4195
  let LinkQuery = class LinkQuery {
@@ -4226,34 +4231,34 @@ let LinkQuery = class LinkQuery {
4226
4231
  return true;
4227
4232
  }
4228
4233
  };
4229
- __decorate$8([
4234
+ __decorate$9([
4230
4235
  Field(),
4231
- __metadata$8("design:type", String)
4236
+ __metadata$9("design:type", String)
4232
4237
  ], LinkQuery.prototype, "source", void 0);
4233
- __decorate$8([
4238
+ __decorate$9([
4234
4239
  Field(),
4235
- __metadata$8("design:type", String)
4240
+ __metadata$9("design:type", String)
4236
4241
  ], LinkQuery.prototype, "target", void 0);
4237
- __decorate$8([
4242
+ __decorate$9([
4238
4243
  Field(),
4239
- __metadata$8("design:type", String)
4244
+ __metadata$9("design:type", String)
4240
4245
  ], LinkQuery.prototype, "predicate", void 0);
4241
- __decorate$8([
4246
+ __decorate$9([
4242
4247
  Field(),
4243
- __metadata$8("design:type", Date)
4248
+ __metadata$9("design:type", Date)
4244
4249
  ], LinkQuery.prototype, "fromDate", void 0);
4245
- __decorate$8([
4250
+ __decorate$9([
4246
4251
  Field(),
4247
- __metadata$8("design:type", Date)
4252
+ __metadata$9("design:type", Date)
4248
4253
  ], LinkQuery.prototype, "untilDate", void 0);
4249
- __decorate$8([
4254
+ __decorate$9([
4250
4255
  Field(),
4251
- __metadata$8("design:type", Number)
4256
+ __metadata$9("design:type", Number)
4252
4257
  ], LinkQuery.prototype, "limit", void 0);
4253
- LinkQuery = __decorate$8([
4258
+ LinkQuery = __decorate$9([
4254
4259
  ObjectType(),
4255
4260
  InputType(),
4256
- __metadata$8("design:paramtypes", [Object])
4261
+ __metadata$9("design:paramtypes", [Object])
4257
4262
  ], LinkQuery);
4258
4263
 
4259
4264
  var __classPrivateFieldSet$c = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
@@ -6264,33 +6269,37 @@ class NeighbourhoodClient {
6264
6269
  }));
6265
6270
  return neighbourhoodSendSignalU;
6266
6271
  }
6267
- async sendBroadcast(perspectiveUUID, payload) {
6272
+ async sendBroadcast(perspectiveUUID, payload, loopback = false) {
6268
6273
  const { neighbourhoodSendBroadcast } = unwrapApolloResult(await __classPrivateFieldGet$6(this, _NeighbourhoodClient_apolloClient, "f").mutate({
6269
6274
  mutation: gql `mutation neighbourhoodSendBroadcast(
6270
6275
  $perspectiveUUID: String!,
6271
- $payload: PerspectiveInput!
6276
+ $payload: PerspectiveInput!,
6277
+ $loopback: Boolean
6272
6278
  ) {
6273
6279
  neighbourhoodSendBroadcast(
6274
6280
  perspectiveUUID: $perspectiveUUID,
6275
- payload: $payload
6281
+ payload: $payload,
6282
+ loopback: $loopback
6276
6283
  )
6277
6284
  }`,
6278
- variables: { perspectiveUUID, payload }
6285
+ variables: { perspectiveUUID, payload, loopback }
6279
6286
  }));
6280
6287
  return neighbourhoodSendBroadcast;
6281
6288
  }
6282
- async sendBroadcastU(perspectiveUUID, payload) {
6289
+ async sendBroadcastU(perspectiveUUID, payload, loopback = false) {
6283
6290
  const { neighbourhoodSendBroadcastU } = unwrapApolloResult(await __classPrivateFieldGet$6(this, _NeighbourhoodClient_apolloClient, "f").mutate({
6284
6291
  mutation: gql `mutation neighbourhoodSendBroadcastU(
6285
6292
  $perspectiveUUID: String!,
6286
- $payload: PerspectiveUnsignedInput!
6293
+ $payload: PerspectiveUnsignedInput!,
6294
+ $loopback: Boolean
6287
6295
  ) {
6288
6296
  neighbourhoodSendBroadcastU(
6289
6297
  perspectiveUUID: $perspectiveUUID,
6290
- payload: $payload
6298
+ payload: $payload,
6299
+ loopback: $loopback
6291
6300
  )
6292
6301
  }`,
6293
- variables: { perspectiveUUID, payload }
6302
+ variables: { perspectiveUUID, payload, loopback }
6294
6303
  }));
6295
6304
  return neighbourhoodSendBroadcastU;
6296
6305
  }
@@ -6610,6 +6619,36 @@ class RuntimeClient {
6610
6619
  }));
6611
6620
  return runtimeGrantNotification;
6612
6621
  }
6622
+ async exportDb(filePath) {
6623
+ const { runtimeExportDb } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
6624
+ mutation: gql `mutation runtimeExportDb($filePath: String!) {
6625
+ runtimeExportDb(filePath: $filePath)
6626
+ }`,
6627
+ variables: { filePath }
6628
+ }));
6629
+ return runtimeExportDb;
6630
+ }
6631
+ async importDb(filePath) {
6632
+ const { runtimeImportDb } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
6633
+ mutation: gql `mutation runtimeImportDb($filePath: String!) {
6634
+ runtimeImportDb(filePath: $filePath) {
6635
+ perspectives { total imported failed omitted errors }
6636
+ links { total imported failed omitted errors }
6637
+ expressions { total imported failed omitted errors }
6638
+ perspectiveDiffs { total imported failed omitted errors }
6639
+ notifications { total imported failed omitted errors }
6640
+ models { total imported failed omitted errors }
6641
+ defaultModels { total imported failed omitted errors }
6642
+ tasks { total imported failed omitted errors }
6643
+ friends { total imported failed omitted errors }
6644
+ trustedAgents { total imported failed omitted errors }
6645
+ knownLinkLanguages { total imported failed omitted errors }
6646
+ }
6647
+ }`,
6648
+ variables: { filePath }
6649
+ }));
6650
+ return runtimeImportDb;
6651
+ }
6613
6652
  async notifications() {
6614
6653
  const { runtimeNotifications } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").query({
6615
6654
  query: gql `query runtimeNotifications {
@@ -6636,6 +6675,24 @@ class RuntimeClient {
6636
6675
  }));
6637
6676
  return runtimeRemoveNotification;
6638
6677
  }
6678
+ async exportPerspective(uuid, filePath) {
6679
+ const { runtimeExportPerspective } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
6680
+ mutation: gql `mutation runtimeExportPerspective($perspectiveUuid: String!, $filePath: String!) {
6681
+ runtimeExportPerspective(perspectiveUuid: $perspectiveUuid, filePath: $filePath)
6682
+ }`,
6683
+ variables: { perspectiveUuid: uuid, filePath }
6684
+ }));
6685
+ return runtimeExportPerspective;
6686
+ }
6687
+ async importPerspective(filePath) {
6688
+ const { runtimeImportPerspective } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
6689
+ mutation: gql `mutation runtimeImportPerspective($filePath: String!) {
6690
+ runtimeImportPerspective(filePath: $filePath)
6691
+ }`,
6692
+ variables: { filePath }
6693
+ }));
6694
+ return runtimeImportPerspective;
6695
+ }
6639
6696
  addNotificationTriggeredCallback(cb) {
6640
6697
  __classPrivateFieldGet$5(this, _RuntimeClient_notificationTriggeredCallbacks, "f").push(cb);
6641
6698
  }
@@ -13835,13 +13892,13 @@ var pako = {
13835
13892
  constants: constants_1
13836
13893
  };
13837
13894
 
13838
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
13895
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
13839
13896
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13840
13897
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
13841
13898
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
13842
13899
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13843
13900
  };
13844
- var __metadata$7 = (undefined && undefined.__metadata) || function (k, v) {
13901
+ var __metadata$8 = (undefined && undefined.__metadata) || function (k, v) {
13845
13902
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
13846
13903
  };
13847
13904
  let AIPromptExamplesInput = class AIPromptExamplesInput {
@@ -13850,17 +13907,17 @@ let AIPromptExamplesInput = class AIPromptExamplesInput {
13850
13907
  this.output = output;
13851
13908
  }
13852
13909
  };
13853
- __decorate$7([
13910
+ __decorate$8([
13854
13911
  Field(),
13855
- __metadata$7("design:type", String)
13912
+ __metadata$8("design:type", String)
13856
13913
  ], AIPromptExamplesInput.prototype, "input", void 0);
13857
- __decorate$7([
13914
+ __decorate$8([
13858
13915
  Field(),
13859
- __metadata$7("design:type", String)
13916
+ __metadata$8("design:type", String)
13860
13917
  ], AIPromptExamplesInput.prototype, "output", void 0);
13861
- AIPromptExamplesInput = __decorate$7([
13918
+ AIPromptExamplesInput = __decorate$8([
13862
13919
  InputType(),
13863
- __metadata$7("design:paramtypes", [String, String])
13920
+ __metadata$8("design:paramtypes", [String, String])
13864
13921
  ], AIPromptExamplesInput);
13865
13922
  let AIPromptExamples = class AIPromptExamples {
13866
13923
  constructor(input, output) {
@@ -13868,17 +13925,17 @@ let AIPromptExamples = class AIPromptExamples {
13868
13925
  this.output = output;
13869
13926
  }
13870
13927
  };
13871
- __decorate$7([
13928
+ __decorate$8([
13872
13929
  Field(),
13873
- __metadata$7("design:type", String)
13930
+ __metadata$8("design:type", String)
13874
13931
  ], AIPromptExamples.prototype, "input", void 0);
13875
- __decorate$7([
13932
+ __decorate$8([
13876
13933
  Field(),
13877
- __metadata$7("design:type", String)
13934
+ __metadata$8("design:type", String)
13878
13935
  ], AIPromptExamples.prototype, "output", void 0);
13879
- AIPromptExamples = __decorate$7([
13936
+ AIPromptExamples = __decorate$8([
13880
13937
  ObjectType(),
13881
- __metadata$7("design:paramtypes", [String, String])
13938
+ __metadata$8("design:paramtypes", [String, String])
13882
13939
  ], AIPromptExamples);
13883
13940
  let AITaskInput = class AITaskInput {
13884
13941
  constructor(name, model_id, system_prompt, prompt_examples, metaData) {
@@ -13889,29 +13946,29 @@ let AITaskInput = class AITaskInput {
13889
13946
  this.metaData = metaData;
13890
13947
  }
13891
13948
  };
13892
- __decorate$7([
13949
+ __decorate$8([
13893
13950
  Field(),
13894
- __metadata$7("design:type", String)
13951
+ __metadata$8("design:type", String)
13895
13952
  ], AITaskInput.prototype, "name", void 0);
13896
- __decorate$7([
13953
+ __decorate$8([
13897
13954
  Field(),
13898
- __metadata$7("design:type", String)
13955
+ __metadata$8("design:type", String)
13899
13956
  ], AITaskInput.prototype, "modelId", void 0);
13900
- __decorate$7([
13957
+ __decorate$8([
13901
13958
  Field(),
13902
- __metadata$7("design:type", String)
13959
+ __metadata$8("design:type", String)
13903
13960
  ], AITaskInput.prototype, "systemPrompt", void 0);
13904
- __decorate$7([
13961
+ __decorate$8([
13905
13962
  Field(),
13906
- __metadata$7("design:type", Array)
13963
+ __metadata$8("design:type", Array)
13907
13964
  ], AITaskInput.prototype, "promptExamples", void 0);
13908
- __decorate$7([
13965
+ __decorate$8([
13909
13966
  Field(),
13910
- __metadata$7("design:type", String)
13967
+ __metadata$8("design:type", String)
13911
13968
  ], AITaskInput.prototype, "metaData", void 0);
13912
- AITaskInput = __decorate$7([
13969
+ AITaskInput = __decorate$8([
13913
13970
  InputType(),
13914
- __metadata$7("design:paramtypes", [String, String, String, Array, String])
13971
+ __metadata$8("design:paramtypes", [String, String, String, Array, String])
13915
13972
  ], AITaskInput);
13916
13973
  let AITask = class AITask {
13917
13974
  constructor(name, model_id, task_id, system_prompt, prompt_examples, metaData, created_at, updated_at) {
@@ -13925,41 +13982,41 @@ let AITask = class AITask {
13925
13982
  this.updatedAt = updated_at;
13926
13983
  }
13927
13984
  };
13928
- __decorate$7([
13985
+ __decorate$8([
13929
13986
  Field(),
13930
- __metadata$7("design:type", String)
13987
+ __metadata$8("design:type", String)
13931
13988
  ], AITask.prototype, "name", void 0);
13932
- __decorate$7([
13989
+ __decorate$8([
13933
13990
  Field(),
13934
- __metadata$7("design:type", String)
13991
+ __metadata$8("design:type", String)
13935
13992
  ], AITask.prototype, "modelId", void 0);
13936
- __decorate$7([
13993
+ __decorate$8([
13937
13994
  Field(),
13938
- __metadata$7("design:type", String)
13995
+ __metadata$8("design:type", String)
13939
13996
  ], AITask.prototype, "taskId", void 0);
13940
- __decorate$7([
13997
+ __decorate$8([
13941
13998
  Field(),
13942
- __metadata$7("design:type", String)
13999
+ __metadata$8("design:type", String)
13943
14000
  ], AITask.prototype, "systemPrompt", void 0);
13944
- __decorate$7([
14001
+ __decorate$8([
13945
14002
  Field(),
13946
- __metadata$7("design:type", Array)
14003
+ __metadata$8("design:type", Array)
13947
14004
  ], AITask.prototype, "promptExamples", void 0);
13948
- __decorate$7([
14005
+ __decorate$8([
13949
14006
  Field(),
13950
- __metadata$7("design:type", String)
14007
+ __metadata$8("design:type", String)
13951
14008
  ], AITask.prototype, "metaData", void 0);
13952
- __decorate$7([
14009
+ __decorate$8([
13953
14010
  Field(),
13954
- __metadata$7("design:type", String)
14011
+ __metadata$8("design:type", String)
13955
14012
  ], AITask.prototype, "createdAt", void 0);
13956
- __decorate$7([
14013
+ __decorate$8([
13957
14014
  Field(),
13958
- __metadata$7("design:type", String)
14015
+ __metadata$8("design:type", String)
13959
14016
  ], AITask.prototype, "updatedAt", void 0);
13960
- AITask = __decorate$7([
14017
+ AITask = __decorate$8([
13961
14018
  ObjectType(),
13962
- __metadata$7("design:paramtypes", [String, String, String, String, Array, String, String, String])
14019
+ __metadata$8("design:paramtypes", [String, String, String, String, Array, String, String, String])
13963
14020
  ], AITask);
13964
14021
  let AIModelLoadingStatus = class AIModelLoadingStatus {
13965
14022
  constructor(model, status, progress, downloaded, loaded) {
@@ -13970,29 +14027,29 @@ let AIModelLoadingStatus = class AIModelLoadingStatus {
13970
14027
  this.loaded = loaded;
13971
14028
  }
13972
14029
  };
13973
- __decorate$7([
14030
+ __decorate$8([
13974
14031
  Field(),
13975
- __metadata$7("design:type", String)
14032
+ __metadata$8("design:type", String)
13976
14033
  ], AIModelLoadingStatus.prototype, "model", void 0);
13977
- __decorate$7([
14034
+ __decorate$8([
13978
14035
  Field(),
13979
- __metadata$7("design:type", String)
14036
+ __metadata$8("design:type", String)
13980
14037
  ], AIModelLoadingStatus.prototype, "status", void 0);
13981
- __decorate$7([
14038
+ __decorate$8([
13982
14039
  Field(),
13983
- __metadata$7("design:type", Number)
14040
+ __metadata$8("design:type", Number)
13984
14041
  ], AIModelLoadingStatus.prototype, "progress", void 0);
13985
- __decorate$7([
14042
+ __decorate$8([
13986
14043
  Field(),
13987
- __metadata$7("design:type", Boolean)
14044
+ __metadata$8("design:type", Boolean)
13988
14045
  ], AIModelLoadingStatus.prototype, "downloaded", void 0);
13989
- __decorate$7([
14046
+ __decorate$8([
13990
14047
  Field(),
13991
- __metadata$7("design:type", Boolean)
14048
+ __metadata$8("design:type", Boolean)
13992
14049
  ], AIModelLoadingStatus.prototype, "loaded", void 0);
13993
- AIModelLoadingStatus = __decorate$7([
14050
+ AIModelLoadingStatus = __decorate$8([
13994
14051
  ObjectType(),
13995
- __metadata$7("design:paramtypes", [String, String, Number, Boolean, Boolean])
14052
+ __metadata$8("design:paramtypes", [String, String, Number, Boolean, Boolean])
13996
14053
  ], AIModelLoadingStatus);
13997
14054
 
13998
14055
  var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
@@ -14409,13 +14466,13 @@ var ExceptionType;
14409
14466
  ExceptionType["InstallNotificationRequest"] = "INSTALL_NOTIFICATION_REQUEST";
14410
14467
  })(ExceptionType || (ExceptionType = {}));
14411
14468
 
14412
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14469
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14413
14470
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14414
14471
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14415
14472
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14416
14473
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14417
14474
  };
14418
- var __metadata$6 = (undefined && undefined.__metadata) || function (k, v) {
14475
+ var __metadata$7 = (undefined && undefined.__metadata) || function (k, v) {
14419
14476
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14420
14477
  };
14421
14478
  // Expression address + unique Language ID = global expression URL
@@ -14425,17 +14482,17 @@ let ExpressionRef = class ExpressionRef {
14425
14482
  this.expression = expr;
14426
14483
  }
14427
14484
  };
14428
- __decorate$6([
14485
+ __decorate$7([
14429
14486
  Field(),
14430
- __metadata$6("design:type", LanguageRef)
14487
+ __metadata$7("design:type", LanguageRef)
14431
14488
  ], ExpressionRef.prototype, "language", void 0);
14432
- __decorate$6([
14489
+ __decorate$7([
14433
14490
  Field(),
14434
- __metadata$6("design:type", String)
14491
+ __metadata$7("design:type", String)
14435
14492
  ], ExpressionRef.prototype, "expression", void 0);
14436
- ExpressionRef = __decorate$6([
14493
+ ExpressionRef = __decorate$7([
14437
14494
  ObjectType(),
14438
- __metadata$6("design:paramtypes", [LanguageRef, String])
14495
+ __metadata$7("design:paramtypes", [LanguageRef, String])
14439
14496
  ], ExpressionRef);
14440
14497
  // Creates unique expression URI like this:
14441
14498
  // expr:Qm3490gfwe489hf34:Qm90ghjoaw4iehioefwe4ort
@@ -14474,43 +14531,43 @@ function parseExprUrl(url) {
14474
14531
  throw new Error("Couldn't parse string as expression URL or DID: " + url);
14475
14532
  }
14476
14533
 
14477
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14534
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14478
14535
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14479
14536
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14480
14537
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14481
14538
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14482
14539
  };
14483
- var __metadata$5 = (undefined && undefined.__metadata) || function (k, v) {
14540
+ var __metadata$6 = (undefined && undefined.__metadata) || function (k, v) {
14484
14541
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14485
14542
  };
14486
14543
  let InteractionParameter = class InteractionParameter {
14487
14544
  };
14488
- __decorate$5([
14545
+ __decorate$6([
14489
14546
  Field(),
14490
- __metadata$5("design:type", String)
14547
+ __metadata$6("design:type", String)
14491
14548
  ], InteractionParameter.prototype, "name", void 0);
14492
- __decorate$5([
14549
+ __decorate$6([
14493
14550
  Field(),
14494
- __metadata$5("design:type", String)
14551
+ __metadata$6("design:type", String)
14495
14552
  ], InteractionParameter.prototype, "type", void 0);
14496
- InteractionParameter = __decorate$5([
14553
+ InteractionParameter = __decorate$6([
14497
14554
  ObjectType()
14498
14555
  ], InteractionParameter);
14499
14556
  let InteractionMeta = class InteractionMeta {
14500
14557
  };
14501
- __decorate$5([
14558
+ __decorate$6([
14502
14559
  Field(),
14503
- __metadata$5("design:type", String)
14560
+ __metadata$6("design:type", String)
14504
14561
  ], InteractionMeta.prototype, "label", void 0);
14505
- __decorate$5([
14562
+ __decorate$6([
14506
14563
  Field(),
14507
- __metadata$5("design:type", String)
14564
+ __metadata$6("design:type", String)
14508
14565
  ], InteractionMeta.prototype, "name", void 0);
14509
- __decorate$5([
14566
+ __decorate$6([
14510
14567
  Field(),
14511
- __metadata$5("design:type", Array)
14568
+ __metadata$6("design:type", Array)
14512
14569
  ], InteractionMeta.prototype, "parameters", void 0);
14513
- InteractionMeta = __decorate$5([
14570
+ InteractionMeta = __decorate$6([
14514
14571
  ObjectType()
14515
14572
  ], InteractionMeta);
14516
14573
  let InteractionCall = class InteractionCall {
@@ -14522,122 +14579,122 @@ let InteractionCall = class InteractionCall {
14522
14579
  this.parametersStringified = JSON.stringify(parameters);
14523
14580
  }
14524
14581
  };
14525
- __decorate$5([
14582
+ __decorate$6([
14526
14583
  Field(),
14527
- __metadata$5("design:type", String)
14584
+ __metadata$6("design:type", String)
14528
14585
  ], InteractionCall.prototype, "name", void 0);
14529
- __decorate$5([
14586
+ __decorate$6([
14530
14587
  Field(),
14531
- __metadata$5("design:type", String)
14588
+ __metadata$6("design:type", String)
14532
14589
  ], InteractionCall.prototype, "parametersStringified", void 0);
14533
- InteractionCall = __decorate$5([
14590
+ InteractionCall = __decorate$6([
14534
14591
  InputType(),
14535
- __metadata$5("design:paramtypes", [String, Object])
14592
+ __metadata$6("design:paramtypes", [String, Object])
14536
14593
  ], InteractionCall);
14537
14594
  let OnlineAgent = class OnlineAgent {
14538
14595
  };
14539
- __decorate$5([
14596
+ __decorate$6([
14540
14597
  Field(),
14541
- __metadata$5("design:type", String)
14598
+ __metadata$6("design:type", String)
14542
14599
  ], OnlineAgent.prototype, "did", void 0);
14543
- __decorate$5([
14600
+ __decorate$6([
14544
14601
  Field(),
14545
- __metadata$5("design:type", PerspectiveExpression)
14602
+ __metadata$6("design:type", PerspectiveExpression)
14546
14603
  ], OnlineAgent.prototype, "status", void 0);
14547
- OnlineAgent = __decorate$5([
14604
+ OnlineAgent = __decorate$6([
14548
14605
  ObjectType()
14549
14606
  ], OnlineAgent);
14550
14607
 
14551
14608
  class Dna {
14552
14609
  }
14553
14610
 
14554
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14611
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14555
14612
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14556
14613
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14557
14614
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14558
14615
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14559
14616
  };
14560
- var __metadata$4 = (undefined && undefined.__metadata) || function (k, v) {
14617
+ var __metadata$5 = (undefined && undefined.__metadata) || function (k, v) {
14561
14618
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14562
14619
  };
14563
14620
  let LanguageHandle = class LanguageHandle {
14564
14621
  };
14565
- __decorate$4([
14622
+ __decorate$5([
14566
14623
  Field(),
14567
- __metadata$4("design:type", String)
14624
+ __metadata$5("design:type", String)
14568
14625
  ], LanguageHandle.prototype, "name", void 0);
14569
- __decorate$4([
14626
+ __decorate$5([
14570
14627
  Field(),
14571
- __metadata$4("design:type", String)
14628
+ __metadata$5("design:type", String)
14572
14629
  ], LanguageHandle.prototype, "address", void 0);
14573
- __decorate$4([
14630
+ __decorate$5([
14574
14631
  Field(),
14575
- __metadata$4("design:type", String)
14632
+ __metadata$5("design:type", String)
14576
14633
  ], LanguageHandle.prototype, "settings", void 0);
14577
- __decorate$4([
14634
+ __decorate$5([
14578
14635
  Field(),
14579
- __metadata$4("design:type", Icon)
14636
+ __metadata$5("design:type", Icon)
14580
14637
  ], LanguageHandle.prototype, "icon", void 0);
14581
- __decorate$4([
14638
+ __decorate$5([
14582
14639
  Field(),
14583
- __metadata$4("design:type", Icon)
14640
+ __metadata$5("design:type", Icon)
14584
14641
  ], LanguageHandle.prototype, "constructorIcon", void 0);
14585
- __decorate$4([
14642
+ __decorate$5([
14586
14643
  Field(),
14587
- __metadata$4("design:type", Icon)
14644
+ __metadata$5("design:type", Icon)
14588
14645
  ], LanguageHandle.prototype, "settingsIcon", void 0);
14589
- LanguageHandle = __decorate$4([
14646
+ LanguageHandle = __decorate$5([
14590
14647
  ObjectType()
14591
14648
  ], LanguageHandle);
14592
14649
 
14593
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14650
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14594
14651
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14595
14652
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14596
14653
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14597
14654
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14598
14655
  };
14599
- var __metadata$3 = (undefined && undefined.__metadata) || function (k, v) {
14656
+ var __metadata$4 = (undefined && undefined.__metadata) || function (k, v) {
14600
14657
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14601
14658
  };
14602
14659
  let LanguageMeta = class LanguageMeta {
14603
14660
  };
14604
- __decorate$3([
14661
+ __decorate$4([
14605
14662
  Field(),
14606
- __metadata$3("design:type", String)
14663
+ __metadata$4("design:type", String)
14607
14664
  ], LanguageMeta.prototype, "name", void 0);
14608
- __decorate$3([
14665
+ __decorate$4([
14609
14666
  Field(),
14610
- __metadata$3("design:type", String)
14667
+ __metadata$4("design:type", String)
14611
14668
  ], LanguageMeta.prototype, "address", void 0);
14612
- __decorate$3([
14669
+ __decorate$4([
14613
14670
  Field(),
14614
- __metadata$3("design:type", String)
14671
+ __metadata$4("design:type", String)
14615
14672
  ], LanguageMeta.prototype, "description", void 0);
14616
- __decorate$3([
14673
+ __decorate$4([
14617
14674
  Field(),
14618
- __metadata$3("design:type", String)
14675
+ __metadata$4("design:type", String)
14619
14676
  ], LanguageMeta.prototype, "author", void 0);
14620
- __decorate$3([
14677
+ __decorate$4([
14621
14678
  Field(),
14622
- __metadata$3("design:type", Boolean)
14679
+ __metadata$4("design:type", Boolean)
14623
14680
  ], LanguageMeta.prototype, "templated", void 0);
14624
- __decorate$3([
14681
+ __decorate$4([
14625
14682
  Field(),
14626
- __metadata$3("design:type", String)
14683
+ __metadata$4("design:type", String)
14627
14684
  ], LanguageMeta.prototype, "templateSourceLanguageAddress", void 0);
14628
- __decorate$3([
14685
+ __decorate$4([
14629
14686
  Field(),
14630
- __metadata$3("design:type", String)
14687
+ __metadata$4("design:type", String)
14631
14688
  ], LanguageMeta.prototype, "templateAppliedParams", void 0);
14632
- __decorate$3([
14689
+ __decorate$4([
14633
14690
  Field(),
14634
- __metadata$3("design:type", Array)
14691
+ __metadata$4("design:type", Array)
14635
14692
  ], LanguageMeta.prototype, "possibleTemplateParams", void 0);
14636
- __decorate$3([
14693
+ __decorate$4([
14637
14694
  Field(),
14638
- __metadata$3("design:type", String)
14695
+ __metadata$4("design:type", String)
14639
14696
  ], LanguageMeta.prototype, "sourceCodeLink", void 0);
14640
- LanguageMeta = __decorate$3([
14697
+ LanguageMeta = __decorate$4([
14641
14698
  ObjectType()
14642
14699
  ], LanguageMeta);
14643
14700
  let LanguageMetaInput = class LanguageMetaInput {
@@ -14648,25 +14705,25 @@ let LanguageMetaInput = class LanguageMetaInput {
14648
14705
  this.description = "";
14649
14706
  }
14650
14707
  };
14651
- __decorate$3([
14708
+ __decorate$4([
14652
14709
  Field(),
14653
- __metadata$3("design:type", String)
14710
+ __metadata$4("design:type", String)
14654
14711
  ], LanguageMetaInput.prototype, "name", void 0);
14655
- __decorate$3([
14712
+ __decorate$4([
14656
14713
  Field(),
14657
- __metadata$3("design:type", String)
14714
+ __metadata$4("design:type", String)
14658
14715
  ], LanguageMetaInput.prototype, "description", void 0);
14659
- __decorate$3([
14716
+ __decorate$4([
14660
14717
  Field(),
14661
- __metadata$3("design:type", Array)
14718
+ __metadata$4("design:type", Array)
14662
14719
  ], LanguageMetaInput.prototype, "possibleTemplateParams", void 0);
14663
- __decorate$3([
14720
+ __decorate$4([
14664
14721
  Field(),
14665
- __metadata$3("design:type", String)
14722
+ __metadata$4("design:type", String)
14666
14723
  ], LanguageMetaInput.prototype, "sourceCodeLink", void 0);
14667
- LanguageMetaInput = __decorate$3([
14724
+ LanguageMetaInput = __decorate$4([
14668
14725
  InputType(),
14669
- __metadata$3("design:paramtypes", [String, String])
14726
+ __metadata$4("design:paramtypes", [String, String])
14670
14727
  ], LanguageMetaInput);
14671
14728
  class LanguageMetaInternal {
14672
14729
  }
@@ -14675,13 +14732,13 @@ class LanguageExpression extends ExpressionGeneric() {
14675
14732
  class LanguageLanguageInput {
14676
14733
  }
14677
14734
 
14678
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14735
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14679
14736
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14680
14737
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14681
14738
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14682
14739
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14683
14740
  };
14684
- var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
14741
+ var __metadata$3 = (undefined && undefined.__metadata) || function (k, v) {
14685
14742
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14686
14743
  };
14687
14744
  let Neighbourhood = class Neighbourhood {
@@ -14690,31 +14747,31 @@ let Neighbourhood = class Neighbourhood {
14690
14747
  this.meta = meta;
14691
14748
  }
14692
14749
  };
14693
- __decorate$2([
14750
+ __decorate$3([
14694
14751
  Field(),
14695
- __metadata$2("design:type", String)
14752
+ __metadata$3("design:type", String)
14696
14753
  ], Neighbourhood.prototype, "linkLanguage", void 0);
14697
- __decorate$2([
14754
+ __decorate$3([
14698
14755
  Field(),
14699
- __metadata$2("design:type", Perspective)
14756
+ __metadata$3("design:type", Perspective)
14700
14757
  ], Neighbourhood.prototype, "meta", void 0);
14701
- Neighbourhood = __decorate$2([
14758
+ Neighbourhood = __decorate$3([
14702
14759
  ObjectType(),
14703
- __metadata$2("design:paramtypes", [String, Perspective])
14760
+ __metadata$3("design:paramtypes", [String, Perspective])
14704
14761
  ], Neighbourhood);
14705
14762
  let NeighbourhoodExpression = class NeighbourhoodExpression extends ExpressionGeneric() {
14706
14763
  };
14707
- NeighbourhoodExpression = __decorate$2([
14764
+ NeighbourhoodExpression = __decorate$3([
14708
14765
  ObjectType()
14709
14766
  ], NeighbourhoodExpression);
14710
14767
 
14711
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14768
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14712
14769
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14713
14770
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14714
14771
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14715
14772
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14716
14773
  };
14717
- var __metadata$1 = (undefined && undefined.__metadata) || function (k, v) {
14774
+ var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
14718
14775
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14719
14776
  };
14720
14777
  var PerspectiveState;
@@ -14741,56 +14798,56 @@ let PerspectiveHandle = class PerspectiveHandle {
14741
14798
  }
14742
14799
  }
14743
14800
  };
14744
- __decorate$1([
14801
+ __decorate$2([
14745
14802
  Field(),
14746
- __metadata$1("design:type", String)
14803
+ __metadata$2("design:type", String)
14747
14804
  ], PerspectiveHandle.prototype, "uuid", void 0);
14748
- __decorate$1([
14805
+ __decorate$2([
14749
14806
  Field(),
14750
- __metadata$1("design:type", String)
14807
+ __metadata$2("design:type", String)
14751
14808
  ], PerspectiveHandle.prototype, "name", void 0);
14752
- __decorate$1([
14809
+ __decorate$2([
14753
14810
  Field(),
14754
- __metadata$1("design:type", String)
14811
+ __metadata$2("design:type", String)
14755
14812
  ], PerspectiveHandle.prototype, "state", void 0);
14756
- __decorate$1([
14813
+ __decorate$2([
14757
14814
  Field(),
14758
- __metadata$1("design:type", String)
14815
+ __metadata$2("design:type", String)
14759
14816
  ], PerspectiveHandle.prototype, "sharedUrl", void 0);
14760
- __decorate$1([
14817
+ __decorate$2([
14761
14818
  Field(),
14762
- __metadata$1("design:type", NeighbourhoodExpression)
14819
+ __metadata$2("design:type", NeighbourhoodExpression)
14763
14820
  ], PerspectiveHandle.prototype, "neighbourhood", void 0);
14764
- PerspectiveHandle = __decorate$1([
14821
+ PerspectiveHandle = __decorate$2([
14765
14822
  ObjectType(),
14766
- __metadata$1("design:paramtypes", [String, String, String])
14823
+ __metadata$2("design:paramtypes", [String, String, String])
14767
14824
  ], PerspectiveHandle);
14768
14825
 
14769
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14826
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14770
14827
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14771
14828
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14772
14829
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14773
14830
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14774
14831
  };
14775
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
14832
+ var __metadata$1 = (undefined && undefined.__metadata) || function (k, v) {
14776
14833
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14777
14834
  };
14778
14835
  let PerspectiveDiff = class PerspectiveDiff {
14779
14836
  };
14780
- __decorate([
14837
+ __decorate$1([
14781
14838
  Field(),
14782
- __metadata("design:type", Array)
14839
+ __metadata$1("design:type", Array)
14783
14840
  ], PerspectiveDiff.prototype, "additions", void 0);
14784
- __decorate([
14841
+ __decorate$1([
14785
14842
  Field(),
14786
- __metadata("design:type", Array)
14843
+ __metadata$1("design:type", Array)
14787
14844
  ], PerspectiveDiff.prototype, "removals", void 0);
14788
- PerspectiveDiff = __decorate([
14845
+ PerspectiveDiff = __decorate$1([
14789
14846
  ObjectType()
14790
14847
  ], PerspectiveDiff);
14791
14848
  let PerspectiveDiffExpression = class PerspectiveDiffExpression extends ExpressionGeneric() {
14792
14849
  };
14793
- PerspectiveDiffExpression = __decorate([
14850
+ PerspectiveDiffExpression = __decorate$1([
14794
14851
  ObjectType()
14795
14852
  ], PerspectiveDiffExpression);
14796
14853
 
@@ -15552,8 +15609,8 @@ type Mutation {
15552
15609
  languageWriteSettings(languageAddress: String!, settings: String!): Boolean!
15553
15610
  neighbourhoodJoinFromUrl(url: String!): PerspectiveHandle!
15554
15611
  neighbourhoodPublishFromPerspective(linkLanguage: String!, meta: PerspectiveInput!, perspectiveUUID: String!): String!
15555
- neighbourhoodSendBroadcast(payload: PerspectiveInput!, perspectiveUUID: String!): Boolean!
15556
- neighbourhoodSendBroadcastU(payload: PerspectiveUnsignedInput!, perspectiveUUID: String!): Boolean!
15612
+ neighbourhoodSendBroadcast(loopback: Boolean, payload: PerspectiveInput!, perspectiveUUID: String!): Boolean!
15613
+ neighbourhoodSendBroadcastU(loopback: Boolean, payload: PerspectiveUnsignedInput!, perspectiveUUID: String!): Boolean!
15557
15614
  neighbourhoodSendSignal(payload: PerspectiveInput!, perspectiveUUID: String!, remoteAgentDid: String!): Boolean!
15558
15615
  neighbourhoodSendSignalU(payload: PerspectiveUnsignedInput!, perspectiveUUID: String!, remoteAgentDid: String!): Boolean!
15559
15616
  neighbourhoodSetOnlineStatus(perspectiveUUID: String!, status: PerspectiveInput!): Boolean!
@@ -15575,9 +15632,13 @@ type Mutation {
15575
15632
  perspectiveUpdateLink(newLink: LinkInput!, oldLink: LinkExpressionInput!, uuid: String!): LinkExpression!
15576
15633
  runtimeAddFriends(dids: [String!]!): [String!]!
15577
15634
  runtimeAddKnownLinkLanguageTemplates(addresses: [String!]!): [String!]!
15635
+ runtimeExportDb(filePath: String!): Boolean!
15636
+ runtimeExportPerspective(filePath: String!, perspectiveUuid: String!): Boolean!
15578
15637
  runtimeFriendSendMessage(did: String!, message: PerspectiveInput!): Boolean!
15579
15638
  runtimeGrantNotification(id: String!): Boolean!
15580
15639
  runtimeHcAddAgentInfos(agentInfos: String!): Boolean!
15640
+ runtimeImportDb(filePath: String!): Boolean!
15641
+ runtimeImportPerspective(filePath: String!): Boolean!
15581
15642
  runtimeOpenLink(url: String!): Boolean!
15582
15643
  runtimeQuit: Boolean!
15583
15644
  runtimeRemoveFriends(dids: [String!]!): [String!]!
@@ -16067,4 +16128,627 @@ class SubjectEntity {
16067
16128
  }
16068
16129
  _SubjectEntity_baseExpression = new WeakMap(), _SubjectEntity_subjectClass = new WeakMap(), _SubjectEntity_source = new WeakMap(), _SubjectEntity_perspective = new WeakMap();
16069
16130
 
16070
- export { AIClient, AIModelLoadingStatus, AIPromptExamples, AIPromptExamplesInput, AITask, AITaskInput, Ad4mClient, Agent, AgentClient, AgentExpression, AgentSignature, AgentStatus, Apps, AuthInfo, AuthInfoInput, Capability, CapabilityInput, Dna, EntanglementProof, EntanglementProofInput, ExceptionType, Expression, ExpressionGeneric, ExpressionGenericInput, ExpressionProof, ExpressionProofInput, ExpressionRef, ExpressionRendered, Icon, InstanceQuery, InteractionCall, InteractionMeta, InteractionParameter, LanguageExpression, LanguageHandle, LanguageLanguageInput, LanguageMeta, LanguageMetaInput, LanguageMetaInternal, LanguageRef, Link, LinkExpression, LinkExpressionInput, LinkExpressionMutations, LinkExpressionUpdated, LinkInput, LinkMutations, LinkQuery, Literal, Neighbourhood, NeighbourhoodExpression, NeighbourhoodProxy, OnlineAgent, Perspective, PerspectiveAction, PerspectiveDiff, PerspectiveDiffExpression, PerspectiveExpression, PerspectiveHandle, PerspectiveInput, PerspectiveProxy, PerspectiveState, PerspectiveUnsignedInput, Resource, ResourceInput, SDNAClass, SMART_LITERAL_CONTENT_PREDICATE, SmartLiteral, Subject, SubjectCollection, SubjectEntity, SubjectFlag, SubjectProperty, addLink, capSentence, exprRef2String, formatList, hasLink, isExpression, isLink, linkEqual, makeRandomPrologAtom, parseExprUrl, typeDefsString };
16131
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16132
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16133
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16134
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16135
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16136
+ };
16137
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
16138
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
16139
+ };
16140
+ var __param = (undefined && undefined.__param) || function (paramIndex, decorator) {
16141
+ return function (target, key) { decorator(target, key, paramIndex); }
16142
+ };
16143
+ const testLink = new LinkExpression();
16144
+ testLink.author = "did:ad4m:test";
16145
+ testLink.timestamp = Date.now();
16146
+ testLink.data = {
16147
+ source: 'root',
16148
+ target: 'neighbourhood://Qm12345'
16149
+ };
16150
+ testLink.proof = {
16151
+ signature: '',
16152
+ key: '',
16153
+ valid: true
16154
+ };
16155
+ const testPerspectiveExpression = new PerspectiveExpression();
16156
+ testPerspectiveExpression.author = 'did:ad4m:test';
16157
+ testPerspectiveExpression.timestamp = Date.now().toString();
16158
+ testPerspectiveExpression.proof = new ExpressionProof('', '');
16159
+ testPerspectiveExpression.data = new Perspective([testLink]);
16160
+ let SentMessage = class SentMessage {
16161
+ };
16162
+ __decorate([
16163
+ Field(),
16164
+ __metadata("design:type", String)
16165
+ ], SentMessage.prototype, "recipient", void 0);
16166
+ __decorate([
16167
+ Field(),
16168
+ __metadata("design:type", PerspectiveExpression)
16169
+ ], SentMessage.prototype, "message", void 0);
16170
+ SentMessage = __decorate([
16171
+ ObjectType()
16172
+ ], SentMessage);
16173
+ let RuntimeInfo = class RuntimeInfo {
16174
+ };
16175
+ __decorate([
16176
+ Field(),
16177
+ __metadata("design:type", String)
16178
+ ], RuntimeInfo.prototype, "ad4mExecutorVersion", void 0);
16179
+ __decorate([
16180
+ Field(),
16181
+ __metadata("design:type", Boolean)
16182
+ ], RuntimeInfo.prototype, "isInitialized", void 0);
16183
+ __decorate([
16184
+ Field(),
16185
+ __metadata("design:type", Boolean)
16186
+ ], RuntimeInfo.prototype, "isUnlocked", void 0);
16187
+ RuntimeInfo = __decorate([
16188
+ ObjectType()
16189
+ ], RuntimeInfo);
16190
+ let ExceptionInfo = class ExceptionInfo {
16191
+ };
16192
+ __decorate([
16193
+ Field(),
16194
+ __metadata("design:type", String)
16195
+ ], ExceptionInfo.prototype, "title", void 0);
16196
+ __decorate([
16197
+ Field(),
16198
+ __metadata("design:type", String)
16199
+ ], ExceptionInfo.prototype, "message", void 0);
16200
+ __decorate([
16201
+ Field(),
16202
+ __metadata("design:type", String)
16203
+ ], ExceptionInfo.prototype, "type", void 0);
16204
+ __decorate([
16205
+ Field(),
16206
+ __metadata("design:type", String)
16207
+ ], ExceptionInfo.prototype, "addon", void 0);
16208
+ ExceptionInfo = __decorate([
16209
+ ObjectType()
16210
+ ], ExceptionInfo);
16211
+ // This class defines a Notification and is what an app provides
16212
+ // when registering and installing a notification.
16213
+ let NotificationInput = class NotificationInput {
16214
+ };
16215
+ __decorate([
16216
+ Field(),
16217
+ __metadata("design:type", String)
16218
+ ], NotificationInput.prototype, "description", void 0);
16219
+ __decorate([
16220
+ Field(),
16221
+ __metadata("design:type", String)
16222
+ ], NotificationInput.prototype, "appName", void 0);
16223
+ __decorate([
16224
+ Field(),
16225
+ __metadata("design:type", String)
16226
+ ], NotificationInput.prototype, "appUrl", void 0);
16227
+ __decorate([
16228
+ Field(),
16229
+ __metadata("design:type", String)
16230
+ ], NotificationInput.prototype, "appIconPath", void 0);
16231
+ __decorate([
16232
+ Field(),
16233
+ __metadata("design:type", String)
16234
+ ], NotificationInput.prototype, "trigger", void 0);
16235
+ __decorate([
16236
+ Field(),
16237
+ __metadata("design:type", Array)
16238
+ ], NotificationInput.prototype, "perspectiveIds", void 0);
16239
+ __decorate([
16240
+ Field(),
16241
+ __metadata("design:type", String)
16242
+ ], NotificationInput.prototype, "webhookUrl", void 0);
16243
+ __decorate([
16244
+ Field(),
16245
+ __metadata("design:type", String)
16246
+ ], NotificationInput.prototype, "webhookAuth", void 0);
16247
+ NotificationInput = __decorate([
16248
+ InputType()
16249
+ ], NotificationInput);
16250
+ // This is a notification as it is stored in the runtime.
16251
+ // Above definition plus ID and granted flag.
16252
+ let Notification = class Notification {
16253
+ };
16254
+ __decorate([
16255
+ Field(),
16256
+ __metadata("design:type", String)
16257
+ ], Notification.prototype, "id", void 0);
16258
+ __decorate([
16259
+ Field(),
16260
+ __metadata("design:type", Boolean)
16261
+ ], Notification.prototype, "granted", void 0);
16262
+ __decorate([
16263
+ Field(),
16264
+ __metadata("design:type", String)
16265
+ ], Notification.prototype, "description", void 0);
16266
+ __decorate([
16267
+ Field(),
16268
+ __metadata("design:type", String)
16269
+ ], Notification.prototype, "appName", void 0);
16270
+ __decorate([
16271
+ Field(),
16272
+ __metadata("design:type", String)
16273
+ ], Notification.prototype, "appUrl", void 0);
16274
+ __decorate([
16275
+ Field(),
16276
+ __metadata("design:type", String)
16277
+ ], Notification.prototype, "appIconPath", void 0);
16278
+ __decorate([
16279
+ Field(),
16280
+ __metadata("design:type", String)
16281
+ ], Notification.prototype, "trigger", void 0);
16282
+ __decorate([
16283
+ Field(),
16284
+ __metadata("design:type", Array)
16285
+ ], Notification.prototype, "perspectiveIds", void 0);
16286
+ __decorate([
16287
+ Field(),
16288
+ __metadata("design:type", String)
16289
+ ], Notification.prototype, "webhookUrl", void 0);
16290
+ __decorate([
16291
+ Field(),
16292
+ __metadata("design:type", String)
16293
+ ], Notification.prototype, "webhookAuth", void 0);
16294
+ Notification = __decorate([
16295
+ ObjectType()
16296
+ ], Notification);
16297
+ // This is what is sent to the launcher and the webhook.
16298
+ let TriggeredNotification = class TriggeredNotification {
16299
+ };
16300
+ __decorate([
16301
+ Field(),
16302
+ __metadata("design:type", Notification)
16303
+ ], TriggeredNotification.prototype, "notification", void 0);
16304
+ __decorate([
16305
+ Field(),
16306
+ __metadata("design:type", String)
16307
+ ], TriggeredNotification.prototype, "perspectiveId", void 0);
16308
+ __decorate([
16309
+ Field(),
16310
+ __metadata("design:type", String)
16311
+ ], TriggeredNotification.prototype, "triggerMatch", void 0);
16312
+ TriggeredNotification = __decorate([
16313
+ ObjectType()
16314
+ ], TriggeredNotification);
16315
+ let ImportStats = class ImportStats {
16316
+ };
16317
+ __decorate([
16318
+ Field(),
16319
+ __metadata("design:type", Number)
16320
+ ], ImportStats.prototype, "total", void 0);
16321
+ __decorate([
16322
+ Field(),
16323
+ __metadata("design:type", Number)
16324
+ ], ImportStats.prototype, "imported", void 0);
16325
+ __decorate([
16326
+ Field(),
16327
+ __metadata("design:type", Number)
16328
+ ], ImportStats.prototype, "failed", void 0);
16329
+ __decorate([
16330
+ Field(),
16331
+ __metadata("design:type", Number)
16332
+ ], ImportStats.prototype, "omitted", void 0);
16333
+ __decorate([
16334
+ Field(),
16335
+ __metadata("design:type", Array)
16336
+ ], ImportStats.prototype, "errors", void 0);
16337
+ ImportStats = __decorate([
16338
+ ObjectType()
16339
+ ], ImportStats);
16340
+ let ImportResult = class ImportResult {
16341
+ };
16342
+ __decorate([
16343
+ Field(),
16344
+ __metadata("design:type", ImportStats)
16345
+ ], ImportResult.prototype, "perspectives", void 0);
16346
+ __decorate([
16347
+ Field(),
16348
+ __metadata("design:type", ImportStats)
16349
+ ], ImportResult.prototype, "links", void 0);
16350
+ __decorate([
16351
+ Field(),
16352
+ __metadata("design:type", ImportStats)
16353
+ ], ImportResult.prototype, "expressions", void 0);
16354
+ __decorate([
16355
+ Field(),
16356
+ __metadata("design:type", ImportStats)
16357
+ ], ImportResult.prototype, "perspectiveDiffs", void 0);
16358
+ __decorate([
16359
+ Field(),
16360
+ __metadata("design:type", ImportStats)
16361
+ ], ImportResult.prototype, "notifications", void 0);
16362
+ __decorate([
16363
+ Field(),
16364
+ __metadata("design:type", ImportStats)
16365
+ ], ImportResult.prototype, "models", void 0);
16366
+ __decorate([
16367
+ Field(),
16368
+ __metadata("design:type", ImportStats)
16369
+ ], ImportResult.prototype, "defaultModels", void 0);
16370
+ __decorate([
16371
+ Field(),
16372
+ __metadata("design:type", ImportStats)
16373
+ ], ImportResult.prototype, "tasks", void 0);
16374
+ __decorate([
16375
+ Field(),
16376
+ __metadata("design:type", ImportStats)
16377
+ ], ImportResult.prototype, "friends", void 0);
16378
+ __decorate([
16379
+ Field(),
16380
+ __metadata("design:type", ImportStats)
16381
+ ], ImportResult.prototype, "trustedAgents", void 0);
16382
+ __decorate([
16383
+ Field(),
16384
+ __metadata("design:type", ImportStats)
16385
+ ], ImportResult.prototype, "knownLinkLanguages", void 0);
16386
+ ImportResult = __decorate([
16387
+ ObjectType()
16388
+ ], ImportResult);
16389
+ /**
16390
+ * Resolver classes are used here to define the GraphQL schema
16391
+ * (through the type-graphql annotations)
16392
+ * and are spawned in the client tests in Ad4mClient.test.ts.
16393
+ * For the latter, they return test fixtures.
16394
+ */
16395
+ let RuntimeResolver = class RuntimeResolver {
16396
+ runtimeQuit() {
16397
+ return true;
16398
+ }
16399
+ runtimeOpenLink(url) {
16400
+ return true;
16401
+ }
16402
+ runtimeInfo() {
16403
+ return {
16404
+ ad4mExecutorVersion: "x.x.x",
16405
+ isInitialized: true,
16406
+ isUnlocked: true
16407
+ };
16408
+ }
16409
+ addTrustedAgents(agents) {
16410
+ return agents;
16411
+ }
16412
+ deleteTrustedAgents(agents) {
16413
+ return [];
16414
+ }
16415
+ getTrustedAgents() {
16416
+ return ["agentPubKey"];
16417
+ }
16418
+ runtimeKnownLinkLanguageTemplates() {
16419
+ return ["Qm12345abcdef"];
16420
+ }
16421
+ runtimeAddKnownLinkLanguageTemplates(addresses) {
16422
+ return addresses;
16423
+ }
16424
+ runtimeRemoveKnownLinkLanguageTemplates(addresses) {
16425
+ return [];
16426
+ }
16427
+ runtimeFriends() {
16428
+ return ["did:test:friend"];
16429
+ }
16430
+ runtimeAddFriends(dids) {
16431
+ return dids;
16432
+ }
16433
+ runtimeRemoveFriends(dids) {
16434
+ return [];
16435
+ }
16436
+ runtimeHcAgentInfos() {
16437
+ return JSON.stringify([{ "agent": { "type": "Buffer", "data": [9, 191, 231, 58, 255, 107, 202, 55, 206, 57, 9, 103, 17, 34, 206, 195, 207, 114, 5, 73, 77, 198, 56, 136, 17, 227, 242, 231, 194, 135, 128, 48, 170, 189, 119, 186] }, "signature": { "type": "Buffer", "data": [195, 143, 170, 36, 234, 123, 255, 85, 188, 138, 124, 2, 91, 18, 53, 231, 44, 41, 240, 8, 80, 131, 100, 150, 165, 125, 146, 90, 17, 200, 190, 129, 114, 211, 11, 146, 150, 128, 198, 199, 79, 118, 157, 101, 194, 68, 58, 245, 98, 182, 79, 139, 140, 41, 143, 129, 8, 136, 87, 77, 180, 231, 218, 11] }, "agent_info": { "type": "Buffer", "data": [134, 165, 115, 112, 97, 99, 101, 196, 36, 203, 165, 212, 173, 24, 215, 165, 196, 25, 145, 248, 113, 246, 139, 205, 182, 241, 138, 57, 0, 26, 8, 217, 179, 23, 126, 59, 136, 128, 213, 110, 225, 173, 72, 197, 95, 165, 97, 103, 101, 110, 116, 196, 36, 9, 191, 231, 58, 255, 107, 202, 55, 206, 57, 9, 103, 17, 34, 206, 195, 207, 114, 5, 73, 77, 198, 56, 136, 17, 227, 242, 231, 194, 135, 128, 48, 170, 189, 119, 186, 164, 117, 114, 108, 115, 145, 217, 99, 107, 105, 116, 115, 117, 110, 101, 45, 112, 114, 111, 120, 121, 58, 47, 47, 101, 83, 52, 86, 112, 54, 109, 118, 80, 48, 122, 116, 85, 101, 104, 114, 117, 113, 89, 52, 102, 66, 53, 101, 69, 98, 121, 48, 69, 66, 100, 89, 84, 50, 95, 67, 48, 69, 112, 77, 111, 76, 111, 47, 107, 105, 116, 115, 117, 110, 101, 45, 113, 117, 105, 99, 47, 104, 47, 49, 57, 50, 46, 49, 54, 56, 46, 49, 55, 56, 46, 54, 48, 47, 112, 47, 55, 55, 52, 52, 47, 45, 45, 172, 115, 105, 103, 110, 101, 100, 95, 97, 116, 95, 109, 115, 207, 0, 0, 1, 123, 233, 104, 189, 50, 176, 101, 120, 112, 105, 114, 101, 115, 95, 97, 102, 116, 101, 114, 95, 109, 115, 206, 0, 18, 79, 128, 169, 109, 101, 116, 97, 95, 105, 110, 102, 111, 196, 34, 129, 187, 100, 104, 116, 95, 115, 116, 111, 114, 97, 103, 101, 95, 97, 114, 99, 95, 104, 97, 108, 102, 95, 108, 101, 110, 103, 116, 104, 206, 128, 0, 0, 1] } }, { "agent": { "type": "Buffer", "data": [98, 187, 145, 48, 115, 209, 94, 143, 31, 153, 102, 69, 138, 29, 133, 213, 34, 52, 39, 164, 157, 139, 178, 111, 23, 33, 118, 250, 28, 155, 78, 246, 128, 49, 179, 38] }, "signature": { "type": "Buffer", "data": [233, 192, 38, 3, 59, 248, 124, 231, 57, 255, 40, 154, 50, 60, 119, 252, 68, 198, 154, 109, 175, 155, 106, 217, 211, 155, 109, 223, 249, 91, 221, 210, 17, 132, 72, 230, 11, 230, 247, 119, 72, 244, 145, 91, 75, 7, 67, 5, 130, 151, 44, 231, 52, 220, 28, 154, 212, 82, 58, 90, 203, 211, 236, 4] }, "agent_info": { "type": "Buffer", "data": [134, 165, 115, 112, 97, 99, 101, 196, 36, 203, 165, 212, 173, 24, 215, 165, 196, 25, 145, 248, 113, 246, 139, 205, 182, 241, 138, 57, 0, 26, 8, 217, 179, 23, 126, 59, 136, 128, 213, 110, 225, 173, 72, 197, 95, 165, 97, 103, 101, 110, 116, 196, 36, 98, 187, 145, 48, 115, 209, 94, 143, 31, 153, 102, 69, 138, 29, 133, 213, 34, 52, 39, 164, 157, 139, 178, 111, 23, 33, 118, 250, 28, 155, 78, 246, 128, 49, 179, 38, 164, 117, 114, 108, 115, 145, 217, 99, 107, 105, 116, 115, 117, 110, 101, 45, 112, 114, 111, 120, 121, 58, 47, 47, 55, 101, 77, 106, 48, 73, 83, 72, 56, 56, 81, 56, 45, 89, 51, 74, 89, 70, 53, 76, 72, 57, 83, 54, 68, 119, 71, 73, 49, 88, 45, 115, 87, 53, 68, 104, 66, 87, 121, 71, 119, 78, 115, 47, 107, 105, 116, 115, 117, 110, 101, 45, 113, 117, 105, 99, 47, 104, 47, 49, 57, 50, 46, 49, 54, 56, 46, 49, 55, 56, 46, 54, 48, 47, 112, 47, 55, 55, 52, 52, 47, 45, 45, 172, 115, 105, 103, 110, 101, 100, 95, 97, 116, 95, 109, 115, 207, 0, 0, 1, 123, 233, 103, 45, 197, 176, 101, 120, 112, 105, 114, 101, 115, 95, 97, 102, 116, 101, 114, 95, 109, 115, 206, 0, 18, 79, 128, 169, 109, 101, 116, 97, 95, 105, 110, 102, 111, 196, 34, 129, 187, 100, 104, 116, 95, 115, 116, 111, 114, 97, 103, 101, 95, 97, 114, 99, 95, 104, 97, 108, 102, 95, 108, 101, 110, 103, 116, 104, 206, 128, 0, 0, 1] } }, { "agent": { "type": "Buffer", "data": [181, 101, 115, 45, 214, 127, 198, 153, 159, 184, 30, 87, 67, 224, 208, 184, 203, 176, 130, 158, 236, 127, 153, 125, 243, 183, 188, 167, 154, 25, 118, 254, 101, 145, 210, 109] }, "signature": { "type": "Buffer", "data": [88, 189, 229, 122, 44, 171, 194, 156, 90, 79, 148, 49, 207, 224, 34, 199, 219, 88, 24, 243, 103, 127, 123, 41, 87, 171, 127, 92, 6, 216, 198, 171, 26, 226, 237, 217, 122, 78, 98, 146, 55, 255, 68, 240, 202, 83, 58, 140, 147, 185, 3, 66, 15, 216, 210, 22, 99, 197, 73, 234, 120, 17, 74, 1] }, "agent_info": { "type": "Buffer", "data": [134, 165, 115, 112, 97, 99, 101, 196, 36, 203, 165, 212, 173, 24, 215, 165, 196, 25, 145, 248, 113, 246, 139, 205, 182, 241, 138, 57, 0, 26, 8, 217, 179, 23, 126, 59, 136, 128, 213, 110, 225, 173, 72, 197, 95, 165, 97, 103, 101, 110, 116, 196, 36, 181, 101, 115, 45, 214, 127, 198, 153, 159, 184, 30, 87, 67, 224, 208, 184, 203, 176, 130, 158, 236, 127, 153, 125, 243, 183, 188, 167, 154, 25, 118, 254, 101, 145, 210, 109, 164, 117, 114, 108, 115, 145, 217, 99, 107, 105, 116, 115, 117, 110, 101, 45, 112, 114, 111, 120, 121, 58, 47, 47, 114, 70, 71, 83, 100, 113, 104, 101, 68, 107, 70, 70, 56, 69, 102, 109, 45, 69, 116, 55, 119, 81, 101, 120, 83, 88, 55, 65, 112, 69, 51, 89, 86, 99, 45, 120, 102, 52, 104, 106, 77, 115, 77, 47, 107, 105, 116, 115, 117, 110, 101, 45, 113, 117, 105, 99, 47, 104, 47, 49, 57, 50, 46, 49, 54, 56, 46, 49, 55, 56, 46, 54, 48, 47, 112, 47, 55, 55, 52, 52, 47, 45, 45, 172, 115, 105, 103, 110, 101, 100, 95, 97, 116, 95, 109, 115, 207, 0, 0, 1, 123, 233, 113, 23, 220, 176, 101, 120, 112, 105, 114, 101, 115, 95, 97, 102, 116, 101, 114, 95, 109, 115, 206, 0, 18, 79, 128, 169, 109, 101, 116, 97, 95, 105, 110, 102, 111, 196, 34, 129, 187, 100, 104, 116, 95, 115, 116, 111, 114, 97, 103, 101, 95, 97, 114, 99, 95, 104, 97, 108, 102, 95, 108, 101, 110, 103, 116, 104, 206, 128, 0, 0, 1] } }, { "agent": { "type": "Buffer", "data": [3, 171, 237, 107, 186, 245, 165, 47, 237, 235, 211, 49, 245, 62, 113, 53, 255, 252, 223, 226, 75, 118, 148, 187, 23, 53, 70, 174, 160, 184, 64, 63, 94, 210, 227, 56] }, "signature": { "type": "Buffer", "data": [129, 12, 55, 104, 239, 121, 138, 2, 86, 106, 136, 51, 219, 79, 170, 8, 195, 69, 81, 188, 225, 192, 247, 196, 54, 39, 164, 110, 75, 39, 240, 56, 245, 189, 154, 77, 72, 11, 97, 250, 202, 149, 242, 97, 128, 28, 47, 164, 236, 104, 136, 82, 212, 246, 44, 143, 132, 119, 255, 135, 112, 11, 20, 13] }, "agent_info": { "type": "Buffer", "data": [134, 165, 115, 112, 97, 99, 101, 196, 36, 203, 165, 212, 173, 24, 215, 165, 196, 25, 145, 248, 113, 246, 139, 205, 182, 241, 138, 57, 0, 26, 8, 217, 179, 23, 126, 59, 136, 128, 213, 110, 225, 173, 72, 197, 95, 165, 97, 103, 101, 110, 116, 196, 36, 3, 171, 237, 107, 186, 245, 165, 47, 237, 235, 211, 49, 245, 62, 113, 53, 255, 252, 223, 226, 75, 118, 148, 187, 23, 53, 70, 174, 160, 184, 64, 63, 94, 210, 227, 56, 164, 117, 114, 108, 115, 145, 217, 97, 107, 105, 116, 115, 117, 110, 101, 45, 112, 114, 111, 120, 121, 58, 47, 47, 104, 121, 112, 115, 86, 121, 103, 117, 80, 84, 115, 53, 118, 73, 80, 65, 102, 97, 112, 90, 88, 113, 117, 84, 115, 79, 80, 100, 67, 81, 79, 79, 117, 103, 57, 51, 82, 103, 106, 95, 114, 85, 73, 47, 107, 105, 116, 115, 117, 110, 101, 45, 113, 117, 105, 99, 47, 104, 47, 49, 54, 53, 46, 50, 50, 46, 51, 50, 46, 49, 49, 47, 112, 47, 53, 55, 55, 57, 47, 45, 45, 172, 115, 105, 103, 110, 101, 100, 95, 97, 116, 95, 109, 115, 207, 0, 0, 1, 123, 233, 113, 188, 123, 176, 101, 120, 112, 105, 114, 101, 115, 95, 97, 102, 116, 101, 114, 95, 109, 115, 206, 0, 18, 79, 128, 169, 109, 101, 116, 97, 95, 105, 110, 102, 111, 196, 34, 129, 187, 100, 104, 116, 95, 115, 116, 111, 114, 97, 103, 101, 95, 97, 114, 99, 95, 104, 97, 108, 102, 95, 108, 101, 110, 103, 116, 104, 206, 128, 0, 0, 1] } }]);
16438
+ }
16439
+ runtimeHcAddAgentInfos(agentInfos) {
16440
+ return true;
16441
+ }
16442
+ runtimeVerifyStringSignedByDid(did, didSigningKeyId, data, signedData) {
16443
+ return true;
16444
+ }
16445
+ runtimeSetStatus(status) {
16446
+ return true;
16447
+ }
16448
+ runtimeFriendStatus(did) {
16449
+ return testPerspectiveExpression;
16450
+ }
16451
+ runtimeFriendSendMessage(did, message) {
16452
+ return true;
16453
+ }
16454
+ runtimeMessageInbox(filter) {
16455
+ return [testPerspectiveExpression];
16456
+ }
16457
+ runtimeMessageOutbox(filter) {
16458
+ return [{
16459
+ recipient: "did:test:recipient",
16460
+ message: testPerspectiveExpression
16461
+ }];
16462
+ }
16463
+ runtimeMessageReceived() {
16464
+ return testPerspectiveExpression;
16465
+ }
16466
+ exceptionOccurred() {
16467
+ return {
16468
+ title: "Test title",
16469
+ message: "Test message",
16470
+ type: ExceptionType.LanguageIsNotLoaded,
16471
+ };
16472
+ }
16473
+ runtimeRequestInstallNotification(notification) {
16474
+ return "new-notification-id";
16475
+ }
16476
+ runtimeNotifications() {
16477
+ return [{
16478
+ id: "test-id",
16479
+ granted: false,
16480
+ description: "Test description",
16481
+ appName: "Test app name",
16482
+ appUrl: "https://example.com",
16483
+ appIconPath: "https://fluxsocial.io/favicon",
16484
+ trigger: "triple(X, ad4m://has_type, flux://message)",
16485
+ perspectiveIds: ["u983ud-jdhh38d"],
16486
+ webhookUrl: "https://example.com/webhook",
16487
+ webhookAuth: "test-auth",
16488
+ }];
16489
+ }
16490
+ runtimeUpdateNotification(id, notification) {
16491
+ return true;
16492
+ }
16493
+ runtimeRemoveNotification(id) {
16494
+ return true;
16495
+ }
16496
+ runtimeGrantNotification(id) {
16497
+ return true;
16498
+ }
16499
+ runtimeNotificationTriggered() {
16500
+ return {
16501
+ perspectiveId: "test-perspective-id",
16502
+ triggerMatch: "test-trigger-match",
16503
+ notification: {
16504
+ id: "test-id",
16505
+ granted: false,
16506
+ description: "Test description",
16507
+ appName: "Test app name",
16508
+ appUrl: "https://example.com",
16509
+ appIconPath: "https://fluxsocial.io/favicon",
16510
+ trigger: "triple(X, ad4m://has_type, flux://message)",
16511
+ perspectiveIds: ["u983ud-jdhh38d"],
16512
+ webhookUrl: "https://example.com/webhook",
16513
+ webhookAuth: "test-auth",
16514
+ }
16515
+ };
16516
+ }
16517
+ runtimeExportDb(filePath) {
16518
+ return true;
16519
+ }
16520
+ runtimeImportDb(filePath) {
16521
+ return true;
16522
+ }
16523
+ runtimeExportPerspective(perspectiveUuid, filePath) {
16524
+ return true;
16525
+ }
16526
+ runtimeImportPerspective(filePath) {
16527
+ return true;
16528
+ }
16529
+ };
16530
+ __decorate([
16531
+ Mutation(),
16532
+ __metadata("design:type", Function),
16533
+ __metadata("design:paramtypes", []),
16534
+ __metadata("design:returntype", Boolean)
16535
+ ], RuntimeResolver.prototype, "runtimeQuit", null);
16536
+ __decorate([
16537
+ Mutation(),
16538
+ __param(0, Arg()),
16539
+ __metadata("design:type", Function),
16540
+ __metadata("design:paramtypes", [String]),
16541
+ __metadata("design:returntype", Boolean)
16542
+ ], RuntimeResolver.prototype, "runtimeOpenLink", null);
16543
+ __decorate([
16544
+ Query(),
16545
+ __metadata("design:type", Function),
16546
+ __metadata("design:paramtypes", []),
16547
+ __metadata("design:returntype", RuntimeInfo)
16548
+ ], RuntimeResolver.prototype, "runtimeInfo", null);
16549
+ __decorate([
16550
+ Mutation(),
16551
+ __param(0, Arg()),
16552
+ __metadata("design:type", Function),
16553
+ __metadata("design:paramtypes", [Array]),
16554
+ __metadata("design:returntype", Array)
16555
+ ], RuntimeResolver.prototype, "addTrustedAgents", null);
16556
+ __decorate([
16557
+ Mutation(),
16558
+ __param(0, Arg()),
16559
+ __metadata("design:type", Function),
16560
+ __metadata("design:paramtypes", [Array]),
16561
+ __metadata("design:returntype", Array)
16562
+ ], RuntimeResolver.prototype, "deleteTrustedAgents", null);
16563
+ __decorate([
16564
+ Query(),
16565
+ __metadata("design:type", Function),
16566
+ __metadata("design:paramtypes", []),
16567
+ __metadata("design:returntype", Array)
16568
+ ], RuntimeResolver.prototype, "getTrustedAgents", null);
16569
+ __decorate([
16570
+ Query(),
16571
+ __metadata("design:type", Function),
16572
+ __metadata("design:paramtypes", []),
16573
+ __metadata("design:returntype", Array)
16574
+ ], RuntimeResolver.prototype, "runtimeKnownLinkLanguageTemplates", null);
16575
+ __decorate([
16576
+ Mutation(),
16577
+ __param(0, Arg()),
16578
+ __metadata("design:type", Function),
16579
+ __metadata("design:paramtypes", [Array]),
16580
+ __metadata("design:returntype", Array)
16581
+ ], RuntimeResolver.prototype, "runtimeAddKnownLinkLanguageTemplates", null);
16582
+ __decorate([
16583
+ Mutation(),
16584
+ __param(0, Arg()),
16585
+ __metadata("design:type", Function),
16586
+ __metadata("design:paramtypes", [Array]),
16587
+ __metadata("design:returntype", Array)
16588
+ ], RuntimeResolver.prototype, "runtimeRemoveKnownLinkLanguageTemplates", null);
16589
+ __decorate([
16590
+ Query(),
16591
+ __metadata("design:type", Function),
16592
+ __metadata("design:paramtypes", []),
16593
+ __metadata("design:returntype", Array)
16594
+ ], RuntimeResolver.prototype, "runtimeFriends", null);
16595
+ __decorate([
16596
+ Mutation(),
16597
+ __param(0, Arg()),
16598
+ __metadata("design:type", Function),
16599
+ __metadata("design:paramtypes", [Array]),
16600
+ __metadata("design:returntype", Array)
16601
+ ], RuntimeResolver.prototype, "runtimeAddFriends", null);
16602
+ __decorate([
16603
+ Mutation(),
16604
+ __param(0, Arg()),
16605
+ __metadata("design:type", Function),
16606
+ __metadata("design:paramtypes", [Array]),
16607
+ __metadata("design:returntype", Array)
16608
+ ], RuntimeResolver.prototype, "runtimeRemoveFriends", null);
16609
+ __decorate([
16610
+ Query(),
16611
+ __metadata("design:type", Function),
16612
+ __metadata("design:paramtypes", []),
16613
+ __metadata("design:returntype", String)
16614
+ ], RuntimeResolver.prototype, "runtimeHcAgentInfos", null);
16615
+ __decorate([
16616
+ Mutation(),
16617
+ __param(0, Arg()),
16618
+ __metadata("design:type", Function),
16619
+ __metadata("design:paramtypes", [Object]),
16620
+ __metadata("design:returntype", Boolean)
16621
+ ], RuntimeResolver.prototype, "runtimeHcAddAgentInfos", null);
16622
+ __decorate([
16623
+ Query(),
16624
+ __param(0, Arg()),
16625
+ __param(1, Arg()),
16626
+ __param(2, Arg()),
16627
+ __param(3, Arg()),
16628
+ __metadata("design:type", Function),
16629
+ __metadata("design:paramtypes", [String, String, String, String]),
16630
+ __metadata("design:returntype", void 0)
16631
+ ], RuntimeResolver.prototype, "runtimeVerifyStringSignedByDid", null);
16632
+ __decorate([
16633
+ Mutation(),
16634
+ __param(0, Arg()),
16635
+ __metadata("design:type", Function),
16636
+ __metadata("design:paramtypes", [Perspective]),
16637
+ __metadata("design:returntype", Boolean)
16638
+ ], RuntimeResolver.prototype, "runtimeSetStatus", null);
16639
+ __decorate([
16640
+ Query(),
16641
+ __param(0, Arg()),
16642
+ __metadata("design:type", Function),
16643
+ __metadata("design:paramtypes", [String]),
16644
+ __metadata("design:returntype", PerspectiveExpression)
16645
+ ], RuntimeResolver.prototype, "runtimeFriendStatus", null);
16646
+ __decorate([
16647
+ Mutation(),
16648
+ __param(0, Arg()),
16649
+ __param(1, Arg()),
16650
+ __metadata("design:type", Function),
16651
+ __metadata("design:paramtypes", [String, PerspectiveInput]),
16652
+ __metadata("design:returntype", Boolean)
16653
+ ], RuntimeResolver.prototype, "runtimeFriendSendMessage", null);
16654
+ __decorate([
16655
+ Query(),
16656
+ __param(0, Arg()),
16657
+ __metadata("design:type", Function),
16658
+ __metadata("design:paramtypes", [String]),
16659
+ __metadata("design:returntype", Array)
16660
+ ], RuntimeResolver.prototype, "runtimeMessageInbox", null);
16661
+ __decorate([
16662
+ Query(),
16663
+ __param(0, Arg()),
16664
+ __metadata("design:type", Function),
16665
+ __metadata("design:paramtypes", [String]),
16666
+ __metadata("design:returntype", Array)
16667
+ ], RuntimeResolver.prototype, "runtimeMessageOutbox", null);
16668
+ __decorate([
16669
+ Subscription(),
16670
+ __metadata("design:type", Function),
16671
+ __metadata("design:paramtypes", []),
16672
+ __metadata("design:returntype", PerspectiveExpression)
16673
+ ], RuntimeResolver.prototype, "runtimeMessageReceived", null);
16674
+ __decorate([
16675
+ Subscription(),
16676
+ __metadata("design:type", Function),
16677
+ __metadata("design:paramtypes", []),
16678
+ __metadata("design:returntype", ExceptionInfo)
16679
+ ], RuntimeResolver.prototype, "exceptionOccurred", null);
16680
+ __decorate([
16681
+ Mutation(),
16682
+ __param(0, Arg()),
16683
+ __metadata("design:type", Function),
16684
+ __metadata("design:paramtypes", [NotificationInput]),
16685
+ __metadata("design:returntype", String)
16686
+ ], RuntimeResolver.prototype, "runtimeRequestInstallNotification", null);
16687
+ __decorate([
16688
+ Query(),
16689
+ __metadata("design:type", Function),
16690
+ __metadata("design:paramtypes", []),
16691
+ __metadata("design:returntype", Array)
16692
+ ], RuntimeResolver.prototype, "runtimeNotifications", null);
16693
+ __decorate([
16694
+ Mutation(),
16695
+ __param(0, Arg()),
16696
+ __param(1, Arg()),
16697
+ __metadata("design:type", Function),
16698
+ __metadata("design:paramtypes", [String, NotificationInput]),
16699
+ __metadata("design:returntype", Boolean)
16700
+ ], RuntimeResolver.prototype, "runtimeUpdateNotification", null);
16701
+ __decorate([
16702
+ Mutation(),
16703
+ __param(0, Arg()),
16704
+ __metadata("design:type", Function),
16705
+ __metadata("design:paramtypes", [String]),
16706
+ __metadata("design:returntype", Boolean)
16707
+ ], RuntimeResolver.prototype, "runtimeRemoveNotification", null);
16708
+ __decorate([
16709
+ Mutation(),
16710
+ __param(0, Arg()),
16711
+ __metadata("design:type", Function),
16712
+ __metadata("design:paramtypes", [String]),
16713
+ __metadata("design:returntype", Boolean)
16714
+ ], RuntimeResolver.prototype, "runtimeGrantNotification", null);
16715
+ __decorate([
16716
+ Subscription(),
16717
+ __metadata("design:type", Function),
16718
+ __metadata("design:paramtypes", []),
16719
+ __metadata("design:returntype", TriggeredNotification)
16720
+ ], RuntimeResolver.prototype, "runtimeNotificationTriggered", null);
16721
+ __decorate([
16722
+ Mutation(),
16723
+ __param(0, Arg()),
16724
+ __metadata("design:type", Function),
16725
+ __metadata("design:paramtypes", [String]),
16726
+ __metadata("design:returntype", Boolean)
16727
+ ], RuntimeResolver.prototype, "runtimeExportDb", null);
16728
+ __decorate([
16729
+ Mutation(),
16730
+ __param(0, Arg()),
16731
+ __metadata("design:type", Function),
16732
+ __metadata("design:paramtypes", [String]),
16733
+ __metadata("design:returntype", Boolean)
16734
+ ], RuntimeResolver.prototype, "runtimeImportDb", null);
16735
+ __decorate([
16736
+ Mutation(),
16737
+ __param(0, Arg()),
16738
+ __param(1, Arg()),
16739
+ __metadata("design:type", Function),
16740
+ __metadata("design:paramtypes", [String, String]),
16741
+ __metadata("design:returntype", Boolean)
16742
+ ], RuntimeResolver.prototype, "runtimeExportPerspective", null);
16743
+ __decorate([
16744
+ Mutation(),
16745
+ __param(0, Arg()),
16746
+ __metadata("design:type", Function),
16747
+ __metadata("design:paramtypes", [String]),
16748
+ __metadata("design:returntype", Boolean)
16749
+ ], RuntimeResolver.prototype, "runtimeImportPerspective", null);
16750
+ RuntimeResolver = __decorate([
16751
+ Resolver()
16752
+ ], RuntimeResolver);
16753
+
16754
+ export { AIClient, AIModelLoadingStatus, AIPromptExamples, AIPromptExamplesInput, AITask, AITaskInput, Ad4mClient, Agent, AgentClient, AgentExpression, AgentSignature, AgentStatus, Apps, AuthInfo, AuthInfoInput, Capability, CapabilityInput, Dna, EntanglementProof, EntanglementProofInput, ExceptionInfo, ExceptionType, Expression, ExpressionGeneric, ExpressionGenericInput, ExpressionProof, ExpressionProofInput, ExpressionRef, ExpressionRendered, Icon, ImportResult, ImportStats, InstanceQuery, InteractionCall, InteractionMeta, InteractionParameter, LanguageExpression, LanguageHandle, LanguageLanguageInput, LanguageMeta, LanguageMetaInput, LanguageMetaInternal, LanguageRef, Link, LinkExpression, LinkExpressionInput, LinkExpressionMutations, LinkExpressionUpdated, LinkInput, LinkMutations, LinkQuery, Literal, Neighbourhood, NeighbourhoodExpression, NeighbourhoodProxy, Notification, NotificationInput, OnlineAgent, Perspective, PerspectiveAction, PerspectiveDiff, PerspectiveDiffExpression, PerspectiveExpression, PerspectiveHandle, PerspectiveInput, PerspectiveProxy, PerspectiveState, PerspectiveUnsignedInput, Resource, ResourceInput, RuntimeInfo, SDNAClass, SMART_LITERAL_CONTENT_PREDICATE, SentMessage, SmartLiteral, Subject, SubjectCollection, SubjectEntity, SubjectFlag, SubjectProperty, TriggeredNotification, addLink, capSentence, exprRef2String, formatList, hasLink, isExpression, isLink, linkEqual, makeRandomPrologAtom, parseExprUrl, typeDefsString };