mirror of
https://github.com/bitwarden/browser
synced 2025-12-26 05:03:33 +00:00
Add support for crypto agent (#520)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { KeysRequest } from '../keysRequest';
|
||||
|
||||
import { KdfType } from '../../../enums/kdfType';
|
||||
|
||||
export class SetCryptoAgentKeyRequest {
|
||||
key: string;
|
||||
keys: KeysRequest;
|
||||
kdf: KdfType;
|
||||
kdfIterations: number;
|
||||
orgIdentifier: string;
|
||||
|
||||
constructor(key: string, kdf: KdfType, kdfIterations: number, orgIdentifier: string, keys: KeysRequest) {
|
||||
this.key = key;
|
||||
this.kdf = kdf;
|
||||
this.kdfIterations = kdfIterations;
|
||||
this.orgIdentifier = orgIdentifier;
|
||||
this.keys = keys;
|
||||
}
|
||||
}
|
||||
7
common/src/models/request/cryptoAgentUserKeyRequest.ts
Normal file
7
common/src/models/request/cryptoAgentUserKeyRequest.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export class CryptoAgentUserKeyRequest {
|
||||
key: string;
|
||||
|
||||
constructor(key: string) {
|
||||
this.key = key;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user