{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xquik-api/json-schema/xquik-api-space-schema.json",
  "title": "Space",
  "description": "X Space",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xquik-api-spaces-api-openapi.yml#/components/schemas/Space",
  "type": "object",
  "required": [
    "id",
    "admins",
    "speakers",
    "listeners"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Space ID"
    },
    "title": {
      "type": "string",
      "description": "Space title"
    },
    "state": {
      "type": "string",
      "description": "NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never started) or TimedOut (closed by X, not by its host)"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the Space was made"
    },
    "scheduledStart": {
      "type": "string",
      "format": "date-time",
      "description": "When the Space was set to start"
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the Space went live"
    },
    "endedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the Space ended"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When X last changed the Space"
    },
    "totalLiveListeners": {
      "type": "integer",
      "minimum": 0,
      "description": "Accounts that listened live",
      "format": "int64",
      "maximum": 9007199254740991
    },
    "totalReplayWatched": {
      "type": "integer",
      "minimum": 0,
      "description": "Accounts that played the recording",
      "format": "int64",
      "maximum": 9007199254740991
    },
    "participantCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Accounts in the Space now, while it is live",
      "format": "int64",
      "maximum": 9007199254740991
    },
    "isAvailableForReplay": {
      "type": "boolean",
      "description": "Whether X offers a recording"
    },
    "isAvailableForClipping": {
      "type": "boolean",
      "description": "Whether listeners may clip the Space"
    },
    "isLocked": {
      "type": "boolean",
      "description": "Whether the host locked the Space"
    },
    "isEmployeeOnly": {
      "type": "boolean",
      "description": "Whether only X employees may join"
    },
    "disallowJoin": {
      "type": "boolean",
      "description": "Whether X lets no more accounts join"
    },
    "noIncognito": {
      "type": "boolean",
      "description": "Whether anonymous listening is off"
    },
    "contentType": {
      "type": "string",
      "description": "Audio or video kind, as X names it"
    },
    "conversationControls": {
      "type": "integer",
      "minimum": 0,
      "description": "X's code for who may speak",
      "format": "int64",
      "maximum": 9007199254740991
    },
    "maxAdminCapacity": {
      "type": "integer",
      "minimum": 0,
      "description": "Most hosts and co-hosts the Space allows",
      "format": "int64",
      "maximum": 9007199254740991
    },
    "mediaKey": {
      "type": "string",
      "description": "X's media key for the Space's audio"
    },
    "mentionedUserIds": {
      "type": "array",
      "description": "IDs of the accounts the host tagged",
      "items": {
        "type": "string"
      }
    },
    "tweetId": {
      "type": "string",
      "description": "ID of the post that announces the Space"
    },
    "tweet": {
      "$ref": "#/$defs/SearchTweet"
    },
    "creator": {
      "$ref": "#/$defs/UserProfile"
    },
    "admins": {
      "type": "array",
      "description": "Hosts and co-hosts",
      "items": {
        "$ref": "#/$defs/SpaceParticipant"
      }
    },
    "speakers": {
      "type": "array",
      "description": "Accounts X lists as speakers",
      "items": {
        "$ref": "#/$defs/SpaceParticipant"
      }
    },
    "listeners": {
      "type": "array",
      "description": "Accounts X lists as listeners",
      "items": {
        "$ref": "#/$defs/SpaceParticipant"
      }
    },
    "sharings": {
      "type": "array",
      "description": "Posts the hosts and speakers shared in the Space, in X's order. Present only when X lists them.",
      "items": {
        "$ref": "#/$defs/SpaceSharing"
      }
    }
  },
  "$defs": {
    "AccountBasedIn": {
      "x-wire-order": [
        "level",
        "observedAt",
        "value"
      ],
      "description": "X's best-effort public label inferred from aggregated account-access IP addresses. It does not state nationality, residence, identity, registration, post location, or exact location.",
      "type": "object",
      "required": [
        "value",
        "level",
        "observedAt"
      ],
      "properties": {
        "value": {
          "type": "string"
        },
        "level": {
          "type": "string",
          "enum": [
            "country",
            "region"
          ]
        },
        "observedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "ContentDisclosure": {
      "description": "Content disclosure metadata X shows on a labeled tweet. X labels paid partnership content and AI-generated media.",
      "type": "object",
      "properties": {
        "advertising": {
          "type": "object",
          "properties": {
            "isPaidPromotion": {
              "type": "boolean",
              "description": "True when X labels the tweet as paid promotion content."
            }
          }
        },
        "aiGenerated": {
          "type": "object",
          "properties": {
            "detectionSource": {
              "type": "string",
              "description": "How X detected AI media. X omits it for self-declared posts."
            },
            "hasAiGeneratedMedia": {
              "type": "boolean",
              "description": "True when X labels the tweet as containing AI-generated media."
            }
          }
        }
      }
    },
    "EmbeddedTweet": {
      "description": "A parent, quoted or retweeted tweet. It has the TweetPublicData fields and an author. Nesting stops after 4 levels.",
      "allOf": [
        {
          "$ref": "#/$defs/TweetPublicDataBase"
        },
        {
          "type": "object",
          "properties": {
            "author": {
              "$ref": "#/$defs/UserProfile"
            },
            "parentTweet": {
              "type": "object",
              "additionalProperties": true,
              "description": "The post this one replies to, with the same fields."
            },
            "quoted_tweet": {
              "type": "object",
              "additionalProperties": true,
              "description": "The post this one quotes, with the same fields."
            },
            "retweeted_tweet": {
              "type": "object",
              "additionalProperties": true,
              "description": "The post this one reposts, with the same fields."
            }
          }
        }
      ],
      "additionalProperties": true
    },
    "ProfileContactInfo": {
      "description": "Emails, phone numbers & links the account publishes on its own profile. Omitted when it publishes none.",
      "type": "object",
      "properties": {
        "emails": {
          "type": "array",
          "description": "Emails in the bio, name or location, lowercased.",
          "items": {
            "type": "object",
            "required": [
              "value",
              "domain",
              "source"
            ],
            "properties": {
              "value": {
                "type": "string",
                "description": "The email address."
              },
              "domain": {
                "type": "string",
                "description": "The part after the @ sign."
              },
              "source": {
                "type": "string",
                "enum": [
                  "bio",
                  "name",
                  "location"
                ],
                "description": "Profile field that holds the email."
              },
              "writtenAs": {
                "type": "string",
                "description": "The account's own spelling, sent when it spelled the email out."
              }
            }
          }
        },
        "phones": {
          "type": "array",
          "description": "Phone numbers on the profile. Only a spelling that can be nothing else counts.",
          "items": {
            "type": "object",
            "required": [
              "value",
              "source"
            ],
            "properties": {
              "value": {
                "type": "string",
                "description": "The digits, with a leading + when the account wrote a country code."
              },
              "source": {
                "type": "string",
                "enum": [
                  "bio",
                  "name",
                  "location",
                  "url"
                ],
                "description": "Profile field that holds the number."
              },
              "writtenAs": {
                "type": "string",
                "description": "The account's own spelling of the number."
              }
            }
          }
        },
        "links": {
          "type": "array",
          "description": "The profile's website & the links in its bio.",
          "items": {
            "x-wire-order": [
              "network",
              "source",
              "url"
            ],
            "type": "object",
            "required": [
              "url",
              "network",
              "source"
            ],
            "properties": {
              "url": {
                "type": "string",
                "description": "The link, as X expands it."
              },
              "network": {
                "type": "string",
                "description": "Site the link belongs to, such as `linkedin`, `github` or `telegram`. Any other site is `website`."
              },
              "source": {
                "type": "string",
                "enum": [
                  "url",
                  "bio"
                ],
                "description": "`url` for the website field, `bio` for a bio link."
              }
            }
          }
        }
      }
    },
    "PublicMetadata": {
      "description": "Public metadata whose fields X defines.",
      "type": "object",
      "additionalProperties": true
    },
    "SearchTweet": {
      "description": "Search tweet with author. Zero metrics may mean X omitted counts.",
      "allOf": [
        {
          "$ref": "#/$defs/TweetPublicData"
        },
        {
          "type": "object",
          "properties": {
            "author": {
              "$ref": "#/$defs/UserProfile"
            }
          }
        }
      ]
    },
    "SpaceParticipant": {
      "description": "An account on a Space's stage or in its audience, as X lists it there.",
      "type": "object",
      "required": [
        "id",
        "username",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Name the account shows in the Space"
        },
        "profilePicture": {
          "type": "string",
          "description": "Profile picture URL"
        },
        "profilePictureOriginal": {
          "type": "string",
          "description": "The participant's profile picture at full size"
        },
        "isVerified": {
          "type": "boolean",
          "description": "Whether X shows a verified badge in the Space"
        },
        "isBlueVerified": {
          "type": "boolean",
          "description": "Whether the account has X Premium verification"
        },
        "verifiedType": {
          "type": "string",
          "description": "Business or Government badge type"
        },
        "affiliatesHighlightedLabel": {
          "$ref": "#/$defs/UserAffiliateLabel"
        },
        "joinedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When the account joined the Space"
        },
        "isMutedByAdmin": {
          "type": "boolean",
          "description": "Whether a host muted the account"
        },
        "isMutedByGuest": {
          "type": "boolean",
          "description": "Whether the account muted itself"
        },
        "periscopeUserId": {
          "type": "string",
          "description": "The account's ID in X's broadcast service"
        }
      }
    },
    "SpaceSharing": {
      "description": "A post shared in a Space, & the account that shared it.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "X's ID of the sharing, not of the post"
        },
        "sharedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When the post was shared"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When X last changed the sharing"
        },
        "sharedBy": {
          "$ref": "#/$defs/UserProfile"
        },
        "tweet": {
          "$ref": "#/$defs/SearchTweet"
        }
      }
    },
    "TweetArticleMetadata": {
      "description": "An X Article preview and its lifecycle metadata.",
      "type": "object",
      "properties": {
        "coverMedia": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "id": {
          "type": "string"
        },
        "lifecycleState": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "metadata": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "title": {
          "type": "string"
        },
        "previewText": {
          "type": "string"
        },
        "coverMediaUrl": {
          "type": "string"
        }
      }
    },
    "TweetAuthorUnavailable": {
      "description": "Why the tweet has no author. X serves a suspended or deleted account as an unavailable user with a reason such as Suspended or NotFound. Omitted when the author is available.",
      "type": "object",
      "required": [
        "reason"
      ],
      "properties": {
        "reason": {
          "type": "string",
          "description": "X's reason code."
        },
        "message": {
          "type": "string",
          "description": "X's notice text for the reason."
        }
      }
    },
    "TweetCard": {
      "description": "A public card and the profiles it references.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "X's ID for the card, such as its t.co link."
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "bindingValues": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "platform": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "userReferenceErrors": {
          "description": "Unresolved card user references.",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            }
          }
        },
        "userReferences": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UserProfile"
          }
        }
      }
    },
    "TweetCommunityNote": {
      "description": "Community Note presentation metadata returned by X.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "shortTitle": {
          "type": "string"
        },
        "subtitle": {
          "type": "string"
        },
        "footer": {
          "type": "string"
        },
        "footerIconType": {
          "type": "string"
        },
        "destinationUrl": {
          "type": "string"
        },
        "iconType": {
          "type": "string"
        },
        "visualStyle": {
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/PublicMetadata"
        }
      }
    },
    "TweetEdit": {
      "x-wire-order": [
        "editableUntilMsecs",
        "editTweetIds",
        "initialTweetId"
      ],
      "description": "Lists edit-chain identifiers and the remaining edit window.",
      "type": "object",
      "properties": {
        "editTweetIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "editableUntilMsecs": {
          "type": "string"
        },
        "initialTweetId": {
          "type": "string"
        }
      }
    },
    "TweetEntities": {
      "description": "Lists hashtags, symbols, links, and mentions from tweet text.",
      "type": "object",
      "properties": {
        "hashtags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TweetHashtag"
          }
        },
        "smarttags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TweetSymbol"
          }
        },
        "symbols": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TweetSymbol"
          }
        },
        "timestamps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TweetSymbol"
          }
        },
        "urls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TweetUrlEntity"
          }
        },
        "user_mentions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TweetUserMention"
          }
        }
      }
    },
    "TweetExclusiveContent": {
      "description": "Marks a subscriber-only post with the creator whose subscription unlocks it. Non-subscribers get the preview text & the subscribe link. Omitted on public posts.",
      "type": "object",
      "required": [
        "creatorUserName"
      ],
      "properties": {
        "creatorUserName": {
          "type": "string",
          "description": "Username of the creator whose subscription unlocks the post."
        },
        "subscribeUrl": {
          "type": "string",
          "description": "Subscribe link X shows non-subscribers. Omitted when X serves the full post."
        }
      }
    },
    "TweetHashtag": {
      "description": "Hashtag text and its source offsets in a tweet.",
      "type": "object",
      "required": [
        "text"
      ],
      "properties": {
        "indices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WholeNumber"
          }
        },
        "tag": {
          "$ref": "#/$defs/TweetSmartTag"
        },
        "text": {
          "type": "string"
        }
      }
    },
    "TweetInterstitial": {
      "description": "The notice x.com covers the post with until someone chooses to view it, such as X's public interest notice on a post that broke its rules but stays up.",
      "type": "object",
      "properties": {
        "displayType": {
          "type": "string",
          "description": "How x.com shows the notice. `NonCompliant` marks a post that broke X's rules."
        },
        "text": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "description": "The notice's text."
            },
            "rtl": {
              "type": "boolean",
              "description": "Whether X writes it right to left."
            },
            "entities": {
              "type": "array",
              "description": "Links inside the notice, by character range.",
              "items": {
                "type": "object",
                "properties": {
                  "fromIndex": {
                    "$ref": "#/$defs/WholeNumber"
                  },
                  "toIndex": {
                    "$ref": "#/$defs/WholeNumber"
                  },
                  "ref": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      },
                      "urlType": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      },
                      "screenName": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "TweetMedia": {
      "x-wire-order": [
        "adultContent",
        "allowDownload",
        "altText",
        "aspectRatio",
        "availabilityReason",
        "availabilityStatus",
        "description",
        "displayUrl",
        "durationMillis",
        "editedWithNativeEditor",
        "embeddable",
        "expandedUrl",
        "faceRects",
        "focusRects",
        "graphicViolence",
        "grokImageAnnotation",
        "grokPostId",
        "height",
        "id",
        "indices",
        "mediaKey",
        "mediaUrl",
        "monetizable",
        "otherSensitiveContent",
        "sizes",
        "sourceStatusId",
        "sourceUser",
        "sourceUserId",
        "tags",
        "title",
        "type",
        "url",
        "videoVariants",
        "visitSiteUrl",
        "watchNowUrl",
        "width"
      ],
      "description": "Tweet media. Media comes with variants, alt text, sizes & availability reasons.",
      "type": "object",
      "required": [
        "mediaUrl",
        "type",
        "url"
      ],
      "properties": {
        "mediaUrl": {
          "type": "string",
          "description": "Preview URL."
        },
        "type": {
          "type": "string",
          "enum": [
            "photo",
            "video",
            "animated_gif"
          ]
        },
        "url": {
          "type": "string",
          "description": "Tweet media link."
        },
        "adultContent": {
          "type": "boolean",
          "description": "Adult-content warning."
        },
        "allowDownload": {
          "type": "boolean",
          "description": "Direct download permission."
        },
        "altText": {
          "type": "string",
          "description": "Accessibility text."
        },
        "aspectRatio": {
          "type": "array",
          "description": "Video width and height ratio.",
          "items": {
            "$ref": "#/$defs/WholeNumber"
          }
        },
        "availabilityReason": {
          "type": "string",
          "description": "Why X made the media unavailable, such as `Dmcaed` after a copyright report. Omitted on available media."
        },
        "availabilityStatus": {
          "type": "string",
          "description": "Availability state, such as `Available` or `Unavailable`."
        },
        "description": {
          "type": "string",
          "description": "Media description."
        },
        "displayUrl": {
          "type": "string",
          "description": "Display URL."
        },
        "durationMillis": {
          "type": "integer",
          "minimum": 0,
          "description": "Video duration in milliseconds.",
          "format": "int64",
          "maximum": 9007199254740991
        },
        "editedWithNativeEditor": {
          "type": "boolean",
          "description": "True when the author edited this media in X's own editor before posting. Absent when X sends no editor info.\n"
        },
        "expandedUrl": {
          "type": "string",
          "description": "Expanded media URL."
        },
        "embeddable": {
          "type": "boolean",
          "description": "Embeddable status."
        },
        "faceRects": {
          "type": "object",
          "description": "Face crop rectangles by size.",
          "additionalProperties": {
            "type": "array",
            "items": {
              "x-wire-order": [
                "h",
                "w",
                "x",
                "y"
              ],
              "type": "object",
              "required": [
                "x",
                "y",
                "w",
                "h"
              ],
              "properties": {
                "x": {
                  "$ref": "#/$defs/WholeNumber"
                },
                "y": {
                  "$ref": "#/$defs/WholeNumber"
                },
                "w": {
                  "$ref": "#/$defs/WholeNumber"
                },
                "h": {
                  "$ref": "#/$defs/WholeNumber"
                }
              }
            }
          }
        },
        "focusRects": {
          "type": "array",
          "description": "Suggested image crops.",
          "items": {
            "x-wire-order": [
              "h",
              "w",
              "x",
              "y"
            ],
            "type": "object",
            "required": [
              "x",
              "y",
              "w",
              "h"
            ],
            "properties": {
              "x": {
                "$ref": "#/$defs/WholeNumber"
              },
              "y": {
                "$ref": "#/$defs/WholeNumber"
              },
              "w": {
                "$ref": "#/$defs/WholeNumber"
              },
              "h": {
                "$ref": "#/$defs/WholeNumber"
              }
            }
          }
        },
        "grokImageAnnotation": {
          "type": "object",
          "description": "Prompt a Grok image came from. Absent on other media & when X sends no prompt.\n",
          "properties": {
            "prompt": {
              "type": "string",
              "description": "Prompt the image came from."
            },
            "upsampledPrompt": {
              "type": "string",
              "description": "Grok's longer rewrite of the prompt."
            }
          }
        },
        "grokPostId": {
          "type": "string",
          "description": "Grok post ID associated with the media."
        },
        "graphicViolence": {
          "type": "boolean",
          "description": "Graphic-violence warning."
        },
        "height": {
          "type": "integer",
          "minimum": 0,
          "description": "Original height.",
          "format": "int64",
          "maximum": 9007199254740991
        },
        "id": {
          "type": "string",
          "description": "Media entity ID."
        },
        "indices": {
          "type": "array",
          "description": "Tweet text offsets.",
          "items": {
            "$ref": "#/$defs/WholeNumber"
          }
        },
        "mediaKey": {
          "type": "string",
          "description": "Stable X media key."
        },
        "monetizable": {
          "type": "boolean",
          "description": "Monetization status."
        },
        "otherSensitiveContent": {
          "type": "boolean"
        },
        "sizes": {
          "type": "object",
          "description": "Named media renditions and resize modes.",
          "additionalProperties": {
            "x-wire-order": [
              "h",
              "resize",
              "w"
            ],
            "type": "object",
            "required": [
              "w",
              "h",
              "resize"
            ],
            "properties": {
              "w": {
                "$ref": "#/$defs/WholeNumber"
              },
              "h": {
                "$ref": "#/$defs/WholeNumber"
              },
              "resize": {
                "type": "string"
              }
            }
          }
        },
        "sourceStatusId": {
          "type": "string",
          "description": "Source tweet ID for copied media."
        },
        "sourceUser": {
          "type": "object",
          "$ref": "#/$defs/UserProfile",
          "description": "The account that first posted the media. Some reads carry only its name, picture & badges."
        },
        "sourceUserId": {
          "type": "string",
          "description": "Source profile ID for copied media."
        },
        "tags": {
          "type": "array",
          "description": "Public profiles tagged in the media.",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "screen_name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "user_id": {
                "type": "string"
              }
            }
          }
        },
        "title": {
          "type": "string",
          "description": "Media title."
        },
        "videoVariants": {
          "type": "array",
          "description": "Video encodings in source order.",
          "items": {
            "type": "object",
            "required": [
              "contentType",
              "url"
            ],
            "properties": {
              "bitrate": {
                "$ref": "#/$defs/WholeNumber"
              },
              "contentType": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          }
        },
        "watchNowUrl": {
          "type": "string",
          "description": "Public media action URL."
        },
        "visitSiteUrl": {
          "type": "string",
          "description": "Public destination URL."
        },
        "width": {
          "type": "integer",
          "minimum": 0,
          "description": "Original width.",
          "format": "int64",
          "maximum": 9007199254740991
        }
      }
    },
    "TweetNote": {
      "description": "Complete Note Tweet content and rich-text metadata.",
      "type": "object",
      "required": [
        "text"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "X's global ID of the Note, base64 of `NoteTweet:<noteId>`."
        },
        "noteId": {
          "type": "string",
          "description": "The Note's own ID, apart from the post's."
        },
        "text": {
          "type": "string"
        },
        "isExpandable": {
          "type": "boolean"
        },
        "entities": {
          "$ref": "#/$defs/TweetEntities"
        },
        "inlineMedia": {
          "type": "array",
          "description": "Inline media positions in the Note Tweet text.",
          "items": {
            "type": "object",
            "required": [
              "index",
              "mediaId"
            ],
            "properties": {
              "index": {
                "$ref": "#/$defs/WholeNumber"
              },
              "mediaId": {
                "type": "string"
              }
            }
          }
        },
        "richtextTags": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "fromIndex",
              "toIndex",
              "types"
            ],
            "properties": {
              "fromIndex": {
                "$ref": "#/$defs/WholeNumber"
              },
              "toIndex": {
                "$ref": "#/$defs/WholeNumber"
              },
              "types": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "TweetPlace": {
      "description": "Public place metadata on a geotagged tweet.",
      "type": "object",
      "properties": {
        "boundingBox": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "country": {
          "type": "string"
        },
        "countryCode": {
          "type": "string"
        },
        "fullName": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "placeType": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "TweetPoint": {
      "description": "Author-published geographic point with 2 numeric coordinates.",
      "type": "object",
      "required": [
        "coordinates",
        "type"
      ],
      "properties": {
        "coordinates": {
          "type": "array",
          "minItems": 2,
          "maxItems": 2,
          "items": {
            "type": "number"
          }
        },
        "type": {
          "type": "string",
          "enum": [
            "Point"
          ]
        }
      }
    },
    "TweetPreviousCounts": {
      "description": "The share of each count that earlier versions of an edited post hold. Each count field already adds it, as x.com does.",
      "type": "object",
      "properties": {
        "bookmarkCount": {
          "$ref": "#/$defs/WholeNumber"
        },
        "likeCount": {
          "$ref": "#/$defs/WholeNumber"
        },
        "quoteCount": {
          "$ref": "#/$defs/WholeNumber"
        },
        "replyCount": {
          "$ref": "#/$defs/WholeNumber"
        },
        "retweetCount": {
          "$ref": "#/$defs/WholeNumber"
        }
      }
    },
    "TweetPublicData": {
      "x-wire-order": [
        "bookmarkCount",
        "id",
        "likeCount",
        "quoteCount",
        "replyCount",
        "retweetCount",
        "text",
        "viewCount",
        "article",
        "authorUnavailable",
        "card",
        "cashtagAttachments",
        "communityId",
        "communityName",
        "communityNote",
        "conversationControl",
        "conversationId",
        "coordinates",
        "contentDisclosure",
        "displayTextRange",
        "edit",
        "entities",
        "exclusiveContent",
        "inReplyToId",
        "inReplyToUserId",
        "inReplyToUsername",
        "interstitial",
        "isLimitedReply",
        "limitedActions",
        "isNoteTweet",
        "isPinned",
        "isQuoteStatus",
        "isReply",
        "isRetweet",
        "isTranslatable",
        "grokShareAttachment",
        "grokTranslatedPost",
        "geo",
        "jetfuelAttachment",
        "lang",
        "liveEventContext",
        "noteTweet",
        "place",
        "postCta",
        "possiblySensitive",
        "previousCounts",
        "quotedTweetId",
        "reactionContext",
        "retweetedAt",
        "softIntervention",
        "source",
        "sportsContext",
        "subscriberBadge",
        "scopes",
        "textHighlights",
        "tombstone",
        "type",
        "unknownCounts",
        "unknownFields",
        "unmentionedUserIds",
        "url",
        "viewState",
        "hasCommunityNotes",
        "quotedTweetPermalink",
        "quotedTweetUnavailable",
        "communityUnavailable",
        "unavailableAuthorId",
        "media",
        "quoted_tweet",
        "retweeted_tweet",
        "createdAt",
        "parentTweet"
      ],
      "description": "Shared public tweet fields.",
      "allOf": [
        {
          "$ref": "#/$defs/TweetPublicDataBase"
        },
        {
          "type": "object",
          "properties": {
            "parentTweet": {
              "$ref": "#/$defs/EmbeddedTweet"
            },
            "quoted_tweet": {
              "$ref": "#/$defs/EmbeddedTweet"
            },
            "retweeted_tweet": {
              "$ref": "#/$defs/EmbeddedTweet"
            }
          }
        }
      ]
    },
    "TweetPublicDataBase": {
      "description": "Public tweet fields, excluding nested tweets. `text` reads as x.com shows it, with `&`, `<` & `>` decoded. `displayTextRange` & entity `indices` count that text.",
      "type": "object",
      "required": [
        "id",
        "text",
        "retweetCount",
        "replyCount",
        "likeCount",
        "quoteCount",
        "viewCount",
        "bookmarkCount"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "lang": {
          "type": "string"
        },
        "isReply": {
          "type": "boolean"
        },
        "isLimitedReply": {
          "type": "boolean"
        },
        "isNoteTweet": {
          "type": "boolean"
        },
        "isPinned": {
          "type": "boolean"
        },
        "isQuoteStatus": {
          "type": "boolean"
        },
        "isRetweet": {
          "type": "boolean"
        },
        "quotedTweetId": {
          "type": "string"
        },
        "quotedTweetPermalink": {
          "type": "object",
          "description": "The quoted post's link, kept when X withholds that post.",
          "properties": {
            "displayUrl": {
              "type": "string"
            },
            "expandedUrl": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "quotedTweetUnavailable": {
          "type": "object",
          "description": "Why X shows no quoted post. Omitted when X names no reason.",
          "required": [
            "reason"
          ],
          "properties": {
            "reason": {
              "type": "string",
              "description": "X's reason, such as `Suspended` for a suspended author or `Protected` for an author who protects their posts."
            }
          }
        },
        "retweetedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Repost event time in UTC. Null when unavailable. Omitted for other posts."
        },
        "inReplyToId": {
          "type": "string"
        },
        "inReplyToUserId": {
          "type": "string"
        },
        "inReplyToUsername": {
          "type": "string"
        },
        "conversationId": {
          "type": "string"
        },
        "conversationControl": {
          "type": "object",
          "description": "Reply policy & conversation owner.",
          "properties": {
            "allowedCountryCodes": {
              "type": "array",
              "description": "Regions whose accounts may reply, as country codes. Sent with the `country_of_origin` mode.",
              "items": {
                "type": "string"
              }
            },
            "inviteViaMention": {
              "type": "boolean"
            },
            "mode": {
              "type": "string",
              "description": "Reply policy from X's newer field, such as `my_network`, `premium` or `country_of_origin`. Omitted when X sends none."
            },
            "ownerId": {
              "type": "string",
              "description": "The conversation owner's account ID."
            },
            "ownerUsername": {
              "type": "string"
            },
            "policy": {
              "type": "string"
            }
          }
        },
        "limitedActions": {
          "type": "array",
          "description": "Public restrictions & prompts.",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string"
              },
              "prompt": {
                "type": "object",
                "properties": {
                  "ctaType": {
                    "type": "string"
                  },
                  "headline": {
                    "type": "string"
                  },
                  "metadata": {
                    "$ref": "#/$defs/PublicMetadata"
                  },
                  "subtext": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "source": {
          "type": "string",
          "description": "The app the post was sent from, as X labels it. X sends it for some posts only."
        },
        "displayTextRange": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WholeNumber"
          }
        },
        "textHighlights": {
          "type": "array",
          "description": "Where `text` matches the search, on each row a search read. Offsets count code points of `text`, as `displayTextRange` does. Empty when the post holds no marked match. Highlights cover a post's first 280 characters.",
          "items": {
            "type": "object",
            "required": [
              "startIndex",
              "endIndex"
            ],
            "properties": {
              "startIndex": {
                "type": "integer",
                "minimum": 0,
                "description": "The first code point of the match.",
                "format": "int64",
                "maximum": 9007199254740991
              },
              "endIndex": {
                "type": "integer",
                "minimum": 0,
                "description": "The first code point after the match.",
                "format": "int64",
                "maximum": 9007199254740991
              }
            }
          }
        },
        "contentDisclosure": {
          "$ref": "#/$defs/ContentDisclosure"
        },
        "article": {
          "$ref": "#/$defs/TweetArticleMetadata"
        },
        "authorUnavailable": {
          "$ref": "#/$defs/TweetAuthorUnavailable"
        },
        "unavailableAuthorId": {
          "type": "string",
          "description": "The author's ID when X withholds the author's profile."
        },
        "card": {
          "$ref": "#/$defs/TweetCard"
        },
        "cashtagAttachments": {
          "type": "array",
          "description": "Price charts the author attached under the post, 1 per cashtag. Absent when the post has none. X may send a cashtag without a chart window.\n",
          "items": {
            "type": "object",
            "required": [
              "cashtag"
            ],
            "properties": {
              "cashtag": {
                "type": "string",
                "description": "The cashtag with its `$`."
              },
              "candleSize": {
                "type": "string",
                "description": "Span of each candle."
              },
              "timeframe": {
                "type": "string",
                "description": "Span the chart covers."
              },
              "startTime": {
                "type": "string",
                "format": "date-time",
                "description": "Time of the chart's first candle."
              },
              "endTime": {
                "type": "string",
                "format": "date-time",
                "description": "Time of the chart's last price."
              },
              "sizeVariant": {
                "type": "integer",
                "minimum": 0,
                "description": "X's size for the chart.",
                "format": "int64",
                "maximum": 9007199254740991
              }
            }
          }
        },
        "communityId": {
          "type": "string",
          "description": "Community ID."
        },
        "communityName": {
          "type": "string",
          "description": "Community name. Present when X sends it with the post."
        },
        "communityUnavailable": {
          "type": "object",
          "description": "Why X shows no Community for the post. Omitted when X names no reason.",
          "required": [
            "reason"
          ],
          "properties": {
            "reason": {
              "type": "string",
              "description": "X's reason, as X writes it."
            }
          }
        },
        "communityNote": {
          "$ref": "#/$defs/TweetCommunityNote"
        },
        "hasCommunityNotes": {
          "type": "boolean",
          "description": "Whether X holds Community Notes on the post, shown or not."
        },
        "edit": {
          "$ref": "#/$defs/TweetEdit"
        },
        "exclusiveContent": {
          "$ref": "#/$defs/TweetExclusiveContent"
        },
        "isTranslatable": {
          "type": "boolean"
        },
        "grokShareAttachment": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "grokTranslatedPost": {
          "type": "object",
          "$ref": "#/$defs/PublicMetadata",
          "description": "Grok's translation of the post, as X shows it."
        },
        "jetfuelAttachment": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "noteTweet": {
          "$ref": "#/$defs/TweetNote"
        },
        "place": {
          "$ref": "#/$defs/TweetPlace"
        },
        "coordinates": {
          "$ref": "#/$defs/TweetPoint",
          "type": "object",
          "description": "Author-published point, with longitude before latitude."
        },
        "geo": {
          "$ref": "#/$defs/TweetPoint",
          "type": "object",
          "description": "Author-published point, with latitude before longitude."
        },
        "postCta": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "possiblySensitive": {
          "type": "boolean"
        },
        "previousCounts": {
          "$ref": "#/$defs/TweetPreviousCounts"
        },
        "reactionContext": {
          "type": "object",
          "description": "Public post & user this reaction references.",
          "properties": {
            "reactedToPost": {
              "type": "object",
              "additionalProperties": true,
              "description": "The post this one reacts to, with the same fields. X often sends only its ID, author & edit history. Then unknownFields lists text, and the flags X did not send are left out.\n"
            },
            "reactedToPostId": {
              "type": "string",
              "description": "Referenced post ID."
            },
            "reactedToUser": {
              "$ref": "#/$defs/UserProfile"
            }
          }
        },
        "sportsContext": {
          "type": "object",
          "description": "Game metadata attached to this post.",
          "properties": {
            "gameId": {
              "type": "string",
              "description": "Game ID."
            },
            "league": {
              "type": "string",
              "description": "League ID."
            },
            "title": {
              "type": "string",
              "description": "Game title."
            },
            "url": {
              "type": "string",
              "description": "Game link."
            },
            "state": {
              "type": "string",
              "description": "Reported game state."
            },
            "statusText": {
              "type": "string",
              "description": "Game progress text."
            },
            "scheduledAtMs": {
              "type": [
                "number",
                "string"
              ],
              "description": "Scheduled Unix milliseconds, retaining the source type."
            },
            "competitors": {
              "type": "array",
              "description": "Teams & reported scores.",
              "items": {
                "type": "object",
                "properties": {
                  "teamId": {
                    "type": "string",
                    "description": "Team ID."
                  },
                  "color": {
                    "type": "string",
                    "description": "Team display color."
                  },
                  "isActive": {
                    "type": "boolean",
                    "description": "Active competitor."
                  },
                  "isWinner": {
                    "type": "boolean",
                    "description": "Winning competitor."
                  },
                  "abbreviation": {
                    "type": "string",
                    "description": "Team abbreviation."
                  },
                  "name": {
                    "type": "string",
                    "description": "Team name."
                  },
                  "score": {
                    "type": "string",
                    "description": "Score display text."
                  },
                  "logoUrl": {
                    "type": "string",
                    "description": "Logo for light backgrounds."
                  },
                  "darkLogoUrl": {
                    "type": "string",
                    "description": "Logo for dark backgrounds."
                  }
                }
              }
            }
          }
        },
        "liveEventContext": {
          "type": "object",
          "description": "The live event the post belongs to, such as an election.",
          "properties": {
            "title": {
              "type": "string",
              "description": "Event name."
            },
            "url": {
              "type": "string",
              "description": "The event's page on X."
            },
            "imageUrl": {
              "type": "string",
              "description": "The event's image."
            }
          }
        },
        "subscriberBadge": {
          "$ref": "#/$defs/TweetSubscriberBadge"
        },
        "tombstone": {
          "$ref": "#/$defs/TweetTombstone"
        },
        "interstitial": {
          "$ref": "#/$defs/TweetInterstitial"
        },
        "softIntervention": {
          "type": "object",
          "description": "The label X shows under a post whose reach it limits. It links to the page that explains it.",
          "properties": {
            "displayType": {
              "type": "string",
              "description": "The label's kind. `Fosnr` marks a post X keeps up but shows to fewer people."
            },
            "engagementNudge": {
              "type": "boolean",
              "description": "Whether X prompts people before they engage with the post."
            },
            "text": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "The label's text."
                },
                "rtl": {
                  "type": "boolean",
                  "description": "Whether the label reads right to left."
                },
                "entities": {
                  "type": "array",
                  "description": "Links inside the label, by character range.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "fromIndex": {
                        "$ref": "#/$defs/WholeNumber"
                      },
                      "toIndex": {
                        "$ref": "#/$defs/WholeNumber"
                      },
                      "ref": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "urlType": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "screenName": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "url": {
              "type": "object",
              "description": "The page that explains the label.",
              "properties": {
                "url": {
                  "type": "string"
                },
                "urlType": {
                  "type": "string"
                }
              }
            }
          }
        },
        "unmentionedUserIds": {
          "type": "array",
          "description": "User IDs that left this conversation.",
          "items": {
            "type": "string"
          }
        },
        "viewState": {
          "type": "string"
        },
        "entities": {
          "$ref": "#/$defs/TweetEntities"
        },
        "scopes": {
          "$ref": "#/$defs/PublicMetadata"
        },
        "media": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TweetMedia"
          },
          "description": "Media, omitted when unavailable."
        },
        "retweetCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "replyCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "likeCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "quoteCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "viewCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "bookmarkCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "unknownFields": {
          "type": "array",
          "uniqueItems": true,
          "description": "The fields X did not send for this post. text reads empty, so treat it as unknown rather than empty. Left out when X sent the text.\n",
          "items": {
            "type": "string",
            "enum": [
              "text"
            ]
          }
        },
        "unknownCounts": {
          "type": "array",
          "uniqueItems": true,
          "description": "The counts X did not send for this post. Each one reads 0, so treat it as unknown rather than none. Names follow the response's key style, so `xquik-api-contract: 2026-04-29` lists bookmark_count. Posts from before X counted views, & new posts X has not counted views for yet, list viewCount. Left out when X sent every count. Counts X didn't send are listed in `unknownCounts`, never shown as 0.\n",
          "items": {
            "type": "string",
            "enum": [
              "retweetCount",
              "replyCount",
              "likeCount",
              "quoteCount",
              "viewCount",
              "bookmarkCount"
            ]
          }
        }
      }
    },
    "TweetSmartTag": {
      "description": "X's SmartTag for a cashtag, smarttag or hashtag.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "X's ID for the SmartTag."
        },
        "info": {
          "type": "object",
          "properties": {
            "info": {
              "type": "object",
              "properties": {
                "active": {
                  "type": "boolean",
                  "description": "Whether X marks the SmartTag active."
                },
                "name": {
                  "type": "string"
                },
                "ticker": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "TweetSubscriberBadge": {
      "description": "The Subscriber badge X shows on a reply. The reply's author subscribes to the creator who started the conversation. Omitted on a post without the badge.",
      "type": "object",
      "required": [
        "creatorId"
      ],
      "properties": {
        "creatorId": {
          "type": "string",
          "description": "Account ID of the creator the author subscribes to."
        }
      }
    },
    "TweetSymbol": {
      "description": "Indexed smart-tag, cashtag, or video timestamp metadata.",
      "type": "object",
      "properties": {
        "indices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WholeNumber"
          }
        },
        "seconds": {
          "type": "number"
        },
        "text": {
          "type": "string"
        },
        "tag": {
          "$ref": "#/$defs/TweetSmartTag"
        }
      }
    },
    "TweetTombstone": {
      "description": "Public visibility notice attached to an available tweet.",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Visibility notice type."
        },
        "text": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "description": "Human-readable notice text."
            },
            "rtl": {
              "type": "boolean",
              "description": "Right-to-left text direction."
            },
            "entities": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "fromIndex": {
                    "$ref": "#/$defs/WholeNumber"
                  },
                  "toIndex": {
                    "$ref": "#/$defs/WholeNumber"
                  },
                  "ref": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      },
                      "urlType": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      },
                      "screenName": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "TweetUrlEntity": {
      "description": "Shortened, display, and expanded URLs from tweet text.",
      "type": "object",
      "properties": {
        "display_url": {
          "type": "string"
        },
        "expanded_url": {
          "type": "string"
        },
        "indices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WholeNumber"
          }
        },
        "url": {
          "type": "string"
        }
      }
    },
    "TweetUserMention": {
      "description": "Profile identity and source offsets of a mention.",
      "type": "object",
      "required": [
        "screen_name"
      ],
      "properties": {
        "id_str": {
          "type": "string"
        },
        "indices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WholeNumber"
          }
        },
        "name": {
          "type": "string"
        },
        "screen_name": {
          "type": "string"
        }
      }
    },
    "UserAffiliateLabel": {
      "description": "Organization affiliation label shown on an X profile.",
      "type": "object",
      "properties": {
        "auxiliaryLabels": {
          "type": "array",
          "description": "More labels X shows beside the affiliation, such as an automated account's owner.",
          "items": {
            "$ref": "#/$defs/UserAuxiliaryLabel"
          }
        },
        "badgeUrl": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "longDescription": {
          "type": "object",
          "$ref": "#/$defs/PublicMetadata",
          "description": "Public text, ranges, references, and mention data."
        },
        "url": {
          "type": "string"
        },
        "urlType": {
          "type": "string"
        },
        "userLabelDisplayType": {
          "type": "string"
        },
        "userLabelType": {
          "type": "string"
        }
      }
    },
    "UserAuxiliaryLabel": {
      "description": "A label X shows on an X profile beside its affiliation label.",
      "type": "object",
      "properties": {
        "badgeUrl": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "userLabelDisplayType": {
          "type": "string"
        },
        "userLabelType": {
          "type": "string"
        }
      }
    },
    "UserHighlightsInfo": {
      "description": "Profile highlight availability and count metadata.",
      "type": "object",
      "properties": {
        "canHighlightTweets": {
          "type": "boolean"
        },
        "highlightedTweets": {
          "type": "string"
        }
      }
    },
    "UserIdentityVerification": {
      "description": "Identity verification X shows on the profile & its About page.",
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "isIdentityVerified": {
          "type": "boolean",
          "description": "Whether the owner verified their ID with X."
        },
        "overrideVerifiedYear": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9999,
          "description": "The year X shows as the start of verification, in place of verifiedSinceMsec.",
          "format": "int64"
        },
        "verifiedSinceMsec": {
          "type": "string",
          "description": "When X verified the account, in milliseconds since 1970, as text."
        }
      }
    },
    "UserProfile": {
      "x-wire-order": [
        "id",
        "username",
        "name",
        "followers",
        "retweetedAt",
        "accountBasedIn",
        "accountBasedInUnavailable",
        "accountBasedInAccurate",
        "affiliateUsername",
        "contactInfo",
        "email",
        "connectedVia",
        "connectedViaAccurate",
        "usernameChanges",
        "following",
        "verified",
        "isBlueVerified",
        "isVerified",
        "profilePicture",
        "profilePictureOriginal",
        "coverPicture",
        "profileBannerUrl",
        "description",
        "location",
        "createdAt",
        "birthdate",
        "statusesCount",
        "mediaCount",
        "protected",
        "url",
        "favouritesCount",
        "hasCustomTimelines",
        "isTranslator",
        "withheldInCountries",
        "withheldScope",
        "possiblySensitive",
        "pinnedTweetIds",
        "isAutomated",
        "automatedBy",
        "unavailable",
        "unavailableReason",
        "verifiedType",
        "profile_bio",
        "affiliatesHighlightedLabel",
        "businessAccountAffiliatesCount",
        "communityRole",
        "creatorSubscriptionsCount",
        "grokTranslatedBio",
        "hasGraduatedAccess",
        "hasHiddenSubscriptionsOnProfile",
        "highlightsInfo",
        "identityVerification",
        "isProfileTranslatable",
        "parodyCommentaryFanLabel",
        "professional",
        "profileDescriptionLanguage",
        "profileImageShape",
        "profileInterstitialType",
        "profileSortEnabled",
        "profileTranslatorType",
        "redirectsToUsername",
        "superFollowEligible",
        "superFollowsUserProfileActive",
        "tipJar",
        "listedCount",
        "fastFollowersCount",
        "normalFollowersCount",
        "defaultProfile",
        "defaultProfileImage",
        "hasExtendedProfile",
        "isTranslationEnabled",
        "geoEnabled",
        "advertiserAccountType",
        "advertiserAccountServiceLevels",
        "businessProfileState",
        "subscribersCount",
        "verificationReason",
        "workExperience"
      ],
      "description": "Public X profile.",
      "type": "object",
      "required": [
        "id",
        "username",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "followers": {
          "type": "integer",
          "minimum": 0,
          "description": "Omitted when X sends no count, as for the account that first posted reused media.",
          "format": "int64",
          "maximum": 9007199254740991
        },
        "following": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "verified": {
          "type": "boolean"
        },
        "isBlueVerified": {
          "type": "boolean",
          "description": "Whether X shows a blue verification badge"
        },
        "isVerified": {
          "type": "boolean",
          "description": "Whether X marks the profile as verified"
        },
        "profilePicture": {
          "type": "string",
          "description": "Profile picture at 48 px, as X sends it."
        },
        "profilePictureOriginal": {
          "type": "string",
          "description": "The same profile picture at full size, as the account uploaded it. Download this one for the image."
        },
        "coverPicture": {
          "type": "string"
        },
        "profileBannerUrl": {
          "type": "string",
          "description": "Original X profile banner field when available"
        },
        "location": {
          "type": "string",
          "description": "Account owner's public profile location text"
        },
        "accountBasedIn": {
          "description": "Null when X shows no label.",
          "anyOf": [
            {
              "$ref": "#/$defs/AccountBasedIn"
            },
            {
              "type": "null"
            }
          ]
        },
        "accountBasedInUnavailable": {
          "type": "boolean",
          "description": "True when X withheld accountBasedIn from this read. Retry later."
        },
        "accountBasedInAccurate": {
          "type": "boolean",
          "description": "False when X notes accountBasedIn may be inaccurate."
        },
        "connectedVia": {
          "type": "string",
          "description": "How the account first connected to X."
        },
        "connectedViaAccurate": {
          "type": "boolean",
          "description": "False when X notes that country may be inaccurate."
        },
        "affiliateUsername": {
          "type": "string",
          "description": "Handle of the organization X shows the account is affiliated with, from its About page."
        },
        "email": {
          "type": "string",
          "description": "First email the account publishes on its profile, lowercased. Omitted when it publishes none."
        },
        "contactInfo": {
          "$ref": "#/$defs/ProfileContactInfo"
        },
        "usernameChanges": {
          "type": "object",
          "description": "How often the account changed its username.",
          "required": [
            "count"
          ],
          "properties": {
            "count": {
              "$ref": "#/$defs/WholeNumber"
            },
            "lastChangedAt": {
              "type": "string",
              "format": "date-time",
              "description": "Time of the latest change, omitted when there is none."
            }
          }
        },
        "birthdate": {
          "type": "object",
          "description": "The parts of the birthday the account made public.",
          "properties": {
            "day": {
              "type": "integer",
              "minimum": 1,
              "maximum": 31,
              "format": "int64"
            },
            "month": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12,
              "format": "int64"
            },
            "year": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9999,
              "format": "int64"
            }
          }
        },
        "retweetedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "UTC repost time with includeRetweetTimestamp. Null when Xquik found no repost time. Otherwise omitted."
        },
        "createdAt": {
          "type": "string",
          "description": "Account creation time."
        },
        "statusesCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "mediaCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "protected": {
          "type": "boolean",
          "description": "Whether the profile protects its posts"
        },
        "url": {
          "type": "string"
        },
        "favouritesCount": {
          "type": "integer",
          "minimum": 0,
          "format": "int64",
          "maximum": 9007199254740991
        },
        "hasCustomTimelines": {
          "type": "boolean"
        },
        "isTranslator": {
          "type": "boolean"
        },
        "withheldInCountries": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "withheldScope": {
          "type": "string",
          "description": "Whether X withholds a post or user"
        },
        "possiblySensitive": {
          "type": "boolean"
        },
        "professional": {
          "type": "object",
          "$ref": "#/$defs/PublicMetadata",
          "description": "Professional metadata with category display settings"
        },
        "grokTranslatedBio": {
          "type": "object",
          "$ref": "#/$defs/PublicMetadata",
          "description": "Public profile bio translation returned by X"
        },
        "pinnedTweetIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "isAutomated": {
          "type": "boolean"
        },
        "automatedBy": {
          "type": "string"
        },
        "unavailable": {
          "type": "boolean"
        },
        "unavailableReason": {
          "type": "string"
        },
        "verifiedType": {
          "type": "string"
        },
        "affiliatesHighlightedLabel": {
          "$ref": "#/$defs/UserAffiliateLabel"
        },
        "businessAccountAffiliatesCount": {
          "$ref": "#/$defs/WholeNumber"
        },
        "creatorSubscriptionsCount": {
          "$ref": "#/$defs/WholeNumber"
        },
        "hasGraduatedAccess": {
          "type": "boolean"
        },
        "hasHiddenSubscriptionsOnProfile": {
          "type": "boolean"
        },
        "highlightsInfo": {
          "$ref": "#/$defs/UserHighlightsInfo"
        },
        "identityVerification": {
          "$ref": "#/$defs/UserIdentityVerification"
        },
        "isProfileTranslatable": {
          "type": "boolean"
        },
        "parodyCommentaryFanLabel": {
          "type": "string"
        },
        "profileDescriptionLanguage": {
          "type": "string"
        },
        "profileImageShape": {
          "type": "string"
        },
        "profileInterstitialType": {
          "type": "string"
        },
        "profileSortEnabled": {
          "type": "boolean"
        },
        "profileTranslatorType": {
          "type": "string"
        },
        "redirectsToUsername": {
          "type": "string",
          "description": "Handle x.com sends this profile's visitors to, such as the new handle of a renamed account whose old handle now holds a placeholder. Missing when x.com shows the profile itself."
        },
        "superFollowEligible": {
          "type": "boolean"
        },
        "superFollowsUserProfileActive": {
          "type": "boolean",
          "description": "Whether X marks the subscription profile as active."
        },
        "tipJar": {
          "$ref": "#/$defs/UserTipJar"
        },
        "listedCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Public lists that include the profile.",
          "format": "int64",
          "maximum": 9007199254740991
        },
        "fastFollowersCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Followers X counts as fast followers.",
          "format": "int64",
          "maximum": 9007199254740991
        },
        "normalFollowersCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Followers minus fast followers.",
          "format": "int64",
          "maximum": 9007199254740991
        },
        "defaultProfile": {
          "type": "boolean",
          "description": "Whether the profile keeps X's default theme."
        },
        "defaultProfileImage": {
          "type": "boolean",
          "description": "Whether the profile keeps X's default avatar."
        },
        "hasExtendedProfile": {
          "type": "boolean",
          "description": "Whether the profile filled X's extended fields, such as a birth date. True or false."
        },
        "isTranslationEnabled": {
          "type": "boolean",
          "description": "Whether the account turned on X's translation of its posts. True or false."
        },
        "geoEnabled": {
          "type": "boolean",
          "description": "Whether the profile may add a location to posts."
        },
        "advertiserAccountType": {
          "type": "string",
          "description": "The account's X Ads type. `none` for an account without ads, or `promotable_user` for one that may run them."
        },
        "advertiserAccountServiceLevels": {
          "type": "array",
          "description": "X Ads services the account uses, such as `analytics`, `media_studio` or `smb`. Empty for an account without ads.",
          "items": {
            "type": "string"
          }
        },
        "businessProfileState": {
          "type": "string",
          "description": "Whether X treats the profile as a business profile. `none` or `enabled`."
        },
        "subscribersCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Accounts subscribed to the profile's paid Subscriptions. 0 when it has none.",
          "format": "int64",
          "maximum": 9007199254740991
        },
        "verificationReason": {
          "x-wire-order": [
            "entities",
            "text"
          ],
          "type": "object",
          "description": "X's text on why the profile is verified, with its links.",
          "properties": {
            "text": {
              "type": "string"
            },
            "entities": {
              "type": "array",
              "description": "Links inside the text, by character range.",
              "items": {
                "type": "object",
                "properties": {
                  "fromIndex": {
                    "$ref": "#/$defs/WholeNumber"
                  },
                  "toIndex": {
                    "$ref": "#/$defs/WholeNumber"
                  },
                  "url": {
                    "type": "string"
                  },
                  "urlType": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "communityRole": {
          "type": "string",
          "description": "Community role when returned by community member reads"
        },
        "workExperience": {
          "type": "array",
          "description": "Public work history entries shown on the profile.",
          "items": {
            "$ref": "#/$defs/UserWorkExperienceEntry"
          }
        },
        "profile_bio": {
          "type": "object",
          "$ref": "#/$defs/PublicMetadata",
          "description": "Structured profile bio with entity annotations"
        }
      }
    },
    "UserTipJar": {
      "description": "Public payment and creator-support handles shown on X.",
      "type": "object",
      "properties": {
        "bandcampHandle": {
          "type": "string"
        },
        "bitcoinHandle": {
          "type": "string"
        },
        "cashAppHandle": {
          "type": "string"
        },
        "ethereumHandle": {
          "type": "string"
        },
        "gofundmeHandle": {
          "type": "string"
        },
        "isEnabled": {
          "type": "boolean"
        },
        "patreonHandle": {
          "type": "string"
        },
        "payPalHandle": {
          "type": "string"
        },
        "venmoHandle": {
          "type": "string"
        }
      }
    },
    "UserWorkExperienceCompanyImage": {
      "description": "Company logo image attached to a work experience entry.",
      "type": "object",
      "properties": {
        "mediaId": {
          "type": "string",
          "description": "X media ID of the company image."
        },
        "url": {
          "type": "string",
          "description": "Full-size company image URL."
        }
      }
    },
    "UserWorkExperienceCompanyUser": {
      "x-wire-order": [
        "id",
        "name",
        "profilePicture",
        "profilePictureOriginal",
        "username",
        "verifiedType"
      ],
      "description": "X account linked to a work experience entry.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Display name of the linked company account."
        },
        "profilePicture": {
          "type": "string",
          "description": "Profile picture URL at 48 px."
        },
        "profilePictureOriginal": {
          "type": "string",
          "description": "Full-size profile picture URL."
        },
        "verifiedType": {
          "type": "string",
          "description": "Verification category, such as Business."
        }
      }
    },
    "UserWorkExperienceEntry": {
      "x-wire-order": [
        "companyImage",
        "companyName",
        "companyUser",
        "description",
        "employmentType",
        "endMonth",
        "endYear",
        "id",
        "location",
        "startMonth",
        "startYear",
        "title"
      ],
      "description": "Public work experience entry shown on an X profile.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Entry ID assigned by X."
        },
        "title": {
          "type": "string",
          "description": "Job title or role."
        },
        "companyName": {
          "type": "string",
          "description": "Employer or organization name."
        },
        "employmentType": {
          "type": "string",
          "description": "Employment type reported by X."
        },
        "location": {
          "type": "string",
          "description": "Job location text."
        },
        "description": {
          "type": "string",
          "description": "Role summary text."
        },
        "startMonth": {
          "type": "integer",
          "minimum": 1,
          "maximum": 12,
          "description": "Start month from 1 to 12.",
          "format": "int64"
        },
        "startYear": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9999,
          "description": "Start year.",
          "format": "int64"
        },
        "endMonth": {
          "type": "integer",
          "minimum": 1,
          "maximum": 12,
          "description": "End month from 1 to 12. Omitted for current roles.",
          "format": "int64"
        },
        "endYear": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9999,
          "description": "End year. Omitted for current roles.",
          "format": "int64"
        },
        "companyImage": {
          "$ref": "#/$defs/UserWorkExperienceCompanyImage"
        },
        "companyUser": {
          "$ref": "#/$defs/UserWorkExperienceCompanyUser"
        }
      }
    },
    "WholeNumber": {
      "description": "Whole number from 0.",
      "type": "integer",
      "minimum": 0,
      "format": "int64",
      "maximum": 9007199254740991
    }
  }
}