changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "type": "string"
+ },
+ "brand": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "description": "The brand's website, or empty when none is set.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "url"
+ ],
+ "type": "object"
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "draft": {
+ "additionalProperties": false,
+ "description": "Set once drafting starts.",
+ "properties": {
+ "busy": {
+ "description": "Sections are still being written; poll get_page.",
+ "type": "boolean"
+ },
+ "failing_checks": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "label",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "grade": {
+ "description": "The draft's quality grade, A-F; empty until graded.",
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "summary": {
+ "type": "string"
+ },
+ "unsupported_claims": {
+ "description": "Sentences with no evidence behind them.",
+ "type": "integer"
+ },
+ "version": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "status",
+ "version",
+ "busy",
+ "grade",
+ "summary",
+ "unsupported_claims",
+ "failing_checks"
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "interview": {
+ "additionalProperties": false,
+ "properties": {
+ "questions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "answer": {
+ "type": "string"
+ },
+ "kind": {
+ "description": "number, process, or example.",
+ "type": "string"
+ },
+ "question": {
+ "type": "string"
+ },
+ "question_id": {
+ "description": "Pass to answer_page_questions.",
+ "type": "string"
+ },
+ "status": {
+ "description": "pending, answered, or skipped.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "question_id",
+ "kind",
+ "question",
+ "status",
+ "answer"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "status": {
+ "description": "generating_questions (poll get_page), waiting_for_answers, or done.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "questions"
+ ],
+ "type": "object"
+ },
+ "markdown": {
+ "description": "The draft as Markdown, or one part of it when markdown_next_cursor is set.",
+ "type": "string"
+ },
+ "markdown_next_cursor": {
+ "description": "Pass as cursor for the next part of the Markdown; empty when complete.",
+ "type": "string"
+ },
+ "plan": {
+ "additionalProperties": false,
+ "description": "Set once the plan is ready.",
+ "properties": {
+ "angle": {
+ "type": "string"
+ },
+ "format": {
+ "type": "string"
+ },
+ "sections": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "type": "string"
+ },
+ "heading": {
+ "type": "string"
+ },
+ "section_id": {
+ "description": "Pass to redraft_page_section.",
+ "type": "string"
+ },
+ "shape": {
+ "description": "prose, table, or list.",
+ "type": "string"
+ },
+ "status": {
+ "description": "pending, drafting, drafted, or failed.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "section_id",
+ "heading",
+ "shape",
+ "status",
+ "error"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "angle",
+ "format",
+ "sections"
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "plan_status": {
+ "description": "none, interview (answer its questions), planning (the plan is being built), or ready (draft_page can write it).",
+ "type": "string"
+ },
+ "poll_after_seconds": {
+ "description": "While questions, the plan or the draft are being written, how long to wait before reading again; 0 otherwise.",
+ "type": "integer"
+ },
+ "preflight": {
+ "additionalProperties": false,
+ "description": "Set when include_preflight was true.",
+ "properties": {
+ "checks": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "status": {
+ "description": "pass, fail, or pending.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "label",
+ "status",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "failing": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "failing",
+ "checks"
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "question": {
+ "type": "string"
+ },
+ "results": {
+ "additionalProperties": false,
+ "description": "Set once the page is live.",
+ "properties": {
+ "answers": {
+ "type": "integer"
+ },
+ "cited": {
+ "type": "integer"
+ },
+ "day": {
+ "description": "Days since it went live.",
+ "type": "integer"
+ },
+ "first_citation_at": {
+ "type": "string"
+ },
+ "live_at": {
+ "type": "string"
+ },
+ "named": {
+ "type": "integer"
+ },
+ "refresh_due_at": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "live_at",
+ "day",
+ "answers",
+ "named",
+ "cited",
+ "first_citation_at",
+ "refresh_due_at"
+ ],
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "status": {
+ "description": "draft, generating, generated, failed, published, or archived.",
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "tone": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "brand",
+ "id",
+ "title",
+ "question",
+ "content_type",
+ "status",
+ "plan_status",
+ "tone",
+ "interview",
+ "plan",
+ "draft",
+ "markdown",
+ "markdown_next_cursor",
+ "results",
+ "preflight",
+ "app_url",
+ "poll_after_seconds"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "description": "RFC 3339 time the response was made.",
+ "type": "string"
+ },
+ "schema_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema_version",
+ "generated_at",
+ "data"
+ ],
+ "type": "object"
+}