mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
18 lines
392 B
TypeScript
18 lines
392 B
TypeScript
import Joi from "joi";
|
|
|
|
/**
|
|
* @see https://developer.apple.com/documentation/walletpasses/pass/nfc
|
|
*/
|
|
|
|
export interface NFC {
|
|
message: string;
|
|
encryptionPublicKey: string;
|
|
requiresAuthentication?: boolean;
|
|
}
|
|
|
|
export const NFC = Joi.object<NFC>().keys({
|
|
message: Joi.string().required().max(64),
|
|
encryptionPublicKey: Joi.string().required(),
|
|
requiresAuthentication: Joi.boolean(),
|
|
});
|