<?php

declare(strict_types=1);

namespace PHPMax\Api\Auth;

use PHPMax\Support\Model;

class RemoveTwoFactorPayload extends Model
{
     
    public $trackId;
     
    public $remove2fa;
     
    public $expectedCapabilities = [];

    protected static function schema(): array
    {
        return [
            'trackId' => ['type' => 'string', 'required' => true],
            'remove2fa' => ['type' => 'bool', 'default' => true],
            'expectedCapabilities' => ['type' => 'list<int>', 'default' => static function (): array {
                return [TwoFactorAction::REMOVE_2FA];
            }],
        ];
    }
}
