DataHolder
public struct DataHolder : Equatable, Sendable
Representation of a data holder discovered in the Sudo Platform Privacy Interaction service.
A data holder is a third party (for example a company or service) that has been detected as holding some of the user’s data, typically discovered by scanning a connected virtual presence.
-
Unique identifier of the data holder.
Declaration
Swift
public let id: String -
Identifier of the virtual presence this data holder is associated with.
Declaration
Swift
public let virtualPresenceId: String -
Domain name of the data holder (e.g. “google.com”).
Declaration
Swift
public let domainName: String -
Display name of the data holder (e.g. “Google”).
Declaration
Swift
public let name: String -
Current protection state of the data holder.
Declaration
Swift
public let protectionState: DataHolderProtectionState -
Whether there is a compliance concern with this data holder.
Declaration
Swift
public let complianceConcern: Bool -
Time of the most recent interaction with this data holder. Equal to
mostRecentInboundContactAt.Declaration
Swift
@available(*, deprecated, message: "Use mostRecentInboundContactAt instead.") public var mostRecentInteractionAt: Date { get } -
Time of the most recent inbound contact from this data holder. Falls back to
createdAtfor data holders the service has not yet backfilled with this value.Declaration
Swift
public let mostRecentInboundContactAt: Date -
Time of the earliest observed contact from this data holder. Falls back to
createdAtfor data holders the service has not yet backfilled with this value.Declaration
Swift
public let firstInboundContactAt: Date -
Identifier of the Sudo that owns this data holder.
Declaration
Swift
public let owner: String -
Record version, used for optimistic concurrency.
Declaration
Swift
public let version: Int -
Date the data holder was first discovered.
Declaration
Swift
public let createdAt: Date -
Date the data holder record was last updated.
Declaration
Swift
public let updatedAt: Date -
init(id:virtualPresenceId: domainName: name: protectionState: complianceConcern: mostRecentInboundContactAt: firstInboundContactAt: owner: version: createdAt: updatedAt: ) Declaration
Swift
public init( id: String, virtualPresenceId: String, domainName: String, name: String, protectionState: DataHolderProtectionState, complianceConcern: Bool, mostRecentInboundContactAt: Date, firstInboundContactAt: Date, owner: String, version: Int, createdAt: Date, updatedAt: Date ) -
init(id:virtualPresenceId: domainName: name: protectionState: complianceConcern: mostRecentInteractionAt: owner: version: createdAt: updatedAt: ) Retained for source compatibility.
mostRecentInteractionAtpopulatesmostRecentInboundContactAt, andfirstInboundContactAtdefaults tocreatedAt.Declaration
Swift
@available(*, deprecated, message: "Use the initializer that takes mostRecentInboundContactAt and firstInboundContactAt.") public init( id: String, virtualPresenceId: String, domainName: String, name: String, protectionState: DataHolderProtectionState, complianceConcern: Bool, mostRecentInteractionAt: Date, owner: String, version: Int, createdAt: Date, updatedAt: Date )
DataHolder Structure Reference