Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

49 lines
1.7 KiB
Swift

//
// IdentityView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct IdentityView: Sendable, Codable, ParameterConvertible, Hashable {
/** Enrollment is present only while the identity holds an un-used one-time token — on create, and on a listed identity that has not yet enrolled, so a mislaid JWT can be read again until it is spent or lapses. */
public var enrollment: EnrollmentView?
/** ID is the identity's fabric id — the key DELETE addresses. */
public var id: String?
/** Name is the identity's name within the org. */
public var name: String?
/** Roles are the identity's role attributes as the fabric holds them: the org's own \"org-<org>\" plus any org-scoped roles it was minted with. */
public var roles: [String]?
public init(enrollment: EnrollmentView? = nil, id: String? = nil, name: String? = nil, roles: [String]? = nil) {
self.enrollment = enrollment
self.id = id
self.name = name
self.roles = roles
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case enrollment
case id
case name
case roles
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(enrollment, forKey: .enrollment)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(roles, forKey: .roles)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension IdentityView: Identifiable {}