Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
<?php
declare(strict_types=1);
namespace App\Support\Requests\Webhook;
use App\Enums\Webhook\EventType;
use App\Enums\Webhook\Status;
use Illuminate\Validation\Rule;
/**
* Single source of the webhook rules shared by the web and API FormRequests
* and the MCP create and update tools.
*/
class WebhookRequestRules
{
/**
* @return array<string, mixed>
*/
public static function store(): array
{
return [
'endpoint' => ['required', 'url', 'max:255'],
'events' => ['required', 'array', 'min:1'],
'events.*' => ['string', Rule::enum(EventType::class)],
];
}
/**
* @return array<string, mixed>
*/
public static function update(): array
{
return [
'endpoint' => ['sometimes', 'url', 'max:255'],
'events' => ['sometimes', 'array', 'min:1'],
'events.*' => ['string', Rule::enum(EventType::class)],
'status' => ['sometimes', 'string', Rule::enum(Status::class)->only([Status::Enabled, Status::Disabled])],
];
}
}