diff --git a/src/schemas/nfc.ts b/src/schemas/nfc.ts index f46ef29..fc012aa 100644 --- a/src/schemas/nfc.ts +++ b/src/schemas/nfc.ts @@ -1,11 +1,17 @@ import Joi from "joi"; +/** + * @see https://developer.apple.com/documentation/walletpasses/pass/nfc + */ + export interface NFC { message: string; - encryptionPublicKey?: string; + encryptionPublicKey: string; + requiresAuthentication?: boolean; } export const NFC = Joi.object().keys({ message: Joi.string().required().max(64), - encryptionPublicKey: Joi.string(), + encryptionPublicKey: Joi.string().required(), + requiresAuthentication: Joi.boolean(), });