{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/speakeroo-app/json-schema/speakeroo-app-list-sessions-response-schema.json",
  "title": "ListSessionsResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/speakeroo-app-openapi.json#/components/schemas/ListSessionsResponse",
  "type": "object",
  "properties": {
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "sessions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "analysis": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "coaching": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "deliveryMoments": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "description": {
                                  "type": "string"
                                },
                                "excerpt": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "sentiment": {
                                  "type": "string",
                                  "enum": [
                                    "strength",
                                    "improvement"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "emphasis",
                                    "effective_pause",
                                    "missed_pause",
                                    "rush",
                                    "slow_deliberate",
                                    "flat_spot",
                                    "vocal_contrast",
                                    "energy_build",
                                    "warmth",
                                    "tension"
                                  ]
                                }
                              },
                              "required": [
                                "description",
                                "excerpt",
                                "label",
                                "sentiment",
                                "type"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "feedback": {
                            "type": "object",
                            "properties": {
                              "delivery": {
                                "type": "string"
                              },
                              "rhetoric": {
                                "type": "string"
                              },
                              "weakWords": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "delivery",
                              "rhetoric",
                              "weakWords"
                            ],
                            "additionalProperties": false
                          },
                          "rhetoricalDevices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "device": {
                                  "type": "string",
                                  "enum": [
                                    "rhetorical_question",
                                    "anaphora",
                                    "epistrophe",
                                    "epizeuxis",
                                    "triad",
                                    "antithesis",
                                    "climax",
                                    "metaphor",
                                    "simile",
                                    "hyperbole",
                                    "personification",
                                    "alliteration"
                                  ]
                                },
                                "effect": {
                                  "type": "string"
                                },
                                "excerpt": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "device",
                                "effect",
                                "excerpt"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "weakWords": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "hedging",
                                    "minimizer",
                                    "permission_seeking",
                                    "apologetic",
                                    "excessive_qualifier"
                                  ]
                                },
                                "count": {
                                  "type": "number",
                                  "description": "How many times it was said"
                                },
                                "suggestion": {
                                  "type": "string",
                                  "description": "A firmer way to say it; empty means drop the word"
                                },
                                "text": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "category",
                                "count",
                                "suggestion",
                                "text"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "deliveryMoments",
                          "feedback",
                          "rhetoricalDevices",
                          "weakWords"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Weak and filler words, rhetorical devices and delivery/rhetoric feedback"
                  },
                  "delivery": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "fillerWordsPerMinute": {
                            "type": "number"
                          },
                          "pace": {
                            "type": "string",
                            "enum": [
                              "slow",
                              "steady",
                              "fast",
                              "very_fast"
                            ]
                          },
                          "pausesPerMinute": {
                            "type": "number",
                            "description": "Silences of a second or more"
                          },
                          "pitch": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "medianHz": {
                                    "type": "number"
                                  },
                                  "rangeSemitones": {
                                    "type": "number",
                                    "description": "Spread between the 10th and 90th percentile pitch"
                                  }
                                },
                                "required": [
                                  "medianHz",
                                  "rangeSemitones"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "vocabularyDiversity": {
                            "type": "number",
                            "description": "Distinct-word share, 0-100"
                          },
                          "vocalExpression": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "level": {
                                    "type": "string",
                                    "enum": [
                                      "monotone",
                                      "flat",
                                      "conversational",
                                      "expressive",
                                      "dynamic"
                                    ]
                                  },
                                  "note": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "level",
                                  "note"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "wordsPerMinute": {
                            "type": "object",
                            "properties": {
                              "average": {
                                "type": "number"
                              },
                              "median": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "average",
                              "median"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "pace",
                          "pausesPerMinute",
                          "pitch",
                          "vocabularyDiversity",
                          "vocalExpression",
                          "wordsPerMinute"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Pace, fillers, pauses, pitch and vocal expression, measured from the audio"
                  },
                  "overallScore": {
                    "description": "1-10",
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "rubric": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "areas": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "area": {
                                  "type": "string",
                                  "enum": [
                                    "pacing",
                                    "coherence",
                                    "vocabulary",
                                    "grammar",
                                    "pronunciation",
                                    "engagement",
                                    "accuracy"
                                  ]
                                },
                                "description": {
                                  "type": "string"
                                },
                                "recommendation": {
                                  "type": "string"
                                },
                                "score": {
                                  "type": "number",
                                  "description": "1-10"
                                },
                                "strands": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "evidence": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "score": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "evidence",
                                      "name",
                                      "score"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "area",
                                "description",
                                "examples",
                                "recommendation",
                                "score",
                                "strands"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "summary": {
                            "type": "object",
                            "properties": {
                              "improvements": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "strengths": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "improvements",
                              "strengths"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "areas",
                          "summary"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A 1-10 score per area of the Speakeroo rubric, with feedback and examples"
                  },
                  "skillLevel": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "beginner",
                          "intermediate",
                          "advanced",
                          "expert"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "coaching",
                  "delivery",
                  "overallScore",
                  "rubric",
                  "skillLevel"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The feedback the session page shows. null until the session is completed, or while the learner's class holds it back for their coach."
          },
          "completedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "durationSeconds": {
            "type": [
              "number",
              "null"
            ]
          },
          "error": {
            "description": "Why the session failed, when status is failed",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "impromptu",
              "converse",
              "shadow",
              "recording",
              "read-aloud",
              "listen-and-speak"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "app",
              "api",
              "coach_live"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "completed",
              "failed"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "transcript": {
            "description": "The learner's words, once transcribed",
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "description": "The session on speakeroo.app"
          }
        },
        "required": [
          "analysis",
          "completedAt",
          "createdAt",
          "durationSeconds",
          "error",
          "id",
          "mode",
          "source",
          "status",
          "title",
          "transcript",
          "url"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "nextCursor",
    "sessions"
  ],
  "additionalProperties": false
}