mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
update schema
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
95ef71b398
commit
a82844dfa5
7 changed files with 1679 additions and 35 deletions
|
|
@ -81,6 +81,14 @@ components:
|
|||
- "Square"
|
||||
professional:
|
||||
$ref: "#/components/schemas/UserProfessional"
|
||||
user_seed_tweet_count:
|
||||
type: integer
|
||||
highlights_info:
|
||||
$ref: "#/components/schemas/UserHighlightsInfo"
|
||||
creator_subscriptions_count:
|
||||
type: integer
|
||||
verification_info:
|
||||
$ref: "#/components/schemas/UserVerificationInfo"
|
||||
|
||||
UserProfessional:
|
||||
required:
|
||||
|
|
@ -93,7 +101,7 @@ components:
|
|||
pattern: "^[0-9]+$"
|
||||
professional_type:
|
||||
type: string
|
||||
enum: ["Business"]
|
||||
enum: ["Business", "Creator"]
|
||||
category:
|
||||
type: array
|
||||
items:
|
||||
|
|
@ -112,6 +120,79 @@ components:
|
|||
icon_name:
|
||||
type: string # IconBriefcaseStroke ?
|
||||
|
||||
UserHighlightsInfo:
|
||||
required:
|
||||
- "can_highlight_tweets"
|
||||
- "highlighted_tweets"
|
||||
properties:
|
||||
can_highlight_tweets:
|
||||
type: boolean
|
||||
highlighted_tweets:
|
||||
type: string
|
||||
|
||||
UserVerificationInfo:
|
||||
required:
|
||||
- "is_identity_verified"
|
||||
- "reason"
|
||||
|
||||
properties:
|
||||
is_identity_verified:
|
||||
type: boolean
|
||||
default: false
|
||||
reason:
|
||||
$ref: "#/components/schemas/UserVerificationInfoReason"
|
||||
|
||||
UserVerificationInfoReason:
|
||||
required:
|
||||
- "description"
|
||||
- "verified_since_msec"
|
||||
- "override_verified_year"
|
||||
properties:
|
||||
description:
|
||||
$ref: "#/components/schemas/UserVerificationInfoReasonDescription"
|
||||
verified_since_msec:
|
||||
type: string
|
||||
pattern: "^-?[0-9]+$"
|
||||
override_verified_year:
|
||||
type: integer
|
||||
|
||||
UserVerificationInfoReasonDescription:
|
||||
required:
|
||||
- "text"
|
||||
- "entities"
|
||||
properties:
|
||||
text:
|
||||
type: string
|
||||
entities:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/UserVerificationInfoReasonDescriptionEntities"
|
||||
|
||||
UserVerificationInfoReasonDescriptionEntities:
|
||||
required:
|
||||
- "from_index"
|
||||
- "to_index"
|
||||
- "ref"
|
||||
properties:
|
||||
from_index:
|
||||
type: integer
|
||||
to_index:
|
||||
type: integer
|
||||
ref:
|
||||
$ref: "#/components/schemas/UserVerificationInfoReasonDescriptionEntitiesRef"
|
||||
|
||||
UserVerificationInfoReasonDescriptionEntitiesRef:
|
||||
required:
|
||||
- "url"
|
||||
- "url_type"
|
||||
properties:
|
||||
url:
|
||||
type: string
|
||||
format: uri
|
||||
url_type:
|
||||
type: string
|
||||
enum: ["ExternalUrl"]
|
||||
|
||||
UserLegacy:
|
||||
required:
|
||||
- "blocked_by"
|
||||
|
|
@ -259,7 +340,11 @@ components:
|
|||
default: false
|
||||
verified_type:
|
||||
type: string
|
||||
enum: ["Business"]
|
||||
enum: ["Business", "Government"]
|
||||
withheld_in_countries:
|
||||
type: array
|
||||
items:
|
||||
type: string # enum DE
|
||||
|
||||
UserUnavailable:
|
||||
required:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue