mirror of
https://github.com/bitwarden/browser
synced 2025-01-28 20:19:49 +01:00
Renamed folders: ./apps/desktop/src/models/nativeMessaging ./apps/desktop/src/models/nativeMessaging/encryptedMessagePayloads ./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses Renamed all files Cleaned up entries in whitelist-capital-letters.txt
This commit is contained in:
parent
175eef5376
commit
db2d8aaa7e
36
.github/whitelist-capital-letters.txt
vendored
36
.github/whitelist-capital-letters.txt
vendored
@ -4,9 +4,6 @@
|
||||
./apps/browser/src/safari/desktop/Base.lproj
|
||||
./apps/browser/src/services/vaultTimeout
|
||||
./apps/browser/store/windows/Assets
|
||||
./apps/desktop/src/models/nativeMessaging
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessagePayloads
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses
|
||||
./libs/common/spec/misc/logInStrategies
|
||||
./libs/common/src/abstractions/fileDownload
|
||||
./libs/common/src/abstractions/userVerification
|
||||
@ -179,42 +176,9 @@
|
||||
./apps/desktop/resources/appx/StoreLogo.png
|
||||
./apps/desktop/resources/appx/Wide310x150Logo.png
|
||||
./apps/desktop/resources/appx/Square44x44Logo.png
|
||||
./apps/desktop/native-messaging-test-runner/src/ipcService.ts
|
||||
./apps/desktop/native-messaging-test-runner/src/nativeMessageService.ts
|
||||
./apps/desktop/native-messaging-test-runner/src/logUtils.ts
|
||||
./apps/desktop/README.md
|
||||
./apps/desktop/desktop_native/Cargo.toml
|
||||
./apps/desktop/desktop_native/Cargo.lock
|
||||
./apps/desktop/src/app/services/desktopFileDownloadService.ts
|
||||
./apps/desktop/src/models/nativeMessaging/unencryptedCommand.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessage.ts
|
||||
./apps/desktop/src/models/nativeMessaging/legacyMessageWrapper.ts
|
||||
./apps/desktop/src/models/nativeMessaging/unencryptedMessage.ts
|
||||
./apps/desktop/src/models/nativeMessaging/unencryptedMessageResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedCommand.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses/successStatusResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses/generateResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses/failureStatusResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses/cannotDecryptErrorResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses/userStatusErrorResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses/accountStatusResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses/encryptedMessageResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses/cipherResponse.ts
|
||||
./apps/desktop/src/models/nativeMessaging/decryptedCommandData.ts
|
||||
./apps/desktop/src/models/nativeMessaging/messageCommon.ts
|
||||
./apps/desktop/src/models/nativeMessaging/legacyMessage.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessagePayloads/credentialUpdatePayload.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessagePayloads/passwordGeneratePayload.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessagePayloads/credentialCreatePayload.ts
|
||||
./apps/desktop/src/models/nativeMessaging/encryptedMessagePayloads/credentialRetrievePayload.ts
|
||||
./apps/desktop/src/main/desktopCredentialStorageListener.ts
|
||||
./apps/desktop/src/main/powerMonitor.main.ts
|
||||
./apps/desktop/src/main/nativeMessaging.main.ts
|
||||
./apps/desktop/src/services/passwordReprompt.service.ts
|
||||
./apps/desktop/src/services/encryptedMessageHandlerService.ts
|
||||
./apps/desktop/src/services/nativeMessaging.service.ts
|
||||
./apps/desktop/src/services/nativeMessageHandler.service.ts
|
||||
./apps/cli/stores/chocolatey/tools/VERIFICATION.txt
|
||||
./apps/cli/README.md
|
||||
./apps/browser/README.md
|
||||
|
@ -5,9 +5,9 @@ import { hideBin } from "yargs/helpers";
|
||||
|
||||
import { NativeMessagingVersion } from "@bitwarden/common/enums/nativeMessagingVersion";
|
||||
|
||||
import { CredentialCreatePayload } from "../../../src/models/nativeMessaging/encryptedMessagePayloads/credentialCreatePayload";
|
||||
import { LogUtils } from "../logUtils";
|
||||
import NativeMessageService from "../nativeMessageService";
|
||||
import { CredentialCreatePayload } from "../../../src/models/native-messaging/encrypted-message-payloads/credential-create-payload";
|
||||
import { LogUtils } from "../log-utils";
|
||||
import NativeMessageService from "../native-message.service";
|
||||
import * as config from "../variables";
|
||||
|
||||
const argv: any = yargs(hideBin(process.argv)).option("name", {
|
||||
|
@ -5,8 +5,8 @@ import { hideBin } from "yargs/helpers";
|
||||
|
||||
import { NativeMessagingVersion } from "@bitwarden/common/enums/nativeMessagingVersion";
|
||||
|
||||
import { LogUtils } from "../logUtils";
|
||||
import NativeMessageService from "../nativeMessageService";
|
||||
import { LogUtils } from "../log-utils";
|
||||
import NativeMessageService from "../native-message.service";
|
||||
import * as config from "../variables";
|
||||
|
||||
const argv: any = yargs(hideBin(process.argv)).option("uri", {
|
||||
|
@ -5,9 +5,9 @@ import { hideBin } from "yargs/helpers";
|
||||
|
||||
import { NativeMessagingVersion } from "@bitwarden/common/enums/nativeMessagingVersion";
|
||||
|
||||
import { CredentialUpdatePayload } from "../../../src/models/nativeMessaging/encryptedMessagePayloads/credentialUpdatePayload";
|
||||
import { LogUtils } from "../logUtils";
|
||||
import NativeMessageService from "../nativeMessageService";
|
||||
import { CredentialUpdatePayload } from "../../../src/models/native-messaging/encrypted-message-payloads/credential-update-payload";
|
||||
import { LogUtils } from "../log-utils";
|
||||
import NativeMessageService from "../native-message.service";
|
||||
import * as config from "../variables";
|
||||
|
||||
// Command line arguments
|
||||
|
@ -5,8 +5,8 @@ import { hideBin } from "yargs/helpers";
|
||||
|
||||
import { NativeMessagingVersion } from "@bitwarden/common/enums/nativeMessagingVersion";
|
||||
|
||||
import { LogUtils } from "../logUtils";
|
||||
import NativeMessageService from "../nativeMessageService";
|
||||
import { LogUtils } from "../log-utils";
|
||||
import NativeMessageService from "../native-message.service";
|
||||
import * as config from "../variables";
|
||||
|
||||
const argv: any = yargs(hideBin(process.argv)).option("userId", {
|
||||
|
@ -2,8 +2,8 @@ import "module-alias/register";
|
||||
|
||||
import { NativeMessagingVersion } from "@bitwarden/common/enums/nativeMessagingVersion";
|
||||
|
||||
import { LogUtils } from "../logUtils";
|
||||
import NativeMessageService from "../nativeMessageService";
|
||||
import { LogUtils } from "../log-utils";
|
||||
import NativeMessageService from "../native-message.service";
|
||||
import * as config from "../variables";
|
||||
|
||||
(async () => {
|
||||
|
@ -2,8 +2,8 @@ import "module-alias/register";
|
||||
|
||||
import { NativeMessagingVersion } from "@bitwarden/common/enums/nativeMessagingVersion";
|
||||
|
||||
import { LogUtils } from "../logUtils";
|
||||
import NativeMessageService from "../nativeMessageService";
|
||||
import { LogUtils } from "../log-utils";
|
||||
import NativeMessageService from "../native-message.service";
|
||||
import * as config from "../variables";
|
||||
|
||||
(async () => {
|
||||
|
@ -2,8 +2,8 @@ import { homedir } from "os";
|
||||
|
||||
import * as NodeIPC from "node-ipc";
|
||||
|
||||
import { MessageCommon } from "../../src/models/nativeMessaging/messageCommon";
|
||||
import { UnencryptedMessageResponse } from "../../src/models/nativeMessaging/unencryptedMessageResponse";
|
||||
import { MessageCommon } from "../../src/models/native-messaging/message-common";
|
||||
import { UnencryptedMessageResponse } from "../../src/models/native-messaging/unencrypted-message-response";
|
||||
|
||||
import Deferred from "./deferred";
|
||||
import { race } from "./race";
|
@ -9,16 +9,16 @@ import { ConsoleLogService } from "@bitwarden/common/services/consoleLog.service
|
||||
import { EncryptServiceImplementation } from "@bitwarden/common/services/cryptography/encrypt.service.implementation";
|
||||
import { NodeCryptoFunctionService } from "@bitwarden/node/services/node-crypto-function.service";
|
||||
|
||||
import { DecryptedCommandData } from "../../src/models/nativeMessaging/decryptedCommandData";
|
||||
import { EncryptedMessage } from "../../src/models/nativeMessaging/encryptedMessage";
|
||||
import { CredentialCreatePayload } from "../../src/models/nativeMessaging/encryptedMessagePayloads/credentialCreatePayload";
|
||||
import { CredentialUpdatePayload } from "../../src/models/nativeMessaging/encryptedMessagePayloads/credentialUpdatePayload";
|
||||
import { EncryptedMessageResponse } from "../../src/models/nativeMessaging/encryptedMessageResponse";
|
||||
import { MessageCommon } from "../../src/models/nativeMessaging/messageCommon";
|
||||
import { UnencryptedMessage } from "../../src/models/nativeMessaging/unencryptedMessage";
|
||||
import { UnencryptedMessageResponse } from "../../src/models/nativeMessaging/unencryptedMessageResponse";
|
||||
import { DecryptedCommandData } from "../../src/models/native-messaging/decrypted-command-data";
|
||||
import { EncryptedMessage } from "../../src/models/native-messaging/encrypted-message";
|
||||
import { CredentialCreatePayload } from "../../src/models/native-messaging/encrypted-message-payloads/credential-create-payload";
|
||||
import { CredentialUpdatePayload } from "../../src/models/native-messaging/encrypted-message-payloads/credential-update-payload";
|
||||
import { EncryptedMessageResponse } from "../../src/models/native-messaging/encrypted-message-response";
|
||||
import { MessageCommon } from "../../src/models/native-messaging/message-common";
|
||||
import { UnencryptedMessage } from "../../src/models/native-messaging/unencrypted-message";
|
||||
import { UnencryptedMessageResponse } from "../../src/models/native-messaging/unencrypted-message-response";
|
||||
|
||||
import IPCService, { IPCOptions } from "./ipcService";
|
||||
import IPCService, { IPCOptions } from "./ipc.service";
|
||||
import * as config from "./variables";
|
||||
|
||||
type HandshakeResponse = {
|
@ -18,7 +18,7 @@ import { EventService } from "@bitwarden/common/services/event.service";
|
||||
import { VaultTimeoutService } from "@bitwarden/common/services/vaultTimeout/vaultTimeout.service";
|
||||
|
||||
import { I18nService } from "../../services/i18n.service";
|
||||
import { NativeMessagingService } from "../../services/nativeMessaging.service";
|
||||
import { NativeMessagingService } from "../../services/native-messaging.service";
|
||||
|
||||
@Injectable()
|
||||
export class InitService {
|
||||
|
@ -47,17 +47,17 @@ import { ElectronRendererSecureStorageService } from "@bitwarden/electron/servic
|
||||
import { ElectronRendererStorageService } from "@bitwarden/electron/services/electronRendererStorage.service";
|
||||
|
||||
import { Account } from "../../models/account";
|
||||
import { EncryptedMessageHandlerService } from "../../services/encryptedMessageHandlerService";
|
||||
import { EncryptedMessageHandlerService } from "../../services/encrypted-message-handler.service";
|
||||
import { I18nService } from "../../services/i18n.service";
|
||||
import { NativeMessageHandlerService } from "../../services/nativeMessageHandler.service";
|
||||
import { NativeMessagingService } from "../../services/nativeMessaging.service";
|
||||
import { PasswordRepromptService } from "../../services/passwordReprompt.service";
|
||||
import { NativeMessageHandlerService } from "../../services/native-message-handler.service";
|
||||
import { NativeMessagingService } from "../../services/native-messaging.service";
|
||||
import { PasswordRepromptService } from "../../services/password-reprompt.service";
|
||||
import { StateService } from "../../services/state.service";
|
||||
import { LoginGuard } from "../guards/login.guard";
|
||||
import { SearchBarService } from "../layout/search/search-bar.service";
|
||||
|
||||
import { DesktopFileDownloadService } from "./desktop-file-download.service";
|
||||
import { DesktopThemingService } from "./desktop-theming.service";
|
||||
import { DesktopFileDownloadService } from "./desktopFileDownloadService";
|
||||
import { InitService } from "./init.service";
|
||||
|
||||
const RELOAD_CALLBACK = new InjectionToken<() => any>("RELOAD_CALLBACK");
|
||||
|
@ -14,11 +14,11 @@ import { UpdaterMain } from "@bitwarden/electron/updater.main";
|
||||
import { WindowMain } from "@bitwarden/electron/window.main";
|
||||
|
||||
import { BiometricMain } from "./main/biometric/biometric.main";
|
||||
import { DesktopCredentialStorageListener } from "./main/desktopCredentialStorageListener";
|
||||
import { DesktopCredentialStorageListener } from "./main/desktop-credential-storage-listener";
|
||||
import { MenuMain } from "./main/menu/menu.main";
|
||||
import { MessagingMain } from "./main/messaging.main";
|
||||
import { NativeMessagingMain } from "./main/nativeMessaging.main";
|
||||
import { PowerMonitorMain } from "./main/powerMonitor.main";
|
||||
import { NativeMessagingMain } from "./main/native-messaging.main";
|
||||
import { PowerMonitorMain } from "./main/power-monitor.main";
|
||||
import { Account } from "./models/account";
|
||||
import { I18nService } from "./services/i18n.service";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { EncryptedCommand } from "./encryptedCommand";
|
||||
import { EncryptedCommand } from "./encrypted-command";
|
||||
|
||||
export type DecryptedCommandData = {
|
||||
command: EncryptedCommand;
|
@ -1,6 +1,6 @@
|
||||
import { EncString } from "@bitwarden/common/models/domain/enc-string";
|
||||
|
||||
import { MessageCommon } from "./messageCommon";
|
||||
import { MessageCommon } from "./message-common";
|
||||
|
||||
export type EncryptedMessageResponse = MessageCommon & {
|
||||
encryptedPayload: EncString;
|
@ -0,0 +1,16 @@
|
||||
import { AccountStatusResponse } from "./account-status-response";
|
||||
import { CannotDecryptErrorResponse } from "./cannot-decrypt-error-response";
|
||||
import { CipherResponse } from "./cipher-response";
|
||||
import { FailureStatusResponse } from "./failure-status-response";
|
||||
import { GenerateResponse } from "./generate-response";
|
||||
import { SuccessStatusResponse } from "./success-status-response";
|
||||
import { UserStatusErrorResponse } from "./user-status-error-response";
|
||||
|
||||
export type EncyptedMessageResponse =
|
||||
| AccountStatusResponse[]
|
||||
| CannotDecryptErrorResponse
|
||||
| CipherResponse[]
|
||||
| FailureStatusResponse
|
||||
| GenerateResponse
|
||||
| SuccessStatusResponse
|
||||
| UserStatusErrorResponse;
|
@ -1,6 +1,6 @@
|
||||
import { EncString } from "@bitwarden/common/models/domain/enc-string";
|
||||
|
||||
import { MessageCommon } from "./messageCommon";
|
||||
import { MessageCommon } from "./message-common";
|
||||
|
||||
export type EncryptedMessage = MessageCommon & {
|
||||
// Will decrypt to a DecryptedCommandData object
|
25
apps/desktop/src/models/native-messaging/index.ts
Normal file
25
apps/desktop/src/models/native-messaging/index.ts
Normal file
@ -0,0 +1,25 @@
|
||||
export * from "./encrypted-message-payloads/credential-create-payload";
|
||||
export * from "./encrypted-message-payloads/credential-retrieve-payload";
|
||||
export * from "./encrypted-message-payloads/credential-update-payload";
|
||||
export * from "./encrypted-message-payloads/password-generate-payload";
|
||||
|
||||
export * from "./encrypted-message-responses/account-status-response";
|
||||
export * from "./encrypted-message-responses/cannot-decrypt-error-response";
|
||||
export * from "./encrypted-message-responses/cipher-response";
|
||||
export * from "./encrypted-message-responses/encrypted-message-response";
|
||||
export * from "./encrypted-message-responses/failure-status-response";
|
||||
export * from "./encrypted-message-responses/generate-response";
|
||||
export * from "./encrypted-message-responses/success-status-response";
|
||||
export * from "./encrypted-message-responses/user-status-error-response";
|
||||
|
||||
export * from "./decrypted-command-data";
|
||||
export * from "./encrypted-command";
|
||||
export * from "./encrypted-message";
|
||||
export * from "./encrypted-message-response";
|
||||
export * from "./legacy-message";
|
||||
export * from "./legacy-message-wrapper";
|
||||
export * from "./message";
|
||||
export * from "./message-common";
|
||||
export * from "./unencrypted-command";
|
||||
export * from "./unencrypted-message";
|
||||
export * from "./unencrypted-message-response";
|
@ -1,6 +1,6 @@
|
||||
import { EncString } from "@bitwarden/common/models/domain/enc-string";
|
||||
|
||||
import { LegacyMessage } from "./legacyMessage";
|
||||
import { LegacyMessage } from "./legacy-message";
|
||||
|
||||
export type LegacyMessageWrapper = {
|
||||
message: LegacyMessage | EncString;
|
4
apps/desktop/src/models/native-messaging/message.ts
Normal file
4
apps/desktop/src/models/native-messaging/message.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { EncryptedMessage } from "./encrypted-message";
|
||||
import { UnencryptedMessage } from "./unencrypted-message";
|
||||
|
||||
export type Message = UnencryptedMessage | EncryptedMessage;
|
@ -1,4 +1,4 @@
|
||||
import { MessageCommon } from "./messageCommon";
|
||||
import { MessageCommon } from "./message-common";
|
||||
|
||||
export type UnencryptedMessageResponse = MessageCommon &
|
||||
(
|
@ -1,5 +1,5 @@
|
||||
import { MessageCommon } from "./messageCommon";
|
||||
import { UnencryptedCommand } from "./unencryptedCommand";
|
||||
import { MessageCommon } from "./message-common";
|
||||
import { UnencryptedCommand } from "./unencrypted-command";
|
||||
|
||||
export type UnencryptedMessage = MessageCommon & {
|
||||
command: UnencryptedCommand;
|
@ -1,16 +0,0 @@
|
||||
import { AccountStatusResponse } from "./accountStatusResponse";
|
||||
import { CannotDecryptErrorResponse } from "./cannotDecryptErrorResponse";
|
||||
import { CipherResponse } from "./cipherResponse";
|
||||
import { FailureStatusResponse } from "./failureStatusResponse";
|
||||
import { GenerateResponse } from "./generateResponse";
|
||||
import { SuccessStatusResponse } from "./successStatusResponse";
|
||||
import { UserStatusErrorResponse } from "./userStatusErrorResponse";
|
||||
|
||||
export type EncyptedMessageResponse =
|
||||
| AccountStatusResponse[]
|
||||
| CannotDecryptErrorResponse
|
||||
| CipherResponse[]
|
||||
| FailureStatusResponse
|
||||
| GenerateResponse
|
||||
| SuccessStatusResponse
|
||||
| UserStatusErrorResponse;
|
@ -1,25 +0,0 @@
|
||||
export * from "./encryptedMessagePayloads/credentialCreatePayload";
|
||||
export * from "./encryptedMessagePayloads/credentialRetrievePayload";
|
||||
export * from "./encryptedMessagePayloads/credentialUpdatePayload";
|
||||
export * from "./encryptedMessagePayloads/passwordGeneratePayload";
|
||||
|
||||
export * from "./encryptedMessageResponses/accountStatusResponse";
|
||||
export * from "./encryptedMessageResponses/cannotDecryptErrorResponse";
|
||||
export * from "./encryptedMessageResponses/cipherResponse";
|
||||
export * from "./encryptedMessageResponses/encryptedMessageResponse";
|
||||
export * from "./encryptedMessageResponses/failureStatusResponse";
|
||||
export * from "./encryptedMessageResponses/generateResponse";
|
||||
export * from "./encryptedMessageResponses/successStatusResponse";
|
||||
export * from "./encryptedMessageResponses/userStatusErrorResponse";
|
||||
|
||||
export * from "./decryptedCommandData";
|
||||
export * from "./encryptedCommand";
|
||||
export * from "./encryptedMessage";
|
||||
export * from "./encryptedMessageResponse";
|
||||
export * from "./legacyMessage";
|
||||
export * from "./legacyMessageWrapper";
|
||||
export * from "./message";
|
||||
export * from "./messageCommon";
|
||||
export * from "./unencryptedCommand";
|
||||
export * from "./unencryptedMessage";
|
||||
export * from "./unencryptedMessageResponse";
|
@ -1,4 +0,0 @@
|
||||
import { EncryptedMessage } from "./encryptedMessage";
|
||||
import { UnencryptedMessage } from "./unencryptedMessage";
|
||||
|
||||
export type Message = UnencryptedMessage | EncryptedMessage;
|
@ -12,18 +12,18 @@ import { CipherView } from "@bitwarden/common/models/view/cipher.view";
|
||||
import { LoginUriView } from "@bitwarden/common/models/view/login-uri.view";
|
||||
import { LoginView } from "@bitwarden/common/models/view/login.view";
|
||||
|
||||
import { DecryptedCommandData } from "../models/nativeMessaging/decryptedCommandData";
|
||||
import { CredentialCreatePayload } from "../models/nativeMessaging/encryptedMessagePayloads/credentialCreatePayload";
|
||||
import { CredentialRetrievePayload } from "../models/nativeMessaging/encryptedMessagePayloads/credentialRetrievePayload";
|
||||
import { CredentialUpdatePayload } from "../models/nativeMessaging/encryptedMessagePayloads/credentialUpdatePayload";
|
||||
import { PasswordGeneratePayload } from "../models/nativeMessaging/encryptedMessagePayloads/passwordGeneratePayload";
|
||||
import { AccountStatusResponse } from "../models/nativeMessaging/encryptedMessageResponses/accountStatusResponse";
|
||||
import { CipherResponse } from "../models/nativeMessaging/encryptedMessageResponses/cipherResponse";
|
||||
import { EncyptedMessageResponse } from "../models/nativeMessaging/encryptedMessageResponses/encryptedMessageResponse";
|
||||
import { FailureStatusResponse } from "../models/nativeMessaging/encryptedMessageResponses/failureStatusResponse";
|
||||
import { GenerateResponse } from "../models/nativeMessaging/encryptedMessageResponses/generateResponse";
|
||||
import { SuccessStatusResponse } from "../models/nativeMessaging/encryptedMessageResponses/successStatusResponse";
|
||||
import { UserStatusErrorResponse } from "../models/nativeMessaging/encryptedMessageResponses/userStatusErrorResponse";
|
||||
import { DecryptedCommandData } from "../models/native-messaging/decrypted-command-data";
|
||||
import { CredentialCreatePayload } from "../models/native-messaging/encrypted-message-payloads/credential-create-payload";
|
||||
import { CredentialRetrievePayload } from "../models/native-messaging/encrypted-message-payloads/credential-retrieve-payload";
|
||||
import { CredentialUpdatePayload } from "../models/native-messaging/encrypted-message-payloads/credential-update-payload";
|
||||
import { PasswordGeneratePayload } from "../models/native-messaging/encrypted-message-payloads/password-generate-payload";
|
||||
import { AccountStatusResponse } from "../models/native-messaging/encrypted-message-responses/account-status-response";
|
||||
import { CipherResponse } from "../models/native-messaging/encrypted-message-responses/cipher-response";
|
||||
import { EncyptedMessageResponse } from "../models/native-messaging/encrypted-message-responses/encrypted-message-response";
|
||||
import { FailureStatusResponse } from "../models/native-messaging/encrypted-message-responses/failure-status-response";
|
||||
import { GenerateResponse } from "../models/native-messaging/encrypted-message-responses/generate-response";
|
||||
import { SuccessStatusResponse } from "../models/native-messaging/encrypted-message-responses/success-status-response";
|
||||
import { UserStatusErrorResponse } from "../models/native-messaging/encrypted-message-responses/user-status-error-response";
|
||||
|
||||
import { StateService } from "./state.service";
|
||||
|
@ -12,14 +12,14 @@ import { EncString } from "@bitwarden/common/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/models/domain/symmetric-crypto-key";
|
||||
import { StateService } from "@bitwarden/common/services/state.service";
|
||||
|
||||
import { DecryptedCommandData } from "../models/nativeMessaging/decryptedCommandData";
|
||||
import { EncryptedMessage } from "../models/nativeMessaging/encryptedMessage";
|
||||
import { EncryptedMessageResponse } from "../models/nativeMessaging/encryptedMessageResponse";
|
||||
import { Message } from "../models/nativeMessaging/message";
|
||||
import { UnencryptedMessage } from "../models/nativeMessaging/unencryptedMessage";
|
||||
import { UnencryptedMessageResponse } from "../models/nativeMessaging/unencryptedMessageResponse";
|
||||
import { DecryptedCommandData } from "../models/native-messaging/decrypted-command-data";
|
||||
import { EncryptedMessage } from "../models/native-messaging/encrypted-message";
|
||||
import { EncryptedMessageResponse } from "../models/native-messaging/encrypted-message-response";
|
||||
import { Message } from "../models/native-messaging/message";
|
||||
import { UnencryptedMessage } from "../models/native-messaging/unencrypted-message";
|
||||
import { UnencryptedMessageResponse } from "../models/native-messaging/unencrypted-message-response";
|
||||
|
||||
import { EncryptedMessageHandlerService } from "./encryptedMessageHandlerService";
|
||||
import { EncryptedMessageHandlerService } from "./encrypted-message-handler.service";
|
||||
|
||||
const EncryptionAlgorithm = "sha1";
|
||||
|
@ -15,11 +15,11 @@ import { Utils } from "@bitwarden/common/misc/utils";
|
||||
import { EncString } from "@bitwarden/common/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "@bitwarden/common/models/domain/symmetric-crypto-key";
|
||||
|
||||
import { LegacyMessage } from "../models/nativeMessaging/legacyMessage";
|
||||
import { LegacyMessageWrapper } from "../models/nativeMessaging/legacyMessageWrapper";
|
||||
import { Message } from "../models/nativeMessaging/message";
|
||||
import { LegacyMessage } from "../models/native-messaging/legacy-message";
|
||||
import { LegacyMessageWrapper } from "../models/native-messaging/legacy-message-wrapper";
|
||||
import { Message } from "../models/native-messaging/message";
|
||||
|
||||
import { NativeMessageHandlerService } from "./nativeMessageHandler.service";
|
||||
import { NativeMessageHandlerService } from "./native-message-handler.service";
|
||||
|
||||
const MessageValidTimeout = 10 * 1000;
|
||||
const EncryptionAlgorithm = "sha1";
|
Loading…
x
Reference in New Issue
Block a user