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
See moreverificationUriCompleteis set,OidcModule.setup.startextracts theuser_codequery parameter from the URL and includes it in the outgoing authorization request so the authorization server can approve the requesting device.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.
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.
Declaration
Swift
public struct Validation -
A struct representing an option.
See moreDeclaration
Swift
public struct Option : SendableParameters
labelThe label of the option.
valueThe value of the option.
-
A struct representing a password policy Conforms to
See moreCodablefor JSON encoding/decoding.Declaration
Swift
public struct PasswordPolicy : Codable, Sendable -
A struct representing the password policy history. Conforms to
See moreCodablefor JSON encoding/decoding.Declaration
Swift
public struct History : Codable, Sendable -
A struct representing the password policy lockout rules. Conforms to
See moreCodablefor JSON encoding/decoding.Declaration
Swift
public struct Lockout : Codable, Sendable -
A struct representing the min/max length constraints. Conforms to
See moreCodablefor JSON encoding/decoding.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”).
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.
Declaration
Swift
public struct RichContent : Sendable, Equatable -
Represents a detailed error response.
See moreDeclaration
Swift
public struct Detail : Codable, Sendable -
Represents the raw response of an error.
See moreDeclaration
Swift
public struct RawResponse : Codable, Sendable -
Represents a specific error detail.
See moreDeclaration
Swift
public struct ErrorDetail : Codable, Sendable -
Represents additional inner error details.
See moreDeclaration
Swift
public struct InnerError : Codable, Sendable -
Represents a session response parsed from a JSON object.
See moreDeclaration
Swift
public struct SessionResponse : Session, @unchecked Sendable
View on GitHub
Structures Reference