mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-03-07 12:39:54 +01:00
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
04f13cbf87
commit
f039ad277d
2 changed files with 557 additions and 0 deletions
211
dist/compatible/openapi-3.0.yaml
vendored
211
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -600,6 +600,8 @@ components:
|
||||||
- TimelineMessagePrompt
|
- TimelineMessagePrompt
|
||||||
- TimelineCommunity
|
- TimelineCommunity
|
||||||
- TimelineTombstone
|
- TimelineTombstone
|
||||||
|
- TimelineTrend
|
||||||
|
- TimelineNotification
|
||||||
type: string
|
type: string
|
||||||
ContentUnion:
|
ContentUnion:
|
||||||
discriminator:
|
discriminator:
|
||||||
|
|
@ -1033,6 +1035,8 @@ components:
|
||||||
- TimelineShowAlert
|
- TimelineShowAlert
|
||||||
- TimelineTerminateTimeline
|
- TimelineTerminateTimeline
|
||||||
- TimelineShowCover
|
- TimelineShowCover
|
||||||
|
- TimelineClearEntriesUnreadState
|
||||||
|
- TimelineMarkEntriesUnreadGreaterThanSortIndex
|
||||||
type: string
|
type: string
|
||||||
InstructionUnion:
|
InstructionUnion:
|
||||||
discriminator:
|
discriminator:
|
||||||
|
|
@ -1040,6 +1044,8 @@ components:
|
||||||
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
||||||
TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
|
TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
|
||||||
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
||||||
|
TimelineClearEntriesUnreadState: '#/components/schemas/TimelineClearEntriesUnreadState'
|
||||||
|
TimelineMarkEntriesUnreadGreaterThanSortIndex: '#/components/schemas/TimelineMarkEntriesUnreadGreaterThanSortIndex'
|
||||||
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
||||||
TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
|
TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
|
||||||
TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
|
TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
|
||||||
|
|
@ -1055,11 +1061,14 @@ components:
|
||||||
- $ref: '#/components/schemas/TimelineShowAlert'
|
- $ref: '#/components/schemas/TimelineShowAlert'
|
||||||
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
||||||
- $ref: '#/components/schemas/TimelineShowCover'
|
- $ref: '#/components/schemas/TimelineShowCover'
|
||||||
|
- $ref: '#/components/schemas/TimelineClearEntriesUnreadState'
|
||||||
|
- $ref: '#/components/schemas/TimelineMarkEntriesUnreadGreaterThanSortIndex'
|
||||||
ItemContentUnion:
|
ItemContentUnion:
|
||||||
discriminator:
|
discriminator:
|
||||||
mapping":
|
mapping":
|
||||||
TimelineCommunity: '#/components/schemas/TimelineCommunity'
|
TimelineCommunity: '#/components/schemas/TimelineCommunity'
|
||||||
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
|
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
|
||||||
|
TimelineNotification: '#/components/schemas/TimelineNotification'
|
||||||
TimelinePrompt: '#/components/schemas/TimelinePrompt'
|
TimelinePrompt: '#/components/schemas/TimelinePrompt'
|
||||||
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
||||||
TimelineTombstone: '#/components/schemas/TimelineTombstone'
|
TimelineTombstone: '#/components/schemas/TimelineTombstone'
|
||||||
|
|
@ -1076,6 +1085,7 @@ components:
|
||||||
- $ref: '#/components/schemas/TimelineCommunity'
|
- $ref: '#/components/schemas/TimelineCommunity'
|
||||||
- $ref: '#/components/schemas/TimelineTombstone'
|
- $ref: '#/components/schemas/TimelineTombstone'
|
||||||
- $ref: '#/components/schemas/TimelineTrend'
|
- $ref: '#/components/schemas/TimelineTrend'
|
||||||
|
- $ref: '#/components/schemas/TimelineNotification'
|
||||||
ItemResult:
|
ItemResult:
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
|
|
@ -1513,6 +1523,60 @@ components:
|
||||||
- from_index
|
- from_index
|
||||||
- to_index
|
- to_index
|
||||||
- richtext_types
|
- richtext_types
|
||||||
|
NotificationTemplate:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
from_users:
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
target_objects:
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
NotificationsResult:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
notification_timeline:
|
||||||
|
$ref: '#/components/schemas/TimelineResult'
|
||||||
|
rest_id:
|
||||||
|
pattern: ^[0-9]+$
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- __typename
|
||||||
|
- rest_id
|
||||||
|
- notification_timeline
|
||||||
|
NotificationsTimelineData:
|
||||||
|
properties:
|
||||||
|
viewer_v2:
|
||||||
|
$ref: '#/components/schemas/NotificationsViewerV2'
|
||||||
|
required:
|
||||||
|
- viewer_v2
|
||||||
|
NotificationsTimelineResponse:
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/components/schemas/NotificationsTimelineData'
|
||||||
|
errors:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- data
|
||||||
|
NotificationsUserResults:
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
|
$ref: '#/components/schemas/NotificationsResult'
|
||||||
|
required:
|
||||||
|
- result
|
||||||
|
NotificationsViewerV2:
|
||||||
|
properties:
|
||||||
|
user_results:
|
||||||
|
$ref: '#/components/schemas/NotificationsUserResults'
|
||||||
|
required:
|
||||||
|
- user_results
|
||||||
OneFactorLoginEligibility:
|
OneFactorLoginEligibility:
|
||||||
properties:
|
properties:
|
||||||
fetchStatus:
|
fetchStatus:
|
||||||
|
|
@ -1604,6 +1668,13 @@ components:
|
||||||
required:
|
required:
|
||||||
- rest_id
|
- rest_id
|
||||||
- legacy
|
- legacy
|
||||||
|
RichMessage:
|
||||||
|
properties:
|
||||||
|
rtl:
|
||||||
|
type: boolean
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
SearchByRawQuery:
|
SearchByRawQuery:
|
||||||
properties:
|
properties:
|
||||||
search_timeline:
|
search_timeline:
|
||||||
|
|
@ -1872,6 +1943,12 @@ components:
|
||||||
$ref: '#/components/schemas/InstructionType'
|
$ref: '#/components/schemas/InstructionType'
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
|
TimelineClearEntriesUnreadState:
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
$ref: '#/components/schemas/InstructionType'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
TimelineCommunity:
|
TimelineCommunity:
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -1951,11 +2028,47 @@ components:
|
||||||
- secondaryText
|
- secondaryText
|
||||||
- impressionCallbacks
|
- impressionCallbacks
|
||||||
- dismissible
|
- dismissible
|
||||||
|
TimelineMarkEntriesUnreadGreaterThanSortIndex:
|
||||||
|
properties:
|
||||||
|
sort_index:
|
||||||
|
pattern: '[0-9]+$'
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
$ref: '#/components/schemas/InstructionType'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
TimelineMessagePrompt:
|
TimelineMessagePrompt:
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
$ref: '#/components/schemas/TypeName'
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
TimelineNotification:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
itemType:
|
||||||
|
$ref: '#/components/schemas/ContentItemType'
|
||||||
|
notification_icon:
|
||||||
|
type: string
|
||||||
|
notification_url:
|
||||||
|
$ref: '#/components/schemas/SocialContextLandingUrl'
|
||||||
|
rich_message:
|
||||||
|
$ref: '#/components/schemas/RichMessage'
|
||||||
|
template:
|
||||||
|
$ref: '#/components/schemas/NotificationTemplate'
|
||||||
|
timestamp_ms:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- __typename
|
||||||
|
- itemType
|
||||||
|
- id
|
||||||
|
- notification_icon
|
||||||
|
- rich_message
|
||||||
|
- notification_url
|
||||||
|
- template
|
||||||
|
- timestamp_ms
|
||||||
TimelinePinEntry:
|
TimelinePinEntry:
|
||||||
properties:
|
properties:
|
||||||
entry:
|
entry:
|
||||||
|
|
@ -1994,6 +2107,8 @@ components:
|
||||||
- data
|
- data
|
||||||
TimelineResult:
|
TimelineResult:
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
timeline:
|
timeline:
|
||||||
$ref: '#/components/schemas/Timeline'
|
$ref: '#/components/schemas/Timeline'
|
||||||
TimelineShowAlert:
|
TimelineShowAlert:
|
||||||
|
|
@ -2957,6 +3072,8 @@ components:
|
||||||
- TimelineCommunity
|
- TimelineCommunity
|
||||||
- TimelineTombstone
|
- TimelineTombstone
|
||||||
- TimelineTrend
|
- TimelineTrend
|
||||||
|
- TimelineNotification
|
||||||
|
- TimelineNotificationAggregateUserActions
|
||||||
- TweetUnavailable
|
- TweetUnavailable
|
||||||
- TweetPreviewDisplay
|
- TweetPreviewDisplay
|
||||||
- Tweet
|
- Tweet
|
||||||
|
|
@ -6392,6 +6509,100 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- tweet
|
- tweet
|
||||||
|
/graphql/{pathQueryId}/NotificationsTimeline:
|
||||||
|
get:
|
||||||
|
description: get notification list. timeline_type:[All, Verified, Mentions]
|
||||||
|
operationId: getNotificationsTimeline
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: pathQueryId
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: GquVPn-SKYxKLgLsRPpJ6g
|
||||||
|
example: GquVPn-SKYxKLgLsRPpJ6g
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: variables
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"timeline_type": "All", "count": 20}'
|
||||||
|
example: '{"timeline_type": "All", "count": 20}'
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: features
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled":
|
||||||
|
true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled":
|
||||||
|
false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled":
|
||||||
|
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||||
|
false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch":
|
||||||
|
true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled":
|
||||||
|
false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame":
|
||||||
|
false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled":
|
||||||
|
true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
|
||||||
|
true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
||||||
|
true, "responsive_web_twitter_article_tweet_consumption_enabled": true,
|
||||||
|
"tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post":
|
||||||
|
false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled":
|
||||||
|
false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo":
|
||||||
|
true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
||||||
|
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
||||||
|
true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled":
|
||||||
|
false}'
|
||||||
|
example: '{"rweb_video_screen_enabled": false, "profile_label_improvements_pcf_label_in_post_enabled":
|
||||||
|
true, "rweb_tipjar_consumption_enabled": true, "verified_phone_label_enabled":
|
||||||
|
false, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_timeline_navigation_enabled":
|
||||||
|
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||||
|
false, "premium_content_api_read_enabled": false, "communities_web_enable_tweet_community_results_fetch":
|
||||||
|
true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "responsive_web_grok_analyze_button_fetch_trends_enabled":
|
||||||
|
false, "responsive_web_grok_analyze_post_followups_enabled": true, "responsive_web_jetfuel_frame":
|
||||||
|
false, "responsive_web_grok_share_attachment_enabled": true, "articles_preview_enabled":
|
||||||
|
true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
|
||||||
|
true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
||||||
|
true, "responsive_web_twitter_article_tweet_consumption_enabled": true,
|
||||||
|
"tweet_awards_web_tipping_enabled": false, "responsive_web_grok_show_grok_translated_post":
|
||||||
|
false, "responsive_web_grok_analysis_button_from_backend": false, "creator_subscriptions_quote_tweet_preview_enabled":
|
||||||
|
false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo":
|
||||||
|
true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
||||||
|
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
||||||
|
true, "responsive_web_grok_image_annotation_enabled": true, "responsive_web_enhance_cards_enabled":
|
||||||
|
false}'
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/NotificationsTimelineResponse'
|
||||||
|
description: Successful operation
|
||||||
|
headers:
|
||||||
|
x-connection-hash:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-rate-limit-limit:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-remaining:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-reset:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-response-time:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-tfe-preserve-body:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
x-transaction-id:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-twitter-response-tags:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
tags:
|
||||||
|
- tweet
|
||||||
/graphql/{pathQueryId}/ProfileSpotlightsQuery:
|
/graphql/{pathQueryId}/ProfileSpotlightsQuery:
|
||||||
get:
|
get:
|
||||||
description: get user by screen name
|
description: get user by screen name
|
||||||
|
|
|
||||||
346
dist/docs/openapi-3.0.yaml
vendored
346
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -600,6 +600,8 @@ components:
|
||||||
- TimelineMessagePrompt
|
- TimelineMessagePrompt
|
||||||
- TimelineCommunity
|
- TimelineCommunity
|
||||||
- TimelineTombstone
|
- TimelineTombstone
|
||||||
|
- TimelineTrend
|
||||||
|
- TimelineNotification
|
||||||
type: string
|
type: string
|
||||||
ContentUnion:
|
ContentUnion:
|
||||||
discriminator:
|
discriminator:
|
||||||
|
|
@ -1033,6 +1035,8 @@ components:
|
||||||
- TimelineShowAlert
|
- TimelineShowAlert
|
||||||
- TimelineTerminateTimeline
|
- TimelineTerminateTimeline
|
||||||
- TimelineShowCover
|
- TimelineShowCover
|
||||||
|
- TimelineClearEntriesUnreadState
|
||||||
|
- TimelineMarkEntriesUnreadGreaterThanSortIndex
|
||||||
type: string
|
type: string
|
||||||
InstructionUnion:
|
InstructionUnion:
|
||||||
discriminator:
|
discriminator:
|
||||||
|
|
@ -1040,6 +1044,8 @@ components:
|
||||||
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
||||||
TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
|
TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
|
||||||
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
||||||
|
TimelineClearEntriesUnreadState: '#/components/schemas/TimelineClearEntriesUnreadState'
|
||||||
|
TimelineMarkEntriesUnreadGreaterThanSortIndex: '#/components/schemas/TimelineMarkEntriesUnreadGreaterThanSortIndex'
|
||||||
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
||||||
TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
|
TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
|
||||||
TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
|
TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
|
||||||
|
|
@ -1055,11 +1061,14 @@ components:
|
||||||
- $ref: '#/components/schemas/TimelineShowAlert'
|
- $ref: '#/components/schemas/TimelineShowAlert'
|
||||||
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
||||||
- $ref: '#/components/schemas/TimelineShowCover'
|
- $ref: '#/components/schemas/TimelineShowCover'
|
||||||
|
- $ref: '#/components/schemas/TimelineClearEntriesUnreadState'
|
||||||
|
- $ref: '#/components/schemas/TimelineMarkEntriesUnreadGreaterThanSortIndex'
|
||||||
ItemContentUnion:
|
ItemContentUnion:
|
||||||
discriminator:
|
discriminator:
|
||||||
mapping":
|
mapping":
|
||||||
TimelineCommunity: '#/components/schemas/TimelineCommunity'
|
TimelineCommunity: '#/components/schemas/TimelineCommunity'
|
||||||
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
|
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
|
||||||
|
TimelineNotification: '#/components/schemas/TimelineNotification'
|
||||||
TimelinePrompt: '#/components/schemas/TimelinePrompt'
|
TimelinePrompt: '#/components/schemas/TimelinePrompt'
|
||||||
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
||||||
TimelineTombstone: '#/components/schemas/TimelineTombstone'
|
TimelineTombstone: '#/components/schemas/TimelineTombstone'
|
||||||
|
|
@ -1076,6 +1085,7 @@ components:
|
||||||
- $ref: '#/components/schemas/TimelineCommunity'
|
- $ref: '#/components/schemas/TimelineCommunity'
|
||||||
- $ref: '#/components/schemas/TimelineTombstone'
|
- $ref: '#/components/schemas/TimelineTombstone'
|
||||||
- $ref: '#/components/schemas/TimelineTrend'
|
- $ref: '#/components/schemas/TimelineTrend'
|
||||||
|
- $ref: '#/components/schemas/TimelineNotification'
|
||||||
ItemResult:
|
ItemResult:
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
|
|
@ -1513,6 +1523,60 @@ components:
|
||||||
- from_index
|
- from_index
|
||||||
- to_index
|
- to_index
|
||||||
- richtext_types
|
- richtext_types
|
||||||
|
NotificationTemplate:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
from_users:
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
target_objects:
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
NotificationsResult:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
notification_timeline:
|
||||||
|
$ref: '#/components/schemas/TimelineResult'
|
||||||
|
rest_id:
|
||||||
|
pattern: ^[0-9]+$
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- __typename
|
||||||
|
- rest_id
|
||||||
|
- notification_timeline
|
||||||
|
NotificationsTimelineData:
|
||||||
|
properties:
|
||||||
|
viewer_v2:
|
||||||
|
$ref: '#/components/schemas/NotificationsViewerV2'
|
||||||
|
required:
|
||||||
|
- viewer_v2
|
||||||
|
NotificationsTimelineResponse:
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/components/schemas/NotificationsTimelineData'
|
||||||
|
errors:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- data
|
||||||
|
NotificationsUserResults:
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
|
$ref: '#/components/schemas/NotificationsResult'
|
||||||
|
required:
|
||||||
|
- result
|
||||||
|
NotificationsViewerV2:
|
||||||
|
properties:
|
||||||
|
user_results:
|
||||||
|
$ref: '#/components/schemas/NotificationsUserResults'
|
||||||
|
required:
|
||||||
|
- user_results
|
||||||
OneFactorLoginEligibility:
|
OneFactorLoginEligibility:
|
||||||
properties:
|
properties:
|
||||||
fetchStatus:
|
fetchStatus:
|
||||||
|
|
@ -1604,6 +1668,13 @@ components:
|
||||||
required:
|
required:
|
||||||
- rest_id
|
- rest_id
|
||||||
- legacy
|
- legacy
|
||||||
|
RichMessage:
|
||||||
|
properties:
|
||||||
|
rtl:
|
||||||
|
type: boolean
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
SearchByRawQuery:
|
SearchByRawQuery:
|
||||||
properties:
|
properties:
|
||||||
search_timeline:
|
search_timeline:
|
||||||
|
|
@ -1872,6 +1943,12 @@ components:
|
||||||
$ref: '#/components/schemas/InstructionType'
|
$ref: '#/components/schemas/InstructionType'
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
|
TimelineClearEntriesUnreadState:
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
$ref: '#/components/schemas/InstructionType'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
TimelineCommunity:
|
TimelineCommunity:
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -1951,11 +2028,47 @@ components:
|
||||||
- secondaryText
|
- secondaryText
|
||||||
- impressionCallbacks
|
- impressionCallbacks
|
||||||
- dismissible
|
- dismissible
|
||||||
|
TimelineMarkEntriesUnreadGreaterThanSortIndex:
|
||||||
|
properties:
|
||||||
|
sort_index:
|
||||||
|
pattern: '[0-9]+$'
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
$ref: '#/components/schemas/InstructionType'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
TimelineMessagePrompt:
|
TimelineMessagePrompt:
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
properties:
|
properties:
|
||||||
__typename:
|
__typename:
|
||||||
$ref: '#/components/schemas/TypeName'
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
TimelineNotification:
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: '#/components/schemas/TypeName'
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
itemType:
|
||||||
|
$ref: '#/components/schemas/ContentItemType'
|
||||||
|
notification_icon:
|
||||||
|
type: string
|
||||||
|
notification_url:
|
||||||
|
$ref: '#/components/schemas/SocialContextLandingUrl'
|
||||||
|
rich_message:
|
||||||
|
$ref: '#/components/schemas/RichMessage'
|
||||||
|
template:
|
||||||
|
$ref: '#/components/schemas/NotificationTemplate'
|
||||||
|
timestamp_ms:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- __typename
|
||||||
|
- itemType
|
||||||
|
- id
|
||||||
|
- notification_icon
|
||||||
|
- rich_message
|
||||||
|
- notification_url
|
||||||
|
- template
|
||||||
|
- timestamp_ms
|
||||||
TimelinePinEntry:
|
TimelinePinEntry:
|
||||||
properties:
|
properties:
|
||||||
entry:
|
entry:
|
||||||
|
|
@ -1994,6 +2107,8 @@ components:
|
||||||
- data
|
- data
|
||||||
TimelineResult:
|
TimelineResult:
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
timeline:
|
timeline:
|
||||||
$ref: '#/components/schemas/Timeline'
|
$ref: '#/components/schemas/Timeline'
|
||||||
TimelineShowAlert:
|
TimelineShowAlert:
|
||||||
|
|
@ -2957,6 +3072,8 @@ components:
|
||||||
- TimelineCommunity
|
- TimelineCommunity
|
||||||
- TimelineTombstone
|
- TimelineTombstone
|
||||||
- TimelineTrend
|
- TimelineTrend
|
||||||
|
- TimelineNotification
|
||||||
|
- TimelineNotificationAggregateUserActions
|
||||||
- TweetUnavailable
|
- TweetUnavailable
|
||||||
- TweetPreviewDisplay
|
- TweetPreviewDisplay
|
||||||
- Tweet
|
- Tweet
|
||||||
|
|
@ -8096,6 +8213,235 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- tweet
|
- tweet
|
||||||
|
/graphql/{pathQueryId}/NotificationsTimeline:
|
||||||
|
get:
|
||||||
|
description: get notification list. timeline_type:[All, Verified, Mentions]
|
||||||
|
operationId: getNotificationsTimeline
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: pathQueryId
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: GquVPn-SKYxKLgLsRPpJ6g
|
||||||
|
example: GquVPn-SKYxKLgLsRPpJ6g
|
||||||
|
type: string
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
count:
|
||||||
|
default: 20
|
||||||
|
example: 20
|
||||||
|
type: integer
|
||||||
|
timeline_type:
|
||||||
|
default: All
|
||||||
|
example: All
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- timeline_type
|
||||||
|
- count
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: variables
|
||||||
|
required: true
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
articles_preview_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
c9s_tweet_anatomy_moderator_badge_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
communities_web_enable_tweet_community_results_fetch:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
creator_subscriptions_quote_tweet_preview_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
creator_subscriptions_tweet_preview_api_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
freedom_of_speech_not_reach_fetch_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
graphql_is_translatable_rweb_tweet_is_translatable_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
longform_notetweets_consumption_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
longform_notetweets_inline_media_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
longform_notetweets_rich_text_read_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
premium_content_api_read_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
profile_label_improvements_pcf_label_in_post_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_edit_tweet_api_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_enhance_cards_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_graphql_skip_user_profile_image_extensions_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_graphql_timeline_navigation_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_grok_analysis_button_from_backend:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_grok_analyze_button_fetch_trends_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_grok_analyze_post_followups_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_grok_image_annotation_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_grok_share_attachment_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_grok_show_grok_translated_post:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_jetfuel_frame:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_twitter_article_tweet_consumption_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
rweb_tipjar_consumption_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
rweb_video_screen_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
standardized_nudges_misinfo:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
tweet_awards_web_tipping_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
verified_phone_label_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
view_counts_everywhere_api_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- rweb_video_screen_enabled
|
||||||
|
- profile_label_improvements_pcf_label_in_post_enabled
|
||||||
|
- rweb_tipjar_consumption_enabled
|
||||||
|
- verified_phone_label_enabled
|
||||||
|
- creator_subscriptions_tweet_preview_api_enabled
|
||||||
|
- responsive_web_graphql_timeline_navigation_enabled
|
||||||
|
- responsive_web_graphql_skip_user_profile_image_extensions_enabled
|
||||||
|
- premium_content_api_read_enabled
|
||||||
|
- communities_web_enable_tweet_community_results_fetch
|
||||||
|
- c9s_tweet_anatomy_moderator_badge_enabled
|
||||||
|
- responsive_web_grok_analyze_button_fetch_trends_enabled
|
||||||
|
- responsive_web_grok_analyze_post_followups_enabled
|
||||||
|
- responsive_web_jetfuel_frame
|
||||||
|
- responsive_web_grok_share_attachment_enabled
|
||||||
|
- articles_preview_enabled
|
||||||
|
- responsive_web_edit_tweet_api_enabled
|
||||||
|
- graphql_is_translatable_rweb_tweet_is_translatable_enabled
|
||||||
|
- view_counts_everywhere_api_enabled
|
||||||
|
- longform_notetweets_consumption_enabled
|
||||||
|
- responsive_web_twitter_article_tweet_consumption_enabled
|
||||||
|
- tweet_awards_web_tipping_enabled
|
||||||
|
- responsive_web_grok_show_grok_translated_post
|
||||||
|
- responsive_web_grok_analysis_button_from_backend
|
||||||
|
- creator_subscriptions_quote_tweet_preview_enabled
|
||||||
|
- freedom_of_speech_not_reach_fetch_enabled
|
||||||
|
- standardized_nudges_misinfo
|
||||||
|
- tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
|
||||||
|
- longform_notetweets_rich_text_read_enabled
|
||||||
|
- longform_notetweets_inline_media_enabled
|
||||||
|
- responsive_web_grok_image_annotation_enabled
|
||||||
|
- responsive_web_enhance_cards_enabled
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: features
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/NotificationsTimelineResponse'
|
||||||
|
description: Successful operation
|
||||||
|
headers:
|
||||||
|
x-connection-hash:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-rate-limit-limit:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-remaining:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-reset:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-response-time:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-tfe-preserve-body:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
x-transaction-id:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-twitter-response-tags:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
tags:
|
||||||
|
- tweet
|
||||||
/graphql/{pathQueryId}/ProfileSpotlightsQuery:
|
/graphql/{pathQueryId}/ProfileSpotlightsQuery:
|
||||||
get:
|
get:
|
||||||
description: get user by screen name
|
description: get user by screen name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue