@@ -1121,14 +1121,15 @@ public struct Cipher {
1121
1121
public let creationDate : DateTime
1122
1122
public let deletedDate : DateTime ?
1123
1123
public let revisionDate : DateTime
1124
+ public let archivedDate : DateTime ?
1124
1125
1125
1126
// Default memberwise initializers are never public by default, so we
1126
1127
// declare one manually.
1127
1128
public init ( id: CipherId ? , organizationId: OrganizationId ? , folderId: FolderId ? , collectionIds: [ CollectionId ] ,
1128
1129
/**
1129
1130
* More recent ciphers uses individual encryption keys to encrypt the other fields of the
1130
1131
* Cipher.
1131
- */key: EncString ? , name: EncString , notes: EncString ? , type: CipherType , login: Login ? , identity: Identity ? , card: Card ? , secureNote: SecureNote ? , sshKey: SshKey ? , favorite: Bool , reprompt: CipherRepromptType , organizationUseTotp: Bool , edit: Bool , permissions: CipherPermissions ? , viewPassword: Bool , localData: LocalData ? , attachments: [ Attachment ] ? , fields: [ Field ] ? , passwordHistory: [ PasswordHistory ] ? , creationDate: DateTime , deletedDate: DateTime ? , revisionDate: DateTime ) {
1132
+ */key: EncString ? , name: EncString , notes: EncString ? , type: CipherType , login: Login ? , identity: Identity ? , card: Card ? , secureNote: SecureNote ? , sshKey: SshKey ? , favorite: Bool , reprompt: CipherRepromptType , organizationUseTotp: Bool , edit: Bool , permissions: CipherPermissions ? , viewPassword: Bool , localData: LocalData ? , attachments: [ Attachment ] ? , fields: [ Field ] ? , passwordHistory: [ PasswordHistory ] ? , creationDate: DateTime , deletedDate: DateTime ? , revisionDate: DateTime , archivedDate : DateTime ? ) {
1132
1133
self . id = id
1133
1134
self . organizationId = organizationId
1134
1135
self . folderId = folderId
@@ -1155,6 +1156,7 @@ public struct Cipher {
1155
1156
self . creationDate = creationDate
1156
1157
self . deletedDate = deletedDate
1157
1158
self . revisionDate = revisionDate
1159
+ self . archivedDate = archivedDate
1158
1160
}
1159
1161
}
1160
1162
@@ -1243,6 +1245,9 @@ extension Cipher: Equatable, Hashable {
1243
1245
if lhs. revisionDate != rhs. revisionDate {
1244
1246
return false
1245
1247
}
1248
+ if lhs. archivedDate != rhs. archivedDate {
1249
+ return false
1250
+ }
1246
1251
return true
1247
1252
}
1248
1253
@@ -1273,6 +1278,7 @@ extension Cipher: Equatable, Hashable {
1273
1278
hasher. combine ( creationDate)
1274
1279
hasher. combine ( deletedDate)
1275
1280
hasher. combine ( revisionDate)
1281
+ hasher. combine ( archivedDate)
1276
1282
}
1277
1283
}
1278
1284
@@ -1310,7 +1316,8 @@ public struct FfiConverterTypeCipher: FfiConverterRustBuffer {
1310
1316
passwordHistory: FfiConverterOptionSequenceTypePasswordHistory . read ( from: & buf) ,
1311
1317
creationDate: FfiConverterTypeDateTime . read ( from: & buf) ,
1312
1318
deletedDate: FfiConverterOptionTypeDateTime . read ( from: & buf) ,
1313
- revisionDate: FfiConverterTypeDateTime . read ( from: & buf)
1319
+ revisionDate: FfiConverterTypeDateTime . read ( from: & buf) ,
1320
+ archivedDate: FfiConverterOptionTypeDateTime . read ( from: & buf)
1314
1321
)
1315
1322
}
1316
1323
@@ -1341,6 +1348,7 @@ public struct FfiConverterTypeCipher: FfiConverterRustBuffer {
1341
1348
FfiConverterTypeDateTime . write ( value. creationDate, into: & buf)
1342
1349
FfiConverterOptionTypeDateTime . write ( value. deletedDate, into: & buf)
1343
1350
FfiConverterTypeDateTime . write ( value. revisionDate, into: & buf)
1351
+ FfiConverterOptionTypeDateTime . write ( value. archivedDate, into: & buf)
1344
1352
}
1345
1353
}
1346
1354
@@ -1389,6 +1397,7 @@ public struct CipherListView {
1389
1397
public let creationDate : DateTime
1390
1398
public let deletedDate : DateTime ?
1391
1399
public let revisionDate : DateTime
1400
+ public let archivedDate : DateTime ?
1392
1401
/**
1393
1402
* Hints for the presentation layer for which fields can be copied.
1394
1403
*/
@@ -1406,7 +1415,7 @@ public struct CipherListView {
1406
1415
*/attachments: UInt32 ,
1407
1416
/**
1408
1417
* Indicates if the cipher has old attachments that need to be re-uploaded
1409
- */hasOldAttachments: Bool , creationDate: DateTime , deletedDate: DateTime ? , revisionDate: DateTime ,
1418
+ */hasOldAttachments: Bool , creationDate: DateTime , deletedDate: DateTime ? , revisionDate: DateTime , archivedDate : DateTime ? ,
1410
1419
/**
1411
1420
* Hints for the presentation layer for which fields can be copied.
1412
1421
*/copyableFields: [ CopyableCipherFields ] , localData: LocalDataView ? ) {
@@ -1429,6 +1438,7 @@ public struct CipherListView {
1429
1438
self . creationDate = creationDate
1430
1439
self . deletedDate = deletedDate
1431
1440
self . revisionDate = revisionDate
1441
+ self . archivedDate = archivedDate
1432
1442
self . copyableFields = copyableFields
1433
1443
self . localData = localData
1434
1444
}
@@ -1498,6 +1508,9 @@ extension CipherListView: Equatable, Hashable {
1498
1508
if lhs. revisionDate != rhs. revisionDate {
1499
1509
return false
1500
1510
}
1511
+ if lhs. archivedDate != rhs. archivedDate {
1512
+ return false
1513
+ }
1501
1514
if lhs. copyableFields != rhs. copyableFields {
1502
1515
return false
1503
1516
}
@@ -1527,6 +1540,7 @@ extension CipherListView: Equatable, Hashable {
1527
1540
hasher. combine ( creationDate)
1528
1541
hasher. combine ( deletedDate)
1529
1542
hasher. combine ( revisionDate)
1543
+ hasher. combine ( archivedDate)
1530
1544
hasher. combine ( copyableFields)
1531
1545
hasher. combine ( localData)
1532
1546
}
@@ -1560,6 +1574,7 @@ public struct FfiConverterTypeCipherListView: FfiConverterRustBuffer {
1560
1574
creationDate: FfiConverterTypeDateTime . read ( from: & buf) ,
1561
1575
deletedDate: FfiConverterOptionTypeDateTime . read ( from: & buf) ,
1562
1576
revisionDate: FfiConverterTypeDateTime . read ( from: & buf) ,
1577
+ archivedDate: FfiConverterOptionTypeDateTime . read ( from: & buf) ,
1563
1578
copyableFields: FfiConverterSequenceTypeCopyableCipherFields . read ( from: & buf) ,
1564
1579
localData: FfiConverterOptionTypeLocalDataView . read ( from: & buf)
1565
1580
)
@@ -1585,6 +1600,7 @@ public struct FfiConverterTypeCipherListView: FfiConverterRustBuffer {
1585
1600
FfiConverterTypeDateTime . write ( value. creationDate, into: & buf)
1586
1601
FfiConverterOptionTypeDateTime . write ( value. deletedDate, into: & buf)
1587
1602
FfiConverterTypeDateTime . write ( value. revisionDate, into: & buf)
1603
+ FfiConverterOptionTypeDateTime . write ( value. archivedDate, into: & buf)
1588
1604
FfiConverterSequenceTypeCopyableCipherFields . write ( value. copyableFields, into: & buf)
1589
1605
FfiConverterOptionTypeLocalDataView . write ( value. localData, into: & buf)
1590
1606
}
@@ -1706,13 +1722,14 @@ public struct CipherView {
1706
1722
public let creationDate : DateTime
1707
1723
public let deletedDate : DateTime ?
1708
1724
public let revisionDate : DateTime
1725
+ public let archivedDate : DateTime ?
1709
1726
1710
1727
// Default memberwise initializers are never public by default, so we
1711
1728
// declare one manually.
1712
1729
public init ( id: CipherId ? , organizationId: OrganizationId ? , folderId: FolderId ? , collectionIds: [ CollectionId ] ,
1713
1730
/**
1714
1731
* Temporary, required to support re-encrypting existing items.
1715
- */key: EncString ? , name: String , notes: String ? , type: CipherType , login: LoginView ? , identity: IdentityView ? , card: CardView ? , secureNote: SecureNoteView ? , sshKey: SshKeyView ? , favorite: Bool , reprompt: CipherRepromptType , organizationUseTotp: Bool , edit: Bool , permissions: CipherPermissions ? , viewPassword: Bool , localData: LocalDataView ? , attachments: [ AttachmentView ] ? , fields: [ FieldView ] ? , passwordHistory: [ PasswordHistoryView ] ? , creationDate: DateTime , deletedDate: DateTime ? , revisionDate: DateTime ) {
1732
+ */key: EncString ? , name: String , notes: String ? , type: CipherType , login: LoginView ? , identity: IdentityView ? , card: CardView ? , secureNote: SecureNoteView ? , sshKey: SshKeyView ? , favorite: Bool , reprompt: CipherRepromptType , organizationUseTotp: Bool , edit: Bool , permissions: CipherPermissions ? , viewPassword: Bool , localData: LocalDataView ? , attachments: [ AttachmentView ] ? , fields: [ FieldView ] ? , passwordHistory: [ PasswordHistoryView ] ? , creationDate: DateTime , deletedDate: DateTime ? , revisionDate: DateTime , archivedDate : DateTime ? ) {
1716
1733
self . id = id
1717
1734
self . organizationId = organizationId
1718
1735
self . folderId = folderId
@@ -1739,6 +1756,7 @@ public struct CipherView {
1739
1756
self . creationDate = creationDate
1740
1757
self . deletedDate = deletedDate
1741
1758
self . revisionDate = revisionDate
1759
+ self . archivedDate = archivedDate
1742
1760
}
1743
1761
}
1744
1762
@@ -1827,6 +1845,9 @@ extension CipherView: Equatable, Hashable {
1827
1845
if lhs. revisionDate != rhs. revisionDate {
1828
1846
return false
1829
1847
}
1848
+ if lhs. archivedDate != rhs. archivedDate {
1849
+ return false
1850
+ }
1830
1851
return true
1831
1852
}
1832
1853
@@ -1857,6 +1878,7 @@ extension CipherView: Equatable, Hashable {
1857
1878
hasher. combine ( creationDate)
1858
1879
hasher. combine ( deletedDate)
1859
1880
hasher. combine ( revisionDate)
1881
+ hasher. combine ( archivedDate)
1860
1882
}
1861
1883
}
1862
1884
@@ -1894,7 +1916,8 @@ public struct FfiConverterTypeCipherView: FfiConverterRustBuffer {
1894
1916
passwordHistory: FfiConverterOptionSequenceTypePasswordHistoryView . read ( from: & buf) ,
1895
1917
creationDate: FfiConverterTypeDateTime . read ( from: & buf) ,
1896
1918
deletedDate: FfiConverterOptionTypeDateTime . read ( from: & buf) ,
1897
- revisionDate: FfiConverterTypeDateTime . read ( from: & buf)
1919
+ revisionDate: FfiConverterTypeDateTime . read ( from: & buf) ,
1920
+ archivedDate: FfiConverterOptionTypeDateTime . read ( from: & buf)
1898
1921
)
1899
1922
}
1900
1923
@@ -1925,6 +1948,7 @@ public struct FfiConverterTypeCipherView: FfiConverterRustBuffer {
1925
1948
FfiConverterTypeDateTime . write ( value. creationDate, into: & buf)
1926
1949
FfiConverterOptionTypeDateTime . write ( value. deletedDate, into: & buf)
1927
1950
FfiConverterTypeDateTime . write ( value. revisionDate, into: & buf)
1951
+ FfiConverterOptionTypeDateTime . write ( value. archivedDate, into: & buf)
1928
1952
}
1929
1953
}
1930
1954
0 commit comments