mirror of
https://github.com/bitwarden/server.git
synced 2026-02-06 00:53:20 +08:00
205 lines
4.9 KiB
C#
205 lines
4.9 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Bit.Seeder.Models;
|
|
|
|
public class EncryptedCipherDto
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public Guid? Id { get; set; }
|
|
|
|
[JsonPropertyName("organizationId")]
|
|
public Guid? OrganizationId { get; set; }
|
|
|
|
[JsonPropertyName("folderId")]
|
|
public Guid? FolderId { get; set; }
|
|
|
|
[JsonPropertyName("name")]
|
|
public string? Name { get; set; }
|
|
|
|
[JsonPropertyName("notes")]
|
|
public string? Notes { get; set; }
|
|
|
|
[JsonPropertyName("type")]
|
|
public int Type { get; set; }
|
|
|
|
[JsonPropertyName("login")]
|
|
public EncryptedLoginDto? Login { get; set; }
|
|
|
|
[JsonPropertyName("card")]
|
|
public EncryptedCardDto? Card { get; set; }
|
|
|
|
[JsonPropertyName("identity")]
|
|
public EncryptedIdentityDto? Identity { get; set; }
|
|
|
|
[JsonPropertyName("secureNote")]
|
|
public EncryptedSecureNoteDto? SecureNote { get; set; }
|
|
|
|
[JsonPropertyName("sshKey")]
|
|
public EncryptedSshKeyDto? SshKey { get; set; }
|
|
|
|
[JsonPropertyName("fields")]
|
|
public List<EncryptedFieldDto>? Fields { get; set; }
|
|
|
|
[JsonPropertyName("favorite")]
|
|
public bool Favorite { get; set; }
|
|
|
|
[JsonPropertyName("reprompt")]
|
|
public int Reprompt { get; set; }
|
|
|
|
[JsonPropertyName("key")]
|
|
public string? Key { get; set; }
|
|
|
|
[JsonPropertyName("creationDate")]
|
|
public DateTime CreationDate { get; set; }
|
|
|
|
[JsonPropertyName("revisionDate")]
|
|
public DateTime RevisionDate { get; set; }
|
|
|
|
[JsonPropertyName("deletedDate")]
|
|
public DateTime? DeletedDate { get; set; }
|
|
}
|
|
|
|
public class EncryptedLoginDto
|
|
{
|
|
[JsonPropertyName("username")]
|
|
public string? Username { get; set; }
|
|
|
|
[JsonPropertyName("password")]
|
|
public string? Password { get; set; }
|
|
|
|
[JsonPropertyName("totp")]
|
|
public string? Totp { get; set; }
|
|
|
|
[JsonPropertyName("uris")]
|
|
public List<EncryptedLoginUriDto>? Uris { get; set; }
|
|
|
|
[JsonPropertyName("passwordRevisionDate")]
|
|
public DateTime? PasswordRevisionDate { get; set; }
|
|
|
|
[JsonPropertyName("fido2Credentials")]
|
|
public object? Fido2Credentials { get; set; }
|
|
}
|
|
|
|
public class EncryptedLoginUriDto
|
|
{
|
|
[JsonPropertyName("uri")]
|
|
public string? Uri { get; set; }
|
|
|
|
[JsonPropertyName("match")]
|
|
public int? Match { get; set; }
|
|
|
|
[JsonPropertyName("uriChecksum")]
|
|
public string? UriChecksum { get; set; }
|
|
}
|
|
|
|
public class EncryptedFieldDto
|
|
{
|
|
[JsonPropertyName("name")]
|
|
public string? Name { get; set; }
|
|
|
|
[JsonPropertyName("value")]
|
|
public string? Value { get; set; }
|
|
|
|
[JsonPropertyName("type")]
|
|
public int Type { get; set; }
|
|
|
|
[JsonPropertyName("linkedId")]
|
|
public int? LinkedId { get; set; }
|
|
}
|
|
|
|
public class EncryptedCardDto
|
|
{
|
|
[JsonPropertyName("cardholderName")]
|
|
public string? CardholderName { get; set; }
|
|
|
|
[JsonPropertyName("brand")]
|
|
public string? Brand { get; set; }
|
|
|
|
[JsonPropertyName("number")]
|
|
public string? Number { get; set; }
|
|
|
|
[JsonPropertyName("expMonth")]
|
|
public string? ExpMonth { get; set; }
|
|
|
|
[JsonPropertyName("expYear")]
|
|
public string? ExpYear { get; set; }
|
|
|
|
[JsonPropertyName("code")]
|
|
public string? Code { get; set; }
|
|
}
|
|
|
|
public class EncryptedIdentityDto
|
|
{
|
|
[JsonPropertyName("title")]
|
|
public string? Title { get; set; }
|
|
|
|
[JsonPropertyName("firstName")]
|
|
public string? FirstName { get; set; }
|
|
|
|
[JsonPropertyName("middleName")]
|
|
public string? MiddleName { get; set; }
|
|
|
|
[JsonPropertyName("lastName")]
|
|
public string? LastName { get; set; }
|
|
|
|
[JsonPropertyName("address1")]
|
|
public string? Address1 { get; set; }
|
|
|
|
[JsonPropertyName("address2")]
|
|
public string? Address2 { get; set; }
|
|
|
|
[JsonPropertyName("address3")]
|
|
public string? Address3 { get; set; }
|
|
|
|
[JsonPropertyName("city")]
|
|
public string? City { get; set; }
|
|
|
|
[JsonPropertyName("state")]
|
|
public string? State { get; set; }
|
|
|
|
[JsonPropertyName("postalCode")]
|
|
public string? PostalCode { get; set; }
|
|
|
|
[JsonPropertyName("country")]
|
|
public string? Country { get; set; }
|
|
|
|
[JsonPropertyName("company")]
|
|
public string? Company { get; set; }
|
|
|
|
[JsonPropertyName("email")]
|
|
public string? Email { get; set; }
|
|
|
|
[JsonPropertyName("phone")]
|
|
public string? Phone { get; set; }
|
|
|
|
[JsonPropertyName("ssn")]
|
|
public string? SSN { get; set; }
|
|
|
|
[JsonPropertyName("username")]
|
|
public string? Username { get; set; }
|
|
|
|
[JsonPropertyName("passportNumber")]
|
|
public string? PassportNumber { get; set; }
|
|
|
|
[JsonPropertyName("licenseNumber")]
|
|
public string? LicenseNumber { get; set; }
|
|
}
|
|
|
|
public class EncryptedSecureNoteDto
|
|
{
|
|
[JsonPropertyName("type")]
|
|
public int Type { get; set; }
|
|
}
|
|
|
|
public class EncryptedSshKeyDto
|
|
{
|
|
[JsonPropertyName("privateKey")]
|
|
public string? PrivateKey { get; set; }
|
|
|
|
[JsonPropertyName("publicKey")]
|
|
public string? PublicKey { get; set; }
|
|
|
|
[JsonPropertyName("fingerprint")]
|
|
public string? Fingerprint { get; set; }
|
|
}
|