from django.urls import path
from core.security_views import (
    StaffDashboardView, StaffUsersView, StaffUserDetailView,
    StaffSuspendUserView, StaffUnsuspendUserView, StaffChangeRoleView,
    StaffDeleteUserView, StaffAuditLogView, StaffSecurityEventsView,
    StaffSecurityEventsExportView, StaffSettingsView, StaffAuditLogExportView,
    StaffAuditChainVerifyView,
    PublicLegalDocumentView,
    StaffLegalDocumentListView,
    StaffLegalDocumentDetailView,
    StaffLegalDocumentPublishView,
)

urlpatterns = [
    path('staff/dashboard/', StaffDashboardView.as_view(), name='staff_dashboard'),
    path('staff/users/', StaffUsersView.as_view(), name='staff_users'),
    path('staff/users/<int:pk>/', StaffUserDetailView.as_view(), name='staff_user_detail'),
    path('staff/users/<int:pk>/suspend/', StaffSuspendUserView.as_view(), name='staff_user_suspend'),
    path('staff/users/<int:pk>/unsuspend/', StaffUnsuspendUserView.as_view(), name='staff_user_unsuspend'),
    path('staff/users/<int:pk>/role/', StaffChangeRoleView.as_view(), name='staff_user_role'),
    path('staff/users/<int:pk>/delete/', StaffDeleteUserView.as_view(), name='staff_user_delete'),
    path('staff/audit-log/', StaffAuditLogView.as_view(), name='staff_audit_log'),
    path('staff/audit-log/export/', StaffAuditLogExportView.as_view(), name='staff_audit_log_export'),
    path('staff/audit-log/verify/', StaffAuditChainVerifyView.as_view(), name='staff_audit_log_verify'),
    path('staff/security/', StaffSecurityEventsView.as_view(), name='staff_security_events'),
    path('staff/security/export/', StaffSecurityEventsExportView.as_view(), name='staff_security_events_export'),
    path('staff/settings/', StaffSettingsView.as_view(), name='staff_settings'),
    # Legal Documents (Policies)
    path('policies/documents/public/', PublicLegalDocumentView.as_view(), name='public_legal_document'),
    path('staff/policies/documents/', StaffLegalDocumentListView.as_view(), name='staff_legal_documents'),
    path('staff/policies/documents/<int:pk>/', StaffLegalDocumentDetailView.as_view(), name='staff_legal_document_detail'),
    path('staff/policies/documents/<int:pk>/publish/', StaffLegalDocumentPublishView.as_view(), name='staff_legal_document_publish'),
]
