From f42fe0280de950a9c734b57fa4195d1437848d7a Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Tue, 7 Jun 2022 17:03:29 +0200 Subject: [PATCH] Add admin request type --- Sources/PushAPI/AdminRequest.swift | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Sources/PushAPI/AdminRequest.swift diff --git a/Sources/PushAPI/AdminRequest.swift b/Sources/PushAPI/AdminRequest.swift new file mode 100644 index 0000000..fa6b1c8 --- /dev/null +++ b/Sources/PushAPI/AdminRequest.swift @@ -0,0 +1,13 @@ +import Foundation + +/** + Authentication used to request application changes by an administrator + */ +public struct AdminRequest: Codable { + + /// The SHA-256 hash of the admin key + public let keyHash: Data + + /// The application id with which the request is associated + public let application: ApplicationId +}