<?php

namespace App\Http\Requests\AI;

use Illuminate\Foundation\Http\FormRequest;

class StoreKnowledgeSnippetRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'type' => ['required', 'string', 'in:shipping_policy,payment_policy,return_policy,pricing_rules,brand_tone,faq,forbidden_claims'],
            'title' => ['required', 'string', 'max:255'],
            'content_text' => ['required', 'string', 'max:10000'],
            'language_code' => ['nullable', 'string', 'in:en,ar'],
            'status' => ['nullable', 'string', 'in:active,draft,archived'],
        ];
    }
}
