# GENERATED. Do not change this line unless the file contains project specific changes.
# DO NOT EDIT THIS FILE. Changes are overwritten on the next build.
# Owner command: archetype.registry.build
# Edit instead: the archetype.registry.build generator source (not this file).
# Regenerate:   pnpm exec werkstatt run archetype.registry.build
id: transparency
displayName: Transparency
version: 1.3.0
semanticRole: transparency
description: |
  Transparency disclosure section. RFC-0103 bodyKind: list with optional report link.
expectedIntents:
  - signal-transparency
  - build-trust
  - capture-lead
expectedIndustryFit:
  - non-profit
layoutHint: horizontal-row
bodyKind: list
propsSchema:
  $shape: zod
  compose:
    - section-visual
    - section-header
    - body-list
  shape: |
    z.object({
      reportLinkLabel: z.string().optional(),
      reportLinkHref: z.string().optional(),
      cta: z.object({
        label: z.string().min(2),
        target: z.discriminatedUnion("kind", [
          z.object({
            kind: z.literal("internal"),
            pageId: z.string().min(1),
            query: z.record(z.string().regex(/^[a-zA-Z0-9_-]{1,32}$/), z.string().regex(/^[a-zA-Z0-9_%.-]{0,128}$/)).optional(),
            anchor: z.string().optional(),
          }).strict(),
          z.object({
            kind: z.literal("external"),
            href: z.string().min(1),
            rel: z.string().optional(),
          }).strict(),
          z.object({
            kind: z.literal("anchor"),
            anchor: z.string().min(1),
          }).strict(),
        ]),
      }).optional(),
    }).strict()
acceptedCosmicNames:
  - Tethys
constraints: {}
