SwiftstructWritingToolsUI

struct WritingToolsUI.WTIntentContext

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 15

  1. varstatic var defaultQuery: WritingToolsUI.WTIntentContextQuery { get set }
  2. varstatic var transferRepresentation: some CoreTransferable.TransferRepresentation { get }
  3. varstatic var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation { get set }
  4. fieldlet contextType: WritingToolsUI.WTIntentContext.WritingContextType
  5. fieldlet conversationContext: WritingToolsUI.WTIntentContext.ConversationContext?
  6. fieldlet documentContext: WritingToolsUI.WTIntentContext.DocumentContext?
  7. fieldvar id: Foundation.UUID
  8. initinit(contextType: WritingToolsUI.WTIntentContext.WritingContextType, documentContext: WritingToolsUI.WTIntentContext.DocumentContext, conversationContext: WritingToolsUI.WTIntentContext.ConversationContext?, result: Foundation.AttributedString?) -> WritingToolsUI.WTIntentContext
  9. typealiastypealias DefaultQuery = WritingToolsUI.WTIntentContextQuery
  10. typealiastypealias ID = Foundation.UUID
  11. typealiastypealias Representation = CoreTransferable.CodableRepresentation<WritingToolsUI.WTIntentContext, Foundation.JSONEncoder, Foundation.JSONDecoder>
  12. typealiastypealias Specification = AppIntents.EmptyResolverSpecification<WritingToolsUI.WTIntentContext>
  13. typealiastypealias UnwrappedType = WritingToolsUI.WTIntentContext
  14. typealiastypealias ValueType = WritingToolsUI.WTIntentContext
  15. varvar displayRepresentation: AppIntents.DisplayRepresentation { get }
struct WTIntentContext {
    enum WritingContextType {
        enum CodingKeys {
            case mail
            case general
        }
        enum MailCodingKeys {}
        enum GeneralCodingKeys {}
        case mail
        case general
    }
    struct DocumentContext {
        enum CodingKeys {
            case documentTextData
            case selectedRangeLocation
            case selectedRangeLength
        }
        let documentText: __C.NSAttributedString
        let selectedRange: __C._NSRange

        init(documentText: __C.NSAttributedString, selectedRange: __C._NSRange)
        init(documentText: __C.NSAttributedString)

        var selectedText: __C.NSAttributedString {
            get
        }
    }
    struct ConversationContext {
        struct MailMessage {
            enum CodingKeys {
                case messageId
                case inResponseToMessageId
                case mail
            }
            let messageId: Swift.Int
            let inResponseToMessageId: Swift.Int?
            let mail: WritingToolsUI.WTIntentContext.ConversationContext.MailDetails

            init(messageId: Swift.Int, inResponseToMessageId: Swift.Int?, mail: WritingToolsUI.WTIntentContext.ConversationContext.MailDetails)
        }
        struct MailDetails {
            enum CodingKeys {
                case from
                case subject
                case bodyData
                case to
                case cc
            }
            let from: Swift.String?
            let subject: Swift.String?
            let body: __C.NSAttributedString?
            let to: [Swift.String]
            let cc: [Swift.String]

            init(from: Swift.String?, subject: Swift.String?, body: __C.NSAttributedString?, to: [Swift.String], cc: [Swift.String])
        }
        enum CodingKeys {
            case mailMessages
            case replyToMessageId
        }
        let mailMessages: [WritingToolsUI.WTIntentContext.ConversationContext.MailMessage]
        let replyToMessageId: Swift.Int?

        init(mailMessages: [WritingToolsUI.WTIntentContext.ConversationContext.MailMessage], replyToMessageId: Swift.Int?)
    }
    enum CodingKeys {
        case contextType
        case userPrompt
        case documentContext
        case conversationContext
        case resultData
    }
    var id: Foundation.UUID
    let contextType: WritingToolsUI.WTIntentContext.WritingContextType
    let documentContext: WritingToolsUI.WTIntentContext.DocumentContext?
    let conversationContext: WritingToolsUI.WTIntentContext.ConversationContext?

    init(contextType: WritingToolsUI.WTIntentContext.WritingContextType, documentContext: WritingToolsUI.WTIntentContext.DocumentContext, conversationContext: WritingToolsUI.WTIntentContext.ConversationContext?, result: Foundation.AttributedString?)

    var displayRepresentation: AppIntents.DisplayRepresentation {
        get
    }

    static var defaultQuery: WritingToolsUI.WTIntentContextQuery {
        get
        set
    }
    static var transferRepresentation: some CoreTransferable.TransferRepresentation {
        get
    }
    static var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation {
        get
        set
    }
}