mirror of
https://github.com/bitwarden/server.git
synced 2026-02-01 06:33:17 +08:00
* Extract Import-Api endpoints into separate controller Moved ciphers/import and ciphers/import-organization into new ImportController Paths have been kept intact for now (no changes on clients needed) Moved request-models used for import into tools-subfolder * Update CODEOWNERS for team-tools-dev * Move HibpController (reports) to tools * Moving files related to Send * Moving files related to ReferenceEvent * Removed unneeded newline
22 lines
647 B
C#
22 lines
647 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Api.Tools.Models.Request;
|
|
using Bit.Api.Vault.Models.Request;
|
|
|
|
namespace Bit.Api.Auth.Models.Request.Accounts;
|
|
|
|
public class UpdateKeyRequestModel
|
|
{
|
|
[Required]
|
|
[StringLength(300)]
|
|
public string MasterPasswordHash { get; set; }
|
|
[Required]
|
|
public IEnumerable<CipherWithIdRequestModel> Ciphers { get; set; }
|
|
[Required]
|
|
public IEnumerable<FolderWithIdRequestModel> Folders { get; set; }
|
|
public IEnumerable<SendWithIdRequestModel> Sends { get; set; }
|
|
[Required]
|
|
public string PrivateKey { get; set; }
|
|
[Required]
|
|
public string Key { get; set; }
|
|
}
|