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