TorbatYar/frontend/modules/communication/constants/permissions.ts
Mortezakoohjani 10c3c43a75 feat(communication): add SMS MVP frontend with governance artifacts.
Ship the full Communication portal (real SMS API, feature-locked future channels), BFF proxy, docs, snapshot, and phase handover.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 11:11:25 +03:30

28 lines
940 B
TypeScript

/** Mirrors backend app/permissions/definitions.py */
export const COMMUNICATION_PERMISSIONS = [
"communication.view",
"communication.manage",
"communication.providers.view",
"communication.providers.manage",
"communication.senders.view",
"communication.senders.manage",
"communication.templates.view",
"communication.templates.manage",
"communication.templates.approve",
"communication.contacts.view",
"communication.contacts.manage",
"communication.sources.view",
"communication.sources.manage",
"communication.messages.view",
"communication.messages.send",
"communication.messages.cancel",
"communication.queue.view",
"communication.queue.manage",
"communication.otp.request",
"communication.otp.verify",
"communication.webhooks.manage",
"communication.monitoring.view",
] as const;
export type CommunicationPermission = (typeof COMMUNICATION_PERMISSIONS)[number];