mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-23 21:44:37 +03:00
Force camelcase on requests
This commit is contained in:
parent
f7e1cae015
commit
c86e32de7e
@ -8,74 +8,74 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type SyncData struct {
|
type SyncData struct {
|
||||||
Profile Profile
|
Profile Profile `json:"profile"`
|
||||||
Folders []Folder
|
Folders []Folder `json:"folders"`
|
||||||
Ciphers []Cipher
|
Ciphers []Cipher `json:"ciphers"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Organization struct {
|
type Organization struct {
|
||||||
Object string
|
Object string `json:"object"`
|
||||||
Id uuid.UUID
|
Id uuid.UUID `json:"id"`
|
||||||
Name string
|
Name string `json:"name"`
|
||||||
UseGroups bool
|
UseGroups bool `json:"useGroups"`
|
||||||
UseDirectory bool
|
UseDirectory bool `json:"useDirectory"`
|
||||||
UseEvents bool
|
UseEvents bool `json:"useEvents"`
|
||||||
UseTotp bool
|
UseTotp bool `json:"useTotp"`
|
||||||
Use2fa bool
|
Use2fa bool `json:"use2fa"`
|
||||||
UseApi bool
|
UseApi bool `json:"useApi"`
|
||||||
UsersGetPremium bool
|
UsersGetPremium bool `json:"usersGetPremium"`
|
||||||
SelfHost bool
|
SelfHost bool `json:"selfHost"`
|
||||||
Seats int
|
Seats int `json:"seats"`
|
||||||
MaxCollections int
|
MaxCollections int `json:"maxCollections"`
|
||||||
MaxStorageGb int
|
MaxStorageGb int `json:"maxStorageGb"`
|
||||||
Key string
|
Key string `json:"key"`
|
||||||
Status int
|
Status int `json:"status"`
|
||||||
Type int
|
Type int `json:"type"`
|
||||||
Enabled bool
|
Enabled bool `json:"enabled"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Profile struct {
|
type Profile struct {
|
||||||
ID uuid.UUID
|
ID uuid.UUID `json:"id"`
|
||||||
Name string
|
Name string `json:"name"`
|
||||||
Email string
|
Email string `json:"email"`
|
||||||
EmailVerified bool
|
EmailVerified bool `json:"emailVerified"`
|
||||||
Premium bool
|
Premium bool `json:"premium"`
|
||||||
MasterPasswordHint string
|
MasterPasswordHint string `json:"masterPasswordHint"`
|
||||||
Culture string
|
Culture string `json:"culture"`
|
||||||
TwoFactorEnabled bool
|
TwoFactorEnabled bool `json:"twoFactorEnabled"`
|
||||||
Key crypto.EncString
|
Key crypto.EncString `json:"key"`
|
||||||
PrivateKey crypto.EncString
|
PrivateKey crypto.EncString `json:"privateKey"`
|
||||||
SecurityStamp string
|
SecurityStamp string `json:"securityStamp"`
|
||||||
Organizations []Organization
|
Organizations []Organization `json:"organizations"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Folder struct {
|
type Folder struct {
|
||||||
ID uuid.UUID
|
ID uuid.UUID `json:"id"`
|
||||||
Name string
|
Name string `json:"name"`
|
||||||
RevisionDate time.Time
|
RevisionDate time.Time `json:"revisionDate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Cipher struct {
|
type Cipher struct {
|
||||||
Type CipherType
|
Type CipherType `json:"type,omitempty"`
|
||||||
ID *uuid.UUID `json:",omitempty"`
|
ID *uuid.UUID `json:"id,omitempty"`
|
||||||
Name crypto.EncString
|
Name crypto.EncString `json:"name,omitempty"`
|
||||||
Edit bool
|
Edit bool `json:"edit,omitempty"`
|
||||||
RevisionDate time.Time
|
RevisionDate time.Time `json:"revisionDate,omitempty"`
|
||||||
DeletedDate time.Time
|
DeletedDate time.Time `json:"deletedDate,omitempty"`
|
||||||
|
|
||||||
FolderID *uuid.UUID `json:",omitempty"`
|
FolderID *uuid.UUID `json:"folderId,omitempty"`
|
||||||
OrganizationID *uuid.UUID `json:",omitempty"`
|
OrganizationID *uuid.UUID `json:"organizationId,omitempty"`
|
||||||
Favorite bool `json:",omitempty"`
|
Favorite bool `json:"favorite,omitempty"`
|
||||||
Attachments interface{} `json:",omitempty"`
|
Attachments interface{} `json:"attachments,omitempty"`
|
||||||
OrganizationUseTotp bool `json:",omitempty"`
|
OrganizationUseTotp bool `json:"organizationUseTotp,omitempty"`
|
||||||
CollectionIDs []string `json:",omitempty"`
|
CollectionIDs []string `json:"collectionIds,omitempty"`
|
||||||
Fields []Field `json:",omitempty"`
|
Fields []Field `json:"fields,omitempty"`
|
||||||
|
|
||||||
Card *Card `json:",omitempty"`
|
Card *Card `json:"card,omitempty"`
|
||||||
Identity *Identity `json:",omitempty"`
|
Identity *Identity `json:"identity,omitempty"`
|
||||||
Login *LoginCipher `json:",omitempty"`
|
Login *LoginCipher `json:"login,omitempty"`
|
||||||
Notes *crypto.EncString `json:",omitempty"`
|
Notes *crypto.EncString `json:"notes,omitempty"`
|
||||||
SecureNote *SecureNoteCipher `json:",omitempty"`
|
SecureNote *SecureNoteCipher `json:"secureNote,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CipherType int
|
type CipherType int
|
||||||
@ -89,56 +89,56 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Card struct {
|
type Card struct {
|
||||||
CardholderName crypto.EncString
|
CardholderName crypto.EncString `json:"cardholderName"`
|
||||||
Brand crypto.EncString
|
Brand crypto.EncString `json:"brand"`
|
||||||
Number crypto.EncString
|
Number crypto.EncString `json:"number"`
|
||||||
ExpMonth crypto.EncString
|
ExpMonth crypto.EncString `json:"expMonth"`
|
||||||
ExpYear crypto.EncString
|
ExpYear crypto.EncString `json:"expYear"`
|
||||||
Code crypto.EncString
|
Code crypto.EncString `json:"code"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Identity struct {
|
type Identity struct {
|
||||||
Title crypto.EncString
|
Title crypto.EncString `json:"title"`
|
||||||
FirstName crypto.EncString
|
FirstName crypto.EncString `json:"firstName"`
|
||||||
MiddleName crypto.EncString
|
MiddleName crypto.EncString `json:"middleName"`
|
||||||
LastName crypto.EncString
|
LastName crypto.EncString `json:"lastName"`
|
||||||
|
|
||||||
Username crypto.EncString
|
Username crypto.EncString `json:"username"`
|
||||||
Company crypto.EncString
|
Company crypto.EncString `json:"company"`
|
||||||
SSN crypto.EncString
|
SSN crypto.EncString `json:"ssn"`
|
||||||
PassportNumber crypto.EncString
|
PassportNumber crypto.EncString `json:"passportNumber"`
|
||||||
LicenseNumber crypto.EncString
|
LicenseNumber crypto.EncString `json:"licenseNumber"`
|
||||||
|
|
||||||
Email crypto.EncString
|
Email crypto.EncString `json:"email"`
|
||||||
Phone crypto.EncString
|
Phone crypto.EncString `json:"phone"`
|
||||||
Address1 crypto.EncString
|
Address1 crypto.EncString `json:"address1"`
|
||||||
Address2 crypto.EncString
|
Address2 crypto.EncString `json:"address2"`
|
||||||
Address3 crypto.EncString
|
Address3 crypto.EncString `json:"address3"`
|
||||||
City crypto.EncString
|
City crypto.EncString `json:"city"`
|
||||||
State crypto.EncString
|
State crypto.EncString `json:"state"`
|
||||||
PostalCode crypto.EncString
|
PostalCode crypto.EncString `json:"postalCode"`
|
||||||
Country crypto.EncString
|
Country crypto.EncString `json:"country"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type FieldType int
|
type FieldType int
|
||||||
type Field struct {
|
type Field struct {
|
||||||
Type FieldType
|
Type FieldType `json:"type,omitempty"`
|
||||||
Name crypto.EncString
|
Name crypto.EncString `json:"name,omitempty"`
|
||||||
Value crypto.EncString
|
Value crypto.EncString `json:"value,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LoginCipher struct {
|
type LoginCipher struct {
|
||||||
Password crypto.EncString
|
Password crypto.EncString `json:"password,omitempty"`
|
||||||
URI crypto.EncString
|
URI crypto.EncString `json:"uri,omitempty"`
|
||||||
URIs []URI
|
URIs []URI `json:"uris,omitempty"`
|
||||||
Username crypto.EncString `json:",omitempty"`
|
Username crypto.EncString `json:"username,omitempty"`
|
||||||
Totp crypto.EncString `json:",omitempty"`
|
Totp crypto.EncString `json:"totp,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type URIMatch int
|
type URIMatch int
|
||||||
type URI struct {
|
type URI struct {
|
||||||
URI string
|
URI string `json:"uri,omitempty"`
|
||||||
Match URIMatch
|
Match URIMatch `json:"match,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SecureNoteType int
|
type SecureNoteType int
|
||||||
|
Loading…
Reference in New Issue
Block a user