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.
58 lines
2.0 KiB
Swift
58 lines
2.0 KiB
Swift
//
|
|
// EsignEvent.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct EsignEvent: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when it happened, in unix milliseconds. */
|
|
public var createdAt: Int64?
|
|
public var data: JSONValue?
|
|
/** Email is the email of whoever caused it, null for an event with no actor — the sender's own calls are recorded without one. */
|
|
public var email: String?
|
|
/** ID is the entry id. */
|
|
public var id: String?
|
|
/** Name is the name of whoever caused it, null when it was not recorded. */
|
|
public var name: String?
|
|
/** Type is what happened: DOCUMENT_CREATED, RECIPIENT_CREATED, FIELD_CREATED, DOCUMENT_SENT, DOCUMENT_OPENED, DOCUMENT_FIELD_INSERTED, DOCUMENT_RECIPIENT_COMPLETED, DOCUMENT_RECIPIENT_REJECTED or DOCUMENT_COMPLETED. */
|
|
public var type: String?
|
|
|
|
public init(createdAt: Int64? = nil, data: JSONValue? = nil, email: String? = nil, id: String? = nil, name: String? = nil, type: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.data = data
|
|
self.email = email
|
|
self.id = id
|
|
self.name = name
|
|
self.type = type
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case data
|
|
case email
|
|
case id
|
|
case name
|
|
case type
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(data, forKey: .data)
|
|
try container.encodeIfPresent(email, forKey: .email)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension EsignEvent: Identifiable {}
|