xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / Sources / XKit / GrandSlam / Lookup / GrandSlamEndpoints.swift
GrandSlamEndpoints.swift23 lines · 529 BRaw
| 1 | // |
| 2 | // GrandSlamEndpoints.swift |
| 3 | // XKit |
| 4 | // |
| 5 | // Created by Kabir Oberai on 19/11/19. |
| 6 | // Copyright © 2019 Kabir Oberai. All rights reserved. |
| 7 | // |
| 8 | |
| 9 | import Foundation |
| 10 | |
| 11 | struct GrandSlamEndpoints: Decodable { |
| 12 | let gsService: String |
| 13 | let secondaryAuth: String |
| 14 | let trustedDeviceSecondaryAuth: String |
| 15 | let validateCode: String |
| 16 | let midStartProvisioning: String |
| 17 | let midFinishProvisioning: String |
| 18 | } |
| 19 | |
| 20 | enum GrandSlamEndpoint: Sendable { |
| 21 | case lookup(KeyPath<GrandSlamEndpoints, String> & Sendable) |
| 22 | case url(URL) |
| 23 | } |