1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-02-13 00:17:08 +09:00
parent 44772ab7b5
commit 8485d1faa6
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
2 changed files with 126 additions and 36 deletions

View file

@ -1320,22 +1320,6 @@ components:
- userFeatures - userFeatures
- isSuperFollowSubscriber - isSuperFollowSubscriber
type: object type: object
SocialContext:
properties:
contextType:
enum:
- Follow
- Pin
type: string
landingUrl:
$ref: '#/components/schemas/SocialContextLandingUrl'
text:
type: string
type:
enum:
- TimelineGeneralContext
type: string
type: object
SocialContextLandingUrl: SocialContextLandingUrl:
properties: properties:
url: url:
@ -1349,6 +1333,20 @@ components:
urtEndpointOptions: urtEndpointOptions:
$ref: '#/components/schemas/UrtEndpointOptions' $ref: '#/components/schemas/UrtEndpointOptions'
type: object type: object
SocialContextUnion:
discriminator:
mapping":
TimelineGeneralContext: '#/components/schemas/TimelineGeneralContext'
TimelineTopicContext: '#/components/schemas/TimelineTopicContext'
propertyName: type
oneOf:
- $ref: '#/components/schemas/TimelineGeneralContext'
- $ref: '#/components/schemas/TimelineTopicContext'
SocialContextUnionType:
enum:
- TimelineGeneralContext
- TimelineTopicContext
type: string
SuperFollowsReplyUserResult: SuperFollowsReplyUserResult:
properties: properties:
result: result:
@ -1497,6 +1495,23 @@ components:
type: string type: string
required: required:
- type - type
TimelineGeneralContext:
properties:
contextType:
enum:
- Follow
- Pin
- Like
- Location
- Sparkle
type: string
landingUrl:
$ref: '#/components/schemas/SocialContextLandingUrl'
text:
type: string
type:
$ref: '#/components/schemas/SocialContextUnionType'
type: object
TimelineHalfCover: TimelineHalfCover:
properties: properties:
dismissible: dismissible:
@ -1704,6 +1719,17 @@ components:
- entryType - entryType
- displayType - displayType
- clientEventInfo - clientEventInfo
TimelineTopicContext:
properties:
functionalityType:
enum:
- Basic
type: string
topic:
$ref: '#/components/schemas/TopicContext'
type:
$ref: '#/components/schemas/SocialContextUnionType'
type: object
TimelineTweet: TimelineTweet:
properties: properties:
__typename: __typename:
@ -1716,7 +1742,7 @@ components:
additionalProperties: true additionalProperties: true
type: object type: object
socialContext: socialContext:
$ref: '#/components/schemas/SocialContext' $ref: '#/components/schemas/SocialContextUnion'
tweetDisplayType: tweetDisplayType:
type: string type: string
tweet_results: tweet_results:
@ -1733,7 +1759,7 @@ components:
itemType: itemType:
$ref: '#/components/schemas/ContentItemType' $ref: '#/components/schemas/ContentItemType'
socialContext: socialContext:
$ref: '#/components/schemas/SocialContext' $ref: '#/components/schemas/SocialContextUnion'
userDisplayType: userDisplayType:
enum: enum:
- User - User
@ -1753,6 +1779,24 @@ components:
$ref: '#/components/schemas/Timeline' $ref: '#/components/schemas/Timeline'
required: required:
- timeline - timeline
TopicContext:
properties:
description:
type: string
following:
type: boolean
icon_url:
format: uri
type: string
id:
type: string
name:
type: string
not_interested:
type: boolean
topic_id:
type: string
type: object
Tracing: Tracing:
properties: properties:
trace_id: trace_id:
@ -2374,6 +2418,7 @@ components:
enum: enum:
- Circle - Circle
- Square - Square
- Hexagon
type: string type: string
rest_id: rest_id:
pattern: ^[0-9]+$ pattern: ^[0-9]+$

View file

@ -1320,22 +1320,6 @@ components:
- userFeatures - userFeatures
- isSuperFollowSubscriber - isSuperFollowSubscriber
type: object type: object
SocialContext:
properties:
contextType:
enum:
- Follow
- Pin
type: string
landingUrl:
$ref: '#/components/schemas/SocialContextLandingUrl'
text:
type: string
type:
enum:
- TimelineGeneralContext
type: string
type: object
SocialContextLandingUrl: SocialContextLandingUrl:
properties: properties:
url: url:
@ -1349,6 +1333,20 @@ components:
urtEndpointOptions: urtEndpointOptions:
$ref: '#/components/schemas/UrtEndpointOptions' $ref: '#/components/schemas/UrtEndpointOptions'
type: object type: object
SocialContextUnion:
discriminator:
mapping":
TimelineGeneralContext: '#/components/schemas/TimelineGeneralContext'
TimelineTopicContext: '#/components/schemas/TimelineTopicContext'
propertyName: type
oneOf:
- $ref: '#/components/schemas/TimelineGeneralContext'
- $ref: '#/components/schemas/TimelineTopicContext'
SocialContextUnionType:
enum:
- TimelineGeneralContext
- TimelineTopicContext
type: string
SuperFollowsReplyUserResult: SuperFollowsReplyUserResult:
properties: properties:
result: result:
@ -1497,6 +1495,23 @@ components:
type: string type: string
required: required:
- type - type
TimelineGeneralContext:
properties:
contextType:
enum:
- Follow
- Pin
- Like
- Location
- Sparkle
type: string
landingUrl:
$ref: '#/components/schemas/SocialContextLandingUrl'
text:
type: string
type:
$ref: '#/components/schemas/SocialContextUnionType'
type: object
TimelineHalfCover: TimelineHalfCover:
properties: properties:
dismissible: dismissible:
@ -1704,6 +1719,17 @@ components:
- entryType - entryType
- displayType - displayType
- clientEventInfo - clientEventInfo
TimelineTopicContext:
properties:
functionalityType:
enum:
- Basic
type: string
topic:
$ref: '#/components/schemas/TopicContext'
type:
$ref: '#/components/schemas/SocialContextUnionType'
type: object
TimelineTweet: TimelineTweet:
properties: properties:
__typename: __typename:
@ -1716,7 +1742,7 @@ components:
additionalProperties: true additionalProperties: true
type: object type: object
socialContext: socialContext:
$ref: '#/components/schemas/SocialContext' $ref: '#/components/schemas/SocialContextUnion'
tweetDisplayType: tweetDisplayType:
type: string type: string
tweet_results: tweet_results:
@ -1733,7 +1759,7 @@ components:
itemType: itemType:
$ref: '#/components/schemas/ContentItemType' $ref: '#/components/schemas/ContentItemType'
socialContext: socialContext:
$ref: '#/components/schemas/SocialContext' $ref: '#/components/schemas/SocialContextUnion'
userDisplayType: userDisplayType:
enum: enum:
- User - User
@ -1753,6 +1779,24 @@ components:
$ref: '#/components/schemas/Timeline' $ref: '#/components/schemas/Timeline'
required: required:
- timeline - timeline
TopicContext:
properties:
description:
type: string
following:
type: boolean
icon_url:
format: uri
type: string
id:
type: string
name:
type: string
not_interested:
type: boolean
topic_id:
type: string
type: object
Tracing: Tracing:
properties: properties:
trace_id: trace_id:
@ -2374,6 +2418,7 @@ components:
enum: enum:
- Circle - Circle
- Square - Square
- Hexagon
type: string type: string
rest_id: rest_id:
pattern: ^[0-9]+$ pattern: ^[0-9]+$