mirror of
https://github.com/bitwarden/browser
synced 2026-02-09 13:10:17 +00:00
* Get userId from response if available This is a small improvement for the Auth team which avoids inspection of the access token, sometimes. * Initialize sdk clients with a userId * return both Cipher and encryptedFor when encrypting a cipher Update cipher api requests to include encryptedFor attribute * Prefer named types with documentation * Update sdk to latest * Fixup types * Fixup tests * Revert getting userId from identity token response --------- Co-authored-by: Shane <smelton@bitwarden.com>
14 lines
387 B
TypeScript
14 lines
387 B
TypeScript
import { EncryptionContext } from "../../abstractions/cipher.service";
|
|
|
|
import { CipherRequest } from "./cipher.request";
|
|
|
|
export class CipherShareRequest {
|
|
cipher: CipherRequest;
|
|
collectionIds: string[];
|
|
|
|
constructor({ cipher, encryptedFor }: EncryptionContext) {
|
|
this.cipher = new CipherRequest({ cipher, encryptedFor });
|
|
this.collectionIds = cipher.collectionIds;
|
|
}
|
|
}
|