Files
flynn/apps/companion/ios/CompanionBootstrap.swift
T

33 lines
690 B
Swift

import Foundation
// Reference iOS bootstrap model for integrating with Flynn gateway runtime.
// Wire APNs token refresh to node.push_token.set and app lifecycle to heartbeat publishing.
struct CompanionBootstrap: Codable {
let schemaVersion: Int
let generatedAt: String
let gateway: Gateway
let node: Node
let runtime: Runtime
}
struct Gateway: Codable {
let url: String
let token: String?
}
struct Node: Codable {
let nodeId: String
let role: String
let platform: String
let capabilities: [String]
}
struct Runtime: Codable {
let heartbeatSeconds: Int
let handoffTimeoutMs: Int
let autoReconnect: Bool
}
// Generated for node: ios-reference-shell (ios)