{
    "openapi": "3.1.0",
    "info": {
        "title": "Skoup API",
        "version": "v1",
        "description": "Skoup public API \u2014 measure, fix and monetize your products' presence in AI answers."
    },
    "servers": [
        {
            "url": "https://api.skoup.ai/v1",
            "description": "Live and test"
        }
    ],
    "security": [
        {
            "http": []
        }
    ],
    "paths": {
        "/brands/{brand}/alerts": {
            "get": {
                "operationId": "public.alerts.index",
                "description": "Incidents detected at the end of the samplings \u2014 price\nhallucinations, wrong availability, visibility drops, new\ncompetitors, invented specs \u2014 newest first. An alert is its own fix:\nit carries its assignee, effort, note, verification date and gain.",
                "summary": "List alerts",
                "tags": [
                    "Alerts"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "market",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "kind",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "severity",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicAlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicAlertResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/alerts/{alert}": {
            "get": {
                "operationId": "public.alerts.show",
                "summary": "Retrieve an alert",
                "tags": [
                    "Alerts"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "Alert id (`alrt_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicAlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicAlertResource"
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "operationId": "public.alerts.update",
                "description": "Updates the fields of the alert's fix: `description`, `effort`,\n`verify_at`. Its status moves through `start`, `treat`, `dismiss` and\n`verify`.",
                "summary": "Update an alert",
                "tags": [
                    "Alerts"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "Alert id (`alrt_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicUpdateAlertRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PublicAlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicAlertResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/alerts/{alert}/start": {
            "post": {
                "operationId": "public.alerts.start",
                "description": "Moves the alert's fix to `in_progress` \u2014 someone is on it. Treat it\nonce the fix is made.",
                "summary": "Start an alert",
                "tags": [
                    "Alerts"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "Alert id (`alrt_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicAlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicAlertResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/alerts/{alert}/treat": {
            "post": {
                "operationId": "public.alerts.treat",
                "description": "Marks the alert as treated \u2014 the fix was made. Verify it next to\nclose it for good.",
                "summary": "Treat an alert",
                "tags": [
                    "Alerts"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "Alert id (`alrt_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicAlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicAlertResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/alerts/{alert}/dismiss": {
            "post": {
                "operationId": "public.alerts.dismiss",
                "description": "Ignores the alert. If the incident happens again, a new alert opens \u2014\nunless `mute` is true: then the same subject (competitor, product,\nquery, establishment or SEO signal) never raises this kind of alert\nagain, on any market, and the alert comes back with `muted: true`.\nWith `mute`, an alert already ignored can be muted too.",
                "summary": "Dismiss an alert",
                "tags": [
                    "Alerts"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "Alert id (`alrt_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicDismissAlertRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PublicAlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicAlertResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/alerts/{alert}/verify": {
            "post": {
                "operationId": "public.alerts.verify",
                "description": "Re-samples the alert's query on every model to check the fix. The\nalert must be `treated`. Answers 202 when a verification starts, 200\nwhen one already in flight is reused; the verdict arrives later as\n`alert.resolved` (or `alert.updated` with `persisted: true`).\nRe-samplings are capped per brand and per day \u2014 see the\n`Skoup-Quota-Verifications` header.",
                "summary": "Verify an alert",
                "tags": [
                    "Alerts"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alert",
                        "in": "path",
                        "required": true,
                        "description": "Alert id (`alrt_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands": {
            "get": {
                "operationId": "public.brands.index",
                "description": "The brands of the workspace this key can reach \u2014 all of them, or the\nselection made when the key was created. Test keys see the sandbox brands.",
                "summary": "List brands",
                "tags": [
                    "Brands"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicBrandResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicBrandResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}": {
            "get": {
                "operationId": "public.brands.show",
                "summary": "Retrieve a brand",
                "tags": [
                    "Brands"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicBrandResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicBrandResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/competitors": {
            "get": {
                "operationId": "public.competitors.index",
                "description": "The competitor brands tracked on a market, with the share of the\nmarket's AI answers citing each over the period \u2014 the figures of the\nCompetitors screen, every model included.",
                "summary": "List tracked competitors",
                "tags": [
                    "Competitors"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicCompetitorResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicCompetitorResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/source-gaps": {
            "get": {
                "operationId": "public.source-gaps.index",
                "description": "The third-party sites (media, forums, resellers, directories, videos) the AI\nassistants cite in answers that name a competitor and not the brand \u2014\nthe pages where a mention, a review or a listing would put the brand\nin the answers. Most cited without the brand first, every model included.",
                "summary": "List sources to win",
                "tags": [
                    "Competitors",
                    "SourceGaps"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicSourceGapResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicSourceGapResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/events": {
            "get": {
                "operationId": "public.events.index",
                "description": "Events of the last 30 days, newest first \u2014 the same objects your\nwebhook endpoints receive. Use it to catch up after downtime.",
                "summary": "List events",
                "tags": [
                    "Events"
                ],
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "brand",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicEventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicEventResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/events/{event}": {
            "get": {
                "operationId": "public.events.show",
                "summary": "Retrieve an event",
                "tags": [
                    "Events"
                ],
                "parameters": [
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "description": "Event id (`evt_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicEventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicEventResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/inbox": {
            "get": {
                "operationId": "public.inbox.index",
                "description": "Everything the brand can fix on a market, in the order to deal with\nit \u2014 the \u00ab Correctifs \u00bb queue of the app: open alerts, tasks, failing\nreadiness and SEO checks, perception gaps, vacant territories,\nsources to win, page findings and listings. One line per existing\nobject: a task absorbs the alert or the check it was opened from.\nLines come in queue order: `now`, `week`, `later`, then `verified`\n(tasks verified in the last 90 days, with `q=is:all` or\n`group=verified`). The \u00ab Premiers pas \u00bb checklist of the app is not\nlisted (it belongs to a member). Ignored lines (`dismissed_at`) only\ncome with `q=is:ignored` or `q=is:all`.",
                "summary": "List the inbox",
                "tags": [
                    "Inbox"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "group",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "default": "20"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicInboxItemResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicInboxItemResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/inbox/dismiss": {
            "post": {
                "operationId": "public.inbox.dismiss",
                "description": "Ignores lines that are neither alerts nor tasks \u2014 vacant territories\n(`opportunity`), sites to win (`source_gap`), missing contents\n(`content_gap`) and page findings (`page_insight`) \u2014 on one market:\nthey leave the inbox (`GET \u2026/inbox?q=is:ignored` lists them, with\n`dismissed_at`). Ignoring rules what Skoup flags, not what it\nmeasures: the source reports do not change. Up to 100 ids per call;\nignoring a line twice is a no-op. An id that is not a line of the\ninbox is skipped `not_found`; an alert (use its `dismiss`), a task,\na check, a listing or a line locked by the plan, `not_dismissible`.\n\nA perception gap (`perception:{product}:{gap}`) is ignored as the\napp's \u00ab Ignorer \u00bb does \u2014 a false positive of the judge set aside:\nunlike any other line, its verdicts **leave the measured perception\nscore** (`GET \u2026/products/{product}/perception`), and it leaves the\ninbox for good (it is not listed by `q=is:ignored`; `\u2026/inbox/restore`\nbrings it back). A fix open on it is skipped `has_open_fix`: finish\nor delete the fix first.",
                "summary": "Ignore lines of the inbox",
                "tags": [
                    "Inbox"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicDismissInboxItemsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PublicInboxDismissalResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicInboxDismissalResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/inbox/restore": {
            "post": {
                "operationId": "public.inbox.restore",
                "description": "Brings back lines ignored on one market (`POST \u2026/inbox/dismiss`): they\nare proposed again while their source still holds. A perception gap\ncomes back into the measured score. Up to 100 ids per call. An id that\nwas not ignored on the market is skipped `not_found`.",
                "summary": "Restore ignored lines of the inbox",
                "tags": [
                    "Inbox"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicDismissInboxItemsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PublicInboxRestorationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicInboxRestorationResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/inbox/take": {
            "post": {
                "operationId": "public.inbox.take",
                "description": "Opens the fix tied to a line that is neither an alert nor a task \u2014 a\nfailing readiness or SEO check, a perception gap, a vacant territory,\na source to win, a missing content, a page finding or a listing \u2014,\nexactly like \u00ab Create the fix \u00bb in the app: the source is measured\nagain, and the line is then listed as that task. Returns the task\n(`task.created` is sent). An alert is its own fix (`item_is_alert`:\nuse the alert endpoints), a task already is one (`item_is_task`).\nA source that no longer holds, or that got a fix meanwhile, answers\n`parameter_invalid`; a line locked by the plan,\n`plan_feature_unavailable`.",
                "summary": "Take on a line of the inbox",
                "tags": [
                    "Inbox",
                    "InboxTake"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicTakeInboxItemRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`PublicTaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicTaskResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/listings": {
            "get": {
                "operationId": "public.listings.index",
                "description": "The online listings of a local brand on third-party platforms (Google\nMaps, Doctolib, Planity\u2026), read every week on their public page: the\nlast facts read (name, address, phone, opening hours\u2026) and the review\naggregates. An `unreadable` listing keeps the facts of its last\nsuccessful read. `capability_unavailable` for a brand that sells online.",
                "summary": "List listings",
                "tags": [
                    "Markets",
                    "Listings"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "location",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicListingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicListingResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/markets": {
            "get": {
                "operationId": "public.markets.index",
                "description": "The country markets of a brand. Measurements are per market: pass a\nmarket `code` (e.g. `FR`) to the endpoints that take a `market`.",
                "summary": "List markets",
                "tags": [
                    "Markets"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicMarketResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicMarketResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/locations": {
            "get": {
                "operationId": "public.locations.index",
                "description": "The establishments of a local brand (a chain of practices, stores or\nagencies is one brand with many establishments). Empty for a brand\nthat sells online. Queries, mentions and wrong-address alerts point\nat the establishment they are about.",
                "summary": "List establishments",
                "tags": [
                    "Markets",
                    "Locations"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "market",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "tracked",
                        "in": "query",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicLocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicLocationResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/metrics": {
            "get": {
                "operationId": "public.metrics.show",
                "description": "The headline numbers of a brand on a market over a period \u2014 the same\nfigures as the app's screens: share of the AI answers citing the brand\n(share of shelf) with its 95 % interval and week-over-week change,\naccuracy of the price and availability claims, AI readiness score and\nperception score. A block never measured is `null`, never zeros.",
                "summary": "Retrieve brand metrics",
                "tags": [
                    "Metrics"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicBrandMetricsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicBrandMetricsResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/pages": {
            "get": {
                "operationId": "public.pages.index",
                "description": "One row per page of the brand's site with what every source measured\nover the last 28 days: Google Search Console, the Skoup script, Google\nAnalytics, the AI citations, the AI-attributed orders, the crawl,\nthe reads of AI agents and the page's top Search Console queries.\nA `null` block was not measured (source not connected): never read it\nas 0. Up to 500 pages, busiest first.",
                "summary": "List page signals",
                "tags": [
                    "Pages",
                    "Insights"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicPageSignalResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicPageSignalResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/insights": {
            "get": {
                "operationId": "public.insights.index",
                "description": "The deterministic findings read from the page signals, every model\nincluded: a page ranked on Google that no assistant cites, a cited\npage without AI visits, a low CTR, a decline, traffic on a page in\nerror, AI visits that convert less, a tracking gap, a page AI agents\nread and find missing (404 / 410). A finding whose\nsource is missing is never reported. Highest stake first.",
                "summary": "List insights",
                "tags": [
                    "Pages",
                    "Insights"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicInsightResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicInsightResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/search-queries": {
            "get": {
                "operationId": "public.search_queries.index",
                "description": "The Google searches that bring the brand's site up, as its own Search\nConsole reports them over the 28 days ending three days ago, most\nclicked first: the queries of one page with `page` (a URL on any host\nof the site, or a path \u2014 the apex and `www.` are one page, the case\ndoes not matter; its 20 most clicked queries), the site's top queries\nwithout it. `queries_available` is false while Search Console is not\nconnected and never synced: an empty list is then \u00ab not measured \u00bb,\nnever \u00ab no query \u00bb.",
                "summary": "List search queries",
                "tags": [
                    "Pages",
                    "SearchQueries"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicSearchQueryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicSearchQueryResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        },
                                        "search_console": {
                                            "type": "string",
                                            "enum": [
                                                "connected",
                                                "needs_reauth",
                                                "not_connected"
                                            ]
                                        },
                                        "queries_available": {
                                            "type": "boolean",
                                            "description": "False while Search Console is not connected and never synced: nothing was measured."
                                        },
                                        "page": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The page's normalised path, null for the site's queries."
                                        },
                                        "window": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "description": "The Search Console window, both days included.",
                                            "properties": {
                                                "start": {
                                                    "type": "string"
                                                },
                                                "end": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "start",
                                                "end"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url",
                                        "search_console",
                                        "queries_available",
                                        "page",
                                        "window"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/products": {
            "get": {
                "operationId": "public.products.index",
                "description": "The brand's catalogue, newest first, variants included.",
                "summary": "List products",
                "tags": [
                    "Products"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "source",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicProductResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicProductResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "public.products.store",
                "description": "Adds a `manual` product \u2014 for stores without a connector. Its vendor\ndefaults to the brand name.",
                "summary": "Create a product",
                "tags": [
                    "Products"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicProductRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`PublicProductResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicProductResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/products/{product}": {
            "get": {
                "operationId": "public.products.show",
                "summary": "Retrieve a product",
                "tags": [
                    "Products"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "product",
                        "in": "path",
                        "required": true,
                        "description": "Product id (`prod_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicProductResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicProductResource"
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "operationId": "public.products.update",
                "description": "Only `manual` products can be updated: a synced product is read-only\n(`resource_read_only`) \u2014 fix it in the store, the next sync brings it.",
                "summary": "Update a product",
                "tags": [
                    "Products"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "product",
                        "in": "path",
                        "required": true,
                        "description": "Product id (`prod_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicProductRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PublicProductResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicProductResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/products/{product}/write_backs": {
            "get": {
                "operationId": "public.products.write_backs",
                "description": "What Skoup wrote in the store for this product (copy, SEO fields,\nvariant barcodes), field by field with the value it replaced, newest\nfirst. Failed attempts are listed too, with their error.",
                "summary": "List a product's write-backs",
                "tags": [
                    "Products",
                    "WriteBacks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "product",
                        "in": "path",
                        "required": true,
                        "description": "Product id (`prod_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicWriteBackResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicWriteBackResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/product-feeds": {
            "get": {
                "operationId": "public.product-feeds.index",
                "description": "The brand's feeds, one per market, on or off: the secret `url` to\npaste in OpenAI's Business Hub, what the last snapshot holds (`rows`,\nproducts left out by reason) and the last time the URL was read.\n`platform_serves_market` is false where ChatGPT does not take feeds\nyet (it takes US, CA and MX today).",
                "summary": "List product feeds",
                "tags": [
                    "Products",
                    "ProductFeeds"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/products/{product}/perception": {
            "get": {
                "operationId": "public.products.perception",
                "description": "How AI answers restitute the product's identity sheet on a market over\na period: verdict counts and score, then each differentiating attribute\n(USP) with the share of answers citing it and where to write it when\nit does not land. `sheet_version` is null for a product without an\nidentity sheet \u2014 nothing is judged without one.",
                "summary": "Retrieve a product's perception",
                "tags": [
                    "Products",
                    "ProductPerception"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "product",
                        "in": "path",
                        "required": true,
                        "description": "Product id (`prod_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicProductPerceptionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicProductPerceptionResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/queries": {
            "get": {
                "operationId": "public.queries.index",
                "description": "The queries of the brand's panel \u2014 the questions asked to the AI\nmodels every week \u2014 with the share of the answers citing the brand\nover the period.",
                "summary": "List queries",
                "tags": [
                    "Queries"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "market",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "enabled",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicQueryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicQueryResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "public.queries.store",
                "description": "Adds a query to the panel of an activated market, enabled: it is\nasked from the next weekly sampling on. A duplicate on the market, or\na full quota (`quota_exceeded`, a trial or a contract with a limit only), answers 422.",
                "summary": "Create a query",
                "tags": [
                    "Queries"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicStoreQueryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`PublicQueryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicQueryResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/queries/cost": {
            "get": {
                "operationId": "public.queries.cost",
                "description": "What the enabled queries \u2014 or `queries` queries \u2014 cost a month with\nthe brand's AI models, weekly and daily, in euro cents: what the\nincluded amount covers, what goes beyond it (balance, pay-as-you-go)\nand how many queries a month of cycles would measure with what is\nleft to spend.",
                "summary": "Retrieve the panel cost",
                "tags": [
                    "Queries"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "queries",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 5000
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicPanelCostResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicPanelCostResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/queries/{query}": {
            "get": {
                "operationId": "public.queries.show",
                "summary": "Retrieve a query",
                "tags": [
                    "Queries"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "query",
                        "in": "path",
                        "required": true,
                        "description": "Query id (`qry_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicQueryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicQueryResource"
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "operationId": "public.queries.update",
                "description": "Edits the text or the category, or enables / disables the query.\nDisabling frees a slot of the quota; enabling takes one.",
                "summary": "Update a query",
                "tags": [
                    "Queries"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "query",
                        "in": "path",
                        "required": true,
                        "description": "Query id (`qry_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicUpdateQueryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PublicQueryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicQueryResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/readiness": {
            "get": {
                "operationId": "public.readiness.show",
                "description": "The latest AI readiness audit of a market \u2014 crawlability by AI bots,\nstructured data, product feed conformity, agentic checkout \u2014 scored\n/100 with its checks. 404 until a first audit ran on the market.",
                "summary": "Retrieve the readiness score",
                "tags": [
                    "Readiness"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicReadinessScoreResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicReadinessScoreResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/results/timeline": {
            "get": {
                "operationId": "public.results.timeline",
                "description": "Whether Skoup works for the brand, week by week on a market: being\nseen (AI visibility, raw counts per model), being visited (AI\nsessions per assistant) and being chosen \u2014 AI-attributed orders for\nan online store, AI subscriptions for a SaaS, the key events of the\nAI visits otherwise (`outcome_kind`). Markers put the start of Skoup,\nthe fixes the measure proved, the integrations and the write-backs on\nthe same axis; `since` compares the first measure with the last and\nthe 4 weeks before the start with the last 4.\n\nOne day, one source: each week says who measured it (`source`), and\na week nobody measured is `null`, never 0. Open to every plan.",
                "summary": "Retrieve the results timeline",
                "tags": [
                    "Results"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicResultsTimelineResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicResultsTimelineResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/attribution": {
            "get": {
                "operationId": "public.revenue.attribution",
                "description": "Orders and revenue attributed to AI surfaces (ChatGPT, Claude, Gemini,\nPerplexity\u2026) vs the whole store on a market over a period, by surface\nand by product \u2014 the figures of the Revenue screen. Attribution is\nlast-touch, read from the store's orders (referrer, `utm_source`,\n`ref`). Totals are `null` before the first order.",
                "summary": "Retrieve the AI attribution",
                "tags": [
                    "Revenue"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicAttributionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicAttributionResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/orders": {
            "get": {
                "operationId": "public.revenue.orders",
                "description": "The store orders attributed to an AI surface, newest first. Test\norders are excluded; no customer data is ever returned.",
                "summary": "List AI-attributed orders",
                "tags": [
                    "Revenue"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "surface",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicOrderResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicOrderResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/correlation": {
            "get": {
                "operationId": "public.revenue.correlation",
                "description": "AI visibility and AI-attributed revenue side by side, week by week,\nwith the fixes published each week \u2014 for the whole brand or one\ncatalogue category. Visibility is given raw per model (`hits` /\n`runs`) plus the all-models `share`. `weeks` is empty until the store\nsent a first order.",
                "summary": "Retrieve the visibility \u2194 revenue correlation",
                "tags": [
                    "Revenue"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicCorrelationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicCorrelationResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/subscriptions": {
            "get": {
                "operationId": "public.revenue.subscriptions",
                "description": "New subscriptions and new MRR of a SaaS brand on a market over a\nperiod, read from its Stripe, and the part the AI assistants brought\n\u2014 as the brand records it in the customer's or the subscription's\nmetadata (`referrer`, `utm_source`, `landing_url`). With the Growth\nplan or above, `weeks` puts the weekly AI visibility (raw counts per\nmodel) next to the new MRR. The blocks are `null` until Stripe is\nconnected and synced; SaaS brands only.",
                "summary": "Retrieve the AI subscriptions",
                "tags": [
                    "Revenue"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicSubscriptionsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicSubscriptionsResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/traffic": {
            "get": {
                "operationId": "public.revenue.traffic",
                "description": "Sessions and conversions the AI assistants (ChatGPT, Claude, Gemini,\nPerplexity\u2026) send to the site, per surface and per week, vs the whole\nsite \u2014 measured by the Skoup script installed on it, the figures of\nthe \u00ab AI traffic \u00bb screen \u2014 and the conversions whose first touch was\nan assistant. The blocks are `null` until the script brought a visit.\n\nOne day, one source: the days before the script measured anything\ncome from the brand's Google Analytics 4 property when it is synced.\n`measurement` says who measured the period (`script`,\n`google_analytics`, `mixed`, or `null` for nobody) and each week\ncarries its own `source`. `first_touch` needs the script's visits: it\nis `null` on a period Google Analytics measured alone.\n\n`direct_on_cited` counts the direct visits (no referrer, no campaign)\nthat landed on a page of the site an assistant cited \u2014 an assistant's\napp often sends no referrer. Shown beside the AI traffic, never added\nto it.",
                "summary": "Retrieve the AI traffic",
                "tags": [
                    "Revenue"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicTrafficResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicTrafficResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/agent-reads": {
            "get": {
                "operationId": "public.tracking.agent_reads",
                "description": "The requests AI agents made to the brand's site, as the site's own\nserver forwarded them to Skoup: assistants reading a page to answer\nsomeone (`user`: ChatGPT-User, Perplexity-User, Claude-User\u2026), their\nsearch indexes (`search`: OAI-SearchBot, PerplexityBot\u2026) and the\ntraining crawlers (`training`: GPTBot, ClaudeBot, CCBot\u2026) \u2014 per\nkind, publisher, agent, week and page. `verified` counts the reads\nwhose IP was in the ranges the publisher publishes; a read naming an\nagent from any other IP is never counted.\n\nThe site must forward its AI agent requests (the `reportAiAgents`\nhelper of `@skoup/analytics-next`, a Cloudflare Worker or a few lines\nof PHP \u2014 see the guide); until it does, `since` is `null` and every\ncount is `null`, never 0. No market: an agent's IP says nothing of\nwhere the person who asked is.",
                "summary": "Retrieve the AI agent reads",
                "tags": [
                    "Revenue",
                    "AgentReads"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "kind",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicAgentReadsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicAgentReadsResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/samplings": {
            "get": {
                "operationId": "public.samplings.index",
                "description": "The measurements of the brand, newest first: the samplings of each\nmarket at the brand's cadence, the ones started on demand and the\ntargeted re-samplings of a single query.",
                "summary": "List samplings",
                "tags": [
                    "Samplings"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "market",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicSamplingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicSamplingResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "public.samplings.store",
                "description": "Measures every enabled query of one market now, on the brand's AIs,\non top of its automatic cadence. Paid like any action on demand\n(\u20ac0.02 per answer \u00d7 the AI's multiplier, Claude \u00d73): answers 202 with\nthe sampling (`trigger: on_demand`), then `sampling.completed` when it\nends. 422 `sampling_in_progress` while a sampling of the market runs,\n`credits` when nothing is left to spend. It never resolves an alert.",
                "summary": "Start a sampling",
                "tags": [
                    "Samplings"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicStartSamplingRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "`PublicSamplingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicSamplingResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/samplings/{sampling}": {
            "get": {
                "operationId": "public.samplings.show",
                "summary": "Retrieve a sampling",
                "tags": [
                    "Samplings"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sampling",
                        "in": "path",
                        "required": true,
                        "description": "Sampling id (`smp_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicSamplingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicSamplingResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/share-links": {
            "get": {
                "operationId": "public.share-links.index",
                "description": "The brand's public links, active and revoked, newest first: a\n`report` is a dated snapshot anyone opens at its `url` without an\naccount, a `badge` an SVG image (`badge_url`) with the HTML to\npaste (`embed`).",
                "summary": "List share links",
                "tags": [
                    "Share links",
                    "ShareLinks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "public.share-links.store",
                "description": "A `report` link freezes the brand's visibility on `market` (default:\nthe primary market) right now \u2014 never a live view, never a\ncompetitor or a query; `parameter_invalid` on `market` while nothing\nwas measured there. A `badge` reads the share live, cached an hour.\nNo expiry unless `expires_at` is given.",
                "summary": "Create a share link",
                "tags": [
                    "Share links",
                    "ShareLinks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicCreateShareLinkRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`PublicShareLinkResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicShareLinkResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/share-links/{share_link}": {
            "delete": {
                "operationId": "public.share-links.destroy",
                "description": "Its page and its badge answer 410 from now on. The link stays\nlisted with `revoked_at` set; revoking twice changes nothing.",
                "summary": "Revoke a share link",
                "tags": [
                    "Share links",
                    "ShareLinks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "share_link",
                        "in": "path",
                        "required": true,
                        "description": "Share Link id (`shl_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicShareLinkResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicShareLinkResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/shelf": {
            "get": {
                "operationId": "public.shelf.index",
                "description": "Every tracked product of the brand on a market \u2014 every establishment\nfor a local brand \u2014 with how the AI assistants treat it, in the order\nto look at them: the products an assistant gets wrong first, then the\nabsent ones, the ones to reinforce, the unmeasured, the good; inside a\nstate, the AI revenue then the share. The home screen of the app.\nBefore the first completed sampling of the market, the list is empty.",
                "summary": "List the shelf",
                "tags": [
                    "Shelf"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "default": "20"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicShelfItemResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicShelfItemResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/tasks": {
            "get": {
                "operationId": "public.tasks.index",
                "description": "The backlog of fixes of a brand, newest first. A list item leaves out\nthe `guide` and cuts `description` to 280 characters: retrieve the task\nfor both.",
                "summary": "List tasks",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "source",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "market",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicTaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicTaskResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "public.tasks.store",
                "description": "Adds a manual fix to the backlog, in the `todo` column.",
                "summary": "Create a task",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicStoreTaskRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`PublicTaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicTaskResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/brands/{brand}/tasks/{task}": {
            "get": {
                "operationId": "public.tasks.show",
                "summary": "Retrieve a task",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task id (`task_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicTaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicTaskResource"
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "operationId": "public.tasks.update",
                "description": "Updates its fields and/or moves it on the kanban with `status`. Forward,\nit may skip columns \u2014 `todo` to `in_verification` in one call goes\nthrough `in_progress`, each step dated and sent as `task.updated` \u2014;\nbackward, one column at a time (`invalid_transition` otherwise).\nMoving to `verified` may record the measured `gain`. A refused move\nchanges nothing.",
                "summary": "Update a task",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task id (`task_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicUpdateTaskRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PublicTaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicTaskResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "public.tasks.destroy",
                "description": "Removes the fix from the backlog. The line it came from (a check, a\ngap, a source\u2026) goes back to the inbox, where it can be taken again.\nSends `task.deleted` with the task as it was.",
                "summary": "Delete a task",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task id (`task_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicDeletedTaskResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicDeletedTaskResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/tasks/{task}/plan": {
            "get": {
                "operationId": "public.tasks.plan",
                "description": "The step-by-step plan a model wrote for the task in the app, adapted to\nthe brand's platform and to the task's evidence. Read only: plans are\nwritten on demand from the app, never through the API. `resource_missing`\nuntil one was written.",
                "summary": "Retrieve a task's plan",
                "tags": [
                    "Tasks"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task id (`task_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicTaskPlanResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicTaskPlanResource"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brands/{brand}/site_changes": {
            "get": {
                "operationId": "public.site_changes.index",
                "description": "The site fixes sent to GitHub as pull requests, newest first, with the files they changed\nand where to review them. Failed attempts are listed too.",
                "summary": "List site changes",
                "tags": [
                    "Tasks",
                    "SiteChanges"
                ],
                "parameters": [
                    {
                        "name": "brand",
                        "in": "path",
                        "required": true,
                        "description": "Brand id (`br_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "task",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicSiteChangeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicSiteChangeResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/webhook_endpoints": {
            "get": {
                "operationId": "public.webhook_endpoints.index",
                "summary": "List webhook endpoints",
                "tags": [
                    "Webhook endpoints",
                    "WebhookEndpoints"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PublicWebhookEndpointResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicWebhookEndpointResource"
                                            }
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "list"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "object",
                                        "has_more",
                                        "url"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "public.webhook_endpoints.store",
                "description": "The response carries the signing `secret` (`whsec_\u2026`) \u2014 the only time\nthe API returns it. Store it to verify the `X-Skoup-Signature` header.",
                "summary": "Create a webhook endpoint",
                "tags": [
                    "Webhook endpoints",
                    "WebhookEndpoints"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicWebhookEndpointRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`PublicWebhookEndpointResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicWebhookEndpointResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/webhook_endpoints/{endpoint}": {
            "get": {
                "operationId": "public.webhook_endpoints.show",
                "summary": "Retrieve a webhook endpoint",
                "tags": [
                    "Webhook endpoints",
                    "WebhookEndpoints"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "Webhook Endpoint id (`we_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PublicWebhookEndpointResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicWebhookEndpointResource"
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "operationId": "public.webhook_endpoints.update",
                "description": "Send `disabled: true` to pause it, `false` to enable it again.",
                "summary": "Update a webhook endpoint",
                "tags": [
                    "Webhook endpoints",
                    "WebhookEndpoints"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "Webhook Endpoint id (`we_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublicWebhookEndpointRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PublicWebhookEndpointResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublicWebhookEndpointResource"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "public.webhook_endpoints.destroy",
                "summary": "Delete a webhook endpoint",
                "tags": [
                    "Webhook endpoints",
                    "WebhookEndpoints"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "Webhook Endpoint id (`we_\u2026`).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string"
                                        },
                                        "object": {
                                            "type": "string",
                                            "const": "webhook_endpoint"
                                        },
                                        "deleted": {
                                            "type": "boolean"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "object",
                                        "deleted"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "http": {
                "type": "http",
                "scheme": "bearer",
                "bearerFormat": "skoup_live_\u2026 / skoup_test_\u2026"
            }
        },
        "schemas": {
            "AiModel": {
                "type": "string",
                "description": "The AI assistants Skoup samples. Keys match the front's `lib/ai-models.ts` and the `--model-*` tokens; model ids and providers live in config('skoup.visibility').\n",
                "enum": [
                    "chatgpt",
                    "claude",
                    "gemini",
                    "perplexity",
                    "grok",
                    "mistral",
                    "deepseek",
                    "qwen"
                ],
                "title": "AiModel"
            },
            "AlertCloseReason": {
                "type": "string",
                "description": "Why an alert closed without a fix. `Rejudged`: the way a claim is judged changed and this one no longer counts as wrong \u2014 Skoup closed it, never a fix the brand made, so never \u00ab resolved \u00bb. `Confirmed`: a member said the AI was right (an invented spec that is real) and the spec went onto the product sheet \u2014 a false positive, not a fix either. `Recovered`: a drop nobody treated whose share came back on the next complete sampling (HerV\u00e9, 2026-11-02) \u2014 the noise ended, nothing was fixed.\n",
                "enum": [
                    "rejudged",
                    "confirmed",
                    "recovered"
                ],
                "title": "AlertCloseReason"
            },
            "AlertKind": {
                "type": "string",
                "description": "What an alert reports. Adding a kind = one case here, one detector and the copy; the inbox is data-driven.\n",
                "enum": [
                    "price_hallucination",
                    "wrong_availability",
                    "visibility_drop",
                    "new_competitor",
                    "spec_invented",
                    "wrong_local_fact",
                    "seo_regression"
                ],
                "title": "AlertKind"
            },
            "AlertSeverity": {
                "type": "string",
                "enum": [
                    "critical",
                    "medium",
                    "low"
                ],
                "title": "AlertSeverity"
            },
            "AlertStatus": {
                "type": "string",
                "description": "Lifecycle of an alert (mockup): Nouvelle \u2192 Vue \u2192 Trait\u00e9e \u2192 R\u00e9solue v\u00e9rifi\u00e9e, plus Ignor\u00e9e on the side. An alert IS its fix (the Guigz, 2026-10-14): `InProgress` (\u00ab En cours \u00bb) sits between read and treated, the kanban's column, and steps back to `Seen`; treated never steps back (its verification decides). `Resolved` is only ever reached by a measurement (ResolveVerifiedAlerts, SeoRegressionAlerts), never by the API.\n",
                "enum": [
                    "new",
                    "seen",
                    "in_progress",
                    "treated",
                    "resolved",
                    "ignored"
                ],
                "title": "AlertStatus"
            },
            "AttributionSignal": {
                "type": "string",
                "description": "Which of the store's origin fields proved the AI surface of an order. NULL on the order = no AI signal (the referrer host is still kept).\n| |\n|---|\n| `referrer` <br/> The session's referrer is an assistant's domain. |\n| `utm` <br/> The landing URL carries a `utm_source` naming an assistant (ChatGPT tags its links). |\n| `landing_ref` <br/> Shopify's `landing_site_ref` (`?ref=`) names an assistant. |",
                "enum": [
                    "referrer",
                    "utm",
                    "landing_ref"
                ],
                "title": "AttributionSignal"
            },
            "BrandPlatform": {
                "type": "string",
                "description": "What the brand's site runs on. Chosen by a person (onboarding, R\u00e9glages \u2192 Marque, an agency adding the brand), set by a connected integration, or detected from the site's crawl (Seo\\Services\\PlatformDetector) \u2014 see BrandPlatformSource. Shopify and WooCommerce have a connector; any other store is read from its own site (catalogue source `crawl`), and the platform tells the fix plans which admin to walk through. `custom` = a site built in-house.\n",
                "enum": [
                    "shopify",
                    "woocommerce",
                    "prestashop",
                    "magento",
                    "bigcommerce",
                    "wix",
                    "squarespace",
                    "webflow",
                    "wordpress",
                    "lovable",
                    "custom"
                ],
                "title": "BrandPlatform"
            },
            "CompetitorOrigin": {
                "type": "string",
                "description": "How a competitor entered the referential. - detected \u2192 suggested by the sampling (it was already cited in answers) - declared \u2192 typed by a user, by brand name or domain\n",
                "enum": [
                    "detected",
                    "declared"
                ],
                "title": "CompetitorOrigin"
            },
            "InboxImpactLevel": {
                "type": "string",
                "description": "The impact of a \u00ab Correctifs \u00bb line on one scale, so that lines measured in different units compare (\u00ab Impact fort / moyen / faible \u00bb, clarity rule 5, 2026-11-11). The exact gain and its unit (`impact.label`, `impact.points`, `impact.unit`) stay for the drawer and the API. `of()` is the single judge: `impact.points` against the per-unit thresholds of `config('skoup.inbox.impact_levels')`, never in code. A critical line is always high; a line without measured points (or without a unit) has no level, never a guessed one. Computed on every read from what the line carries: the cached shape does not change.\n",
                "enum": [
                    "high",
                    "medium",
                    "low"
                ],
                "title": "InboxImpactLevel"
            },
            "InboxImpactUnit": {
                "type": "string",
                "description": "What the `impact.points` of a line count \u2014 the scale its source measures in. Inside a group, the lines measured in points come first, by their points (`isPoints`, the Guigz 2026-10-13); the other units only break ties after the severity \u2014 never compared to points.\n| |\n|---|\n| `readiness` <br/> Readiness score points (/100). |\n| `perception` <br/> Perception score points (/100). |\n| `accuracy` <br/> Accuracy points (price and stock claims). |\n| `visibility` <br/> Visibility share points. |\n| `clicks` <br/> Google clicks (Search Console). |\n| `answers` <br/> AI answers (runs). |\n| `revenue` <br/> Revenue, in the market's currency. |",
                "enum": [
                    "readiness",
                    "perception",
                    "accuracy",
                    "visibility",
                    "clicks",
                    "answers",
                    "revenue"
                ],
                "title": "InboxImpactUnit"
            },
            "ListingStatus": {
                "type": "string",
                "enum": [
                    "pending",
                    "ok",
                    "unreadable",
                    "not_found"
                ],
                "title": "ListingStatus"
            },
            "ListingStatusReason": {
                "type": "string",
                "description": "Why the last read of a listing gave nothing (status `unreadable`).\n",
                "enum": [
                    "robots",
                    "blocked",
                    "timeout",
                    "http_error",
                    "no_data",
                    "platform_unreadable",
                    "unavailable"
                ],
                "title": "ListingStatusReason"
            },
            "LocationSource": {
                "type": "string",
                "description": "Where an establishment row came from: read on the brand's site, or typed by an editor.\n",
                "enum": [
                    "site",
                    "manual"
                ],
                "title": "LocationSource"
            },
            "MarketSource": {
                "type": "string",
                "description": "Where a brand market comes from: detected in the connected store (Shopify Markets, the selling countries of a WooCommerce store, the active countries of a PrestaShop store) or added by hand on \u00ab Catalogue \u00b7 March\u00e9s \u00bb.\n",
                "enum": [
                    "shopify",
                    "woocommerce",
                    "prestashop",
                    "manual"
                ],
                "title": "MarketSource"
            },
            "MarketStatus": {
                "type": "string",
                "description": "Lifecycle of a brand market, as shown by the navbar market chips. - active   \u2192 sampled every cycle, selectable everywhere. - backfill \u2192 just activated, history being rebuilt; selectable, flagged. - off      \u2192 detected (Shopify Markets\u2026) but not activated; greyed out.\n",
                "enum": [
                    "active",
                    "backfill",
                    "off"
                ],
                "title": "MarketStatus"
            },
            "OrderSource": {
                "type": "string",
                "description": "The store an order was received from: Shopify (orders/create webhook), WooCommerce (order.* webhooks + backfill and daily reconciliation over REST), PrestaShop (backfill and hourly reconciliation over the Webservice \u2014 no webhooks in PrestaShop's core).\n",
                "enum": [
                    "shopify",
                    "woocommerce",
                    "prestashop"
                ],
                "title": "OrderSource"
            },
            "PricePeriod": {
                "type": "string",
                "description": "What a price buys: a month or a year of a subscription, or the thing once. Shared by the catalogue and by the price an answer states \u2014 two prices of different periods are never compared.\n",
                "enum": [
                    "month",
                    "year",
                    "once"
                ],
                "title": "PricePeriod"
            },
            "PriceUnit": {
                "type": "string",
                "description": "What a price is counted by: the whole offer, or each user (seat, practitioner, workstation). Shared by the catalogue and by the price an answer states.\n",
                "enum": [
                    "flat",
                    "per_user"
                ],
                "title": "PriceUnit"
            },
            "ProductSource": {
                "type": "string",
                "description": "Where a product comes from. Synced sources (Shopify, WooCommerce, PrestaShop, a CSV / XML feed, the store's own site read by the crawl) are the source of truth: their products are read-only in Skoup and refreshed by the sync. Manual products are fully editable, and so are the offerings read on the brand's site by the site profile (`site`): a suggestion the customer edits, never overwritten once touched.\n",
                "enum": [
                    "shopify",
                    "woocommerce",
                    "prestashop",
                    "feed",
                    "crawl",
                    "manual",
                    "site"
                ],
                "title": "ProductSource"
            },
            "ProductStatus": {
                "type": "string",
                "description": "Publication status, aligned on Shopify's product statuses so a synced product maps one-to-one.\n",
                "enum": [
                    "active",
                    "draft",
                    "archived"
                ],
                "title": "ProductStatus"
            },
            "PromptIntent": {
                "type": "string",
                "description": "The shopping-query templates of the spec: \u00ab meilleur X \u00bb, \u00ab X vs Z \u00bb, \u00ab alternatives \u00e0 X \u00bb. Detected on manual prompts, explicit on generated ones; anything else is custom.\n",
                "enum": [
                    "best_x",
                    "x_vs_z",
                    "alternatives_to_x",
                    "custom"
                ],
                "title": "PromptIntent"
            },
            "PromptSource": {
                "type": "string",
                "description": "| |\n|---|\n| `generated` <br/> Generated from the catalog at onboarding / re-generation. |\n| `manual` <br/> Added by hand in the prompt panel. |",
                "enum": [
                    "generated",
                    "manual"
                ],
                "title": "PromptSource"
            },
            "PublicAgentReadsResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "agent_reads"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string",
                        "enum": [
                            "30d",
                            "90d",
                            "12m"
                        ]
                    },
                    "kind": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The kind the report is narrowed to, null = every kind.",
                        "enum": [
                            "user",
                            "search",
                            "training",
                            null
                        ]
                    },
                    "window": {
                        "type": "object",
                        "description": "Whole days, both included.",
                        "properties": {
                            "from": {
                                "type": "string"
                            },
                            "to": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "since": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The first day the site forwarded a read; null = never (every count is null)."
                    },
                    "last_fetch_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "ISO-8601: the last read the site forwarded."
                    },
                    "totals": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "fetches": {
                                "type": "integer"
                            },
                            "verified": {
                                "type": "integer"
                            },
                            "errors": {
                                "type": "integer"
                            },
                            "not_found": {
                                "type": "integer"
                            },
                            "unknown_status": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "fetches",
                            "verified",
                            "errors",
                            "not_found",
                            "unknown_status"
                        ]
                    },
                    "previous": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The window before, same length; null when it ended before the first read.",
                        "properties": {
                            "fetches": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "fetches"
                        ]
                    },
                    "kinds": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "Every kind, whatever `kind` narrows.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "kind": {
                                    "type": "string",
                                    "enum": [
                                        "user",
                                        "search",
                                        "training"
                                    ]
                                },
                                "fetches": {
                                    "type": "integer"
                                },
                                "verified": {
                                    "type": "integer"
                                },
                                "errors": {
                                    "type": "integer"
                                },
                                "not_found": {
                                    "type": "integer"
                                },
                                "unknown_status": {
                                    "type": "integer"
                                }
                            },
                            "required": [
                                "kind",
                                "fetches",
                                "verified",
                                "errors",
                                "not_found",
                                "unknown_status"
                            ]
                        }
                    },
                    "surfaces": {
                        "type": "array",
                        "description": "Per publisher: chatgpt, perplexity, claude, gemini, mistral, meta, amazon, apple, duckduckgo, commoncrawl\u2026",
                        "items": {
                            "type": "object",
                            "properties": {
                                "surface": {
                                    "type": "string"
                                },
                                "fetches": {
                                    "type": "integer"
                                },
                                "verified": {
                                    "type": "integer"
                                }
                            },
                            "required": [
                                "surface",
                                "fetches",
                                "verified"
                            ]
                        }
                    },
                    "agents": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "agent": {
                                    "type": "string"
                                },
                                "label": {
                                    "type": "string"
                                },
                                "surface": {
                                    "type": "string"
                                },
                                "kind": {
                                    "type": "string",
                                    "enum": [
                                        "user",
                                        "search",
                                        "training"
                                    ]
                                },
                                "fetches": {
                                    "type": "integer"
                                },
                                "verified": {
                                    "type": "integer"
                                },
                                "errors": {
                                    "type": "integer"
                                },
                                "not_found": {
                                    "type": "integer"
                                },
                                "unknown_status": {
                                    "type": "integer"
                                }
                            },
                            "required": [
                                "agent",
                                "label",
                                "surface",
                                "kind",
                                "fetches",
                                "verified",
                                "errors",
                                "not_found",
                                "unknown_status"
                            ]
                        }
                    },
                    "weeks": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "week_start": {
                                    "type": "string"
                                },
                                "fetches": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ]
                                },
                                "verified": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ]
                                },
                                "by_kind": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "properties": {
                                        "user": {
                                            "type": "integer"
                                        },
                                        "search": {
                                            "type": "integer"
                                        },
                                        "training": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "user",
                                        "search",
                                        "training"
                                    ]
                                }
                            },
                            "required": [
                                "week_start",
                                "fetches",
                                "verified",
                                "by_kind"
                            ]
                        }
                    },
                    "pages": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The pages read most, top 20.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "path": {
                                    "type": "string"
                                },
                                "fetches": {
                                    "type": "integer"
                                },
                                "verified": {
                                    "type": "integer"
                                },
                                "errors": {
                                    "type": "integer"
                                },
                                "not_found": {
                                    "type": "integer"
                                },
                                "unknown_status": {
                                    "type": "integer"
                                },
                                "surfaces": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "path",
                                "fetches",
                                "verified",
                                "errors",
                                "not_found",
                                "unknown_status",
                                "surfaces"
                            ]
                        }
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "brand",
                    "period",
                    "kind",
                    "window",
                    "since",
                    "last_fetch_at",
                    "totals",
                    "previous",
                    "kinds",
                    "surfaces",
                    "agents",
                    "weeks",
                    "pages",
                    "livemode"
                ],
                "title": "PublicAgentReadsResource"
            },
            "PublicAlertResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "alert"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/AlertKind"
                    },
                    "type": {
                        "$ref": "#/components/schemas/TaskType"
                    },
                    "severity": {
                        "$ref": "#/components/schemas/AlertSeverity"
                    },
                    "status": {
                        "$ref": "#/components/schemas/AlertStatus"
                    },
                    "product": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "title": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "title"
                        ]
                    },
                    "query": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "text": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "text"
                        ]
                    },
                    "competitor": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "location": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "city": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name",
                            "city"
                        ]
                    },
                    "model": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AiModel"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "models": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "model": {
                                    "type": "string"
                                },
                                "occurrences": {
                                    "type": "integer"
                                }
                            },
                            "required": [
                                "model",
                                "occurrences"
                            ]
                        }
                    },
                    "occurrences": {
                        "type": "integer"
                    },
                    "claimed": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "truth": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "additionalProperties": {}
                    },
                    "persisted": {
                        "type": "boolean",
                        "description": "The claim was seen again after the alert was treated (a verification, or a weekly sampling)."
                    },
                    "verifications": {
                        "type": "integer"
                    },
                    "clean_cycles": {
                        "type": "integer",
                        "description": "Complete samplings in a row without the claim since it was treated; two resolve it."
                    },
                    "first_seen_at": {
                        "type": "string"
                    },
                    "last_seen_at": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The alert IS its fix (2026-10-14): who is on it, how big, a note, when the measurement tells, what it showed."
                    },
                    "effort": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskEffort"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "assignee": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "name"
                        ]
                    },
                    "started_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "treated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "verify_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "gain": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "verified_via": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskVerifiedVia"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "dismissed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "close_reason": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AlertCloseReason"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "muted": {
                        "type": "boolean",
                        "description": "Dismissed with `mute`: the same subject never raises this kind of alert again, on any market."
                    },
                    "muted_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_verification_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "resolved_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "market",
                    "kind",
                    "type",
                    "severity",
                    "status",
                    "product",
                    "query",
                    "competitor",
                    "location",
                    "model",
                    "models",
                    "occurrences",
                    "claimed",
                    "truth",
                    "persisted",
                    "verifications",
                    "clean_cycles",
                    "first_seen_at",
                    "last_seen_at",
                    "description",
                    "effort",
                    "assignee",
                    "started_at",
                    "treated_at",
                    "verify_at",
                    "gain",
                    "verified_via",
                    "dismissed_at",
                    "close_reason",
                    "muted",
                    "muted_at",
                    "last_verification_at",
                    "resolved_at",
                    "livemode",
                    "created"
                ],
                "title": "PublicAlertResource"
            },
            "PublicAttributionResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "attribution"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string"
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "to": {
                        "type": "string"
                    },
                    "ai": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "orders": {
                                "type": "string"
                            },
                            "revenue": {
                                "type": "string"
                            },
                            "average_basket": {
                                "type": "string"
                            },
                            "share_of_revenue": {
                                "type": "string"
                            },
                            "share_of_orders": {
                                "type": "string"
                            },
                            "previous_orders": {
                                "type": "string"
                            },
                            "previous_revenue": {
                                "type": "string"
                            },
                            "revenue_change": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "orders",
                            "revenue",
                            "average_basket",
                            "share_of_revenue",
                            "share_of_orders",
                            "previous_orders",
                            "previous_revenue",
                            "revenue_change"
                        ]
                    },
                    "store": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "orders": {
                                "type": "string"
                            },
                            "revenue": {
                                "type": "string"
                            },
                            "average_basket": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "orders",
                            "revenue",
                            "average_basket"
                        ]
                    },
                    "surfaces": {
                        "type": "array",
                        "items": {}
                    },
                    "products": {
                        "type": "array",
                        "items": {}
                    },
                    "first_touch": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Orders the Skoup pixel joined to their visit: the buyer's first AI contact.",
                        "properties": {
                            "window_days": {
                                "type": "string"
                            },
                            "orders": {
                                "type": "string"
                            },
                            "ai_orders": {
                                "type": "string"
                            },
                            "ai_share": {
                                "type": "string"
                            },
                            "ai_revenue": {
                                "type": "string"
                            },
                            "surfaces": {
                                "type": "array",
                                "items": {}
                            }
                        },
                        "required": [
                            "window_days",
                            "orders",
                            "ai_orders",
                            "ai_share",
                            "ai_revenue",
                            "surfaces"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "brand",
                    "market",
                    "period",
                    "currency",
                    "from",
                    "to",
                    "ai",
                    "store",
                    "surfaces",
                    "products",
                    "first_touch",
                    "livemode"
                ],
                "title": "PublicAttributionResource"
            },
            "PublicBrandMetricsResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "brand_metrics"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string"
                    },
                    "models": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The AI models the figures are computed on (`models=`), `null` = every measured model."
                    },
                    "visibility": {
                        "type": "string"
                    },
                    "accuracy": {
                        "type": "string"
                    },
                    "readiness": {
                        "type": "string"
                    },
                    "perception": {
                        "type": "string"
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "brand",
                    "market",
                    "period",
                    "models",
                    "visibility",
                    "accuracy",
                    "readiness",
                    "perception",
                    "livemode"
                ],
                "title": "PublicBrandMetricsResource"
            },
            "PublicBrandResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "brand"
                    },
                    "name": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "vertical": {
                        "type": "string",
                        "description": "What the brand sells: products, software / online services, or a physical establishment."
                    },
                    "site_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "logo_url": {
                        "type": "string",
                        "description": "Signed URL, valid 60 minutes."
                    },
                    "platform": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "name",
                    "slug",
                    "vertical",
                    "site_url",
                    "logo_url",
                    "platform",
                    "livemode",
                    "created"
                ],
                "title": "PublicBrandResource"
            },
            "PublicCompetitorResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "competitor"
                    },
                    "name": {
                        "type": "string"
                    },
                    "key": {
                        "type": "string",
                        "description": "Normalized identity of the brand in the answers (stable across spellings)."
                    },
                    "domain": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "logo_url": {
                        "type": "string",
                        "description": "The logo read on the competitor's site: a signed URL valid 60 minutes, null until one is found."
                    },
                    "market": {
                        "type": "string"
                    },
                    "origin": {
                        "$ref": "#/components/schemas/CompetitorOrigin"
                    },
                    "tracked": {
                        "type": "boolean"
                    },
                    "tracked_at": {
                        "type": "string"
                    },
                    "removed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "visibility": {},
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "name",
                    "key",
                    "domain",
                    "logo_url",
                    "market",
                    "origin",
                    "tracked",
                    "tracked_at",
                    "removed_at",
                    "livemode",
                    "created"
                ],
                "title": "PublicCompetitorResource"
            },
            "PublicCorrelationResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "visibility_revenue_correlation"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string"
                    },
                    "category": {
                        "type": "string"
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "categories": {
                        "type": "array",
                        "items": {}
                    },
                    "weeks": {
                        "type": "array",
                        "items": {}
                    },
                    "fixes": {
                        "type": "array",
                        "items": {}
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "brand",
                    "market",
                    "period",
                    "category",
                    "currency",
                    "categories",
                    "weeks",
                    "fixes",
                    "livemode"
                ],
                "title": "PublicCorrelationResource"
            },
            "PublicCreateShareLinkRequest": {
                "type": "object",
                "description": "POST /v1/brands/{brand}/share-links \u2014 the scope is checked on the route.",
                "properties": {
                    "kind": {
                        "$ref": "#/components/schemas/PublicLinkKind"
                    },
                    "market": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 2,
                        "maxLength": 2
                    },
                    "expires_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                },
                "required": [
                    "kind"
                ],
                "title": "PublicCreateShareLinkRequest"
            },
            "PublicDeletedTaskResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "task"
                    },
                    "deleted": {
                        "type": "boolean"
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "id",
                    "object",
                    "deleted",
                    "livemode"
                ],
                "title": "PublicDeletedTaskResource"
            },
            "PublicDismissAlertRequest": {
                "type": "object",
                "description": "POST /v1/brands/{brand}/alerts/{alert}/dismiss \u2014 `mute` also stops the\nsubject from raising an alert again, on every market (SKO-451).",
                "properties": {
                    "mute": {
                        "type": "boolean",
                        "description": "Never raise this subject again: the same competitor, product, query, establishment or SEO signal, on every market."
                    }
                },
                "title": "PublicDismissAlertRequest"
            },
            "PublicDismissInboxItemsRequest": {
                "type": "object",
                "description": "POST /v1/brands/{brand}/inbox/dismiss \u2014 the scopes are checked on the\nroute. `items` are composite ids of lines of `GET \u2026/inbox`.",
                "properties": {
                    "market": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Defaults to the brand's primary market, like GET \u2026/inbox.",
                        "maxLength": 8
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 512
                        },
                        "minItems": 1,
                        "maxItems": 100
                    }
                },
                "required": [
                    "items"
                ],
                "title": "PublicDismissInboxItemsRequest"
            },
            "PublicEventResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "event"
                    },
                    "type": {
                        "type": "string"
                    },
                    "api_version": {
                        "type": "string"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "brand": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "data": {
                        "type": "object",
                        "properties": {
                            "object": {
                                "type": "object",
                                "additionalProperties": {}
                            },
                            "previous_attributes": {
                                "type": "object",
                                "additionalProperties": {}
                            }
                        },
                        "required": [
                            "object"
                        ]
                    }
                },
                "required": [
                    "id",
                    "object",
                    "type",
                    "api_version",
                    "created",
                    "livemode",
                    "brand",
                    "data"
                ],
                "title": "PublicEventResource"
            },
            "PublicInboxDismissalResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "inbox_dismissal"
                    },
                    "market": {
                        "type": "string",
                        "examples": [
                            "FR"
                        ]
                    },
                    "dismissed": {
                        "type": "array",
                        "description": "The lines now ignored on the market \u2014 those that already were included.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "skipped": {
                        "type": "array",
                        "description": "The ids left aside: `not_found` (not a line of the inbox of this market), `not_dismissible` (an alert, a task, a check, a listing, or a line locked by the plan), `has_open_fix` (a perception gap a fix is open on).",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "code": {
                                    "type": "string",
                                    "enum": [
                                        "not_found",
                                        "not_dismissible",
                                        "has_open_fix"
                                    ]
                                }
                            },
                            "required": [
                                "id",
                                "code"
                            ]
                        }
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "market",
                    "dismissed",
                    "skipped",
                    "livemode"
                ],
                "title": "PublicInboxDismissalResource"
            },
            "PublicInboxItemResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "inbox_item"
                    },
                    "id": {
                        "type": "string",
                        "description": "`{kind}:{identity}` (`alert:{uuid}`, `readiness:{check}`, `perception:{product}:{gap}`\u2026), stable while the object holds. Not a prefixed id: a line is not a record.",
                        "examples": [
                            "alert:0199a3c2-7a4e-7c1b-9d2f-3e8b1c5a6f70"
                        ]
                    },
                    "kind": {
                        "type": "string",
                        "description": "The object behind the line: `alert`, `task`, a failing `readiness_check` or `seo_check`, a `perception_gap`, a vacant territory (`opportunity`), a site to win (`source_gap`), a query that lacks a page of the brand (`content_gap`), a finding of the Pages screen (`page_insight`), a `listing` of an establishment, or the identity sheets to review (`sheet_review`, one line per brand: `title` says how many; a sheet is read and validated in the Skoup catalogue).",
                        "enum": [
                            "alert",
                            "task",
                            "readiness_check",
                            "seo_check",
                            "perception_gap",
                            "opportunity",
                            "source_gap",
                            "content_gap",
                            "page_insight",
                            "listing",
                            "sheet_review"
                        ]
                    },
                    "group": {
                        "type": "string",
                        "description": "`now`: costs sales this week \u00b7 `week`: raises the visibility \u00b7 `later`: when you can \u00b7 `verified`: a task verified in the last 90 days.",
                        "enum": [
                            "now",
                            "week",
                            "later",
                            "verified"
                        ]
                    },
                    "score": {
                        "type": "integer",
                        "description": "The order inside the group, higher first. Compare within a group only."
                    },
                    "severity": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AlertSeverity"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Composed by Skoup, in English."
                    },
                    "impact": {
                        "type": "object",
                        "properties": {
                            "label": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "points": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "A measured number when the source counts one; `null` otherwise, never 0 for \u00ab unknown \u00bb."
                            },
                            "unit": {
                                "anyOf": [
                                    {
                                        "$ref": "#/components/schemas/InboxImpactUnit"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ]
                            },
                            "level": {
                                "anyOf": [
                                    {
                                        "description": "The impact of the line on one scale, to compare lines measured in different units: `high`, `medium` or `low` from `points` against per-unit thresholds; always `high` for a critical line; `null` when nothing is measured.",
                                        "$ref": "#/components/schemas/InboxImpactLevel"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ]
                            }
                        },
                        "required": [
                            "label",
                            "points",
                            "unit",
                            "level"
                        ]
                    },
                    "effort": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskEffort"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "type": {
                        "anyOf": [
                            {
                                "description": "What the line is about, whatever its kind: `audit` (AI readiness), `seo`, `perception` (what the assistants say), `traffic` (pages), `competitors`, `listing`, `visibility`. The task's type, the alert's, the source's; `null` for a manual task without one.\n| |\n|---|\n| `audit` <br/> AI readiness: the technical audit (robots, llms.txt, schemas, feed\u2026). |\n| `seo` <br/> The SEO checks and the regressions a crawl finds. |\n| `perception` <br/> What the assistants say: wrong, distorted or missing facts and differentiators. |\n| `traffic` <br/> The pages that turn citations into visits (Google, visits, AI citations). |\n| `competitors` <br/> The competitors: territories to take, sources to win, newcomers. |\n| `listing` <br/> The listings of an establishment (local vertical). |\n| `visibility` <br/> The brand's share of answers (a drop in visibility). |",
                                "$ref": "#/components/schemas/TaskType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "market": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`null` for a task whose source names no market.",
                        "examples": [
                            "FR"
                        ]
                    },
                    "product": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "`id` = `prod_\u2026` when the line is about a catalogue product.",
                        "properties": {
                            "id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "title": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "title"
                        ]
                    },
                    "location": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    },
                    "models": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "alert": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The alert behind the line (`kind: alert`)."
                    },
                    "task": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The task behind the line (`kind: task`).",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "status": {
                                "$ref": "#/components/schemas/TaskStatus"
                            }
                        },
                        "required": [
                            "id",
                            "status"
                        ]
                    },
                    "plan_feature": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The plan feature the line needs and the workspace lacks: the line is listed locked, never hidden.",
                        "enum": [
                            "opportunities",
                            null
                        ]
                    },
                    "last_seen_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "evidence": {
                        "description": "The proof behind the line, for the lines whose own endpoint does not carry it: a `perception_gap` (verdict, what the answers say, what the sheet says, up to three occurrences \u2014 model, query, date, passage of the answer) and a `source_gap` (each cited page, when it was last cited, and whether Skoup read it and found the brand named there). `null` for the other kinds \u2014 an alert's proof is `GET /v1/brands/{brand}/alerts/{alert}`.",
                        "anyOf": [
                            {
                                "type": "object",
                                "properties": {
                                    "verdict": {
                                        "type": "string",
                                        "enum": [
                                            "absent",
                                            "distorted",
                                            "false"
                                        ]
                                    },
                                    "element": {
                                        "type": "string"
                                    },
                                    "label": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "claim": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "expected": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "facts": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "additionalProperties": {
                                            "type": [
                                                "string",
                                                "number",
                                                "null"
                                            ]
                                        }
                                    },
                                    "occurrences": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "model": {
                                                    "type": "string"
                                                },
                                                "query": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "observed_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "excerpt": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "model",
                                                "query",
                                                "observed_at",
                                                "excerpt"
                                            ]
                                        }
                                    }
                                },
                                "required": [
                                    "verdict",
                                    "element",
                                    "label",
                                    "claim",
                                    "expected",
                                    "facts",
                                    "occurrences"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "pages": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "url": {
                                                    "type": "string"
                                                },
                                                "cited_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "read_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "names_brand": {
                                                    "type": [
                                                        "boolean",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "url",
                                                "cited_at",
                                                "read_at",
                                                "names_brand"
                                            ]
                                        }
                                    },
                                    "competitors": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                },
                                "required": [
                                    "pages",
                                    "competitors"
                                ]
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "dismissed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "When the line was ignored on this market (`POST \u2026/inbox/dismiss`), `null` otherwise. Ignored lines are listed with `q=is:ignored` or `q=is:all` only."
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "id",
                    "kind",
                    "group",
                    "score",
                    "severity",
                    "title",
                    "impact",
                    "effort",
                    "type",
                    "market",
                    "product",
                    "location",
                    "models",
                    "alert",
                    "task",
                    "plan_feature",
                    "last_seen_at",
                    "evidence",
                    "dismissed_at",
                    "livemode"
                ],
                "title": "PublicInboxItemResource"
            },
            "PublicInboxRestorationResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "inbox_restoration"
                    },
                    "market": {
                        "type": "string",
                        "examples": [
                            "FR"
                        ]
                    },
                    "restored": {
                        "type": "array",
                        "description": "The lines proposed again on the market (a perception gap counts again in the score).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "skipped": {
                        "type": "array",
                        "description": "The ids left aside: `not_found` (not ignored on this market, or a perception gap no longer measured).",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "code": {
                                    "type": "string",
                                    "const": "not_found"
                                }
                            },
                            "required": [
                                "id",
                                "code"
                            ]
                        }
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "market",
                    "restored",
                    "skipped",
                    "livemode"
                ],
                "title": "PublicInboxRestorationResource"
            },
            "PublicInsightResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "insight"
                    },
                    "key": {
                        "type": "string",
                        "description": "Stable while the finding holds. @example low_ctr:3f2a9c\u2026"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "ranked_not_cited",
                            "cited_no_visits",
                            "low_ctr",
                            "declining",
                            "traffic_with_issues",
                            "ai_converts_less",
                            "tracking_gap",
                            "striking_distance",
                            "agent_reads_missing_page"
                        ]
                    },
                    "path": {
                        "type": "string",
                        "examples": [
                            "/velo-gravel"
                        ]
                    },
                    "url": {
                        "type": "string"
                    },
                    "facts": {
                        "type": "object",
                        "description": "The measured numbers of the rule; the keys depend on `kind`, rates and CTR are ratios (0\u20131).",
                        "properties": {
                            "position": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "impressions": {
                                "type": "integer"
                            },
                            "clicks": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "citations": {
                                "type": "integer"
                            },
                            "visits": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "ctr": {
                                "type": "number"
                            },
                            "expected_ctr": {
                                "type": "number"
                            },
                            "estimated_clicks": {
                                "type": "integer"
                            },
                            "prev_clicks": {
                                "type": "integer"
                            },
                            "prev_position": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "issues": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "ai_visits": {
                                "type": "integer"
                            },
                            "ai_rate": {
                                "type": "number"
                            },
                            "other_rate": {
                                "type": "number"
                            },
                            "analytics_sessions": {
                                "type": "integer"
                            },
                            "cited": {
                                "type": "boolean"
                            },
                            "reads": {
                                "type": "integer"
                            },
                            "not_found": {
                                "type": "integer"
                            },
                            "status": {
                                "type": "integer"
                            }
                        }
                    },
                    "has_open_task": {
                        "type": "boolean",
                        "description": "A Skoup task opened from this finding is still open."
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "key",
                    "kind",
                    "path",
                    "url",
                    "facts",
                    "has_open_task",
                    "livemode"
                ],
                "title": "PublicInsightResource"
            },
            "PublicLinkKind": {
                "type": "string",
                "description": "What a public link opens: a dated snapshot of the brand's visibility report (`report`, the apex page `/r/{token}`), or a live SVG badge to put on a site or a signature (`badge`, served by the API).\n",
                "enum": [
                    "report",
                    "badge"
                ],
                "title": "PublicLinkKind"
            },
            "PublicListingResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "listing"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "location": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The establishment the listing is about (`loc_\u2026`), null for a listing of the brand as a whole."
                    },
                    "platform": {
                        "type": "string",
                        "description": "A key of the platform registry (`google`, `doctolib`, `planity`\u2026), `other` for an unknown site."
                    },
                    "platform_label": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/ListingStatus"
                    },
                    "status_reason": {
                        "anyOf": [
                            {
                                "description": "Why the last read gave nothing (status `unreadable`).",
                                "$ref": "#/components/schemas/ListingStatusReason"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "facts": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The last facts read on the page \u2014 kept when a later read fails. Null until the first successful read.",
                        "properties": {
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "address": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "postal_code": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "city": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "phone": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "opening_hours": {
                                "type": [
                                    "array",
                                    "null"
                                ],
                                "items": {
                                    "type": "string"
                                }
                            },
                            "website": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "categories": {
                                "type": [
                                    "array",
                                    "null"
                                ],
                                "items": {
                                    "type": "string"
                                }
                            },
                            "description_length": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "services_count": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "photos_count": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "latitude": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "longitude": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "claimed": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Google only."
                            }
                        },
                        "required": [
                            "name",
                            "address",
                            "postal_code",
                            "city",
                            "phone",
                            "opening_hours",
                            "website",
                            "categories",
                            "description_length",
                            "services_count",
                            "photos_count",
                            "latitude",
                            "longitude",
                            "claimed"
                        ]
                    },
                    "stats": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Review aggregates only: never a text or an author. A null figure was not read, it is not 0.",
                        "properties": {
                            "rating": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "reviews_count": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "last_review_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "rating",
                            "reviews_count",
                            "last_review_at"
                        ]
                    },
                    "checked_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last read, successful or not. Null while `pending`."
                    },
                    "facts_changed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last time a fact changed between two reads (the first read is not a change)."
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "location",
                    "platform",
                    "platform_label",
                    "url",
                    "status",
                    "status_reason",
                    "facts",
                    "stats",
                    "checked_at",
                    "facts_changed_at",
                    "livemode",
                    "created"
                ],
                "title": "PublicListingResource"
            },
            "PublicLocationResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "location"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string",
                        "description": "The market's ISO 3166-1 alpha-2 code, e.g. `FR`."
                    },
                    "name": {
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "region": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "postal_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "opening_hours": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "source": {
                        "$ref": "#/components/schemas/LocationSource"
                    },
                    "tracked": {
                        "type": "boolean",
                        "description": "Whether the query panel writes queries for it."
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "market",
                    "name",
                    "city",
                    "region",
                    "postal_code",
                    "address",
                    "phone",
                    "opening_hours",
                    "url",
                    "source",
                    "tracked",
                    "livemode",
                    "created"
                ],
                "title": "PublicLocationResource"
            },
            "PublicMarketResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "market"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string",
                        "description": "ISO 3166-1 alpha-2, e.g. `FR` \u2014 the `market` parameter of the other endpoints."
                    },
                    "language": {
                        "type": "string"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/MarketStatus"
                    },
                    "source": {
                        "$ref": "#/components/schemas/MarketSource"
                    },
                    "domain": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "locality": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "city": {
                                "type": "string"
                            },
                            "region": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "address": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "phone": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "opening_hours": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "city",
                            "region",
                            "address",
                            "phone",
                            "opening_hours"
                        ]
                    },
                    "is_primary": {
                        "type": "boolean"
                    },
                    "activated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "code",
                    "language",
                    "currency",
                    "status",
                    "source",
                    "domain",
                    "locality",
                    "is_primary",
                    "activated_at",
                    "livemode",
                    "created"
                ],
                "title": "PublicMarketResource"
            },
            "PublicOrderResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "order"
                    },
                    "source": {
                        "$ref": "#/components/schemas/OrderSource"
                    },
                    "order_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "ordered_at": {
                        "type": "string"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "subtotal": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total": {
                        "type": "string"
                    },
                    "items_count": {
                        "type": "integer"
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "ai_surface": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Key of the AI surface the order is attributed to (chatgpt, claude, gemini, perplexity\u2026), null = not attributed."
                    },
                    "attribution_signal": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/AttributionSignal"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "referrer_host": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "landing_path": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "landing_product": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "utm_source": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "utm_medium": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "utm_campaign": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "lines": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "product": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Null when the line matches no product of the catalogue."
                                },
                                "title": {
                                    "type": "string"
                                },
                                "sku": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "quantity": {
                                    "type": "integer"
                                },
                                "unit_price": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "total": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "product",
                                "title",
                                "sku",
                                "quantity",
                                "unit_price",
                                "total"
                            ]
                        }
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "source",
                    "order_number",
                    "ordered_at",
                    "currency",
                    "subtotal",
                    "total",
                    "items_count",
                    "country",
                    "ai_surface",
                    "attribution_signal",
                    "referrer_host",
                    "landing_path",
                    "landing_product",
                    "utm_source",
                    "utm_medium",
                    "utm_campaign",
                    "lines",
                    "livemode",
                    "created"
                ],
                "title": "PublicOrderResource"
            },
            "PublicPageSignalResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "page_signal"
                    },
                    "path": {
                        "type": "string",
                        "description": "The normalised path, the key every source is joined on. @example /velo-gravel"
                    },
                    "url": {
                        "type": "string",
                        "examples": [
                            "https://nordvelo.com/velo-gravel"
                        ]
                    },
                    "google": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Google Search Console, 28 days; `ctr` is a ratio (0\u20131), `prev_*` the 28 days before. `null` = Search Console not connected.",
                        "properties": {
                            "clicks": {
                                "type": "integer"
                            },
                            "impressions": {
                                "type": "integer"
                            },
                            "ctr": {
                                "type": "number"
                            },
                            "position": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "prev_clicks": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "prev_impressions": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "prev_position": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "clicks",
                            "impressions",
                            "ctr",
                            "position",
                            "prev_clicks",
                            "prev_impressions",
                            "prev_position"
                        ]
                    },
                    "traffic": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Visits measured by the Skoup script, 28 days. `null` = script not installed.",
                        "properties": {
                            "visits": {
                                "type": "integer"
                            },
                            "engaged_visits": {
                                "type": "integer"
                            },
                            "ai_visits": {
                                "type": "integer"
                            },
                            "transactions": {
                                "type": "integer"
                            },
                            "ai_transactions": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "visits",
                            "engaged_visits",
                            "ai_visits",
                            "transactions",
                            "ai_transactions"
                        ]
                    },
                    "analytics": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Google Analytics landing-page sessions, every channel summed, 28 days ending 3 days ago. `null` = GA4 not connected or not synced yet.",
                        "properties": {
                            "sessions": {
                                "type": "integer"
                            },
                            "organic_sessions": {
                                "type": "integer"
                            },
                            "conversions": {
                                "type": "integer"
                            },
                            "revenue": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "sessions",
                            "organic_sessions",
                            "conversions",
                            "revenue"
                        ]
                    },
                    "ai_orders": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Orders attributed to an AI assistant that landed on the page, 28 days. `null` = no order data on the market.",
                        "properties": {
                            "orders": {
                                "type": "integer"
                            },
                            "revenue": {
                                "type": "number"
                            },
                            "currency": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "orders",
                            "revenue",
                            "currency"
                        ]
                    },
                    "citations": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "AI answers citing the page, every model summed. `null` = no sampling in the window."
                    },
                    "citations_by_model": {
                        "type": "array",
                        "description": "The same citations per model; models that never cite the page are absent.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "model": {
                                    "type": "string"
                                },
                                "citations": {
                                    "type": "integer"
                                }
                            },
                            "required": [
                                "model",
                                "citations"
                            ]
                        }
                    },
                    "issues": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Problems of the latest crawl; empty `keys` = crawled without problem. `null` = no crawl yet.",
                        "properties": {
                            "keys": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "severity": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "error",
                                    "warning",
                                    null
                                ]
                            }
                        },
                        "required": [
                            "keys",
                            "severity"
                        ]
                    },
                    "agent_reads": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Reads of the page by AI agents (every kind, spoofed ones never), 28 days: `not_found` = answered 404 / 410, `unknown_status` = forwarded without a status (never a success), `status` = the page's current answer, known only for a page met as missing. `null` = the site's server forwards no agent read.",
                        "properties": {
                            "fetches": {
                                "type": "integer"
                            },
                            "not_found": {
                                "type": "integer"
                            },
                            "unknown_status": {
                                "type": "integer"
                            },
                            "status": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "fetches",
                            "not_found",
                            "unknown_status",
                            "status"
                        ]
                    },
                    "top_queries": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "Search Console's queries of the page, the 5 most clicked over 28 days (`ctr` a 0\u20131 ratio); empty = none in Search Console's top; `null` = Search Console not connected. All of them: `GET /v1/brands/{brand}/search-queries?page=`.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "query": {
                                    "type": "string"
                                },
                                "clicks": {
                                    "type": "integer"
                                },
                                "impressions": {
                                    "type": "integer"
                                },
                                "ctr": {
                                    "type": "number"
                                },
                                "position": {
                                    "type": [
                                        "number",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "query",
                                "clicks",
                                "impressions",
                                "ctr",
                                "position"
                            ]
                        }
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "path",
                    "url",
                    "google",
                    "traffic",
                    "analytics",
                    "ai_orders",
                    "citations",
                    "citations_by_model",
                    "issues",
                    "agent_reads",
                    "top_queries",
                    "livemode"
                ],
                "title": "PublicPageSignalResource"
            },
            "PublicPanelCostResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "panel_cost"
                    },
                    "queries": {
                        "type": "integer"
                    },
                    "enabled_queries": {
                        "type": "integer"
                    },
                    "cadence": {
                        "$ref": "#/components/schemas/SamplingCadence"
                    },
                    "models": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AiModel"
                        }
                    },
                    "cadences": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "cadence": {
                                    "type": "string",
                                    "enum": [
                                        "weekly",
                                        "daily"
                                    ]
                                },
                                "available": {
                                    "type": "boolean"
                                },
                                "cost_per_query": {
                                    "type": "integer"
                                },
                                "monthly_cost": {
                                    "type": "integer"
                                },
                                "covered": {
                                    "type": "integer"
                                },
                                "beyond": {
                                    "type": "integer"
                                },
                                "measured_queries": {
                                    "type": "integer"
                                },
                                "runs_per_query": {
                                    "type": "integer"
                                },
                                "stable_queries": {
                                    "type": "integer"
                                },
                                "stable_runs_per_query": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ]
                                },
                                "stable_saving": {
                                    "type": "integer"
                                }
                            },
                            "required": [
                                "cadence",
                                "available",
                                "cost_per_query",
                                "monthly_cost",
                                "covered",
                                "beyond",
                                "measured_queries",
                                "runs_per_query",
                                "stable_queries",
                                "stable_runs_per_query",
                                "stable_saving"
                            ]
                        }
                    },
                    "currency": {
                        "type": "string",
                        "const": "eur"
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "queries",
                    "enabled_queries",
                    "cadence",
                    "models",
                    "cadences",
                    "currency",
                    "livemode"
                ],
                "title": "PublicPanelCostResource"
            },
            "PublicProductPerceptionResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "product_perception"
                    },
                    "product": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string"
                    },
                    "sheet_version": {
                        "type": "string"
                    },
                    "score": {
                        "type": "string"
                    },
                    "counts": {
                        "type": "string"
                    },
                    "by_model": {
                        "type": "string"
                    },
                    "attributes": {
                        "type": "string"
                    },
                    "gaps": {
                        "type": "string"
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "product",
                    "market",
                    "period",
                    "sheet_version",
                    "score",
                    "counts",
                    "by_model",
                    "attributes",
                    "gaps",
                    "livemode"
                ],
                "title": "PublicProductPerceptionResource"
            },
            "PublicProductRequest": {
                "type": "object",
                "description": "POST / PATCH of a manual product \u2014 same fields as the app's product form.",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 5000
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "vendor": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "sku": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "gtin": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "price": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 9999999999.99
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 3,
                        "maxLength": 3
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uri",
                        "maxLength": 2048
                    },
                    "image_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uri",
                        "maxLength": 2048
                    },
                    "status": {
                        "$ref": "#/components/schemas/ProductStatus"
                    },
                    "tags": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string",
                            "maxLength": 60
                        },
                        "maxItems": 50
                    },
                    "price_period": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PricePeriod"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "price_annual": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "Always the amount of one year, whatever the way the site writes it.",
                        "minimum": 0,
                        "maximum": 9999999999.99
                    },
                    "price_unit": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PriceUnit"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "addons": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "maxLength": 120
                                },
                                "price": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null = on quote.",
                                    "minimum": 0,
                                    "maximum": 9999999999.99
                                },
                                "period": {
                                    "anyOf": [
                                        {
                                            "$ref": "#/components/schemas/PricePeriod"
                                        },
                                        {
                                            "type": "null"
                                        }
                                    ]
                                },
                                "unit": {
                                    "anyOf": [
                                        {
                                            "$ref": "#/components/schemas/PriceUnit"
                                        },
                                        {
                                            "type": "null"
                                        }
                                    ]
                                }
                            },
                            "required": [
                                "name",
                                "price"
                            ]
                        },
                        "maxItems": 12
                    }
                },
                "required": [
                    "title"
                ],
                "title": "PublicProductRequest"
            },
            "PublicProductResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "product"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "source": {
                        "$ref": "#/components/schemas/ProductSource"
                    },
                    "read_only": {
                        "type": "boolean"
                    },
                    "external_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Identifier at the source (e.g. a Shopify GID), null for manual products."
                    },
                    "handle": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "vendor": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "sku": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "gtin": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "price": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Decimal string, e.g. \"1299.00\"."
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "price_period": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PricePeriod"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "price_annual": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Always the amount of one year, decimal string."
                    },
                    "price_unit": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PriceUnit"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "addons": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "price": {
                                    "type": [
                                        "number",
                                        "null"
                                    ]
                                },
                                "period": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "enum": [
                                        "month",
                                        "year",
                                        "once",
                                        null
                                    ]
                                },
                                "unit": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "enum": [
                                        "flat",
                                        "per_user",
                                        null
                                    ]
                                }
                            },
                            "required": [
                                "name",
                                "price",
                                "period",
                                "unit"
                            ]
                        }
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "image_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "$ref": "#/components/schemas/ProductStatus"
                    },
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "options": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "values": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "name",
                                "values"
                            ]
                        }
                    },
                    "variants": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "object": {
                                    "type": "string",
                                    "const": "variant"
                                },
                                "title": {
                                    "type": "string"
                                },
                                "sku": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "gtin": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "price": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "compare_at_price": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "inventory_quantity": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ]
                                },
                                "options": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "name": {
                                                "type": "string"
                                            },
                                            "value": {
                                                "type": "string"
                                            }
                                        },
                                        "required": [
                                            "name",
                                            "value"
                                        ]
                                    }
                                }
                            },
                            "required": [
                                "id",
                                "object",
                                "title",
                                "sku",
                                "gtin",
                                "price",
                                "compare_at_price",
                                "inventory_quantity",
                                "options"
                            ]
                        }
                    },
                    "synced_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    },
                    "updated": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "source",
                    "read_only",
                    "external_id",
                    "handle",
                    "title",
                    "description",
                    "vendor",
                    "category",
                    "sku",
                    "gtin",
                    "price",
                    "currency",
                    "price_period",
                    "price_annual",
                    "price_unit",
                    "addons",
                    "url",
                    "image_url",
                    "status",
                    "tags",
                    "options",
                    "variants",
                    "synced_at",
                    "livemode",
                    "created",
                    "updated"
                ],
                "title": "PublicProductResource"
            },
            "PublicQueryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "query"
                    },
                    "text": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "intent": {
                        "$ref": "#/components/schemas/PromptIntent"
                    },
                    "source": {
                        "$ref": "#/components/schemas/PromptSource"
                    },
                    "enabled": {
                        "type": "boolean"
                    },
                    "visibility": {
                        "description": "Share (%) of the answers citing the brand over the period \u2014 null before any measurement."
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "text",
                    "market",
                    "category",
                    "intent",
                    "source",
                    "enabled",
                    "visibility",
                    "livemode",
                    "created"
                ],
                "title": "PublicQueryResource"
            },
            "PublicReadinessScoreResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "readiness_score"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "score": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "previous_score": {},
                    "trigger": {
                        "$ref": "#/components/schemas/ReadinessTrigger"
                    },
                    "blocks": {
                        "type": "array",
                        "items": {}
                    },
                    "computed_at": {
                        "type": "string"
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "brand",
                    "market",
                    "score",
                    "previous_score",
                    "trigger",
                    "blocks",
                    "computed_at",
                    "livemode"
                ],
                "title": "PublicReadinessScoreResource"
            },
            "PublicResultsTimelineResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "results_timeline"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string",
                        "enum": [
                            "30d",
                            "90d",
                            "12m",
                            "since"
                        ]
                    },
                    "started_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "ISO-8601: the end of the brand's first sampling on the market."
                    },
                    "outcome_kind": {
                        "type": "string",
                        "enum": [
                            "orders",
                            "subscriptions",
                            "key_events"
                        ]
                    },
                    "currency": {
                        "type": "string"
                    },
                    "selected_events": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The site's key events (`key_events` only); null = every named event.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "category": {
                        "type": "string"
                    },
                    "categories": {
                        "type": "array",
                        "items": {}
                    },
                    "google": {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "string",
                                "enum": [
                                    "not_connected",
                                    "no_property",
                                    "syncing",
                                    "ok"
                                ]
                            }
                        },
                        "required": [
                            "status"
                        ]
                    },
                    "google_ai": {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "string",
                                "enum": [
                                    "not_connected",
                                    "no_property",
                                    "no_import",
                                    "stale",
                                    "fresh",
                                    "other_market"
                                ]
                            },
                            "last_day": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "imported_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "share": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "status",
                            "last_day",
                            "imported_at",
                            "share"
                        ]
                    },
                    "direct_on_cited": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "source": {
                                "type": "string",
                                "enum": [
                                    "script",
                                    "google_analytics"
                                ]
                            },
                            "sessions": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "from": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "to": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "pages": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "path": {
                                            "type": "string"
                                        },
                                        "sessions": {
                                            "type": "integer"
                                        },
                                        "cited_by": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "path",
                                        "sessions",
                                        "cited_by"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "source",
                            "sessions",
                            "from",
                            "to",
                            "pages"
                        ]
                    },
                    "ai_reads_pages": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The pages assistants read most to answer someone over the axis; null = the site never forwarded a read.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "path": {
                                    "type": "string"
                                },
                                "fetches": {
                                    "type": "integer"
                                },
                                "verified": {
                                    "type": "integer"
                                },
                                "errors": {
                                    "type": "integer"
                                },
                                "not_found": {
                                    "type": "integer"
                                },
                                "unknown_status": {
                                    "type": "integer"
                                },
                                "surfaces": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "path",
                                "fetches",
                                "verified",
                                "errors",
                                "not_found",
                                "unknown_status",
                                "surfaces"
                            ]
                        }
                    },
                    "weeks": {
                        "type": "array",
                        "items": {}
                    },
                    "markers": {
                        "type": "array",
                        "items": {}
                    },
                    "since": {
                        "type": "object",
                        "properties": {
                            "visibility": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "properties": {
                                    "first": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "week_start": {
                                                "type": "string"
                                            },
                                            "runs": {
                                                "type": "string"
                                            },
                                            "hits": {
                                                "type": "string"
                                            },
                                            "share": {
                                                "type": "string"
                                            },
                                            "by_model": {
                                                "type": "array",
                                                "items": {}
                                            }
                                        },
                                        "required": [
                                            "week_start",
                                            "runs",
                                            "hits",
                                            "share",
                                            "by_model"
                                        ]
                                    },
                                    "last": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "week_start": {
                                                "type": "string"
                                            },
                                            "runs": {
                                                "type": "string"
                                            },
                                            "hits": {
                                                "type": "string"
                                            },
                                            "share": {
                                                "type": "string"
                                            },
                                            "by_model": {
                                                "type": "array",
                                                "items": {}
                                            }
                                        },
                                        "required": [
                                            "week_start",
                                            "runs",
                                            "hits",
                                            "share",
                                            "by_model"
                                        ]
                                    },
                                    "delta_points": {
                                        "type": "string"
                                    },
                                    "interval": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "95 % half-width of `delta_points`, in points."
                                    },
                                    "interval_contains_zero": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "first",
                                    "last",
                                    "delta_points",
                                    "interval",
                                    "interval_contains_zero"
                                ]
                            },
                            "visits": {
                                "type": "object",
                                "properties": {
                                    "before": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "per_week": {
                                                "type": "number"
                                            },
                                            "source": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "enum": [
                                                    "script",
                                                    "google_analytics",
                                                    "mixed",
                                                    null
                                                ]
                                            }
                                        },
                                        "required": [
                                            "per_week",
                                            "source"
                                        ]
                                    },
                                    "after": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "per_week": {
                                                "type": "number"
                                            },
                                            "source": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "enum": [
                                                    "script",
                                                    "google_analytics",
                                                    "mixed",
                                                    null
                                                ]
                                            }
                                        },
                                        "required": [
                                            "per_week",
                                            "source"
                                        ]
                                    }
                                },
                                "required": [
                                    "before",
                                    "after"
                                ]
                            },
                            "outcome": {
                                "type": "object",
                                "properties": {
                                    "before": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "per_week": {
                                                "type": "number"
                                            },
                                            "value_per_week": {
                                                "type": [
                                                    "number",
                                                    "null"
                                                ]
                                            },
                                            "source": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            }
                                        },
                                        "required": [
                                            "per_week",
                                            "value_per_week",
                                            "source"
                                        ]
                                    },
                                    "after": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "per_week": {
                                                "type": "number"
                                            },
                                            "value_per_week": {
                                                "type": [
                                                    "number",
                                                    "null"
                                                ]
                                            },
                                            "source": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            }
                                        },
                                        "required": [
                                            "per_week",
                                            "value_per_week",
                                            "source"
                                        ]
                                    }
                                },
                                "required": [
                                    "before",
                                    "after"
                                ]
                            }
                        },
                        "required": [
                            "visibility",
                            "visits",
                            "outcome"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "brand",
                    "market",
                    "period",
                    "started_at",
                    "outcome_kind",
                    "currency",
                    "selected_events",
                    "category",
                    "categories",
                    "google",
                    "google_ai",
                    "direct_on_cited",
                    "ai_reads_pages",
                    "weeks",
                    "markers",
                    "since",
                    "livemode"
                ],
                "title": "PublicResultsTimelineResource"
            },
            "PublicSamplingResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "sampling"
                    },
                    "market": {
                        "type": "string"
                    },
                    "trigger": {
                        "$ref": "#/components/schemas/SamplingTrigger"
                    },
                    "status": {
                        "$ref": "#/components/schemas/SamplingStatus"
                    },
                    "query": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "week_starts_on": {
                        "type": "string"
                    },
                    "models": {
                        "type": "array",
                        "items": {}
                    },
                    "queries_count": {
                        "type": "integer"
                    },
                    "queries_enabled": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "runs_total": {
                        "type": "integer"
                    },
                    "runs_completed": {
                        "type": "integer"
                    },
                    "runs_failed": {
                        "type": "integer"
                    },
                    "brand_share": {
                        "description": "Share (%) of the answers citing the brand \u2014 null until the sampling is finalized."
                    },
                    "by_model": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "model": {
                                    "type": "string"
                                },
                                "runs": {
                                    "type": "integer"
                                },
                                "hits": {
                                    "type": "integer"
                                },
                                "avg_position": {
                                    "type": [
                                        "number",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "model",
                                "runs",
                                "hits",
                                "avg_position"
                            ]
                        }
                    },
                    "error": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "started_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "finished_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "market",
                    "trigger",
                    "status",
                    "query",
                    "week_starts_on",
                    "models",
                    "queries_count",
                    "queries_enabled",
                    "runs_total",
                    "runs_completed",
                    "runs_failed",
                    "brand_share",
                    "by_model",
                    "error",
                    "started_at",
                    "finished_at",
                    "livemode",
                    "created"
                ],
                "title": "PublicSamplingResource"
            },
            "PublicSearchQueryResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "search_query"
                    },
                    "query": {
                        "type": "string",
                        "examples": [
                            "v\u00e9lo gravel carbone"
                        ]
                    },
                    "page": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The page's normalised path, on every host of the site; null = the site's queries. @example /velo-gravel"
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The page's URL as Search Console names it; null for a site query."
                    },
                    "clicks": {
                        "type": "integer"
                    },
                    "impressions": {
                        "type": "integer"
                    },
                    "ctr": {
                        "type": "number",
                        "description": "A ratio (0\u20131)."
                    },
                    "position": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "Average position on Google; null = not ranked."
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "query",
                    "page",
                    "url",
                    "clicks",
                    "impressions",
                    "ctr",
                    "position",
                    "livemode"
                ],
                "title": "PublicSearchQueryResource"
            },
            "PublicShareLinkResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "share_link"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/PublicLinkKind"
                    },
                    "market_code": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "description": "A report: its public page. A badge: the page its image links to (the brand's active report, else skoup.ai)."
                    },
                    "badge_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The SVG image \u2014 badges only."
                    },
                    "embed": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The `<a><img></a>` to paste \u2014 badges only."
                    },
                    "snapshot_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "When the report was frozen \u2014 null for a badge, which is live."
                    },
                    "expires_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "revoked_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Set once revoked: the page and the badge answer 410."
                    },
                    "views": {
                        "type": "integer"
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "kind",
                    "market_code",
                    "url",
                    "badge_url",
                    "embed",
                    "snapshot_at",
                    "expires_at",
                    "revoked_at",
                    "views",
                    "livemode",
                    "created"
                ],
                "title": "PublicShareLinkResource"
            },
            "PublicShelfItemResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "shelf_item"
                    },
                    "id": {
                        "type": "string",
                        "description": "The product (`prod_\u2026`) or the establishment (`loc_\u2026`).",
                        "examples": [
                            "prod_5ZbXo1Z0hYV8sQnA3x1m2c"
                        ]
                    },
                    "kind": {
                        "$ref": "#/components/schemas/ShelfRowKind"
                    },
                    "title": {
                        "type": "string"
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The product's category \u2014 the city of an establishment."
                    },
                    "image_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "price": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Decimal string, in `currency`."
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state": {
                        "description": "`error`: an assistant states something false about it \u00b7 `absent`: its queries were asked, no answer named it \u00b7 `reinforce`: cited, but a differentiator does not come through or its perception is weak \u00b7 `good` \u00b7 `unmeasured`: no answer over the period.\n| |\n|---|\n| `error` <br/> \u00ab Une IA se trompe \u00bb: an open alert on it, or a false verdict of its perception. |\n| `absent` <br/> \u00ab Absent \u00bb: its queries were asked, no answer named it. |\n| `reinforce` <br/> \u00ab \u00c0 renforcer \u00bb: cited, but a differentiator does not come through or its perception is weak. |\n| `good` <br/> \u00ab Bien cit\u00e9 \u00bb. |\n| `unmeasured` <br/> \u00ab Non mesur\u00e9 \u00bb: no answer on its queries over the period. |",
                        "$ref": "#/components/schemas/ShelfState"
                    },
                    "state_reason": {
                        "type": "object",
                        "properties": {
                            "kind": {
                                "anyOf": [
                                    {
                                        "$ref": "#/components/schemas/ShelfReason"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ]
                            },
                            "model": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "alert_kind": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "element": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "label": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "count": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Occurrences of the alert \u00b7 answers of the false verdict \u00b7 queries never citing it \u00b7 differentiators absent \u00b7 the weak score."
                            }
                        },
                        "required": [
                            "kind",
                            "model",
                            "alert_kind",
                            "element",
                            "label",
                            "count"
                        ]
                    },
                    "share": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "Share of the answers to its queries naming it over the period, in %, on the models of `models=` (every measured model without). `null` = never measured, never 0."
                    },
                    "delta": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "Points gained or lost between the last two weekly cycles, on the same models. `null` without a previous cycle."
                    },
                    "by_model": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "model": {
                                    "type": "string"
                                },
                                "runs": {
                                    "type": "integer"
                                },
                                "hits": {
                                    "type": "integer"
                                },
                                "position": {
                                    "type": [
                                        "number",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "model",
                                "runs",
                                "hits",
                                "position"
                            ]
                        }
                    },
                    "trend": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "week_starts_on": {
                                    "type": "string"
                                },
                                "by_model": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "model": {
                                                "type": "string"
                                            },
                                            "runs": {
                                                "type": "integer"
                                            },
                                            "hits": {
                                                "type": "integer"
                                            }
                                        },
                                        "required": [
                                            "model",
                                            "runs",
                                            "hits"
                                        ]
                                    }
                                }
                            },
                            "required": [
                                "week_starts_on",
                                "by_model"
                            ]
                        }
                    },
                    "prompt_count": {
                        "type": "integer"
                    },
                    "leader": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The competitor recommended first most often on its queries.",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "brand_name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "name",
                            "brand_name"
                        ]
                    },
                    "perception_score": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Conforming \u00f7 verdicts, 0\u2013100; `null` before enough judged answers."
                    },
                    "ai_revenue": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "`null` without store orders.",
                        "properties": {
                            "amount": {
                                "type": "number"
                            },
                            "currency": {
                                "type": "string"
                            },
                            "orders": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "amount",
                            "currency",
                            "orders"
                        ]
                    },
                    "open_fixes": {
                        "type": "integer",
                        "description": "Its open lines in the inbox."
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "id",
                    "kind",
                    "title",
                    "category",
                    "image_url",
                    "price",
                    "currency",
                    "url",
                    "state",
                    "state_reason",
                    "share",
                    "delta",
                    "by_model",
                    "trend",
                    "prompt_count",
                    "leader",
                    "perception_score",
                    "ai_revenue",
                    "open_fixes",
                    "livemode"
                ],
                "title": "PublicShelfItemResource"
            },
            "PublicSiteChangeResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "site_change"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "task": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "alert": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "provider": {
                        "type": "string",
                        "enum": [
                            "github",
                            "wordpress",
                            "shopify"
                        ]
                    },
                    "status": {
                        "$ref": "#/components/schemas/SiteChangeStatus"
                    },
                    "checks": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "url": {
                        "description": "The pull request, or the WordPress draft's or the Shopify article's edit screen, where the client reviews it."
                    },
                    "files": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "rollback_of": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "error": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "opened_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "applied_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rollback_until": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rolled_back_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "task",
                    "alert",
                    "provider",
                    "status",
                    "checks",
                    "url",
                    "files",
                    "rollback_of",
                    "error",
                    "opened_at",
                    "applied_at",
                    "rollback_until",
                    "rolled_back_at",
                    "livemode",
                    "created"
                ],
                "title": "PublicSiteChangeResource"
            },
            "PublicSourceGapResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "source_gap"
                    },
                    "host": {
                        "type": "string",
                        "description": "The site, without `www.`. @example bikeradar.com"
                    },
                    "category": {
                        "type": "string",
                        "enum": [
                            "reseller",
                            "directory",
                            "forum",
                            "video",
                            "media"
                        ]
                    },
                    "answers_without_brand": {
                        "description": "Answers citing the site that name a competitor and not the brand, over the period.",
                        "type": "number"
                    },
                    "answers_with_brand": {
                        "description": "Answers citing the site that name the brand, over the period.",
                        "type": "number"
                    },
                    "queries": {
                        "type": "string",
                        "description": "Distinct queries behind `answers_without_brand`."
                    },
                    "competitors": {
                        "type": "array",
                        "description": "The competitor brands named most often alongside the site.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "pages": {
                        "type": "array",
                        "description": "Up to three pages of the site the answers cite.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "cited_pages": {
                        "type": "array",
                        "description": "The same pages, each with when the answers last cited it and how Skoup last read it: `read_at` (null = never read), `names_brand` (`true` / `false`; null = not read, or unreadable \u2014 an error, a refused address, not HTML). A source whose pages all name the brand is no longer a source to win: it is not listed.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "url": {
                                    "type": "string"
                                },
                                "cited_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "read_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "names_brand": {
                                    "type": [
                                        "boolean",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "url",
                                "cited_at",
                                "read_at",
                                "names_brand"
                            ]
                        }
                    },
                    "last_cited_at": {
                        "type": "string",
                        "description": "ISO-8601 UTC."
                    },
                    "has_open_task": {
                        "type": "string"
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "host",
                    "category",
                    "answers_without_brand",
                    "answers_with_brand",
                    "queries",
                    "competitors",
                    "pages",
                    "cited_pages",
                    "last_cited_at",
                    "has_open_task",
                    "livemode"
                ],
                "title": "PublicSourceGapResource"
            },
            "PublicStartSamplingRequest": {
                "type": "object",
                "description": "POST /v1/brands/{brand}/samplings \u2014 the scope is checked by the route.",
                "properties": {
                    "market": {
                        "type": "string",
                        "description": "An activated market of the brand (ISO 3166-1 alpha-2).",
                        "minLength": 2,
                        "maxLength": 2
                    }
                },
                "required": [
                    "market"
                ],
                "title": "PublicStartSamplingRequest"
            },
            "PublicStoreQueryRequest": {
                "type": "object",
                "description": "POST /v1/brands/{brand}/queries \u2014 the scope is checked by the route.",
                "properties": {
                    "text": {
                        "type": "string",
                        "maxLength": 300
                    },
                    "market": {
                        "type": "string",
                        "description": "An activated market of the brand (ISO 3166-1 alpha-2).",
                        "minLength": 2,
                        "maxLength": 2
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    }
                },
                "required": [
                    "text",
                    "market"
                ],
                "title": "PublicStoreQueryRequest"
            },
            "PublicStoreTaskRequest": {
                "type": "object",
                "description": "POST /v1/brands/{brand}/tasks \u2014 the scope is checked on the route. No\nassignee: the public API never exposes workspace members.",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 2000
                    },
                    "kind": {
                        "description": "Internal (write-back, content, technical): optional, content by default.",
                        "$ref": "#/components/schemas/TaskKind"
                    },
                    "type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "effort": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskEffort"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "product": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "impact": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "source_label": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    }
                },
                "required": [
                    "title"
                ],
                "title": "PublicStoreTaskRequest"
            },
            "PublicSubscriptionsResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "ai_subscriptions"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string"
                    },
                    "from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "to": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_synced_at": {
                        "type": "string"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "new": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "subscriptions": {
                                "type": "string"
                            },
                            "mrr": {
                                "type": "string"
                            },
                            "previous_subscriptions": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "subscriptions",
                            "mrr",
                            "previous_subscriptions"
                        ]
                    },
                    "ai": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "subscriptions": {
                                "type": "string"
                            },
                            "mrr": {
                                "type": "string"
                            },
                            "share_of_subscriptions": {
                                "type": "string"
                            },
                            "share_of_mrr": {
                                "type": "string"
                            },
                            "previous_subscriptions": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "subscriptions",
                            "mrr",
                            "share_of_subscriptions",
                            "share_of_mrr",
                            "previous_subscriptions"
                        ]
                    },
                    "tracked_share": {
                        "type": "string"
                    },
                    "surfaces": {
                        "type": "array",
                        "items": {}
                    },
                    "weeks": {
                        "type": "array",
                        "items": {}
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "brand",
                    "market",
                    "period",
                    "from",
                    "to",
                    "last_synced_at",
                    "currency",
                    "new",
                    "ai",
                    "tracked_share",
                    "surfaces",
                    "weeks",
                    "livemode"
                ],
                "title": "PublicSubscriptionsResource"
            },
            "PublicTakeInboxItemRequest": {
                "type": "object",
                "description": "POST /v1/brands/{brand}/inbox/take \u2014 the scopes are checked on the route.\n`item` is the composite id of a line of `GET \u2026/inbox`.",
                "properties": {
                    "market": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Defaults to the brand's primary market, like GET \u2026/inbox.",
                        "maxLength": 8
                    },
                    "item": {
                        "type": "string",
                        "maxLength": 500
                    }
                },
                "required": [
                    "item"
                ],
                "title": "PublicTakeInboxItemRequest"
            },
            "PublicTaskPlanResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "task_plan"
                    },
                    "task": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/TaskPlanStatus"
                    },
                    "content": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "summary": {
                                "type": "string"
                            },
                            "steps": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "title": {
                                            "type": "string"
                                        },
                                        "detail": {
                                            "type": "string"
                                        },
                                        "where": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "title",
                                        "detail",
                                        "where"
                                    ]
                                }
                            },
                            "verification": {
                                "type": "string"
                            },
                            "caveats": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "summary",
                            "steps",
                            "verification",
                            "caveats"
                        ]
                    },
                    "platform": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/BrandPlatform"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "locale": {
                        "type": "string"
                    },
                    "generated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "task",
                    "status",
                    "content",
                    "platform",
                    "locale",
                    "generated_at",
                    "livemode"
                ],
                "title": "PublicTaskPlanResource"
            },
            "PublicTaskResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "task"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Cut to 280 characters in a list; whole on the task itself."
                    },
                    "status": {
                        "$ref": "#/components/schemas/TaskStatus"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/TaskKind"
                    },
                    "type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "effort": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskEffort"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "source": {
                        "$ref": "#/components/schemas/TaskSource"
                    },
                    "source_label": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "market": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The market the task is about (ISO 3166-1 alpha-2); null for a task of the whole brand."
                    },
                    "product": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "impact": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "impact_points": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The points the fix would win, when its source measures them (readiness, perception); null otherwise."
                    },
                    "gain": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "guide": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "topic": {
                                "type": "string"
                            },
                            "platform": {
                                "type": "string",
                                "enum": [
                                    "shopify",
                                    "generic"
                                ]
                            },
                            "steps": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "topic",
                            "platform",
                            "steps"
                        ]
                    },
                    "assignee": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "name"
                        ]
                    },
                    "started_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "published_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "verify_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "verified_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "verified_via": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskVerifiedVia"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "verification": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "reason": {
                                "$ref": "#/components/schemas/VerificationReason"
                            },
                            "facts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "additionalProperties": {}
                            },
                            "last_checked_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "next_check_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "reason",
                            "facts",
                            "last_checked_at",
                            "next_check_at"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    },
                    "updated": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "title",
                    "description",
                    "status",
                    "kind",
                    "type",
                    "effort",
                    "source",
                    "source_label",
                    "market",
                    "product",
                    "impact",
                    "impact_points",
                    "gain",
                    "assignee",
                    "started_at",
                    "published_at",
                    "verify_at",
                    "verified_at",
                    "verified_via",
                    "verification",
                    "livemode",
                    "created",
                    "updated"
                ],
                "title": "PublicTaskResource"
            },
            "PublicTrafficResource": {
                "type": "object",
                "properties": {
                    "object": {
                        "type": "string",
                        "const": "ai_traffic"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "market": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string"
                    },
                    "from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "to": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_hit_at": {
                        "type": "string"
                    },
                    "conversion_metric": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "transactions",
                            "key_events",
                            null
                        ]
                    },
                    "ai": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "sessions": {
                                "type": "string"
                            },
                            "transactions": {
                                "type": "string"
                            },
                            "key_events": {
                                "type": "string"
                            },
                            "converted_sessions": {
                                "type": "string"
                            },
                            "conversion_rate": {
                                "type": "string"
                            },
                            "share_of_sessions": {
                                "type": "string"
                            },
                            "previous_sessions": {
                                "type": "string"
                            },
                            "sessions_change": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "sessions",
                            "transactions",
                            "key_events",
                            "converted_sessions",
                            "conversion_rate",
                            "share_of_sessions",
                            "previous_sessions",
                            "sessions_change"
                        ]
                    },
                    "site": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "sessions": {
                                "type": "string"
                            },
                            "transactions": {
                                "type": "string"
                            },
                            "key_events": {
                                "type": "string"
                            },
                            "converted_sessions": {
                                "type": "string"
                            },
                            "conversion_rate": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "sessions",
                            "transactions",
                            "key_events",
                            "converted_sessions",
                            "conversion_rate"
                        ]
                    },
                    "surfaces": {
                        "type": "array",
                        "items": {}
                    },
                    "weeks": {
                        "type": "array",
                        "items": {}
                    },
                    "first_touch": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "window_days": {
                                "type": "string"
                            },
                            "conversions": {
                                "type": "string"
                            },
                            "ai_conversions": {
                                "type": "string"
                            },
                            "ai_share": {
                                "type": "string"
                            },
                            "surfaces": {
                                "type": "array",
                                "items": {}
                            }
                        },
                        "required": [
                            "window_days",
                            "conversions",
                            "ai_conversions",
                            "ai_share",
                            "surfaces"
                        ]
                    },
                    "measurement": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "script_since": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Calendar day (`Y-m-d`) the Skoup script started measuring."
                            },
                            "google_analytics": {
                                "type": "object",
                                "properties": {
                                    "connected": {
                                        "type": "boolean"
                                    },
                                    "since": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "First day read from Google Analytics."
                                    },
                                    "until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Last day read from Google Analytics."
                                    }
                                },
                                "required": [
                                    "connected",
                                    "since",
                                    "until"
                                ]
                            },
                            "source": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "script",
                                    "google_analytics",
                                    "mixed",
                                    null
                                ]
                            },
                            "previous_source": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "script",
                                    "google_analytics",
                                    "mixed",
                                    null
                                ]
                            }
                        },
                        "required": [
                            "script_since",
                            "google_analytics",
                            "source",
                            "previous_source"
                        ]
                    },
                    "direct_on_cited": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "source": {
                                "type": "string",
                                "enum": [
                                    "script",
                                    "google_analytics"
                                ]
                            },
                            "sessions": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Direct visits on every cited page; null when no sampling named a page."
                            },
                            "from": {
                                "type": "string",
                                "description": "First day counted (`Y-m-d`)."
                            },
                            "to": {
                                "type": "string",
                                "description": "Last day counted (`Y-m-d`)."
                            },
                            "pages": {
                                "type": "array",
                                "items": {}
                            }
                        },
                        "required": [
                            "source",
                            "sessions",
                            "from",
                            "to",
                            "pages"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "object",
                    "brand",
                    "market",
                    "period",
                    "from",
                    "to",
                    "last_hit_at",
                    "conversion_metric",
                    "ai",
                    "site",
                    "surfaces",
                    "weeks",
                    "first_touch",
                    "measurement",
                    "direct_on_cited",
                    "livemode"
                ],
                "title": "PublicTrafficResource"
            },
            "PublicUpdateAlertRequest": {
                "type": "object",
                "description": "PATCH /v1/brands/{brand}/alerts/{alert} \u2014 the fields of the alert's fix\n(an alert IS its fix since 2026-10-14). The status moves through its\nown endpoints (`start`, `treat`, `dismiss`, `verify`).",
                "properties": {
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "A note on the fix, free text.",
                        "maxLength": 2000
                    },
                    "effort": {
                        "anyOf": [
                            {
                                "description": "`s`, `m` or `l`.",
                                "$ref": "#/components/schemas/TaskEffort"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "verify_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time",
                        "description": "When the measurement should tell \u2014 set to the next weekly sampling when the alert is treated, if empty."
                    }
                },
                "title": "PublicUpdateAlertRequest"
            },
            "PublicUpdateQueryRequest": {
                "type": "object",
                "description": "PATCH /v1/brands/{brand}/queries/{query} \u2014 re-enabling goes through the quota.",
                "properties": {
                    "text": {
                        "type": "string",
                        "maxLength": 300
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "enabled": {
                        "type": "boolean"
                    }
                },
                "title": "PublicUpdateQueryRequest"
            },
            "PublicUpdateTaskRequest": {
                "type": "object",
                "description": "PATCH /v1/brands/{brand}/tasks/{task} \u2014 editable fields and/or `status`\n(forward any number of columns, back one at a time) with the measured `gain` when verifying.",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 2000
                    },
                    "kind": {
                        "$ref": "#/components/schemas/TaskKind"
                    },
                    "type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "effort": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TaskEffort"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "product": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "impact": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "source_label": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 120
                    },
                    "verify_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "status": {
                        "$ref": "#/components/schemas/TaskStatus"
                    },
                    "gain": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    }
                },
                "title": "PublicUpdateTaskRequest"
            },
            "PublicWebhookEndpointRequest": {
                "type": "object",
                "description": "Body of POST / PATCH /v1/webhook_endpoints. Brands are public `br_` ids;\nevent types are checked against the catalog by SaveWebhookEndpoint.",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "enabled_events": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 64
                        },
                        "minItems": 1
                    },
                    "brands": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "disabled": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "url",
                    "enabled_events"
                ],
                "title": "PublicWebhookEndpointRequest"
            },
            "PublicWebhookEndpointResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "webhook_endpoint"
                    },
                    "url": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "enabled_events": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "brands": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {}
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "enabled",
                            "disabled"
                        ]
                    },
                    "api_version": {
                        "type": "string"
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    },
                    "secret": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "object",
                    "url",
                    "description",
                    "enabled_events",
                    "brands",
                    "status",
                    "api_version",
                    "livemode",
                    "created"
                ],
                "title": "PublicWebhookEndpointResource"
            },
            "PublicWriteBackResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "object": {
                        "type": "string",
                        "const": "write_back"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "product": {
                        "type": "string"
                    },
                    "task": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "$ref": "#/components/schemas/WriteBackStatus"
                    },
                    "changes": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "field": {
                                    "type": "string",
                                    "enum": [
                                        "description_html",
                                        "seo_title",
                                        "seo_description",
                                        "barcode"
                                    ]
                                },
                                "variant_external_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "variant_title": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "before": {
                                    "type": "string"
                                },
                                "after": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "field",
                                "variant_external_id",
                                "variant_title",
                                "before",
                                "after"
                            ]
                        }
                    },
                    "error": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "applied_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rollback_until": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Last moment a rollback is possible (in the app); NULL once rolled back or failed."
                    },
                    "rolled_back_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "livemode": {
                        "type": "boolean"
                    },
                    "created": {
                        "type": "integer",
                        "description": "Time at which the object was created (unix timestamp, seconds)."
                    }
                },
                "required": [
                    "id",
                    "object",
                    "brand",
                    "product",
                    "task",
                    "status",
                    "changes",
                    "error",
                    "applied_at",
                    "rollback_until",
                    "rolled_back_at",
                    "livemode",
                    "created"
                ],
                "title": "PublicWriteBackResource"
            },
            "ReadinessTrigger": {
                "type": "string",
                "enum": [
                    "crawl",
                    "sync",
                    "declaration",
                    "manual",
                    "seed"
                ],
                "title": "ReadinessTrigger"
            },
            "SamplingCadence": {
                "type": "string",
                "description": "How often a brand's panel is sampled (`brands.sampling_cadence`, stamped on every sampling as `samplings.cadence`): weekly \u00d7 4 runs per prompt (default) or daily \u00d7 1 run (Growth and above). Runs and cycles per month live in config('skoup.billing.cadences').\n",
                "enum": [
                    "weekly",
                    "daily"
                ],
                "title": "SamplingCadence"
            },
            "SamplingStatus": {
                "type": "string",
                "enum": [
                    "queued",
                    "running",
                    "completed",
                    "failed"
                ],
                "title": "SamplingStatus"
            },
            "SamplingTrigger": {
                "type": "string",
                "description": "What started a sampling. `onboarding` is the first sampling of a brand, launched when the owner closes the stepper (day 0). `targeted` re-runs a single query from the query drawer \u2014 it always carries a `prompt_id`. `prospecting` is the single measure of a prospect workspace, started by the panel (Prospecting\\Actions\\Workspace) \u2014 or again by \u00ab Remesurer \u00bb once the team reworked the queries: never charged, never batched (ClaudeBatch is for the Monday cycle), capped by `prospecting.workspace.daily_cap`. `on_demand` is a full sampling of one market a member starts with \u00ab Lancer un sampling \u00bb (Le E, 2026-11-03): paid like any action on demand (refused when nothing is left to spend, never batched), a measure like the others except that it never counts towards resolving a treated alert.\n",
                "enum": [
                    "onboarding",
                    "scheduled",
                    "manual",
                    "targeted",
                    "prospecting",
                    "on_demand"
                ],
                "title": "SamplingTrigger"
            },
            "ShelfReason": {
                "type": "string",
                "description": "Why a line of the shelf is in its state \u2014 the short reason the front words (\u00ab Prix faux \u00b7 ChatGPT \u00bb, \u00ab Absent \u00b7 6 requ\u00eates \u00bb, \u00ab \u00c0 renforcer \u00b7 USP absente \u00bb). A good or unmeasured line has none.\n| |\n|---|\n| `alert` <br/> An open alert on the product / establishment (price, stock, invented spec, local fact). |\n| `perception_false` <br/> A perception gap judged false (a spec, the price\u2026) not carried by an alert. |\n| `never_cited` <br/> Its queries were asked, no answer named it. |\n| `usp_absent` <br/> A differentiator of its sheet missing from too many of the answers. |\n| `weak_perception` <br/> Its perception score is under the threshold. |",
                "enum": [
                    "alert",
                    "perception_false",
                    "never_cited",
                    "usp_absent",
                    "weak_perception"
                ],
                "title": "ShelfReason"
            },
            "ShelfRowKind": {
                "type": "string",
                "description": "What a line of the shelf is: a catalogue product (an offer for a SaaS brand \u2014 the word changes, not the object) or an establishment of a local brand.\n",
                "enum": [
                    "product",
                    "location"
                ],
                "title": "ShelfRowKind"
            },
            "ShelfState": {
                "type": "string",
                "description": "The state of one line of the shelf of the home \u2014 a product (an establishment for a local brand) as the assistants treat it on a market. Decided by Visibility\\Services\\ShelfStateJudge alone, never by the front; the thresholds live in `config('skoup.visibility.shelf')`.\n| |\n|---|\n| `error` <br/> \u00ab Une IA se trompe \u00bb: an open alert on it, or a false verdict of its perception. |\n| `absent` <br/> \u00ab Absent \u00bb: its queries were asked, no answer named it. |\n| `reinforce` <br/> \u00ab \u00c0 renforcer \u00bb: cited, but a differentiator does not come through or its perception is weak. |\n| `good` <br/> \u00ab Bien cit\u00e9 \u00bb. |\n| `unmeasured` <br/> \u00ab Non mesur\u00e9 \u00bb: no answer on its queries over the period. |",
                "enum": [
                    "error",
                    "absent",
                    "reinforce",
                    "good",
                    "unmeasured"
                ],
                "title": "ShelfState"
            },
            "SiteChangeStatus": {
                "type": "string",
                "description": "Where a site fix sent to GitHub stands. `preparing` is a queue state (StuckState): the pull request is being written. `opened` = it waits on the client; `applied` = merged; `rolled_back` = undone by Skoup. `closed` (pull request closed without merge) and `failed` end without a change on the site.\n",
                "enum": [
                    "preparing",
                    "opened",
                    "applied",
                    "closed",
                    "failed",
                    "rolled_back"
                ],
                "title": "SiteChangeStatus"
            },
            "TaskEffort": {
                "type": "string",
                "description": "T-shirt sizing shown on the kanban cards (S \u00b7 < 1 h, M \u00b7 \u00bd journ\u00e9e, L \u00b7 2-3 j).\n",
                "enum": [
                    "s",
                    "m",
                    "l"
                ],
                "title": "TaskEffort"
            },
            "TaskKind": {
                "type": "string",
                "description": "Nature of the fix \u2014 matches the mockup filter pills (Write-back / Contenu / Technique). Write-back = applicable in one click on a Shopify product (description, SEO, barcode \u2014 SKO-151); everything else is done by hand, with a guide.\n",
                "enum": [
                    "writeback",
                    "content",
                    "technical"
                ],
                "title": "TaskKind"
            },
            "TaskPlanStatus": {
                "type": "string",
                "description": "A fix plan being written (`pending`), written (`ready`), or not written (`failed`: no provider key, the model failed or answered nothing usable \u2014 the task keeps its fixed guide, nothing is invented).\n",
                "enum": [
                    "pending",
                    "ready",
                    "failed"
                ],
                "title": "TaskPlanStatus"
            },
            "TaskSource": {
                "type": "string",
                "description": "Where the task came from: created by hand (\"+ Correctif manuel\"), from a failing SEO or readiness check, from a vacant territory on the Concurrents screen, from a source the assistants cite without the brand (\u00ab Sources \u00e0 conqu\u00e9rir \u00bb), or from a query where the assistants name competitors and never the brand (\u00ab Contenu manquant \u00bb). Never an alert: an alert is its own fix since 2026-10-14 (the tasks it opened before were folded into it).\n| |\n|---|\n| `manual` <br/>  |\n| `seo_check` <br/>  |\n| `readiness` <br/>  |\n| `opportunity` <br/>  |\n| `perception` <br/>  |\n| `source_gap` <br/>  |\n| `insight` <br/> A finding of the \u00ab Pages \u00bb screen (Insights\\Services\\InsightRules), its key in `source_check`. |\n| `listing` <br/> A gap of the \u00ab Fiches \u00bb report (Listings\\Services\\ListingReport): `listing:{id}:{kind}` or `listing_missing:{platform}` in `source_check`. |\n| `content_gap` <br/> A query of the market where competitors are named and the brand never is, two cycles in a row (Visibility\\Services\\QueryContentGaps): the query's uuid in `source_check`, the brief of the page to publish as plan. |",
                "enum": [
                    "manual",
                    "seo_check",
                    "readiness",
                    "opportunity",
                    "perception",
                    "source_gap",
                    "insight",
                    "listing",
                    "content_gap"
                ],
                "title": "TaskSource"
            },
            "TaskStatus": {
                "type": "string",
                "description": "Kanban columns of the \"\u00c0 traiter\" screen, in board order: \u00c0 faire \u2192 En cours \u2192 En v\u00e9rification \u2192 V\u00e9rifi\u00e9. Transitions move one column at a time (the card CTA moves forward, the \"\u2190\" button moves back); a verified task is terminal.\n",
                "enum": [
                    "todo",
                    "in_progress",
                    "in_verification",
                    "verified"
                ],
                "title": "TaskStatus"
            },
            "TaskType": {
                "type": "string",
                "description": "What a fix is about \u2014 the \u00ab Type \u00bb a task, an alert and every line of \u00ab Correctifs \u00bb carry (the Guigz, 2026-10-09): the theme of the thing to fix, not the nature of the work (TaskKind: write-back, content, technical, which stays internal). Derived once from the source of a generated task (TaskSource::type()) or the kind of an alert (AlertKind::type()); chosen, or left empty, on a manual task.\n| |\n|---|\n| `audit` <br/> AI readiness: the technical audit (robots, llms.txt, schemas, feed\u2026). |\n| `seo` <br/> The SEO checks and the regressions a crawl finds. |\n| `perception` <br/> What the assistants say: wrong, distorted or missing facts and differentiators. |\n| `traffic` <br/> The pages that turn citations into visits (Google, visits, AI citations). |\n| `competitors` <br/> The competitors: territories to take, sources to win, newcomers. |\n| `listing` <br/> The listings of an establishment (local vertical). |\n| `visibility` <br/> The brand's share of answers (a drop in visibility). |",
                "enum": [
                    "audit",
                    "seo",
                    "perception",
                    "traffic",
                    "competitors",
                    "listing",
                    "visibility"
                ],
                "title": "TaskType"
            },
            "TaskVerifiedVia": {
                "type": "string",
                "description": "How a fix was verified: proved by the measure (a sampling, a crawl, a readiness pass) or marked verified by hand. Only a verification by the measure is rewarded in Progression.\n",
                "enum": [
                    "measure",
                    "hand"
                ],
                "title": "TaskVerifiedVia"
            },
            "VerificationReason": {
                "type": "string",
                "description": "Why a fix in verification has no verdict yet (HerV\u00e9, 2026-11-02), written by RecordVerificationAttempt at every measure that did not prove it, with its facts (`tasks.verification_facts`): - `awaiting_sampling` \u2014 no measure taken since the publication yet (the   next sampling, crawl, audit or listing read will judge it); - `not_judged` \u2014 the measure came, but did not talk about it enough:   `{judged, min_runs}` answers that judged the element; - `still_observed` \u2014 the measure still sees the problem:   `{runs, by_model: {model: runs}, last_observed_at}` (perception), or no   facts (a \u00ab Pages \u00bb finding still on its page); - `check_not_ok` \u2014 the check of the crawl, the audit or the listing read   is not green: `{status}`; - `not_cited_yet` \u2014 the source, or the query, is still answered without   the brand; - `not_measurable` \u2014 Skoup cannot measure this fix (manual, opportunity,   ACP declaration, page with issues, ignored gap): it is verified by hand; - `market_unknown` \u2014 the fix's market is not measured (any more), or a   fix of the whole brand on a brand without a primary market.\n",
                "enum": [
                    "awaiting_sampling",
                    "not_judged",
                    "still_observed",
                    "check_not_ok",
                    "not_cited_yet",
                    "not_measurable",
                    "market_unknown"
                ],
                "title": "VerificationReason"
            },
            "WriteBackStatus": {
                "type": "string",
                "description": "- applied     \u2192 written in the store; reversible until `rollback_until`. - rolled_back \u2192 the \u00ab before \u00bb values were written back. - failed      \u2192 Shopify refused the write, nothing changed at the store.\n",
                "enum": [
                    "applied",
                    "rolled_back",
                    "failed"
                ],
                "title": "WriteBackStatus"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            }
        }
    }
}