mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 05:53:42 +00:00
Move more imports
This commit is contained in:
@@ -12,10 +12,10 @@ import { Organization } from "@bitwarden/common/admin-console/models/domain/orga
|
||||
import { OrganizationKeysResponse } from "@bitwarden/common/admin-console/models/response/organization-keys.response";
|
||||
import { OrganizationApiService } from "@bitwarden/common/admin-console/services/organization/organization-api.service";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { EncryptionType } from "@bitwarden/common/platform/enums";
|
||||
import { CsprngArray } from "@bitwarden/common/types/csprng";
|
||||
import { UserId } from "@bitwarden/common/types/guid";
|
||||
import { UserKey, OrgKey, MasterKey } from "@bitwarden/common/types/key";
|
||||
|
||||
@@ -6,13 +6,13 @@ import mock from "jest-mock-extended/lib/Mock";
|
||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||
import { BulkEncryptService } from "@bitwarden/common/key-management/crypto/abstractions/bulk-encrypt.service";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { ListResponse } from "@bitwarden/common/models/response/list.response";
|
||||
import { UserKeyResponse } from "@bitwarden/common/models/response/user-key.response";
|
||||
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
||||
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||
import { EncryptionType } from "@bitwarden/common/platform/enums";
|
||||
import { CsprngArray } from "@bitwarden/common/types/csprng";
|
||||
import { UserId } from "@bitwarden/common/types/guid";
|
||||
import { UserKey, MasterKey } from "@bitwarden/common/types/key";
|
||||
|
||||
@@ -13,12 +13,12 @@ import { InternalMasterPasswordServiceAbstraction } from "@bitwarden/common/auth
|
||||
import { UserVerificationService } from "@bitwarden/common/auth/abstractions/user-verification/user-verification.service.abstraction";
|
||||
import { PasswordRequest } from "@bitwarden/common/auth/models/request/password.request";
|
||||
import { getUserId } from "@bitwarden/common/auth/services/account.service";
|
||||
import { HashPurpose } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
import { HashPurpose } from "@bitwarden/common/platform/enums";
|
||||
import { UserId } from "@bitwarden/common/types/guid";
|
||||
import { MasterKey, UserKey } from "@bitwarden/common/types/key";
|
||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||
|
||||
@@ -22,13 +22,13 @@ import { SsoLoginServiceAbstraction } from "@bitwarden/common/auth/abstractions/
|
||||
import { ForceSetPasswordReason } from "@bitwarden/common/auth/models/domain/force-set-password-reason";
|
||||
import { SetPasswordRequest } from "@bitwarden/common/auth/models/request/set-password.request";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { HashPurpose } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { KeysRequest } from "@bitwarden/common/models/request/keys.request";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
import { HashPurpose } from "@bitwarden/common/platform/enums";
|
||||
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||
import { UserId } from "@bitwarden/common/types/guid";
|
||||
import { MasterKey, UserKey } from "@bitwarden/common/types/key";
|
||||
|
||||
@@ -11,8 +11,8 @@ import {
|
||||
import { AuditService } from "@bitwarden/common/abstractions/audit.service";
|
||||
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
||||
import { MasterPasswordPolicyOptions } from "@bitwarden/common/admin-console/models/domain/master-password-policy-options";
|
||||
import { HashPurpose } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { HashPurpose } from "@bitwarden/common/platform/enums";
|
||||
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||
import {
|
||||
AsyncActionsModule,
|
||||
|
||||
@@ -14,13 +14,13 @@ import { FakeMasterPasswordService } from "@bitwarden/common/auth/services/maste
|
||||
import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions/account/billing-account-profile-state.service";
|
||||
import { VaultTimeoutAction } from "@bitwarden/common/enums/vault-timeout-action.enum";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { HashPurpose } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { AppIdService } from "@bitwarden/common/platform/abstractions/app-id.service";
|
||||
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
import { HashPurpose } from "@bitwarden/common/platform/enums";
|
||||
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||
import { VaultTimeoutSettingsService } from "@bitwarden/common/services/vault-timeout/vault-timeout-settings.service";
|
||||
import { FakeAccountService, mockAccountServiceWith } from "@bitwarden/common/spec";
|
||||
|
||||
@@ -13,8 +13,8 @@ import { IdentityCaptchaResponse } from "@bitwarden/common/auth/models/response/
|
||||
import { IdentityDeviceVerificationResponse } from "@bitwarden/common/auth/models/response/identity-device-verification.response";
|
||||
import { IdentityTokenResponse } from "@bitwarden/common/auth/models/response/identity-token.response";
|
||||
import { IdentityTwoFactorResponse } from "@bitwarden/common/auth/models/response/identity-two-factor.response";
|
||||
import { HashPurpose } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { HashPurpose } from "@bitwarden/common/platform/enums";
|
||||
import { PasswordStrengthServiceAbstraction } from "@bitwarden/common/tools/password-strength";
|
||||
import { UserId } from "@bitwarden/common/types/guid";
|
||||
import { MasterKey } from "@bitwarden/common/types/key";
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
import { mock, MockProxy } from "jest-mock-extended";
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { SymmetricCryptoKey } from "../src/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncryptionType } from "../src/platform/enums";
|
||||
import { Utils } from "../src/platform/misc/utils";
|
||||
|
||||
function newGuid() {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { OrgKey, UserPrivateKey } from "../../../types/key";
|
||||
import { EncryptedOrganizationKeyData } from "../data/encrypted-organization-key.data";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { EncryptedString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { KdfType } from "@bitwarden/key-management";
|
||||
|
||||
import { EncryptedString } from "../../../../key-management/crypto/models/domain/enc-string";
|
||||
import { KeysRequest } from "../../../../models/request/keys.request";
|
||||
|
||||
export class RegisterFinishRequest {
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { RotateableKeySet } from "../../../../../auth/src/common/models";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { RotateableKeySet } from "@bitwarden/auth/common";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
export class WebauthnRotateCredentialRequest {
|
||||
id: string;
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { DeviceType } from "../../../enums";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
|
||||
export class ProtectedDeviceResponse extends BaseResponse {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncString } from "../../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { BaseResponse } from "../../../../models/response/base.response";
|
||||
|
||||
export interface ITrustedDeviceUserDecryptionOptionServerResponse {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncString } from "../../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { BaseResponse } from "../../../../models/response/base.response";
|
||||
|
||||
export interface IWebAuthnPrfDecryptionOptionServerResponse {
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
import { ReplaySubject, Observable } from "rxjs";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { MasterKey, UserKey } from "../../../types/key";
|
||||
import { InternalMasterPasswordServiceAbstraction } from "../../abstractions/master-password.service.abstraction";
|
||||
|
||||
@@ -2,16 +2,17 @@
|
||||
// @ts-strict-ignore
|
||||
import { firstValueFrom, map, Observable } from "rxjs";
|
||||
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { KeyGenerationService } from "../../../key-management/crypto/abstractions/key-generation.service";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { KeyGenerationService } from "@bitwarden/common/key-management/crypto/abstractions/key-generation.service";
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import {
|
||||
EncryptedString,
|
||||
EncString,
|
||||
} from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
} from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { LogService } from "../../../platform/abstractions/log.service";
|
||||
import { StateService } from "../../../platform/abstractions/state.service";
|
||||
import { EncryptionType } from "../../../platform/enums";
|
||||
import {
|
||||
MASTER_PASSWORD_DISK,
|
||||
MASTER_PASSWORD_MEMORY,
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
UserDecryptionOptions,
|
||||
UserDecryptionOptionsServiceAbstraction,
|
||||
} from "@bitwarden/auth/common";
|
||||
import { HashPurpose } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import {
|
||||
BiometricsService,
|
||||
BiometricsStatus,
|
||||
@@ -20,7 +21,6 @@ import { KdfConfigService } from "../../../../../key-management/src/abstractions
|
||||
import { FakeAccountService, mockAccountServiceWith } from "../../../../spec";
|
||||
import { VaultTimeoutSettingsService } from "../../../abstractions/vault-timeout/vault-timeout-settings.service";
|
||||
import { I18nService } from "../../../platform/abstractions/i18n.service";
|
||||
import { HashPurpose } from "../../../platform/enums";
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { MasterKey } from "../../../types/key";
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { firstValueFrom, map } from "rxjs";
|
||||
|
||||
import { UserDecryptionOptionsServiceAbstraction } from "@bitwarden/auth/common";
|
||||
import { HashPurpose } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import {
|
||||
BiometricsService,
|
||||
BiometricsStatus,
|
||||
@@ -14,7 +15,6 @@ import {
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { PinServiceAbstraction } from "../../../../../auth/src/common/abstractions/pin.service.abstraction";
|
||||
import { I18nService } from "../../../platform/abstractions/i18n.service";
|
||||
import { HashPurpose } from "../../../platform/enums";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { AccountService } from "../../abstractions/account.service";
|
||||
import { InternalMasterPasswordServiceAbstraction } from "../../abstractions/master-password.service.abstraction";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { mock, MockProxy } from "jest-mock-extended";
|
||||
|
||||
import { CryptoFunctionService } from "../../../key-management/crypto/abstractions/crypto-function.service";
|
||||
import { CryptoFunctionService } from "@bitwarden/common/key-management/crypto/abstractions/crypto-function.service";
|
||||
|
||||
import { WebAuthnLoginPrfKeyService } from "./webauthn-login-prf-key.service";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { CryptoFunctionService } from "../../../key-management/crypto/abstractions/crypto-function.service";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { CryptoFunctionService } from "@bitwarden/common/key-management/crypto/abstractions/crypto-function.service";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { PrfKey } from "../../../types/key";
|
||||
import { WebAuthnLoginPrfKeyServiceAbstraction } from "../../abstractions/webauthn/webauthn-login-prf-key.service.abstraction";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
|
||||
import { LoginStrategyServiceAbstraction, WebAuthnLoginCredentials } from "@bitwarden/auth/common";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { LogService } from "../../../platform/abstractions/log.service";
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import { PrfKey } from "../../../types/key";
|
||||
|
||||
7
libs/common/src/key-management/crypto/enums/index.ts
Normal file
7
libs/common/src/key-management/crypto/enums/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export {
|
||||
EncryptionType,
|
||||
EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE,
|
||||
encryptionTypeToString,
|
||||
} from "./encryption-type.enum";
|
||||
export { HashPurpose } from "./hash-purpose.enum";
|
||||
export { KeySuffixOptions } from "./key-suffix-options.enum";
|
||||
@@ -1,4 +1,4 @@
|
||||
import { EncryptionType } from "../../../platform/enums";
|
||||
import { EncryptionType } from "../enums";
|
||||
|
||||
export interface Encrypted {
|
||||
encryptionType?: EncryptionType;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
|
||||
import { makeStaticByteArray } from "../../../../../spec";
|
||||
import { EncryptionType } from "../../../../platform/enums";
|
||||
|
||||
import { EncArrayBuffer } from "./enc-array-buffer";
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncryptionType } from "../../../../platform/enums";
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
|
||||
import { Utils } from "../../../../platform/misc/utils";
|
||||
import { Encrypted } from "../../interfaces/encrypted";
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import { mock, MockProxy } from "jest-mock-extended";
|
||||
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { KeyService } from "../../../../../../key-management/src/abstractions/key.service";
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { KeyService } from "@bitwarden/key-management";
|
||||
|
||||
import { makeEncString, makeStaticByteArray } from "../../../../../spec";
|
||||
import { EncryptionType } from "../../../../platform/enums";
|
||||
import { Utils } from "../../../../platform/misc/utils";
|
||||
import { ContainerService } from "../../../../platform/services/container.service";
|
||||
import { UserKey, OrgKey } from "../../../../types/key";
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify, Opaque } from "type-fest";
|
||||
|
||||
import { EncryptionType, EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE } from "../../../../platform/enums";
|
||||
import { Utils } from "../../../../platform/misc/utils";
|
||||
import { EncryptService } from "../../abstractions/encrypt.service";
|
||||
import { EncryptionType, EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE } from "../../enums";
|
||||
import { Encrypted } from "../../interfaces/encrypted";
|
||||
|
||||
import { SymmetricCryptoKey } from "./symmetric-crypto-key";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
|
||||
import { makeStaticByteArray } from "../../../../../spec";
|
||||
import { EncryptionType } from "../../../../platform/enums";
|
||||
|
||||
import { SymmetricCryptoKey } from "./symmetric-crypto-key";
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncryptionType } from "../../../../platform/enums";
|
||||
import { Utils } from "../../../../platform/misc/utils";
|
||||
import { EncryptionType } from "../../enums";
|
||||
|
||||
export class SymmetricCryptoKey {
|
||||
key: Uint8Array;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { LogService } from "../../../platform/abstractions/log.service";
|
||||
import {
|
||||
EncryptionType,
|
||||
encryptionTypeToString as encryptionTypeName,
|
||||
} from "../../../platform/enums";
|
||||
} from "@bitwarden/common/key-management/crypto/enums";
|
||||
|
||||
import { LogService } from "../../../platform/abstractions/log.service";
|
||||
import { InitializerMetadata } from "../../../platform/interfaces/initializer-metadata.interface";
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import { CryptoFunctionService } from "../abstractions/crypto-function.service";
|
||||
|
||||
@@ -2,10 +2,10 @@ import { mockReset, mock } from "jest-mock-extended";
|
||||
|
||||
import { makeStaticByteArray } from "../../../../spec";
|
||||
import { LogService } from "../../../platform/abstractions/log.service";
|
||||
import { EncryptionType } from "../../../platform/enums";
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import { CsprngArray } from "../../../types/csprng";
|
||||
import { CryptoFunctionService } from "../abstractions/crypto-function.service";
|
||||
import { EncryptionType } from "../enums";
|
||||
import { EncArrayBuffer } from "../models/domain/enc-array-buffer";
|
||||
import { EncString } from "../models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../models/domain/symmetric-crypto-key";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { FileUploadType } from "../../enums";
|
||||
|
||||
export abstract class FileUploadService {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
export * from "../../key-management/crypto/enums/encryption-type.enum";
|
||||
export * from "./file-upload-type.enum";
|
||||
export * from "../../key-management/crypto/enums/hash-purpose.enum";
|
||||
export * from "./html-storage-location.enum";
|
||||
export * from "../../key-management/crypto/enums/key-suffix-options.enum";
|
||||
export * from "./log-level-type.enum";
|
||||
export * from "./storage-location.enum";
|
||||
export * from "./theme-type.enum";
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { DeepJsonify } from "../../../types/deep-jsonify";
|
||||
import { Utils } from "../../misc/utils";
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { mock, MockProxy } from "jest-mock-extended";
|
||||
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { makeEncString, makeSymmetricCryptoKey } from "../../../../spec";
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { Utils } from "../../misc/utils";
|
||||
|
||||
import Domain from "./domain-base";
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// @ts-strict-ignore
|
||||
import { ConditionalExcept, ConditionalKeys, Constructor } from "type-fest";
|
||||
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { View } from "../../../models/view/view";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
|
||||
import { ApiService } from "../../../abstractions/api.service";
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { LogService } from "../../abstractions/log.service";
|
||||
import { Utils } from "../../misc/utils";
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
|
||||
import { Utils } from "../../misc/utils";
|
||||
|
||||
export class BitwardenFileUploadService {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { ApiService } from "../../../abstractions/api.service";
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import {
|
||||
FileUploadApiMethods,
|
||||
FileUploadService as FileUploadServiceAbstraction,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { EncryptedString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncryptedString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { ProviderId } from "../../../types/guid";
|
||||
import { CRYPTO_DISK, UserKeyDefinition } from "../../state";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncryptionType } from "../../enums";
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { Utils } from "../../misc/utils";
|
||||
|
||||
import { USER_ENCRYPTED_PRIVATE_KEY, USER_EVER_HAD_USER_KEY } from "./user-key.state";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { EncryptedString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncryptedString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { UserKey } from "../../../types/key";
|
||||
import { CRYPTO_DISK, CRYPTO_MEMORY, UserKeyDefinition } from "../../state";
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { mock, MockProxy } from "jest-mock-extended";
|
||||
import { BehaviorSubject, firstValueFrom, of } from "rxjs";
|
||||
|
||||
import { EncryptedString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { KdfConfigService, KeyService, PBKDF2KdfConfig } from "@bitwarden/key-management";
|
||||
import { BitwardenClient } from "@bitwarden/sdk-internal";
|
||||
|
||||
import { AccountInfo, AccountService } from "../../../auth/abstractions/account.service";
|
||||
import { EncryptedString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { UserKey } from "../../../types/key";
|
||||
import { Environment, EnvironmentService } from "../../abstractions/environment.service";
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
catchError,
|
||||
} from "rxjs";
|
||||
|
||||
import { EncryptedString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { KeyService, KdfConfigService, KdfConfig, KdfType } from "@bitwarden/key-management";
|
||||
import {
|
||||
BitwardenClient,
|
||||
@@ -23,7 +24,6 @@ import {
|
||||
import { EncryptedOrganizationKeyData } from "../../../admin-console/models/data/encrypted-organization-key.data";
|
||||
import { AccountInfo, AccountService } from "../../../auth/abstractions/account.service";
|
||||
import { DeviceType } from "../../../enums/device-type.enum";
|
||||
import { EncryptedString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { OrganizationId, UserId } from "../../../types/guid";
|
||||
import { UserKey } from "../../../types/key";
|
||||
import { Environment, EnvironmentService } from "../../abstractions/environment.service";
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { DefaultKeyService } from "../../../../key-management/src/key.service";
|
||||
import { SymmetricCryptoKey } from "../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { KeySuffixOptions } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { DefaultKeyService } from "@bitwarden/key-management";
|
||||
|
||||
import { CsprngArray } from "../../types/csprng";
|
||||
import { UserId } from "../../types/guid";
|
||||
import { UserKey } from "../../types/key";
|
||||
import { KeySuffixOptions } from "../enums";
|
||||
import { Utils } from "../misc/utils";
|
||||
|
||||
import { UserAutoUnlockKeyService } from "./user-auto-unlock-key.service";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { KeySuffixOptions } from "@bitwarden/common/key-management/crypto/enums";
|
||||
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { KeyService } from "../../../../key-management/src/abstractions/key.service";
|
||||
import { UserId } from "../../types/guid";
|
||||
import { KeySuffixOptions } from "../enums";
|
||||
|
||||
// TODO: this is a half measure improvement which allows us to reduce some side effects today (keyService.getUserKey setting user key in memory if auto key exists)
|
||||
// but ideally, in the future, we would be able to put this logic into the keyService
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncString } from "../../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../../platform/models/domain/domain-base";
|
||||
import { SendType } from "../../enums/send-type";
|
||||
import { SendAccessResponse } from "../response/send-access.response";
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../../platform/models/domain/domain-base";
|
||||
import { SendFileData } from "../data/send-file.data";
|
||||
import { SendFileView } from "../view/send-file.view";
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../../platform/models/domain/domain-base";
|
||||
import { SendTextData } from "../data/send-text.data";
|
||||
import { SendTextView } from "../view/send-text.view";
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { KeyService } from "@bitwarden/key-management";
|
||||
|
||||
import { makeStaticByteArray, mockEnc } from "../../../../../spec";
|
||||
import { EncryptService } from "../../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { SymmetricCryptoKey } from "../../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { ContainerService } from "../../../../platform/services/container.service";
|
||||
import { UserKey } from "../../../../types/key";
|
||||
import { SendType } from "../../enums/send-type";
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { Utils } from "../../../../platform/misc/utils";
|
||||
import Domain from "../../../../platform/models/domain/domain-base";
|
||||
import { SendType } from "../../enums/send-type";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { SymmetricCryptoKey } from "../../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { View } from "../../../../models/view/view";
|
||||
import { Utils } from "../../../../platform/misc/utils";
|
||||
import { DeepJsonify } from "../../../../types/deep-jsonify";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
|
||||
import { ListResponse } from "../../../models/response/list.response";
|
||||
import { Send } from "../models/domain/send";
|
||||
import { SendAccessRequest } from "../models/request/send-access.request";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
|
||||
import { ApiService } from "../../../abstractions/api.service";
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { ErrorResponse } from "../../../models/response/error.response";
|
||||
import { ListResponse } from "../../../models/response/list.response";
|
||||
import {
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// @ts-strict-ignore
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { UserKeyRotationDataProvider } from "@bitwarden/key-management";
|
||||
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { UserKey } from "../../../types/key";
|
||||
import { SendData } from "../models/data/send.data";
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
import { firstValueFrom, of } from "rxjs";
|
||||
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { KeyGenerationService } from "@bitwarden/common/key-management/crypto/abstractions/key-generation.service";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { KeyService } from "@bitwarden/key-management";
|
||||
|
||||
import {
|
||||
@@ -10,10 +14,6 @@ import {
|
||||
awaitAsync,
|
||||
mockAccountServiceWith,
|
||||
} from "../../../../spec";
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { KeyGenerationService } from "../../../key-management/crypto/abstractions/key-generation.service";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EnvironmentService } from "../../../platform/abstractions/environment.service";
|
||||
import { I18nService } from "../../../platform/abstractions/i18n.service";
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// @ts-strict-ignore
|
||||
import { Observable, concatMap, distinctUntilChanged, firstValueFrom, map } from "rxjs";
|
||||
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { KeyGenerationService } from "@bitwarden/common/key-management/crypto/abstractions/key-generation.service";
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { PBKDF2KdfConfig, KeyService } from "@bitwarden/key-management";
|
||||
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { KeyGenerationService } from "../../../key-management/crypto/abstractions/key-generation.service";
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { I18nService } from "../../../platform/abstractions/i18n.service";
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import { UserId } from "../../../types/guid";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncString } from "../../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { SendType } from "../../enums/send-type";
|
||||
import { SendTextApi } from "../../models/api/send-text.api";
|
||||
import { SendTextData } from "../../models/data/send-text.data";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { Cipher } from "../../models/domain/cipher";
|
||||
import { CipherResponse } from "../../models/response/cipher.response";
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { UserKeyRotationDataProvider } from "@bitwarden/key-management";
|
||||
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { UserKey } from "../../../types/key";
|
||||
import { FolderData } from "../../models/data/folder.data";
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
import { mock, MockProxy } from "jest-mock-extended";
|
||||
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { KeyService } from "../../../../../key-management/src/abstractions/key.service";
|
||||
import { makeStaticByteArray, mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import {
|
||||
EncryptedString,
|
||||
EncString,
|
||||
} from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
} from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { KeyService } from "@bitwarden/key-management";
|
||||
|
||||
import { makeStaticByteArray, mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { ContainerService } from "../../../platform/services/container.service";
|
||||
import { OrgKey, UserKey } from "../../../types/key";
|
||||
import { AttachmentData } from "../../models/data/attachment.data";
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { AttachmentData } from "../data/attachment.data";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import {
|
||||
EncryptedString,
|
||||
EncString,
|
||||
} from "../../../key-management/crypto/models/domain/enc-string";
|
||||
} from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { CardData } from "../../../vault/models/data/card.data";
|
||||
import { Card } from "../../models/domain/card";
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { CardData } from "../data/card.data";
|
||||
import { CardView } from "../view/card.view";
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { KeyService } from "../../../../../key-management/src/abstractions/key.service";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { InitializerKey } from "@bitwarden/common/key-management/crypto/enums/initializer-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { KeyService } from "@bitwarden/key-management";
|
||||
|
||||
import { makeStaticByteArray, mockEnc, mockFromJson } from "../../../../spec/utils";
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { InitializerKey } from "../../../key-management/crypto/enums/initializer-key";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { UriMatchStrategy } from "../../../models/domain/domain-service";
|
||||
import { ContainerService } from "../../../platform/services/container.service";
|
||||
import { UserId } from "../../../types/guid";
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { InitializerKey } from "../../../key-management/crypto/enums/initializer-key";
|
||||
import { Decryptable } from "../../../key-management/crypto/interfaces/decryptable.interface";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { InitializerKey } from "@bitwarden/common/key-management/crypto/enums/initializer-key";
|
||||
import { Decryptable } from "@bitwarden/common/key-management/crypto/interfaces/decryptable.interface";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { CipherRepromptType } from "../../enums/cipher-reprompt-type";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { EncryptionType } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { mockEnc } from "../../../../spec";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { EncryptionType } from "../../../platform/enums";
|
||||
import { Fido2CredentialData } from "../data/fido2-credential.data";
|
||||
|
||||
import { Fido2Credential } from "./fido2-credential";
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { Fido2CredentialData } from "../data/fido2-credential.data";
|
||||
import { Fido2CredentialView } from "../view/fido2-credential.view";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import {
|
||||
EncryptedString,
|
||||
EncString,
|
||||
} from "../../../key-management/crypto/models/domain/enc-string";
|
||||
} from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { FieldType } from "../../enums";
|
||||
import { FieldData } from "../../models/data/field.data";
|
||||
import { Field } from "../../models/domain/field";
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { FieldType, LinkedIdType } from "../../enums";
|
||||
import { FieldData } from "../data/field.data";
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { mock, MockProxy } from "jest-mock-extended";
|
||||
|
||||
import { makeEncString, makeSymmetricCryptoKey, mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import {
|
||||
EncryptedString,
|
||||
EncString,
|
||||
} from "../../../key-management/crypto/models/domain/enc-string";
|
||||
} from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { makeEncString, makeSymmetricCryptoKey, mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { FolderData } from "../../models/data/folder.data";
|
||||
import { Folder } from "../../models/domain/folder";
|
||||
|
||||
@@ -46,7 +47,7 @@ describe("Folder", () => {
|
||||
});
|
||||
|
||||
describe("fromJSON", () => {
|
||||
jest.mock("../../../key-management/crypto/models/domain/enc-string");
|
||||
jest.mock("@bitwarden/common/key-management/crypto/models/domain/enc-string");
|
||||
jest.spyOn(EncString, "fromJSON").mockImplementation(mockFromJson);
|
||||
|
||||
it("initializes nested objects", () => {
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { FolderData } from "../data/folder.data";
|
||||
import { FolderView } from "../view/folder.view";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import {
|
||||
EncryptedString,
|
||||
EncString,
|
||||
} from "../../../key-management/crypto/models/domain/enc-string";
|
||||
} from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { IdentityData } from "../../models/data/identity.data";
|
||||
import { Identity } from "../../models/domain/identity";
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { IdentityData } from "../data/identity.data";
|
||||
import { IdentityView } from "../view/identity.view";
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import { MockProxy, mock } from "jest-mock-extended";
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { UriMatchStrategy } from "../../../models/domain/domain-service";
|
||||
import { LoginUriData } from "../data/login-uri.data";
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { UriMatchStrategySetting } from "../../../models/domain/domain-service";
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { MockProxy, mock } from "jest-mock-extended";
|
||||
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import {
|
||||
EncryptedString,
|
||||
EncString,
|
||||
} from "../../../key-management/crypto/models/domain/enc-string";
|
||||
} from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { UriMatchStrategy, UriMatchStrategySetting } from "../../../models/domain/domain-service";
|
||||
import { LoginData } from "../../models/data/login.data";
|
||||
import { Login } from "../../models/domain/login";
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { LoginData } from "../data/login.data";
|
||||
import { LoginView } from "../view/login.view";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import {
|
||||
EncryptedString,
|
||||
EncString,
|
||||
} from "../../../key-management/crypto/models/domain/enc-string";
|
||||
} from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
|
||||
import { mockEnc, mockFromJson } from "../../../../spec";
|
||||
import { PasswordHistoryData } from "../../models/data/password-history.data";
|
||||
import { Password } from "../../models/domain/password";
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { PasswordHistoryData } from "../data/password-history.data";
|
||||
import { PasswordHistoryView } from "../view/password-history.view";
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { SecureNoteType } from "../../enums";
|
||||
import { SecureNoteData } from "../data/secure-note.data";
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import Domain from "../../../platform/models/domain/domain-base";
|
||||
import { SshKeyData } from "../data/ssh-key.data";
|
||||
import { SshKeyView } from "../view/ssh-key.view";
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { mockFromJson } from "../../../../spec";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { AttachmentView } from "./attachment.view";
|
||||
|
||||
jest.mock("../../../key-management/crypto/models/domain/symmetric-crypto-key");
|
||||
jest.mock("@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key");
|
||||
|
||||
describe("AttachmentView", () => {
|
||||
it("fromJSON initializes nested objects", () => {
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { View } from "../../../models/view/view";
|
||||
import { Attachment } from "../domain/attachment";
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { InitializerKey } from "../../../key-management/crypto/enums/initializer-key";
|
||||
import { InitializerKey } from "@bitwarden/common/key-management/crypto/enums/initializer-key";
|
||||
|
||||
import { View } from "../../../models/view/view";
|
||||
import { InitializerMetadata } from "../../../platform/interfaces/initializer-metadata.interface";
|
||||
import { DeepJsonify } from "../../../types/deep-jsonify";
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { EncArrayBuffer } from "@bitwarden/common/key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { ApiService } from "../../../abstractions/api.service";
|
||||
import { EncArrayBuffer } from "../../../key-management/crypto/models/domain/enc-array-buffer";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { ErrorResponse } from "../../../models/response/error.response";
|
||||
import {
|
||||
FileUploadApiMethods,
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
import { mock, MockProxy } from "jest-mock-extended";
|
||||
import { BehaviorSubject, firstValueFrom } from "rxjs";
|
||||
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { KeyService } from "../../../../../key-management/src/abstractions/key.service";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "@bitwarden/common/key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { KeyService } from "@bitwarden/key-management";
|
||||
|
||||
import { makeEncString } from "../../../../spec";
|
||||
import { FakeAccountService, mockAccountServiceWith } from "../../../../spec/fake-account-service";
|
||||
import { FakeSingleUserState } from "../../../../spec/fake-state";
|
||||
import { FakeStateProvider } from "../../../../spec/fake-state-provider";
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { EncString } from "../../../key-management/crypto/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { I18nService } from "../../../platform/abstractions/i18n.service";
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import { UserId } from "../../../types/guid";
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
// @ts-strict-ignore
|
||||
import { Observable, Subject, firstValueFrom, map, shareReplay, switchMap, merge } from "rxjs";
|
||||
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { Utils } from ".././../../platform/misc/utils";
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { KeyService } from "../../../../../key-management/src/abstractions/key.service";
|
||||
import { EncryptService } from "../../../key-management/crypto/abstractions/encrypt.service";
|
||||
import { SymmetricCryptoKey } from "../../../key-management/crypto/models/domain/symmetric-crypto-key";
|
||||
import { I18nService } from "../../../platform/abstractions/i18n.service";
|
||||
import { StateProvider } from "../../../platform/state";
|
||||
import { UserId } from "../../../types/guid";
|
||||
|
||||
@@ -21,7 +21,7 @@ import { ProfileProviderOrganizationResponse } from "../../../common/src/admin-c
|
||||
import { ProfileProviderResponse } from "../../../common/src/admin-console/models/response/profile-provider.response";
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { KeySuffixOptions, HashPurpose } from "../../../common/src/platform/enums";
|
||||
import { KeySuffixOptions, HashPurpose } from "../../../common/src/key-management/crypto/enums";
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { OrganizationId, UserId } from "../../../common/src/types/guid";
|
||||
|
||||
@@ -15,6 +15,7 @@ import {
|
||||
import { CryptoFunctionService } from "@bitwarden/common/key-management/crypto/abstractions/crypto-function.service";
|
||||
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
|
||||
import { KeyGenerationService } from "@bitwarden/common/key-management/crypto/abstractions/key-generation.service";
|
||||
import { HashPurpose, KeySuffixOptions } from "@bitwarden/common/key-management/crypto/enums";
|
||||
import {
|
||||
EncString,
|
||||
EncryptedString,
|
||||
@@ -56,9 +57,6 @@ import { PlatformUtilsService } from "../../common/src/platform/abstractions/pla
|
||||
import { StateService } from "../../common/src/platform/abstractions/state.service";
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { KeySuffixOptions, HashPurpose } from "../../common/src/platform/enums";
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { convertValues } from "../../common/src/platform/misc/convert-values";
|
||||
// FIXME: remove `src` and fix import
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
|
||||
Reference in New Issue
Block a user