mirror of
https://github.com/bitwarden/android.git
synced 2024-12-18 07:11:51 +03:00
Add newlines between annotated properties (#135)
This commit is contained in:
parent
95b13882dd
commit
1d2f23d426
5 changed files with 197 additions and 1 deletions
|
@ -12,10 +12,13 @@ import kotlinx.serialization.Serializable
|
||||||
data class InternalPreLoginResponseJson(
|
data class InternalPreLoginResponseJson(
|
||||||
@SerialName("kdf")
|
@SerialName("kdf")
|
||||||
val kdfType: KdfTypeJson,
|
val kdfType: KdfTypeJson,
|
||||||
|
|
||||||
@SerialName("kdfIterations")
|
@SerialName("kdfIterations")
|
||||||
val kdfIterations: UInt,
|
val kdfIterations: UInt,
|
||||||
|
|
||||||
@SerialName("kdfMemory")
|
@SerialName("kdfMemory")
|
||||||
val kdfMemory: UInt? = null,
|
val kdfMemory: UInt? = null,
|
||||||
|
|
||||||
@SerialName("kdfParallelism")
|
@SerialName("kdfParallelism")
|
||||||
val kdfParallelism: UInt? = null,
|
val kdfParallelism: UInt? = null,
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,16 +19,22 @@ import kotlinx.serialization.Serializable
|
||||||
data class JwtTokenDataJson(
|
data class JwtTokenDataJson(
|
||||||
@SerialName("sub")
|
@SerialName("sub")
|
||||||
val userId: String,
|
val userId: String,
|
||||||
|
|
||||||
@SerialName("email")
|
@SerialName("email")
|
||||||
val email: String,
|
val email: String,
|
||||||
|
|
||||||
@SerialName("email_verified")
|
@SerialName("email_verified")
|
||||||
val isEmailVerified: Boolean,
|
val isEmailVerified: Boolean,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("exp")
|
@SerialName("exp")
|
||||||
val expirationAsEpochTime: Int,
|
val expirationAsEpochTime: Int,
|
||||||
|
|
||||||
@SerialName("premium")
|
@SerialName("premium")
|
||||||
val hasPremium: Boolean,
|
val hasPremium: Boolean,
|
||||||
|
|
||||||
@SerialName("amr")
|
@SerialName("amr")
|
||||||
val authenticationMethodsReference: List<String>,
|
val authenticationMethodsReference: List<String>,
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,14 +17,19 @@ import kotlinx.serialization.Serializable
|
||||||
data class ConfigResponseJson(
|
data class ConfigResponseJson(
|
||||||
@SerialName("object")
|
@SerialName("object")
|
||||||
val type: String?,
|
val type: String?,
|
||||||
|
|
||||||
@SerialName("version")
|
@SerialName("version")
|
||||||
val version: String?,
|
val version: String?,
|
||||||
|
|
||||||
@SerialName("gitHash")
|
@SerialName("gitHash")
|
||||||
val gitHash: String?,
|
val gitHash: String?,
|
||||||
|
|
||||||
@SerialName("server")
|
@SerialName("server")
|
||||||
val server: ServerJson?,
|
val server: ServerJson?,
|
||||||
|
|
||||||
@SerialName("environment")
|
@SerialName("environment")
|
||||||
val environment: EnvironmentJson?,
|
val environment: EnvironmentJson?,
|
||||||
|
|
||||||
@SerialName("featureStates")
|
@SerialName("featureStates")
|
||||||
val featureStates: Map<String, Boolean>?,
|
val featureStates: Map<String, Boolean>?,
|
||||||
) {
|
) {
|
||||||
|
@ -38,6 +43,7 @@ data class ConfigResponseJson(
|
||||||
data class ServerJson(
|
data class ServerJson(
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("url")
|
@SerialName("url")
|
||||||
val url: String?,
|
val url: String?,
|
||||||
)
|
)
|
||||||
|
@ -56,14 +62,19 @@ data class ConfigResponseJson(
|
||||||
data class EnvironmentJson(
|
data class EnvironmentJson(
|
||||||
@SerialName("cloudRegion")
|
@SerialName("cloudRegion")
|
||||||
val cloudRegion: String?,
|
val cloudRegion: String?,
|
||||||
|
|
||||||
@SerialName("vault")
|
@SerialName("vault")
|
||||||
val vaultUrl: String?,
|
val vaultUrl: String?,
|
||||||
|
|
||||||
@SerialName("api")
|
@SerialName("api")
|
||||||
val apiUrl: String?,
|
val apiUrl: String?,
|
||||||
|
|
||||||
@SerialName("identity")
|
@SerialName("identity")
|
||||||
val identityUrl: String?,
|
val identityUrl: String?,
|
||||||
|
|
||||||
@SerialName("notifications")
|
@SerialName("notifications")
|
||||||
val notificationsUrl: String?,
|
val notificationsUrl: String?,
|
||||||
|
|
||||||
@SerialName("sso")
|
@SerialName("sso")
|
||||||
val ssoUrl: String?,
|
val ssoUrl: String?,
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,16 +19,22 @@ import kotlinx.serialization.Serializable
|
||||||
data class SyncResponseJson(
|
data class SyncResponseJson(
|
||||||
@SerialName("folders")
|
@SerialName("folders")
|
||||||
val folders: List<Folder>?,
|
val folders: List<Folder>?,
|
||||||
|
|
||||||
@SerialName("collections")
|
@SerialName("collections")
|
||||||
val collections: List<Collection>?,
|
val collections: List<Collection>?,
|
||||||
|
|
||||||
@SerialName("profile")
|
@SerialName("profile")
|
||||||
val profile: Profile?,
|
val profile: Profile?,
|
||||||
|
|
||||||
@SerialName("ciphers")
|
@SerialName("ciphers")
|
||||||
val ciphers: List<Cipher>?,
|
val ciphers: List<Cipher>?,
|
||||||
|
|
||||||
@SerialName("policies")
|
@SerialName("policies")
|
||||||
val policies: List<Policy>?,
|
val policies: List<Policy>?,
|
||||||
|
|
||||||
@SerialName("domains")
|
@SerialName("domains")
|
||||||
val domains: Domains,
|
val domains: Domains,
|
||||||
|
|
||||||
@SerialName("sends")
|
@SerialName("sends")
|
||||||
val sends: List<Send>?,
|
val sends: List<Send>?,
|
||||||
) {
|
) {
|
||||||
|
@ -42,6 +48,7 @@ data class SyncResponseJson(
|
||||||
data class Domains(
|
data class Domains(
|
||||||
@SerialName("globalEquivalentDomains")
|
@SerialName("globalEquivalentDomains")
|
||||||
val globalEquivalentDomains: List<GlobalEquivalentDomain>?,
|
val globalEquivalentDomains: List<GlobalEquivalentDomain>?,
|
||||||
|
|
||||||
@SerialName("equivalentDomains")
|
@SerialName("equivalentDomains")
|
||||||
val equivalentDomains: List<List<String>>?,
|
val equivalentDomains: List<List<String>>?,
|
||||||
) {
|
) {
|
||||||
|
@ -57,8 +64,10 @@ data class SyncResponseJson(
|
||||||
data class GlobalEquivalentDomain(
|
data class GlobalEquivalentDomain(
|
||||||
@SerialName("excluded")
|
@SerialName("excluded")
|
||||||
val isExcluded: Boolean,
|
val isExcluded: Boolean,
|
||||||
|
|
||||||
@SerialName("domains")
|
@SerialName("domains")
|
||||||
val domains: List<String>?,
|
val domains: List<String>?,
|
||||||
|
|
||||||
// TODO Parse type enum in BIT-636
|
// TODO Parse type enum in BIT-636
|
||||||
@SerialName("type")
|
@SerialName("type")
|
||||||
val type: Int,
|
val type: Int,
|
||||||
|
@ -77,8 +86,10 @@ data class SyncResponseJson(
|
||||||
// TODO Serialize revision date in BIT-636
|
// TODO Serialize revision date in BIT-636
|
||||||
@SerialName("revisionDate")
|
@SerialName("revisionDate")
|
||||||
val revisionDate: String?,
|
val revisionDate: String?,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String,
|
val id: String,
|
||||||
)
|
)
|
||||||
|
@ -95,11 +106,14 @@ data class SyncResponseJson(
|
||||||
data class Policy(
|
data class Policy(
|
||||||
@SerialName("organizationId")
|
@SerialName("organizationId")
|
||||||
val organizationId: String,
|
val organizationId: String,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String,
|
val id: String,
|
||||||
|
|
||||||
// TODO Parse type enum in BIT-636
|
// TODO Parse type enum in BIT-636
|
||||||
@SerialName("type")
|
@SerialName("type")
|
||||||
val type: Int,
|
val type: Int,
|
||||||
|
|
||||||
@SerialName("enabled")
|
@SerialName("enabled")
|
||||||
val isEnabled: Boolean,
|
val isEnabled: Boolean,
|
||||||
)
|
)
|
||||||
|
@ -131,38 +145,55 @@ data class SyncResponseJson(
|
||||||
data class Profile(
|
data class Profile(
|
||||||
@SerialName("providerOrganizations")
|
@SerialName("providerOrganizations")
|
||||||
val providerOrganizations: List<Organization>?,
|
val providerOrganizations: List<Organization>?,
|
||||||
|
|
||||||
@SerialName("premiumFromOrganization")
|
@SerialName("premiumFromOrganization")
|
||||||
val isPremiumFromOrganization: Boolean,
|
val isPremiumFromOrganization: Boolean,
|
||||||
|
|
||||||
@SerialName("forcePasswordReset")
|
@SerialName("forcePasswordReset")
|
||||||
val shouldForcePasswordReset: Boolean,
|
val shouldForcePasswordReset: Boolean,
|
||||||
|
|
||||||
@SerialName("avatarColor")
|
@SerialName("avatarColor")
|
||||||
val avatarColor: String?,
|
val avatarColor: String?,
|
||||||
|
|
||||||
@SerialName("emailVerified")
|
@SerialName("emailVerified")
|
||||||
val isEmailVerified: Boolean,
|
val isEmailVerified: Boolean,
|
||||||
|
|
||||||
@SerialName("twoFactorEnabled")
|
@SerialName("twoFactorEnabled")
|
||||||
val isTwoFactorEnabled: Boolean,
|
val isTwoFactorEnabled: Boolean,
|
||||||
|
|
||||||
@SerialName("privateKey")
|
@SerialName("privateKey")
|
||||||
val privateKey: String?,
|
val privateKey: String?,
|
||||||
|
|
||||||
@SerialName("premium")
|
@SerialName("premium")
|
||||||
val isPremium: Boolean,
|
val isPremium: Boolean,
|
||||||
|
|
||||||
@SerialName("culture")
|
@SerialName("culture")
|
||||||
val culture: String?,
|
val culture: String?,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("organizations")
|
@SerialName("organizations")
|
||||||
val organizations: List<Organization>?,
|
val organizations: List<Organization>?,
|
||||||
|
|
||||||
@SerialName("usesKeyConnector")
|
@SerialName("usesKeyConnector")
|
||||||
val shouldUseKeyConnector: Boolean,
|
val shouldUseKeyConnector: Boolean,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String,
|
val id: String,
|
||||||
|
|
||||||
@SerialName("masterPasswordHint")
|
@SerialName("masterPasswordHint")
|
||||||
val masterPasswordHint: String?,
|
val masterPasswordHint: String?,
|
||||||
|
|
||||||
@SerialName("email")
|
@SerialName("email")
|
||||||
val email: String?,
|
val email: String?,
|
||||||
|
|
||||||
@SerialName("key")
|
@SerialName("key")
|
||||||
val key: String?,
|
val key: String?,
|
||||||
|
|
||||||
@SerialName("securityStamp")
|
@SerialName("securityStamp")
|
||||||
val securityStamp: String?,
|
val securityStamp: String?,
|
||||||
|
|
||||||
@SerialName("providers")
|
@SerialName("providers")
|
||||||
val providers: List<Provider>?,
|
val providers: List<Provider>?,
|
||||||
) {
|
) {
|
||||||
|
@ -223,92 +254,133 @@ data class SyncResponseJson(
|
||||||
data class Organization(
|
data class Organization(
|
||||||
@SerialName("usePolicies")
|
@SerialName("usePolicies")
|
||||||
val shouldUsePolicies: Boolean,
|
val shouldUsePolicies: Boolean,
|
||||||
|
|
||||||
@SerialName("keyConnectorUrl")
|
@SerialName("keyConnectorUrl")
|
||||||
val keyConnectorUrl: String?,
|
val keyConnectorUrl: String?,
|
||||||
// TODO Parse type enum in BIT-636
|
// TODO Parse type enum in BIT-636
|
||||||
@SerialName("type")
|
@SerialName("type")
|
||||||
val type: Int,
|
val type: Int,
|
||||||
|
|
||||||
@SerialName("seats")
|
@SerialName("seats")
|
||||||
val seats: Int?,
|
val seats: Int?,
|
||||||
|
|
||||||
@SerialName("enabled")
|
@SerialName("enabled")
|
||||||
val isEnabled: Boolean,
|
val isEnabled: Boolean,
|
||||||
|
|
||||||
// TODO Parse provider type enum in BIT-636
|
// TODO Parse provider type enum in BIT-636
|
||||||
@SerialName("providerType")
|
@SerialName("providerType")
|
||||||
val providerType: Int,
|
val providerType: Int,
|
||||||
|
|
||||||
@SerialName("resetPasswordEnrolled")
|
@SerialName("resetPasswordEnrolled")
|
||||||
val isResetPasswordEnrolled: Boolean,
|
val isResetPasswordEnrolled: Boolean,
|
||||||
|
|
||||||
@SerialName("useSecretsManager")
|
@SerialName("useSecretsManager")
|
||||||
val shouldUseSecretsManager: Boolean,
|
val shouldUseSecretsManager: Boolean,
|
||||||
|
|
||||||
@SerialName("maxCollections")
|
@SerialName("maxCollections")
|
||||||
val maxCollections: Int?,
|
val maxCollections: Int?,
|
||||||
|
|
||||||
@SerialName("selfHost")
|
@SerialName("selfHost")
|
||||||
val isSelfHost: Boolean,
|
val isSelfHost: Boolean,
|
||||||
|
|
||||||
@SerialName("useKeyConnector")
|
@SerialName("useKeyConnector")
|
||||||
val shouldUseKeyConnector: Boolean,
|
val shouldUseKeyConnector: Boolean,
|
||||||
|
|
||||||
@SerialName("permissions")
|
@SerialName("permissions")
|
||||||
val permissions: Permissions,
|
val permissions: Permissions,
|
||||||
|
|
||||||
@SerialName("hasPublicAndPrivateKeys")
|
@SerialName("hasPublicAndPrivateKeys")
|
||||||
val hasPublicAndPrivateKeys: Boolean,
|
val hasPublicAndPrivateKeys: Boolean,
|
||||||
|
|
||||||
@SerialName("providerId")
|
@SerialName("providerId")
|
||||||
val providerId: String?,
|
val providerId: String?,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String,
|
val id: String,
|
||||||
|
|
||||||
@SerialName("useGroups")
|
@SerialName("useGroups")
|
||||||
val shouldUseGroups: Boolean,
|
val shouldUseGroups: Boolean,
|
||||||
|
|
||||||
@SerialName("useDirectory")
|
@SerialName("useDirectory")
|
||||||
val shouldUseDirectory: Boolean,
|
val shouldUseDirectory: Boolean,
|
||||||
|
|
||||||
@SerialName("key")
|
@SerialName("key")
|
||||||
val key: String?,
|
val key: String?,
|
||||||
|
|
||||||
@SerialName("providerName")
|
@SerialName("providerName")
|
||||||
val providerName: String?,
|
val providerName: String?,
|
||||||
|
|
||||||
@SerialName("usersGetPremium")
|
@SerialName("usersGetPremium")
|
||||||
val shouldUsersGetPremium: Boolean,
|
val shouldUsersGetPremium: Boolean,
|
||||||
|
|
||||||
@SerialName("maxStorageGb")
|
@SerialName("maxStorageGb")
|
||||||
val maxStorageGb: Int?,
|
val maxStorageGb: Int?,
|
||||||
|
|
||||||
@SerialName("identifier")
|
@SerialName("identifier")
|
||||||
val identifier: String?,
|
val identifier: String?,
|
||||||
|
|
||||||
@SerialName("useSso")
|
@SerialName("useSso")
|
||||||
val shouldUseSso: Boolean,
|
val shouldUseSso: Boolean,
|
||||||
|
|
||||||
@SerialName("useCustomPermissions")
|
@SerialName("useCustomPermissions")
|
||||||
val shouldUseCustomPermissions: Boolean,
|
val shouldUseCustomPermissions: Boolean,
|
||||||
|
|
||||||
@SerialName("familySponsorshipAvailable")
|
@SerialName("familySponsorshipAvailable")
|
||||||
val isFamilySponsorshipAvailable: Boolean,
|
val isFamilySponsorshipAvailable: Boolean,
|
||||||
|
|
||||||
@SerialName("useResetPassword")
|
@SerialName("useResetPassword")
|
||||||
val shouldUseResetPassword: Boolean,
|
val shouldUseResetPassword: Boolean,
|
||||||
|
|
||||||
// TODO Parse plan product type enum in BIT-636
|
// TODO Parse plan product type enum in BIT-636
|
||||||
@SerialName("planProductType")
|
@SerialName("planProductType")
|
||||||
val planProductType: Int,
|
val planProductType: Int,
|
||||||
|
|
||||||
@SerialName("accessSecretsManager")
|
@SerialName("accessSecretsManager")
|
||||||
val accessSecretsManager: Boolean,
|
val accessSecretsManager: Boolean,
|
||||||
|
|
||||||
@SerialName("use2fa")
|
@SerialName("use2fa")
|
||||||
val use2fa: Boolean,
|
val use2fa: Boolean,
|
||||||
|
|
||||||
@SerialName("familySponsorshipToDelete")
|
@SerialName("familySponsorshipToDelete")
|
||||||
val familySponsorshipToDelete: Boolean?,
|
val familySponsorshipToDelete: Boolean?,
|
||||||
|
|
||||||
@SerialName("userId")
|
@SerialName("userId")
|
||||||
val userId: String?,
|
val userId: String?,
|
||||||
|
|
||||||
@SerialName("useActivateAutofillPolicy")
|
@SerialName("useActivateAutofillPolicy")
|
||||||
val shouldUseActivateAutofillPolicy: Boolean,
|
val shouldUseActivateAutofillPolicy: Boolean,
|
||||||
|
|
||||||
@SerialName("useEvents")
|
@SerialName("useEvents")
|
||||||
val shouldUseEvents: Boolean,
|
val shouldUseEvents: Boolean,
|
||||||
|
|
||||||
@SerialName("familySponsorshipFriendlyName")
|
@SerialName("familySponsorshipFriendlyName")
|
||||||
val isFamilySponsorshipFriendlyName: String?,
|
val isFamilySponsorshipFriendlyName: String?,
|
||||||
|
|
||||||
@SerialName("keyConnectorEnabled")
|
@SerialName("keyConnectorEnabled")
|
||||||
val isKeyConnectorEnabled: Boolean,
|
val isKeyConnectorEnabled: Boolean,
|
||||||
|
|
||||||
@SerialName("useTotp")
|
@SerialName("useTotp")
|
||||||
val shouldUseTotp: Boolean,
|
val shouldUseTotp: Boolean,
|
||||||
|
|
||||||
// TODO Serialize family sponsorship last sync date in BIT-636
|
// TODO Serialize family sponsorship last sync date in BIT-636
|
||||||
@SerialName("familySponsorshipLastSyncDate")
|
@SerialName("familySponsorshipLastSyncDate")
|
||||||
val familySponsorshipLastSyncDate: String?,
|
val familySponsorshipLastSyncDate: String?,
|
||||||
|
|
||||||
@SerialName("useScim")
|
@SerialName("useScim")
|
||||||
val shouldUseScim: Boolean,
|
val shouldUseScim: Boolean,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("useApi")
|
@SerialName("useApi")
|
||||||
val shouldUseApi: Boolean,
|
val shouldUseApi: Boolean,
|
||||||
|
|
||||||
@SerialName("ssoBound")
|
@SerialName("ssoBound")
|
||||||
val isSsoBound: Boolean,
|
val isSsoBound: Boolean,
|
||||||
|
|
||||||
@SerialName("familySponsorshipValidUntil")
|
@SerialName("familySponsorshipValidUntil")
|
||||||
val familySponsorshipValidUntil: String?,
|
val familySponsorshipValidUntil: String?,
|
||||||
|
|
||||||
@SerialName("status")
|
@SerialName("status")
|
||||||
val status: Int,
|
val status: Int,
|
||||||
)
|
)
|
||||||
|
@ -330,21 +402,29 @@ data class SyncResponseJson(
|
||||||
data class Provider(
|
data class Provider(
|
||||||
@SerialName("useEvents")
|
@SerialName("useEvents")
|
||||||
val shouldUseEvents: Boolean,
|
val shouldUseEvents: Boolean,
|
||||||
|
|
||||||
@SerialName("permissions")
|
@SerialName("permissions")
|
||||||
val permissions: Permissions,
|
val permissions: Permissions,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String,
|
val id: String,
|
||||||
|
|
||||||
// TODO Parse type enum in BIT-636
|
// TODO Parse type enum in BIT-636
|
||||||
@SerialName("type")
|
@SerialName("type")
|
||||||
val type: Int,
|
val type: Int,
|
||||||
|
|
||||||
@SerialName("userId")
|
@SerialName("userId")
|
||||||
val userId: String?,
|
val userId: String?,
|
||||||
|
|
||||||
@SerialName("key")
|
@SerialName("key")
|
||||||
val key: String?,
|
val key: String?,
|
||||||
|
|
||||||
@SerialName("enabled")
|
@SerialName("enabled")
|
||||||
val isEnabled: Boolean,
|
val isEnabled: Boolean,
|
||||||
|
|
||||||
@SerialName("status")
|
@SerialName("status")
|
||||||
val status: Int,
|
val status: Int,
|
||||||
)
|
)
|
||||||
|
@ -371,30 +451,43 @@ data class SyncResponseJson(
|
||||||
data class Permissions(
|
data class Permissions(
|
||||||
@SerialName("manageGroups")
|
@SerialName("manageGroups")
|
||||||
val shouldManageGroups: Boolean,
|
val shouldManageGroups: Boolean,
|
||||||
|
|
||||||
@SerialName("manageResetPassword")
|
@SerialName("manageResetPassword")
|
||||||
val shouldManageResetPassword: Boolean,
|
val shouldManageResetPassword: Boolean,
|
||||||
|
|
||||||
@SerialName("accessReports")
|
@SerialName("accessReports")
|
||||||
val shouldAccessReports: Boolean,
|
val shouldAccessReports: Boolean,
|
||||||
|
|
||||||
@SerialName("managePolicies")
|
@SerialName("managePolicies")
|
||||||
val shouldManagePolicies: Boolean,
|
val shouldManagePolicies: Boolean,
|
||||||
|
|
||||||
@SerialName("deleteAnyCollection")
|
@SerialName("deleteAnyCollection")
|
||||||
val shouldDeleteAnyCollection: Boolean,
|
val shouldDeleteAnyCollection: Boolean,
|
||||||
|
|
||||||
@SerialName("manageSso")
|
@SerialName("manageSso")
|
||||||
val shouldManageSso: Boolean,
|
val shouldManageSso: Boolean,
|
||||||
|
|
||||||
@SerialName("deleteAssignedCollections")
|
@SerialName("deleteAssignedCollections")
|
||||||
val shouldDeleteAssignedCollections: Boolean,
|
val shouldDeleteAssignedCollections: Boolean,
|
||||||
|
|
||||||
@SerialName("manageUsers")
|
@SerialName("manageUsers")
|
||||||
val shouldManageUsers: Boolean,
|
val shouldManageUsers: Boolean,
|
||||||
|
|
||||||
@SerialName("manageScim")
|
@SerialName("manageScim")
|
||||||
val shouldManageScim: Boolean,
|
val shouldManageScim: Boolean,
|
||||||
|
|
||||||
@SerialName("accessImportExport")
|
@SerialName("accessImportExport")
|
||||||
val shouldAccessImportExport: Boolean,
|
val shouldAccessImportExport: Boolean,
|
||||||
|
|
||||||
@SerialName("editAnyCollection")
|
@SerialName("editAnyCollection")
|
||||||
val shouldEditAnyCollection: Boolean,
|
val shouldEditAnyCollection: Boolean,
|
||||||
|
|
||||||
@SerialName("accessEventLogs")
|
@SerialName("accessEventLogs")
|
||||||
val shouldAccessEventLogs: Boolean,
|
val shouldAccessEventLogs: Boolean,
|
||||||
|
|
||||||
@SerialName("createNewCollections")
|
@SerialName("createNewCollections")
|
||||||
val shouldCreateNewCollections: Boolean,
|
val shouldCreateNewCollections: Boolean,
|
||||||
|
|
||||||
@SerialName("editAssignedCollections")
|
@SerialName("editAssignedCollections")
|
||||||
val shouldEditAssignedCollections: Boolean,
|
val shouldEditAssignedCollections: Boolean,
|
||||||
)
|
)
|
||||||
|
@ -431,50 +524,71 @@ data class SyncResponseJson(
|
||||||
data class Cipher(
|
data class Cipher(
|
||||||
@SerialName("notes")
|
@SerialName("notes")
|
||||||
val notes: String?,
|
val notes: String?,
|
||||||
|
|
||||||
@SerialName("attachments")
|
@SerialName("attachments")
|
||||||
val attachments: List<Attachment>?,
|
val attachments: List<Attachment>?,
|
||||||
|
|
||||||
@SerialName("organizationUseTotp")
|
@SerialName("organizationUseTotp")
|
||||||
val shouldOrganizationUseTotp: Boolean,
|
val shouldOrganizationUseTotp: Boolean,
|
||||||
|
|
||||||
@SerialName("reprompt")
|
@SerialName("reprompt")
|
||||||
val reprompt: Int,
|
val reprompt: Int,
|
||||||
|
|
||||||
@SerialName("edit")
|
@SerialName("edit")
|
||||||
val shouldEdit: Boolean,
|
val shouldEdit: Boolean,
|
||||||
|
|
||||||
@SerialName("passwordHistory")
|
@SerialName("passwordHistory")
|
||||||
val passwordHistory: List<PasswordHistory>?,
|
val passwordHistory: List<PasswordHistory>?,
|
||||||
|
|
||||||
// TODO Serialize revision date in BIT-636
|
// TODO Serialize revision date in BIT-636
|
||||||
@SerialName("revisionDate")
|
@SerialName("revisionDate")
|
||||||
val revisionDate: String?,
|
val revisionDate: String?,
|
||||||
|
|
||||||
// TODO Parse type enum in BIT-636
|
// TODO Parse type enum in BIT-636
|
||||||
@SerialName("type")
|
@SerialName("type")
|
||||||
val type: Int,
|
val type: Int,
|
||||||
|
|
||||||
@SerialName("login")
|
@SerialName("login")
|
||||||
val login: Login,
|
val login: Login,
|
||||||
|
|
||||||
// TODO Serialize creation date in BIT-636
|
// TODO Serialize creation date in BIT-636
|
||||||
@SerialName("creationDate")
|
@SerialName("creationDate")
|
||||||
val creationDate: String?,
|
val creationDate: String?,
|
||||||
|
|
||||||
@SerialName("secureNote")
|
@SerialName("secureNote")
|
||||||
val secureNote: SecureNote,
|
val secureNote: SecureNote,
|
||||||
|
|
||||||
@SerialName("folderId")
|
@SerialName("folderId")
|
||||||
val folderId: String?,
|
val folderId: String?,
|
||||||
|
|
||||||
@SerialName("organizationId")
|
@SerialName("organizationId")
|
||||||
val organizationId: String?,
|
val organizationId: String?,
|
||||||
|
|
||||||
// TODO Serialize deleted date in BIT-636
|
// TODO Serialize deleted date in BIT-636
|
||||||
@SerialName("deletedDate")
|
@SerialName("deletedDate")
|
||||||
val deletedDate: String?,
|
val deletedDate: String?,
|
||||||
|
|
||||||
@SerialName("identity")
|
@SerialName("identity")
|
||||||
val identity: Identity,
|
val identity: Identity,
|
||||||
|
|
||||||
@SerialName("collectionIds")
|
@SerialName("collectionIds")
|
||||||
val collectionIds: List<String>?,
|
val collectionIds: List<String>?,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String,
|
val id: String,
|
||||||
|
|
||||||
@SerialName("fields")
|
@SerialName("fields")
|
||||||
val fields: List<Field>?,
|
val fields: List<Field>?,
|
||||||
|
|
||||||
@SerialName("viewPassword")
|
@SerialName("viewPassword")
|
||||||
val shouldViewPassword: Boolean,
|
val shouldViewPassword: Boolean,
|
||||||
|
|
||||||
@SerialName("favorite")
|
@SerialName("favorite")
|
||||||
val isFavorite: Boolean,
|
val isFavorite: Boolean,
|
||||||
|
|
||||||
@SerialName("card")
|
@SerialName("card")
|
||||||
val card: Card,
|
val card: Card,
|
||||||
) {
|
) {
|
||||||
|
@ -492,14 +606,19 @@ data class SyncResponseJson(
|
||||||
data class Attachment(
|
data class Attachment(
|
||||||
@SerialName("fileName")
|
@SerialName("fileName")
|
||||||
val fileName: String?,
|
val fileName: String?,
|
||||||
|
|
||||||
@SerialName("size")
|
@SerialName("size")
|
||||||
val size: Int,
|
val size: Int,
|
||||||
|
|
||||||
@SerialName("sizeName")
|
@SerialName("sizeName")
|
||||||
val sizeName: String?,
|
val sizeName: String?,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String?,
|
val id: String?,
|
||||||
|
|
||||||
@SerialName("url")
|
@SerialName("url")
|
||||||
val url: String?,
|
val url: String?,
|
||||||
|
|
||||||
@SerialName("key")
|
@SerialName("key")
|
||||||
val key: String?,
|
val key: String?,
|
||||||
)
|
)
|
||||||
|
@ -518,14 +637,19 @@ data class SyncResponseJson(
|
||||||
data class Card(
|
data class Card(
|
||||||
@SerialName("number")
|
@SerialName("number")
|
||||||
val number: String?,
|
val number: String?,
|
||||||
|
|
||||||
@SerialName("expMonth")
|
@SerialName("expMonth")
|
||||||
val expMonth: String?,
|
val expMonth: String?,
|
||||||
|
|
||||||
@SerialName("code")
|
@SerialName("code")
|
||||||
val code: String?,
|
val code: String?,
|
||||||
|
|
||||||
@SerialName("expYear")
|
@SerialName("expYear")
|
||||||
val expirationYear: String?,
|
val expirationYear: String?,
|
||||||
|
|
||||||
@SerialName("cardholderName")
|
@SerialName("cardholderName")
|
||||||
val cardholderName: String?,
|
val cardholderName: String?,
|
||||||
|
|
||||||
@SerialName("brand")
|
@SerialName("brand")
|
||||||
val brand: String?,
|
val brand: String?,
|
||||||
)
|
)
|
||||||
|
@ -542,11 +666,14 @@ data class SyncResponseJson(
|
||||||
data class Field(
|
data class Field(
|
||||||
@SerialName("linkedId")
|
@SerialName("linkedId")
|
||||||
val linkedId: String?,
|
val linkedId: String?,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
// TODO Parse type enum in BIT-636
|
// TODO Parse type enum in BIT-636
|
||||||
@SerialName("type")
|
@SerialName("type")
|
||||||
val type: Int,
|
val type: Int,
|
||||||
|
|
||||||
@SerialName("value")
|
@SerialName("value")
|
||||||
val value: String?,
|
val value: String?,
|
||||||
)
|
)
|
||||||
|
@ -577,38 +704,55 @@ data class SyncResponseJson(
|
||||||
data class Identity(
|
data class Identity(
|
||||||
@SerialName("passportNumber")
|
@SerialName("passportNumber")
|
||||||
val passportNumber: String?,
|
val passportNumber: String?,
|
||||||
|
|
||||||
@SerialName("lastName")
|
@SerialName("lastName")
|
||||||
val lastName: String?,
|
val lastName: String?,
|
||||||
|
|
||||||
@SerialName("country")
|
@SerialName("country")
|
||||||
val country: String?,
|
val country: String?,
|
||||||
|
|
||||||
@SerialName("address3")
|
@SerialName("address3")
|
||||||
val address3: String?,
|
val address3: String?,
|
||||||
|
|
||||||
@SerialName("address2")
|
@SerialName("address2")
|
||||||
val address2: String?,
|
val address2: String?,
|
||||||
|
|
||||||
@SerialName("city")
|
@SerialName("city")
|
||||||
val city: String?,
|
val city: String?,
|
||||||
|
|
||||||
@SerialName("address1")
|
@SerialName("address1")
|
||||||
val address1: String?,
|
val address1: String?,
|
||||||
|
|
||||||
@SerialName("postalCode")
|
@SerialName("postalCode")
|
||||||
val postalCode: String?,
|
val postalCode: String?,
|
||||||
|
|
||||||
@SerialName("title")
|
@SerialName("title")
|
||||||
val title: String?,
|
val title: String?,
|
||||||
|
|
||||||
@SerialName("ssn")
|
@SerialName("ssn")
|
||||||
val ssn: String?,
|
val ssn: String?,
|
||||||
|
|
||||||
@SerialName("firstName")
|
@SerialName("firstName")
|
||||||
val firstName: String?,
|
val firstName: String?,
|
||||||
|
|
||||||
@SerialName("phone")
|
@SerialName("phone")
|
||||||
val phone: String?,
|
val phone: String?,
|
||||||
|
|
||||||
@SerialName("middleName")
|
@SerialName("middleName")
|
||||||
val middleName: String?,
|
val middleName: String?,
|
||||||
|
|
||||||
@SerialName("company")
|
@SerialName("company")
|
||||||
val company: String?,
|
val company: String?,
|
||||||
|
|
||||||
@SerialName("licenseNumber")
|
@SerialName("licenseNumber")
|
||||||
val licenseNumber: String?,
|
val licenseNumber: String?,
|
||||||
|
|
||||||
@SerialName("state")
|
@SerialName("state")
|
||||||
val state: String?,
|
val state: String?,
|
||||||
|
|
||||||
@SerialName("email")
|
@SerialName("email")
|
||||||
val email: String?,
|
val email: String?,
|
||||||
|
|
||||||
@SerialName("username")
|
@SerialName("username")
|
||||||
val username: String?,
|
val username: String?,
|
||||||
)
|
)
|
||||||
|
@ -628,17 +772,23 @@ data class SyncResponseJson(
|
||||||
data class Login(
|
data class Login(
|
||||||
@SerialName("uris")
|
@SerialName("uris")
|
||||||
val uris: List<Uri>?,
|
val uris: List<Uri>?,
|
||||||
|
|
||||||
@SerialName("totp")
|
@SerialName("totp")
|
||||||
val totp: String?,
|
val totp: String?,
|
||||||
|
|
||||||
@SerialName("password")
|
@SerialName("password")
|
||||||
val password: String?,
|
val password: String?,
|
||||||
|
|
||||||
// TODO Serialize password revision date in BIT-636
|
// TODO Serialize password revision date in BIT-636
|
||||||
@SerialName("passwordRevisionDate")
|
@SerialName("passwordRevisionDate")
|
||||||
val passwordRevisionDate: String?,
|
val passwordRevisionDate: String?,
|
||||||
|
|
||||||
@SerialName("autofillOnPageLoad")
|
@SerialName("autofillOnPageLoad")
|
||||||
val shouldAutofillOnPageLoad: Boolean?,
|
val shouldAutofillOnPageLoad: Boolean?,
|
||||||
|
|
||||||
@SerialName("uri")
|
@SerialName("uri")
|
||||||
val uri: String?,
|
val uri: String?,
|
||||||
|
|
||||||
@SerialName("username")
|
@SerialName("username")
|
||||||
val username: String?,
|
val username: String?,
|
||||||
) {
|
) {
|
||||||
|
@ -652,6 +802,7 @@ data class SyncResponseJson(
|
||||||
data class Uri(
|
data class Uri(
|
||||||
@SerialName("match")
|
@SerialName("match")
|
||||||
val match: Int,
|
val match: Int,
|
||||||
|
|
||||||
@SerialName("uri")
|
@SerialName("uri")
|
||||||
val uri: String?,
|
val uri: String?,
|
||||||
)
|
)
|
||||||
|
@ -667,6 +818,7 @@ data class SyncResponseJson(
|
||||||
data class PasswordHistory(
|
data class PasswordHistory(
|
||||||
@SerialName("password")
|
@SerialName("password")
|
||||||
val password: String,
|
val password: String,
|
||||||
|
|
||||||
// TODO Serialize last used date in BIT-636
|
// TODO Serialize last used date in BIT-636
|
||||||
@SerialName("lastUsedDate")
|
@SerialName("lastUsedDate")
|
||||||
val lastUsedDate: String,
|
val lastUsedDate: String,
|
||||||
|
@ -709,37 +861,52 @@ data class SyncResponseJson(
|
||||||
data class Send(
|
data class Send(
|
||||||
@SerialName("accessCount")
|
@SerialName("accessCount")
|
||||||
val accessCount: Int,
|
val accessCount: Int,
|
||||||
|
|
||||||
@SerialName("notes")
|
@SerialName("notes")
|
||||||
val notes: String?,
|
val notes: String?,
|
||||||
|
|
||||||
// TODO Serialize revision date in BIT-636
|
// TODO Serialize revision date in BIT-636
|
||||||
@SerialName("revisionDate")
|
@SerialName("revisionDate")
|
||||||
val revisionDate: String,
|
val revisionDate: String,
|
||||||
|
|
||||||
@SerialName("maxAccessCount")
|
@SerialName("maxAccessCount")
|
||||||
val maxAccessCount: Int?,
|
val maxAccessCount: Int?,
|
||||||
|
|
||||||
@SerialName("hideEmail")
|
@SerialName("hideEmail")
|
||||||
val shouldHideEmail: Boolean,
|
val shouldHideEmail: Boolean,
|
||||||
|
|
||||||
// TODO Parse type enum in BIT-636
|
// TODO Parse type enum in BIT-636
|
||||||
@SerialName("type")
|
@SerialName("type")
|
||||||
val type: Int,
|
val type: Int,
|
||||||
|
|
||||||
@SerialName("accessId")
|
@SerialName("accessId")
|
||||||
val accessId: String?,
|
val accessId: String?,
|
||||||
|
|
||||||
@SerialName("password")
|
@SerialName("password")
|
||||||
val password: String?,
|
val password: String?,
|
||||||
|
|
||||||
@SerialName("file")
|
@SerialName("file")
|
||||||
val file: File,
|
val file: File,
|
||||||
|
|
||||||
// TODO Serialize deletion date in BIT-636
|
// TODO Serialize deletion date in BIT-636
|
||||||
@SerialName("deletionDate")
|
@SerialName("deletionDate")
|
||||||
val deletionDate: String,
|
val deletionDate: String,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("disabled")
|
@SerialName("disabled")
|
||||||
val isDisabled: Boolean,
|
val isDisabled: Boolean,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String,
|
val id: String,
|
||||||
|
|
||||||
@SerialName("text")
|
@SerialName("text")
|
||||||
val text: Text,
|
val text: Text,
|
||||||
|
|
||||||
@SerialName("key")
|
@SerialName("key")
|
||||||
val key: String?,
|
val key: String?,
|
||||||
|
|
||||||
// TODO Serialize expiration date in BIT-636
|
// TODO Serialize expiration date in BIT-636
|
||||||
@SerialName("expirationDate")
|
@SerialName("expirationDate")
|
||||||
val expirationDate: String?,
|
val expirationDate: String?,
|
||||||
|
@ -756,10 +923,13 @@ data class SyncResponseJson(
|
||||||
data class File(
|
data class File(
|
||||||
@SerialName("fileName")
|
@SerialName("fileName")
|
||||||
val fileName: String?,
|
val fileName: String?,
|
||||||
|
|
||||||
@SerialName("size")
|
@SerialName("size")
|
||||||
val size: Int?,
|
val size: Int?,
|
||||||
|
|
||||||
@SerialName("sizeName")
|
@SerialName("sizeName")
|
||||||
val sizeName: String?,
|
val sizeName: String?,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String?,
|
val id: String?,
|
||||||
)
|
)
|
||||||
|
@ -774,6 +944,7 @@ data class SyncResponseJson(
|
||||||
data class Text(
|
data class Text(
|
||||||
@SerialName("hidden")
|
@SerialName("hidden")
|
||||||
val isHidden: Boolean,
|
val isHidden: Boolean,
|
||||||
|
|
||||||
@SerialName("text")
|
@SerialName("text")
|
||||||
val text: String?,
|
val text: String?,
|
||||||
)
|
)
|
||||||
|
@ -793,14 +964,19 @@ data class SyncResponseJson(
|
||||||
data class Collection(
|
data class Collection(
|
||||||
@SerialName("organizationId")
|
@SerialName("organizationId")
|
||||||
val organizationId: String,
|
val organizationId: String,
|
||||||
|
|
||||||
@SerialName("hidePasswords")
|
@SerialName("hidePasswords")
|
||||||
val shouldHidePasswords: Boolean,
|
val shouldHidePasswords: Boolean,
|
||||||
|
|
||||||
@SerialName("name")
|
@SerialName("name")
|
||||||
val name: String?,
|
val name: String?,
|
||||||
|
|
||||||
@SerialName("externalId")
|
@SerialName("externalId")
|
||||||
val externalId: String?,
|
val externalId: String?,
|
||||||
|
|
||||||
@SerialName("readOnly")
|
@SerialName("readOnly")
|
||||||
val isReadOnly: Boolean,
|
val isReadOnly: Boolean,
|
||||||
|
|
||||||
@SerialName("id")
|
@SerialName("id")
|
||||||
val id: String,
|
val id: String,
|
||||||
)
|
)
|
||||||
|
|
|
@ -145,7 +145,7 @@ When there is only one argument but the function call must wrap to multiple line
|
||||||
|
|
||||||
#### Annotation-related formatting
|
#### Annotation-related formatting
|
||||||
|
|
||||||
When annotating properties, the annotations should be on their own lines and there may optionally be a space between each annotated property. The following is correct:
|
When annotating properties, the annotations should be on their own lines and there must be a space between each annotated property. The following is correct:
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
// Good
|
// Good
|
||||||
|
|
Loading…
Reference in a new issue