{
  "openapi": "3.1.0",
  "info": {
    "title": "AON Public API",
    "version": "services-public-v0.1",
    "description": "Discover offers for AI products and agents, and read application-scoped offer performance. This definition covers Offer Query and Reporting v1/v2. OfferInfo, Offer Instance, Location Search, and webhooks are documented separately and are not yet included in this machine-readable export."
  },
  "servers": [
    {
      "url": "https://api.aon.pro"
    }
  ],
  "externalDocs": {
    "url": "https://docs.aon.pro/api",
    "description": "AON API documentation"
  },
  "tags": [
    {
      "name": "offers",
      "description": "Offer discovery and retrieval endpoints exposed by the platform."
    },
    {
      "name": "developer",
      "description": "Developer application, API key, profile, and analytics endpoints."
    }
  ],
  "paths": {
    "/v1/offers/query": {
      "post": {
        "tags": [
          "offers"
        ],
        "summary": "Search offers by intent",
        "description": "Current Offer Query contract for new integrations. Send exactly one `AON-Protocol-Version` header whose field value is exactly `1.0` to select this contract. If the header is omitted, the server falls back to the legacy 0.1 response shape (no `data.protocol_version`) for backward compatibility, so new integrations must always send it. A duplicated header, or an unknown, approximate, range, or otherwise non-exact selector, returns HTTP 400 `UNSUPPORTED_PROTOCOL_VERSION`; no fallback is performed for those. Successful responses echo `1.0` in both the response header and `data.protocol_version`, send `Vary: AON-Protocol-Version`, and return `data.offers[]` following the canonical public Offer v1.0 schema. The caller's identity for this endpoint is resolved from a placement, not an API key: pass body `placement_id`, or the `X-AON-Placement-Id` header (body takes precedence), or (production only, during the compatibility window) rely on a legacy API key that is listed in the server's key-to-placement compatibility map. Empty or whitespace-only placement values are treated as not provided. With no identity at all, the request is served in anonymous mode through the AON default placement (response `extra.identity.mode=\"anonymous\"`, no earnings, no idempotent replay: a retry recomputes) when the deployment configures it; only when anonymous mode is unavailable or off does the request return HTTP 401 `UNAUTHORIZED`. A `Bearer` Authorization header does not supply the placement: a live key without a placement is served in anonymous mode with an `extra.key_notice`, and a non-sandbox `aon_test_` key without a placement returns HTTP 401 `UNAUTHORIZED`. The placement decides which application receives attribution; it is not checked against any API key. OfferWall placements apply configured selection and sorting; catalog OfferWall lists apply viewer country, location, device, and OS targeting (including IP and User-Agent inference); only explicit offer_id lookups skip those dimensions, while serving availability and explicit age eligibility always apply; AI Assistant and Content Assistant placements associate statistics while preserving normal recommendations and engagement suggestions. Non-empty but invalid, unknown, or inactive placement values return `INVALID_PLACEMENT`; an empty catalog placement returns `CATALOG_NO_AVAILABLE_OFFERS`; a placement whose application is deleted or not serving returns HTTP 403 `APPLICATION_NOT_SERVING`; a placement owned by a suspended developer returns HTTP 403 `DEVELOPER_SUSPENDED`. Unknown or inactive `constraints.category_ids` fail closed with HTTP 400 `INVALID_CATEGORY_ID` and an indexed `extra.field_path`; resolve category ids first rather than guessing. If the caller supplies `request_id`, this endpoint replays a cached SUCCESS response for that (caller identity, request id) pair for 10 minutes without duplicating the five write-side effects: inbound journal, impressions/billing projection, outbound metrics, partner journal, and embedding journal. `request_id` should be an unguessable value (UUID). A retryable HTTP 503 `SERVICE_BUSY` may be retried with the same `request_id`; HTTP 409 `QUERY_REPLAY_UNAVAILABLE` means the durable query is finalized but its response body can no longer be replayed, so issue a new logical request with a new `request_id`. Network Offer Wall placements use a model-free eligible list when intent is omitted, or literal lexical matching when text is explicitly supplied; they do not infer hidden constraints or split multiple intents. Catalog walls retain their configured membership and ordering. Ordinary AI/Content Assistant queries retain semantic search and only their existing visibility=all inventory; switching away from a wall does not retain offerwall_only inventory. Offer Wall pagination follows data.has_more / data.next_cursor like every other placement (no extra.pagination on v1.0); inventory is not snapshotted across requests. A necessary upstream failure is not a successful empty match: generic hosted Query returns 503 UPSTREAM_UNAVAILABLE, or 504 QUERY_TIMEOUT when a necessary call actually timed out. These are deployment-owned errors; specialized Flight/Hotel contracts remain unchanged. There is no new short Query-wide deadline. Only a cached SUCCESS response can be replayed: a finalized failed/cancelled operation without a success cache returns QUERY_REPLAY_UNAVAILABLE on the same logical key.",
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "AON-Protocol-Version",
            "in": "header",
            "required": true,
            "description": "Required exact current version selector. Send one value equal to `1.0`; every other value is unsupported.",
            "schema": {
              "type": "string",
              "const": "1.0"
            }
          },
          {
            "name": "X-AON-Placement-Id",
            "in": "header",
            "required": false,
            "description": "Optional placement id, also supported by MCP HTTP requests. Used only when body placement_id (MCP: params.arguments.placement_id) is omitted; an explicit body value always takes precedence. Empty or whitespace-only values are treated as not provided (omitted: anonymous mode when available). Resolved as an active-placement lookup only — the placement decides which application receives attribution, with no ownership check against an API key. OfferWall placements apply configured selection and sorting; catalog OfferWall lists apply viewer country, location, device, and OS targeting (including IP and User-Agent inference); only explicit offer_id lookups skip those dimensions, while serving availability and explicit age eligibility always apply; AI Assistant and Content Assistant placements associate statistics while preserving normal recommendations and engagement suggestions.",
            "schema": {
              "type": "string",
              "example": "plc_homepage"
            }
          },
          {
            "name": "x-aon-user-pseudo-id",
            "in": "header",
            "required": false,
            "description": "Optional hosted-service extension carrying a pseudonymous viewer id. It is not part of the canonical v1.0 Query body, is never forwarded to Providers, and is never echoed in the response.",
            "schema": {
              "type": "string",
              "example": "pseudo-viewer-xyz"
            }
          },
          {
            "name": "offer_id",
            "in": "query",
            "required": false,
            "description": "Offer Wall placement extension: filter the wall's eligible offers by canonical Offer UUID before sorting and pagination. It never adds an Offer outside the placement's wall. Catalog list queries apply viewer country, location, device, and OS targeting. Only explicit offer_id lookups skip those dimensions; serving availability and explicit age eligibility always apply. The same field is also accepted at the top level of an Offer Wall JSON body as a hosted-service extension outside the canonical v1.0 schema. If both URL and body supply it, their UUIDs must match. Invalid or empty values, conflicting values, and URL use with other placement types return HTTP 400 BAD_REQUEST. Omit it to list the wall with normal country, location, device, and OS targeting. No match returns an empty offers array; catalog walls retain CATALOG_NO_AVAILABLE_OFFERS when empty.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-aon-consent",
            "in": "header",
            "required": false,
            "description": "Optional hosted-service extension carrying `personalization=granted|denied;jurisdiction=<code>;age=<value>`. It is outside the canonical v1.0 Query body and is never forwarded to Providers.",
            "schema": {
              "type": "string",
              "example": "personalization=granted;jurisdiction=EU;age=verified"
            }
          }
        ],
        "x-aon-error-codes": {
          "UNSUPPORTED_PROTOCOL_VERSION": "AON-Protocol-Version is duplicated, or its field value is not exactly 1.0 (an unknown, approximate, range, or otherwise non-exact selector). An omitted header is not an error: it falls back to the legacy 0.1 response shape.",
          "INVALID_PLACEMENT": "placement_id is non-empty but malformed (non-string or longer than 64 characters), nonexistent, or inactive; empty or whitespace-only values are treated as absent.",
          "CATALOG_NO_AVAILABLE_OFFERS": "An offerwall+catalog placement resolved to manual_order routing but the catalog pool has no available offers.",
          "UNAUTHORIZED": "No caller identity could be resolved: body placement_id and the X-AON-Placement-Id header are both absent or blank, no legacy API key in the compatibility map was presented, and anonymous mode (the AON default placement) is unconfigured or unavailable. A non-sandbox `aon_test_` key without a placement is also rejected here (it is never served anonymously).",
          "APPLICATION_NOT_SERVING": "The placement resolved to an application that is deleted or not currently serving.",
          "DEVELOPER_SUSPENDED": "The placement resolved to an application owned by a developer account that is suspended.",
          "ENV_MISMATCH": "X-AON-Test: true was sent without a test credential; outside the public test sandbox, all identity resolution is treated as live.",
          "SERVICE_BUSY": "The durable query admission or a pending replay cannot currently be completed. Retry with backoff using the same request_id.",
          "QUERY_REPLAY_UNAVAILABLE": "The logical query is finalized but its cached response body is unavailable. Do not retry the same request_id; issue a new logical request with a new request_id.",
          "UPSTREAM_UNAVAILABLE": "A necessary query dependency is unavailable and no eligible partial result can be returned. This is a failed query, not a successful empty inventory result.",
          "QUERY_TIMEOUT": "A necessary call actually timed out and the query could not complete. Local circuit or capacity rejection is UPSTREAM_UNAVAILABLE, not a new timeout."
        },
        "x-aon-contract": {
          "follows_contract": "offers.query",
          "source_ref": "protocol/github-repos/protocol/specs/query-api-v1.0.md",
          "artifact_path": "services/docs/openapi.json",
          "current_protocol_version": "1.0",
          "last_verified_at": "2026-11-12",
          "known_exceptions": [
            "pagination follows the public v1.0 object (limit, cursor) and the response's has_more / next_cursor; the hosted layer caps limit above 50 instead of rejecting it and rejects an ordinary-placement offset greater than 0 (and offset with cursor) with 400 BAD_REQUEST while Offer Wall placements keep a deprecated offset. Provider requests never carry pagination."
          ]
        },
        "x-aon-canonical-schemas": {
          "request": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0"
          },
          "response": {
            "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0"
          },
          "offer": {
            "$ref": "#/components/schemas/Protocol_offer_v1_0"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "request_id": "019dd200-1234-7890-abcd-ef0123456789",
                "timestamp": "2026-04-28T03:30:00Z",
                "test_mode": false,
                "intent": {
                  "content": [
                    {
                      "type": "input_text",
                      "text": "Find me a luxury hotel in Tokyo under $300/night for a weekend trip"
                    }
                  ],
                  "provenance": "user_expressed",
                  "signals": {
                    "budget": {
                      "max": 300,
                      "currency": "USD"
                    },
                    "purchase_stage": "comparing",
                    "timeframe": "this_week"
                  }
                },
                "context": {
                  "user_profile": {
                    "country": "US"
                  },
                  "platform": {
                    "name": "TravelBot",
                    "version": "2.1.0",
                    "channel": "telegram"
                  },
                  "session_id": "sess_abc123",
                  "session": {
                    "previous_request_id": "0195ef8e-2a3b-7c9d-9e11-1f2a3b4c5d6e",
                    "recent_topics": [
                      "Tokyo weekend trip",
                      "boutique hotels"
                    ]
                  }
                },
                "constraints": {
                  "category_ids": [
                    "travel_tourism"
                  ]
                },
                "force_offer": false,
                "pagination": {
                  "limit": 5
                },
                "response_options": {
                  "thinking_mode": true
                }
              },
              "schema": {
                "$ref": "#/components/schemas/HostedQueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current v1.0 response envelope with canonical Query metadata and public Offers. Empty matches still return 200 and include the required `data.request_id`, `data.protocol_version`, `data.language`, and empty `data.offers` array.",
            "headers": {
              "X-AON-TRACE-ID": {
                "required": false,
                "description": "Diagnostic trace identifier for AON support and cross-service observability. It is a response header, not a JSON body field.",
                "schema": {
                  "type": "string",
                  "example": "trc_01HX6P8T4K2W9QX6Y7Z8A9BCDE"
                }
              },
              "AON-Protocol-Version": {
                "required": true,
                "description": "Echoes the exact selected current Query protocol version.",
                "schema": {
                  "type": "string",
                  "const": "1.0"
                }
              },
              "Vary": {
                "required": true,
                "description": "Requires shared caches to key responses by the protocol selector.",
                "schema": {
                  "type": "string",
                  "const": "AON-Protocol-Version"
                }
              }
            },
            "content": {
              "application/json": {
                "examples": {
                  "ranked_offers": {
                    "summary": "Canonical v1.0 hosted response",
                    "value": {
                      "code": "SUCCESS",
                      "message": "",
                      "data": {
                        "request_id": "0195ef94-f17d-7a4f-b6e0-2c52bb49e13f",
                        "protocol_version": "1.0",
                        "language": "en",
                        "has_more": true,
                        "next_cursor": "AVQ7nyxx0E6KZfHCt9mg5GwYAAAABQ",
                        "offers": [
                          {
                            "offer_id": "019fc211-c6cd-7e62-9c4d-699c243e6c96",
                            "offer_instance_id": "c41d7e9a-3f62-8b05-a7d1-6e0b9c2f8a00",
                            "version": "3.0",
                            "content_language": "en",
                            "offer_info": {
                              "title": "TeamFlow Pro Plan",
                              "offer_type": "online_service",
                              "category": {
                                "id": "computers_electronics.computers.software"
                              },
                              "description": "Collaborative workspace for docs, wikis, and project planning."
                            },
                            "entity": {
                              "id": "ent_teamflow",
                              "name": "TeamFlow",
                              "type": "provider",
                              "logo": "https://cdn.example.com/teamflow.svg"
                            },
                            "action": {
                              "type": "open_url",
                              "name": "Start free trial",
                              "payload": {
                                "url": "https://aon.link/Ab3xY9qPk7Lm2Nd4"
                              }
                            },
                            "goals": [
                              {
                                "event": "conversion",
                                "pricing": {
                                  "model": "cpa",
                                  "amount": "10",
                                  "currency": "USD"
                                }
                              }
                            ]
                          }
                        ]
                      },
                      "extra": {
                        "decision_engine": "real",
                        "is_test": false,
                        "tracked_offers": 1
                      }
                    }
                  },
                  "empty_result": {
                    "summary": "No eligible offers matched",
                    "value": {
                      "code": "SUCCESS",
                      "message": "",
                      "data": {
                        "request_id": "019dd200-1234-7890-abcd-ef0123456789",
                        "protocol_version": "1.0",
                        "language": "en",
                        "offers": [],
                        "empty_reason": "below_relevance_threshold"
                      },
                      "extra": {}
                    }
                  },
                  "engagement_and_guidance": {
                    "summary": "Current v1.0 response including guidance and hosted hints",
                    "value": {
                      "code": "SUCCESS",
                      "message": "",
                      "data": {
                        "request_id": "0195ef94-f17d-7a4f-b6e0-2c52bb49e13f",
                        "protocol_version": "1.0",
                        "language": "en",
                        "offers": [
                          {
                            "offer_id": "019fc211-c6cd-7e62-9c4d-699c243e6c96",
                            "offer_instance_id": "c41d7e9a-3f62-8b05-a7d1-6e0b9c2f8a00",
                            "version": "3.0",
                            "content_language": "en",
                            "offer_info": {
                              "title": "Aurora Boutique Hotel - Deluxe King",
                              "offer_type": "online_service",
                              "category": {
                                "id": "travel_tourism.accommodations.hotels_motels_resorts.hotels"
                              },
                              "description": "Boutique hotel in central Tokyo, walking distance to Shibuya."
                            },
                            "entity": {
                              "id": "ent_aurora",
                              "name": "Aurora Hotels",
                              "type": "merchant",
                              "logo": "https://cdn.example.com/aurora-hotels.svg"
                            },
                            "action": {
                              "type": "open_url",
                              "name": "Check availability",
                              "payload": {
                                "url": "https://aon.link/Ab3xY9qPk7Lm2Nd4"
                              }
                            },
                            "goals": [
                              {
                                "event": "conversion",
                                "pricing": {
                                  "model": "cpa",
                                  "amount": "10",
                                  "currency": "USD"
                                }
                              }
                            ],
                            "match_reason": "Matches the requested Tokyo hotel category and budget."
                          }
                        ],
                        "engagement": {
                          "refinements": [
                            {
                              "label": "Under $250/night",
                              "speak": "Want me to narrow it to under $250 a night?",
                              "query_helper": {
                                "request_patch": {
                                  "intent": {
                                    "signals": {
                                      "budget": {
                                        "max": 250,
                                        "currency": "USD"
                                      }
                                    }
                                  }
                                },
                                "origin": [
                                  {
                                    "kind": "query_helper",
                                    "id": "gd_0195ef94f17d7a4fb6e02c52bb49e13f"
                                  }
                                ]
                              }
                            }
                          ],
                          "followup_topics": [
                            {
                              "label": "Airport transfers",
                              "speak": "Need an airport transfer to go with that?",
                              "basis": "category_complement",
                              "confidence": 0.8,
                              "query_helper": {
                                "request_patch": {
                                  "constraints": {
                                    "category_ids": [
                                      "travel_tourism.transportation"
                                    ]
                                  }
                                },
                                "origin": [
                                  {
                                    "kind": "query_helper",
                                    "id": "gd_0195ef95a2b17c9d9e111f2a3b4c5d70"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "extra": {
                        "decision_engine": "real",
                        "is_test": false,
                        "tracked_offers": 1,
                        "hints": [
                          {
                            "field": "intent.signals.purchase_stage",
                            "code": "unknown_enum_value",
                            "message": "Unrecognized value for intent.signals.purchase_stage; treated as not sent."
                          }
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "data",
                    "extra"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0"
                    },
                    "extra": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Duplicate, approximate, range, unknown, or otherwise non-exact protocol selectors return `UNSUPPORTED_PROTOCOL_VERSION` (an omitted selector falls back to the legacy 0.1 shape instead); malformed request bodies or invalid v1.0 request shapes return their corresponding validation error.",
            "content": {
              "application/json": {
                "example": {
                  "code": "BAD_REQUEST",
                  "message": "intent is required",
                  "data": null,
                  "extra": {
                    "field": "intent"
                  }
                }
              }
            }
          },
          "401": {
            "description": "No caller identity and anonymous mode unavailable or off (`UNAUTHORIZED`: neither placement_id nor X-AON-Placement-Id was supplied, no legacy API key in the compatibility map matched, and the AON default placement is unconfigured or unavailable), or `ENV_MISMATCH` (X-AON-Test: true sent without a test credential)."
          },
          "403": {
            "description": "The resolved placement's application is not serving (`APPLICATION_NOT_SERVING`) or its owning developer account is suspended (`DEVELOPER_SUSPENDED`)."
          },
          "409": {
            "description": "The original logical query is finalized but its response cannot be replayed. Do not retry the same request_id; issue a new logical request with a new request_id.",
            "content": {
              "application/json": {
                "example": {
                  "code": "QUERY_REPLAY_UNAVAILABLE",
                  "message": "the original query response can no longer be replayed",
                  "data": {},
                  "extra": {}
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "SERVICE_BUSY means admission or an existing pending operation is temporarily unavailable; retry with backoff using the same request_id. UPSTREAM_UNAVAILABLE means a necessary query dependency could not complete. A terminal operation without a SUCCESS cache cannot be re-executed with the same id; a new attempt uses a new request_id. Specialized Flight/Hotel errors retain their existing contract.",
            "content": {
              "application/json": {
                "examples": {
                  "pending": {
                    "value": {
                      "code": "SERVICE_BUSY",
                      "message": "query admission is temporarily unavailable",
                      "data": {},
                      "extra": {}
                    }
                  },
                  "upstream_unavailable": {
                    "value": {
                      "code": "UPSTREAM_UNAVAILABLE",
                      "message": "a necessary query dependency is unavailable",
                      "data": {},
                      "extra": {}
                    }
                  }
                }
              }
            }
          },
          "504": {
            "description": "A necessary upstream call actually timed out; this is not a successful empty match. A new logical attempt uses a new request_id. This does not introduce a short Query-wide deadline. Specialized Flight/Hotel errors retain their existing contract.",
            "content": {
              "application/json": {
                "example": {
                  "code": "QUERY_TIMEOUT",
                  "message": "a necessary query dependency timed out",
                  "data": {},
                  "extra": {}
                }
              }
            }
          }
        }
      }
    },
    "/v1/developer/reports/offers/batch": {
      "post": {
        "tags": [
          "developer"
        ],
        "summary": "Get application-scoped Offer reporting metrics",
        "deprecated": true,
        "description": "Return placement + canonical Offer metrics for up to 10,000 direct pairs or retained AON stable links. The authenticated live API key fixes the application scope. Each result preserves input_index and the request's decoded offer_link string, or null for direct/non-string inputs; one bad item does not hide valid results.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "X-AON-Test",
            "in": "header",
            "required": false,
            "description": "Optional environment consistency declaration. Reporting v1 accepts live keys only; this header never changes the key environment.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "from": "2026-08-01T00:00:00Z",
                "to": "2026-08-02T00:00:00Z",
                "items": [
                  {
                    "placement_id": "plc-homepage",
                    "offer_id": "018f6f75-89ab-7cde-8f01-23456789abcd"
                  },
                  {
                    "offer_link": "https://aon.link/static/st_0123456789abcdef0123456789abcdef"
                  },
                  {
                    "offer_link": "https://merchant.example/offers/not-an-aon-link"
                  }
                ]
              },
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "from",
                  "to",
                  "items"
                ],
                "properties": {
                  "application_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Optional consistency filter. When supplied it must equal the application bound to the authenticated API key."
                  },
                  "from": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Inclusive UTC hour boundary."
                  },
                  "to": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Exclusive UTC hour boundary. The window must span 1 hour to 30 days."
                  },
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10000,
                    "description": "Items are intentionally schema-unconstrained so non-object, non-string-link, malformed, and extra-field values can reach runtime item-level validation and return INVALID_REPORT_ITEM without rejecting valid siblings. The two supported valid shapes are either {placement_id, offer_id} or {offer_link}; items are processed independently and remain in input order.",
                    "items": {
                      "description": "Any JSON value is accepted at the wire schema boundary. Runtime accepts the valid direct shape {placement_id: string, offer_id: UUID} and the valid link shape {offer_link: string}; all other values are handled as item-level errors so valid items in the same batch still run.",
                      "examples": [
                        {
                          "placement_id": "plc-homepage",
                          "offer_id": "018f6f75-89ab-7cde-8f01-23456789abcd"
                        },
                        {
                          "offer_link": "https://aon.link/static/st_0123456789abcdef0123456789abcdef"
                        },
                        "not-an-object",
                        {
                          "offer_link": 7
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Atomic mixed batch result. HTTP 200 means the batch ran; individual items can still have status=error.",
            "content": {
              "application/json": {
                "example": {
                  "code": "SUCCESS",
                  "message": "",
                  "data": {
                    "results": [
                      {
                        "input_index": 0,
                        "offer_link": null,
                        "status": "success",
                        "data": {
                          "placement_id": "plc-homepage",
                          "offer_id": "018f6f75-89ab-7cde-8f01-23456789abcd",
                          "clicks": 42,
                          "conversions": 3,
                          "estimated_earnings": [
                            {
                              "currency": "EUR",
                              "amount": "4.25"
                            },
                            {
                              "currency": "GBP",
                              "amount": "6.75"
                            },
                            {
                              "currency": "USD",
                              "amount": "12.5"
                            }
                          ]
                        }
                      },
                      {
                        "input_index": 1,
                        "offer_link": "https://aon.link/static/st_0123456789abcdef0123456789abcdef",
                        "status": "success",
                        "data": {
                          "placement_id": "plc-sidebar",
                          "offer_id": "01901234-5678-7abc-8def-0123456789ab",
                          "clicks": 9,
                          "conversions": 1,
                          "estimated_earnings": [
                            {
                              "currency": "USD",
                              "amount": "3"
                            }
                          ]
                        }
                      },
                      {
                        "input_index": 2,
                        "offer_link": "https://merchant.example/offers/not-an-aon-link",
                        "status": "error",
                        "error": {
                          "code": "INVALID_OFFER_REFERENCE",
                          "message": "offer_link must be an AON /static/{code} URL"
                        }
                      },
                      {
                        "input_index": 3,
                        "offer_link": "https://aon.link/static/st_0123456789abcdef0123456789abcdef",
                        "status": "error",
                        "error": {
                          "code": "DUPLICATE_REPORT_ITEM",
                          "message": "the same placement and offer already appeared earlier in this batch"
                        }
                      },
                      {
                        "input_index": 4,
                        "offer_link": "https://aon.link/static/st_ffffffffffffffffffffffffffffffff",
                        "status": "error",
                        "error": {
                          "code": "REPORT_ITEM_NOT_ACCESSIBLE",
                          "message": "report item is not accessible"
                        }
                      },
                      {
                        "input_index": 5,
                        "offer_link": null,
                        "status": "error",
                        "error": {
                          "code": "INVALID_REPORT_ITEM",
                          "message": "item must contain either placement_id + offer_id or one offer_link"
                        }
                      }
                    ],
                    "succeeded_count": 2,
                    "failed_count": 4,
                    "coverage": {
                      "data_state": "complete",
                      "unavailable_reason": null,
                      "requested_window": {
                        "from": "2026-08-01T00:00:00Z",
                        "to": "2026-08-02T00:00:00Z"
                      },
                      "included_window": {
                        "from": "2026-08-01T00:00:00Z",
                        "to": "2026-08-02T00:00:00Z"
                      },
                      "data_available_until": "2026-08-02T00:00:00Z",
                      "reliable_since": "1970-01-01T00:00:00Z",
                      "data_may_restate": true
                    }
                  },
                  "extra": {
                    "timezone": "UTC"
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "data",
                    "extra"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "SUCCESS"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        ""
                      ]
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "results",
                        "succeeded_count",
                        "failed_count",
                        "coverage"
                      ],
                      "properties": {
                        "results": {
                          "type": "array",
                          "description": "One result per request item in the original order. Every result contains input_index, offer_link, and status.",
                          "items": {
                            "type": "object",
                            "required": [
                              "input_index",
                              "offer_link",
                              "status"
                            ],
                            "properties": {
                              "input_index": {
                                "type": "integer",
                                "minimum": 0,
                                "description": "Zero-based position in the request items array."
                              },
                              "offer_link": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The request's decoded JSON string for link input, including success and item errors. Null for direct pairs, non-object items, missing links, and non-string links. Correlation only; never authorization or analytics input."
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "success",
                                  "error"
                                ]
                              },
                              "data": {
                                "type": "object",
                                "description": "Present only when status=success.",
                                "required": [
                                  "placement_id",
                                  "offer_id",
                                  "clicks",
                                  "conversions",
                                  "estimated_earnings"
                                ],
                                "properties": {
                                  "placement_id": {
                                    "type": "string"
                                  },
                                  "offer_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "clicks": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "conversions": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "estimated_earnings": {
                                    "type": "array",
                                    "description": "Estimated non-finalized earnings, sorted by original currency without FX conversion. Empty when there are no earnings.",
                                    "items": {
                                      "type": "object",
                                      "required": [
                                        "currency",
                                        "amount"
                                      ],
                                      "properties": {
                                        "currency": {
                                          "type": "string"
                                        },
                                        "amount": {
                                          "type": "string",
                                          "description": "Canonical decimal string."
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "error": {
                                "type": "object",
                                "description": "Present only when status=error.",
                                "required": [
                                  "code",
                                  "message"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "enum": [
                                      "INVALID_REPORT_ITEM",
                                      "INVALID_OFFER_REFERENCE",
                                      "REPORT_ITEM_NOT_ACCESSIBLE",
                                      "DUPLICATE_REPORT_ITEM"
                                    ]
                                  },
                                  "message": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "succeeded_count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "failed_count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "coverage": {
                          "type": "object",
                          "description": "Legacy compatibility object kept for v1 clients. Values are constants derived from the request: data_state is complete, unavailable_reason is null, requested_window and included_window equal the request window, data_available_until equals the request's to, reliable_since is 1970-01-01T00:00:00Z, and data_may_restate is true. v2 has no coverage object.",
                          "required": [
                            "data_state",
                            "unavailable_reason",
                            "requested_window",
                            "included_window",
                            "data_available_until",
                            "reliable_since",
                            "data_may_restate"
                          ],
                          "properties": {
                            "data_state": {
                              "type": "string",
                              "enum": [
                                "complete"
                              ]
                            },
                            "unavailable_reason": {
                              "type": "null"
                            },
                            "requested_window": {
                              "type": "object",
                              "required": [
                                "from",
                                "to"
                              ],
                              "properties": {
                                "from": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "to": {
                                  "type": "string",
                                  "format": "date-time"
                                }
                              }
                            },
                            "included_window": {
                              "type": "object",
                              "required": [
                                "from",
                                "to"
                              ],
                              "properties": {
                                "from": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "to": {
                                  "type": "string",
                                  "format": "date-time"
                                }
                              }
                            },
                            "data_available_until": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "reliable_since": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "data_may_restate": {
                              "type": "boolean",
                              "enum": [
                                true
                              ]
                            }
                          }
                        }
                      }
                    },
                    "extra": {
                      "type": "object",
                      "required": [
                        "timezone"
                      ],
                      "properties": {
                        "timezone": {
                          "type": "string",
                          "enum": [
                            "UTC"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "INVALID_REPORT_REQUEST for malformed JSON, top-level shape, item count, or UTC window bounds."
          },
          "401": {
            "description": "Missing, invalid, revoked, or environment-mismatched API key."
          },
          "403": {
            "description": "APPLICATION_SCOPE_CONFLICT when application_id conflicts with the authenticated key."
          },
          "413": {
            "description": "REPORT_REQUEST_TOO_LARGE when the raw request body exceeds 2 MiB."
          },
          "422": {
            "description": "REPORTING_ENV_UNSUPPORTED for a test key, or REPORT_RESULT_TOO_LARGE when the atomic serialized response exceeds 16 MiB."
          },
          "429": {
            "description": "RATE_LIMITED after 10 authenticated attempts in a 60-second per-key window.",
            "headers": {
              "Retry-After": {
                "required": true,
                "description": "Positive seconds until this API key's reporting window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "500": {
            "description": "INTERNAL_ERROR for an unexpected database or serialization failure."
          },
          "503": {
            "description": "RATE_LIMIT_BACKEND_UNAVAILABLE or SERVICE_BUSY. Backend-unavailable responses do not fabricate Retry-After."
          }
        }
      }
    },
    "/v2/developer/reports/offers/batch": {
      "post": {
        "tags": [
          "developer"
        ],
        "summary": "Get application-scoped Offer reporting metrics in USD",
        "description": "Return placement + canonical Offer metrics for the exact requested [from, to) window, read from the database as it stands in one repeatable-read snapshot. Estimated earnings are one frozen settlement-time USD total per item; reversed and frozen settlements are excluded (same as v1). Identity, request validation, API-key scope, and the shared per-key quota match v1. Values can still change later as conversions and settlements are restated.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "X-AON-Test",
            "in": "header",
            "required": false,
            "description": "Optional environment consistency declaration. Reporting v2 accepts live keys only; this header never changes the key environment.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/requestBody"
        },
        "responses": {
          "200": {
            "description": "Atomic mixed batch result in USD. HTTP 200 means the batch ran; individual items can still have status=error.",
            "content": {
              "application/json": {
                "example": {
                  "code": "SUCCESS",
                  "message": "",
                  "data": {
                    "results": [
                      {
                        "input_index": 0,
                        "offer_link": null,
                        "status": "success",
                        "data": {
                          "placement_id": "plc-homepage",
                          "offer_id": "018f6f75-89ab-7cde-8f01-23456789abcd",
                          "clicks": 42,
                          "conversions": 3,
                          "estimated_earnings": [
                            {
                              "currency": "USD",
                              "amount": "12.5"
                            }
                          ]
                        }
                      },
                      {
                        "input_index": 1,
                        "offer_link": "https://aon.link/static/st_0123456789abcdef0123456789abcdef",
                        "status": "success",
                        "data": {
                          "placement_id": "plc-sidebar",
                          "offer_id": "01901234-5678-7abc-8def-0123456789ab",
                          "clicks": 9,
                          "conversions": 1,
                          "estimated_earnings": [
                            {
                              "currency": "USD",
                              "amount": "0.00"
                            }
                          ]
                        }
                      }
                    ],
                    "succeeded_count": 2,
                    "failed_count": 0
                  },
                  "extra": {
                    "timezone": "UTC"
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "data",
                    "extra"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "SUCCESS"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        ""
                      ]
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "results",
                        "succeeded_count",
                        "failed_count"
                      ],
                      "properties": {
                        "results": {
                          "type": "array",
                          "description": "One result per request item in original order.",
                          "items": {
                            "type": "object",
                            "required": [
                              "input_index",
                              "offer_link",
                              "status"
                            ],
                            "properties": {
                              "input_index": {
                                "type": "integer",
                                "minimum": 0,
                                "description": "Zero-based position in the request items array."
                              },
                              "offer_link": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The request's decoded link string, or null for direct and non-string inputs."
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "success",
                                  "error"
                                ]
                              },
                              "data": {
                                "type": "object",
                                "description": "Present only when status=success. All metric fields are always present and non-null.",
                                "additionalProperties": false,
                                "required": [
                                  "placement_id",
                                  "offer_id",
                                  "clicks",
                                  "conversions",
                                  "estimated_earnings"
                                ],
                                "properties": {
                                  "placement_id": {
                                    "type": "string"
                                  },
                                  "offer_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "clicks": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "conversions": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "estimated_earnings": {
                                    "type": "array",
                                    "description": "Exactly one USD entry, including a real zero (\"0.00\").",
                                    "minItems": 1,
                                    "maxItems": 1,
                                    "items": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "currency",
                                        "amount"
                                      ],
                                      "properties": {
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "USD"
                                          ]
                                        },
                                        "amount": {
                                          "type": "string",
                                          "description": "Canonical decimal string derived only from frozen settlement-time USD columns."
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "error": {
                                "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/responses/200/content/application~1json/schema/properties/data/properties/results/items/properties/error"
                              }
                            }
                          }
                        },
                        "succeeded_count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "failed_count": {
                          "type": "integer",
                          "minimum": 0
                        }
                      }
                    },
                    "extra": {
                      "type": "object",
                      "required": [
                        "timezone"
                      ],
                      "properties": {
                        "timezone": {
                          "type": "string",
                          "enum": [
                            "UTC"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/responses/403"
          },
          "413": {
            "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/responses/413"
          },
          "422": {
            "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/responses/422"
          },
          "429": {
            "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/responses/429"
          },
          "500": {
            "description": "INTERNAL_ERROR for an unexpected database or serialization failure, or when an included (not reversed, not frozen) settlement is missing its frozen USD snapshot. The whole request fails; no partial result is returned."
          },
          "503": {
            "$ref": "#/paths/~1v1~1developer~1reports~1offers~1batch/post/responses/503"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Protocol_offer_profile_registry_v1_0": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "title": "AgentOffer Supply Offer Profile Registry v1.0",
        "description": "Closed registry for stable v1.0 supply Offer profiles. Generic Offers omit offer_info.details; registered profiles carry their domain facts only in details.data. Registered profiles are independent of category.id.",
        "$defs": {
          "supplyDetails": {
            "type": "object",
            "description": "Closed supply-profile envelope. profile selects exactly one registered closed data shape.",
            "required": [
              "profile",
              "data"
            ],
            "properties": {
              "profile": {
                "type": "string",
                "enum": [
                  "flight",
                  "hotel_rate",
                  "game"
                ],
                "description": "Registered supply Offer profile identifier in the stable v1.0 registry."
              },
              "data": {
                "type": "object",
                "description": "Closed domain facts for the selected registered profile."
              }
            },
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "profile": {
                      "const": "flight"
                    }
                  },
                  "required": [
                    "profile"
                  ],
                  "type": "object"
                },
                "then": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightData"
                    }
                  },
                  "type": "object"
                }
              },
              {
                "if": {
                  "properties": {
                    "profile": {
                      "const": "hotel_rate"
                    }
                  },
                  "required": [
                    "profile"
                  ],
                  "type": "object"
                },
                "then": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/hotelRateData"
                    }
                  },
                  "type": "object"
                }
              },
              {
                "if": {
                  "properties": {
                    "profile": {
                      "const": "game"
                    }
                  },
                  "required": [
                    "profile"
                  ],
                  "type": "object"
                },
                "then": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/gameData"
                    }
                  },
                  "type": "object"
                }
              }
            ]
          },
          "flightData": {
            "type": "object",
            "description": "Closed public facts for one priced air itinerary and its traveller composition.",
            "required": [
              "trip_type",
              "legs"
            ],
            "properties": {
              "trip_type": {
                "type": "string",
                "enum": [
                  "one_way",
                  "round_trip",
                  "multi_city"
                ],
                "description": "Declared itinerary topology; semantic validation binds it to the number of legs."
              },
              "travelers": {
                "type": "array",
                "minItems": 1,
                "maxItems": 3,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/traveler"
                },
                "description": "Non-empty traveller counts grouped by traveller type. Each type may occur at most once under semantic validation."
              },
              "legs": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightLeg"
                },
                "description": "Ordered itinerary legs. Each leg contains one or more ordered flight segments."
              },
              "price_basis": {
                "type": "string",
                "description": "Price nature: a reference amount without traveler composition or a complete itinerary total.",
                "enum": [
                  "reference",
                  "itinerary_total"
                ]
              },
              "free_baggage_included": {
                "type": "boolean",
                "description": "Source-reported free baggage inclusion for the same displayed fare, including a reference fare. Preserve explicit true or false; omit when unknown. Does not specify baggage type, weight, or pieces."
              },
              "fare_details": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightFareDetails",
                "description": "Optional facts tied to this exact traveler-composed itinerary quote; invalid for a reference price."
              },
              "emissions": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightEmissions",
                "description": "Optional estimated total itinerary emissions with model provenance, never an operationally measured amount."
              }
            },
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "price_basis": {
                      "const": "reference",
                      "description": "Select the reference-price branch."
                    }
                  },
                  "required": [
                    "price_basis"
                  ],
                  "type": "object"
                },
                "then": {
                  "not": {
                    "required": [
                      "travelers"
                    ]
                  }
                },
                "else": {
                  "required": [
                    "travelers"
                  ],
                  "type": "object"
                }
              },
              {
                "if": {
                  "properties": {
                    "price_basis": {
                      "const": "reference"
                    }
                  },
                  "required": [
                    "price_basis"
                  ],
                  "type": "object"
                },
                "then": {
                  "not": {
                    "required": [
                      "fare_details"
                    ]
                  }
                }
              }
            ]
          },
          "traveler": {
            "type": "object",
            "description": "Traveler counts and optional age and infant seat facts; typed quotes require sufficient age and seat information.",
            "required": [
              "type",
              "count"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "adult",
                  "child",
                  "infant"
                ],
                "description": "Traveller type used to state the priced traveller composition."
              },
              "count": {
                "type": "integer",
                "minimum": 1,
                "description": "Positive number of travellers of this type included in the stated itinerary price."
              },
              "ages": {
                "type": "array",
                "description": "Completed years of age on the first local departure date, in traveler order.",
                "items": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "infant_seat_required": {
                "type": "array",
                "description": "Seat requirement for each infant at the same index as ages.",
                "items": {
                  "type": "boolean"
                }
              }
            },
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "infant",
                      "description": "Select infant seat facts."
                    }
                  },
                  "type": "object"
                },
                "else": {
                  "not": {
                    "required": [
                      "infant_seat_required"
                    ],
                    "type": "object"
                  }
                }
              }
            ]
          },
          "flightLeg": {
            "type": "object",
            "description": "One ordered flight leg made up of one or more contiguous flight segments.",
            "required": [
              "segments"
            ],
            "properties": {
              "segments": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightSegment"
                },
                "description": "Ordered segments for this leg. Semantic validation requires adjacent arrival and departure continuity."
              },
              "duration_minutes": {
                "type": "integer",
                "description": "Source-provided total leg duration including connection waiting, at least the sum of segment durations.",
                "minimum": 1
              },
              "connections": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightConnection"
                },
                "description": "Optional ordered details of each boundary between adjacent segments; if present, one item per boundary. An airport change requires this array and an explicit matching airport_change=true."
              }
            },
            "additionalProperties": false
          },
          "flightSegment": {
            "type": "object",
            "description": "Closed public facts for one marketed flight segment.",
            "required": [
              "departure",
              "arrival",
              "duration_minutes",
              "marketing_carrier",
              "flight_number",
              "cabin_class"
            ],
            "properties": {
              "departure": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightEndpoint",
                "description": "Scheduled departure airport and airport-local date-time for this segment."
              },
              "arrival": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightEndpoint",
                "description": "Scheduled arrival airport and airport-local date-time for this segment."
              },
              "duration_minutes": {
                "type": "integer",
                "minimum": 1,
                "description": "Positive source-provided scheduled elapsed duration of this segment in minutes. It is authoritative for duration; producers must not infer a timezone to derive it from local_at values."
              },
              "marketing_carrier": {
                "type": "object",
                "description": "Carrier marketing this flight under the displayed flight number.",
                "required": [
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z0-9]{2}$",
                    "description": "Two-character uppercase marketing carrier code; registry membership is not asserted by this profile."
                  },
                  "name": {
                    "type": "string",
                    "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]",
                    "description": "Source-provided display name in the Offer content language; must contain a character outside Unicode White_Space plus U+FEFF. Omit when unavailable; never infer from codes. Name of the marketing carrier, not operating carrier or booking platform."
                  },
                  "logo_url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^[Hh][Tt][Tt][Pp][Ss]://",
                    "maxLength": 2048,
                    "description": "Absolute HTTPS carrier-logo URL without userinfo; omit when display rights or a stable asset URL are unavailable."
                  }
                },
                "additionalProperties": false
              },
              "flight_number": {
                "type": "string",
                "pattern": "^[0-9]{1,4}[A-Z]?$",
                "description": "Carrier-local flight number without the marketing-carrier prefix."
              },
              "cabin_class": {
                "type": "string",
                "enum": [
                  "economy",
                  "premium_economy",
                  "business",
                  "first"
                ],
                "description": "Public cabin class for this segment."
              },
              "stops": {
                "type": "array",
                "description": "Source-reported stops within this segment. Omission means unknown; an empty array explicitly means no stops.",
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightStop"
                }
              },
              "planned_aircraft": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightPlannedAircraft",
                "description": "Supplier-reported planned aircraft name, not a standardized aircraft type or actual operating equipment."
              },
              "operating_carrier": {
                "type": "object",
                "description": "Verified operating carrier for this scheduled segment; omit when operating identity is unknown.",
                "required": [
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z0-9]{2}$",
                    "description": "Two-character uppercase operating carrier code."
                  },
                  "name": {
                    "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightSourceText",
                    "description": "Optional source-reported operating carrier name with explicit language."
                  },
                  "logo_url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^[Hh][Tt][Tt][Pp][Ss]://",
                    "maxLength": 2048,
                    "description": "Absolute HTTPS carrier-logo URL without userinfo; omit when display rights or a stable asset URL are unavailable."
                  }
                },
                "additionalProperties": false
              },
              "operating_flight_number": {
                "type": "string",
                "pattern": "^[0-9]{1,4}[A-Z]?$",
                "description": "Verified operating-carrier-local flight number; requires operating_carrier. Omit if only a marketing or codeshare number is known."
              },
              "standard_aircraft_type": {
                "type": "object",
                "description": "Verified standardized scheduled aircraft type; distinct from source-reported planned_aircraft and subject to equipment changes.",
                "required": [],
                "properties": {
                  "iata_code": {
                    "type": "string",
                    "pattern": "^[A-Z0-9]{3}$",
                    "description": "Verified three-character IATA equipment code."
                  },
                  "icao_code": {
                    "type": "string",
                    "pattern": "^[A-Z0-9]{4}$",
                    "description": "Verified four-character ICAO equipment code."
                  }
                },
                "anyOf": [
                  {
                    "required": [
                      "iata_code"
                    ]
                  },
                  {
                    "required": [
                      "icao_code"
                    ]
                  }
                ],
                "additionalProperties": false
              },
              "cabin_amenities": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightCabinAmenities",
                "description": "Verified amenities for this scheduled segment and cabin class; omission means unknown. Availability can change with equipment."
              }
            },
            "additionalProperties": false,
            "dependentRequired": {
              "operating_flight_number": [
                "operating_carrier"
              ]
            }
          },
          "flightEndpoint": {
            "type": "object",
            "description": "Airport and airport-local scheduled date-time at one end of a flight segment.",
            "required": [
              "airport_code",
              "local_at"
            ],
            "properties": {
              "airport_code": {
                "type": "string",
                "pattern": "^[A-Z]{3}$",
                "description": "Three-letter uppercase airport code; airport-registry membership is outside this profile."
              },
              "local_at": {
                "type": "string",
                "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])T(?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$",
                "description": "Scheduled local date-time at this airport in YYYY-MM-DDTHH:mm:ss form, without a UTC offset or timezone. Producers normalize a source space separator to T and must not infer missing timezone data."
              },
              "city_code": {
                "type": "string",
                "maxLength": 3,
                "pattern": "^[A-Z]{3}$",
                "description": "Optional city code, distinct from airport_code. Does not establish trusted airport-to-city membership."
              },
              "city_name": {
                "type": "string",
                "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]",
                "description": "Source-provided display name in the Offer content language; must contain a character outside Unicode White_Space plus U+FEFF. Omit when unavailable; never infer from codes. City name, not airport name."
              },
              "airport_full_name": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightSourceText",
                "description": "Source-reported full airport name at this endpoint, independent of the Offer content language."
              },
              "terminal": {
                "type": "string",
                "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]",
                "description": "Source-reported terminal at this endpoint; omit when absent or blank."
              },
              "timezone": {
                "type": "string",
                "minLength": 3,
                "maxLength": 64,
                "pattern": "^[A-Za-z0-9_+./-]+$",
                "description": "Verified IANA time zone identifier for this airport. Local_at remains an offset-free source schedule."
              }
            },
            "additionalProperties": false
          },
          "gameData": {
            "type": "object",
            "description": "Closed public facts for a game Offer. It is descriptive content supplied with the Offer, not an AON endorsement or ranking signal.",
            "required": [
              "downloads"
            ],
            "properties": {
              "downloads": {
                "type": "integer",
                "minimum": 1,
                "description": "Source-reported cumulative download or install count for the game. When the source publishes a range or threshold such as 1M+, use its lower bound (1000000); never round up or estimate."
              }
            },
            "additionalProperties": false
          },
          "hotelRateData": {
            "type": "object",
            "description": "Closed public facts for a hotel reference starting nightly price. This profile never asserts a confirmed inventory allocation or total-stay price.",
            "required": [
              "rate",
              "property"
            ],
            "properties": {
              "rate": {
                "type": "object",
                "description": "Closed price-nature declaration for the hotel rate profile.",
                "required": [
                  "kind"
                ],
                "properties": {
                  "kind": {
                    "const": "reference_starting_nightly",
                    "description": "The price is a source-observed single-night reference or starting price, not a booking, inventory, room-allocation, or total-stay assertion."
                  }
                },
                "additionalProperties": false
              },
              "property": {
                "type": "object",
                "description": "Identified hotel property and its public location facts.",
                "required": [
                  "name",
                  "location"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "description": "Non-empty source-provided hotel property name."
                  },
                  "location": {
                    "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/hotelLocation",
                    "description": "Public AON location reference, country, and optional source-provided display facts for the property."
                  },
                  "property_type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80,
                    "description": "Optional source-provided property type when known."
                  },
                  "star_rating": {
                    "type": [
                      "string",
                      "number"
                    ],
                    "minLength": 1,
                    "maximum": 5,
                    "description": "Optional source-provided property star rating when known. String values preserve existing source formatting; numeric values must be from 1 through 5."
                  }
                },
                "additionalProperties": false
              },
              "stay": {
                "type": "object",
                "description": "Optional stay facts. Omit the entire object when dates are unknown; when supplied both dates are required.",
                "required": [
                  "check_in",
                  "check_out"
                ],
                "properties": {
                  "check_in": {
                    "type": "string",
                    "format": "date",
                    "description": "Known local check-in calendar date; never a default or inferred placeholder."
                  },
                  "check_out": {
                    "type": "string",
                    "format": "date",
                    "description": "Known local check-out calendar date; semantic validation requires it to be after check_in."
                  },
                  "occupancy": {
                    "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/hotelOccupancy",
                    "description": "Optional known search or booking occupancy. Omit it instead of inventing room or guest counts."
                  }
                },
                "additionalProperties": false
              },
              "room": {
                "type": "object",
                "description": "Optional room facts. Omit the entire object when the room type is unknown.",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "description": "Non-empty source-provided room name when the room is known."
                  },
                  "room_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "description": "Optional opaque source room identifier when it is safe to disclose."
                  },
                  "bedding": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 8,
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "description": "Optional non-empty source-provided bedding descriptions."
                  },
                  "max_occupancy": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Optional maximum room occupancy when known."
                  },
                  "room_type_guaranteed": {
                    "type": "boolean",
                    "description": "Optional source assertion that the named room type is guaranteed."
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "hotelLocation": {
            "type": "object",
            "description": "Public hotel-property location. location_id is an AON Full Location Catalog v1 string identifier checked semantically; country_code is independently supplied rather than inferred. Source display facts remain nested under location to match existing supply adapters.",
            "required": [
              "location_id",
              "country_code"
            ],
            "properties": {
              "location_id": {
                "type": "string",
                "pattern": "^[0-9]+$",
                "description": "Numeric-string identifier that must be an active AON Full Location Catalog v1 member under semantic validation."
              },
              "country_code": {
                "type": "string",
                "pattern": "^[A-Z]{2}$",
                "description": "Uppercase two-letter ISO 3166-1 alpha-2 country or territory code supplied by the source."
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Optional source-provided city display name when known."
              },
              "address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "description": "Optional source-provided property address when known."
              },
              "latitude": {
                "type": [
                  "string",
                  "number"
                ],
                "minimum": -90,
                "maximum": 90,
                "description": "Optional WGS-84 latitude when supplied by the source. String values preserve existing adapter payloads; numeric values must be from -90 through 90."
              },
              "longitude": {
                "type": [
                  "string",
                  "number"
                ],
                "minimum": -180,
                "maximum": 180,
                "description": "Optional WGS-84 longitude when supplied by the source. String values preserve existing adapter payloads; numeric values must be from -180 through 180."
              },
              "timezone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "description": "Optional source-provided IANA-style property timezone when known."
              }
            },
            "additionalProperties": false
          },
          "hotelOccupancy": {
            "type": "object",
            "description": "Known aggregate occupancy for a hotel stay. It does not imply a per-room allocation.",
            "required": [
              "rooms",
              "adults"
            ],
            "properties": {
              "rooms": {
                "type": "integer",
                "minimum": 1,
                "description": "Positive number of rooms when known."
              },
              "adults": {
                "type": "integer",
                "minimum": 1,
                "description": "Positive number of adult guests when known."
              },
              "children_ages": {
                "type": "array",
                "minItems": 1,
                "maxItems": 12,
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 17
                },
                "description": "Optional ages of known child guests. Omit when there are no children or their ages are unknown."
              }
            },
            "additionalProperties": false
          },
          "flightSourceText": {
            "type": "object",
            "description": "Untranslated source text with an explicit source-language state.",
            "required": [
              "text",
              "language"
            ],
            "properties": {
              "text": {
                "type": "string",
                "description": "Nonblank source-reported display text, preserved without translation or normalization into the Offer content language.",
                "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]"
              },
              "language": {
                "type": "string",
                "description": "BCP 47 language tag for the source text; und indicates that the source language is unverified.",
                "minLength": 2,
                "maxLength": 64,
                "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}(?:-[A-Za-z]{4})?(?:-(?:[A-Za-z]{2}|[0-9]{3}))?(?:-(?:[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(?:-[0-9A-WY-Za-wy-z](?:-[A-Za-z0-9]{2,8})+)*(?:-[Xx](?:-[A-Za-z0-9]{1,8})+)?$"
              }
            },
            "additionalProperties": false
          },
          "flightPlannedAircraft": {
            "type": "object",
            "description": "Supplier-reported planned aircraft label and its provenance; it is not a standardized type or actual operating equipment.",
            "required": [
              "name",
              "source"
            ],
            "properties": {
              "name": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightSourceText",
                "description": "Source-reported aircraft model label with the source language recorded."
              },
              "source": {
                "const": "supplier_reported",
                "description": "Identifies the supplier as the source of this planned aircraft label."
              }
            },
            "additionalProperties": false
          },
          "flightStop": {
            "type": "object",
            "description": "A source-reported stop with a location label or airport code.",
            "properties": {
              "name": {
                "type": "string",
                "description": "Source-provided nonblank location label, which may identify a city rather than an airport.",
                "minLength": 1,
                "pattern": "\\S"
              },
              "name_language": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightSourceText/properties/language",
                "description": "Language of the source-provided stop name; und means unverified. Requires name."
              },
              "airport_code": {
                "type": "string",
                "description": "Source-provided uppercase airport code; do not infer it from a location name.",
                "pattern": "^[A-Z]{3}$"
              },
              "duration_minutes": {
                "type": "integer",
                "description": "Positive source-provided stop duration in minutes.",
                "minimum": 1
              }
            },
            "required": [],
            "additionalProperties": false,
            "dependentRequired": {
              "name_language": [
                "name"
              ]
            },
            "anyOf": [
              {
                "required": [
                  "name"
                ],
                "type": "object"
              },
              {
                "required": [
                  "airport_code"
                ],
                "type": "object"
              }
            ]
          },
          "flightConnection": {
            "type": "object",
            "description": "Connection from segment at after_segment_index to the next segment in the same leg.",
            "required": [
              "after_segment_index",
              "airport_change"
            ],
            "properties": {
              "after_segment_index": {
                "type": "integer",
                "minimum": 0,
                "description": "Zero-based index of the segment before this connection."
              },
              "airport_change": {
                "type": "boolean",
                "description": "True exactly when arrival and following departure airport codes differ."
              },
              "duration_minutes": {
                "type": "integer",
                "minimum": 1,
                "description": "Verified elapsed time from first arrival to next departure, including a known airport transfer when applicable."
              }
            },
            "additionalProperties": false
          },
          "flightCabinAmenities": {
            "type": "object",
            "minProperties": 1,
            "description": "Observed or provider-confirmed facilities for the particular flight and cabin. False is an affirmative absence; omit unknown fields.",
            "required": [],
            "properties": {
              "wifi": {
                "type": "boolean",
                "description": "Confirmed Wi-Fi availability in this segment and cabin."
              },
              "power_outlet": {
                "type": "boolean",
                "description": "Confirmed in-seat power availability in this segment and cabin."
              },
              "inflight_entertainment": {
                "type": "boolean",
                "description": "Confirmed in-flight entertainment availability in this segment and cabin."
              },
              "meal_included": {
                "type": "boolean",
                "description": "Whether a meal is included for this segment and cabin."
              },
              "seat_pitch_inches": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "Verified seat pitch in inches for this cabin configuration."
              }
            },
            "additionalProperties": false
          },
          "flightMoney": {
            "type": "object",
            "required": [
              "amount",
              "currency"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                "description": "Non-negative quoted monetary amount in the stated currency."
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$",
                "description": "Uppercase three-letter currency code for the quoted amount."
              }
            },
            "additionalProperties": false
          },
          "flightBaggageAllowance": {
            "type": "object",
            "description": "Included allowance from the same fare quote; zero pieces explicitly means none.",
            "required": [],
            "properties": {
              "pieces": {
                "type": "integer",
                "minimum": 0,
                "description": "Number of baggage pieces included in this fare component; zero means none."
              },
              "total_weight_kg": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "Total included baggage weight in kilograms."
              },
              "max_weight_kg_per_piece": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "Maximum included weight in kilograms for each piece."
              }
            },
            "anyOf": [
              {
                "required": [
                  "pieces"
                ]
              },
              {
                "required": [
                  "total_weight_kg"
                ]
              }
            ],
            "additionalProperties": false
          },
          "flightFarePolicy": {
            "type": "object",
            "required": [
              "summary"
            ],
            "description": "Fare-specific conditions from the quoted seller; exact applicability remains in the summary.",
            "properties": {
              "summary": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightSourceText"
              },
              "permitted": {
                "type": "boolean",
                "description": "Whether the quoted fare permits this change or refund under the stated conditions."
              },
              "fee": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightMoney",
                "description": "Exact quoted fee only when the summary states its applicable conditions."
              }
            },
            "additionalProperties": false
          },
          "flightSeatSelection": {
            "type": "object",
            "minProperties": 1,
            "description": "Seat selection terms for this fare component, not generic aircraft seat availability.",
            "required": [],
            "properties": {
              "included": {
                "type": "boolean",
                "description": "Whether seat selection is included in this fare component."
              },
              "starting_fee": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightMoney",
                "description": "Source-quoted starting seat-selection fee, not a selected seat or final charge."
              }
            },
            "additionalProperties": false
          },
          "flightFareComponent": {
            "type": "object",
            "description": "Fare facts applying to one traveler type on one segment of this priced itinerary.",
            "required": [
              "leg_index",
              "segment_index",
              "traveler_type"
            ],
            "properties": {
              "leg_index": {
                "type": "integer",
                "minimum": 0,
                "description": "Zero-based leg index for this quoted fare component."
              },
              "segment_index": {
                "type": "integer",
                "minimum": 0,
                "description": "Zero-based segment index within the referenced leg."
              },
              "traveler_type": {
                "type": "string",
                "enum": [
                  "adult",
                  "child",
                  "infant"
                ],
                "description": "Quoted traveler type to which these fare rights apply."
              },
              "brand_name": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightSourceText"
              },
              "booking_class": {
                "type": "string",
                "pattern": "^[A-Z0-9]{1,3}$",
                "description": "Source-confirmed reservation booking class for this segment and traveler type."
              },
              "carry_on_baggage": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightBaggageAllowance"
              },
              "checked_baggage": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightBaggageAllowance"
              },
              "change_policy": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightFarePolicy"
              },
              "refund_policy": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightFarePolicy"
              },
              "seat_selection": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightSeatSelection"
              }
            },
            "additionalProperties": false,
            "minProperties": 4
          },
          "flightFareDetails": {
            "type": "object",
            "minProperties": 1,
            "description": "Terms of the same seller quote as commercial.price, not an airline-wide default. Omit unknown facts.",
            "required": [],
            "properties": {
              "components": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/flightFareComponent"
                },
                "description": "Fare rights by quoted traveler type and itinerary segment."
              },
              "self_transfer": {
                "type": "boolean",
                "description": "Seller-confirmed self-transfer status of this quoted itinerary."
              },
              "separate_tickets": {
                "type": "boolean",
                "description": "Seller-confirmed separate-ticket status of this quoted itinerary."
              },
              "baggage_recheck_required": {
                "type": "boolean",
                "description": "Seller-confirmed baggage recheck requirement for this quoted itinerary."
              }
            },
            "additionalProperties": false
          },
          "flightEmissions": {
            "type": "object",
            "description": "Estimated whole-itinerary climate impact, not an observed flight status or guaranteed actual emissions.",
            "required": [
              "estimated_kg_co2e",
              "methodology",
              "calculated_at"
            ],
            "properties": {
              "estimated_kg_co2e": {
                "type": "number",
                "minimum": 0,
                "description": "Estimated whole-itinerary carbon dioxide equivalent in kilograms."
              },
              "relative_to_typical_percent": {
                "type": "number",
                "minimum": -100,
                "description": "Signed comparison with a comparable-route typical flight: negative means lower estimated emissions."
              },
              "methodology": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Name or version of the method used to estimate emissions."
              },
              "calculated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp at which the emissions estimate was calculated."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "Protocol_offer_query_flight_profile_v1_0": {
        "type": "object",
        "description": "Explicit opt-in Flight search constraints.",
        "properties": {
          "profile": {
            "const": "flight",
            "description": "Registered Query profile identifier."
          },
          "data": {
            "type": "object",
            "description": "Closed hard constraints for a typed Flight search.",
            "properties": {
              "query_kind": {
                "type": "string",
                "description": "Explicit reference search or traveler-specific full itinerary quote; no inferred default.",
                "enum": [
                  "reference_search",
                  "traveler_quote"
                ]
              },
              "legs": {
                "type": "array",
                "description": "Nonempty itinerary legs in request order.",
                "minItems": 1,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_query_flight_profile_v1_0/$defs/leg"
                }
              },
              "travelers": {
                "type": "array",
                "description": "Traveler groups, required for a quote and forbidden for a reference search.",
                "minItems": 1,
                "maxItems": 3,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_query_flight_profile_v1_0/$defs/traveler"
                }
              },
              "airLine": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "pattern": "^[A-Z0-9]{2}$",
                "description": "Optional two-character uppercase IATA marketing airline code; every segment across all returned legs must have this exact marketing_carrier.code."
              },
              "cabin_class": {
                "type": "string",
                "description": "Exact cabin required on every returned segment.",
                "enum": [
                  "economy",
                  "premium_economy",
                  "business",
                  "first"
                ]
              },
              "max_connections": {
                "type": "integer",
                "description": "Maximum segment changes within each leg.",
                "minimum": 0
              },
              "nonstop_only": {
                "type": "boolean",
                "description": "When true, each leg must contain exactly one segment. Segment stops do not affect this constraint."
              }
            },
            "required": [
              "query_kind",
              "legs"
            ],
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "query_kind": {
                      "const": "reference_search",
                      "description": "Select a reference search."
                    }
                  },
                  "type": "object"
                },
                "then": {
                  "not": {
                    "required": [
                      "travelers"
                    ],
                    "type": "object"
                  }
                },
                "else": {
                  "required": [
                    "travelers"
                  ],
                  "type": "object"
                }
              }
            ]
          }
        },
        "required": [
          "profile",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "title": "AgentOffer Flight Query Profile v1.0",
        "$defs": {
          "location": {
            "type": "object",
            "description": "An explicitly selected airport or city. City matching requires trusted external airport membership evidence.",
            "properties": {
              "kind": {
                "type": "string",
                "description": "Whether the requested code denotes an airport or city.",
                "enum": [
                  "airport",
                  "city"
                ]
              },
              "code": {
                "type": "string",
                "description": "Three-letter uppercase location code; spelling alone does not prove registry membership.",
                "pattern": "^[A-Z]{3}$"
              }
            },
            "required": [
              "kind",
              "code"
            ],
            "additionalProperties": false
          },
          "leg": {
            "type": "object",
            "description": "One requested leg in itinerary order.",
            "properties": {
              "origin": {
                "$ref": "#/components/schemas/Protocol_offer_query_flight_profile_v1_0/$defs/location",
                "description": "Requested departure airport or city."
              },
              "destination": {
                "$ref": "#/components/schemas/Protocol_offer_query_flight_profile_v1_0/$defs/location",
                "description": "Requested arrival airport or city."
              },
              "departure_date": {
                "type": "string",
                "description": "Actual calendar date at the departure location in YYYY-MM-DD form.",
                "format": "date",
                "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
              }
            },
            "required": [
              "origin",
              "destination",
              "departure_date"
            ],
            "additionalProperties": false
          },
          "traveler": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/traveler",
                "description": "Base traveler group facts."
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "enum": [
                        "child",
                        "infant"
                      ],
                      "description": "Select travelers that require ages."
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "then": {
                  "required": [
                    "ages"
                  ],
                  "type": "object"
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "infant",
                      "description": "Select infant travelers."
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "then": {
                  "required": [
                    "infant_seat_required"
                  ],
                  "type": "object"
                }
              }
            ]
          },
          "flightSearch": {
            "type": "object",
            "description": "Execution metadata; producer responsibility establishes actual source execution.",
            "properties": {
              "query_kind": {
                "type": "string",
                "description": "Query kind of the paired request.",
                "enum": [
                  "reference_search",
                  "traveler_quote"
                ]
              },
              "status": {
                "type": "string",
                "description": "Complete means all selected capable sources completed; partial means at least one completed and at least one failed.",
                "enum": [
                  "complete",
                  "partial"
                ]
              },
              "fetched_at": {
                "type": "string",
                "description": "RFC3339 time when this search batch finished collecting results; not quote generation or expiry time.",
                "format": "date-time"
              }
            },
            "required": [
              "query_kind",
              "status",
              "fetched_at"
            ],
            "additionalProperties": false
          },
          "flightSearchError": {
            "type": "object",
            "description": "Closed Flight error diagnosis using the existing error envelope.",
            "properties": {
              "kind": {
                "type": "string",
                "description": "Typed Flight rejection or execution failure class.",
                "enum": [
                  "invalid_query",
                  "unsupported_capability",
                  "upstream_failure"
                ]
              },
              "fields": {
                "type": "array",
                "description": "Optional nonempty JSON Pointer references to offending request constraints.",
                "minItems": 1,
                "items": {
                  "type": "string",
                  "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
                }
              }
            },
            "required": [
              "kind"
            ],
            "additionalProperties": false
          },
          "typedOffer": {
            "type": "object",
            "required": [
              "offer_info"
            ],
            "properties": {
              "offer_info": {
                "type": "object",
                "description": "Flight information and commercial facts required for a typed result.",
                "required": [
                  "details",
                  "commercial"
                ],
                "properties": {
                  "details": {
                    "type": "object",
                    "description": "Explicit Flight profile and price nature.",
                    "required": [
                      "profile",
                      "data"
                    ],
                    "properties": {
                      "profile": {
                        "const": "flight",
                        "description": "Typed results use the Flight profile."
                      },
                      "data": {
                        "type": "object",
                        "description": "Typed Flight data requires explicit price nature.",
                        "required": [
                          "price_basis"
                        ],
                        "allOf": [
                          {
                            "if": {
                              "properties": {
                                "price_basis": {
                                  "const": "itinerary_total",
                                  "description": "Select a traveler quote."
                                }
                              },
                              "type": "object"
                            },
                            "then": {
                              "properties": {
                                "travelers": {
                                  "type": "array",
                                  "description": "Quote travelers with sufficient age and seat facts.",
                                  "items": {
                                    "$ref": "#/components/schemas/Protocol_offer_query_flight_profile_v1_0/$defs/traveler"
                                  }
                                }
                              },
                              "type": "object"
                            }
                          }
                        ]
                      }
                    }
                  },
                  "commercial": {
                    "type": "object",
                    "description": "Source price and any quote observation.",
                    "required": [
                      "price"
                    ],
                    "properties": {
                      "price": {
                        "type": "object",
                        "description": "Typed itinerary price, never a recurring period price.",
                        "required": [
                          "amount",
                          "currency",
                          "tax_status"
                        ],
                        "properties": {
                          "unit": {
                            "const": "one_time",
                            "description": "Optional nonrecurring itinerary price unit."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Protocol_goal_event_name_v1_0": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "title": "AgentOffer Goal Event Name v1.0",
        "description": "Current canonical goal event identity shared by v1.0 Offers and Postbacks.",
        "type": "string",
        "pattern": "^[a-z][a-z0-9_]{0,63}$"
      },
      "Protocol_offer_v1_0": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "title": "AgentOffer Offer Schema v1.0",
        "description": "Adopted Offer Schema v1.0 for intent-matched conversational recommendations.",
        "type": "object",
        "required": [
          "offer_id",
          "offer_instance_id",
          "version",
          "offer_info",
          "entity",
          "action",
          "goals"
        ],
        "properties": {
          "offer_id": {
            "type": "string",
            "format": "uuid",
            "description": "AON-issued, globally unique inventory identity for the logical Offer. It remains stable across returned instances and must never contain a Partner source identifier, row id, or request correlation id."
          },
          "offer_instance_id": {
            "type": "string",
            "format": "uuid",
            "description": "AON-issued identity for this dispatch of the Offer. Consumers propagate it unchanged through click and conversion attribution; a later dispatch of the same offer_id receives a different value."
          },
          "version": {
            "const": "3.0",
            "description": "Offer document-model lineage. It identifies the Offer payload model and does not select the transport protocol version."
          },
          "content_language": {
            "type": "string",
            "minLength": 2,
            "maxLength": 64,
            "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}(?:-[A-Za-z]{4})?(?:-(?:[A-Za-z]{2}|[0-9]{3}))?(?:-(?:[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(?:-[0-9A-WY-Za-wy-z](?:-[A-Za-z0-9]{2,8})+)*(?:-[Xx](?:-[A-Za-z0-9]{1,8})+)?$",
            "description": "Language tag for user-facing Offer text under the stable-v1.0 BCP-47 profile: a two- or three-letter ASCII primary language subtag with optional extlang, script, region, variant, extension, and private-use subtags. This profile validates syntax, not IANA registry membership. It does not express targeting eligibility or select the protocol version."
          },
          "offer_info": {
            "type": "object",
            "description": "User-facing descriptive, category, commercial, and availability information for the Offer.",
            "required": [
              "title",
              "category",
              "description"
            ],
            "properties": {
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Short user-facing name used to identify the Offer in a result, card, or other presentation."
              },
              "short_description": {
                "type": "string",
                "maxLength": 500,
                "description": "Optional compact user-facing Offer overview for result cards and previews. It does not replace the required description or convey AON ranking or per-request matching rationale; semantic validation rejects blank content and limits it to 50 Unicode word-like segments."
              },
              "offer_type": {
                "type": "string",
                "enum": [
                  "physical_product",
                  "digital_goods",
                  "content",
                  "online_service",
                  "offline_service"
                ],
                "description": "High-level class of what is offered. It supports presentation and product understanding; it is not the executable consumer action."
              },
              "category": {
                "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/category",
                "description": "Primary AON Taxonomy v1 classification for the Offer."
              },
              "secondary_category_ids": {
                "type": "array",
                "minItems": 1,
                "maxItems": 5,
                "uniqueItems": true,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/categoryId"
                },
                "description": "Optional additional AON Taxonomy v1 classifications. When present the array is non-empty; entries add descriptive coverage and must remain distinct from the primary category and from one another under semantic validation."
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 5000,
                "description": "User-facing explanation of what the Offer provides. It is Offer content, not an AON ranking explanation."
              },
              "tags": {
                "type": "array",
                "minItems": 1,
                "maxItems": 20,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "description": "Optional non-empty set of short descriptive labels for presentation or filtering. Tags do not replace canonical taxonomy classification or targeting rules."
              },
              "rating": {
                "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/rating",
                "description": "Optional user-visible rating summary supplied with the Offer. It is descriptive content and not an AON endorsement."
              },
              "min_age": {
                "type": "integer",
                "minimum": 1,
                "maximum": 120,
                "description": "Optional AON-derived minimum audience age in years. It projects the Partner-declared targeting[].eligibility.min_age and is omitted when any applicable targeting rule declares no minimum. It is a Partner declaration, not an AON-certified age rating or legal-compliance determination, and the Partner and OfferProvider carriers prohibit it."
              },
              "properties": {
                "type": "array",
                "minItems": 1,
                "maxItems": 6,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/displayProperty"
                },
                "description": "Optional non-empty, bounded list of structured user-facing facts, such as duration, plan tier, or included features."
              },
              "recommendation_reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "description": "Optional non-empty static Partner- or provider-authored Offer copy. It may be displayed to the user, but is not a per-request AON match explanation and is unaffected by thinking_mode."
              },
              "commercial": {
                "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/commercial",
                "description": "Optional public commercial presentation containing the current price, optional pre-discount price, an AON-derived response display price, and related source context. It excludes internal commission, settlement, and eligibility policy."
              },
              "details": {
                "$ref": "#/components/schemas/Protocol_offer_profile_registry_v1_0/$defs/supplyDetails",
                "description": "Optional closed registered supply-profile facts. Omit it for a Generic Offer; when supplied, details.profile selects the only permitted details.data shape."
              },
              "start_at": {
                "type": "string",
                "format": "date-time",
                "description": "Optional start of the user-visible Offer availability window."
              },
              "expire_at": {
                "type": "string",
                "format": "date-time",
                "description": "Optional end of the user-visible Offer availability window. When both availability bounds are supplied, it must not precede start_at."
              }
            },
            "additionalProperties": false
          },
          "entity": {
            "type": "object",
            "description": "Public identity of the party responsible for the Offer.",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "description": "Stable identifier for the merchant, brand, provider, publisher, or other party responsible for the Offer. It is not an Offer identifier."
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "User-facing name of the entity responsible for the Offer."
              },
              "type": {
                "type": "string",
                "enum": [
                  "merchant",
                  "brand",
                  "provider",
                  "publisher",
                  "other"
                ],
                "description": "Role of the entity in relation to the Offer."
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "description": "Optional non-empty user-facing description of the responsible entity."
              },
              "website": {
                "type": "string",
                "format": "uri",
                "pattern": "^[Hh][Tt][Tt][Pp][Ss]://",
                "description": "Optional public HTTPS website for the responsible entity. It is identity metadata, not the action destination, and must not contain URI userinfo."
              },
              "logo": {
                "type": "string",
                "format": "uri",
                "pattern": "^[Hh][Tt][Tt][Pp][Ss]://",
                "description": "Optional public logo for the responsible entity. It is an absolute HTTPS resource URI and must not contain URI userinfo."
              }
            },
            "additionalProperties": false
          },
          "listing_source": {
            "type": "object",
            "description": "Optional provenance for the external platform or site where listing information was observed.",
            "required": [
              "kind",
              "name"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "platform",
                  "marketplace",
                  "merchant_site",
                  "official_site",
                  "other"
                ],
                "description": "Classification of the external place where user-facing listing information was observed."
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "description": "User-facing name of the observed platform or site. It remains distinct from entity.name."
              },
              "observed_at": {
                "type": "string",
                "format": "date-time",
                "deprecated": true,
                "description": "Deprecated and optional. Producers may still send it; AON accepts and discards it and never returns it in Query, MCP or Offer Info responses. Consumers must not read or display it."
              },
              "logo": {
                "type": "string",
                "format": "uri",
                "pattern": "^[Hh][Tt][Tt][Pp][Ss]://",
                "maxLength": 2048,
                "description": "Optional explicit logo of the observed platform or site. It is an absolute HTTPS resource URI without userinfo and must not be inferred from entity, action, or material fields."
              }
            },
            "additionalProperties": false
          },
          "action": {
            "type": "object",
            "description": "Executable user-choice destination associated with the Offer.",
            "required": [
              "type",
              "payload"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "open_url",
                  "deep_link",
                  "open_app",
                  "custom"
                ],
                "description": "Technical form of the executable action destination."
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "description": "Optional non-empty concise call-to-action label for the user."
              },
              "consumer_action": {
                "type": "string",
                "enum": [
                  "learn_more",
                  "buy",
                  "book",
                  "subscribe",
                  "download",
                  "claim",
                  "sign_up",
                  "open"
                ],
                "description": "User-intent classification for the action. It describes what the user is invited to do and is distinct from a conversion Goal event."
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "description": "Optional non-empty user-facing explanation of what invoking the action does."
              },
              "destination_types": {
                "type": "array",
                "minItems": 1,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "enum": [
                    "web",
                    "app",
                    "phone",
                    "email"
                  ]
                },
                "description": "Optional non-empty declaration of destination surfaces supported by the action."
              },
              "payload": {
                "type": "object",
                "required": [
                  "url"
                ],
                "description": "Executable action parameters. Stable v1.0 defines one safe absolute URI destination.",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^(?!(?:[Jj][Aa][Vv][Aa][Ss][Cc][Rr][Ii][Pp][Tt]|[Dd][Aa][Tt][Aa]|[Vv][Bb][Ss][Cc][Rr][Ii][Pp][Tt]|[Ff][Ii][Ll][Ee]):)[A-Za-z][A-Za-z0-9+.-]*:",
                    "maxLength": 2048,
                    "description": "Safe absolute URI invoked when the user chooses the action. javascript, data, vbscript, and file schemes are forbidden; open_url additionally requires HTTPS."
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "open_url",
                      "description": "Conditional discriminator selecting the HTTPS-only open_url branch."
                    }
                  },
                  "required": [
                    "type"
                  ]
                },
                "then": {
                  "properties": {
                    "payload": {
                      "type": "object",
                      "description": "Action payload constrained by the selected open_url branch.",
                      "properties": {
                        "url": {
                          "type": "string",
                          "pattern": "^[Hh][Tt][Tt][Pp][Ss]://",
                          "description": "Absolute HTTPS destination required when action.type is open_url."
                        }
                      }
                    }
                  }
                }
              }
            ]
          },
          "material": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/material"
            },
            "description": "Optional non-empty list of user-facing creative assets for presenting the Offer."
          },
          "claims": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/claim"
            },
            "description": "Optional non-empty, bounded list of source-provided statements about the Offer. They are not AON endorsements."
          },
          "match_reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "description": "AON-authored, per-request user-facing explanation of why this Offer matches the current intent. It is omitted when response_options.thinking_mode is false and must not expose private reasoning or ranking data."
          },
          "goals": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/goal"
            },
            "description": "Public conversion event declarations and their associated public pricing model."
          }
        },
        "additionalProperties": false,
        "$defs": {
          "categoryId": {
            "type": "string",
            "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*(?:\\.[a-z0-9]+(?:_[a-z0-9]+)*)*$",
            "description": "Canonical AON Taxonomy v1 category identifier."
          },
          "category": {
            "type": "object",
            "description": "Taxonomy classification object.",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/categoryId",
                "description": "Canonical AON Taxonomy v1 category identifier."
              }
            },
            "additionalProperties": false
          },
          "rating": {
            "type": "object",
            "description": "User-visible rating summary that always declares a rating value.",
            "required": [
              "value"
            ],
            "properties": {
              "value": {
                "type": "number",
                "minimum": 0,
                "maximum": 5,
                "description": "Rating value on the declared five-point scale."
              },
              "count": {
                "type": "integer",
                "minimum": 1,
                "description": "Positive number of observations represented by the rating when supplied. Omit count when no observation count is available."
              },
              "source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "Optional name of the source that supplied the rating."
              }
            },
            "additionalProperties": false
          },
          "displayProperty": {
            "type": "object",
            "description": "Structured user-facing Offer fact.",
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$",
                "maxLength": 64,
                "description": "Stable machine-readable key for the displayed fact."
              },
              "value": {
                "type": [
                  "string",
                  "number",
                  "boolean"
                ],
                "description": "Value of the displayed fact."
              },
              "unit": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32,
                "description": "Optional non-empty unit that qualifies the displayed value."
              },
              "display_pattern": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "description": "Optional non-empty presentation template for this fact. Only same-item tokens ${type}, ${value}, and ${unit} are allowed; the template does not change the underlying value."
              }
            },
            "additionalProperties": false
          },
          "displayPrice": {
            "type": "object",
            "description": "AON-derived amount and currency for presentation in the current Query response only. It is never authoritative for checkout, settlement, or a transaction.",
            "required": [
              "amount",
              "currency"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
                "description": "Canonical non-negative decimal amount to present for this response, with at most twelve integer digits and six fractional digits."
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$",
                "description": "Uppercase three-letter target presentation currency syntax; registry membership is not asserted."
              }
            },
            "additionalProperties": false
          },
          "commercial": {
            "type": "object",
            "minProperties": 1,
            "description": "Non-empty public commercial presentation fields.",
            "properties": {
              "price": {
                "type": "object",
                "description": "Current selling price of the Offer. It is public Offer content, not Goal commission or final settlement data.",
                "required": [
                  "amount",
                  "currency"
                ],
                "properties": {
                  "amount": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Canonical decimal string for the Offer price amount."
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$",
                    "description": "Uppercase three-letter currency code for the Offer price."
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "one_time",
                      "night",
                      "day",
                      "week",
                      "month",
                      "year"
                    ],
                    "description": "Unit or billing period to which the Offer price applies."
                  },
                  "tax_status": {
                    "type": "string",
                    "enum": [
                      "included",
                      "excluded",
                      "unknown"
                    ],
                    "description": "Optional declaration of whether applicable taxes and mandatory fees are included in the Offer price. unknown means the producer does not know and must not guess."
                  }
                },
                "additionalProperties": false
              },
              "original_price": {
                "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/commercial/properties/price",
                "description": "Source-provided price before discounts. Omit when unknown."
              },
              "display_price": {
                "$ref": "#/components/schemas/Protocol_offer_v1_0/$defs/displayPrice",
                "description": "Optional AON-derived presentation amount and currency for this Query response. It overrides only price.amount and price.currency for display and is invalid without a current price."
              },
              "quote": {
                "type": "object",
                "description": "Observed current-price context. It is only valid together with commercial.price and does not prove display_price or foreign-exchange freshness.",
                "required": [
                  "observed_at"
                ],
                "properties": {
                  "observed_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "RFC 3339 instant at which the producer observed the current Offer price."
                  },
                  "valid_until": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Optional RFC 3339 instant through which the producer explicitly asserts the observed current price remains valid; semantic validation requires it to be after observed_at."
                  }
                },
                "additionalProperties": false
              },
              "fulfillment_note": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "description": "Optional short user-facing note about fulfillment or a material current-price condition."
              }
            },
            "allOf": [
              {
                "if": {
                  "required": [
                    "quote"
                  ]
                },
                "then": {
                  "required": [
                    "price"
                  ]
                }
              }
            ],
            "additionalProperties": false
          },
          "material": {
            "type": "object",
            "description": "One user-facing creative asset retrieved from a trusted transport resource.",
            "required": [
              "url",
              "format"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "pattern": "^[Hh][Tt][Tt][Pp][Ss]://",
                "description": "Absolute HTTPS URI for retrieving the creative asset; URI userinfo is forbidden."
              },
              "tag": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "description": "Optional producer-supplied label for the creative asset. It must not be treated as targeting or eligibility data."
              },
              "format": {
                "type": "string",
                "enum": [
                  "image",
                  "video",
                  "html5"
                ],
                "description": "Creative asset format."
              },
              "dimensions": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32,
                "description": "Optional producer-declared dimensions or aspect descriptor for rendering."
              },
              "alt_text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Optional accessibility text describing the creative asset."
              }
            },
            "additionalProperties": false
          },
          "claim": {
            "type": "object",
            "description": "One bounded source-provided statement about the Offer.",
            "required": [
              "kind",
              "text"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "advertiser_claim",
                  "user_benefit",
                  "availability"
                ],
                "description": "Classification of the statement so consumers can present it with appropriate context."
              },
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "description": "User-facing text of the statement. It remains source-provided content, not an AON endorsement."
              }
            },
            "additionalProperties": false
          },
          "goal": {
            "type": "object",
            "description": "Public declaration of a billable conversion event and the gross Partner-to-AON commission basis. It is not the user-visible Offer price or a final settlement record.",
            "required": [
              "event",
              "pricing"
            ],
            "properties": {
              "event": {
                "$ref": "#/components/schemas/Protocol_goal_event_name_v1_0",
                "description": "Canonical conversion event name for this Goal; events are unique within one Offer."
              },
              "pricing": {
                "description": "Gross commission the Partner declares payable to AON for an approved, attributed occurrence of this Goal, before AON fees, developer share, refunds, holds, disputes, or adjustments.",
                "oneOf": [
                  {
                    "type": "object",
                    "description": "Fixed Partner-to-AON commission for each approved occurrence of the Goal event.",
                    "required": [
                      "model",
                      "amount",
                      "currency"
                    ],
                    "properties": {
                      "model": {
                        "const": "cpa",
                        "description": "Cost per action: a fixed gross commission per approved, attributed Goal event."
                      },
                      "amount": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$",
                        "not": {
                          "enum": [
                            "0",
                            "0.0",
                            "0.00",
                            "0.000",
                            "0.0000",
                            "0.00000",
                            "0.000000"
                          ]
                        },
                        "description": "Strictly positive canonical decimal amount of gross Partner-to-AON commission for one approved Goal event."
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$",
                        "description": "Uppercase three-letter currency code for the CPA commission amount."
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "description": "Percentage Partner-to-AON commission applied to the gross conversion amount reported for an approved sale.",
                    "required": [
                      "model",
                      "rate"
                    ],
                    "properties": {
                      "model": {
                        "const": "cps",
                        "description": "Cost per sale: a percentage of the approved conversion's gross reported amount."
                      },
                      "rate": {
                        "type": "string",
                        "pattern": "^(?:100(?:\\.0{1,4})?|[1-9]?[0-9](?:\\.[0-9]{1,4})?)$",
                        "not": {
                          "enum": [
                            "0",
                            "0.0",
                            "0.00",
                            "0.000",
                            "0.0000"
                          ]
                        },
                        "description": "Strictly positive canonical percentage rate, greater than zero and no greater than 100, applied to the gross conversion amount in its reported currency."
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "description": "Optional non-empty user-facing explanation of what user outcome constitutes the Goal; it does not change attribution or payment terms."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "Protocol_offer_query_v1_0": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "title": "AgentOffer Query Request Schema v1.0",
        "description": "Adopted conversational Offer Query request. Only the current structured intent and explicitly allowed context are public inputs.",
        "type": "object",
        "required": [
          "context",
          "intent"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "test_mode": {
            "type": "boolean",
            "default": false
          },
          "placement_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^\\S+$"
          },
          "context": {
            "type": "object",
            "properties": {
              "platform": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  },
                  "channel": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "session": {
                "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/session"
              },
              "session_id": {
                "type": "string",
                "maxLength": 256
              },
              "conversation_id": {
                "type": [
                  "string",
                  "number"
                ]
              },
              "user_profile": {
                "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/userProfile"
              }
            },
            "additionalProperties": false
          },
          "intent": {
            "type": "object",
            "required": [
              "content",
              "provenance"
            ],
            "properties": {
              "content": {
                "type": "array",
                "minItems": 1,
                "allOf": [
                  {
                    "type": "array",
                    "contains": {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "input_text"
                        }
                      }
                    },
                    "minContains": 0,
                    "maxContains": 1
                  },
                  {
                    "type": "array",
                    "contains": {
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "input_image"
                        }
                      }
                    },
                    "minContains": 0,
                    "maxContains": 4
                  }
                ],
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "required": [
                        "type",
                        "text"
                      ],
                      "properties": {
                        "type": {
                          "const": "input_text"
                        },
                        "text": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\r\\n]+$"
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "type",
                        "image_url"
                      ],
                      "properties": {
                        "type": {
                          "const": "input_image"
                        },
                        "image_url": {
                          "type": "string",
                          "format": "uri",
                          "description": "Image input as an HTTP(S) URL or data:image/<subtype>;base64,<data> URL. Each base64 data payload supports at most 524288 characters (512 x 1024), excluding the data URL prefix."
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "provenance": {
                "type": "string",
                "enum": [
                  "user_expressed",
                  "inferred_context"
                ]
              },
              "confidence": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 1
              },
              "origin": {
                "type": "array",
                "maxItems": 3,
                "uniqueItems": true,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/origin"
                }
              },
              "signals": {
                "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/signals"
              },
              "details": {
                "$ref": "#/components/schemas/Protocol_offer_query_flight_profile_v1_0",
                "description": "Optional typed Flight constraints; omission retains the Generic Query contract."
              }
            },
            "additionalProperties": false
          },
          "constraints": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/constraints"
          },
          "force_offer": {
            "type": "boolean",
            "default": false
          },
          "response_options": {
            "type": "object",
            "properties": {
              "thinking_mode": {
                "type": "boolean",
                "default": true
              }
            },
            "additionalProperties": false
          },
          "pagination": {
            "type": "object",
            "description": "Optional page control. Sending this object opts the caller into response has_more and, when more results exist, next_cursor. Omit cursor for the first page; to continue, send the previous response's next_cursor unchanged. There is no public offset member.",
            "properties": {
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50,
                "description": "Requested page size, an integer from 1 through 50. When omitted, the deployment chooses its default page size."
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "description": "Opaque continuation token copied unchanged from the previous response's next_cursor for the same Query. Clients must not parse, construct, modify, or concatenate it."
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "type": "object",
              "properties": {
                "intent": {
                  "type": "object",
                  "properties": {
                    "provenance": {
                      "const": "inferred_context"
                    }
                  }
                }
              }
            },
            "then": {
              "type": "object",
              "properties": {
                "intent": {
                  "type": "object",
                  "required": [
                    "confidence"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "type": "object",
              "properties": {
                "intent": {
                  "type": "object",
                  "properties": {
                    "provenance": {
                      "const": "user_expressed"
                    }
                  }
                }
              }
            },
            "then": {
              "type": "object",
              "properties": {
                "intent": {
                  "type": "object",
                  "not": {
                    "required": [
                      "confidence"
                    ]
                  }
                }
              }
            }
          }
        ],
        "$defs": {
          "session": {
            "type": "object",
            "properties": {
              "previous_request_id": {
                "type": "string",
                "format": "uuid"
              },
              "recent_topics": {
                "type": "array",
                "maxItems": 10,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 50
                }
              }
            },
            "additionalProperties": false
          },
          "userProfile": {
            "type": "object",
            "description": "Optional viewer context for Offer targeting: current location and a verified minimum-age assertion. Other profile attributes remain out of scope.",
            "properties": {
              "location_ids": {
                "type": "array",
                "description": "AON Location Registry ids (Google Ads Criteria IDs) for the viewer's current location, most specific first. Takes precedence over country when resolvable.",
                "minItems": 1,
                "maxItems": 10,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 20,
                  "pattern": "^[0-9]+$"
                }
              },
              "country": {
                "type": "string",
                "description": "Viewer country as an uppercase ISO 3166-1 alpha-2 code. Fallback when location_ids is absent or unresolvable.",
                "pattern": "^[A-Z]{2}$"
              },
              "verified_age_over": {
                "type": "integer",
                "minimum": 13,
                "maximum": 120,
                "description": "Optional assertion that the integrator has verified the viewer is at least this many years old. It is an age threshold, not the viewer's actual age or date of birth, and must come from a real verification process rather than inference. An Offer targeting rule with eligibility.min_age fails when this value is below min_age; when omitted, age is not evaluated and min_age does not restrict the request."
              }
            },
            "additionalProperties": false
          },
          "origin": {
            "type": "object",
            "required": [
              "kind",
              "id"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "offer",
                  "category",
                  "topic",
                  "query_helper"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "additionalProperties": false
          },
          "signals": {
            "type": "object",
            "properties": {
              "budget": {
                "type": "object",
                "required": [
                  "max",
                  "currency"
                ],
                "properties": {
                  "min": {
                    "type": "number",
                    "minimum": 0
                  },
                  "max": {
                    "type": "number",
                    "minimum": 0
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  }
                },
                "additionalProperties": false
              },
              "purchase_stage": {
                "type": "string",
                "enum": [
                  "exploring",
                  "comparing",
                  "ready_to_buy"
                ]
              },
              "timeframe": {
                "type": "string",
                "enum": [
                  "now",
                  "this_week",
                  "this_month",
                  "later"
                ]
              }
            },
            "additionalProperties": false
          },
          "constraints": {
            "type": "object",
            "properties": {
              "category_ids": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/categoryId"
                }
              },
              "excluded_category_ids": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/categoryId"
                }
              },
              "offer_types": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_v1_0/properties/offer_info/properties/offer_type"
                },
                "description": "Optional hard filter on public offer_info.offer_type. Values within this array are OR; different constraint dimensions are AND. Omission preserves existing inference; a nonempty array overrides same-dimension inference; [] clears that dimension and prevents its inference for this request. Null is invalid."
              },
              "listing_source_names": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "[^\\u0009-\\u000D\\u0020]"
                },
                "description": "Optional hard filter on final public listing_source.name. Compare after trimming only U+0009-U+000D/U+0020 at both ends and folding ASCII A-Z to a-z; other characters are exact. No aliases or substring matching. Original duplicate strings are invalid; normalized equivalents use set semantics. Values are OR and dimensions are AND. Omission preserves inference; nonempty overrides it; [] clears and suppresses same-dimension inference for this request. Null is invalid; a valid unknown name remains a filter."
              }
            },
            "additionalProperties": false
          },
          "categoryId": {
            "type": "string",
            "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*(?:\\.[a-z0-9]+(?:_[a-z0-9]+)*)*$"
          }
        }
      },
      "Protocol_offer_query_generic_projection_v1_0": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "title": "AgentOffer Query Generic Offer Projection Schema v1.0",
        "description": "Public Query Offer projection, including optional registered industry details and their commercial facts, independent of real-time retrieval. It permits the optional closed display_price response presentation. Profile schema and semantic requirements apply whenever details are present.",
        "allOf": [
          {
            "$ref": "#/components/schemas/Protocol_offer_v1_0"
          }
        ]
      },
      "Protocol_offer_query_response_v1_0": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "title": "AgentOffer Query Response Schema v1.0",
        "description": "Adopted conversational Offer Query response with optional explanation and next-step guidance.",
        "type": "object",
        "required": [
          "request_id",
          "protocol_version",
          "language",
          "offers"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Correlation identifier for this Query response. It matches the request_id supplied or assigned for the Query request."
          },
          "protocol_version": {
            "const": "1.0",
            "description": "Transport protocol line used to produce this response. It is distinct from offers[].version, which is the Offer document-model lineage."
          },
          "language": {
            "type": "string",
            "minLength": 2,
            "maxLength": 64,
            "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}(?:-[A-Za-z]{4})?(?:-(?:[A-Za-z]{2}|[0-9]{3}))?(?:-(?:[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(?:-[0-9A-WY-Za-wy-z](?:-[A-Za-z0-9]{2,8})+)*(?:-[Xx](?:-[A-Za-z0-9]{1,8})+)?$",
            "description": "Language selected for user-facing response content under the stable-v1.0 language-tag profile. It does not itself express user eligibility or Partner targeting."
          },
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Protocol_offer_query_generic_projection_v1_0"
            },
            "description": "Ordered public Offer results. Registered industry details are allowed independently of real-time retrieval; explicit Flight request requirements are validated against the paired request."
          },
          "alternative_offers": {
            "type": "array",
            "minItems": 1,
            "maxItems": 3,
            "items": {
              "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0/$defs/alternativeOffer"
            },
            "description": "Optional independent alternatives after the complete main Query chain, including force_offer, returns no offers. Stable offer_id values must be unique, regardless of UUID casing or dispatch identity. Omit this field when no eligible alternative exists. These entries do not count as main Query matches or hook subjects; regional popularity and eligibility require producer evidence."
          },
          "engagement": {
            "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0/$defs/engagement",
            "description": "Optional user-facing suggestions for refining the current intent or exploring an adjacent topic. It does not change the returned Offer payloads."
          },
          "hooks": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0/$defs/hook"
            },
            "description": "Optional non-empty change cues comparing one returned Offer with an explicit previous Query baseline. Hooks are response content, not callback registrations, watch state, or delivery guarantees."
          },
          "empty_reason": {
            "type": "string",
            "enum": [
              "frequency_capped",
              "below_relevance_threshold",
              "scene_suppressed",
              "no_material",
              "consent_missing"
            ],
            "description": "Required for an empty offers array in ordinary Query results and omitted for nonempty results and explicit Flight queries. The paired request determines this requirement. When several causes apply, precedence is consent_missing, scene_suppressed, frequency_capped, no_material, then below_relevance_threshold."
          },
          "has_more": {
            "type": "boolean",
            "description": "Present only when the paired request carried pagination. True means a further page can be requested with next_cursor; false means this is the final page for the current Query."
          },
          "next_cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "description": "Opaque continuation token for the next page, required when has_more is true and omitted otherwise. Send it back unchanged as pagination.cursor with the same Query; do not parse, construct, modify, or concatenate it."
          }
        },
        "additionalProperties": false,
        "$defs": {
          "alternativeOffer": {
            "type": "object",
            "description": "One independently disclosed regional-popularity alternative, not a claim of matching the current Query.",
            "required": [
              "basis",
              "selection_reason",
              "offer"
            ],
            "properties": {
              "basis": {
                "type": "string",
                "const": "regional_popularity",
                "description": "Selection is based on genuine popularity in the user's country, with evidence owned by the producer; this value alone does not prove that evidence."
              },
              "selection_reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "pattern": "\\S",
                "description": "Explanation of this alternative selection in response.language, using 1–500 Unicode code points and at least one character outside ECMAScript whitespace (\\s). Required even when thinking_mode is false. It must not claim a direct Query match or be replaced by a static Partner recommendation_reason."
              },
              "offer": {
                "type": "object",
                "$ref": "#/components/schemas/Protocol_offer_query_generic_projection_v1_0",
                "not": {
                  "required": [
                    "match_reason"
                  ],
                  "type": "object"
                },
                "description": "Complete existing Generic Query projection, including dispatch identity and action, with match_reason always omitted for alternatives."
              }
            },
            "additionalProperties": false
          },
          "engagement": {
            "type": "object",
            "minProperties": 1,
            "description": "Optional non-empty guidance that helps the user continue the current decision journey.",
            "properties": {
              "refinements": {
                "type": "array",
                "minItems": 1,
                "maxItems": 3,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0/$defs/refinement"
                },
                "description": "Non-empty suggestions that narrow or clarify the current Query intent."
              },
              "followup_topics": {
                "type": "array",
                "minItems": 1,
                "maxItems": 2,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0/$defs/followupTopic"
                },
                "description": "Non-empty adjacent-topic suggestions ordered by descending confidence within this response."
              }
            },
            "additionalProperties": false
          },
          "refinement": {
            "type": "object",
            "description": "One user-facing suggestion for narrowing the current Query.",
            "required": [
              "label",
              "query_helper"
            ],
            "properties": {
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "description": "Short user-facing label for the refinement."
              },
              "query_helper": {
                "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0/$defs/queryHelper",
                "description": "Structured request patch to apply if the user selects the refinement."
              },
              "speak": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "description": "Optional non-empty longer phrasing suitable for voice or conversational presentation."
              }
            },
            "additionalProperties": false
          },
          "followupTopic": {
            "type": "object",
            "description": "One user-facing suggestion for exploring a related topic.",
            "required": [
              "label",
              "basis",
              "query_helper",
              "confidence"
            ],
            "properties": {
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "description": "Short user-facing label for the related topic."
              },
              "basis": {
                "type": "string",
                "enum": [
                  "category_complement",
                  "sequential_journey",
                  "problem_to_product",
                  "comparison_alternative",
                  "user_interest",
                  "seasonal"
                ],
                "description": "Declared relationship between the follow-up topic and the current Query; each value has a normative definition in the field-semantics glossary."
              },
              "query_helper": {
                "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0/$defs/queryHelper",
                "description": "Structured non-destructive partial update to apply if the user selects the follow-up topic."
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1,
                "description": "Producer-normalized relevance estimate for this follow-up. Values are comparable only among followup_topics in this response, are ordered descending, and are neither calibrated probabilities nor cross-producer scores."
              }
            },
            "additionalProperties": false
          },
          "queryHelper": {
            "type": "object",
            "description": "Structured and bounded instruction for deriving a subsequent Query without deleting current request fields.",
            "required": [
              "request_patch"
            ],
            "properties": {
              "request_patch": {
                "type": "object",
                "minProperties": 1,
                "description": "Non-null, non-empty partial update limited to intent.signals and category_ids, excluded_category_ids, offer_types, listing_source_names constraints. Every supplied nested object contains an actual update. Omission preserves the current value, objects merge recursively, arrays replace the prior array, and explicit current-turn user conditions win on conflict.",
                "properties": {
                  "intent": {
                    "type": "object",
                    "required": [
                      "signals"
                    ],
                    "additionalProperties": false,
                    "description": "Permitted intent portion of the next-Query update; when present it contains non-empty signals.",
                    "properties": {
                      "signals": {
                        "type": "object",
                        "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/signals",
                        "minProperties": 1,
                        "description": "Non-empty, non-null intent signals proposed for the next Query; omitted members remain unchanged."
                      }
                    }
                  },
                  "constraints": {
                    "type": "object",
                    "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/constraints",
                    "minProperties": 1,
                    "description": "Non-empty object of non-null replacement arrays for permitted category_ids, excluded_category_ids, offer_types, and listing_source_names constraints; omitted members remain unchanged. An empty supplied array is meaningful and clears that constraint list."
                  }
                },
                "additionalProperties": false
              },
              "origin": {
                "type": "array",
                "minItems": 1,
                "maxItems": 3,
                "uniqueItems": true,
                "items": {
                  "$ref": "#/components/schemas/Protocol_offer_query_v1_0/$defs/origin"
                },
                "description": "Optional non-empty, bounded provenance references for the suggested next Query."
              }
            },
            "additionalProperties": false
          },
          "hook": {
            "type": "object",
            "description": "One user-facing change cue for a returned Offer compared with an explicit prior Query response.",
            "required": [
              "kind",
              "title",
              "subject_offer_id",
              "baseline_request_id"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "price_change",
                  "availability_change",
                  "eligibility_change",
                  "content_change"
                ],
                "description": "Category of changed Offer information; each value has a normative definition in the field-semantics glossary."
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "description": "Short user-facing title for the change cue."
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "description": "Optional user-facing explanation of the observed change."
              },
              "subject_offer_id": {
                "type": "string",
                "format": "uuid",
                "description": "offer_id of the returned Offer whose current representation is being compared."
              },
              "baseline_request_id": {
                "type": "string",
                "format": "uuid",
                "description": "request_id of the prior Query response used as the comparison baseline; it must match context.session.previous_request_id from the current request."
              },
              "query_helper": {
                "$ref": "#/components/schemas/Protocol_offer_query_response_v1_0/$defs/queryHelper",
                "description": "Optional structured next-Query update associated with the change cue."
              }
            },
            "additionalProperties": false
          }
        },
        "allOf": [
          {
            "if": {
              "type": "object",
              "properties": {
                "offers": {
                  "type": "array",
                  "minItems": 1,
                  "description": "Conditional branch that identifies a non-empty Offer result."
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "empty_reason"
                ],
                "type": "object"
              }
            }
          },
          {
            "if": {
              "required": [
                "alternative_offers"
              ],
              "type": "object"
            },
            "then": {
              "required": [
                "offers",
                "empty_reason"
              ],
              "properties": {
                "offers": {
                  "type": "array",
                  "maxItems": 0,
                  "description": "Alternatives are allowed only when the final main Query result is empty."
                },
                "empty_reason": {
                  "enum": [
                    "below_relevance_threshold",
                    "no_material"
                  ],
                  "description": "Only these public empty reasons permit alternatives; actual internal causes and all producer gates must also allow them."
                }
              },
              "type": "object"
            }
          },
          {
            "if": {
              "type": "object",
              "required": [
                "has_more"
              ],
              "properties": {
                "has_more": {
                  "const": true,
                  "description": "Conditional branch that identifies a page with further results."
                }
              }
            },
            "then": {
              "type": "object",
              "required": [
                "next_cursor"
              ]
            },
            "else": {
              "type": "object",
              "not": {
                "type": "object",
                "required": [
                  "next_cursor"
                ]
              }
            }
          }
        ]
      },
      "HostedQueryRequest": {
        "type": "object",
        "description": "AON hosted Query request: the public v1.0 fields, with pagination widened by the hosted layer (limit capped at 50 instead of rejected). There is no offset on v1.0: on ordinary placements pagination.offset or a top-level offset greater than 0 returns 400 BAD_REQUEST and offset 0 is treated as the first page; Offer Wall placements still accept a deprecated offset (the response then also carries extra.pagination); offset together with cursor returns 400 BAD_REQUEST. Ordinary placements still require intent; Offer Wall normalization also permits omitted intent and a historical flat limit alias.",
        "required": [
          "context",
          "intent"
        ],
        "additionalProperties": false,
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/request_id"
          },
          "timestamp": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/timestamp"
          },
          "test_mode": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/test_mode"
          },
          "placement_id": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/placement_id"
          },
          "context": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/context"
          },
          "intent": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/intent"
          },
          "constraints": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/constraints"
          },
          "force_offer": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/force_offer"
          },
          "response_options": {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/response_options"
          },
          "pagination": {
            "type": "object",
            "description": "Hosted wrapper around the canonical v1.0 pagination object (https://agentoffernetwork.org/schema/offer-query/v1.0#/properties/pagination): limit and cursor keep the canonical meaning. Sending this object opts the caller into data.has_more and, when more results exist, data.next_cursor. Omit cursor for the first page; to continue, send the previous response's data.next_cursor unchanged as cursor with the same Query. offset is not part of this object (ordinary placements: offset greater than 0 returns 400 BAD_REQUEST; Offer Wall: deprecated). Not forwarded to v1.0 Providers.",
            "additionalProperties": false,
            "properties": {
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 4294967295,
                "description": "Requested page size. The canonical v1.0 bound is 1-50; the hosted layer accepts larger values and caps them at 50 instead of rejecting them (the 0.1-0.3 wire keeps its 20 cap). Omit for 3 (20 for flight queries). Fewer eligible offers may be returned."
              },
              "cursor": {
                "$ref": "#/components/schemas/Protocol_offer_query_v1_0/properties/pagination/properties/cursor"
              }
            }
          }
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/allOf/0"
          },
          {
            "$ref": "#/components/schemas/Protocol_offer_query_v1_0/allOf/1"
          }
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API key or access token",
        "description": "Send `Authorization: Bearer <token>` on authenticated developer and partner routes. On `/v1/offers/query` (and MCP search) a Bearer key does not supply the placement: a key listed in the legacy key-to-placement compatibility map resolves to its placement; any other live key without a placement is served in anonymous mode with an `extra.key_notice`; a non-sandbox `aon_test_` key without a placement returns HTTP 401 `UNAUTHORIZED`."
      }
    }
  }
}
