diff --git a/dist/compatible/paths/bookmarks.yaml b/dist/compatible/paths/bookmarks.yaml index 2f57f2f..a3dbdfc 100644 --- a/dist/compatible/paths/bookmarks.yaml +++ b/dist/compatible/paths/bookmarks.yaml @@ -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: diff --git a/dist/compatible/paths/profile.yaml b/dist/compatible/paths/profile.yaml index d352fd5..63e06ed 100644 --- a/dist/compatible/paths/profile.yaml +++ b/dist/compatible/paths/profile.yaml @@ -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]+$ diff --git a/dist/compatible/schemas/content.yaml b/dist/compatible/schemas/content.yaml index f5b4b9a..dd5f98b 100644 --- a/dist/compatible/schemas/content.yaml +++ b/dist/compatible/schemas/content.yaml @@ -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 diff --git a/dist/compatible/schemas/error.yaml b/dist/compatible/schemas/error.yaml new file mode 100644 index 0000000..0a6d5f0 --- /dev/null +++ b/dist/compatible/schemas/error.yaml @@ -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: {} diff --git a/dist/compatible/schemas/instruction.yaml b/dist/compatible/schemas/instruction.yaml index d4b9fa1..90a112a 100644 --- a/dist/compatible/schemas/instruction.yaml +++ b/dist/compatible/schemas/instruction.yaml @@ -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: diff --git a/dist/compatible/schemas/timeline.yaml b/dist/compatible/schemas/timeline.yaml index b2b721e..c089c54 100644 --- a/dist/compatible/schemas/timeline.yaml +++ b/dist/compatible/schemas/timeline.yaml @@ -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 diff --git a/dist/compatible/schemas/tweet.yaml b/dist/compatible/schemas/tweet.yaml index 59d625d..bea1c3c 100644 --- a/dist/compatible/schemas/tweet.yaml +++ b/dist/compatible/schemas/tweet.yaml @@ -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 diff --git a/dist/compatible/schemas/user.yaml b/dist/compatible/schemas/user.yaml index 8f9f8a7..b60ab45 100644 --- a/dist/compatible/schemas/user.yaml +++ b/dist/compatible/schemas/user.yaml @@ -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 diff --git a/dist/docs/paths/bookmarks.yaml b/dist/docs/paths/bookmarks.yaml index 1aeeeed..54e5bbc 100644 --- a/dist/docs/paths/bookmarks.yaml +++ b/dist/docs/paths/bookmarks.yaml @@ -168,7 +168,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: diff --git a/dist/docs/paths/profile.yaml b/dist/docs/paths/profile.yaml index 708a2b8..a6a15b1 100644 --- a/dist/docs/paths/profile.yaml +++ b/dist/docs/paths/profile.yaml @@ -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]+$ diff --git a/dist/docs/schemas/content.yaml b/dist/docs/schemas/content.yaml index f5b4b9a..dd5f98b 100644 --- a/dist/docs/schemas/content.yaml +++ b/dist/docs/schemas/content.yaml @@ -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 diff --git a/dist/docs/schemas/error.yaml b/dist/docs/schemas/error.yaml new file mode 100644 index 0000000..0a6d5f0 --- /dev/null +++ b/dist/docs/schemas/error.yaml @@ -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: {} diff --git a/dist/docs/schemas/instruction.yaml b/dist/docs/schemas/instruction.yaml index d4b9fa1..90a112a 100644 --- a/dist/docs/schemas/instruction.yaml +++ b/dist/docs/schemas/instruction.yaml @@ -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: diff --git a/dist/docs/schemas/timeline.yaml b/dist/docs/schemas/timeline.yaml index b2b721e..c089c54 100644 --- a/dist/docs/schemas/timeline.yaml +++ b/dist/docs/schemas/timeline.yaml @@ -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 diff --git a/dist/docs/schemas/tweet.yaml b/dist/docs/schemas/tweet.yaml index 59d625d..bea1c3c 100644 --- a/dist/docs/schemas/tweet.yaml +++ b/dist/docs/schemas/tweet.yaml @@ -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 diff --git a/dist/docs/schemas/user.yaml b/dist/docs/schemas/user.yaml index 8f9f8a7..b60ab45 100644 --- a/dist/docs/schemas/user.yaml +++ b/dist/docs/schemas/user.yaml @@ -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