SwiftclassGenerativePartnerServiceUI

@Observable class GenerativePartnerServiceUI.SettingsViewModel

Structure

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

Members 25

  1. deinitdeinit
  2. fieldlet _$observationRegistrar: Observation.ObservationRegistrar
  3. fieldvar _adamID: String?
  4. fieldvar _billingInfo: GenerativePartnerServiceUI.BillingInfo
  5. fieldvar _currentLLM: GenerativePartnerService.LLMProvider?
  6. fieldvar _deepLinkParams: GenerativePartnerServiceUI.SettingsViewModel.IdentifiableDeepLinkParams
  7. fieldvar _lastRateLimitResponseDate: Foundation.Date?
  8. fieldvar _latestRateLimitStates: [Anvil.TicketingType : GenerativePartnerServiceUI.RateLimitState]
  9. fieldvar _legacyConfirmationPromptsOn: Bool
  10. fieldvar _legacyEnableToggleState: Bool
  11. fieldvar _legacySetupPromptsOn: Bool
  12. fieldvar _mdmRequiresSignIn: Bool
  13. fieldvar _pendingRateLimitFetchStart: Foundation.Date?
  14. fieldvar _showManageSubscription: Bool
  15. fieldvar _showRateLimitStatus: Bool
  16. fieldvar _showSignInFailedDueToWorkspaceRestriction: Bool
  17. fieldvar _showingSignInFailureAlert: Bool
  18. fieldvar _showingSignOutDialog: Bool
  19. fieldvar _signInStatus: GenerativePartnerServiceUI.SettingsViewModel.AccountSignInStatus
  20. fieldvar _subscriptionInfo: GenerativePartnerServiceUI.SubscriptionInfo
  21. fieldvar _userAccountStatus: Anvil.UserInfo.AccountStatus?
  22. fieldlet observer: GenerativePartnerServiceUI.SettingsObserver
  23. fieldlet rateLimitCategories: [Anvil.TicketingType]
  24. initGenerativePartnerServiceUI.SettingsViewModel.__allocating_init() -> GenerativePartnerServiceUI.SettingsViewModel
  25. varvar deepLinkParams: GenerativePartnerServiceUI.SettingsViewModel.IdentifiableDeepLinkParams { get set }
@Observation.Observable
class SettingsViewModel {
    struct IdentifiableDeepLinkParams {
        var id: Foundation.UUID
        var params: [Swift.String : Swift.String]?

        init(_: [Swift.String : Swift.String]?)
    }
    enum AccountSignInStatus {
        case hasSignedIn(credentials: Anvil.Credentials)
        case notSignedIn
        case signingIn
        case signingOut
        case expired
    }
    // synthesized from the storage `_currentLLM` that @Observable generated; the property's own accessors are stripped
    var currentLLM: (any GenerativePartnerService.LLMProvider)?
    // synthesized from the storage `_signInStatus` that @Observable generated; the property's own accessors are stripped
    var signInStatus: GenerativePartnerServiceUI.SettingsViewModel.AccountSignInStatus
    var deepLinkParams: GenerativePartnerServiceUI.SettingsViewModel.IdentifiableDeepLinkParams
    // synthesized from the storage `_showingSignInFailureAlert` that @Observable generated; the property's own accessors are stripped
    var showingSignInFailureAlert: Swift.Bool
    // synthesized from the storage `_showSignInFailedDueToWorkspaceRestriction` that @Observable generated; the property's own accessors are stripped
    var showSignInFailedDueToWorkspaceRestriction: Swift.Bool
    // synthesized from the storage `_showingSignOutDialog` that @Observable generated; the property's own accessors are stripped
    var showingSignOutDialog: Swift.Bool
    // synthesized from the storage `_legacyEnableToggleState` that @Observable generated; the property's own accessors are stripped
    var legacyEnableToggleState: Swift.Bool
    // synthesized from the storage `_legacySetupPromptsOn` that @Observable generated; the property's own accessors are stripped
    var legacySetupPromptsOn: Swift.Bool
    // synthesized from the storage `_legacyConfirmationPromptsOn` that @Observable generated; the property's own accessors are stripped
    var legacyConfirmationPromptsOn: Swift.Bool
    // synthesized from the storage `_subscriptionInfo` that @Observable generated; the property's own accessors are stripped
    var subscriptionInfo: GenerativePartnerServiceUI.SubscriptionInfo
    // synthesized from the storage `_showManageSubscription` that @Observable generated; the property's own accessors are stripped
    var showManageSubscription: Swift.Bool
    // synthesized from the storage `_adamID` that @Observable generated; the property's own accessors are stripped
    var adamID: Swift.String?
    // synthesized from the storage `_showRateLimitStatus` that @Observable generated; the property's own accessors are stripped
    var showRateLimitStatus: Swift.Bool
    let rateLimitCategories: [Anvil.TicketingType]
    // synthesized from the storage `_latestRateLimitStates` that @Observable generated; the property's own accessors are stripped
    var latestRateLimitStates: [Anvil.TicketingType : GenerativePartnerServiceUI.RateLimitState]
    // synthesized from the storage `_userAccountStatus` that @Observable generated; the property's own accessors are stripped
    var userAccountStatus: Anvil.UserInfo.AccountStatus?
    // synthesized from the storage `_mdmRequiresSignIn` that @Observable generated; the property's own accessors are stripped
    var mdmRequiresSignIn: Swift.Bool
    // synthesized from the storage `_billingInfo` that @Observable generated; the property's own accessors are stripped
    var billingInfo: GenerativePartnerServiceUI.BillingInfo
    // synthesized from the storage `_lastRateLimitResponseDate` that @Observable generated; the property's own accessors are stripped
    var lastRateLimitResponseDate: Foundation.Date?
    // synthesized from the storage `_pendingRateLimitFetchStart` that @Observable generated; the property's own accessors are stripped
    var pendingRateLimitFetchStart: Foundation.Date?
    let observer: GenerativePartnerServiceUI.SettingsObserver

    init()

    deinit
}