@@ -10,6 +10,7 @@ import Data.Int as Int
10import Data.JNullable (JNullable)
10import Data.JNullable (JNullable)
11import Data.JOpt (JOpt)
11import Data.JOpt (JOpt)
12import Data.Maybe (Maybe(..))
12import Data.Maybe (Maybe(..))
13+import Data.Nullable (Nullable)
13import Data.ShowableJson (ShowableJson)
14import Data.ShowableJson (ShowableJson)
14import Data.Timestamp (Timestamp)
15import Data.Timestamp (Timestamp)
15import Data.Traversable (for)
16import Data.Traversable (for)
@@ -21,8 +22,7 @@ import Untagged.TypeCheck (class HasRuntimeType)
21import Untagged.Union (type (|+|))
22import Untagged.Union (type (|+|))
22import Untagged.Union as Union
23import Untagged.Union as Union
24−newtype EncryptedString
25+newtype EncryptedString = EncryptedString String
25− = EncryptedString String
27derive newtype instance Show EncryptedString
27derive newtype instance Show EncryptedString
28derive newtype instance Ord EncryptedString
28derive newtype instance Ord EncryptedString
@@ -31,78 +31,86 @@ derive newtype instance EncodeJson EncryptedString
31derive newtype instance DecodeJson EncryptedString
31derive newtype instance DecodeJson EncryptedString
33kdfPBKDF2_SHA256 = 0 :: KDF
33kdfPBKDF2_SHA256 = 0 :: KDF
34+kdfArgon2id = 1 :: KDF
35−type KDF
36+type KDF = Int
38−type PreloginResponse
38+type PreloginResponse =
39− = { kdf :: KDF
39+ { kdf :: KDF
40− , kdfIterations :: Int
40+ , kdfIterations :: Int
41+ , kdfMemory :: JNullable Int
42+ , kdfParallelism :: JNullable Int
47+ , memory :: JNullable Int
48+ , parallelism :: JNullable Int
43−type PreloginRequest
51+type PreloginRequest =
44− = { email :: Email
52+ { email :: Email
47−type ProfileResponse
55+type ProfileResponse =
48− = { id :: String
56+ { id :: String
49− , name :: JNullable String
57+ , name :: JNullable String
50− , email :: String
58+ , email :: String
51− , emailVerified :: Boolean
59+ , emailVerified :: Boolean
52− , masterPasswordHint :: JNullable String
60+ , masterPasswordHint :: JNullable String
53− , premiumPersonally :: Boolean
61+ -- , premiumPersonally :: Boolean
54− -- , premiumFromOrganization :: Boolean
62+ -- , premiumFromOrganization :: Boolean
55− , culture :: JNullable String
63+ , culture :: JNullable String
56− , twoFactorEnabled :: Boolean
64+ , twoFactorEnabled :: Boolean
57− , key :: EncryptedString
65+ , key :: EncryptedString
58− , privateKey :: EncryptedString
66+ , privateKey :: EncryptedString
59− , securityStamp :: JNullable String
67+ , securityStamp :: JNullable String
60− , forcePasswordReset :: Boolean
68+ , forcePasswordReset :: Boolean
61− , usesKeyConnector :: Boolean
69+ , usesKeyConnector :: Boolean
62− , organizations :: Array ProfileOrganizationResponse
70+ -- , organizations :: Array ProfileOrganizationResponse
63− , providers :: Array ProfileProviderResponse
71+ , providers :: Array ProfileProviderResponse
64− , providerOrganizations :: Array ProfileProviderOrganizationResponse
72+ , providerOrganizations :: Array ProfileProviderOrganizationResponse
67−type ProfileOrganizationResponse
75+type ProfileOrganizationResponse =
68− = { id :: String
76+ { id :: String
69− , name :: JNullable String
77+ , name :: JNullable String
70− , usePolicies :: JNullable Boolean
78+ , usePolicies :: JNullable Boolean
71− , useGroups :: JNullable Boolean
79+ , useGroups :: JNullable Boolean
72− , useDirectory :: JNullable Boolean
80+ , useDirectory :: JNullable Boolean
73− , useEvents :: JNullable Boolean
81+ , useEvents :: JNullable Boolean
74− , useTotp :: JNullable Boolean
82+ , useTotp :: JNullable Boolean
75− , use2fa :: JNullable Boolean
83+ , use2fa :: JNullable Boolean
76− , useApi :: JNullable Boolean
84+ , useApi :: JNullable Boolean
77− , useSso :: JNullable Boolean
85+ , useSso :: JNullable Boolean
78− , useKeyConnector :: JNullable Boolean
86+ , useKeyConnector :: JNullable Boolean
79− , useResetPassword :: JNullable Boolean
87+ , useResetPassword :: JNullable Boolean
80− , selfHost :: JNullable Boolean
88+ , selfHost :: JNullable Boolean
81− , usersGetPremium :: JNullable Boolean
89+ , usersGetPremium :: JNullable Boolean
82− , seats :: JNullable Int
90+ , seats :: JNullable Int
83− , maxCollections :: JNullable Int
91+ , maxCollections :: JNullable Int
84− , maxStorageGb :: JNullable Int
92+ , maxStorageGb :: JNullable Int
85− , key :: JNullable String
93+ , key :: JNullable String
86− , hasPublicAndPrivateKeys :: JNullable Boolean
94+ , hasPublicAndPrivateKeys :: JNullable Boolean
87− , status :: JNullable OrganizationUserStatusType
95+ , status :: JNullable OrganizationUserStatusType
88− , type :: JNullable OrganizationUserType
96+ , type :: JNullable OrganizationUserType
89− , enabled :: JNullable Boolean
97+ , enabled :: JNullable Boolean
90− , ssoBound :: JNullable Boolean
98+ , ssoBound :: JNullable Boolean
91− , identifier :: JNullable String
99+ , identifier :: JNullable String
92− , permissions :: JNullable PermissionsApi
100+ , permissions :: JNullable PermissionsApi
93− , resetPasswordEnrolled :: JNullable Boolean
101+ , resetPasswordEnrolled :: JNullable Boolean
94− , userId :: JNullable String
102+ , userId :: JNullable String
95− , providerId :: JNullable String
103+ , providerId :: JNullable String
96− , providerName :: JNullable String
104+ , providerName :: JNullable String
97− , familySponsorshipFriendlyName :: JNullable String
105+ , familySponsorshipFriendlyName :: JNullable String
98− , familySponsorshipAvailable :: JNullable Boolean
106+ , familySponsorshipAvailable :: JNullable Boolean
99− , planProductType :: JNullable ProductType
107+ , planProductType :: JNullable ProductType
100− , keyConnectorEnabled :: JNullable Boolean
108+ , keyConnectorEnabled :: JNullable Boolean
101− , keyConnectorUrl :: JNullable String
109+ , keyConnectorUrl :: JNullable String
102− , familySponsorshipLastSyncDate :: JNullable Timestamp
110+ , familySponsorshipLastSyncDate :: JNullable Timestamp
103− , familySponsorshipValidUntil :: JNullable Timestamp
111+ , familySponsorshipValidUntil :: JNullable Timestamp
104− , familySponsorshipToDelete :: JNullable Boolean
112+ , familySponsorshipToDelete :: JNullable Boolean
107organizationUserStatusTypeInvited = 0 :: OrganizationUserStatusType
115organizationUserStatusTypeInvited = 0 :: OrganizationUserStatusType
@@ -110,8 +118,7 @@ organizationUserStatusTypeAccepted = 0 :: OrganizationUserStatusType
111organizationUserStatusTypeConfirmed = 0 :: OrganizationUserStatusType
119organizationUserStatusTypeConfirmed = 0 :: OrganizationUserStatusType
113−type OrganizationUserStatusType
121+type OrganizationUserStatusType = Int
116organizationUserTypeOwner = 0 :: OrganizationUserType
123organizationUserTypeOwner = 0 :: OrganizationUserType
@@ -123,27 +130,26 @@ organizationUserTypeManager = 3 :: OrganizationUserType
124organizationUserTypeCustom = 4 :: OrganizationUserType
131organizationUserTypeCustom = 4 :: OrganizationUserType
126−type OrganizationUserType
133+type OrganizationUserType = Int
129−type PermissionsApi
135+type PermissionsApi =
130− = { accessEventLogs :: Boolean
136+ { accessEventLogs :: Boolean
131− , accessImportExport :: Boolean
137+ , accessImportExport :: Boolean
132− , accessReports :: Boolean
138+ , accessReports :: Boolean
133− , manageAllCollections :: Boolean
139+ , manageAllCollections :: Boolean
134− , createNewCollections :: Boolean
140+ , createNewCollections :: Boolean
135− , editAnyCollection :: Boolean
141+ , editAnyCollection :: Boolean
136− , deleteAnyCollection :: Boolean
142+ , deleteAnyCollection :: Boolean
137− , manageAssignedCollections :: Boolean
143+ , manageAssignedCollections :: Boolean
138− , editAssignedCollections :: Boolean
144+ , editAssignedCollections :: Boolean
139− , deleteAssignedCollections :: Boolean
145+ , deleteAssignedCollections :: Boolean
140− , manageCiphers :: Boolean
146+ , manageCiphers :: Boolean
141− , manageGroups :: Boolean
147+ , manageGroups :: Boolean
142− , manageSso :: Boolean
148+ , manageSso :: Boolean
143− , managePolicies :: Boolean
149+ , managePolicies :: Boolean
144− , manageUsers :: Boolean
150+ , manageUsers :: Boolean
145− , manageResetPassword :: Boolean
151+ , manageResetPassword :: Boolean
148productTypeFree = 0 :: ProductType
154productTypeFree = 0 :: ProductType
@@ -153,20 +159,19 @@ productTypeTeams = 2 :: ProductType
154productTypeEnterprise = 3 :: ProductType
160productTypeEnterprise = 3 :: ProductType
156−type ProductType
162+type ProductType = Int
159−type ProfileProviderResponse
164+type ProfileProviderResponse =
160− = { id :: String
165+ { id :: String
161− , name :: JNullable String
166+ , name :: JNullable String
162− , key :: JNullable String
167+ , key :: JNullable String
163− , status :: JNullable ProviderUserStatusType
168+ , status :: JNullable ProviderUserStatusType
164− , type :: JNullable ProviderUserType
169+ , type :: JNullable ProviderUserType
165− , enabled :: Boolean
170+ , enabled :: Boolean
166− , permissions :: PermissionsApi
171+ , permissions :: PermissionsApi
167− , userId :: JNullable String
172+ , userId :: JNullable String
168− , useEvents :: Boolean
173+ , useEvents :: Boolean
171providerUserStatusTypeInvited = 0 :: ProviderUserStatusType
176providerUserStatusTypeInvited = 0 :: ProviderUserStatusType
@@ -174,81 +179,79 @@ providerUserStatusTypeAccepted = 1 :: ProviderUserStatusType
175providerUserStatusTypeConfirmed = 2 :: ProviderUserStatusType
180providerUserStatusTypeConfirmed = 2 :: ProviderUserStatusType
177−type ProviderUserStatusType
182+type ProviderUserStatusType = Int
180providerUserTypeProviderAdmin = 0 :: ProviderUserType
184providerUserTypeProviderAdmin = 0 :: ProviderUserType
182providerUserTypeServiceUser = 1 :: ProviderUserType
186providerUserTypeServiceUser = 1 :: ProviderUserType
184−type ProviderUserType
188+type ProviderUserType = Int
187−type ProfileProviderOrganizationResponse
190+type ProfileProviderOrganizationResponse =
188− = { id :: String
191+ { id :: String
189− , name :: JNullable String
192+ , name :: JNullable String
190− , usePolicies :: Boolean
193+ , usePolicies :: Boolean
191− , useGroups :: Boolean
194+ , useGroups :: Boolean
192− , useDirectory :: Boolean
195+ , useDirectory :: Boolean
193− , useEvents :: Boolean
196+ , useEvents :: Boolean
194− , useTotp :: Boolean
197+ , useTotp :: Boolean
195− , use2fa :: Boolean
198+ , use2fa :: Boolean
196− , useApi :: Boolean
199+ , useApi :: Boolean
197− , useSso :: Boolean
200+ , useSso :: Boolean
198− , useKeyConnector :: Boolean
201+ , useKeyConnector :: Boolean
199− , useResetPassword :: Boolean
202+ , useResetPassword :: Boolean
200− , selfHost :: Boolean
203+ , selfHost :: Boolean
201− , usersGetPremium :: Boolean
204+ , usersGetPremium :: Boolean
202− , seats :: Int
205+ , seats :: Int
203− , maxCollections :: Int
206+ , maxCollections :: Int
204− , maxStorageGb :: JNullable Int
207+ , maxStorageGb :: JNullable Int
205− , key :: JNullable String
208+ , key :: JNullable String
206− , hasPublicAndPrivateKeys :: Boolean
209+ , hasPublicAndPrivateKeys :: Boolean
207− , status :: OrganizationUserStatusType
210+ , status :: OrganizationUserStatusType
208− , type :: OrganizationUserType
211+ , type :: OrganizationUserType
209− , enabled :: Boolean
212+ , enabled :: Boolean
210− , ssoBound :: Boolean
213+ , ssoBound :: Boolean
211− , identifier :: JNullable String
214+ , identifier :: JNullable String
212− , permissions :: PermissionsApi
215+ , permissions :: PermissionsApi
213− , resetPasswordEnrolled :: Boolean
216+ , resetPasswordEnrolled :: Boolean
214− , userId :: JNullable String
217+ , userId :: JNullable String
215− , providerId :: JNullable String
218+ , providerId :: JNullable String
216− , providerName :: JNullable String
219+ , providerName :: JNullable String
217− , familySponsorshipFriendlyName :: JNullable String
220+ , familySponsorshipFriendlyName :: JNullable String
218− , familySponsorshipAvailable :: Boolean
221+ , familySponsorshipAvailable :: Boolean
219− , planProductType :: ProductType
222+ , planProductType :: ProductType
220− , keyConnectorEnabled :: Boolean
223+ , keyConnectorEnabled :: Boolean
221− , keyConnectorUrl :: JNullable String
224+ , keyConnectorUrl :: JNullable String
222− , familySponsorshipLastSyncDate :: JNullable Timestamp
225+ , familySponsorshipLastSyncDate :: JNullable Timestamp
223− , familySponsorshipValidUntil :: JNullable Timestamp
226+ , familySponsorshipValidUntil :: JNullable Timestamp
224− , familySponsorshipToDelete :: JNullable Boolean
227+ , familySponsorshipToDelete :: JNullable Boolean
227−type Urls
230+type Urls =
228− = { base :: JNullable String
231+ { base :: JNullable String
229− , webVault :: JNullable String
232+ , webVault :: JNullable String
230− , api :: JNullable String
233+ , api :: JNullable String
231− , identity :: JNullable String
234+ , identity :: JNullable String
232− , icons :: JNullable String
235+ , icons :: JNullable String
233− , notifications :: JNullable String
236+ , notifications :: JNullable String
234− , events :: JNullable String
237+ , events :: JNullable String
235− , keyConnector :: JNullable String
238+ , keyConnector :: JNullable String
238−type PasswordTokenRequest
241+type PasswordTokenRequest =
239− = { email :: Email
242+ { email :: Email
240− , masterPasswordHash :: String
243+ , masterPasswordHash :: String
241− , captchaResponse :: String
244+ , captchaResponse :: String
242− , twoFactor :: TokenRequestTwoFactor
245+ , twoFactor :: TokenRequestTwoFactor
243− , device :: DeviceRequest
246+ , device :: DeviceRequest
246−type DeviceRequest
249+type DeviceRequest =
247− = { type :: DeviceType
250+ { type :: DeviceType
248− , name :: String
251+ , name :: String
249− , identifier :: String
252+ , identifier :: String
250− , pushToken :: JNullable String
253+ , pushToken :: JNullable String
253deviceTypeAndroid = 0 :: DeviceType
256deviceTypeAndroid = 0 :: DeviceType
@@ -292,14 +295,13 @@ deviceTypeVivaldiExtension = 19 :: DeviceType
293deviceTypeSafariExtension = 20 :: DeviceType
296deviceTypeSafariExtension = 20 :: DeviceType
295−type DeviceType
298+type DeviceType = Int
298−type TokenRequestTwoFactor
300+type TokenRequestTwoFactor =
299− = { provider :: TwoFactorProviderType
301+ { provider :: TwoFactorProviderType
300− , token :: String
302+ , token :: String
301− , remember :: Boolean
303+ , remember :: Boolean
304twoFactorProviderTypeAuthenticator = 0 :: TwoFactorProviderType
306twoFactorProviderTypeAuthenticator = 0 :: TwoFactorProviderType
@@ -317,12 +319,11 @@ twoFactorProviderTypeOrganizationDuo = 6 :: TwoFactorProviderType
318twoFactorProviderTypeWebAuthn = 7 :: TwoFactorProviderType
320twoFactorProviderTypeWebAuthn = 7 :: TwoFactorProviderType
320−type TwoFactorProviderType
322+type TwoFactorProviderType = Int
323−secondFactorTypeToBridge ::
324+secondFactorTypeToBridge
324− TwoFactorProviderType ->
325+ :: TwoFactorProviderType
325− Maybe Bridge.TwoFactorProviderType
326+ -> Maybe Bridge.TwoFactorProviderType
326secondFactorTypeToBridge x = case x of
327secondFactorTypeToBridge x = case x of
328 | n == twoFactorProviderTypeAuthenticator -> Just Bridge.Authenticator
329 | n == twoFactorProviderTypeAuthenticator -> Just Bridge.Authenticator
@@ -352,21 +353,17 @@ bridgeToSecondFactorType Bridge.Remember = twoFactorProviderTypeRemember
352bridgeToSecondFactorType Bridge.OrganizationDuo = twoFactorProviderTypeOrganizationDuo
353bridgeToSecondFactorType Bridge.OrganizationDuo = twoFactorProviderTypeOrganizationDuo
353bridgeToSecondFactorType Bridge.WebAuthn = twoFactorProviderTypeWebAuthn
354bridgeToSecondFactorType Bridge.WebAuthn = twoFactorProviderTypeWebAuthn
355−newtype Password
356+newtype Password = Password String
358hashPurposeServerAuthorization = 1 :: HashPurpose
358hashPurposeServerAuthorization = 1 :: HashPurpose
360hashPurposeLocalAuthorization = 2 :: HashPurpose
360hashPurposeLocalAuthorization = 2 :: HashPurpose
362−type HashPurpose
362+type HashPurpose = Int
365−newtype StringHash
364+newtype StringHash = StringHash String
368−newtype AccessToken
366+newtype AccessToken = AccessToken String
369− = AccessToken String
371derive newtype instance Show AccessToken
368derive newtype instance Show AccessToken
372derive newtype instance Eq AccessToken
369derive newtype instance Eq AccessToken
@@ -374,8 +371,7 @@ derive newtype instance Ord AccessToken
374derive newtype instance EncodeJson AccessToken
371derive newtype instance EncodeJson AccessToken
375derive newtype instance DecodeJson AccessToken
372derive newtype instance DecodeJson AccessToken
377−newtype RefreshToken
374+newtype RefreshToken = RefreshToken String
378− = RefreshToken String
380derive newtype instance Show RefreshToken
376derive newtype instance Show RefreshToken
381derive newtype instance Eq RefreshToken
377derive newtype instance Eq RefreshToken
@@ -387,21 +383,21 @@ type IdentityCaptchaResponse =
387 { siteKey :: String
383 { siteKey :: String
390−type IdentityTokenResponse
386+type IdentityTokenResponse =
391− = { accessToken :: AccessToken
387+ { accessToken :: AccessToken
392− , expiresIn :: Int
388+ , expiresIn :: Int
393− , refreshToken :: RefreshToken
389+ , refreshToken :: RefreshToken
394− , tokenType :: String
390+ , tokenType :: String
395− , resetMasterPassword :: Boolean
391+ , resetMasterPassword :: Boolean
396− , privateKey :: EncryptedString
392+ , privateKey :: EncryptedString
397− , key :: EncryptedString
393+ , key :: EncryptedString
398− , twoFactorToken :: JNullable String
394+ , twoFactorToken :: JNullable String
399− , kdf :: KDF
395+ , kdf :: KDF
400− , kdfIterations :: Int
396+ , kdfIterations :: Int
401− , forcePasswordReset :: JNullable Boolean
397+ , forcePasswordReset :: JNullable Boolean
402− , apiUseKeyConnector :: JNullable Boolean
398+ , apiUseKeyConnector :: JNullable Boolean
403− , keyConnectorUrl :: JNullable String
399+ , keyConnectorUrl :: JNullable String
406newtype TwoFactorProviderTypes = TwoFactorProviderTypes (Array (Int |+| String))
402newtype TwoFactorProviderTypes = TwoFactorProviderTypes (Array (Int |+| String))
@@ -421,59 +417,57 @@ type IdentityTwoFactorResponse =
421 , captchaToken :: String |+| Undefined
417 , captchaToken :: String |+| Undefined
424−newtype Email
420+newtype Email = Email String
427−type SyncResponse
422+type SyncResponse =
428− = { profile :: ProfileResponse
423+ { profile :: ProfileResponse
429− , folders :: Array FolderResponse
424+ , folders :: Array FolderResponse
430− , collections :: Array CollectionDetailsResponse
425+ , collections :: Array CollectionDetailsResponse
431− , ciphers :: Array CipherResponse
426+ , ciphers :: Array CipherResponse
432− , domains :: JNullable DomainsResponse
427+ , domains :: JNullable DomainsResponse
433− , policies :: JNullable (Array PolicyResponse)
428+ , policies :: JNullable (Array PolicyResponse)
434− , sends :: Array SendResponse
429+ , sends :: Array SendResponse
439− , name :: JNullable String
440− , revisionDate :: JNullable String
443−type CollectionDetailsResponse
432+type FolderResponse =
444− = { id :: String
433+ { id :: String
445− , organizationId :: JNullable String
446− , name :: JNullable String
434+ , name :: JNullable String
447− , externalId :: JNullable String
435+ , revisionDate :: JNullable String
448− , readOnly :: Boolean
438+type CollectionDetailsResponse =
440+ , organizationId :: JNullable String
441+ , name :: JNullable String
442+ , externalId :: JNullable String
443+ , readOnly :: Boolean
452type CipherId = String
446type CipherId = String
454−type CipherResponse
448+type CipherResponse =
455− = { id :: CipherId
449+ { id :: CipherId
456− , organizationId :: JNullable String
450+ , organizationId :: JNullable String
457− , folderId :: JNullable String
451+ , folderId :: JNullable String
458− , type :: CipherType
452+ , type :: CipherType
459− , name :: EncryptedString
453+ , name :: EncryptedString
460− , notes :: JNullable EncryptedString
454+ , notes :: JNullable EncryptedString
461− , fields :: JNullable (Array FieldApi)
455+ , fields :: JNullable (Array FieldApi)
462− , login :: JNullable LoginApi
456+ , login :: JNullable LoginApi
463− , card :: JNullable CardApi
457+ , card :: JNullable CardApi
464− , identity :: JNullable IdentityApi
458+ , identity :: JNullable IdentityApi
465− , secureNote :: JNullable SecureNoteApi
459+ , secureNote :: JNullable SecureNoteApi
466− , favorite :: Boolean
460+ , favorite :: Boolean
467− , edit :: JNullable Boolean
461+ , edit :: JNullable Boolean
468− , viewPassword :: JNullable Boolean
462+ , viewPassword :: JNullable Boolean
469− , organizationUseTotp :: JNullable Boolean
463+ , organizationUseTotp :: JNullable Boolean
470− , revisionDate :: JNullable Timestamp
464+ , revisionDate :: JNullable Timestamp
471− , attachments :: JNullable (Array AttachmentResponse)
465+ , attachments :: JNullable (Array AttachmentResponse)
472− , passwordHistory :: JNullable (Array PasswordHistoryResponse)
466+ , passwordHistory :: JNullable (Array PasswordHistoryResponse)
473− , collectionIds :: JNullable (Array String)
467+ , collectionIds :: JNullable (Array String)
474− , deletedDate :: JNullable String
468+ , deletedDate :: JNullable String
475− , reprompt :: CipherRepromptType
469+ , reprompt :: CipherRepromptType
478cipherTypeLogin = 1 :: CipherType
472cipherTypeLogin = 1 :: CipherType
@@ -483,15 +477,14 @@ cipherTypeCard = 3 :: CipherType
484cipherTypeIdentity = 4 :: CipherType
478cipherTypeIdentity = 4 :: CipherType
486−type CipherType
480+type CipherType = Int
489−type FieldApi
482+type FieldApi =
490− = { name :: JNullable String
483+ { name :: JNullable String
491− , value :: JNullable String
484+ , value :: JNullable String
492− , type :: FieldType
485+ , type :: FieldType
493− , linkedId :: JNullable LinkedIdType
486+ , linkedId :: JNullable LinkedIdType
496fieldTypeText = 0 :: FieldType
489fieldTypeText = 0 :: FieldType
@@ -501,8 +494,7 @@ fieldTypeBoolean = 2 :: FieldType
502fieldTypeLinked = 3 :: FieldType
495fieldTypeLinked = 3 :: FieldType
504−type FieldType
497+type FieldType = Int
507linkedIdTypeLoginLinkedIdUsername = 100 :: LinkedIdType
499linkedIdTypeLoginLinkedIdUsername = 100 :: LinkedIdType
@@ -558,23 +550,22 @@ linkedIdTypeIdentityLinkedIdLastName = 417 :: LinkedIdType
559linkedIdTypeIdentityLinkedIdFullName = 418 :: LinkedIdType
551linkedIdTypeIdentityLinkedIdFullName = 418 :: LinkedIdType
561−type LinkedIdType
553+type LinkedIdType = Int
564−type LoginApi
555+type LoginApi =
565− = { uris :: JOpt (Array LoginUriApi)
556+ { uris :: JOpt (Array LoginUriApi)
566− , username :: JNullable EncryptedString
557+ , username :: JNullable EncryptedString
567− , password :: JNullable EncryptedString
558+ , password :: JNullable EncryptedString
568− , passwordRevisionDate :: JNullable String
559+ , passwordRevisionDate :: JNullable String
569− , totp :: JNullable EncryptedString
560+ , totp :: JNullable EncryptedString
570− -- This thing is undefined in some cases for some reson. Just ignoring it
561+ -- This thing is undefined in some cases for some reson. Just ignoring it
571− , autofillOnPageLoad :: JOpt (JNullable Boolean)
562+ , autofillOnPageLoad :: JOpt (JNullable Boolean)
574−type LoginUriApi
565+type LoginUriApi =
575− = { uri :: EncryptedString
566+ { uri :: JNullable EncryptedString
576− , match :: JNullable UriMatchType
567+ , match :: JNullable UriMatchType
579uriMatchTypeDomain = 0 :: UriMatchType
570uriMatchTypeDomain = 0 :: UriMatchType
@@ -588,87 +579,85 @@ uriMatchTypeRegularExpression = 4 :: UriMatchType
589uriMatchTypeNever = 5 :: UriMatchType
580uriMatchTypeNever = 5 :: UriMatchType
591−type UriMatchType
582+type UriMatchType = Int
594−type CardApi
584+type CardApi =
595− = { cardholderName :: JNullable EncryptedString
585+ { cardholderName :: JNullable EncryptedString
596− , brand :: JNullable EncryptedString
586+ , brand :: JNullable EncryptedString
597− , number :: JNullable EncryptedString
587+ , number :: JNullable EncryptedString
598− , expMonth :: JNullable EncryptedString
588+ , expMonth :: JNullable EncryptedString
599− , expYear :: JNullable EncryptedString
589+ , expYear :: JNullable EncryptedString
600− , code :: JNullable EncryptedString
590+ , code :: JNullable EncryptedString
603−type IdentityApi
593+type IdentityApi =
604− = { title :: JNullable EncryptedString
594+ { title :: JNullable EncryptedString
605− , firstName :: JNullable EncryptedString
595+ , firstName :: JNullable EncryptedString
606− , middleName :: JNullable EncryptedString
596+ , middleName :: JNullable EncryptedString
607− , lastName :: JNullable EncryptedString
597+ , lastName :: JNullable EncryptedString
608− , address1 :: JNullable EncryptedString
598+ , address1 :: JNullable EncryptedString
609− , address2 :: JNullable EncryptedString
599+ , address2 :: JNullable EncryptedString
610− , address3 :: JNullable EncryptedString
600+ , address3 :: JNullable EncryptedString
611− , city :: JNullable EncryptedString
601+ , city :: JNullable EncryptedString
612− , state :: JNullable EncryptedString
602+ , state :: JNullable EncryptedString
613− , postalCode :: JNullable EncryptedString
603+ , postalCode :: JNullable EncryptedString
614− , country :: JNullable EncryptedString
604+ , country :: JNullable EncryptedString
615− , company :: JNullable EncryptedString
605+ , company :: JNullable EncryptedString
616− , email :: JNullable EncryptedString
606+ , email :: JNullable EncryptedString
617− , phone :: JNullable EncryptedString
607+ , phone :: JNullable EncryptedString
618− , ssn :: JNullable EncryptedString
608+ , ssn :: JNullable EncryptedString
619− , username :: JNullable EncryptedString
609+ , username :: JNullable EncryptedString
620− , passportNumber :: JNullable EncryptedString
610+ , passportNumber :: JNullable EncryptedString
621− , licenseNumber :: JNullable EncryptedString
611+ , licenseNumber :: JNullable EncryptedString
624secureNoteTypeGeneric = 0 :: SecureNoteType
614secureNoteTypeGeneric = 0 :: SecureNoteType
626−type SecureNoteType
616+type SecureNoteType = Int
629−type SecureNoteApi = {
618+type SecureNoteApi =
630 -- type :: SecureNoteType
620 -- type :: SecureNoteType
633−type AttachmentResponse
623+type AttachmentResponse =
634− = { id :: String
624+ { id :: String
635− , url :: JNullable String
625+ , url :: JNullable String
636− , fileName :: JNullable String
626+ , fileName :: JNullable String
637− , key :: JNullable String
627+ , key :: JNullable String
638− , size :: JNullable String
628+ , size :: JNullable String
639− , sizeName :: JNullable String
629+ , sizeName :: JNullable String
642−type PasswordHistoryResponse
632+type PasswordHistoryResponse =
643− = { password :: String
633+ { password :: String
644− , lastUsedDate :: JNullable String
634+ , lastUsedDate :: JNullable String
647cipherRepromptTypeNone = 0 :: CipherRepromptType
637cipherRepromptTypeNone = 0 :: CipherRepromptType
649cipherRepromptTypePassword = 1 :: CipherRepromptType
639cipherRepromptTypePassword = 1 :: CipherRepromptType
651−type CipherRepromptType
641+type CipherRepromptType = Int
654−type DomainsResponse
643+type DomainsResponse =
655− = { equivalentDomains :: Array (Array String)
644+ { equivalentDomains :: Array (Array String)
656− , globalEquivalentDomains :: Array GlobalDomainResponse
645+ , globalEquivalentDomains :: Array GlobalDomainResponse
659−type GlobalDomainResponse
648+type GlobalDomainResponse =
660− = { type :: Int
649+ { type :: Int
661− , domains :: Array String
650+ , domains :: Array String
662− , excluded :: Boolean
651+ , excluded :: Boolean
665−type PolicyResponse
654+type PolicyResponse =
666− = { id :: String
655+ { id :: String
667− , organizationId :: JNullable String
656+ , organizationId :: JNullable String
668− , type :: PolicyType
657+ , type :: PolicyType
669− , data :: ShowableJson
658+ , data :: ShowableJson
670− , enabled :: Boolean
659+ , enabled :: Boolean
673policyTypeTwoFactorAuthentication = 0 :: PolicyType -- Requires users to have 2fa enabled
662policyTypeTwoFactorAuthentication = 0 :: PolicyType -- Requires users to have 2fa enabled
@@ -692,46 +681,44 @@ policyTypeMaximumVaultTimeout = 9 :: PolicyType -- Sets the maximum allowed vaul
693policyTypeDisablePersonalVaultExport = 10 :: PolicyType -- Disable personal vault export
682policyTypeDisablePersonalVaultExport = 10 :: PolicyType -- Disable personal vault export
695−type PolicyType
684+type PolicyType = Int
698−type SendResponse
686+type SendResponse =
699− = { id :: String
687+ { id :: String
700− , accessId :: JNullable String
688+ , accessId :: JNullable String
701− , type :: SendType
689+ , type :: SendType
702− , name :: JNullable String
690+ , name :: JNullable String
703− , notes :: JNullable String
691+ , notes :: JNullable String
704− , file :: JNullable SendFileApi
692+ , file :: JNullable SendFileApi
705− , text :: JNullable SendTextApi
693+ , text :: JNullable SendTextApi
706− , key :: JNullable String
694+ , key :: JNullable String
707− , maxAccessCount :: JNullable Int
695+ , maxAccessCount :: JNullable Int
708− , accessCount :: JNullable Int
696+ , accessCount :: JNullable Int
709− , revisionDate :: JNullable String
697+ , revisionDate :: JNullable String
710− , expirationDate :: JNullable String
698+ , expirationDate :: JNullable String
711− , deletionDate :: JNullable String
699+ , deletionDate :: JNullable String
712− , password :: JNullable String
700+ , password :: JNullable String
713− , disable :: Boolean
701+ , disable :: Boolean
714− , hideEmail :: Boolean
702+ , hideEmail :: Boolean
717sendTypeText = 0 :: SendType
705sendTypeText = 0 :: SendType
719sendTypeFile = 1 :: SendType
707sendTypeFile = 1 :: SendType
721−type SendType
709+type SendType = Int
724−type SendFileApi
711+type SendFileApi =
725− = { id :: String
712+ { id :: String
726− , fileName :: JNullable String
713+ , fileName :: JNullable String
727− , size :: JNullable String
714+ , size :: JNullable String
728− , sizeName :: JNullable String
715+ , sizeName :: JNullable String
731−type SendTextApi
718+type SendTextApi =
732− = { text :: JNullable String
719+ { text :: JNullable String
733− , hidden :: Boolean
720+ , hidden :: Boolean
736type TwoFactorEmailRequest =
723type TwoFactorEmailRequest =
737 { email :: Email
724 { email :: Email