forked from vwxyzjn/portwarden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
108 lines (93 loc) · 3.2 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Generated by https://quicktype.io
package portwarden
type PortWarden []PortWardenElement
type PortWardenElement struct {
Object Object `json:"object"`
ID string `json:"id"`
OrganizationID *string `json:"organizationId"`
FolderID *string `json:"folderId"`
Type int64 `json:"type"`
Name string `json:"name"`
Notes *string `json:"notes"`
Favorite bool `json:"favorite"`
SecureNote *SecureNote `json:"secureNote,omitempty"`
CollectionIDS []string `json:"collectionIds"`
Attachments []Attachment `json:"attachments"`
RevisionDate string `json:"revisionDate"`
Login *Login `json:"login,omitempty"`
PasswordHistory []PasswordHistory `json:"passwordHistory"`
Fields []Field `json:"fields"`
Card *Card `json:"card,omitempty"`
Identity *Identity `json:"identity,omitempty"`
}
type Attachment struct {
ID string `json:"id"`
FileName string `json:"fileName"`
Size string `json:"size"`
SizeName string `json:"sizeName"`
URL string `json:"url"`
}
type Card struct {
CardholderName string `json:"cardholderName"`
Brand string `json:"brand"`
Number string `json:"number"`
ExpMonth string `json:"expMonth"`
ExpYear string `json:"expYear"`
Code *string `json:"code"`
}
type Field struct {
Name *string `json:"name"`
Value *string `json:"value"`
Type int64 `json:"type"`
}
type Identity struct {
Title interface{} `json:"title"`
FirstName interface{} `json:"firstName"`
MiddleName interface{} `json:"middleName"`
LastName interface{} `json:"lastName"`
Address1 interface{} `json:"address1"`
Address2 interface{} `json:"address2"`
Address3 interface{} `json:"address3"`
City interface{} `json:"city"`
State interface{} `json:"state"`
PostalCode interface{} `json:"postalCode"`
Country interface{} `json:"country"`
Company interface{} `json:"company"`
Email interface{} `json:"email"`
Phone interface{} `json:"phone"`
Ssn interface{} `json:"ssn"`
Username interface{} `json:"username"`
PassportNumber interface{} `json:"passportNumber"`
LicenseNumber interface{} `json:"licenseNumber"`
}
type Login struct {
Uris []Uris `json:"uris"`
Username *string `json:"username"`
Password *string `json:"password"`
Totp *string `json:"totp"`
PasswordRevisionDate *string `json:"passwordRevisionDate"`
}
type Uris struct {
Match interface{} `json:"match"`
URI string `json:"uri"`
}
type PasswordHistory struct {
LastUsedDate string `json:"lastUsedDate"`
Password string `json:"password"`
}
type SecureNote struct {
Type int64 `json:"type"`
}
type Object string
const (
Item Object = "item"
)
type PortWardenFolder []PortWardenFolderElement
type PortWardenFolderElement struct {
Object Object `json:"object"`
ID *string `json:"id"`
Name string `json:"name"`
}
const (
Folder Object = "folder"
)