{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/programmes-net/json-schema/programmes-net-id-decoder-decode-schema.json",
  "title": "id-decoder.decode",
  "description": "Detect each ID's format and take it apart (one ID per line, up to 200).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/programmes-net-encoders-decoders-api-openapi.yml#/components/schemas/id-decoder.decode",
  "type": "object",
  "properties": {
    "operation": {
      "const": "decode"
    },
    "input": {
      "type": "string",
      "description": "One or more IDs, one per line.",
      "maxLength": 8192
    },
    "options": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "description": "Force a format instead of detecting it from the shape.",
          "enum": [
            "auto",
            "uuid",
            "ulid",
            "typeid",
            "ksuid",
            "objectid",
            "snowflake",
            "cuid2"
          ],
          "default": "auto"
        },
        "epoch": {
          "type": "string",
          "description": "Which epoch to read Snowflake IDs with.",
          "enum": [
            "twitter",
            "discord"
          ],
          "default": "discord"
        }
      }
    }
  },
  "required": [
    "operation"
  ]
}