Add admin request type
This commit is contained in:
parent
c57c8f2084
commit
f42fe0280d
13
Sources/PushAPI/AdminRequest.swift
Normal file
13
Sources/PushAPI/AdminRequest.swift
Normal file
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user