@@ -97,6 +97,10 @@ export interface paths {
97
97
/** Streams 100% of public Tweets. */
98
98
get : operations [ "getTweetsFirehoseStream" ] ;
99
99
} ;
100
+ "/2/tweets/label/stream" : {
101
+ /** Streams 100% of labeling events applied to Tweets */
102
+ get : operations [ "getTweetsLabelStream" ] ;
103
+ } ;
100
104
"/2/tweets/sample/stream" : {
101
105
/** Streams a deterministic 1% of public Tweets. */
102
106
get : operations [ "sampleStream" ] ;
@@ -1179,28 +1183,11 @@ export interface components {
1179
1183
title : string ;
1180
1184
type : string ;
1181
1185
} ;
1182
- ProblemErrors : {
1183
- errors : components [ "schemas" ] [ "Problems" ] ;
1184
- } ;
1185
- /** @description Represents the response in case of throwing an exception. Mainly for the openapi-generator */
1186
- ProblemOrError :
1187
- | components [ "schemas" ] [ "Error" ]
1188
- | components [ "schemas" ] [ "Problem" ] ;
1189
- Problems : components [ "schemas" ] [ "Problem" ] [ ] ;
1190
1186
/**
1191
1187
* @description Shows who can reply a Tweet. Fields returned are everyone, mentioned_users, and following.
1192
1188
* @enum {string}
1193
1189
*/
1194
1190
ReplySettings : "everyone" | "mentionedUsers" | "following" | "other" ;
1195
- ReportUsersRequest : {
1196
- description : string ;
1197
- user_ids : components [ "schemas" ] [ "UserId" ] [ ] ;
1198
- } ;
1199
- ReportUsersResponse : {
1200
- data ?: {
1201
- id ?: number ;
1202
- } ;
1203
- } ;
1204
1191
/** @description A problem that indicates that a given Tweet, User, etc. does not exist. */
1205
1192
ResourceNotFoundProblem : components [ "schemas" ] [ "Problem" ] & {
1206
1193
parameter : string ;
@@ -1588,6 +1575,8 @@ export interface components {
1588
1575
/** @description The count for the bucket. */
1589
1576
TweetCount : number ;
1590
1577
TweetCreateRequest : {
1578
+ /** @description Card Uri Parameter. This is mutually exclusive from Quote Tweet Id, Poll, Media, and Direct Message Deep Link. */
1579
+ card_uri ?: string ;
1591
1580
/** @description Link to take the conversation from the public timeline to a private Direct Message. */
1592
1581
direct_message_deep_link ?: string ;
1593
1582
/**
@@ -1599,14 +1588,19 @@ export interface components {
1599
1588
geo ?: {
1600
1589
place_id ?: string ;
1601
1590
} ;
1602
- /** @description Media information being attached to created Tweet. This is mutually exclusive from Quote Tweet Id and Poll . */
1591
+ /** @description Media information being attached to created Tweet. This is mutually exclusive from Quote Tweet Id, Poll, and Card URI . */
1603
1592
media ?: {
1604
1593
/** @description A list of Media Ids to be attached to a created Tweet. */
1605
1594
media_ids : components [ "schemas" ] [ "MediaId" ] [ ] ;
1606
1595
/** @description A list of User Ids to be tagged in the media for created Tweet. */
1607
1596
tagged_user_ids ?: components [ "schemas" ] [ "UserId" ] [ ] ;
1608
1597
} ;
1609
- /** @description Poll options for a Tweet with a poll. This is mutually exclusive from Media and Quote Tweet Id. */
1598
+ /**
1599
+ * @description Nullcasted (promoted-only) Tweets do not appear in the public timeline and are not served to followers.
1600
+ * @default false
1601
+ */
1602
+ nullcast ?: boolean ;
1603
+ /** @description Poll options for a Tweet with a poll. This is mutually exclusive from Media, Quote Tweet Id, and Card URI. */
1610
1604
poll ?: {
1611
1605
/**
1612
1606
* Format: int32
@@ -1682,6 +1676,49 @@ export interface components {
1682
1676
* @example 1346889436626259968
1683
1677
*/
1684
1678
TweetId : string ;
1679
+ /** @description Tweet label data. */
1680
+ TweetLabelData :
1681
+ | components [ "schemas" ] [ "TweetNoticeSchema" ]
1682
+ | components [ "schemas" ] [ "TweetUnviewableSchema" ] ;
1683
+ /** @description Tweet label stream events. */
1684
+ TweetLabelStreamResponse :
1685
+ | {
1686
+ data : components [ "schemas" ] [ "TweetLabelData" ] ;
1687
+ }
1688
+ | {
1689
+ errors : components [ "schemas" ] [ "Problem" ] [ ] ;
1690
+ } ;
1691
+ TweetNotice : {
1692
+ /**
1693
+ * @description If the label is being applied or removed. Possible values are ‘apply’ or ‘remove’.
1694
+ * @example apply
1695
+ */
1696
+ application : string ;
1697
+ /** @description Information shown on the Tweet label */
1698
+ details ?: string ;
1699
+ /**
1700
+ * Format: date-time
1701
+ * @description Event time.
1702
+ * @example 2021-07-06T18:40:40.000Z
1703
+ */
1704
+ event_at : string ;
1705
+ /**
1706
+ * @description The type of label on the Tweet
1707
+ * @example misleading
1708
+ */
1709
+ event_type : string ;
1710
+ /** @description Link to more information about this kind of label */
1711
+ extended_details_url ?: string ;
1712
+ /** @description Title/header of the Tweet label */
1713
+ label_title ?: string ;
1714
+ tweet : {
1715
+ author_id : components [ "schemas" ] [ "UserId" ] ;
1716
+ id : components [ "schemas" ] [ "TweetId" ] ;
1717
+ } ;
1718
+ } ;
1719
+ TweetNoticeSchema : {
1720
+ public_tweet_notice : components [ "schemas" ] [ "TweetNotice" ] ;
1721
+ } ;
1685
1722
TweetTakedownComplianceSchema : {
1686
1723
/**
1687
1724
* Format: date-time
@@ -1704,6 +1741,26 @@ export interface components {
1704
1741
TweetUndropComplianceSchema : {
1705
1742
undrop : components [ "schemas" ] [ "TweetComplianceSchema" ] ;
1706
1743
} ;
1744
+ TweetUnviewable : {
1745
+ /**
1746
+ * @description If the label is being applied or removed. Possible values are ‘apply’ or ‘remove’.
1747
+ * @example apply
1748
+ */
1749
+ application : string ;
1750
+ /**
1751
+ * Format: date-time
1752
+ * @description Event time.
1753
+ * @example 2021-07-06T18:40:40.000Z
1754
+ */
1755
+ event_at : string ;
1756
+ tweet : {
1757
+ author_id : components [ "schemas" ] [ "UserId" ] ;
1758
+ id : components [ "schemas" ] [ "TweetId" ] ;
1759
+ } ;
1760
+ } ;
1761
+ TweetUnviewableSchema : {
1762
+ public_tweet_unviewable : components [ "schemas" ] [ "TweetUnviewable" ] ;
1763
+ } ;
1707
1764
/** @description Indicates withholding details for [withheld content](https://help.twitter.com/en/rules-and-policies/tweet-withheld-by-country). */
1708
1765
TweetWithheld : {
1709
1766
/** @description Indicates if the content is being withheld for on the basis of copyright infringement. */
@@ -3070,6 +3127,34 @@ export interface operations {
3070
3127
} ;
3071
3128
} ;
3072
3129
} ;
3130
+ /** Streams 100% of labeling events applied to Tweets */
3131
+ getTweetsLabelStream : {
3132
+ parameters : {
3133
+ query : {
3134
+ /** The number of minutes of backfill requested. */
3135
+ backfill_minutes ?: number ;
3136
+ /** YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweet labels will be provided. */
3137
+ start_time ?: string ;
3138
+ /** YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp from which the Tweet labels will be provided. */
3139
+ end_time ?: string ;
3140
+ } ;
3141
+ } ;
3142
+ responses : {
3143
+ /** The request has succeeded. */
3144
+ 200 : {
3145
+ content : {
3146
+ "application/json" : components [ "schemas" ] [ "TweetLabelStreamResponse" ] ;
3147
+ } ;
3148
+ } ;
3149
+ /** The request has failed. */
3150
+ default : {
3151
+ content : {
3152
+ "application/json" : components [ "schemas" ] [ "Error" ] ;
3153
+ "application/problem+json" : components [ "schemas" ] [ "Problem" ] ;
3154
+ } ;
3155
+ } ;
3156
+ } ;
3157
+ } ;
3073
3158
/** Streams a deterministic 1% of public Tweets. */
3074
3159
sampleStream : {
3075
3160
parameters : {
@@ -4728,6 +4813,7 @@ export type getTweetsComplianceStream = operations['getTweetsComplianceStream']
4728
4813
export type tweetCountsFullArchiveSearch = operations [ 'tweetCountsFullArchiveSearch' ]
4729
4814
export type tweetCountsRecentSearch = operations [ 'tweetCountsRecentSearch' ]
4730
4815
export type getTweetsFirehoseStream = operations [ 'getTweetsFirehoseStream' ]
4816
+ export type getTweetsLabelStream = operations [ 'getTweetsLabelStream' ]
4731
4817
export type sampleStream = operations [ 'sampleStream' ]
4732
4818
export type getTweetsSample10Stream = operations [ 'getTweetsSample10Stream' ]
4733
4819
export type tweetsFullarchiveSearch = operations [ 'tweetsFullarchiveSearch' ]
0 commit comments