<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\ApiFormRequest;

final class AgentRoleUpdateRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    /** @return array<string, mixed> */
    public function rules(): array
    {
        return [
            'name' => ['sometimes', 'string', 'max:128'],
            'description' => ['nullable', 'string', 'max:65535'],
            'status' => ['sometimes', 'integer', 'in:0,1'],
        ];
    }
}
