@@ -21,8 +21,7 @@ import Untagged.TypeCheck (class HasRuntimeType)
2121import Untagged.Union (type (|+|))
2222import Untagged.Union as Union
2323
24−newtype EncryptedString
25− = EncryptedString String
24+newtype EncryptedString = EncryptedString String
2625
2726derive newtype instance Show EncryptedString
2827derive newtype instance Ord EncryptedString
@@ -32,77 +31,76 @@ derive newtype instance DecodeJson EncryptedString
3231
3332kdfPBKDF2_SHA256 = 0 :: KDF
3433
35−type KDF
36− = Int
37−
38−type PreloginResponse
39− = { kdf :: KDF
40− , kdfIterations :: Int
41− }
42−
43−type PreloginRequest
44− = { email :: Email
45− }
46−
47−type ProfileResponse
48− = { id :: String
49− , name :: JNullable String
50− , email :: String
51− , emailVerified :: Boolean
52− , masterPasswordHint :: JNullable String
53− , premiumPersonally :: Boolean
54− -- , premiumFromOrganization :: Boolean
55− , culture :: JNullable String
56− , twoFactorEnabled :: Boolean
57− , key :: EncryptedString
58− , privateKey :: EncryptedString
59− , securityStamp :: JNullable String
60− , forcePasswordReset :: Boolean
61− , usesKeyConnector :: Boolean
62− , organizations :: Array ProfileOrganizationResponse
63− , providers :: Array ProfileProviderResponse
64− , providerOrganizations :: Array ProfileProviderOrganizationResponse
65− }
66−
67−type ProfileOrganizationResponse
68− = { id :: String
69− , name :: JNullable String
70− , usePolicies :: JNullable Boolean
71− , useGroups :: JNullable Boolean
72− , useDirectory :: JNullable Boolean
73− , useEvents :: JNullable Boolean
74− , useTotp :: JNullable Boolean
75− , use2fa :: JNullable Boolean
76− , useApi :: JNullable Boolean
77− , useSso :: JNullable Boolean
78− , useKeyConnector :: JNullable Boolean
79− , useResetPassword :: JNullable Boolean
80− , selfHost :: JNullable Boolean
81− , usersGetPremium :: JNullable Boolean
82− , seats :: JNullable Int
83− , maxCollections :: JNullable Int
84− , maxStorageGb :: JNullable Int
85− , key :: JNullable String
86− , hasPublicAndPrivateKeys :: JNullable Boolean
87− , status :: JNullable OrganizationUserStatusType
88− , type :: JNullable OrganizationUserType
89− , enabled :: JNullable Boolean
90− , ssoBound :: JNullable Boolean
91− , identifier :: JNullable String
92− , permissions :: JNullable PermissionsApi
93− , resetPasswordEnrolled :: JNullable Boolean
94− , userId :: JNullable String
95− , providerId :: JNullable String
96− , providerName :: JNullable String
97− , familySponsorshipFriendlyName :: JNullable String
98− , familySponsorshipAvailable :: JNullable Boolean
99− , planProductType :: JNullable ProductType
100− , keyConnectorEnabled :: JNullable Boolean
101− , keyConnectorUrl :: JNullable String
102− , familySponsorshipLastSyncDate :: JNullable Timestamp
103− , familySponsorshipValidUntil :: JNullable Timestamp
104− , familySponsorshipToDelete :: JNullable Boolean
105− }
34+type KDF = Int
35+
36+type PreloginResponse =
37+ { kdf :: KDF
38+ , kdfIterations :: Int
39+ }
40+
41+type PreloginRequest =
42+ { email :: Email
43+ }
44+
45+type ProfileResponse =
46+ { id :: String
47+ , name :: JNullable String
48+ , email :: String
49+ , emailVerified :: Boolean
50+ , masterPasswordHint :: JNullable String
51+ , premiumPersonally :: Boolean
52+ -- , premiumFromOrganization :: Boolean
53+ , culture :: JNullable String
54+ , twoFactorEnabled :: Boolean
55+ , key :: EncryptedString
56+ , privateKey :: EncryptedString
57+ , securityStamp :: JNullable String
58+ , forcePasswordReset :: Boolean
59+ , usesKeyConnector :: Boolean
60+ , organizations :: Array ProfileOrganizationResponse
61+ , providers :: Array ProfileProviderResponse
62+ , providerOrganizations :: Array ProfileProviderOrganizationResponse
63+ }
64+
65+type ProfileOrganizationResponse =
66+ { id :: String
67+ , name :: JNullable String
68+ , usePolicies :: JNullable Boolean
69+ , useGroups :: JNullable Boolean
70+ , useDirectory :: JNullable Boolean
71+ , useEvents :: JNullable Boolean
72+ , useTotp :: JNullable Boolean
73+ , use2fa :: JNullable Boolean
74+ , useApi :: JNullable Boolean
75+ , useSso :: JNullable Boolean
76+ , useKeyConnector :: JNullable Boolean
77+ , useResetPassword :: JNullable Boolean
78+ , selfHost :: JNullable Boolean
79+ , usersGetPremium :: JNullable Boolean
80+ , seats :: JNullable Int
81+ , maxCollections :: JNullable Int
82+ , maxStorageGb :: JNullable Int
83+ , key :: JNullable String
84+ , hasPublicAndPrivateKeys :: JNullable Boolean
85+ , status :: JNullable OrganizationUserStatusType
86+ , type :: JNullable OrganizationUserType
87+ , enabled :: JNullable Boolean
88+ , ssoBound :: JNullable Boolean
89+ , identifier :: JNullable String
90+ , permissions :: JNullable PermissionsApi
91+ , resetPasswordEnrolled :: JNullable Boolean
92+ , userId :: JNullable String
93+ , providerId :: JNullable String
94+ , providerName :: JNullable String
95+ , familySponsorshipFriendlyName :: JNullable String
96+ , familySponsorshipAvailable :: JNullable Boolean
97+ , planProductType :: JNullable ProductType
98+ , keyConnectorEnabled :: JNullable Boolean
99+ , keyConnectorUrl :: JNullable String
100+ , familySponsorshipLastSyncDate :: JNullable Timestamp
101+ , familySponsorshipValidUntil :: JNullable Timestamp
102+ , familySponsorshipToDelete :: JNullable Boolean
103+ }
106104
107105organizationUserStatusTypeInvited = 0 :: OrganizationUserStatusType
108106
@@ -110,8 +108,7 @@ organizationUserStatusTypeAccepted = 0 :: OrganizationUserStatusType
110108
111109organizationUserStatusTypeConfirmed = 0 :: OrganizationUserStatusType
112110
113−type OrganizationUserStatusType
114− = Int
111+type OrganizationUserStatusType = Int
115112
116113organizationUserTypeOwner = 0 :: OrganizationUserType
117114
@@ -123,27 +120,26 @@ organizationUserTypeManager = 3 :: OrganizationUserType
123120
124121organizationUserTypeCustom = 4 :: OrganizationUserType
125122
126−type OrganizationUserType
127− = Int
128−
129−type PermissionsApi
130− = { accessEventLogs :: Boolean
131− , accessImportExport :: Boolean
132− , accessReports :: Boolean
133− , manageAllCollections :: Boolean
134− , createNewCollections :: Boolean
135− , editAnyCollection :: Boolean
136− , deleteAnyCollection :: Boolean
137− , manageAssignedCollections :: Boolean
138− , editAssignedCollections :: Boolean
139− , deleteAssignedCollections :: Boolean
140− , manageCiphers :: Boolean
141− , manageGroups :: Boolean
142− , manageSso :: Boolean
143− , managePolicies :: Boolean
144− , manageUsers :: Boolean
145− , manageResetPassword :: Boolean
146− }
123+type OrganizationUserType = Int
124+
125+type PermissionsApi =
126+ { accessEventLogs :: Boolean
127+ , accessImportExport :: Boolean
128+ , accessReports :: Boolean
129+ , manageAllCollections :: Boolean
130+ , createNewCollections :: Boolean
131+ , editAnyCollection :: Boolean
132+ , deleteAnyCollection :: Boolean
133+ , manageAssignedCollections :: Boolean
134+ , editAssignedCollections :: Boolean
135+ , deleteAssignedCollections :: Boolean
136+ , manageCiphers :: Boolean
137+ , manageGroups :: Boolean
138+ , manageSso :: Boolean
139+ , managePolicies :: Boolean
140+ , manageUsers :: Boolean
141+ , manageResetPassword :: Boolean
142+ }
147143
148144productTypeFree = 0 :: ProductType
149145
@@ -153,20 +149,19 @@ productTypeTeams = 2 :: ProductType
153149
154150productTypeEnterprise = 3 :: ProductType
155151
156−type ProductType
157− = Int
158−
159−type ProfileProviderResponse
160− = { id :: String
161− , name :: JNullable String
162− , key :: JNullable String
163− , status :: JNullable ProviderUserStatusType
164− , type :: JNullable ProviderUserType
165− , enabled :: Boolean
166− , permissions :: PermissionsApi
167− , userId :: JNullable String
168− , useEvents :: Boolean
169− }
152+type ProductType = Int
153+
154+type ProfileProviderResponse =
155+ { id :: String
156+ , name :: JNullable String
157+ , key :: JNullable String
158+ , status :: JNullable ProviderUserStatusType
159+ , type :: JNullable ProviderUserType
160+ , enabled :: Boolean
161+ , permissions :: PermissionsApi
162+ , userId :: JNullable String
163+ , useEvents :: Boolean
164+ }
170165
171166providerUserStatusTypeInvited = 0 :: ProviderUserStatusType
172167
@@ -174,81 +169,79 @@ providerUserStatusTypeAccepted = 1 :: ProviderUserStatusType
174169
175170providerUserStatusTypeConfirmed = 2 :: ProviderUserStatusType
176171
177−type ProviderUserStatusType
178− = Int
172+type ProviderUserStatusType = Int
179173
180174providerUserTypeProviderAdmin = 0 :: ProviderUserType
181175
182176providerUserTypeServiceUser = 1 :: ProviderUserType
183177
184−type ProviderUserType
185− = Int
186−
187−type ProfileProviderOrganizationResponse
188− = { id :: String
189− , name :: JNullable String
190− , usePolicies :: Boolean
191− , useGroups :: Boolean
192− , useDirectory :: Boolean
193− , useEvents :: Boolean
194− , useTotp :: Boolean
195− , use2fa :: Boolean
196− , useApi :: Boolean
197− , useSso :: Boolean
198− , useKeyConnector :: Boolean
199− , useResetPassword :: Boolean
200− , selfHost :: Boolean
201− , usersGetPremium :: Boolean
202− , seats :: Int
203− , maxCollections :: Int
204− , maxStorageGb :: JNullable Int
205− , key :: JNullable String
206− , hasPublicAndPrivateKeys :: Boolean
207− , status :: OrganizationUserStatusType
208− , type :: OrganizationUserType
209− , enabled :: Boolean
210− , ssoBound :: Boolean
211− , identifier :: JNullable String
212− , permissions :: PermissionsApi
213− , resetPasswordEnrolled :: Boolean
214− , userId :: JNullable String
215− , providerId :: JNullable String
216− , providerName :: JNullable String
217− , familySponsorshipFriendlyName :: JNullable String
218− , familySponsorshipAvailable :: Boolean
219− , planProductType :: ProductType
220− , keyConnectorEnabled :: Boolean
221− , keyConnectorUrl :: JNullable String
222− , familySponsorshipLastSyncDate :: JNullable Timestamp
223− , familySponsorshipValidUntil :: JNullable Timestamp
224− , familySponsorshipToDelete :: JNullable Boolean
225− }
226−
227−type Urls
228− = { base :: JNullable String
229− , webVault :: JNullable String
230− , api :: JNullable String
231− , identity :: JNullable String
232− , icons :: JNullable String
233− , notifications :: JNullable String
234− , events :: JNullable String
235− , keyConnector :: JNullable String
236− }
237−
238−type PasswordTokenRequest
239− = { email :: Email
240− , masterPasswordHash :: String
241− , captchaResponse :: String
242− , twoFactor :: TokenRequestTwoFactor
243− , device :: DeviceRequest
244− }
245−
246−type DeviceRequest
247− = { type :: DeviceType
248− , name :: String
249− , identifier :: String
250− , pushToken :: JNullable String
251− }
178+type ProviderUserType = Int
179+
180+type ProfileProviderOrganizationResponse =
181+ { id :: String
182+ , name :: JNullable String
183+ , usePolicies :: Boolean
184+ , useGroups :: Boolean
185+ , useDirectory :: Boolean
186+ , useEvents :: Boolean
187+ , useTotp :: Boolean
188+ , use2fa :: Boolean
189+ , useApi :: Boolean
190+ , useSso :: Boolean
191+ , useKeyConnector :: Boolean
192+ , useResetPassword :: Boolean
193+ , selfHost :: Boolean
194+ , usersGetPremium :: Boolean
195+ , seats :: Int
196+ , maxCollections :: Int
197+ , maxStorageGb :: JNullable Int
198+ , key :: JNullable String
199+ , hasPublicAndPrivateKeys :: Boolean
200+ , status :: OrganizationUserStatusType
201+ , type :: OrganizationUserType
202+ , enabled :: Boolean
203+ , ssoBound :: Boolean
204+ , identifier :: JNullable String
205+ , permissions :: PermissionsApi
206+ , resetPasswordEnrolled :: Boolean
207+ , userId :: JNullable String
208+ , providerId :: JNullable String
209+ , providerName :: JNullable String
210+ , familySponsorshipFriendlyName :: JNullable String
211+ , familySponsorshipAvailable :: Boolean
212+ , planProductType :: ProductType
213+ , keyConnectorEnabled :: Boolean
214+ , keyConnectorUrl :: JNullable String
215+ , familySponsorshipLastSyncDate :: JNullable Timestamp
216+ , familySponsorshipValidUntil :: JNullable Timestamp
217+ , familySponsorshipToDelete :: JNullable Boolean
218+ }
219+
220+type Urls =
221+ { base :: JNullable String
222+ , webVault :: JNullable String
223+ , api :: JNullable String
224+ , identity :: JNullable String
225+ , icons :: JNullable String
226+ , notifications :: JNullable String
227+ , events :: JNullable String
228+ , keyConnector :: JNullable String
229+ }
230+
231+type PasswordTokenRequest =
232+ { email :: Email
233+ , masterPasswordHash :: String
234+ , captchaResponse :: String
235+ , twoFactor :: TokenRequestTwoFactor
236+ , device :: DeviceRequest
237+ }
238+
239+type DeviceRequest =
240+ { type :: DeviceType
241+ , name :: String
242+ , identifier :: String
243+ , pushToken :: JNullable String
244+ }
252245
253246deviceTypeAndroid = 0 :: DeviceType
254247
@@ -292,14 +285,13 @@ deviceTypeVivaldiExtension = 19 :: DeviceType
292285
293286deviceTypeSafariExtension = 20 :: DeviceType
294287
295−type DeviceType
296− = Int
288+type DeviceType = Int
297289
298−type TokenRequestTwoFactor
299− = { provider :: TwoFactorProviderType
300− , token :: String
301− , remember :: Boolean
302− }
290+type TokenRequestTwoFactor =
291+ { provider :: TwoFactorProviderType
292+ , token :: String
293+ , remember :: Boolean
294+ }
303295
304296twoFactorProviderTypeAuthenticator = 0 :: TwoFactorProviderType
305297
@@ -317,12 +309,11 @@ twoFactorProviderTypeOrganizationDuo = 6 :: TwoFactorProviderType
317309
318310twoFactorProviderTypeWebAuthn = 7 :: TwoFactorProviderType
319311
320−type TwoFactorProviderType
321− = Int
312+type TwoFactorProviderType = Int
322313
323−secondFactorTypeToBridge ::
324− TwoFactorProviderType ->
325− Maybe Bridge.TwoFactorProviderType
314+secondFactorTypeToBridge
315+ :: TwoFactorProviderType
316+ -> Maybe Bridge.TwoFactorProviderType
326317secondFactorTypeToBridge x = case x of
327318 n
328319 | n == twoFactorProviderTypeAuthenticator -> Just Bridge.Authenticator
@@ -352,21 +343,17 @@ bridgeToSecondFactorType Bridge.Remember = twoFactorProviderTypeRemember
352343bridgeToSecondFactorType Bridge.OrganizationDuo = twoFactorProviderTypeOrganizationDuo
353344bridgeToSecondFactorType Bridge.WebAuthn = twoFactorProviderTypeWebAuthn
354345
355−newtype Password
356− = Password String
346+newtype Password = Password String
357347
358348hashPurposeServerAuthorization = 1 :: HashPurpose
359349
360350hashPurposeLocalAuthorization = 2 :: HashPurpose
361351
362−type HashPurpose
363− = Int
352+type HashPurpose = Int
364353
365−newtype StringHash
366− = StringHash String
354+newtype StringHash = StringHash String
367355
368−newtype AccessToken
369− = AccessToken String
356+newtype AccessToken = AccessToken String
370357
371358derive newtype instance Show AccessToken
372359derive newtype instance Eq AccessToken
@@ -374,8 +361,7 @@ derive newtype instance Ord AccessToken
374361derive newtype instance EncodeJson AccessToken
375362derive newtype instance DecodeJson AccessToken
376363
377−newtype RefreshToken
378− = RefreshToken String
364+newtype RefreshToken = RefreshToken String
379365
380366derive newtype instance Show RefreshToken
381367derive newtype instance Eq RefreshToken
@@ -387,21 +373,21 @@ type IdentityCaptchaResponse =
387373 { siteKey :: String
388374 }
389375
390−type IdentityTokenResponse
391− = { accessToken :: AccessToken
392− , expiresIn :: Int
393− , refreshToken :: RefreshToken
394− , tokenType :: String
395− , resetMasterPassword :: Boolean
396− , privateKey :: EncryptedString
397− , key :: EncryptedString
398− , twoFactorToken :: JNullable String
399− , kdf :: KDF
400− , kdfIterations :: Int
401− , forcePasswordReset :: JNullable Boolean
402− , apiUseKeyConnector :: JNullable Boolean
403− , keyConnectorUrl :: JNullable String
404− }
376+type IdentityTokenResponse =
377+ { accessToken :: AccessToken
378+ , expiresIn :: Int
379+ , refreshToken :: RefreshToken
380+ , tokenType :: String
381+ , resetMasterPassword :: Boolean
382+ , privateKey :: EncryptedString
383+ , key :: EncryptedString
384+ , twoFactorToken :: JNullable String
385+ , kdf :: KDF
386+ , kdfIterations :: Int
387+ , forcePasswordReset :: JNullable Boolean
388+ , apiUseKeyConnector :: JNullable Boolean
389+ , keyConnectorUrl :: JNullable String
390+ }
405391
406392newtype TwoFactorProviderTypes = TwoFactorProviderTypes (Array (Int |+| String))
407393
@@ -421,59 +407,57 @@ type IdentityTwoFactorResponse =
421407 , captchaToken :: String |+| Undefined
422408 }
423409
424−newtype Email
425− = Email String
426−
427−type SyncResponse
428− = { profile :: ProfileResponse
429− , folders :: Array FolderResponse
430− , collections :: Array CollectionDetailsResponse
431− , ciphers :: Array CipherResponse
432− , domains :: JNullable DomainsResponse
433− , policies :: JNullable (Array PolicyResponse)
434− , sends :: Array SendResponse
435− }
410+newtype Email = Email String
436411
437−type FolderResponse
438− = { id :: String
439− , name :: JNullable String
440− , revisionDate :: JNullable String
441− }
412+type SyncResponse =
413+ { profile :: ProfileResponse
414+ , folders :: Array FolderResponse
415+ , collections :: Array CollectionDetailsResponse
416+ , ciphers :: Array CipherResponse
417+ , domains :: JNullable DomainsResponse
418+ , policies :: JNullable (Array PolicyResponse)
419+ , sends :: Array SendResponse
420+ }
442421
443−type CollectionDetailsResponse
444− = { id :: String
445− , organizationId :: JNullable String
446− , name :: JNullable String
447− , externalId :: JNullable String
448− , readOnly :: Boolean
449− }
422+type FolderResponse =
423+ { id :: String
424+ , name :: JNullable String
425+ , revisionDate :: JNullable String
426+ }
450427
428+type CollectionDetailsResponse =
429+ { id :: String
430+ , organizationId :: JNullable String
431+ , name :: JNullable String
432+ , externalId :: JNullable String
433+ , readOnly :: Boolean
434+ }
451435
452436type CipherId = String
453437
454−type CipherResponse
455− = { id :: CipherId
456− , organizationId :: JNullable String
457− , folderId :: JNullable String
458− , type :: CipherType
459− , name :: EncryptedString
460− , notes :: JNullable EncryptedString
461− , fields :: JNullable (Array FieldApi)
462− , login :: JNullable LoginApi
463− , card :: JNullable CardApi
464− , identity :: JNullable IdentityApi
465− , secureNote :: JNullable SecureNoteApi
466− , favorite :: Boolean
467− , edit :: JNullable Boolean
468− , viewPassword :: JNullable Boolean
469− , organizationUseTotp :: JNullable Boolean
470− , revisionDate :: JNullable Timestamp
471− , attachments :: JNullable (Array AttachmentResponse)
472− , passwordHistory :: JNullable (Array PasswordHistoryResponse)
473− , collectionIds :: JNullable (Array String)
474− , deletedDate :: JNullable String
475− , reprompt :: CipherRepromptType
476− }
438+type CipherResponse =
439+ { id :: CipherId
440+ , organizationId :: JNullable String
441+ , folderId :: JNullable String
442+ , type :: CipherType
443+ , name :: EncryptedString
444+ , notes :: JNullable EncryptedString
445+ , fields :: JNullable (Array FieldApi)
446+ , login :: JNullable LoginApi
447+ , card :: JNullable CardApi
448+ , identity :: JNullable IdentityApi
449+ , secureNote :: JNullable SecureNoteApi
450+ , favorite :: Boolean
451+ , edit :: JNullable Boolean
452+ , viewPassword :: JNullable Boolean
453+ , organizationUseTotp :: JNullable Boolean
454+ , revisionDate :: JNullable Timestamp
455+ , attachments :: JNullable (Array AttachmentResponse)
456+ , passwordHistory :: JNullable (Array PasswordHistoryResponse)
457+ , collectionIds :: JNullable (Array String)
458+ , deletedDate :: JNullable String
459+ , reprompt :: CipherRepromptType
460+ }
477461
478462cipherTypeLogin = 1 :: CipherType
479463
@@ -483,15 +467,14 @@ cipherTypeCard = 3 :: CipherType
483467
484468cipherTypeIdentity = 4 :: CipherType
485469
486−type CipherType
487− = Int
470+type CipherType = Int
488471
489−type FieldApi
490− = { name :: JNullable String
491− , value :: JNullable String
492− , type :: FieldType
493− , linkedId :: JNullable LinkedIdType
494− }
472+type FieldApi =
473+ { name :: JNullable String
474+ , value :: JNullable String
475+ , type :: FieldType
476+ , linkedId :: JNullable LinkedIdType
477+ }
495478
496479fieldTypeText = 0 :: FieldType
497480
@@ -501,8 +484,7 @@ fieldTypeBoolean = 2 :: FieldType
501484
502485fieldTypeLinked = 3 :: FieldType
503486
504−type FieldType
505− = Int
487+type FieldType = Int
506488
507489linkedIdTypeLoginLinkedIdUsername = 100 :: LinkedIdType
508490
@@ -558,23 +540,22 @@ linkedIdTypeIdentityLinkedIdLastName = 417 :: LinkedIdType
558540
559541linkedIdTypeIdentityLinkedIdFullName = 418 :: LinkedIdType
560542
561−type LinkedIdType
562− = Int
543+type LinkedIdType = Int
563544
564−type LoginApi
565− = { uris :: JOpt (Array LoginUriApi)
566− , username :: JNullable EncryptedString
567− , password :: JNullable EncryptedString
568− , passwordRevisionDate :: JNullable String
569− , totp :: JNullable EncryptedString
570− -- This thing is undefined in some cases for some reson. Just ignoring it
571− , autofillOnPageLoad :: JOpt (JNullable Boolean)
572− }
545+type LoginApi =
546+ { uris :: JOpt (Array LoginUriApi)
547+ , username :: JNullable EncryptedString
548+ , password :: JNullable EncryptedString
549+ , passwordRevisionDate :: JNullable String
550+ , totp :: JNullable EncryptedString
551+ -- This thing is undefined in some cases for some reson. Just ignoring it
552+ , autofillOnPageLoad :: JOpt (JNullable Boolean)
553+ }
573554
574−type LoginUriApi
575− = { uri :: EncryptedString
576− , match :: JNullable UriMatchType
577− }
555+type LoginUriApi =
556+ { uri :: JNullable EncryptedString
557+ , match :: JNullable UriMatchType
558+ }
578559
579560uriMatchTypeDomain = 0 :: UriMatchType
580561
@@ -588,87 +569,85 @@ uriMatchTypeRegularExpression = 4 :: UriMatchType
588569
589570uriMatchTypeNever = 5 :: UriMatchType
590571
591−type UriMatchType
592− = Int
593−
594−type CardApi
595− = { cardholderName :: JNullable EncryptedString
596− , brand :: JNullable EncryptedString
597− , number :: JNullable EncryptedString
598− , expMonth :: JNullable EncryptedString
599− , expYear :: JNullable EncryptedString
600− , code :: JNullable EncryptedString
601− }
602−
603−type IdentityApi
604− = { title :: JNullable EncryptedString
605− , firstName :: JNullable EncryptedString
606− , middleName :: JNullable EncryptedString
607− , lastName :: JNullable EncryptedString
608− , address1 :: JNullable EncryptedString
609− , address2 :: JNullable EncryptedString
610− , address3 :: JNullable EncryptedString
611− , city :: JNullable EncryptedString
612− , state :: JNullable EncryptedString
613− , postalCode :: JNullable EncryptedString
614− , country :: JNullable EncryptedString
615− , company :: JNullable EncryptedString
616− , email :: JNullable EncryptedString
617− , phone :: JNullable EncryptedString
618− , ssn :: JNullable EncryptedString
619− , username :: JNullable EncryptedString
620− , passportNumber :: JNullable EncryptedString
621− , licenseNumber :: JNullable EncryptedString
622− }
572+type UriMatchType = Int
573+
574+type CardApi =
575+ { cardholderName :: JNullable EncryptedString
576+ , brand :: JNullable EncryptedString
577+ , number :: JNullable EncryptedString
578+ , expMonth :: JNullable EncryptedString
579+ , expYear :: JNullable EncryptedString
580+ , code :: JNullable EncryptedString
581+ }
582+
583+type IdentityApi =
584+ { title :: JNullable EncryptedString
585+ , firstName :: JNullable EncryptedString
586+ , middleName :: JNullable EncryptedString
587+ , lastName :: JNullable EncryptedString
588+ , address1 :: JNullable EncryptedString
589+ , address2 :: JNullable EncryptedString
590+ , address3 :: JNullable EncryptedString
591+ , city :: JNullable EncryptedString
592+ , state :: JNullable EncryptedString
593+ , postalCode :: JNullable EncryptedString
594+ , country :: JNullable EncryptedString
595+ , company :: JNullable EncryptedString
596+ , email :: JNullable EncryptedString
597+ , phone :: JNullable EncryptedString
598+ , ssn :: JNullable EncryptedString
599+ , username :: JNullable EncryptedString
600+ , passportNumber :: JNullable EncryptedString
601+ , licenseNumber :: JNullable EncryptedString
602+ }
623603
624604secureNoteTypeGeneric = 0 :: SecureNoteType
625605
626−type SecureNoteType
627− = Int
606+type SecureNoteType = Int
628607
629−type SecureNoteApi = {
608+type SecureNoteApi =
609+ {
630610 -- type :: SecureNoteType
631−}
632−
633−type AttachmentResponse
634− = { id :: String
635− , url :: JNullable String
636− , fileName :: JNullable String
637− , key :: JNullable String
638− , size :: JNullable String
639− , sizeName :: JNullable String
640− }
641−
642−type PasswordHistoryResponse
643− = { password :: String
644− , lastUsedDate :: JNullable String
645− }
611+ }
612+
613+type AttachmentResponse =
614+ { id :: String
615+ , url :: JNullable String
616+ , fileName :: JNullable String
617+ , key :: JNullable String
618+ , size :: JNullable String
619+ , sizeName :: JNullable String
620+ }
621+
622+type PasswordHistoryResponse =
623+ { password :: String
624+ , lastUsedDate :: JNullable String
625+ }
646626
647627cipherRepromptTypeNone = 0 :: CipherRepromptType
648628
649629cipherRepromptTypePassword = 1 :: CipherRepromptType
650630
651−type CipherRepromptType
652− = Int
631+type CipherRepromptType = Int
653632
654−type DomainsResponse
655− = { equivalentDomains :: Array (Array String)
656− , globalEquivalentDomains :: Array GlobalDomainResponse
657− }
633+type DomainsResponse =
634+ { equivalentDomains :: Array (Array String)
635+ , globalEquivalentDomains :: Array GlobalDomainResponse
636+ }
658637
659−type GlobalDomainResponse
660− = { type :: Int
661− , domains :: Array String
662− , excluded :: Boolean
663− }
638+type GlobalDomainResponse =
639+ { type :: Int
640+ , domains :: Array String
641+ , excluded :: Boolean
642+ }
664643
665−type PolicyResponse
666− = { id :: String
667− , organizationId :: JNullable String
668− , type :: PolicyType
669− , data :: ShowableJson
670− , enabled :: Boolean
671− }
644+type PolicyResponse =
645+ { id :: String
646+ , organizationId :: JNullable String
647+ , type :: PolicyType
648+ , data :: ShowableJson
649+ , enabled :: Boolean
650+ }
672651
673652policyTypeTwoFactorAuthentication = 0 :: PolicyType -- Requires users to have 2fa enabled
674653
@@ -692,46 +671,44 @@ policyTypeMaximumVaultTimeout = 9 :: PolicyType -- Sets the maximum allowed vaul
692671
693672policyTypeDisablePersonalVaultExport = 10 :: PolicyType -- Disable personal vault export
694673
695−type PolicyType
696− = Int
697−
698−type SendResponse
699− = { id :: String
700− , accessId :: JNullable String
701− , type :: SendType
702− , name :: JNullable String
703− , notes :: JNullable String
704− , file :: JNullable SendFileApi
705− , text :: JNullable SendTextApi
706− , key :: JNullable String
707− , maxAccessCount :: JNullable Int
708− , accessCount :: JNullable Int
709− , revisionDate :: JNullable String
710− , expirationDate :: JNullable String
711− , deletionDate :: JNullable String
712− , password :: JNullable String
713− , disable :: Boolean
714− , hideEmail :: Boolean
715− }
674+type PolicyType = Int
675+
676+type SendResponse =
677+ { id :: String
678+ , accessId :: JNullable String
679+ , type :: SendType
680+ , name :: JNullable String
681+ , notes :: JNullable String
682+ , file :: JNullable SendFileApi
683+ , text :: JNullable SendTextApi
684+ , key :: JNullable String
685+ , maxAccessCount :: JNullable Int
686+ , accessCount :: JNullable Int
687+ , revisionDate :: JNullable String
688+ , expirationDate :: JNullable String
689+ , deletionDate :: JNullable String
690+ , password :: JNullable String
691+ , disable :: Boolean
692+ , hideEmail :: Boolean
693+ }
716694
717695sendTypeText = 0 :: SendType
718696
719697sendTypeFile = 1 :: SendType
720698
721−type SendType
722− = Int
699+type SendType = Int
723700
724−type SendFileApi
725− = { id :: String
726− , fileName :: JNullable String
727− , size :: JNullable String
728− , sizeName :: JNullable String
729− }
701+type SendFileApi =
702+ { id :: String
703+ , fileName :: JNullable String
704+ , size :: JNullable String
705+ , sizeName :: JNullable String
706+ }
730707
731−type SendTextApi
732− = { text :: JNullable String
733− , hidden :: Boolean
734− }
708+type SendTextApi =
709+ { text :: JNullable String
710+ , hidden :: Boolean
711+ }
735712
736713type TwoFactorEmailRequest =
737714 { email :: Email