1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-12 08:00:27 +01:00

update chemas

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-02-07 17:55:08 +09:00
parent b622d6ec61
commit c19d43c42a
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
3 changed files with 144 additions and 7 deletions

View file

@ -38,6 +38,7 @@ components:
- "super_follow_eligible"
- "super_followed_by"
- "super_following"
- "profile_image_shape"
properties:
__typename:
@ -73,6 +74,43 @@ components:
super_following:
type: boolean
default: false
profile_image_shape:
type: string
enum:
- "Circle"
- "Square"
professional:
$ref: "#/components/schemas/UserProfessional"
UserProfessional:
required:
- "rest_id"
- "professional_type"
- "category"
properties:
rest_id:
type: string
pattern: "^[0-9]+$"
professional_type:
type: string
enum: ["Business"]
category:
type: array
items:
$ref: "#/components/schemas/UserProfessionalCategory"
UserProfessionalCategory:
required:
- "id"
- "name"
- "icon_name"
properties:
id:
type: integer
name:
type: string # enum
icon_name:
type: string # IconBriefcaseStroke ?
UserLegacy:
required:
@ -219,6 +257,9 @@ components:
want_retweets:
type: boolean
default: false
verified_type:
type: string
enum: ["Business"]
UserUnavailable:
required: