Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

182 lines
7.1 KiB
Swift

//
// CaptureEvent.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CaptureEvent: Sendable, Codable, ParameterConvertible, Hashable {
public var anonymousId: String?
public var channel: String?
public var clip: ClipBody?
public var currency: String?
public var distinctId: String?
public var environment: String?
public var error: Exception?
public var event: String?
public var groupId: String?
public var groupType: String?
public var kind: String?
public var level: String?
public var library: String?
public var libraryVersion: String?
public var log: LogBody?
public var messageId: String?
public var metric: MetricBody?
public var path: String?
public var personId: String?
public var product: String?
public var productId: String?
public var properties: [String: JSONValue]?
public var quantity: Int?
public var refCode: String?
public var referrer: String?
public var release: String?
public var resource: String?
public var revenue: Double?
public var service: String?
public var sessionId: String?
public var signupWeek: String?
public var site: String?
public var span: SpanBody?
public var spanId: String?
public var timestamp: String?
public var traceId: String?
public var type: String?
public var url: String?
public var utm: UTM?
public init(anonymousId: String? = nil, channel: String? = nil, clip: ClipBody? = nil, currency: String? = nil, distinctId: String? = nil, environment: String? = nil, error: Exception? = nil, event: String? = nil, groupId: String? = nil, groupType: String? = nil, kind: String? = nil, level: String? = nil, library: String? = nil, libraryVersion: String? = nil, log: LogBody? = nil, messageId: String? = nil, metric: MetricBody? = nil, path: String? = nil, personId: String? = nil, product: String? = nil, productId: String? = nil, properties: [String: JSONValue]? = nil, quantity: Int? = nil, refCode: String? = nil, referrer: String? = nil, release: String? = nil, resource: String? = nil, revenue: Double? = nil, service: String? = nil, sessionId: String? = nil, signupWeek: String? = nil, site: String? = nil, span: SpanBody? = nil, spanId: String? = nil, timestamp: String? = nil, traceId: String? = nil, type: String? = nil, url: String? = nil, utm: UTM? = nil) {
self.anonymousId = anonymousId
self.channel = channel
self.clip = clip
self.currency = currency
self.distinctId = distinctId
self.environment = environment
self.error = error
self.event = event
self.groupId = groupId
self.groupType = groupType
self.kind = kind
self.level = level
self.library = library
self.libraryVersion = libraryVersion
self.log = log
self.messageId = messageId
self.metric = metric
self.path = path
self.personId = personId
self.product = product
self.productId = productId
self.properties = properties
self.quantity = quantity
self.refCode = refCode
self.referrer = referrer
self.release = release
self.resource = resource
self.revenue = revenue
self.service = service
self.sessionId = sessionId
self.signupWeek = signupWeek
self.site = site
self.span = span
self.spanId = spanId
self.timestamp = timestamp
self.traceId = traceId
self.type = type
self.url = url
self.utm = utm
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case anonymousId
case channel
case clip
case currency
case distinctId
case environment
case error
case event
case groupId
case groupType
case kind
case level
case library
case libraryVersion
case log
case messageId
case metric
case path
case personId
case product
case productId
case properties
case quantity
case refCode
case referrer
case release
case resource
case revenue
case service
case sessionId
case signupWeek
case site
case span
case spanId
case timestamp
case traceId
case type
case url
case utm
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(anonymousId, forKey: .anonymousId)
try container.encodeIfPresent(channel, forKey: .channel)
try container.encodeIfPresent(clip, forKey: .clip)
try container.encodeIfPresent(currency, forKey: .currency)
try container.encodeIfPresent(distinctId, forKey: .distinctId)
try container.encodeIfPresent(environment, forKey: .environment)
try container.encodeIfPresent(error, forKey: .error)
try container.encodeIfPresent(event, forKey: .event)
try container.encodeIfPresent(groupId, forKey: .groupId)
try container.encodeIfPresent(groupType, forKey: .groupType)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(level, forKey: .level)
try container.encodeIfPresent(library, forKey: .library)
try container.encodeIfPresent(libraryVersion, forKey: .libraryVersion)
try container.encodeIfPresent(log, forKey: .log)
try container.encodeIfPresent(messageId, forKey: .messageId)
try container.encodeIfPresent(metric, forKey: .metric)
try container.encodeIfPresent(path, forKey: .path)
try container.encodeIfPresent(personId, forKey: .personId)
try container.encodeIfPresent(product, forKey: .product)
try container.encodeIfPresent(productId, forKey: .productId)
try container.encodeIfPresent(properties, forKey: .properties)
try container.encodeIfPresent(quantity, forKey: .quantity)
try container.encodeIfPresent(refCode, forKey: .refCode)
try container.encodeIfPresent(referrer, forKey: .referrer)
try container.encodeIfPresent(release, forKey: .release)
try container.encodeIfPresent(resource, forKey: .resource)
try container.encodeIfPresent(revenue, forKey: .revenue)
try container.encodeIfPresent(service, forKey: .service)
try container.encodeIfPresent(sessionId, forKey: .sessionId)
try container.encodeIfPresent(signupWeek, forKey: .signupWeek)
try container.encodeIfPresent(site, forKey: .site)
try container.encodeIfPresent(span, forKey: .span)
try container.encodeIfPresent(spanId, forKey: .spanId)
try container.encodeIfPresent(timestamp, forKey: .timestamp)
try container.encodeIfPresent(traceId, forKey: .traceId)
try container.encodeIfPresent(type, forKey: .type)
try container.encodeIfPresent(url, forKey: .url)
try container.encodeIfPresent(utm, forKey: .utm)
}
}