diff --git a/jslib/angular/src/components/callout.component.html b/jslib/angular/src/components/callout.component.html
index 55e9510c..a049d5cb 100644
--- a/jslib/angular/src/components/callout.component.html
+++ b/jslib/angular/src/components/callout.component.html
@@ -12,10 +12,10 @@
{{ enforcedPolicyMessage }}
- 0">
- {{ "policyInEffectMinComplexity" | i18n : getPasswordScoreAlertDisplay() }}
+ {{ "policyInEffectMinComplexity" | i18n: getPasswordScoreAlertDisplay() }}
- 0">
- {{ "policyInEffectMinLength" | i18n : enforcedPolicyOptions?.minLength.toString() }}
+ {{ "policyInEffectMinLength" | i18n: enforcedPolicyOptions?.minLength.toString() }}
-
{{ "policyInEffectUppercase" | i18n }}
@@ -27,7 +27,7 @@
{{ "policyInEffectNumbers" | i18n }}
-
- {{ "policyInEffectSpecial" | i18n : "!@#$%^&*" }}
+ {{ "policyInEffectSpecial" | i18n: "!@#$%^&*" }}
diff --git a/jslib/angular/src/components/environment.component.ts b/jslib/angular/src/components/environment.component.ts
index 17fa2ceb..96d77205 100644
--- a/jslib/angular/src/components/environment.component.ts
+++ b/jslib/angular/src/components/environment.component.ts
@@ -19,7 +19,7 @@ export class EnvironmentComponent {
constructor(
protected platformUtilsService: PlatformUtilsService,
protected environmentService: EnvironmentService,
- protected i18nService: I18nService
+ protected i18nService: I18nService,
) {
const urls = this.environmentService.getUrls();
diff --git a/jslib/angular/src/components/icon.component.ts b/jslib/angular/src/components/icon.component.ts
index 2fa45197..1af48983 100644
--- a/jslib/angular/src/components/icon.component.ts
+++ b/jslib/angular/src/components/icon.component.ts
@@ -34,7 +34,10 @@ export class IconComponent implements OnChanges {
private iconsUrl: string;
- constructor(environmentService: EnvironmentService, private stateService: StateService) {
+ constructor(
+ environmentService: EnvironmentService,
+ private stateService: StateService,
+ ) {
this.iconsUrl = environmentService.getIconsUrl();
}
diff --git a/jslib/angular/src/components/modal/dynamic-modal.component.ts b/jslib/angular/src/components/modal/dynamic-modal.component.ts
index 46ad38c0..c44cf333 100644
--- a/jslib/angular/src/components/modal/dynamic-modal.component.ts
+++ b/jslib/angular/src/components/modal/dynamic-modal.component.ts
@@ -35,7 +35,7 @@ export class DynamicModalComponent implements AfterViewInit, OnDestroy {
private cd: ChangeDetectorRef,
private el: ElementRef,
private focusTrapFactory: ConfigurableFocusTrapFactory,
- public modalRef: ModalRef
+ public modalRef: ModalRef,
) {}
ngAfterViewInit() {
@@ -47,7 +47,7 @@ export class DynamicModalComponent implements AfterViewInit, OnDestroy {
this.modalRef.created(this.el.nativeElement);
this.focusTrap = this.focusTrapFactory.create(
- this.el.nativeElement.querySelector(".modal-dialog")
+ this.el.nativeElement.querySelector(".modal-dialog"),
);
if (this.el.nativeElement.querySelector("[appAutoFocus]") == null) {
this.focusTrap.focusFirstTabbableElementWhenReady();
diff --git a/jslib/angular/src/components/modal/modal-injector.ts b/jslib/angular/src/components/modal/modal-injector.ts
index da66ea9c..d1f6ac8d 100644
--- a/jslib/angular/src/components/modal/modal-injector.ts
+++ b/jslib/angular/src/components/modal/modal-injector.ts
@@ -1,12 +1,15 @@
import { InjectFlags, InjectOptions, Injector, ProviderToken } from "@angular/core";
export class ModalInjector implements Injector {
- constructor(private _parentInjector: Injector, private _additionalTokens: WeakMap) {}
+ constructor(
+ private _parentInjector: Injector,
+ private _additionalTokens: WeakMap,
+ ) {}
get(
token: ProviderToken,
notFoundValue: undefined,
- options: InjectOptions & { optional?: false }
+ options: InjectOptions & { optional?: false },
): T;
get(token: ProviderToken, notFoundValue: null, options: InjectOptions): T;
get(token: ProviderToken, notFoundValue?: T, options?: InjectOptions | InjectFlags): T;
diff --git a/jslib/angular/src/components/password-reprompt.component.ts b/jslib/angular/src/components/password-reprompt.component.ts
index ef36218e..0ff6005b 100644
--- a/jslib/angular/src/components/password-reprompt.component.ts
+++ b/jslib/angular/src/components/password-reprompt.component.ts
@@ -19,7 +19,7 @@ export class PasswordRepromptComponent {
private modalRef: ModalRef,
private cryptoService: CryptoService,
private platformUtilsService: PlatformUtilsService,
- private i18nService: I18nService
+ private i18nService: I18nService,
) {}
togglePassword() {
@@ -31,7 +31,7 @@ export class PasswordRepromptComponent {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
- this.i18nService.t("invalidMasterPassword")
+ this.i18nService.t("invalidMasterPassword"),
);
return;
}
diff --git a/jslib/angular/src/components/toastr.component.ts b/jslib/angular/src/components/toastr.component.ts
index 0e4ea4ea..bfe20ed8 100644
--- a/jslib/angular/src/components/toastr.component.ts
+++ b/jslib/angular/src/components/toastr.component.ts
@@ -62,7 +62,10 @@ import {
preserveWhitespaces: false,
})
export class BitwardenToast extends BaseToast {
- constructor(protected toastrService: ToastrService, public toastPackage: ToastPackage) {
+ constructor(
+ protected toastrService: ToastrService,
+ public toastPackage: ToastPackage,
+ ) {
super(toastrService, toastPackage);
}
}
diff --git a/jslib/angular/src/directives/a11y-title.directive.ts b/jslib/angular/src/directives/a11y-title.directive.ts
index 20e53a55..a47b00f1 100644
--- a/jslib/angular/src/directives/a11y-title.directive.ts
+++ b/jslib/angular/src/directives/a11y-title.directive.ts
@@ -10,7 +10,10 @@ export class A11yTitleDirective {
private title: string;
- constructor(private el: ElementRef, private renderer: Renderer2) {}
+ constructor(
+ private el: ElementRef,
+ private renderer: Renderer2,
+ ) {}
ngOnInit() {
if (!this.el.nativeElement.hasAttribute("title")) {
diff --git a/jslib/angular/src/directives/api-action.directive.ts b/jslib/angular/src/directives/api-action.directive.ts
index 25dba7f2..51a2b4f0 100644
--- a/jslib/angular/src/directives/api-action.directive.ts
+++ b/jslib/angular/src/directives/api-action.directive.ts
@@ -20,7 +20,7 @@ export class ApiActionDirective implements OnChanges {
constructor(
private el: ElementRef,
private validationService: ValidationService,
- private logService: LogService
+ private logService: LogService,
) {}
ngOnChanges(changes: any) {
@@ -43,7 +43,7 @@ export class ApiActionDirective implements OnChanges {
}
this.logService?.error(`Received API exception: ${e}`);
this.validationService.showError(e);
- }
+ },
);
}
}
diff --git a/jslib/angular/src/directives/autofocus.directive.ts b/jslib/angular/src/directives/autofocus.directive.ts
index f7b60b1f..0f939a60 100644
--- a/jslib/angular/src/directives/autofocus.directive.ts
+++ b/jslib/angular/src/directives/autofocus.directive.ts
@@ -13,7 +13,10 @@ export class AutofocusDirective {
private autofocus: boolean;
- constructor(private el: ElementRef, private ngZone: NgZone) {}
+ constructor(
+ private el: ElementRef,
+ private ngZone: NgZone,
+ ) {}
ngOnInit() {
if (!Utils.isMobileBrowser && this.autofocus) {
diff --git a/jslib/angular/src/directives/box-row.directive.ts b/jslib/angular/src/directives/box-row.directive.ts
index 9ae94314..4392f3d0 100644
--- a/jslib/angular/src/directives/box-row.directive.ts
+++ b/jslib/angular/src/directives/box-row.directive.ts
@@ -13,7 +13,7 @@ export class BoxRowDirective implements OnInit {
ngOnInit(): void {
this.formEls = Array.from(
- this.el.querySelectorAll('input:not([type="hidden"]), select, textarea')
+ this.el.querySelectorAll('input:not([type="hidden"]), select, textarea'),
);
this.formEls.forEach((formEl) => {
formEl.addEventListener(
@@ -21,7 +21,7 @@ export class BoxRowDirective implements OnInit {
() => {
this.el.classList.add("active");
},
- false
+ false,
);
formEl.addEventListener(
@@ -29,7 +29,7 @@ export class BoxRowDirective implements OnInit {
() => {
this.el.classList.remove("active");
},
- false
+ false,
);
});
}
diff --git a/jslib/angular/src/scss/bwicons/styles/style.scss b/jslib/angular/src/scss/bwicons/styles/style.scss
index 17a33e10..f1bad514 100644
--- a/jslib/angular/src/scss/bwicons/styles/style.scss
+++ b/jslib/angular/src/scss/bwicons/styles/style.scss
@@ -4,7 +4,8 @@ $icomoon-font-path: "/jslib/angular/src/scss/bwicons/fonts/" !default;
// New font sheet? Update the font-face information below
@font-face {
font-family: "#{$icomoon-font-family}";
- src: url($icomoon-font-path + "bwi-font.svg") format("svg"),
+ src:
+ url($icomoon-font-path + "bwi-font.svg") format("svg"),
url($icomoon-font-path + "bwi-font.ttf") format("truetype"),
url($icomoon-font-path + "bwi-font.woff") format("woff"),
url($icomoon-font-path + "bwi-font.woff2") format("woff2");
diff --git a/jslib/angular/src/services/auth-guard.service.ts b/jslib/angular/src/services/auth-guard.service.ts
index ea16b739..ad03159c 100644
--- a/jslib/angular/src/services/auth-guard.service.ts
+++ b/jslib/angular/src/services/auth-guard.service.ts
@@ -13,7 +13,7 @@ export class AuthGuardService implements CanActivate {
private router: Router,
private messagingService: MessagingService,
private keyConnectorService: KeyConnectorService,
- private stateService: StateService
+ private stateService: StateService,
) {}
async canActivate(route: ActivatedRouteSnapshot, routerState: RouterStateSnapshot) {
diff --git a/jslib/angular/src/services/jslib-services.module.ts b/jslib/angular/src/services/jslib-services.module.ts
index 14dbb4ff..65e91c7c 100644
--- a/jslib/angular/src/services/jslib-services.module.ts
+++ b/jslib/angular/src/services/jslib-services.module.ts
@@ -131,7 +131,7 @@ import { ValidationService } from "./validation.service";
i18nService: I18nServiceAbstraction,
injector: Injector,
logService: LogService,
- stateService: StateServiceAbstraction
+ stateService: StateServiceAbstraction,
) =>
new CipherService(
cryptoService,
@@ -141,7 +141,7 @@ import { ValidationService } from "./validation.service";
i18nService,
() => injector.get(SearchServiceAbstraction),
logService,
- stateService
+ stateService,
),
deps: [
CryptoServiceAbstraction,
@@ -209,14 +209,14 @@ import { ValidationService } from "./validation.service";
platformUtilsService: PlatformUtilsServiceAbstraction,
environmentService: EnvironmentServiceAbstraction,
messagingService: MessagingServiceAbstraction,
- appIdService: AppIdServiceAbstraction
+ appIdService: AppIdServiceAbstraction,
) =>
new ApiService(
tokenService,
platformUtilsService,
environmentService,
appIdService,
- async (expired: boolean) => messagingService.send("logout", { expired: expired })
+ async (expired: boolean) => messagingService.send("logout", { expired: expired }),
),
deps: [
TokenServiceAbstraction,
@@ -247,7 +247,7 @@ import { ValidationService } from "./validation.service";
keyConnectorService: KeyConnectorServiceAbstraction,
stateService: StateServiceAbstraction,
organizationService: OrganizationServiceAbstraction,
- providerService: ProviderServiceAbstraction
+ providerService: ProviderServiceAbstraction,
) =>
new SyncService(
apiService,
@@ -264,7 +264,7 @@ import { ValidationService } from "./validation.service";
stateService,
organizationService,
providerService,
- async (expired: boolean) => messagingService.send("logout", { expired: expired })
+ async (expired: boolean) => messagingService.send("logout", { expired: expired }),
),
deps: [
ApiServiceAbstraction,
@@ -302,7 +302,7 @@ import { ValidationService } from "./validation.service";
tokenService: TokenServiceAbstraction,
policyService: PolicyServiceAbstraction,
keyConnectorService: KeyConnectorServiceAbstraction,
- stateService: StateServiceAbstraction
+ stateService: StateServiceAbstraction,
) =>
new VaultTimeoutService(
cipherService,
@@ -318,7 +318,7 @@ import { ValidationService } from "./validation.service";
stateService,
null,
async (userId?: string) =>
- messagingService.send("logout", { expired: false, userId: userId })
+ messagingService.send("logout", { expired: false, userId: userId }),
),
deps: [
CipherServiceAbstraction,
@@ -340,14 +340,14 @@ import { ValidationService } from "./validation.service";
storageService: StorageServiceAbstraction,
secureStorageService: StorageServiceAbstraction,
logService: LogService,
- stateMigrationService: StateMigrationServiceAbstraction
+ stateMigrationService: StateMigrationServiceAbstraction,
) =>
new StateService(
storageService,
secureStorageService,
logService,
stateMigrationService,
- new StateFactory(GlobalState, Account)
+ new StateFactory(GlobalState, Account),
),
deps: [
StorageServiceAbstraction,
@@ -360,12 +360,12 @@ import { ValidationService } from "./validation.service";
provide: StateMigrationServiceAbstraction,
useFactory: (
storageService: StorageServiceAbstraction,
- secureStorageService: StorageServiceAbstraction
+ secureStorageService: StorageServiceAbstraction,
) =>
new StateMigrationService(
storageService,
secureStorageService,
- new StateFactory(GlobalState, Account)
+ new StateFactory(GlobalState, Account),
),
deps: [StorageServiceAbstraction, "SECURE_STORAGE"],
},
@@ -384,7 +384,7 @@ import { ValidationService } from "./validation.service";
environmentService: EnvironmentServiceAbstraction,
messagingService: MessagingServiceAbstraction,
logService: LogService,
- stateService: StateServiceAbstraction
+ stateService: StateServiceAbstraction,
) =>
new NotificationsService(
syncService,
@@ -394,7 +394,7 @@ import { ValidationService } from "./validation.service";
environmentService,
async () => messagingService.send("logout", { expired: true }),
logService,
- stateService
+ stateService,
),
deps: [
SyncServiceAbstraction,
diff --git a/jslib/angular/src/services/lock-guard.service.ts b/jslib/angular/src/services/lock-guard.service.ts
index 926fc521..622e4ab7 100644
--- a/jslib/angular/src/services/lock-guard.service.ts
+++ b/jslib/angular/src/services/lock-guard.service.ts
@@ -11,7 +11,7 @@ export class LockGuardService implements CanActivate {
constructor(
private vaultTimeoutService: VaultTimeoutService,
private router: Router,
- private stateService: StateService
+ private stateService: StateService,
) {}
async canActivate() {
diff --git a/jslib/angular/src/services/modal.service.ts b/jslib/angular/src/services/modal.service.ts
index aecc84c6..7c06c2e0 100644
--- a/jslib/angular/src/services/modal.service.ts
+++ b/jslib/angular/src/services/modal.service.ts
@@ -31,7 +31,7 @@ export class ModalService {
constructor(
private componentFactoryResolver: ComponentFactoryResolver,
private applicationRef: ApplicationRef,
- private injector: Injector
+ private injector: Injector,
) {
document.addEventListener("keyup", (event) => {
if (event.key === "Escape" && this.modalCount > 0) {
@@ -51,7 +51,7 @@ export class ModalService {
async openViewRef(
componentType: Type,
viewContainerRef: ViewContainerRef,
- setComponentParameters: (component: T) => void = null
+ setComponentParameters: (component: T) => void = null,
): Promise<[ModalRef, T]> {
const [modalRef, modalComponentRef] = this.openInternal(componentType, null, false);
modalComponentRef.instance.setComponentParameters = setComponentParameters;
@@ -76,7 +76,7 @@ export class ModalService {
registerComponentFactoryResolver(
componentType: Type,
- componentFactoryResolver: ComponentFactoryResolver
+ componentFactoryResolver: ComponentFactoryResolver,
): void {
this.factoryResolvers.set(componentType, componentFactoryResolver);
}
@@ -92,7 +92,7 @@ export class ModalService {
protected openInternal(
componentType: Type,
config?: ModalConfig,
- attachToDom?: boolean
+ attachToDom?: boolean,
): [ModalRef, ComponentRef] {
const [modalRef, componentRef] = this.createModalComponent(config);
componentRef.instance.childComponentType = componentType;
@@ -143,7 +143,7 @@ export class ModalService {
dialogEl.style.zIndex = `${this.modalCount}050`;
const modals = Array.from(
- el.querySelectorAll('.modal-backdrop, .modal *[data-dismiss="modal"]')
+ el.querySelectorAll('.modal-backdrop, .modal *[data-dismiss="modal"]'),
);
for (const closeElement of modals) {
closeElement.addEventListener("click", () => {
@@ -163,7 +163,7 @@ export class ModalService {
}
protected createModalComponent(
- config: ModalConfig
+ config: ModalConfig,
): [ModalRef, ComponentRef] {
const modalRef = new ModalRef();
diff --git a/jslib/angular/src/services/passwordReprompt.service.ts b/jslib/angular/src/services/passwordReprompt.service.ts
index 99db5437..3051780c 100644
--- a/jslib/angular/src/services/passwordReprompt.service.ts
+++ b/jslib/angular/src/services/passwordReprompt.service.ts
@@ -17,7 +17,7 @@ export class PasswordRepromptService implements PasswordRepromptServiceAbstracti
constructor(
private modalService: ModalService,
- private keyConnectorService: KeyConnectorService
+ private keyConnectorService: KeyConnectorService,
) {}
protectedFields() {
diff --git a/jslib/angular/src/services/unauth-guard.service.ts b/jslib/angular/src/services/unauth-guard.service.ts
index 264677e7..683efe22 100644
--- a/jslib/angular/src/services/unauth-guard.service.ts
+++ b/jslib/angular/src/services/unauth-guard.service.ts
@@ -10,7 +10,7 @@ export class UnauthGuardService implements CanActivate {
constructor(
private vaultTimeoutService: VaultTimeoutService,
private router: Router,
- private stateService: StateService
+ private stateService: StateService,
) {}
async canActivate() {
diff --git a/jslib/angular/src/services/validation.service.ts b/jslib/angular/src/services/validation.service.ts
index 85c5a0d5..b0e5516c 100644
--- a/jslib/angular/src/services/validation.service.ts
+++ b/jslib/angular/src/services/validation.service.ts
@@ -8,7 +8,7 @@ import { ErrorResponse } from "@/jslib/common/src/models/response/errorResponse"
export class ValidationService {
constructor(
private i18nService: I18nService,
- private platformUtilsService: PlatformUtilsService
+ private platformUtilsService: PlatformUtilsService,
) {}
showError(data: any): string[] {
diff --git a/jslib/common/spec/misc/logInStrategies/apiLogIn.strategy.spec.ts b/jslib/common/spec/misc/logInStrategies/apiLogIn.strategy.spec.ts
index 37b19f84..78fa3d01 100644
--- a/jslib/common/spec/misc/logInStrategies/apiLogIn.strategy.spec.ts
+++ b/jslib/common/spec/misc/logInStrategies/apiLogIn.strategy.spec.ts
@@ -65,7 +65,7 @@ describe("ApiLogInStrategy", () => {
stateService,
twoFactorService,
environmentService,
- keyConnectorService
+ keyConnectorService,
);
credentials = new ApiLogInCredentials(apiClientId, apiClientSecret);
@@ -86,7 +86,7 @@ describe("ApiLogInStrategy", () => {
apiTokenRequest.twoFactor.token == null &&
apiTokenRequest.captchaResponse == null
);
- })
+ }),
);
});
diff --git a/jslib/common/spec/misc/logInStrategies/logIn.strategy.spec.ts b/jslib/common/spec/misc/logInStrategies/logIn.strategy.spec.ts
index 9cffb31b..c8a90220 100644
--- a/jslib/common/spec/misc/logInStrategies/logIn.strategy.spec.ts
+++ b/jslib/common/spec/misc/logInStrategies/logIn.strategy.spec.ts
@@ -103,7 +103,7 @@ describe("LogInStrategy", () => {
logService,
stateService,
twoFactorService,
- authService
+ authService,
);
credentials = new PasswordLogInCredentials(email, masterPassword);
});
@@ -134,7 +134,7 @@ describe("LogInStrategy", () => {
refreshToken: refreshToken,
},
},
- })
+ }),
);
cryptoService.received(1).setEncKey(encKey);
cryptoService.received(1).setEncPrivateKey(privateKey);
@@ -230,7 +230,7 @@ describe("LogInStrategy", () => {
passwordTokenRequest.twoFactor.token === twoFactorToken &&
passwordTokenRequest.twoFactor.remember === false
);
- })
+ }),
);
});
@@ -240,7 +240,7 @@ describe("LogInStrategy", () => {
credentials.twoFactor = new TokenRequestTwoFactor(
twoFactorProviderType,
twoFactorToken,
- twoFactorRemember
+ twoFactorRemember,
);
await passwordLogInStrategy.logIn(credentials);
@@ -253,7 +253,7 @@ describe("LogInStrategy", () => {
passwordTokenRequest.twoFactor.token === twoFactorToken &&
passwordTokenRequest.twoFactor.remember === twoFactorRemember
);
- })
+ }),
);
});
@@ -263,14 +263,14 @@ describe("LogInStrategy", () => {
email,
masterPasswordHash,
null,
- null
+ null,
);
apiService.postIdentityToken(Arg.any()).resolves(identityTokenResponseFactory());
await passwordLogInStrategy.logInTwoFactor(
new TokenRequestTwoFactor(twoFactorProviderType, twoFactorToken, twoFactorRemember),
- null
+ null,
);
apiService.received(1).postIdentityToken(
@@ -281,7 +281,7 @@ describe("LogInStrategy", () => {
passwordTokenRequest.twoFactor.token === twoFactorToken &&
passwordTokenRequest.twoFactor.remember === twoFactorRemember
);
- })
+ }),
);
});
});
diff --git a/jslib/common/spec/misc/logInStrategies/passwordLogIn.strategy.spec.ts b/jslib/common/spec/misc/logInStrategies/passwordLogIn.strategy.spec.ts
index 9e95f7f2..e36fde21 100644
--- a/jslib/common/spec/misc/logInStrategies/passwordLogIn.strategy.spec.ts
+++ b/jslib/common/spec/misc/logInStrategies/passwordLogIn.strategy.spec.ts
@@ -24,8 +24,8 @@ const hashedPassword = "HASHED_PASSWORD";
const localHashedPassword = "LOCAL_HASHED_PASSWORD";
const preloginKey = new SymmetricCryptoKey(
Utils.fromB64ToArray(
- "N2KWjlLpfi5uHjv+YcfUKIpZ1l+W+6HRensmIqD+BFYBf6N/dvFpJfWwYnVBdgFCK2tJTAIMLhqzIQQEUmGFgg=="
- )
+ "N2KWjlLpfi5uHjv+YcfUKIpZ1l+W+6HRensmIqD+BFYBf6N/dvFpJfWwYnVBdgFCK2tJTAIMLhqzIQQEUmGFgg==",
+ ),
);
const deviceId = Utils.newGuid();
@@ -76,7 +76,7 @@ describe("PasswordLogInStrategy", () => {
logService,
stateService,
twoFactorService,
- authService
+ authService,
);
credentials = new PasswordLogInCredentials(email, masterPassword);
@@ -97,7 +97,7 @@ describe("PasswordLogInStrategy", () => {
passwordTokenRequest.twoFactor.token == null &&
passwordTokenRequest.captchaResponse == null
);
- })
+ }),
);
});
diff --git a/jslib/common/spec/misc/logInStrategies/ssoLogIn.strategy.spec.ts b/jslib/common/spec/misc/logInStrategies/ssoLogIn.strategy.spec.ts
index 25fc4ba0..eb38fa39 100644
--- a/jslib/common/spec/misc/logInStrategies/ssoLogIn.strategy.spec.ts
+++ b/jslib/common/spec/misc/logInStrategies/ssoLogIn.strategy.spec.ts
@@ -66,7 +66,7 @@ describe("SsoLogInStrategy", () => {
logService,
stateService,
twoFactorService,
- keyConnectorService
+ keyConnectorService,
);
credentials = new SsoLogInCredentials(ssoCode, ssoCodeVerifier, ssoRedirectUrl, ssoOrgId);
});
@@ -87,7 +87,7 @@ describe("SsoLogInStrategy", () => {
ssoTokenRequest.twoFactor.provider == null &&
ssoTokenRequest.twoFactor.token == null
);
- })
+ }),
);
});
diff --git a/jslib/common/spec/services/cipher.service.spec.ts b/jslib/common/spec/services/cipher.service.spec.ts
index f36612f2..5ab62d4f 100644
--- a/jslib/common/spec/services/cipher.service.spec.ts
+++ b/jslib/common/spec/services/cipher.service.spec.ts
@@ -51,7 +51,7 @@ describe("Cipher Service", () => {
i18nService,
() => searchService,
logService,
- stateService
+ stateService,
);
});
diff --git a/jslib/common/spec/services/stateMigration.service.ts b/jslib/common/spec/services/stateMigration.service.ts
index 32b65bd7..11d0ec45 100644
--- a/jslib/common/spec/services/stateMigration.service.ts
+++ b/jslib/common/spec/services/stateMigration.service.ts
@@ -24,7 +24,7 @@ describe("State Migration Service", () => {
stateMigrationService = new StateMigrationService(
storageService,
secureStorageService,
- stateFactory
+ stateFactory,
);
});
@@ -77,7 +77,7 @@ describe("State Migration Service", () => {
storageService.received(1).save(
"global",
Arg.is((globals: GlobalState) => globals.stateVersion === StateVersion.Four),
- Arg.any()
+ Arg.any(),
);
});
});
diff --git a/jslib/common/spec/utils.ts b/jslib/common/spec/utils.ts
index e16bcb49..56340841 100644
--- a/jslib/common/spec/utils.ts
+++ b/jslib/common/spec/utils.ts
@@ -16,7 +16,7 @@ export function GetUniqueString(prefix = "") {
export function BuildTestObject(
def: Partial> | T,
- constructor?: new () => T
+ constructor?: new () => T,
): T {
return Object.assign(constructor === null ? {} : new constructor(), def) as T;
}
diff --git a/jslib/common/src/abstractions/api.service.ts b/jslib/common/src/abstractions/api.service.ts
index c9970ce8..18562740 100644
--- a/jslib/common/src/abstractions/api.service.ts
+++ b/jslib/common/src/abstractions/api.service.ts
@@ -169,7 +169,7 @@ import { SendAccessView } from "../models/view/sendAccessView";
export abstract class ApiService {
postIdentityToken: (
- request: PasswordTokenRequest | SsoTokenRequest | ApiTokenRequest
+ request: PasswordTokenRequest | SsoTokenRequest | ApiTokenRequest,
) => Promise;
refreshIdentityToken: () => Promise;
@@ -221,7 +221,7 @@ export abstract class ApiService {
postSendAccess: (
id: string,
request: SendAccessRequest,
- apiUrl?: string
+ apiUrl?: string,
) => Promise;
getSends: () => Promise>;
postSend: (request: SendRequest) => Promise;
@@ -238,7 +238,7 @@ export abstract class ApiService {
getSendFileDownloadData: (
send: SendAccessView,
request: SendAccessRequest,
- apiUrl?: string
+ apiUrl?: string,
) => Promise;
renewSendFileUploadUrl: (sendId: string, fileId: string) => Promise;
@@ -247,7 +247,7 @@ export abstract class ApiService {
getAttachmentData: (
cipherId: string,
attachmentId: string,
- emergencyAccessId?: string
+ emergencyAccessId?: string,
) => Promise;
getCiphersOrganization: (organizationId: string) => Promise>;
postCipher: (request: CipherRequest) => Promise;
@@ -268,7 +268,7 @@ export abstract class ApiService {
postImportCiphers: (request: ImportCiphersRequest) => Promise;
postImportOrganizationCiphers: (
organizationId: string,
- request: ImportOrganizationCiphersRequest
+ request: ImportOrganizationCiphersRequest,
) => Promise;
putDeleteCipher: (id: string) => Promise;
putDeleteCipherAdmin: (id: string) => Promise;
@@ -277,7 +277,7 @@ export abstract class ApiService {
putRestoreCipher: (id: string) => Promise;
putRestoreCipherAdmin: (id: string) => Promise;
putRestoreManyCiphers: (
- request: CipherBulkRestoreRequest
+ request: CipherBulkRestoreRequest,
) => Promise>;
/**
@@ -292,7 +292,7 @@ export abstract class ApiService {
postCipherAttachmentAdminLegacy: (id: string, data: FormData) => Promise;
postCipherAttachment: (
id: string,
- request: AttachmentRequest
+ request: AttachmentRequest,
) => Promise;
deleteCipherAttachment: (id: string, attachmentId: string) => Promise;
deleteCipherAttachmentAdmin: (id: string, attachmentId: string) => Promise;
@@ -300,40 +300,40 @@ export abstract class ApiService {
id: string,
attachmentId: string,
data: FormData,
- organizationId: string
+ organizationId: string,
) => Promise;
renewAttachmentUploadUrl: (
id: string,
- attachmentId: string
+ attachmentId: string,
) => Promise;
postAttachmentFile: (id: string, attachmentId: string, data: FormData) => Promise;
getCollectionDetails: (
organizationId: string,
- id: string
+ id: string,
) => Promise;
getUserCollections: () => Promise>;
getCollections: (organizationId: string) => Promise>;
getCollectionUsers: (organizationId: string, id: string) => Promise;
postCollection: (
organizationId: string,
- request: CollectionRequest
+ request: CollectionRequest,
) => Promise;
putCollectionUsers: (
organizationId: string,
id: string,
- request: SelectionReadOnlyRequest[]
+ request: SelectionReadOnlyRequest[],
) => Promise;
putCollection: (
organizationId: string,
id: string,
- request: CollectionRequest
+ request: CollectionRequest,
) => Promise;
deleteCollection: (organizationId: string, id: string) => Promise;
deleteCollectionUser: (
organizationId: string,
id: string,
- organizationUserId: string
+ organizationUserId: string,
) => Promise;
getGroupDetails: (organizationId: string, id: string) => Promise;
@@ -351,82 +351,82 @@ export abstract class ApiService {
organizationId: string,
token: string,
email: string,
- organizationUserId: string
+ organizationUserId: string,
) => Promise>;
getPoliciesByInvitedUser: (
organizationId: string,
- userId: string
+ userId: string,
) => Promise>;
putPolicy: (
organizationId: string,
type: PolicyType,
- request: PolicyRequest
+ request: PolicyRequest,
) => Promise;
getOrganizationUser: (
organizationId: string,
- id: string
+ id: string,
) => Promise;
getOrganizationUserGroups: (organizationId: string, id: string) => Promise;
getOrganizationUsers: (
- organizationId: string
+ organizationId: string,
) => Promise>;
getOrganizationUserResetPasswordDetails: (
organizationId: string,
- id: string
+ id: string,
) => Promise;
postOrganizationUserInvite: (
organizationId: string,
- request: OrganizationUserInviteRequest
+ request: OrganizationUserInviteRequest,
) => Promise;
postOrganizationUserReinvite: (organizationId: string, id: string) => Promise;
postManyOrganizationUserReinvite: (
organizationId: string,
- request: OrganizationUserBulkRequest
+ request: OrganizationUserBulkRequest,
) => Promise>;
postOrganizationUserAccept: (
organizationId: string,
id: string,
- request: OrganizationUserAcceptRequest
+ request: OrganizationUserAcceptRequest,
) => Promise;
postOrganizationUserConfirm: (
organizationId: string,
id: string,
- request: OrganizationUserConfirmRequest
+ request: OrganizationUserConfirmRequest,
) => Promise;
postOrganizationUsersPublicKey: (
organizationId: string,
- request: OrganizationUserBulkRequest
+ request: OrganizationUserBulkRequest,
) => Promise>;
postOrganizationUserBulkConfirm: (
organizationId: string,
- request: OrganizationUserBulkConfirmRequest
+ request: OrganizationUserBulkConfirmRequest,
) => Promise>;
putOrganizationUser: (
organizationId: string,
id: string,
- request: OrganizationUserUpdateRequest
+ request: OrganizationUserUpdateRequest,
) => Promise;
putOrganizationUserGroups: (
organizationId: string,
id: string,
- request: OrganizationUserUpdateGroupsRequest
+ request: OrganizationUserUpdateGroupsRequest,
) => Promise;
putOrganizationUserResetPasswordEnrollment: (
organizationId: string,
userId: string,
- request: OrganizationUserResetPasswordEnrollmentRequest
+ request: OrganizationUserResetPasswordEnrollmentRequest,
) => Promise;
putOrganizationUserResetPassword: (
organizationId: string,
id: string,
- request: OrganizationUserResetPasswordRequest
+ request: OrganizationUserResetPasswordRequest,
) => Promise;
deleteOrganizationUser: (organizationId: string, id: string) => Promise;
deleteManyOrganizationUsers: (
organizationId: string,
- request: OrganizationUserBulkRequest
+ request: OrganizationUserBulkRequest,
) => Promise>;
getSync: () => Promise;
@@ -438,43 +438,43 @@ export abstract class ApiService {
getTwoFactorProviders: () => Promise>;
getTwoFactorOrganizationProviders: (
- organizationId: string
+ organizationId: string,
) => Promise>;
getTwoFactorAuthenticator: (
- request: SecretVerificationRequest
+ request: SecretVerificationRequest,
) => Promise;
getTwoFactorEmail: (request: SecretVerificationRequest) => Promise;
getTwoFactorDuo: (request: SecretVerificationRequest) => Promise;
getTwoFactorOrganizationDuo: (
organizationId: string,
- request: SecretVerificationRequest
+ request: SecretVerificationRequest,
) => Promise;
getTwoFactorYubiKey: (request: SecretVerificationRequest) => Promise;
getTwoFactorWebAuthn: (request: SecretVerificationRequest) => Promise;
getTwoFactorWebAuthnChallenge: (request: SecretVerificationRequest) => Promise;
getTwoFactorRecover: (request: SecretVerificationRequest) => Promise;
putTwoFactorAuthenticator: (
- request: UpdateTwoFactorAuthenticatorRequest
+ request: UpdateTwoFactorAuthenticatorRequest,
) => Promise;
putTwoFactorEmail: (request: UpdateTwoFactorEmailRequest) => Promise;
putTwoFactorDuo: (request: UpdateTwoFactorDuoRequest) => Promise;
putTwoFactorOrganizationDuo: (
organizationId: string,
- request: UpdateTwoFactorDuoRequest
+ request: UpdateTwoFactorDuoRequest,
) => Promise;
putTwoFactorYubiKey: (
- request: UpdateTwoFactorYubioOtpRequest
+ request: UpdateTwoFactorYubioOtpRequest,
) => Promise;
putTwoFactorWebAuthn: (
- request: UpdateTwoFactorWebAuthnRequest
+ request: UpdateTwoFactorWebAuthnRequest,
) => Promise;
deleteTwoFactorWebAuthn: (
- request: UpdateTwoFactorWebAuthnDeleteRequest
+ request: UpdateTwoFactorWebAuthnDeleteRequest,
) => Promise;
putTwoFactorDisable: (request: TwoFactorProviderRequest) => Promise;
putTwoFactorOrganizationDisable: (
organizationId: string,
- request: TwoFactorProviderRequest
+ request: TwoFactorProviderRequest,
) => Promise;
postTwoFactorRecover: (request: TwoFactorRecoveryRequest) => Promise;
postTwoFactorEmailSetup: (request: TwoFactorEmailRequest) => Promise;
@@ -496,7 +496,7 @@ export abstract class ApiService {
postEmergencyAccessTakeover: (id: string) => Promise;
postEmergencyAccessPassword: (
id: string,
- request: EmergencyAccessPasswordRequest
+ request: EmergencyAccessPasswordRequest,
) => Promise;
postEmergencyAccessView: (id: string) => Promise;
@@ -506,13 +506,13 @@ export abstract class ApiService {
getOrganizationLicense: (id: string, installationId: string) => Promise;
getOrganizationTaxInfo: (id: string) => Promise;
getOrganizationAutoEnrollStatus: (
- identifier: string
+ identifier: string,
) => Promise;
getOrganizationSso: (id: string) => Promise;
postOrganization: (request: OrganizationCreateRequest) => Promise;
putOrganization: (
id: string,
- request: OrganizationUpdateRequest
+ request: OrganizationUpdateRequest,
) => Promise;
putOrganizationTaxInfo: (id: string, request: OrganizationTaxInfoUpdateRequest) => Promise;
postLeaveOrganization: (id: string) => Promise;
@@ -520,23 +520,23 @@ export abstract class ApiService {
postOrganizationLicenseUpdate: (id: string, data: FormData) => Promise;
postOrganizationApiKey: (
id: string,
- request: SecretVerificationRequest
+ request: SecretVerificationRequest,
) => Promise;
postOrganizationRotateApiKey: (
id: string,
- request: SecretVerificationRequest
+ request: SecretVerificationRequest,
) => Promise;
postOrganizationSso: (
id: string,
- request: OrganizationSsoRequest
+ request: OrganizationSsoRequest,
) => Promise;
postOrganizationUpgrade: (
id: string,
- request: OrganizationUpgradeRequest
+ request: OrganizationUpgradeRequest,
) => Promise;
postOrganizationUpdateSubscription: (
id: string,
- request: OrganizationSubscriptionUpdateRequest
+ request: OrganizationSubscriptionUpdateRequest,
) => Promise;
postOrganizationSeat: (id: string, request: SeatRequest) => Promise;
postOrganizationStorage: (id: string, request: StorageRequest) => Promise;
@@ -550,7 +550,7 @@ export abstract class ApiService {
getOrganizationKeys: (id: string) => Promise;
postOrganizationKeys: (
id: string,
- request: OrganizationKeysRequest
+ request: OrganizationKeysRequest,
) => Promise;
postProviderSetup: (id: string, request: ProviderSetupRequest) => Promise;
@@ -563,46 +563,46 @@ export abstract class ApiService {
postProviderUserReinvite: (providerId: string, id: string) => Promise;
postManyProviderUserReinvite: (
providerId: string,
- request: ProviderUserBulkRequest
+ request: ProviderUserBulkRequest,
) => Promise>;
postProviderUserAccept: (
providerId: string,
id: string,
- request: ProviderUserAcceptRequest
+ request: ProviderUserAcceptRequest,
) => Promise;
postProviderUserConfirm: (
providerId: string,
id: string,
- request: ProviderUserConfirmRequest
+ request: ProviderUserConfirmRequest,
) => Promise;
postProviderUsersPublicKey: (
providerId: string,
- request: ProviderUserBulkRequest
+ request: ProviderUserBulkRequest,
) => Promise>;
postProviderUserBulkConfirm: (
providerId: string,
- request: ProviderUserBulkConfirmRequest
+ request: ProviderUserBulkConfirmRequest,
) => Promise>;
putProviderUser: (
providerId: string,
id: string,
- request: ProviderUserUpdateRequest
+ request: ProviderUserUpdateRequest,
) => Promise;
deleteProviderUser: (organizationId: string, id: string) => Promise;
deleteManyProviderUsers: (
providerId: string,
- request: ProviderUserBulkRequest
+ request: ProviderUserBulkRequest,
) => Promise>;
getProviderClients: (
- providerId: string
+ providerId: string,
) => Promise>;
postProviderAddOrganization: (
providerId: string,
- request: ProviderAddOrganizationRequest
+ request: ProviderAddOrganizationRequest,
) => Promise;
postProviderCreateOrganization: (
providerId: string,
- request: ProviderOrganizationCreateRequest
+ request: ProviderOrganizationCreateRequest,
) => Promise;
deleteProviderOrganization: (providerId: string, organizationId: string) => Promise;
@@ -611,33 +611,33 @@ export abstract class ApiService {
id: string,
start: string,
end: string,
- token: string
+ token: string,
) => Promise>;
getEventsOrganization: (
id: string,
start: string,
end: string,
- token: string
+ token: string,
) => Promise>;
getEventsOrganizationUser: (
organizationId: string,
id: string,
start: string,
end: string,
- token: string
+ token: string,
) => Promise>;
getEventsProvider: (
id: string,
start: string,
end: string,
- token: string
+ token: string,
) => Promise>;
getEventsProviderUser: (
providerId: string,
id: string,
start: string,
end: string,
- token: string
+ token: string,
) => Promise>;
postEventsCollect: (request: EventRequest[]) => Promise;
@@ -659,21 +659,21 @@ export abstract class ApiService {
postCreateSponsorship: (
sponsorshipOrgId: string,
- request: OrganizationSponsorshipCreateRequest
+ request: OrganizationSponsorshipCreateRequest,
) => Promise;
deleteRevokeSponsorship: (sponsoringOrganizationId: string) => Promise;
deleteRemoveSponsorship: (sponsoringOrgId: string) => Promise;
postPreValidateSponsorshipToken: (sponsorshipToken: string) => Promise;
postRedeemSponsorship: (
sponsorshipToken: string,
- request: OrganizationSponsorshipRedeemRequest
+ request: OrganizationSponsorshipRedeemRequest,
) => Promise;
postResendSponsorshipOffer: (sponsoringOrgId: string) => Promise;
getUserKeyFromKeyConnector: (keyConnectorUrl: string) => Promise;
postUserKeyToKeyConnector: (
keyConnectorUrl: string,
- request: KeyConnectorUserKeyRequest
+ request: KeyConnectorUserKeyRequest,
) => Promise;
getKeyConnectorAlive: (keyConnectorUrl: string) => Promise;
}
diff --git a/jslib/common/src/abstractions/auth.service.ts b/jslib/common/src/abstractions/auth.service.ts
index bebac730..1be0b2fe 100644
--- a/jslib/common/src/abstractions/auth.service.ts
+++ b/jslib/common/src/abstractions/auth.service.ts
@@ -11,11 +11,11 @@ export abstract class AuthService {
masterPasswordHash: string;
email: string;
logIn: (
- credentials: ApiLogInCredentials | PasswordLogInCredentials | SsoLogInCredentials
+ credentials: ApiLogInCredentials | PasswordLogInCredentials | SsoLogInCredentials,
) => Promise;
logInTwoFactor: (
twoFactor: TokenRequestTwoFactor,
- captchaResponse: string
+ captchaResponse: string,
) => Promise;
logOut: (callback: () => void) => void;
makePreloginKey: (masterPassword: string, email: string) => Promise;
diff --git a/jslib/common/src/abstractions/cipher.service.ts b/jslib/common/src/abstractions/cipher.service.ts
index a87a6f0a..5ae5a006 100644
--- a/jslib/common/src/abstractions/cipher.service.ts
+++ b/jslib/common/src/abstractions/cipher.service.ts
@@ -12,7 +12,7 @@ export abstract class CipherService {
encrypt: (
model: CipherView,
key?: SymmetricCryptoKey,
- originalCipher?: Cipher
+ originalCipher?: Cipher,
) => Promise;
encryptFields: (fieldsModel: FieldView[], key: SymmetricCryptoKey) => Promise;
encryptField: (fieldModel: FieldView, key: SymmetricCryptoKey) => Promise;
@@ -23,7 +23,7 @@ export abstract class CipherService {
getAllDecryptedForUrl: (
url: string,
includeOtherTypes?: CipherType[],
- defaultMatch?: UriMatchType
+ defaultMatch?: UriMatchType,
) => Promise;
getAllFromApiForOrganization: (organizationId: string) => Promise;
getLastUsedForUrl: (url: string, autofillOnPageLoad: boolean) => Promise;
@@ -37,23 +37,23 @@ export abstract class CipherService {
shareWithServer: (
cipher: CipherView,
organizationId: string,
- collectionIds: string[]
+ collectionIds: string[],
) => Promise;
shareManyWithServer: (
ciphers: CipherView[],
organizationId: string,
- collectionIds: string[]
+ collectionIds: string[],
) => Promise;
saveAttachmentWithServer: (
cipher: Cipher,
unencryptedFile: any,
- admin?: boolean
+ admin?: boolean,
) => Promise;
saveAttachmentRawWithServer: (
cipher: Cipher,
filename: string,
data: ArrayBuffer,
- admin?: boolean
+ admin?: boolean,
) => Promise;
saveCollectionsWithServer: (cipher: Cipher) => Promise;
upsert: (cipher: CipherData | CipherData[]) => Promise;
@@ -72,7 +72,7 @@ export abstract class CipherService {
softDeleteWithServer: (id: string) => Promise;
softDeleteManyWithServer: (ids: string[]) => Promise;
restore: (
- cipher: { id: string; revisionDate: string } | { id: string; revisionDate: string }[]
+ cipher: { id: string; revisionDate: string } | { id: string; revisionDate: string }[],
) => Promise;
restoreWithServer: (id: string) => Promise;
restoreManyWithServer: (ids: string[]) => Promise;
diff --git a/jslib/common/src/abstractions/crypto.service.ts b/jslib/common/src/abstractions/crypto.service.ts
index bc61ba7e..2cd0cd9a 100644
--- a/jslib/common/src/abstractions/crypto.service.ts
+++ b/jslib/common/src/abstractions/crypto.service.ts
@@ -15,7 +15,7 @@ export abstract class CryptoService {
setEncPrivateKey: (encPrivateKey: string) => Promise;
setOrgKeys: (
orgs: ProfileOrganizationResponse[],
- providerOrgs: ProfileProviderOrganizationResponse[]
+ providerOrgs: ProfileProviderOrganizationResponse[],
) => Promise;
setProviderKeys: (orgs: ProfileProviderResponse[]) => Promise;
getKey: (keySuffix?: KeySuffixOptions, userId?: string) => Promise;
@@ -46,14 +46,14 @@ export abstract class CryptoService {
password: string,
salt: string,
kdf: KdfType,
- kdfIterations: number
+ kdfIterations: number,
) => Promise;
makeKeyFromPin: (
pin: string,
salt: string,
kdf: KdfType,
kdfIterations: number,
- protectedKeyCs?: EncString
+ protectedKeyCs?: EncString,
) => Promise;
makeShareKey: () => Promise<[EncString, SymmetricCryptoKey]>;
makeKeyPair: (key?: SymmetricCryptoKey) => Promise<[string, EncString]>;
@@ -61,18 +61,18 @@ export abstract class CryptoService {
pin: string,
salt: string,
kdf: KdfType,
- kdfIterations: number
+ kdfIterations: number,
) => Promise;
makeSendKey: (keyMaterial: ArrayBuffer) => Promise;
hashPassword: (
password: string,
key: SymmetricCryptoKey,
- hashPurpose?: HashPurpose
+ hashPurpose?: HashPurpose,
) => Promise;
makeEncKey: (key: SymmetricCryptoKey) => Promise<[SymmetricCryptoKey, EncString]>;
remakeEncKey: (
key: SymmetricCryptoKey,
- encKey?: SymmetricCryptoKey
+ encKey?: SymmetricCryptoKey,
) => Promise<[SymmetricCryptoKey, EncString]>;
encrypt: (plainValue: string | ArrayBuffer, key?: SymmetricCryptoKey) => Promise;
encryptToBytes: (plainValue: ArrayBuffer, key?: SymmetricCryptoKey) => Promise;
diff --git a/jslib/common/src/abstractions/cryptoFunction.service.ts b/jslib/common/src/abstractions/cryptoFunction.service.ts
index 21ed33cb..d305717c 100644
--- a/jslib/common/src/abstractions/cryptoFunction.service.ts
+++ b/jslib/common/src/abstractions/cryptoFunction.service.ts
@@ -6,35 +6,35 @@ export abstract class CryptoFunctionService {
password: string | ArrayBuffer,
salt: string | ArrayBuffer,
algorithm: "sha256" | "sha512",
- iterations: number
+ iterations: number,
) => Promise;
hkdf: (
ikm: ArrayBuffer,
salt: string | ArrayBuffer,
info: string | ArrayBuffer,
outputByteSize: number,
- algorithm: "sha256" | "sha512"
+ algorithm: "sha256" | "sha512",
) => Promise;
hkdfExpand: (
prk: ArrayBuffer,
info: string | ArrayBuffer,
outputByteSize: number,
- algorithm: "sha256" | "sha512"
+ algorithm: "sha256" | "sha512",
) => Promise;
hash: (
value: string | ArrayBuffer,
- algorithm: "sha1" | "sha256" | "sha512" | "md5"
+ algorithm: "sha1" | "sha256" | "sha512" | "md5",
) => Promise;
hmac: (
value: ArrayBuffer,
key: ArrayBuffer,
- algorithm: "sha1" | "sha256" | "sha512"
+ algorithm: "sha1" | "sha256" | "sha512",
) => Promise;
compare: (a: ArrayBuffer, b: ArrayBuffer) => Promise;
hmacFast: (
value: ArrayBuffer | string,
key: ArrayBuffer | string,
- algorithm: "sha1" | "sha256" | "sha512"
+ algorithm: "sha1" | "sha256" | "sha512",
) => Promise;
compareFast: (a: ArrayBuffer | string, b: ArrayBuffer | string) => Promise;
aesEncrypt: (data: ArrayBuffer, iv: ArrayBuffer, key: ArrayBuffer) => Promise;
@@ -42,19 +42,19 @@ export abstract class CryptoFunctionService {
data: string,
iv: string,
mac: string,
- key: SymmetricCryptoKey
+ key: SymmetricCryptoKey,
) => DecryptParameters;
aesDecryptFast: (parameters: DecryptParameters) => Promise;
aesDecrypt: (data: ArrayBuffer, iv: ArrayBuffer, key: ArrayBuffer) => Promise;
rsaEncrypt: (
data: ArrayBuffer,
publicKey: ArrayBuffer,
- algorithm: "sha1" | "sha256"
+ algorithm: "sha1" | "sha256",
) => Promise;
rsaDecrypt: (
data: ArrayBuffer,
privateKey: ArrayBuffer,
- algorithm: "sha1" | "sha256"
+ algorithm: "sha1" | "sha256",
) => Promise;
rsaExtractPublicKey: (privateKey: ArrayBuffer) => Promise;
rsaGenerateKeyPair: (length: 1024 | 2048 | 4096) => Promise<[ArrayBuffer, ArrayBuffer]>;
diff --git a/jslib/common/src/abstractions/fileUpload.service.ts b/jslib/common/src/abstractions/fileUpload.service.ts
index fcd3c22c..6918347e 100644
--- a/jslib/common/src/abstractions/fileUpload.service.ts
+++ b/jslib/common/src/abstractions/fileUpload.service.ts
@@ -7,12 +7,12 @@ export abstract class FileUploadService {
uploadSendFile: (
uploadData: SendFileUploadDataResponse,
fileName: EncString,
- encryptedFileData: EncArrayBuffer
+ encryptedFileData: EncArrayBuffer,
) => Promise;
uploadCipherAttachment: (
admin: boolean,
uploadData: AttachmentUploadDataResponse,
fileName: EncString,
- encryptedFileData: EncArrayBuffer
+ encryptedFileData: EncArrayBuffer,
) => Promise;
}
diff --git a/jslib/common/src/abstractions/keyConnector.service.ts b/jslib/common/src/abstractions/keyConnector.service.ts
index b8f3bf7c..1e4ee928 100644
--- a/jslib/common/src/abstractions/keyConnector.service.ts
+++ b/jslib/common/src/abstractions/keyConnector.service.ts
@@ -9,7 +9,7 @@ export abstract class KeyConnectorService {
userNeedsMigration: () => Promise;
convertNewSsoUserToKeyConnector: (
tokenResponse: IdentityTokenResponse,
- orgId: string
+ orgId: string,
) => Promise;
setUsesKeyConnector: (enabled: boolean) => Promise;
setConvertAccountRequired: (status: boolean) => Promise;
diff --git a/jslib/common/src/abstractions/passwordGeneration.service.ts b/jslib/common/src/abstractions/passwordGeneration.service.ts
index 82bc021f..615a32b0 100644
--- a/jslib/common/src/abstractions/passwordGeneration.service.ts
+++ b/jslib/common/src/abstractions/passwordGeneration.service.ts
@@ -8,7 +8,7 @@ export abstract class PasswordGenerationService {
generatePassphrase: (options: any) => Promise;
getOptions: () => Promise<[any, PasswordGeneratorPolicyOptions]>;
enforcePasswordGeneratorPoliciesOnOptions: (
- options: any
+ options: any,
) => Promise<[any, PasswordGeneratorPolicyOptions]>;
getPasswordGeneratorPolicyOptions: () => Promise;
saveOptions: (options: any) => Promise;
diff --git a/jslib/common/src/abstractions/platformUtils.service.ts b/jslib/common/src/abstractions/platformUtils.service.ts
index 4a014868..608bd582 100644
--- a/jslib/common/src/abstractions/platformUtils.service.ts
+++ b/jslib/common/src/abstractions/platformUtils.service.ts
@@ -27,7 +27,7 @@ export abstract class PlatformUtilsService {
type: "error" | "success" | "warning" | "info",
title: string,
text: string | string[],
- options?: ToastOptions
+ options?: ToastOptions,
) => void;
showDialog: (
body: string,
@@ -35,7 +35,7 @@ export abstract class PlatformUtilsService {
confirmText?: string,
cancelText?: string,
type?: string,
- bodyIsHtml?: boolean
+ bodyIsHtml?: boolean,
) => Promise;
isDev: () => boolean;
isSelfHost: () => boolean;
@@ -45,7 +45,7 @@ export abstract class PlatformUtilsService {
authenticateBiometric: () => Promise;
getDefaultSystemTheme: () => Promise;
onDefaultSystemThemeChange: (
- callback: (theme: ThemeType.Light | ThemeType.Dark) => unknown
+ callback: (theme: ThemeType.Light | ThemeType.Dark) => unknown,
) => unknown;
getEffectiveTheme: () => Promise;
supportsSecureStorage: () => boolean;
diff --git a/jslib/common/src/abstractions/policy.service.ts b/jslib/common/src/abstractions/policy.service.ts
index 24dcc996..bcf56ad4 100644
--- a/jslib/common/src/abstractions/policy.service.ts
+++ b/jslib/common/src/abstractions/policy.service.ts
@@ -17,16 +17,16 @@ export abstract class PolicyService {
evaluateMasterPassword: (
passwordStrength: number,
newPassword: string,
- enforcedPolicyOptions?: MasterPasswordPolicyOptions
+ enforcedPolicyOptions?: MasterPasswordPolicyOptions,
) => boolean;
getResetPasswordPolicyOptions: (
policies: Policy[],
- orgId: string
+ orgId: string,
) => [ResetPasswordPolicyOptions, boolean];
mapPoliciesFromToken: (policiesResponse: ListResponse) => Policy[];
policyAppliesToUser: (
policyType: PolicyType,
policyFilter?: (policy: Policy) => boolean,
- userId?: string
+ userId?: string,
) => Promise;
}
diff --git a/jslib/common/src/abstractions/search.service.ts b/jslib/common/src/abstractions/search.service.ts
index 9c2b0eeb..cfe569a2 100644
--- a/jslib/common/src/abstractions/search.service.ts
+++ b/jslib/common/src/abstractions/search.service.ts
@@ -9,7 +9,7 @@ export abstract class SearchService {
searchCiphers: (
query: string,
filter?: ((cipher: CipherView) => boolean) | ((cipher: CipherView) => boolean)[],
- ciphers?: CipherView[]
+ ciphers?: CipherView[],
) => Promise;
searchCiphersBasic: (ciphers: CipherView[], query: string, deleted?: boolean) => CipherView[];
searchSends: (sends: SendView[], query: string) => SendView[];
diff --git a/jslib/common/src/abstractions/send.service.ts b/jslib/common/src/abstractions/send.service.ts
index 3331e41e..0bf5d485 100644
--- a/jslib/common/src/abstractions/send.service.ts
+++ b/jslib/common/src/abstractions/send.service.ts
@@ -10,7 +10,7 @@ export abstract class SendService {
model: SendView,
file: File | ArrayBuffer,
password: string,
- key?: SymmetricCryptoKey
+ key?: SymmetricCryptoKey,
) => Promise<[Send, EncArrayBuffer]>;
get: (id: string) => Promise;
getAll: () => Promise;
diff --git a/jslib/common/src/abstractions/state.service.ts b/jslib/common/src/abstractions/state.service.ts
index e74470bd..b789bae2 100644
--- a/jslib/common/src/abstractions/state.service.ts
+++ b/jslib/common/src/abstractions/state.service.ts
@@ -82,23 +82,23 @@ export abstract class StateService {
getDecryptedCryptoSymmetricKey: (options?: StorageOptions) => Promise;
setDecryptedCryptoSymmetricKey: (
value: SymmetricCryptoKey,
- options?: StorageOptions
+ options?: StorageOptions,
) => Promise;
getDecryptedFolders: (options?: StorageOptions) => Promise;
setDecryptedFolders: (value: FolderView[], options?: StorageOptions) => Promise;
getDecryptedOrganizationKeys: (
- options?: StorageOptions
+ options?: StorageOptions,
) => Promise