Skip to main content
Go to Latest
interface components
import { type components } from "https://deno.land/x/twi@1.0.3/types.ts";

Properties

schemas: { AddOrDeleteRulesRequest: components["schemas"]["AddRulesRequest"] | components["schemas"]["DeleteRulesRequest"]; AddOrDeleteRulesResponse: { data?: components["schemas"]["Rule"][]; errors?: components["schemas"]["Problem"][]; meta: components["schemas"]["RulesResponseMetadata"]; }; AddRulesRequest: { add: components["schemas"]["RuleNoId"][]; }; Aggregate: number; AnimatedGif: components["schemas"]["Media"] & { preview_image_url?: string; variants?: components["schemas"]["Variants"]; }; BlockUserMutationResponse: { data?: { blocking?: boolean; }; errors?: components["schemas"]["Problem"][]; }; BlockUserRequest: { target_user_id: components["schemas"]["UserId"]; }; BookmarkAddRequest: { tweet_id: components["schemas"]["TweetId"]; }; BookmarkMutationResponse: { data?: { bookmarked?: boolean; }; errors?: components["schemas"]["Problem"][]; }; CashtagEntity: components["schemas"]["EntityIndicesInclusiveExclusive"] & components["schemas"]["CashtagFields"]; CashtagFields: { tag: string; }; ClientDisconnectedProblem: components["schemas"]["Problem"]; ClientForbiddenProblem: components["schemas"]["Problem"] & { reason?: "official-client-forbidden" | "client-not-enrolled"; registration_url?: string; }; ComplianceJob: { created_at: components["schemas"]["CreatedAt"]; download_expires_at: components["schemas"]["DownloadExpiration"]; download_url: components["schemas"]["DownloadUrl"]; id: components["schemas"]["JobId"]; name?: components["schemas"]["ComplianceJobName"]; status: components["schemas"]["ComplianceJobStatus"]; type: components["schemas"]["ComplianceJobType"]; upload_expires_at: components["schemas"]["UploadExpiration"]; upload_url: components["schemas"]["UploadUrl"]; }; ComplianceJobName: string; ComplianceJobStatus:
| "created"
| "in_progress"
| "failed"
| "complete"
| "expired"
; ComplianceJobType: "tweets" | "users"; ConflictProblem: components["schemas"]["Problem"]; ConnectionExceptionProblem: components["schemas"]["Problem"] & { connection_issue?:
| "TooManyConnections"
| "ProvisioningSubscription"
| "RuleConfigurationIssue"
| "RulesInvalidIssue"
; }; ContextAnnotation: { domain: components["schemas"]["ContextAnnotationDomainFields"]; entity: components["schemas"]["ContextAnnotationEntityFields"]; }; ContextAnnotationDomainFields: { description?: string; id: string; name?: string; }; ContextAnnotationEntityFields: { description?: string; id: string; name?: string; }; CountryCode: string; CreateComplianceJobRequest: { name?: components["schemas"]["ComplianceJobName"]; resumable?: boolean; type: "tweets" | "users"; }; CreateComplianceJobResponse: { data?: components["schemas"]["ComplianceJob"]; errors?: components["schemas"]["Problem"][]; }; CreatedAt: string; DeleteRulesRequest: { delete: { ids?: components["schemas"]["RuleId"][]; values?: components["schemas"]["RuleValue"][]; }; }; DisallowedResourceProblem: components["schemas"]["Problem"] & { resource_id: string; resource_type:
| "user"
| "tweet"
| "media"
| "list"
| "space"
; section: "data" | "includes"; }; DownloadExpiration: string; DownloadUrl: string; DuplicateRuleProblem: components["schemas"]["Problem"] & { id?: string; value?: string; }; End: string; EntityIndicesInclusiveExclusive: { end: number; start: number; }; EntityIndicesInclusiveInclusive: { end: number; start: number; }; Error: { code: number; message: string; }; Expansions: { media?: components["schemas"]["Media"][]; places?: components["schemas"]["Place"][]; polls?: components["schemas"]["Poll"][]; topics?: components["schemas"]["Topic"][]; tweets?: components["schemas"]["Tweet"][]; users?: components["schemas"]["User"][]; }; FieldUnauthorizedProblem: components["schemas"]["Problem"] & { field: string; resource_type:
| "user"
| "tweet"
| "media"
| "list"
| "space"
; section: "data" | "includes"; }; FilteredStreamingTweetResponse: { data?: components["schemas"]["Tweet"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; matching_rules?: { id: components["schemas"]["RuleId"]; tag?: components["schemas"]["RuleTag"]; }[]; }; FullTextEntities: { annotations?: (components["schemas"]["EntityIndicesInclusiveInclusive"] & { normalized_text?: string; probability?: number; type?: string; })[]; cashtags?: components["schemas"]["CashtagEntity"][]; hashtags?: components["schemas"]["HashtagEntity"][]; mentions?: components["schemas"]["MentionEntity"][]; urls?: components["schemas"]["UrlEntity"][]; }; GenericProblem: components["schemas"]["Problem"]; Geo: { bbox: number[]; geometry?: components["schemas"]["Point"]; properties: { [key: string]: unknown; }; type: "Feature"; }; Get2ComplianceJobsIdResponse: { data?: components["schemas"]["ComplianceJob"]; errors?: components["schemas"]["Problem"][]; }; Get2ComplianceJobsResponse: { data?: components["schemas"]["ComplianceJob"][]; errors?: components["schemas"]["Problem"][]; meta?: { result_count?: components["schemas"]["ResultCount"]; }; }; Get2ListsIdFollowersResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2ListsIdMembersResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2ListsIdResponse: { data?: components["schemas"]["List"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2ListsIdTweetsResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2SpacesByCreatorIdsResponse: { data?: components["schemas"]["Space"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { result_count?: components["schemas"]["ResultCount"]; }; }; Get2SpacesIdBuyersResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2SpacesIdResponse: { data?: components["schemas"]["Space"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2SpacesIdTweetsResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2SpacesResponse: { data?: components["schemas"]["Space"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2SpacesSearchResponse: { data?: components["schemas"]["Space"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { result_count?: components["schemas"]["ResultCount"]; }; }; Get2TweetsCountsAllResponse: { data?: components["schemas"]["SearchCount"][]; errors?: components["schemas"]["Problem"][]; meta?: { newest_id?: components["schemas"]["NewestId"]; next_token?: components["schemas"]["NextToken"]; oldest_id?: components["schemas"]["OldestId"]; total_tweet_count?: components["schemas"]["Aggregate"]; }; }; Get2TweetsCountsRecentResponse: { data?: components["schemas"]["SearchCount"][]; errors?: components["schemas"]["Problem"][]; meta?: { newest_id?: components["schemas"]["NewestId"]; next_token?: components["schemas"]["NextToken"]; oldest_id?: components["schemas"]["OldestId"]; total_tweet_count?: components["schemas"]["Aggregate"]; }; }; Get2TweetsIdLikingUsersResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2TweetsIdQuoteTweetsResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2TweetsIdResponse: { data?: components["schemas"]["Tweet"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2TweetsIdRetweetedByResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2TweetsResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2TweetsSampleStreamResponse: { data?: components["schemas"]["Tweet"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2TweetsSearchAllResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { newest_id?: components["schemas"]["NewestId"]; next_token?: components["schemas"]["NextToken"]; oldest_id?: components["schemas"]["OldestId"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2TweetsSearchRecentResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { newest_id?: components["schemas"]["NewestId"]; next_token?: components["schemas"]["NextToken"]; oldest_id?: components["schemas"]["OldestId"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2TweetsSearchStreamResponse: { data?: components["schemas"]["Tweet"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2UsersByResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2UsersByUsernameUsernameResponse: { data?: components["schemas"]["User"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2UsersIdBlockingResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdBookmarksResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdFollowedListsResponse: { data?: components["schemas"]["List"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdFollowersResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdFollowingResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdLikedTweetsResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdListMembershipsResponse: { data?: components["schemas"]["List"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdMentionsResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { newest_id?: components["schemas"]["NewestId"]; next_token?: components["schemas"]["NextToken"]; oldest_id?: components["schemas"]["OldestId"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdMutingResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdOwnedListsResponse: { data?: components["schemas"]["List"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { next_token?: components["schemas"]["NextToken"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdPinnedListsResponse: { data?: components["schemas"]["List"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdResponse: { data?: components["schemas"]["User"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2UsersIdTimelinesReverseChronologicalResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { newest_id?: components["schemas"]["NewestId"]; next_token?: components["schemas"]["NextToken"]; oldest_id?: components["schemas"]["OldestId"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersIdTweetsResponse: { data?: components["schemas"]["Tweet"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; meta?: { newest_id?: components["schemas"]["NewestId"]; next_token?: components["schemas"]["NextToken"]; oldest_id?: components["schemas"]["OldestId"]; previous_token?: components["schemas"]["PreviousToken"]; result_count?: components["schemas"]["ResultCount"]; }; }; Get2UsersMeResponse: { data?: components["schemas"]["User"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Get2UsersResponse: { data?: components["schemas"]["User"][]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; HashtagEntity: components["schemas"]["EntityIndicesInclusiveExclusive"] & components["schemas"]["HashtagFields"]; HashtagFields: { tag: string; }; HttpStatusCode: number; InvalidRequestProblem: components["schemas"]["Problem"] & { errors?: { message?: string; parameters?: { [key: string]: string[]; }; }[]; }; InvalidRuleProblem: components["schemas"]["Problem"]; JobId: string; List: { created_at?: string; description?: string; follower_count?: number; id: components["schemas"]["ListId"]; member_count?: number; name: string; owner_id?: components["schemas"]["UserId"]; private?: boolean; }; ListAddUserRequest: { user_id: components["schemas"]["UserId"]; }; ListCreateRequest: { description?: string; name: string; private?: boolean; }; ListCreateResponse: { data?: { id: components["schemas"]["ListId"]; name: string; }; errors?: components["schemas"]["Problem"][]; }; ListDeleteResponse: { data?: { deleted?: boolean; }; errors?: components["schemas"]["Problem"][]; }; ListFollowedRequest: { list_id: components["schemas"]["ListId"]; }; ListFollowedResponse: { data?: { following?: boolean; }; errors?: components["schemas"]["Problem"][]; }; ListId: string; ListMutateResponse: { data?: { is_member?: boolean; }; errors?: components["schemas"]["Problem"][]; }; ListPinnedRequest: { list_id: components["schemas"]["ListId"]; }; ListPinnedResponse: { data?: { pinned?: boolean; }; errors?: components["schemas"]["Problem"][]; }; ListUnpinResponse: { data?: { pinned?: boolean; }; errors?: components["schemas"]["Problem"][]; }; ListUpdateRequest: { description?: string; name?: string; private?: boolean; }; ListUpdateResponse: { data?: { updated?: boolean; }; errors?: components["schemas"]["Problem"][]; }; Media: { height?: components["schemas"]["MediaHeight"]; media_key?: components["schemas"]["MediaKey"]; type: string; width?: components["schemas"]["MediaWidth"]; }; MediaHeight: number; MediaId: string; MediaKey: string; MediaWidth: number; MentionEntity: components["schemas"]["EntityIndicesInclusiveExclusive"] & components["schemas"]["MentionFields"]; MentionFields: { id?: components["schemas"]["UserId"]; username: components["schemas"]["UserName"]; }; MuteUserMutationResponse: { data?: { muting?: boolean; }; errors?: components["schemas"]["Problem"][]; }; MuteUserRequest: { target_user_id: components["schemas"]["UserId"]; }; NewestId: string; NextToken: string; NonCompliantRulesProblem: components["schemas"]["Problem"]; OldestId: string; OperationalDisconnectProblem: components["schemas"]["Problem"] & { disconnect_type?:
| "OperationalDisconnect"
| "UpstreamOperationalDisconnect"
| "ForceDisconnect"
| "UpstreamUncleanDisconnect"
| "SlowReader"
| "InternalError"
| "ClientApplicationStateDegraded"
| "InvalidRules"
; }; PaginationToken32: string; PaginationToken36: string; PaginationTokenLong: string; Photo: components["schemas"]["Media"] & { alt_text?: string; url?: string; }; Place: { contained_within?: components["schemas"]["PlaceId"][]; country?: string; country_code?: components["schemas"]["CountryCode"]; full_name: string; geo?: components["schemas"]["Geo"]; id: components["schemas"]["PlaceId"]; name?: string; place_type?: components["schemas"]["PlaceType"]; }; PlaceId: string; PlaceType:
| "poi"
| "neighborhood"
| "city"
| "admin"
| "country"
| "unknown"
; Point: { coordinates: components["schemas"]["Position"]; type: "Point"; }; Poll: { duration_minutes?: number; end_datetime?: string; id: components["schemas"]["PollId"]; options: components["schemas"]["PollOption"][]; voting_status?: "open" | "closed"; }; PollId: string; PollOption: { label: components["schemas"]["PollOptionLabel"]; position: number; votes: number; }; PollOptionLabel: string; Position: number[]; PreviousToken: string; Problem: { detail?: string; status?: number; title: string; type: string; }; ProblemErrors: { errors: components["schemas"]["Problems"]; }; ProblemOrError: components["schemas"]["Error"] | components["schemas"]["Problem"]; Problems: components["schemas"]["Problem"][]; ReplySettings:
| "everyone"
| "mentionedUsers"
| "following"
| "other"
; ReportUsersRequest: { description: string; user_ids: components["schemas"]["UserId"][]; }; ReportUsersResponse: { data?: { id?: number; }; }; ResourceNotFoundProblem: components["schemas"]["Problem"] & { parameter: string; resource_id: string; resource_type:
| "user"
| "tweet"
| "media"
| "list"
| "space"
; value: string; }; ResourceUnauthorizedProblem: components["schemas"]["Problem"] & { parameter: string; resource_id: string; resource_type:
| "user"
| "tweet"
| "media"
| "list"
| "space"
; section: "data" | "includes"; value: string; }; ResourceUnavailableProblem: components["schemas"]["Problem"] & { parameter: string; resource_id: string; resource_type:
| "user"
| "tweet"
| "media"
| "list"
| "space"
; }; ResultCount: number; Rule: { id?: components["schemas"]["RuleId"]; tag?: components["schemas"]["RuleTag"]; value: components["schemas"]["RuleValue"]; }; RuleId: string; RuleNoId: { tag?: components["schemas"]["RuleTag"]; value: components["schemas"]["RuleValue"]; }; RuleTag: string; RuleValue: string; RulesCapProblem: components["schemas"]["Problem"]; RulesLookupResponse: { data: components["schemas"]["Rule"][]; meta: components["schemas"]["RulesResponseMetadata"]; }; RulesRequestSummary: { created: number; invalid: number; not_created: number; valid: number; } | { deleted: number; not_deleted: number; }; RulesResponseMetadata: { next_token?: components["schemas"]["NextToken"]; result_count?: number; sent: string; summary?: components["schemas"]["RulesRequestSummary"]; }; SearchCount: { end: components["schemas"]["End"]; start: components["schemas"]["Start"]; tweet_count: components["schemas"]["TweetCount"]; }; Space: { created_at?: string; creator_id?: components["schemas"]["UserId"]; ended_at?: string; host_ids?: components["schemas"]["UserId"][]; id: components["schemas"]["SpaceId"]; invited_user_ids?: components["schemas"]["UserId"][]; is_ticketed?: boolean; lang?: string; participant_count?: number; scheduled_start?: string; speaker_ids?: components["schemas"]["UserId"][]; started_at?: string; state: "live" | "scheduled" | "ended"; subscriber_count?: number; title?: string; topics?: { description?: string; id: string; name: string; }[]; updated_at?: string; }; SpaceId: string; Start: string; StreamingTweetResponse: { data?: components["schemas"]["Tweet"]; errors?: components["schemas"]["Problem"][]; includes?: components["schemas"]["Expansions"]; }; Topic: { description?: string; id: components["schemas"]["TopicId"]; name: string; }; TopicId: string; Tweet: { attachments?: { media_keys?: components["schemas"]["MediaKey"][]; poll_ids?: components["schemas"]["PollId"][]; }; author_id?: components["schemas"]["UserId"]; context_annotations?: components["schemas"]["ContextAnnotation"][]; conversation_id?: components["schemas"]["TweetId"]; created_at?: string; entities?: components["schemas"]["FullTextEntities"]; geo?: { coordinates?: components["schemas"]["Point"]; place_id?: components["schemas"]["PlaceId"]; }; id: components["schemas"]["TweetId"]; in_reply_to_user_id?: components["schemas"]["UserId"]; lang?: string; non_public_metrics?: { impression_count?: number; }; organic_metrics?: { impression_count: number; like_count: number; reply_count: number; retweet_count: number; }; possibly_sensitive?: boolean; promoted_metrics?: { impression_count?: number; like_count?: number; reply_count?: number; retweet_count?: number; }; public_metrics?: { like_count: number; quote_count?: number; reply_count: number; retweet_count: number; }; referenced_tweets?: { id: components["schemas"]["TweetId"]; type: "retweeted" | "quoted" | "replied_to"; }[]; reply_settings?: components["schemas"]["ReplySettings"]; source?: string; text: components["schemas"]["TweetText"]; withheld?: components["schemas"]["TweetWithheld"]; }; TweetCount: number; TweetCreateRequest: { direct_message_deep_link?: string; for_super_followers_only?: boolean; geo?: { place_id?: string; }; media?: { media_ids: components["schemas"]["MediaId"][]; tagged_user_ids?: components["schemas"]["UserId"][]; }; poll?: { duration_minutes: number; options: string[]; reply_settings?: "following" | "mentionedUsers"; }; quote_tweet_id?: components["schemas"]["TweetId"]; reply?: { exclude_reply_user_ids?: components["schemas"]["UserId"][]; in_reply_to_tweet_id: components["schemas"]["TweetId"]; }; reply_settings?: "following" | "mentionedUsers"; text?: components["schemas"]["TweetText"]; }; TweetCreateResponse: { data?: { id: components["schemas"]["TweetId"]; text: components["schemas"]["TweetText"]; }; errors?: components["schemas"]["Problem"][]; }; TweetDeleteResponse: { data?: { deleted: boolean; }; errors?: components["schemas"]["Problem"][]; }; TweetHideRequest: { hidden: boolean; }; TweetHideResponse: { data?: { hidden?: boolean; }; }; TweetId: string; TweetText: string; TweetWithheld: { copyright: boolean; country_codes: components["schemas"]["CountryCode"][]; scope?: "tweet" | "user"; }; UnsupportedAuthenticationProblem: components["schemas"]["Problem"]; UploadExpiration: string; UploadUrl: string; Url: string; UrlEntity: components["schemas"]["EntityIndicesInclusiveExclusive"] & components["schemas"]["UrlFields"]; UrlFields: { description?: string; display_url?: string; expanded_url?: components["schemas"]["Url"]; images?: components["schemas"]["UrlImage"][]; media_key?: components["schemas"]["MediaKey"]; status?: components["schemas"]["HttpStatusCode"]; title?: string; unwound_url?: string; url: components["schemas"]["Url"]; }; UrlImage: { height?: components["schemas"]["MediaHeight"]; url?: components["schemas"]["Url"]; width?: components["schemas"]["MediaWidth"]; }; UsageCapExceededProblem: components["schemas"]["Problem"] & { period?: "Daily" | "Monthly"; scope?: "Account" | "Product"; }; User: { created_at?: string; description?: string; entities?: { description?: components["schemas"]["FullTextEntities"]; url?: { urls?: components["schemas"]["UrlEntity"][]; }; }; id: components["schemas"]["UserId"]; location?: string; name: string; pinned_tweet_id?: components["schemas"]["TweetId"]; profile_image_url?: string; protected?: boolean; public_metrics?: { followers_count: number; following_count: number; listed_count: number; tweet_count: number; }; url?: string; username: components["schemas"]["UserName"]; verified?: boolean; withheld?: components["schemas"]["UserWithheld"]; }; UserId: string; UserIdMatchesAuthenticatedUser: string; UserName: string; UserWithheld: { country_codes: components["schemas"]["CountryCode"][]; scope?: "user"; }; UsersFollowingCreateRequest: { target_user_id: components["schemas"]["UserId"]; }; UsersFollowingCreateResponse: { data?: { following?: boolean; pending_follow?: boolean; }; errors?: components["schemas"]["Problem"][]; }; UsersFollowingDeleteResponse: { data?: { following?: boolean; }; errors?: components["schemas"]["Problem"][]; }; UsersLikesCreateRequest: { tweet_id: components["schemas"]["TweetId"]; }; UsersLikesCreateResponse: { data?: { liked?: boolean; }; errors?: components["schemas"]["Problem"][]; }; UsersLikesDeleteResponse: { data?: { liked?: boolean; }; errors?: components["schemas"]["Problem"][]; }; UsersRetweetsCreateRequest: { tweet_id: components["schemas"]["TweetId"]; }; UsersRetweetsCreateResponse: { data?: { retweeted?: boolean; }; errors?: components["schemas"]["Problem"][]; }; UsersRetweetsDeleteResponse: { data?: { retweeted?: boolean; }; errors?: components["schemas"]["Problem"][]; }; Variant: { bit_rate?: number; content_type?: string; url?: string; }; Variants: components["schemas"]["Variant"][]; Video: components["schemas"]["Media"] & { duration_ms?: number; non_public_metrics?: { playback_0_count?: number; playback_100_count?: number; playback_25_count?: number; playback_50_count?: number; playback_75_count?: number; }; organic_metrics?: { playback_0_count?: number; playback_100_count?: number; playback_25_count?: number; playback_50_count?: number; playback_75_count?: number; view_count?: number; }; preview_image_url?: string; promoted_metrics?: { playback_0_count?: number; playback_100_count?: number; playback_25_count?: number; playback_50_count?: number; playback_75_count?: number; view_count?: number; }; public_metrics?: { view_count?: number; }; variants?: components["schemas"]["Variants"]; }; }
parameters: { ComplianceJobFieldsParameter: (
| "created_at"
| "download_expires_at"
| "download_url"
| "id"
| "name"
| "resumable"
| "status"
| "type"
| "upload_expires_at"
| "upload_url"
)[]; ListExpansionsParameter: "owner_id"[]; ListFieldsParameter: (
| "created_at"
| "description"
| "follower_count"
| "id"
| "member_count"
| "name"
| "owner_id"
| "private"
)[]; MediaFieldsParameter: (
| "alt_text"
| "duration_ms"
| "height"
| "media_key"
| "non_public_metrics"
| "organic_metrics"
| "preview_image_url"
| "promoted_metrics"
| "public_metrics"
| "type"
| "url"
| "variants"
| "width"
)[]; PlaceFieldsParameter: (
| "contained_within"
| "country"
| "country_code"
| "full_name"
| "geo"
| "id"
| "name"
| "place_type"
)[]; PollFieldsParameter: (
| "duration_minutes"
| "end_datetime"
| "id"
| "options"
| "voting_status"
)[]; SearchCountFieldsParameter: ("end" | "start" | "tweet_count")[]; SpaceExpansionsParameter: (
| "creator_id"
| "host_ids"
| "invited_user_ids"
| "speaker_ids"
| "topic_ids"
)[]; SpaceFieldsParameter: (
| "created_at"
| "creator_id"
| "ended_at"
| "host_ids"
| "id"
| "invited_user_ids"
| "is_ticketed"
| "lang"
| "participant_count"
| "scheduled_start"
| "speaker_ids"
| "started_at"
| "state"
| "subscriber_count"
| "title"
| "topic_ids"
| "updated_at"
)[]; TopicFieldsParameter: ("description" | "id" | "name")[]; TweetExpansionsParameter: (
| "attachments.media_keys"
| "attachments.poll_ids"
| "author_id"
| "entities.mentions.username"
| "geo.place_id"
| "in_reply_to_user_id"
| "referenced_tweets.id"
| "referenced_tweets.id.author_id"
)[]; TweetFieldsParameter: (
| "attachments"
| "author_id"
| "context_annotations"
| "conversation_id"
| "created_at"
| "entities"
| "geo"
| "id"
| "in_reply_to_user_id"
| "lang"
| "non_public_metrics"
| "organic_metrics"
| "possibly_sensitive"
| "promoted_metrics"
| "public_metrics"
| "referenced_tweets"
| "reply_settings"
| "source"
| "text"
| "withheld"
)[]; UserExpansionsParameter: "pinned_tweet_id"[]; UserFieldsParameter: (
| "created_at"
| "description"
| "entities"
| "id"
| "location"
| "name"
| "pinned_tweet_id"
| "profile_image_url"
| "protected"
| "public_metrics"
| "url"
| "username"
| "verified"
| "withheld"
)[]; }