1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-07-30 21:46:25 +09:00
parent 9a59a994a7
commit 112a13efc3
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
16 changed files with 256 additions and 4 deletions

View file

@ -74,7 +74,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/BookmarksResponse'
oneOf:
- $ref: '#/components/schemas/BookmarksResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
description: Successful operation
headers:
x-connection-hash:

View file

@ -15,6 +15,7 @@ components:
UserResultByScreenName:
properties:
id:
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
type: string
result:
$ref: '#/components/schemas/UserResultByScreenNameResult'
@ -47,6 +48,7 @@ components:
legacy:
$ref: '#/components/schemas/UserResultByScreenNameLegacy'
profilemodules:
additionalProperties: true
type: object
rest_id:
pattern: ^[0-9]+$

View file

@ -51,6 +51,7 @@ components:
ModuleEntry:
properties:
clientEventInfo:
additionalProperties: true
type: object
itemContent:
$ref: '#/components/schemas/ItemContentUnion'
@ -60,6 +61,7 @@ components:
ModuleItem:
properties:
entryId:
pattern: ^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+
type: string
item:
$ref: '#/components/schemas/ModuleEntry'
@ -76,10 +78,12 @@ components:
type: string
type: object
TimelineMessagePrompt:
additionalProperties: true
properties:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
TimelinePrompt:
additionalProperties: true
properties:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
@ -110,10 +114,12 @@ components:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
clientEventInfo:
additionalProperties: true
type: object
entryType:
$ref: '#/components/schemas/ContentEntryType'
feedbackInfo:
additionalProperties: true
type: object
itemContent:
$ref: '#/components/schemas/ItemContentUnion'
@ -124,17 +130,20 @@ components:
TimelineTimelineModule:
properties:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
type: string
value: TimelineTimelineModule
clientEventInfo:
additionalProperties: true
type: object
displayType:
type: string
entryType:
$ref: '#/components/schemas/ContentEntryType'
footer:
additionalProperties: true
type: object
header:
additionalProperties: true
type: object
items:
items:
@ -154,6 +163,7 @@ components:
itemType:
$ref: '#/components/schemas/ContentItemType'
promotedMetadata:
additionalProperties: true
type: object
tweetDisplayType:
type: string

94
dist/compatible/schemas/error.yaml vendored Normal file
View file

@ -0,0 +1,94 @@
components:
schemas:
Error:
properties:
code:
type: integer
extensions:
$ref: '#/components/schemas/ErrorExtensions'
kind:
type: string
locations:
items:
$ref: '#/components/schemas/Location'
type: array
message:
type: string
name:
type: string
path:
items:
type: string
type: array
retry_after:
type: integer
source:
type: string
tracing:
$ref: '#/components/schemas/Tracing'
required:
- message
- locations
- path
- extensions
- code
- kind
- name
- source
- retry_after
- tracing
type: object
ErrorExtensions:
properties:
code:
type: integer
kind:
type: string
name:
type: string
retry_after:
type: integer
source:
type: string
tracing:
$ref: '#/components/schemas/Tracing'
required:
- name
- source
- retry_after
- code
- kind
- tracing
type: object
Errors:
properties:
errors:
items:
$ref: '#/components/schemas/Error'
type: array
required:
- errors
type: object
Location:
properties:
column:
type: integer
line:
type: integer
required:
- line
- column
type: object
Tracing:
properties:
trace_id:
pattern: ^[0-9a-f]{16}$
type: string
required:
- trace_id
type: object
info:
title: Twitter OpenAPI
version: 0.0.1
openapi: 3.0.3
paths: {}

View file

@ -45,6 +45,7 @@ components:
content:
$ref: ./content.yaml#/components/schemas/ContentUnion
entryId:
pattern: ^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+
type: string
sortIndex:
pattern: '[0-9]+$'
@ -103,6 +104,7 @@ components:
- NewTweets
type: string
colorConfig:
additionalProperties: true
type: object
displayDurationMs:
type: integer
@ -111,11 +113,13 @@ components:
- Top
type: string
iconDisplayInfo:
additionalProperties: true
type: object
richText:
properties:
entities:
items:
additionalProperties: true
type: object
type: array
text:

View file

@ -7,8 +7,10 @@ components:
$ref: ./../schemas/instruction.yaml#/components/schemas/InstructionUnion
type: array
metadata:
additionalProperties: true
type: object
responseObjects:
additionalProperties: true
type: object
required:
- instructions

View file

@ -36,6 +36,7 @@ components:
required:
- media
Hashtag:
additionalProperties: true
type: object
Media:
properties:
@ -46,6 +47,7 @@ components:
format: uri
type: string
ext_media_availability:
additionalProperties: true
type: object
id_str:
pattern: ^[0-9]+$
@ -64,6 +66,7 @@ components:
properties:
focus_rects:
items:
additionalProperties: true
type: object
type: array
height:
@ -72,6 +75,7 @@ components:
type: integer
type: object
sizes:
additionalProperties: true
type: object
type:
type: string
@ -89,6 +93,7 @@ components:
- sizes
- original_info
Symbol:
additionalProperties: true
type: object
Tweet:
properties:
@ -169,6 +174,7 @@ components:
pattern: ^[0-9]+$
type: string
unmention_data:
additionalProperties: true
type: object
views:
properties:
@ -263,6 +269,7 @@ components:
- user_id_str
- id_str
TweetTombstone:
additionalProperties: true
properties:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
@ -307,6 +314,7 @@ components:
- display_url
type: object
UserMention:
additionalProperties: true
type: object
info:
title: Twitter OpenAPI

View file

@ -5,8 +5,10 @@ components:
__typename:
$ref: ./typename.yaml#/components/schemas/TypeName
affiliates_highlighted_label:
additionalProperties: true
type: object
business_account:
additionalProperties: true
type: object
has_graduated_access:
type: boolean
@ -14,6 +16,7 @@ components:
default: false
type: boolean
id:
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
type: string
is_blue_verified:
default: false
@ -67,6 +70,7 @@ components:
description:
type: string
entities:
additionalProperties: true
type: object
fast_followers_count:
type: integer