import { Schema } from "effect";
import { Locale } from "../../../../../share/locale.js";
export const type = "com.shwfed.actions.item.markdown";
export const compatibilityDate = "2026-05-21";
export const metadata = {
  name: "\u5185\u8054 Markdown",
  icon: "fluent:markdown-20-regular"
};
export function schema(_configure) {
  return Schema.Struct({
    id: Schema.UUID.annotations({ description: "Markdown \u9879\u552F\u4E00\u6807\u8BC6" }),
    // Present when the item sits at group level; absent when it lives as a
    // dropdown sub-item (the parent is the dropdown itself).
    groupId: Schema.optional(Schema.UUID.annotations({ description: "\u6240\u5C5E\u6309\u94AE\u7EC4\u6807\u8BC6" })),
    type: Schema.Literal(type),
    compatibilityDate: Schema.Literal(compatibilityDate),
    name: Schema.String.annotations({
      title: "\u5185\u90E8\u540D\u79F0",
      description: "\u4EC5\u7528\u4E8E\u7F16\u8F91\u5668\u5185\u8BC6\u522B\u8BE5 Markdown \u9879\uFF0C\u4E0D\u4F1A\u5C55\u793A\u7ED9\u6700\u7EC8\u7528\u6237"
    }),
    content: Locale.annotations({
      title: "\u5185\u5BB9",
      description: "\u5185\u8054 Markdown \u5185\u5BB9\uFF0C\u4E0E\u6309\u94AE\u5E76\u6392\u5C55\u793A\uFF0C\u652F\u6301\u672C\u5730\u5316"
    })
  }).annotations({
    title: "MarkdownItem",
    description: "\u6309\u94AE\u7EC4\u5185\u7684\u5185\u8054 Markdown \u8282\u70B9"
  });
}
