@lifeready/core 6.1.2 → 6.1.3

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.
@@ -3378,6 +3378,179 @@ KeyMetaService.ctorParameters = () => [
3378
3378
  { type: KeyFactoryService }
3379
3379
  ];
3380
3380
 
3381
+ const KeyExchangeFields = `
3382
+ id
3383
+ token
3384
+ state
3385
+ mode
3386
+ isInitiator
3387
+ initiator {
3388
+ id
3389
+ username
3390
+ config
3391
+ }
3392
+ responder {
3393
+ id
3394
+ username
3395
+ }
3396
+ created
3397
+ modified
3398
+ tokenExpiryTime
3399
+ isExpired
3400
+ initiatorRootKeyCipher
3401
+ initiatorActionRequired
3402
+ responderActionRequired
3403
+ responderEmailAddress
3404
+ otk {
3405
+ state
3406
+ otKeyParams
3407
+ otKeyCipher
3408
+ sharedKey {
3409
+ id
3410
+ }
3411
+ mkSharedKey {
3412
+ id
3413
+ }
3414
+ initiatorSigPxk {
3415
+ id
3416
+ }
3417
+ responderSigPxk {
3418
+ id
3419
+ }
3420
+ initiatorOneTimePbkCipher
3421
+ responderPbkCipher
3422
+ }
3423
+ `;
3424
+ const UserSharedKeyFields = `
3425
+ userSigPrk {
3426
+ id
3427
+ }
3428
+ otherSigPbk {
3429
+ id
3430
+ }
3431
+ sharedKey {
3432
+ id
3433
+ }
3434
+ mkSharedKey {
3435
+ id
3436
+ }
3437
+ mkPxk {
3438
+ id
3439
+ pbk
3440
+ }
3441
+ mkReshareRequestCipher
3442
+ mkReshareResponseCipher
3443
+ mkReshareRequestSent
3444
+ mkReshareResponseSent
3445
+ `;
3446
+ const KeyExchangesQuery2 = gqlTyped `
3447
+ query KeyExchangesQuery2($state: String) {
3448
+ keyExchanges(state: $state) {
3449
+ edges {
3450
+ node {
3451
+ ${KeyExchangeFields}
3452
+ }
3453
+ }
3454
+ }
3455
+ }
3456
+ `;
3457
+ const KeyExchangeQuery2 = gqlTyped `
3458
+ query KeyExchangeQuery2($id: LrRelayIdInput!) {
3459
+ keyExchange(id: $id) {
3460
+ ${KeyExchangeFields}
3461
+ }
3462
+ }
3463
+ `;
3464
+ const KeyExchangeTokenQuery2 = gqlTyped `
3465
+ query KeyExchangeTokenQuery2($id: LrRelayIdInput!, $token: String) {
3466
+ keyExchange(id: $id, token: $token) {
3467
+ ${KeyExchangeFields}
3468
+ }
3469
+ }
3470
+ `;
3471
+ const CancelKeyExchangeMutation = gqlTyped `
3472
+ mutation CancelKeyExchangeMutation($input: CancelKeyExchangeInput!) {
3473
+ cancelKeyExchange(input: $input) {
3474
+ keyExchange {
3475
+ id
3476
+ }
3477
+ }
3478
+ }
3479
+ `;
3480
+ const DeclineKeyExchangeMutation = gqlTyped `
3481
+ mutation DeclineKeyExchangeMutation($input: DeclineKeyExchangeInput!) {
3482
+ declineKeyExchange(input: $input) {
3483
+ keyExchange {
3484
+ id
3485
+ }
3486
+ }
3487
+ }
3488
+ `;
3489
+ const InitiateKeyExchangeOtkMutation = gqlTyped `
3490
+ mutation InitiateKeyExchangeOtkMutation(
3491
+ $input: InitiateKeyExchangeOtkInput!
3492
+ ) {
3493
+ initiateKeyExchangeOtk(input: $input) {
3494
+ keyExchange {
3495
+ ${KeyExchangeFields}
3496
+ }
3497
+ }
3498
+ }
3499
+ `;
3500
+ const RespondKeyExchangeOtkMutation = gqlTyped `
3501
+ mutation RespondKeyExchangeOtkMutation($input: RespondKeyExchangeOtkInput!) {
3502
+ respondKeyExchangeOtk(input: $input) {
3503
+ keyExchange {
3504
+ ${KeyExchangeFields}
3505
+ }
3506
+ userSharedKey {
3507
+ ${UserSharedKeyFields}
3508
+ }
3509
+ tp {
3510
+ id
3511
+ user {
3512
+ config
3513
+ }
3514
+ }
3515
+ }
3516
+ }
3517
+ `;
3518
+ const CompleteKeyExchangeOtkMutation = gqlTyped `
3519
+ mutation CompleteKeyExchangeOtkMutation(
3520
+ $input: CompleteKeyExchangeOtkInput!
3521
+ ) {
3522
+ completeKeyExchangeOtk(input: $input) {
3523
+ keyExchange {
3524
+ ${KeyExchangeFields}
3525
+ }
3526
+ userSharedKey {
3527
+ ${UserSharedKeyFields}
3528
+ }
3529
+ tp {
3530
+ id
3531
+ user {
3532
+ config
3533
+ }
3534
+ }
3535
+ }
3536
+ }
3537
+ `;
3538
+ const CurrentUserSharedKeyQuery2 = gqlTyped `
3539
+ query CurrentUserSharedKeyQuery2(
3540
+ $username: String
3541
+ $userId: LrRelayIdInput
3542
+ ) {
3543
+ currentUserSharedKey(
3544
+ username: $username
3545
+ userId: $userId
3546
+ ) {
3547
+ userSharedKey {
3548
+ ${UserSharedKeyFields}
3549
+ }
3550
+ }
3551
+ }
3552
+ `;
3553
+
3381
3554
  var FeatureAction;
3382
3555
  (function (FeatureAction) {
3383
3556
  // Just the one for now
@@ -3537,69 +3710,6 @@ SharedContactCardService.ctorParameters = () => [
3537
3710
  ];
3538
3711
 
3539
3712
  /* eslint-disable @typescript-eslint/no-explicit-any */
3540
- const UserSharedKeyFields = `
3541
- userSigPrk {
3542
- id
3543
- }
3544
- otherSigPbk {
3545
- id
3546
- }
3547
- sharedKey {
3548
- id
3549
- }
3550
- mkSharedKey {
3551
- id
3552
- }
3553
- mkPxk {
3554
- id
3555
- pbk
3556
- }
3557
- mkReshareRequestCipher
3558
- mkReshareResponseCipher
3559
- mkReshareRequestSent
3560
- mkReshareResponseSent
3561
- `;
3562
- const KeyExchangeFields = `
3563
- id
3564
- token
3565
- state
3566
- mode
3567
- isInitiator
3568
- initiator {
3569
- id
3570
- username
3571
- }
3572
- responder {
3573
- id
3574
- username
3575
- }
3576
- created
3577
- modified
3578
- tokenExpiryTime
3579
- isExpired
3580
- initiatorRootKeyCipher
3581
- initiatorActionRequired
3582
- responderActionRequired
3583
- responderEmailAddress
3584
- otk {
3585
- state
3586
- otKeyParams
3587
- otKeyCipher
3588
- sharedKey {
3589
- id
3590
- }
3591
- mkSharedKey {
3592
- id
3593
- }
3594
- initiatorSigPxk {
3595
- id
3596
- }
3597
- responderSigPxk {
3598
- id
3599
- }
3600
- initiatorOneTimePbkCipher
3601
- responderPbkCipher
3602
- }`;
3603
3713
  const TrustedPartyProperties = `
3604
3714
  id
3605
3715
  user {
@@ -6598,177 +6708,6 @@ Item2Service = Item2Service_1 = __decorate([
6598
6708
  })
6599
6709
  ], Item2Service);
6600
6710
 
6601
- const KeyExchangeFragment = gqlTyped `
6602
- fragment KeyExchangeFragment on KeyExchangeNode {
6603
- id
6604
- token
6605
- state
6606
- mode
6607
- isInitiator
6608
- initiator {
6609
- id
6610
- username
6611
- config
6612
- }
6613
- responder {
6614
- id
6615
- username
6616
- }
6617
- created
6618
- modified
6619
- tokenExpiryTime
6620
- isExpired
6621
- initiatorRootKeyCipher
6622
- initiatorActionRequired
6623
- responderActionRequired
6624
- responderEmailAddress
6625
- otk {
6626
- state
6627
- otKeyParams
6628
- otKeyCipher
6629
- sharedKey {
6630
- id
6631
- }
6632
- mkSharedKey {
6633
- id
6634
- }
6635
- initiatorSigPxk {
6636
- id
6637
- }
6638
- responderSigPxk {
6639
- id
6640
- }
6641
- initiatorOneTimePbkCipher
6642
- responderPbkCipher
6643
- }
6644
- }
6645
- `;
6646
- const UserSharedKeyFragment = gqlTyped `
6647
- fragment UserSharedKeyFragment on UserSharedKeyNode {
6648
- userSigPrk {
6649
- id
6650
- }
6651
- otherSigPbk {
6652
- id
6653
- }
6654
- sharedKey {
6655
- id
6656
- }
6657
- mkSharedKey {
6658
- id
6659
- }
6660
- }`;
6661
- const KeyExchangesQuery2 = gqlTyped `
6662
- query KeyExchangesQuery2($state: String) {
6663
- keyExchanges(state: $state) {
6664
- edges {
6665
- node {
6666
- ...KeyExchangeFragment
6667
- }
6668
- }
6669
- }
6670
- }
6671
- ${KeyExchangeFragment}
6672
- `;
6673
- const KeyExchangeQuery2 = gqlTyped `
6674
- query KeyExchangeQuery2($id: LrRelayIdInput!) {
6675
- keyExchange(id: $id) {
6676
- ...KeyExchangeFragment
6677
- }
6678
- }
6679
- ${KeyExchangeFragment}
6680
- `;
6681
- const KeyExchangeTokenQuery2 = gqlTyped `
6682
- query KeyExchangeTokenQuery2($id: LrRelayIdInput!, $token: String) {
6683
- keyExchange(id: $id, token: $token) {
6684
- ...KeyExchangeFragment
6685
- }
6686
- }
6687
- ${KeyExchangeFragment}
6688
- `;
6689
- const CancelKeyExchangeMutation = gqlTyped `
6690
- mutation CancelKeyExchangeMutation($input: CancelKeyExchangeInput!) {
6691
- cancelKeyExchange(input: $input) {
6692
- keyExchange {
6693
- id
6694
- }
6695
- }
6696
- }
6697
- `;
6698
- const DeclineKeyExchangeMutation = gqlTyped `
6699
- mutation DeclineKeyExchangeMutation($input: DeclineKeyExchangeInput!) {
6700
- declineKeyExchange(input: $input) {
6701
- keyExchange {
6702
- id
6703
- }
6704
- }
6705
- }
6706
- `;
6707
- const InitiateKeyExchangeOtkMutation = gqlTyped `
6708
- mutation InitiateKeyExchangeOtkMutation(
6709
- $input: InitiateKeyExchangeOtkInput!
6710
- ) {
6711
- initiateKeyExchangeOtk(input: $input) {
6712
- keyExchange {
6713
- ...KeyExchangeFragment
6714
- }
6715
- }
6716
- }
6717
- ${KeyExchangeFragment}
6718
- `;
6719
- const RespondKeyExchangeOtkMutation = gqlTyped `
6720
- mutation RespondKeyExchangeOtkMutation($input: RespondKeyExchangeOtkInput!) {
6721
- respondKeyExchangeOtk(input: $input) {
6722
- keyExchange {
6723
- ...KeyExchangeFragment
6724
- }
6725
- userSharedKey {
6726
- ...UserSharedKeyFragment
6727
- }
6728
- tp {
6729
- id
6730
- }
6731
- }
6732
- }
6733
- ${KeyExchangeFragment}
6734
- ${UserSharedKeyFragment}
6735
- `;
6736
- const CompleteKeyExchangeOtkMutation = gqlTyped `
6737
- mutation CompleteKeyExchangeOtkMutation(
6738
- $input: CompleteKeyExchangeOtkInput!
6739
- ) {
6740
- completeKeyExchangeOtk(input: $input) {
6741
- keyExchange {
6742
- ...KeyExchangeFragment
6743
- }
6744
- userSharedKey {
6745
- ...UserSharedKeyFragment
6746
- }
6747
- tp {
6748
- id
6749
- }
6750
- }
6751
- }
6752
- ${KeyExchangeFragment}
6753
- ${UserSharedKeyFragment}
6754
- `;
6755
- const CurrentUserSharedKeyQuery2 = gqlTyped `
6756
- query CurrentUserSharedKeyQuery2(
6757
- $username: String
6758
- $userId: LrRelayIdInput
6759
- ) {
6760
- currentUserSharedKey(
6761
- username: $username
6762
- userId: $userId
6763
- ) {
6764
- userSharedKey {
6765
- ...UserSharedKeyFragment
6766
- }
6767
- }
6768
- }
6769
- ${UserSharedKeyFragment}
6770
- `;
6771
-
6772
6711
  let KeyExchange2Service = class KeyExchange2Service extends LrService {
6773
6712
  constructor(ngZone, injector, keyFactory, keyService, encryptionService, keyGraph) {
6774
6713
  super(injector);
@@ -10556,5 +10495,5 @@ UserService.ctorParameters = () => [
10556
10495
  * Generated bundle index. Do not edit.
10557
10496
  */
10558
10497
 
10559
- export { AccessRoleChoice, AccessRoleMethodChoice, ApiContactCard, ApiCurrentUser, Auth2Service, auth2_types as AuthTypes, CancelUserDeleteMutation, ClaimApproverState, ClaimState, CommonProcessorsService, Config, ContactCard2Service, ContactCardAddress, ContactCardName, ContactCardsQuery, CreateContactCardMutation$1 as CreateContactCardMutation, CreateFileQuery, CreateLbopQuery, CurrentUserKey, CurrentUserQuery, DefaultProcessorOptions, DeleteLbopQuery, DirectoryQuery, ERROR_SOURCE, FeatureAction, Features, FetchKeyGraphField, FileOperationField, FileQuery, FileUploadService, IdleService, Item2Service, KC_CONFIG, KcAuthException, KcBadArgumentException, KcBadLogicException, KcBadRequestException, KcBadSignatureException, KcBadStateException, KcBadTimeSyncException, KcCodeMismatchException, KcConcurrentAccessException, KcEncryptionException, KcError, KcErrorCode, KcException, KcInternalErrorException, KcLbopErrorCode, KcLockedException, KcNotFoundException, KcSuspiciousOperationException, KcUnsupportedException, KeyExchange2Service, KeyExchangeFields, KeyExchangeMode, KeyExchangeOtkState, KeyExchangeState, KeyGraphField, KeyGraphFragment, LbopQuery, LbopService, LbopsQuery, LifeReadyModule, LinkTypeField, LockService, LockState, LoginHistoryQuery, LrApolloService, LrGraphQLService, LrMergedMutation, LrMutation, LrMutationBase, LrService, MainContactCardFields, MainContactCardPlainFields, MainContactCardProperty, MoveDirectoryQuery, MoveFileQuery, NotificationService, OwnerPlainDataJson, PassIdpApiResult, PasswordChangeStatus, PasswordCheck, PasswordService, PermissionChoice, PersistService, Plan2Service, PlanState, PlanStateField, ProfileDetailsService, ProfileService, QueryProcessorService, RegisterService, ReminderService, RequestUserDeleteMutation, RevertFileQuery, ScenarioLastClaimState, ScenarioService, ScenarioState, ServerConfigService, ServerTimeQuery, SharedContactCard2Service, SharedTrustedPartyDetails, SharedVaultFeature, TPFeatures, TimeService, TpAssemblyState, TpClaimApproverState, TpClaimState, TpPasswordResetRequestService, TpPasswordResetService, TpPasswordResetUserService, TrustedPartiesQuery, TrustedParty, TrustedParty2Service, TrustedPartyDetails, TrustedPartyProperties, TrustedPartyType, TwoFactorService, UpdateContactCardMutation$1 as UpdateContactCardMutation, UpdateFileQuery, UpdateLbopQuery, UserDeleteState, UserService, UserSharedKeyFields, WebCryptoService, awsFetch, configureAmplifyAuth, configureApollo, fragmentSpreadAstSelection, gqlTyped, handleApolloError, handleCognitoCallback, httpOptions, mapEdges, processConnection, throwClaimIdMismatch, throwClaimNotApproved, KeyGraphService as ɵa, EncryptionService as ɵb, KeyService as ɵc, KeyFactoryService as ɵd, LrService as ɵe, RunOutsideAngular as ɵf, LrGraphQLService as ɵg, KeyMetaService as ɵh, TpPasswordResetAssemblyController as ɵi, TpAssemblyController as ɵj, SharedContactCardFields as ɵk, SharedContactCardService as ɵl, ScenarioAssemblyController as ɵm, TpPasswordResetPrivateService as ɵn };
10498
+ export { AccessRoleChoice, AccessRoleMethodChoice, ApiContactCard, ApiCurrentUser, Auth2Service, auth2_types as AuthTypes, CancelKeyExchangeMutation, CancelUserDeleteMutation, ClaimApproverState, ClaimState, CommonProcessorsService, CompleteKeyExchangeOtkMutation, Config, ContactCard2Service, ContactCardAddress, ContactCardName, ContactCardsQuery, CreateContactCardMutation$1 as CreateContactCardMutation, CreateFileQuery, CreateLbopQuery, CurrentUserKey, CurrentUserQuery, CurrentUserSharedKeyQuery2, DeclineKeyExchangeMutation, DefaultProcessorOptions, DeleteLbopQuery, DirectoryQuery, ERROR_SOURCE, FeatureAction, Features, FetchKeyGraphField, FileOperationField, FileQuery, FileUploadService, IdleService, InitiateKeyExchangeOtkMutation, Item2Service, KC_CONFIG, KcAuthException, KcBadArgumentException, KcBadLogicException, KcBadRequestException, KcBadSignatureException, KcBadStateException, KcBadTimeSyncException, KcCodeMismatchException, KcConcurrentAccessException, KcEncryptionException, KcError, KcErrorCode, KcException, KcInternalErrorException, KcLbopErrorCode, KcLockedException, KcNotFoundException, KcSuspiciousOperationException, KcUnsupportedException, KeyExchange2Service, KeyExchangeFields, KeyExchangeMode, KeyExchangeOtkState, KeyExchangeQuery2, KeyExchangeState, KeyExchangeTokenQuery2, KeyExchangesQuery2, KeyGraphField, KeyGraphFragment, LbopQuery, LbopService, LbopsQuery, LifeReadyModule, LinkTypeField, LockService, LockState, LoginHistoryQuery, LrApolloService, LrGraphQLService, LrMergedMutation, LrMutation, LrMutationBase, LrService, MainContactCardFields, MainContactCardPlainFields, MainContactCardProperty, MoveDirectoryQuery, MoveFileQuery, NotificationService, OwnerPlainDataJson, PassIdpApiResult, PasswordChangeStatus, PasswordCheck, PasswordService, PermissionChoice, PersistService, Plan2Service, PlanState, PlanStateField, ProfileDetailsService, ProfileService, QueryProcessorService, RegisterService, ReminderService, RequestUserDeleteMutation, RespondKeyExchangeOtkMutation, RevertFileQuery, ScenarioLastClaimState, ScenarioService, ScenarioState, ServerConfigService, ServerTimeQuery, SharedContactCard2Service, SharedTrustedPartyDetails, SharedVaultFeature, TPFeatures, TimeService, TpAssemblyState, TpClaimApproverState, TpClaimState, TpPasswordResetRequestService, TpPasswordResetService, TpPasswordResetUserService, TrustedPartiesQuery, TrustedParty, TrustedParty2Service, TrustedPartyDetails, TrustedPartyProperties, TrustedPartyType, TwoFactorService, UpdateContactCardMutation$1 as UpdateContactCardMutation, UpdateFileQuery, UpdateLbopQuery, UserDeleteState, UserService, UserSharedKeyFields, WebCryptoService, awsFetch, configureAmplifyAuth, configureApollo, fragmentSpreadAstSelection, gqlTyped, handleApolloError, handleCognitoCallback, httpOptions, mapEdges, processConnection, throwClaimIdMismatch, throwClaimNotApproved, KeyGraphService as ɵa, EncryptionService as ɵb, KeyService as ɵc, KeyFactoryService as ɵd, LrService as ɵe, RunOutsideAngular as ɵf, LrGraphQLService as ɵg, KeyMetaService as ɵh, TpPasswordResetAssemblyController as ɵi, TpAssemblyController as ɵj, SharedContactCardFields as ɵk, SharedContactCardService as ɵl, ScenarioAssemblyController as ɵm, TpPasswordResetPrivateService as ɵn };
10560
10499
  //# sourceMappingURL=lifeready-core.js.map