Structures

The following structures are available globally.

  • Options used to supply caller inputs before the DaVinci flow begins.

    Currently used for the RFC 8628 Device Authorization Grant (approving-device side). When verificationUriComplete is set, OidcModule.setup.start extracts the user_code query parameter from the URL and includes it in the outgoing authorization request so the authorization server can approve the requesting device.

    See more

    Declaration

    Swift

    public struct DaVinciOptions : Sendable
  • Struct representing a device.

    • property id: The ID of the device.
    • property type: The type of the device.
    • property title: The title of the device.
    • property description: The description of the device.
    • property iconSrc: The icon source of the device.
    • property isDefault: The default value of the device.
    • property value: The value of the device.
    • method populateDevices: Populates a list of devices from the JSON data.
    See more

    Declaration

    Swift

    public struct Device : Codable, @unchecked Sendable
  • Struct representing the validation of the field collector.

    • property regex: The regex of the validation.
    • property errorMessage: The error message of the validation.
    See more

    Declaration

    Swift

    public struct Validation
  • A struct representing an option.

    See more

    Declaration

    Swift

    public struct Option : Sendable

    Parameters

    label

    The label of the option.

    value

    The value of the option.

  • A struct representing a password policy Conforms to Codable for JSON encoding/decoding.

    See more

    Declaration

    Swift

    public struct PasswordPolicy : Codable, Sendable
  • A struct representing the password policy history. Conforms to Codable for JSON encoding/decoding.

    See more

    Declaration

    Swift

    public struct History : Codable, Sendable
  • A struct representing the password policy lockout rules. Conforms to Codable for JSON encoding/decoding.

    See more

    Declaration

    Swift

    public struct Lockout : Codable, Sendable
  • A struct representing the min/max length constraints. Conforms to Codable for JSON encoding/decoding.

    See more

    Declaration

    Swift

    public struct Length : Codable, Sendable
  • A replacement entry within rich content.

    • value: The display text for the replacement.
    • href: The URL for link-type replacements.
    • type: The type of replacement (e.g., “link”).
    • target: The link target (e.g., “_self”, “_blank”).
    See more

    Declaration

    Swift

    public struct RichContentReplacement : Sendable, Equatable
  • Rich content for a form field, enabling template-based text with embedded links.

    • content: A template string with {{placeholder}} tokens.
    • replacements: A dictionary mapping placeholder keys to their replacement details.
    See more

    Declaration

    Swift

    public struct RichContent : Sendable, Equatable
  • Represents a detailed error response.

    See more

    Declaration

    Swift

    public struct Detail : Codable, Sendable
  • Represents the raw response of an error.

    See more

    Declaration

    Swift

    public struct RawResponse : Codable, Sendable
  • Represents a specific error detail.

    See more

    Declaration

    Swift

    public struct ErrorDetail : Codable, Sendable
  • Represents additional inner error details.

    See more

    Declaration

    Swift

    public struct InnerError : Codable, Sendable
  • Represents a session response parsed from a JSON object.

    See more

    Declaration

    Swift

    public struct SessionResponse : Session, @unchecked Sendable