UpdateCredentialsParams

public struct UpdateCredentialsParams : Codable

Undocumented

  • The display name to use for the profile.

    Declaration

    Swift

    public var displayName: String?
  • The account bio.

    Declaration

    Swift

    public var note: String?
  • Avatar image encoded using multipart/form-data

    Declaration

    Swift

    public var avatar: Data?
  • Undocumented

    Declaration

    Swift

    public var avatarMimeType: String?
  • Header image encoded using multipart/form-data

    Declaration

    Swift

    public var header: Data?
  • Undocumented

    Declaration

    Swift

    public var headerMimeType: String?
  • Whether manual approval of follow requests is required.

    Declaration

    Swift

    public var locked: Bool?
  • bot

    Whether the account has a bot flag.

    Declaration

    Swift

    public var bot: Bool?
  • Whether he account should be shown in the profile directory.

    Declaration

    Swift

    public var discoverable: Bool?
  • Additional metadata attached to a profile as name-value pairs

    Declaration

    Swift

    public let fieldsAttributes: [String : Field]?
  • An extra entity to be used with API methods to verify credentials and update credentials

    Declaration

    Swift

    public let source: Source?
  • Undocumented

    Declaration

    Swift

    public init(displayName: String? = nil, note: String? = nil, avatar: Data? = nil, avatarMimeType: String? = nil, header: Data? = nil, headerMimeType: String? = nil, locked: Bool? = nil, bot: Bool? = nil, discoverable: Bool? = nil, fieldsAttributes: [String : Field]? = nil, source: Source? = nil)
  • Represents a profile field as a name-value pair

    See more

    Declaration

    Swift

    public struct Field : Codable, Hashable, Sendable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Source : Codable, Hashable, Sendable