mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
390 lines
20 KiB
Swift
390 lines
20 KiB
Swift
//
|
|
// IamApplication.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IamApplication: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var affiliationUrl: String?
|
|
public var category: String?
|
|
public var cert: String?
|
|
public var certObj: IamCert?
|
|
public var certPublicKey: String?
|
|
public var clientCert: String?
|
|
/** ClientId is the OAuth2/OIDC client identifier and the GLOBAL key every confidential-client resolver authenticates against (store.GetApplicationByClientId, the mint gates, Basic auth). It MUST be globally unique across ALL owners — a collision would let one app shadow another at that key. This store persists each entity as a JSON document in a shared table, so there is no per-field column to carry a DB UNIQUE index; uniqueness is enforced at the write in applications.Create/Update (ensureClientIdUnique), exactly as the (owner,name) natural key is, and store.GetApplicationByClientId resolves admin-preferring as defense-in-depth. */
|
|
public var clientId: String?
|
|
public var clientSecret: String?
|
|
public var codeResendTimeout: Int64?
|
|
public var cookieExpireInHours: Int64?
|
|
public var createdAt: Date?
|
|
public var createdTime: String?
|
|
public var customScopes: [IamScopeDescription]?
|
|
public var defaultGroup: String?
|
|
public var deleted: Bool?
|
|
public var description: String?
|
|
public var disableSamlAttributes: Bool?
|
|
public var disableSignin: Bool?
|
|
public var displayName: String?
|
|
public var domain: String?
|
|
public var enableAutoSignin: Bool?
|
|
public var enableCodeSignin: Bool?
|
|
public var enableExclusiveSignin: Bool?
|
|
public var enableLinkWithEmail: Bool?
|
|
public var enablePassword: Bool?
|
|
public var enableSamlAssertionSignature: Bool?
|
|
public var enableSamlC14n10: Bool?
|
|
public var enableSamlCompress: Bool?
|
|
public var enableSamlPostBinding: Bool?
|
|
public var enableSignUp: Bool?
|
|
public var enableSigninSession: Bool?
|
|
public var enableWebAuthn: Bool?
|
|
public var environment: String?
|
|
public var expireInHours: Double?
|
|
public var failedSigninFrozenTime: Int64?
|
|
public var failedSigninLimit: Int64?
|
|
public var favicon: String?
|
|
public var footerHtml: String?
|
|
public var forcedRedirectOrigin: String?
|
|
public var forgetUrl: String?
|
|
public var formBackgroundUrl: String?
|
|
public var formBackgroundUrlMobile: String?
|
|
public var formCss: String?
|
|
public var formCssMobile: String?
|
|
public var formOffset: Int64?
|
|
public var formSideHtml: String?
|
|
public var grantTypes: [String]?
|
|
public var headerHtml: String?
|
|
public var homepageUrl: String?
|
|
public var id: String?
|
|
public var ipRestriction: String?
|
|
public var ipWhitelist: String?
|
|
public var isShared: Bool?
|
|
public var logo: String?
|
|
public var name: String?
|
|
public var order: Int64?
|
|
public var orgChoiceMode: String?
|
|
public var organization: String?
|
|
public var organizationObj: IamOrganization?
|
|
public var otherDomains: [String]?
|
|
public var owner: String?
|
|
public var project: String?
|
|
public var providers: [IamProviderItem]?
|
|
public var redirectUris: [String]?
|
|
public var refreshExpireInHours: Double?
|
|
public var samlAttributes: [IamSamlItem]?
|
|
public var samlHashAlgorithm: String?
|
|
public var samlReplyUrl: String?
|
|
public var scopes: [IamScopeItem]?
|
|
public var signinHtml: String?
|
|
public var signinItems: [IamSigninItem]?
|
|
public var signinMethods: [IamSigninMethod]?
|
|
public var signinUrl: String?
|
|
public var signupHtml: String?
|
|
public var signupItems: [IamSignupItem]?
|
|
public var signupUrl: String?
|
|
public var sslCert: String?
|
|
public var sslMode: String?
|
|
public var tags: [String]?
|
|
public var termsOfUse: String?
|
|
public var themeData: IamThemeData?
|
|
public var title: String?
|
|
public var tokenAttributes: [IamJwtItem]?
|
|
public var tokenFields: [String]?
|
|
public var tokenFormat: String?
|
|
public var tokenSigningMethod: String?
|
|
public var type: String?
|
|
public var updatedAt: Date?
|
|
public var upstreamHost: String?
|
|
public var useEmailAsSamlNameId: Bool?
|
|
|
|
public init(affiliationUrl: String? = nil, category: String? = nil, cert: String? = nil, certObj: IamCert? = nil, certPublicKey: String? = nil, clientCert: String? = nil, clientId: String? = nil, clientSecret: String? = nil, codeResendTimeout: Int64? = nil, cookieExpireInHours: Int64? = nil, createdAt: Date? = nil, createdTime: String? = nil, customScopes: [IamScopeDescription]? = nil, defaultGroup: String? = nil, deleted: Bool? = nil, description: String? = nil, disableSamlAttributes: Bool? = nil, disableSignin: Bool? = nil, displayName: String? = nil, domain: String? = nil, enableAutoSignin: Bool? = nil, enableCodeSignin: Bool? = nil, enableExclusiveSignin: Bool? = nil, enableLinkWithEmail: Bool? = nil, enablePassword: Bool? = nil, enableSamlAssertionSignature: Bool? = nil, enableSamlC14n10: Bool? = nil, enableSamlCompress: Bool? = nil, enableSamlPostBinding: Bool? = nil, enableSignUp: Bool? = nil, enableSigninSession: Bool? = nil, enableWebAuthn: Bool? = nil, environment: String? = nil, expireInHours: Double? = nil, failedSigninFrozenTime: Int64? = nil, failedSigninLimit: Int64? = nil, favicon: String? = nil, footerHtml: String? = nil, forcedRedirectOrigin: String? = nil, forgetUrl: String? = nil, formBackgroundUrl: String? = nil, formBackgroundUrlMobile: String? = nil, formCss: String? = nil, formCssMobile: String? = nil, formOffset: Int64? = nil, formSideHtml: String? = nil, grantTypes: [String]? = nil, headerHtml: String? = nil, homepageUrl: String? = nil, id: String? = nil, ipRestriction: String? = nil, ipWhitelist: String? = nil, isShared: Bool? = nil, logo: String? = nil, name: String? = nil, order: Int64? = nil, orgChoiceMode: String? = nil, organization: String? = nil, organizationObj: IamOrganization? = nil, otherDomains: [String]? = nil, owner: String? = nil, project: String? = nil, providers: [IamProviderItem]? = nil, redirectUris: [String]? = nil, refreshExpireInHours: Double? = nil, samlAttributes: [IamSamlItem]? = nil, samlHashAlgorithm: String? = nil, samlReplyUrl: String? = nil, scopes: [IamScopeItem]? = nil, signinHtml: String? = nil, signinItems: [IamSigninItem]? = nil, signinMethods: [IamSigninMethod]? = nil, signinUrl: String? = nil, signupHtml: String? = nil, signupItems: [IamSignupItem]? = nil, signupUrl: String? = nil, sslCert: String? = nil, sslMode: String? = nil, tags: [String]? = nil, termsOfUse: String? = nil, themeData: IamThemeData? = nil, title: String? = nil, tokenAttributes: [IamJwtItem]? = nil, tokenFields: [String]? = nil, tokenFormat: String? = nil, tokenSigningMethod: String? = nil, type: String? = nil, updatedAt: Date? = nil, upstreamHost: String? = nil, useEmailAsSamlNameId: Bool? = nil) {
|
|
self.affiliationUrl = affiliationUrl
|
|
self.category = category
|
|
self.cert = cert
|
|
self.certObj = certObj
|
|
self.certPublicKey = certPublicKey
|
|
self.clientCert = clientCert
|
|
self.clientId = clientId
|
|
self.clientSecret = clientSecret
|
|
self.codeResendTimeout = codeResendTimeout
|
|
self.cookieExpireInHours = cookieExpireInHours
|
|
self.createdAt = createdAt
|
|
self.createdTime = createdTime
|
|
self.customScopes = customScopes
|
|
self.defaultGroup = defaultGroup
|
|
self.deleted = deleted
|
|
self.description = description
|
|
self.disableSamlAttributes = disableSamlAttributes
|
|
self.disableSignin = disableSignin
|
|
self.displayName = displayName
|
|
self.domain = domain
|
|
self.enableAutoSignin = enableAutoSignin
|
|
self.enableCodeSignin = enableCodeSignin
|
|
self.enableExclusiveSignin = enableExclusiveSignin
|
|
self.enableLinkWithEmail = enableLinkWithEmail
|
|
self.enablePassword = enablePassword
|
|
self.enableSamlAssertionSignature = enableSamlAssertionSignature
|
|
self.enableSamlC14n10 = enableSamlC14n10
|
|
self.enableSamlCompress = enableSamlCompress
|
|
self.enableSamlPostBinding = enableSamlPostBinding
|
|
self.enableSignUp = enableSignUp
|
|
self.enableSigninSession = enableSigninSession
|
|
self.enableWebAuthn = enableWebAuthn
|
|
self.environment = environment
|
|
self.expireInHours = expireInHours
|
|
self.failedSigninFrozenTime = failedSigninFrozenTime
|
|
self.failedSigninLimit = failedSigninLimit
|
|
self.favicon = favicon
|
|
self.footerHtml = footerHtml
|
|
self.forcedRedirectOrigin = forcedRedirectOrigin
|
|
self.forgetUrl = forgetUrl
|
|
self.formBackgroundUrl = formBackgroundUrl
|
|
self.formBackgroundUrlMobile = formBackgroundUrlMobile
|
|
self.formCss = formCss
|
|
self.formCssMobile = formCssMobile
|
|
self.formOffset = formOffset
|
|
self.formSideHtml = formSideHtml
|
|
self.grantTypes = grantTypes
|
|
self.headerHtml = headerHtml
|
|
self.homepageUrl = homepageUrl
|
|
self.id = id
|
|
self.ipRestriction = ipRestriction
|
|
self.ipWhitelist = ipWhitelist
|
|
self.isShared = isShared
|
|
self.logo = logo
|
|
self.name = name
|
|
self.order = order
|
|
self.orgChoiceMode = orgChoiceMode
|
|
self.organization = organization
|
|
self.organizationObj = organizationObj
|
|
self.otherDomains = otherDomains
|
|
self.owner = owner
|
|
self.project = project
|
|
self.providers = providers
|
|
self.redirectUris = redirectUris
|
|
self.refreshExpireInHours = refreshExpireInHours
|
|
self.samlAttributes = samlAttributes
|
|
self.samlHashAlgorithm = samlHashAlgorithm
|
|
self.samlReplyUrl = samlReplyUrl
|
|
self.scopes = scopes
|
|
self.signinHtml = signinHtml
|
|
self.signinItems = signinItems
|
|
self.signinMethods = signinMethods
|
|
self.signinUrl = signinUrl
|
|
self.signupHtml = signupHtml
|
|
self.signupItems = signupItems
|
|
self.signupUrl = signupUrl
|
|
self.sslCert = sslCert
|
|
self.sslMode = sslMode
|
|
self.tags = tags
|
|
self.termsOfUse = termsOfUse
|
|
self.themeData = themeData
|
|
self.title = title
|
|
self.tokenAttributes = tokenAttributes
|
|
self.tokenFields = tokenFields
|
|
self.tokenFormat = tokenFormat
|
|
self.tokenSigningMethod = tokenSigningMethod
|
|
self.type = type
|
|
self.updatedAt = updatedAt
|
|
self.upstreamHost = upstreamHost
|
|
self.useEmailAsSamlNameId = useEmailAsSamlNameId
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case affiliationUrl
|
|
case category
|
|
case cert
|
|
case certObj
|
|
case certPublicKey
|
|
case clientCert
|
|
case clientId
|
|
case clientSecret
|
|
case codeResendTimeout
|
|
case cookieExpireInHours
|
|
case createdAt
|
|
case createdTime
|
|
case customScopes
|
|
case defaultGroup
|
|
case deleted
|
|
case description
|
|
case disableSamlAttributes
|
|
case disableSignin
|
|
case displayName
|
|
case domain
|
|
case enableAutoSignin
|
|
case enableCodeSignin
|
|
case enableExclusiveSignin
|
|
case enableLinkWithEmail
|
|
case enablePassword
|
|
case enableSamlAssertionSignature
|
|
case enableSamlC14n10
|
|
case enableSamlCompress
|
|
case enableSamlPostBinding
|
|
case enableSignUp
|
|
case enableSigninSession
|
|
case enableWebAuthn
|
|
case environment
|
|
case expireInHours
|
|
case failedSigninFrozenTime
|
|
case failedSigninLimit
|
|
case favicon
|
|
case footerHtml
|
|
case forcedRedirectOrigin
|
|
case forgetUrl
|
|
case formBackgroundUrl
|
|
case formBackgroundUrlMobile
|
|
case formCss
|
|
case formCssMobile
|
|
case formOffset
|
|
case formSideHtml
|
|
case grantTypes
|
|
case headerHtml
|
|
case homepageUrl
|
|
case id
|
|
case ipRestriction
|
|
case ipWhitelist
|
|
case isShared
|
|
case logo
|
|
case name
|
|
case order
|
|
case orgChoiceMode
|
|
case organization
|
|
case organizationObj
|
|
case otherDomains
|
|
case owner
|
|
case project
|
|
case providers
|
|
case redirectUris
|
|
case refreshExpireInHours
|
|
case samlAttributes
|
|
case samlHashAlgorithm
|
|
case samlReplyUrl
|
|
case scopes
|
|
case signinHtml
|
|
case signinItems
|
|
case signinMethods
|
|
case signinUrl
|
|
case signupHtml
|
|
case signupItems
|
|
case signupUrl
|
|
case sslCert
|
|
case sslMode
|
|
case tags
|
|
case termsOfUse
|
|
case themeData
|
|
case title
|
|
case tokenAttributes
|
|
case tokenFields
|
|
case tokenFormat
|
|
case tokenSigningMethod
|
|
case type
|
|
case updatedAt
|
|
case upstreamHost
|
|
case useEmailAsSamlNameId
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(affiliationUrl, forKey: .affiliationUrl)
|
|
try container.encodeIfPresent(category, forKey: .category)
|
|
try container.encodeIfPresent(cert, forKey: .cert)
|
|
try container.encodeIfPresent(certObj, forKey: .certObj)
|
|
try container.encodeIfPresent(certPublicKey, forKey: .certPublicKey)
|
|
try container.encodeIfPresent(clientCert, forKey: .clientCert)
|
|
try container.encodeIfPresent(clientId, forKey: .clientId)
|
|
try container.encodeIfPresent(clientSecret, forKey: .clientSecret)
|
|
try container.encodeIfPresent(codeResendTimeout, forKey: .codeResendTimeout)
|
|
try container.encodeIfPresent(cookieExpireInHours, forKey: .cookieExpireInHours)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(customScopes, forKey: .customScopes)
|
|
try container.encodeIfPresent(defaultGroup, forKey: .defaultGroup)
|
|
try container.encodeIfPresent(deleted, forKey: .deleted)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(disableSamlAttributes, forKey: .disableSamlAttributes)
|
|
try container.encodeIfPresent(disableSignin, forKey: .disableSignin)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(domain, forKey: .domain)
|
|
try container.encodeIfPresent(enableAutoSignin, forKey: .enableAutoSignin)
|
|
try container.encodeIfPresent(enableCodeSignin, forKey: .enableCodeSignin)
|
|
try container.encodeIfPresent(enableExclusiveSignin, forKey: .enableExclusiveSignin)
|
|
try container.encodeIfPresent(enableLinkWithEmail, forKey: .enableLinkWithEmail)
|
|
try container.encodeIfPresent(enablePassword, forKey: .enablePassword)
|
|
try container.encodeIfPresent(enableSamlAssertionSignature, forKey: .enableSamlAssertionSignature)
|
|
try container.encodeIfPresent(enableSamlC14n10, forKey: .enableSamlC14n10)
|
|
try container.encodeIfPresent(enableSamlCompress, forKey: .enableSamlCompress)
|
|
try container.encodeIfPresent(enableSamlPostBinding, forKey: .enableSamlPostBinding)
|
|
try container.encodeIfPresent(enableSignUp, forKey: .enableSignUp)
|
|
try container.encodeIfPresent(enableSigninSession, forKey: .enableSigninSession)
|
|
try container.encodeIfPresent(enableWebAuthn, forKey: .enableWebAuthn)
|
|
try container.encodeIfPresent(environment, forKey: .environment)
|
|
try container.encodeIfPresent(expireInHours, forKey: .expireInHours)
|
|
try container.encodeIfPresent(failedSigninFrozenTime, forKey: .failedSigninFrozenTime)
|
|
try container.encodeIfPresent(failedSigninLimit, forKey: .failedSigninLimit)
|
|
try container.encodeIfPresent(favicon, forKey: .favicon)
|
|
try container.encodeIfPresent(footerHtml, forKey: .footerHtml)
|
|
try container.encodeIfPresent(forcedRedirectOrigin, forKey: .forcedRedirectOrigin)
|
|
try container.encodeIfPresent(forgetUrl, forKey: .forgetUrl)
|
|
try container.encodeIfPresent(formBackgroundUrl, forKey: .formBackgroundUrl)
|
|
try container.encodeIfPresent(formBackgroundUrlMobile, forKey: .formBackgroundUrlMobile)
|
|
try container.encodeIfPresent(formCss, forKey: .formCss)
|
|
try container.encodeIfPresent(formCssMobile, forKey: .formCssMobile)
|
|
try container.encodeIfPresent(formOffset, forKey: .formOffset)
|
|
try container.encodeIfPresent(formSideHtml, forKey: .formSideHtml)
|
|
try container.encodeIfPresent(grantTypes, forKey: .grantTypes)
|
|
try container.encodeIfPresent(headerHtml, forKey: .headerHtml)
|
|
try container.encodeIfPresent(homepageUrl, forKey: .homepageUrl)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(ipRestriction, forKey: .ipRestriction)
|
|
try container.encodeIfPresent(ipWhitelist, forKey: .ipWhitelist)
|
|
try container.encodeIfPresent(isShared, forKey: .isShared)
|
|
try container.encodeIfPresent(logo, forKey: .logo)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(order, forKey: .order)
|
|
try container.encodeIfPresent(orgChoiceMode, forKey: .orgChoiceMode)
|
|
try container.encodeIfPresent(organization, forKey: .organization)
|
|
try container.encodeIfPresent(organizationObj, forKey: .organizationObj)
|
|
try container.encodeIfPresent(otherDomains, forKey: .otherDomains)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(project, forKey: .project)
|
|
try container.encodeIfPresent(providers, forKey: .providers)
|
|
try container.encodeIfPresent(redirectUris, forKey: .redirectUris)
|
|
try container.encodeIfPresent(refreshExpireInHours, forKey: .refreshExpireInHours)
|
|
try container.encodeIfPresent(samlAttributes, forKey: .samlAttributes)
|
|
try container.encodeIfPresent(samlHashAlgorithm, forKey: .samlHashAlgorithm)
|
|
try container.encodeIfPresent(samlReplyUrl, forKey: .samlReplyUrl)
|
|
try container.encodeIfPresent(scopes, forKey: .scopes)
|
|
try container.encodeIfPresent(signinHtml, forKey: .signinHtml)
|
|
try container.encodeIfPresent(signinItems, forKey: .signinItems)
|
|
try container.encodeIfPresent(signinMethods, forKey: .signinMethods)
|
|
try container.encodeIfPresent(signinUrl, forKey: .signinUrl)
|
|
try container.encodeIfPresent(signupHtml, forKey: .signupHtml)
|
|
try container.encodeIfPresent(signupItems, forKey: .signupItems)
|
|
try container.encodeIfPresent(signupUrl, forKey: .signupUrl)
|
|
try container.encodeIfPresent(sslCert, forKey: .sslCert)
|
|
try container.encodeIfPresent(sslMode, forKey: .sslMode)
|
|
try container.encodeIfPresent(tags, forKey: .tags)
|
|
try container.encodeIfPresent(termsOfUse, forKey: .termsOfUse)
|
|
try container.encodeIfPresent(themeData, forKey: .themeData)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(tokenAttributes, forKey: .tokenAttributes)
|
|
try container.encodeIfPresent(tokenFields, forKey: .tokenFields)
|
|
try container.encodeIfPresent(tokenFormat, forKey: .tokenFormat)
|
|
try container.encodeIfPresent(tokenSigningMethod, forKey: .tokenSigningMethod)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
try container.encodeIfPresent(upstreamHost, forKey: .upstreamHost)
|
|
try container.encodeIfPresent(useEmailAsSamlNameId, forKey: .useEmailAsSamlNameId)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension IamApplication: Identifiable {}
|