geesawra.industries/hydraulophone
An unofficial YouTube Music app for iPhone, iPad, and Mac.
0
0
/// Ephemeral proof values returned by an app-owned proof-of-origin worker.
///
/// Core keeps these values in memory only. They are not Codable, persisted, or
/// included in diagnostics.
public struct PlayerProofTokens: Sendable, CustomStringConvertible, CustomDebugStringConvertible {
public let player: String
public let streaming: String
public init(player: String, streaming: String) {
self.player = player
self.streaming = streaming
}
public var description: String {
"PlayerProofTokens(player: <redacted>, streaming: <redacted>)"
}
public var debugDescription: String {
description
}
}
/// Supplies proof values for the explicitly opt-in high-quality probe.
///
/// The provider owns the browser/WebView implementation. Core only supplies
/// the visitor and video identity needed for one bounded request.
public protocol PlayerProofOfOriginProviding: Sendable {
func tokens(visitorData: String, videoID: String) async throws -> PlayerProofTokens
func invalidate() async
}
/// Safe classifications for proof values rejected before they reach a
/// request body or media URL.
public enum PlayerProofTokenError: Error, Equatable, Sendable {
case empty
case malformed
case tooLarge
}