/**
 * @openapi
 * /api/message_recipients:
 *   get:
 *     tags: [Message Recipients]
 *     summary: List message recipients (tenant-scoped)
 *     description: Requires READ_MESSAGE_RECIPIENTS.
 *     responses:
 *       200:
 *         description: List payload.
 *         content:
 *           application/json:
 *             schema: { $ref: '#/components/schemas/ListResponse' }
 *       401: { $ref: '#/components/responses/UnauthorizedError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *   post:
 *     tags: [Message Recipients]
 *     summary: Create a message recipients record
 *     description: Requires CREATE_MESSAGE_RECIPIENTS.
 *     responses:
 *       200: { description: Created. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/message_recipients/count:
 *   get:
 *     tags: [Message Recipients]
 *     summary: Count message recipients
 *     description: Requires READ_MESSAGE_RECIPIENTS.
 *     responses:
 *       200: { description: Count. }
 * /api/message_recipients/autocomplete:
 *   get:
 *     tags: [Message Recipients]
 *     summary: Autocomplete message recipients
 *     description: Requires READ_MESSAGE_RECIPIENTS.
 *     responses:
 *       200: { description: Autocomplete results. }
 * /api/message_recipients/bulk-import:
 *   post:
 *     tags: [Message Recipients]
 *     summary: Bulk-import message recipients from CSV
 *     description: Requires CREATE_MESSAGE_RECIPIENTS.
 *     responses:
 *       200: { description: Imported. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/message_recipients/deleteByIds:
 *   post:
 *     tags: [Message Recipients]
 *     summary: Delete multiple message recipients records
 *     description: Requires DELETE_MESSAGE_RECIPIENTS.
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/message_recipients/{id}:
 *   get:
 *     tags: [Message Recipients]
 *     summary: Get a message recipients record by id
 *     description: Requires READ_MESSAGE_RECIPIENTS.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: The record. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *       404: { description: Not found. }
 *   put:
 *     tags: [Message Recipients]
 *     summary: Update a message recipients record
 *     description: Requires UPDATE_MESSAGE_RECIPIENTS.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Updated. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *   delete:
 *     tags: [Message Recipients]
 *     summary: Delete a message recipients record
 *     description: Requires DELETE_MESSAGE_RECIPIENTS.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 */
import controller from '@/api/controllers/message_recipients.controller';
import { createCrudRouter } from '@/api/http/crud-router';

export default createCrudRouter(controller, { permission: 'message_recipients' });
