// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.

/**
 * Auto-generated by 'os i18n extract' for locale 'en'.
 * Edit translations in place; re-run extract (with --merge) to fill new gaps.
 * Do not hand-edit the structure — only the leaf string values.
 */

import type { TranslationData } from '@objectstack/spec/system';

export const enObjects: NonNullable<TranslationData['objects']> = {
  sys_audit_log: {
    label: "Audit Log",
    pluralLabel: "Audit Logs",
    description: "Immutable audit trail for platform events",
    fields: {
      created_at: {
        label: "Timestamp"
      },
      action: {
        label: "Action",
        help: "Action type (snake_case)",
        options: {
          create: "create",
          update: "update",
          delete: "delete",
          restore: "restore",
          login: "login",
          logout: "logout",
          permission_change: "permission_change",
          config_change: "config_change",
          export: "export",
          import: "import"
        }
      },
      user_id: {
        label: "Actor",
        help: "User who performed the action (null for system actions)"
      },
      object_name: {
        label: "Object",
        help: "Target object (e.g. sys_user, project_task)"
      },
      record_id: {
        label: "Record ID",
        help: "ID of the affected record"
      },
      old_value: {
        label: "Old Value",
        help: "JSON-serialized previous state"
      },
      new_value: {
        label: "New Value",
        help: "JSON-serialized new state"
      },
      ip_address: {
        label: "IP Address"
      },
      user_agent: {
        label: "User Agent"
      },
      tenant_id: {
        label: "Tenant",
        help: "Tenant context for multi-tenant isolation"
      },
      metadata: {
        label: "Metadata",
        help: "JSON-serialized additional context"
      },
      id: {
        label: "Audit Log ID"
      }
    },
    _views: {
      recent: {
        label: "Recent"
      },
      writes_only: {
        label: "Writes"
      },
      auth_events: {
        label: "Auth"
      },
      config_changes: {
        label: "Config"
      },
      all_events: {
        label: "All"
      }
    }
  },
  sys_activity: {
    label: "Activity",
    pluralLabel: "Activities",
    description: "Recent activity stream entries (lightweight, denormalized)",
    fields: {
      id: {
        label: "Activity ID"
      },
      timestamp: {
        label: "Timestamp"
      },
      type: {
        label: "Type",
        options: {
          created: "created",
          updated: "updated",
          deleted: "deleted",
          commented: "commented",
          mentioned: "mentioned",
          shared: "shared",
          assigned: "assigned",
          completed: "completed",
          login: "login",
          logout: "logout",
          system: "system"
        }
      },
      summary: {
        label: "Summary",
        help: "Human-readable one-line summary"
      },
      actor_id: {
        label: "Actor"
      },
      actor_name: {
        label: "Actor Name"
      },
      actor_avatar_url: {
        label: "Actor Avatar"
      },
      object_name: {
        label: "Object",
        help: "Target object short name (e.g. account, sys_user)"
      },
      record_id: {
        label: "Record ID"
      },
      record_label: {
        label: "Record Label",
        help: "Display label of the target record at write time"
      },
      url: {
        label: "URL",
        help: "Optional deep-link to the activity target"
      },
      environment_id: {
        label: "Project",
        help: "Environment context (multi-environment deployments)"
      },
      metadata: {
        label: "Metadata",
        help: "JSON-serialized additional context"
      }
    }
  },
  sys_comment: {
    label: "Comment",
    pluralLabel: "Comments",
    description: "Threaded comments attached to records via thread_id",
    fields: {
      id: {
        label: "Comment ID"
      },
      thread_id: {
        label: "Thread",
        help: "Thread identifier — conventionally `{object}:{record_id}` (e.g. `sys_user:abc123`)"
      },
      parent_id: {
        label: "Parent Comment",
        help: "Optional parent comment for nested replies"
      },
      reply_count: {
        label: "Reply Count"
      },
      author_id: {
        label: "Author"
      },
      author_name: {
        label: "Author Name"
      },
      author_avatar_url: {
        label: "Author Avatar"
      },
      body: {
        label: "Body",
        help: "Comment text (Markdown supported)"
      },
      mentions: {
        label: "Mentions",
        help: "JSON array of @mention objects"
      },
      reactions: {
        label: "Reactions",
        help: "JSON array of emoji reaction objects"
      },
      is_edited: {
        label: "Edited"
      },
      edited_at: {
        label: "Edited At"
      },
      visibility: {
        label: "Visibility",
        options: {
          public: "public",
          internal: "internal",
          private: "private"
        }
      },
      created_at: {
        label: "Created At"
      },
      updated_at: {
        label: "Updated At"
      }
    }
  }
};
