API والويبهوكس
قاعدة البيانات: scriptforge.sqlite في جذر المشروع · العنوان الحالي: …
الويبهوكس
عند أي إنشاء أو توليد، يُرسل POST بصيغة { event, firedAt, data } لكل رابط مشترك في الحدث (أو في * للكل).
لا توجد اشتراكات بعد.
المشاريع
projects webhook event: projects| GET | /api/projects | كل المشاريع | |
| POST | /api/projects | إنشاء مشروع {topic, audience, language, tone, videoLength, goal} | |
| GET | /api/projects/:id | مشروع بسكريبتاته | |
| PUT | /api/projects/:id | تعديل مشروع | |
| DELETE | /api/projects/:id | حذف مشروع | |
السكريبتات
scripts webhook event: scripts| POST | /api/projects/:id/generate | توليد سكريبت للمشروع (LLM) | |
| PUT | /api/scripts/:id | تعديل سكريبت | |
| GET | /api/projects/:id/export | تصدير Markdown | |
الأفكار
ideas webhook event: ideas| GET | /api/ideas | كل الأفكار | |
| POST | /api/ideas/generate | توليد أفكار {niche, audience, count} (LLM) | |
| POST | /api/ideas/:id/to-project | تحويل فكرة لمشروع | |
| DELETE | /api/ideas/:id | حذف فكرة | |
البرومبتات
prompts webhook event: prompts| GET | /api/prompts | كل البرومبتات | |
| POST | /api/prompts/generate | بناء برومبت {goal, role, context, outputFormat} (LLM) | |
| DELETE | /api/prompts/:id | حذف برومبت | |
القصص والمشاهد
stories + story_scenes webhook event: stories| GET | /api/stories | كل القصص مع عدد المشاهد | |
| POST | /api/stories/generate | توليد قصة + storyboard {content, character, storyType, tone, duration, ...} (LLM) | |
| GET | /api/stories/:id | قصة بمشاهدها | |
| DELETE | /api/stories/:id | حذف قصة ومشاهدها | |
| PUT | /api/scenes/:id | تعديل مشهد (المرحلة، البرومبت، التعليق…) | |
النصائح القانونية
legal_tips webhook event: legal-tips| GET | /api/legal-tips | كل النصائح | |
| POST | /api/legal-tips | إضافة نصيحة {title, content, source, category} | |
| PUT | /api/legal-tips/:id | تعديل نصيحة | |
| DELETE | /api/legal-tips/:id | حذف نصيحة | |
تلميحات الأدوات
tool_hints| GET | /api/tool-hints | كل التلميحات | |
الإعدادات
settings| GET | /api/settings | الإعدادات الحالية | |
| PUT | /api/settings | تعديل {provider, baseUrl, model, ...} | |
الويبهوكس
webhooks| GET | /api/webhooks | كل الاشتراكات | |
| POST | /api/webhooks | اشتراك جديد {event, url} | |
| PUT | /api/webhooks/:id | تفعيل/تعطيل أو تعديل | |
| DELETE | /api/webhooks/:id | حذف اشتراك | |