twitter-openapi-typescript-generated 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +27 -4
- package/LICENSE +31 -0
- package/{LICENSE.txt → LICENSE.AGPL} +661 -661
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +14 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +83 -0
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/models/AdditionalMediaInfo.d.ts +32 -0
- package/dist/models/AdditionalMediaInfo.d.ts.map +1 -0
- package/dist/models/AdditionalMediaInfo.js +51 -0
- package/dist/models/AdditionalMediaInfo.js.map +1 -0
- package/dist/models/Callback.d.ts +32 -0
- package/dist/models/Callback.d.ts.map +1 -0
- package/dist/models/Callback.js +51 -0
- package/dist/models/Callback.js.map +1 -0
- package/dist/models/ClientEventInfo.d.ts +46 -0
- package/dist/models/ClientEventInfo.d.ts.map +1 -0
- package/dist/models/ClientEventInfo.js +55 -0
- package/dist/models/ClientEventInfo.js.map +1 -0
- package/dist/models/CoverCta.d.ts +66 -0
- package/dist/models/CoverCta.d.ts.map +1 -0
- package/dist/models/CoverCta.js +72 -0
- package/dist/models/CoverCta.js.map +1 -0
- package/dist/models/CtaClientEventInfo.d.ts +39 -0
- package/dist/models/CtaClientEventInfo.d.ts.map +1 -0
- package/dist/models/CtaClientEventInfo.js +57 -0
- package/dist/models/CtaClientEventInfo.js.map +1 -0
- package/dist/models/ExtMediaAvailability.d.ts +39 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -0
- package/dist/models/ExtMediaAvailability.js +57 -0
- package/dist/models/ExtMediaAvailability.js.map +1 -0
- package/dist/models/ExtendedEntities.d.ts +3 -3
- package/dist/models/ExtendedEntities.d.ts.map +1 -1
- package/dist/models/ExtendedEntities.js +3 -3
- package/dist/models/ExtendedEntities.js.map +1 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts +23 -0
- package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -0
- package/dist/models/GetTweetResultByRestId200Response.js +57 -0
- package/dist/models/GetTweetResultByRestId200Response.js.map +1 -0
- package/dist/models/InstructionType.d.ts +1 -0
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +2 -1
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +3 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +5 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemResult.d.ts +1 -1
- package/dist/models/ItemResult.d.ts.map +1 -1
- package/dist/models/ItemResult.js +1 -2
- package/dist/models/ItemResult.js.map +1 -1
- package/dist/models/Media.d.ts +15 -15
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/Media.js +14 -7
- package/dist/models/Media.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +131 -0
- package/dist/models/MediaExtended.d.ts.map +1 -0
- package/dist/models/MediaExtended.js +104 -0
- package/dist/models/MediaExtended.js.map +1 -0
- package/dist/models/MediaOriginalInfo.d.ts +5 -6
- package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
- package/dist/models/MediaOriginalInfo.js +7 -4
- package/dist/models/MediaOriginalInfo.js.map +1 -1
- package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -0
- package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +1 -0
- package/dist/models/MediaOriginalInfoFocusRect.js +60 -0
- package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -0
- package/dist/models/MediaSize.d.ts +52 -0
- package/dist/models/MediaSize.d.ts.map +1 -0
- package/dist/models/MediaSize.js +64 -0
- package/dist/models/MediaSize.js.map +1 -0
- package/dist/models/MediaSizes.d.ts +51 -0
- package/dist/models/MediaSizes.d.ts.map +1 -0
- package/dist/models/MediaSizes.js +61 -0
- package/dist/models/MediaSizes.js.map +1 -0
- package/dist/models/MediaStats.d.ts +32 -0
- package/dist/models/MediaStats.d.ts.map +1 -0
- package/dist/models/MediaStats.js +51 -0
- package/dist/models/MediaStats.js.map +1 -0
- package/dist/models/MediaVideoInfo.d.ts +45 -0
- package/dist/models/MediaVideoInfo.d.ts.map +1 -0
- package/dist/models/MediaVideoInfo.js +58 -0
- package/dist/models/MediaVideoInfo.js.map +1 -0
- package/dist/models/MediaVideoInfoVariant.d.ts +44 -0
- package/dist/models/MediaVideoInfoVariant.d.ts.map +1 -0
- package/dist/models/MediaVideoInfoVariant.js +57 -0
- package/dist/models/MediaVideoInfoVariant.js.map +1 -0
- package/dist/models/ModuleEntry.d.ts +3 -4
- package/dist/models/ModuleEntry.d.ts.map +1 -1
- package/dist/models/ModuleEntry.js +3 -2
- package/dist/models/ModuleEntry.js.map +1 -1
- package/dist/models/SelfThread.d.ts +32 -0
- package/dist/models/SelfThread.d.ts.map +1 -0
- package/dist/models/SelfThread.js +51 -0
- package/dist/models/SelfThread.js.map +1 -0
- package/dist/models/Session.d.ts +8 -1
- package/dist/models/Session.d.ts.map +1 -1
- package/dist/models/Session.js +7 -1
- package/dist/models/Session.js.map +1 -1
- package/dist/models/Text.d.ts +39 -0
- package/dist/models/Text.d.ts.map +1 -0
- package/dist/models/Text.js +55 -0
- package/dist/models/Text.js.map +1 -0
- package/dist/models/TextEntity.d.ts +45 -0
- package/dist/models/TextEntity.d.ts.map +1 -0
- package/dist/models/TextEntity.js +58 -0
- package/dist/models/TextEntity.js.map +1 -0
- package/dist/models/TextEntityRef.d.ts +58 -0
- package/dist/models/TextEntityRef.d.ts.map +1 -0
- package/dist/models/TextEntityRef.js +69 -0
- package/dist/models/TextEntityRef.js.map +1 -0
- package/dist/models/TimelineCoverBehavior.d.ts +39 -0
- package/dist/models/TimelineCoverBehavior.d.ts.map +1 -0
- package/dist/models/TimelineCoverBehavior.js +57 -0
- package/dist/models/TimelineCoverBehavior.js.map +1 -0
- package/dist/models/TimelineHalfCover.d.ts +85 -0
- package/dist/models/TimelineHalfCover.d.ts.map +1 -0
- package/dist/models/TimelineHalfCover.js +84 -0
- package/dist/models/TimelineHalfCover.js.map +1 -0
- package/dist/models/TimelineShowCover.d.ts +47 -0
- package/dist/models/TimelineShowCover.d.ts.map +1 -0
- package/dist/models/TimelineShowCover.js +60 -0
- package/dist/models/TimelineShowCover.js.map +1 -0
- package/dist/models/TimelineTimelineItem.d.ts +3 -4
- package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
- package/dist/models/TimelineTimelineItem.js +3 -2
- package/dist/models/TimelineTimelineItem.js.map +1 -1
- package/dist/models/TimelineTimelineModule.d.ts +9 -1
- package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
- package/dist/models/TimelineTimelineModule.js +8 -1
- package/dist/models/TimelineTimelineModule.js.map +1 -1
- package/dist/models/TimelineUser.d.ts +10 -1
- package/dist/models/TimelineUser.d.ts.map +1 -1
- package/dist/models/TimelineUser.js +9 -1
- package/dist/models/TimelineUser.js.map +1 -1
- package/dist/models/Tweet.d.ts +11 -5
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +7 -7
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCardLegacy.d.ts +3 -3
- package/dist/models/TweetCardLegacy.d.ts.map +1 -1
- package/dist/models/TweetCardLegacy.js +3 -3
- package/dist/models/TweetCardLegacy.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -0
- package/dist/models/TweetCardLegacyBindingValue.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValue.js +55 -0
- package/dist/models/TweetCardLegacyBindingValue.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts +50 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +1 -0
- package/dist/models/{TweetCardLegacyBindingValuesInnerValue.js → TweetCardLegacyBindingValueData.js} +12 -12
- package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -0
- package/dist/models/TweetEditControl.d.ts +13 -0
- package/dist/models/TweetEditControl.d.ts.map +1 -1
- package/dist/models/TweetEditControl.js +5 -0
- package/dist/models/TweetEditControl.js.map +1 -1
- package/dist/models/TweetEditControlInitial.d.ts +50 -0
- package/dist/models/TweetEditControlInitial.d.ts.map +1 -0
- package/dist/models/TweetEditControlInitial.js +60 -0
- package/dist/models/TweetEditControlInitial.js.map +1 -0
- package/dist/models/TweetLegacy.d.ts +3 -3
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +3 -3
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetResultByRestIdData.d.ts +33 -0
- package/dist/models/TweetResultByRestIdData.d.ts.map +1 -0
- package/dist/models/TweetResultByRestIdData.js +52 -0
- package/dist/models/TweetResultByRestIdData.js.map +1 -0
- package/dist/models/TweetResultByRestIdResponse.d.ts +33 -0
- package/dist/models/TweetResultByRestIdResponse.d.ts.map +1 -0
- package/dist/models/TweetResultByRestIdResponse.js +52 -0
- package/dist/models/TweetResultByRestIdResponse.js.map +1 -0
- package/dist/models/TweetView.d.ts +45 -0
- package/dist/models/TweetView.d.ts.map +1 -0
- package/dist/models/{TweetViews.js → TweetView.js} +20 -13
- package/dist/models/TweetView.js.map +1 -0
- package/dist/models/TypeName.d.ts +1 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +1 -0
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/index.d.ts +27 -4
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +27 -4
- package/dist/models/index.js.map +1 -1
- package/package.json +2 -2
- package/src/apis/DefaultApi.ts +87 -0
- package/src/models/AdditionalMediaInfo.ts +66 -0
- package/src/models/Callback.ts +66 -0
- package/src/models/ClientEventInfo.ts +81 -0
- package/src/models/CoverCta.ts +130 -0
- package/src/models/CtaClientEventInfo.ts +76 -0
- package/src/models/ExtMediaAvailability.ts +75 -0
- package/src/models/ExtendedEntities.ts +9 -9
- package/src/models/GetTweetResultByRestId200Response.ts +65 -0
- package/src/models/InstructionType.ts +2 -1
- package/src/models/InstructionUnion.ts +12 -1
- package/src/models/ItemResult.ts +2 -3
- package/src/models/Media.ts +27 -17
- package/src/models/MediaExtended.ts +237 -0
- package/src/models/MediaOriginalInfo.ts +17 -8
- package/src/models/MediaOriginalInfoFocusRect.ts +93 -0
- package/src/models/MediaSize.ts +95 -0
- package/src/models/MediaSizes.ts +100 -0
- package/src/models/MediaStats.ts +66 -0
- package/src/models/MediaVideoInfo.ts +90 -0
- package/src/models/MediaVideoInfoVariant.ts +83 -0
- package/src/models/ModuleEntry.ts +10 -4
- package/src/models/{TweetLegacySelfThread.ts → SelfThread.ts} +9 -9
- package/src/models/Session.ts +11 -1
- package/src/models/Text.ts +82 -0
- package/src/models/TextEntity.ts +91 -0
- package/src/models/TextEntityRef.ts +102 -0
- package/src/models/TimelineCoverBehavior.ts +76 -0
- package/src/models/TimelineHalfCover.ts +157 -0
- package/src/models/TimelineShowCover.ts +103 -0
- package/src/models/TimelineTimelineItem.ts +10 -4
- package/src/models/TimelineTimelineModule.ts +12 -1
- package/src/models/TimelineUser.ts +13 -1
- package/src/models/Tweet.ts +21 -15
- package/src/models/TweetCardLegacy.ts +9 -9
- package/src/models/TweetCardLegacyBindingValue.ts +82 -0
- package/src/models/{TweetCardLegacyBindingValuesInnerValue.ts → TweetCardLegacyBindingValueData.ts} +12 -12
- package/src/models/TweetEditControl.ts +23 -0
- package/src/models/TweetEditControlInitial.ts +93 -0
- package/src/models/TweetLegacy.ts +9 -9
- package/src/models/TweetResultByRestIdData.ts +73 -0
- package/src/models/TweetResultByRestIdResponse.ts +73 -0
- package/src/models/{TweetViews.ts → TweetView.ts} +23 -12
- package/src/models/TypeName.ts +1 -0
- package/src/models/index.ts +27 -4
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/.vscode/tasks.json +3 -0
- package/twitter-openapi/LICENSE +31 -0
- package/twitter-openapi/{LICENSE.txt → LICENSE.AGPL} +3 -3
- package/twitter-openapi/README.md +4 -1
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +4 -2
- package/twitter-openapi/dist/compatible/paths/other.yaml +2 -0
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +94 -0
- package/twitter-openapi/dist/compatible/schemas/content.yaml +19 -6
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +130 -0
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +279 -94
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +1 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +4 -2
- package/twitter-openapi/dist/docs/paths/other.yaml +2 -0
- package/twitter-openapi/dist/docs/paths/tweet.yaml +191 -0
- package/twitter-openapi/dist/docs/schemas/content.yaml +19 -6
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +130 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +279 -94
- package/twitter-openapi/dist/docs/schemas/typename.yaml +1 -0
- package/twitter-openapi/src/config/placeholder.json +34 -2
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +2 -2
- package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
- package/twitter-openapi/src/openapi/paths/tweet.yaml +30 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +20 -7
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +134 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +306 -107
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/test/python/replace.py +23 -0
- package/twitter-openapi/test/python/test_serialize.py +191 -91
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +0 -39
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInner.js +0 -55
- package/dist/models/TweetCardLegacyBindingValuesInner.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +0 -50
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +0 -1
- package/dist/models/TweetLegacySelfThread.d.ts +0 -32
- package/dist/models/TweetLegacySelfThread.d.ts.map +0 -1
- package/dist/models/TweetLegacySelfThread.js +0 -51
- package/dist/models/TweetLegacySelfThread.js.map +0 -1
- package/dist/models/TweetViews.d.ts +0 -38
- package/dist/models/TweetViews.d.ts.map +0 -1
- package/dist/models/TweetViews.js.map +0 -1
- package/src/models/TweetCardLegacyBindingValuesInner.ts +0 -82
|
@@ -13,12 +13,25 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TweetEditControlInitial } from './TweetEditControlInitial';
|
|
17
|
+
import {
|
|
18
|
+
TweetEditControlInitialFromJSON,
|
|
19
|
+
TweetEditControlInitialFromJSONTyped,
|
|
20
|
+
TweetEditControlInitialToJSON,
|
|
21
|
+
} from './TweetEditControlInitial';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
19
26
|
* @interface TweetEditControl
|
|
20
27
|
*/
|
|
21
28
|
export interface TweetEditControl {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TweetEditControlInitial}
|
|
32
|
+
* @memberof TweetEditControl
|
|
33
|
+
*/
|
|
34
|
+
editControlInitial?: TweetEditControlInitial;
|
|
22
35
|
/**
|
|
23
36
|
*
|
|
24
37
|
* @type {Array<string>}
|
|
@@ -37,6 +50,12 @@ export interface TweetEditControl {
|
|
|
37
50
|
* @memberof TweetEditControl
|
|
38
51
|
*/
|
|
39
52
|
editsRemaining?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof TweetEditControl
|
|
57
|
+
*/
|
|
58
|
+
initialTweetId?: string;
|
|
40
59
|
/**
|
|
41
60
|
*
|
|
42
61
|
* @type {boolean}
|
|
@@ -64,9 +83,11 @@ export function TweetEditControlFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
64
83
|
}
|
|
65
84
|
return {
|
|
66
85
|
|
|
86
|
+
'editControlInitial': !exists(json, 'edit_control_initial') ? undefined : TweetEditControlInitialFromJSON(json['edit_control_initial']),
|
|
67
87
|
'editTweetIds': !exists(json, 'edit_tweet_ids') ? undefined : json['edit_tweet_ids'],
|
|
68
88
|
'editableUntilMsecs': !exists(json, 'editable_until_msecs') ? undefined : json['editable_until_msecs'],
|
|
69
89
|
'editsRemaining': !exists(json, 'edits_remaining') ? undefined : json['edits_remaining'],
|
|
90
|
+
'initialTweetId': !exists(json, 'initial_tweet_id') ? undefined : json['initial_tweet_id'],
|
|
70
91
|
'isEditEligible': !exists(json, 'is_edit_eligible') ? undefined : json['is_edit_eligible'],
|
|
71
92
|
};
|
|
72
93
|
}
|
|
@@ -80,9 +101,11 @@ export function TweetEditControlToJSON(value?: TweetEditControl | null): any {
|
|
|
80
101
|
}
|
|
81
102
|
return {
|
|
82
103
|
|
|
104
|
+
'edit_control_initial': TweetEditControlInitialToJSON(value.editControlInitial),
|
|
83
105
|
'edit_tweet_ids': value.editTweetIds,
|
|
84
106
|
'editable_until_msecs': value.editableUntilMsecs,
|
|
85
107
|
'edits_remaining': value.editsRemaining,
|
|
108
|
+
'initial_tweet_id': value.initialTweetId,
|
|
86
109
|
'is_edit_eligible': value.isEditEligible,
|
|
87
110
|
};
|
|
88
111
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TweetEditControlInitial
|
|
20
|
+
*/
|
|
21
|
+
export interface TweetEditControlInitial {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof TweetEditControlInitial
|
|
26
|
+
*/
|
|
27
|
+
editTweetIds: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TweetEditControlInitial
|
|
32
|
+
*/
|
|
33
|
+
editableUntilMsecs: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TweetEditControlInitial
|
|
38
|
+
*/
|
|
39
|
+
editsRemaining: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof TweetEditControlInitial
|
|
44
|
+
*/
|
|
45
|
+
isEditEligible: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the TweetEditControlInitial interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfTweetEditControlInitial(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "editTweetIds" in value;
|
|
54
|
+
isInstance = isInstance && "editableUntilMsecs" in value;
|
|
55
|
+
isInstance = isInstance && "editsRemaining" in value;
|
|
56
|
+
isInstance = isInstance && "isEditEligible" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetEditControlInitialFromJSON(json: any): TweetEditControlInitial {
|
|
62
|
+
return TweetEditControlInitialFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function TweetEditControlInitialFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetEditControlInitial {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'editTweetIds': json['edit_tweet_ids'],
|
|
72
|
+
'editableUntilMsecs': json['editable_until_msecs'],
|
|
73
|
+
'editsRemaining': json['edits_remaining'],
|
|
74
|
+
'isEditEligible': json['is_edit_eligible'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function TweetEditControlInitialToJSON(value?: TweetEditControlInitial | null): any {
|
|
79
|
+
if (value === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'edit_tweet_ids': value.editTweetIds,
|
|
88
|
+
'editable_until_msecs': value.editableUntilMsecs,
|
|
89
|
+
'edits_remaining': value.editsRemaining,
|
|
90
|
+
'is_edit_eligible': value.isEditEligible,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -31,12 +31,12 @@ import {
|
|
|
31
31
|
ItemResultFromJSONTyped,
|
|
32
32
|
ItemResultToJSON,
|
|
33
33
|
} from './ItemResult';
|
|
34
|
-
import type {
|
|
34
|
+
import type { SelfThread } from './SelfThread';
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from './
|
|
36
|
+
SelfThreadFromJSON,
|
|
37
|
+
SelfThreadFromJSONTyped,
|
|
38
|
+
SelfThreadToJSON,
|
|
39
|
+
} from './SelfThread';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
@@ -166,10 +166,10 @@ export interface TweetLegacy {
|
|
|
166
166
|
retweetedStatusResult?: ItemResult;
|
|
167
167
|
/**
|
|
168
168
|
*
|
|
169
|
-
* @type {
|
|
169
|
+
* @type {SelfThread}
|
|
170
170
|
* @memberof TweetLegacy
|
|
171
171
|
*/
|
|
172
|
-
selfThread?:
|
|
172
|
+
selfThread?: SelfThread;
|
|
173
173
|
/**
|
|
174
174
|
*
|
|
175
175
|
* @type {string}
|
|
@@ -234,7 +234,7 @@ export function TweetLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
234
234
|
'retweetCount': json['retweet_count'],
|
|
235
235
|
'retweeted': json['retweeted'],
|
|
236
236
|
'retweetedStatusResult': !exists(json, 'retweeted_status_result') ? undefined : ItemResultFromJSON(json['retweeted_status_result']),
|
|
237
|
-
'selfThread': !exists(json, 'self_thread') ? undefined :
|
|
237
|
+
'selfThread': !exists(json, 'self_thread') ? undefined : SelfThreadFromJSON(json['self_thread']),
|
|
238
238
|
'userIdStr': json['user_id_str'],
|
|
239
239
|
};
|
|
240
240
|
}
|
|
@@ -268,7 +268,7 @@ export function TweetLegacyToJSON(value?: TweetLegacy | null): any {
|
|
|
268
268
|
'retweet_count': value.retweetCount,
|
|
269
269
|
'retweeted': value.retweeted,
|
|
270
270
|
'retweeted_status_result': ItemResultToJSON(value.retweetedStatusResult),
|
|
271
|
-
'self_thread':
|
|
271
|
+
'self_thread': SelfThreadToJSON(value.selfThread),
|
|
272
272
|
'user_id_str': value.userIdStr,
|
|
273
273
|
};
|
|
274
274
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ItemResult } from './ItemResult';
|
|
17
|
+
import {
|
|
18
|
+
ItemResultFromJSON,
|
|
19
|
+
ItemResultFromJSONTyped,
|
|
20
|
+
ItemResultToJSON,
|
|
21
|
+
} from './ItemResult';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetResultByRestIdData
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetResultByRestIdData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ItemResult}
|
|
32
|
+
* @memberof TweetResultByRestIdData
|
|
33
|
+
*/
|
|
34
|
+
tweetResult: ItemResult;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetResultByRestIdData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetResultByRestIdData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "tweetResult" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetResultByRestIdDataFromJSON(json: any): TweetResultByRestIdData {
|
|
48
|
+
return TweetResultByRestIdDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetResultByRestIdDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetResultByRestIdData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'tweetResult': ItemResultFromJSON(json['tweetResult']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetResultByRestIdDataToJSON(value?: TweetResultByRestIdData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'tweetResult': ItemResultToJSON(value.tweetResult),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TweetResultByRestIdData } from './TweetResultByRestIdData';
|
|
17
|
+
import {
|
|
18
|
+
TweetResultByRestIdDataFromJSON,
|
|
19
|
+
TweetResultByRestIdDataFromJSONTyped,
|
|
20
|
+
TweetResultByRestIdDataToJSON,
|
|
21
|
+
} from './TweetResultByRestIdData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetResultByRestIdResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetResultByRestIdResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TweetResultByRestIdData}
|
|
32
|
+
* @memberof TweetResultByRestIdResponse
|
|
33
|
+
*/
|
|
34
|
+
data: TweetResultByRestIdData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetResultByRestIdResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetResultByRestIdResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetResultByRestIdResponseFromJSON(json: any): TweetResultByRestIdResponse {
|
|
48
|
+
return TweetResultByRestIdResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetResultByRestIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetResultByRestIdResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': TweetResultByRestIdDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetResultByRestIdResponseToJSON(value?: TweetResultByRestIdResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': TweetResultByRestIdDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -16,48 +16,59 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface TweetView
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface TweetView {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof TweetView
|
|
26
26
|
*/
|
|
27
27
|
count?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof TweetView
|
|
32
32
|
*/
|
|
33
|
-
state
|
|
33
|
+
state: TweetViewStateEnum;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const TweetViewStateEnum = {
|
|
41
|
+
EnabledWithCount: 'EnabledWithCount'
|
|
42
|
+
} as const;
|
|
43
|
+
export type TweetViewStateEnum = typeof TweetViewStateEnum[keyof typeof TweetViewStateEnum];
|
|
44
|
+
|
|
45
|
+
|
|
36
46
|
/**
|
|
37
|
-
* Check if a given object implements the
|
|
47
|
+
* Check if a given object implements the TweetView interface.
|
|
38
48
|
*/
|
|
39
|
-
export function
|
|
49
|
+
export function instanceOfTweetView(value: object): boolean {
|
|
40
50
|
let isInstance = true;
|
|
51
|
+
isInstance = isInstance && "state" in value;
|
|
41
52
|
|
|
42
53
|
return isInstance;
|
|
43
54
|
}
|
|
44
55
|
|
|
45
|
-
export function
|
|
46
|
-
return
|
|
56
|
+
export function TweetViewFromJSON(json: any): TweetView {
|
|
57
|
+
return TweetViewFromJSONTyped(json, false);
|
|
47
58
|
}
|
|
48
59
|
|
|
49
|
-
export function
|
|
60
|
+
export function TweetViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetView {
|
|
50
61
|
if ((json === undefined) || (json === null)) {
|
|
51
62
|
return json;
|
|
52
63
|
}
|
|
53
64
|
return {
|
|
54
65
|
|
|
55
66
|
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
56
|
-
'state':
|
|
67
|
+
'state': json['state'],
|
|
57
68
|
};
|
|
58
69
|
}
|
|
59
70
|
|
|
60
|
-
export function
|
|
71
|
+
export function TweetViewToJSON(value?: TweetView | null): any {
|
|
61
72
|
if (value === undefined) {
|
|
62
73
|
return undefined;
|
|
63
74
|
}
|
package/src/models/TypeName.ts
CHANGED
|
@@ -27,6 +27,7 @@ export const TypeName = {
|
|
|
27
27
|
TweetTombstone: 'TweetTombstone',
|
|
28
28
|
TimelinePrompt: 'TimelinePrompt',
|
|
29
29
|
TimelineMessagePrompt: 'TimelineMessagePrompt',
|
|
30
|
+
TweetUnavailable: 'TweetUnavailable',
|
|
30
31
|
Tweet: 'Tweet',
|
|
31
32
|
User: 'User',
|
|
32
33
|
UserUnavailable: 'UserUnavailable'
|
package/src/models/index.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AdditionalMediaInfo';
|
|
3
4
|
export * from './BookmarksResponse';
|
|
4
5
|
export * from './BookmarksResponseData';
|
|
5
6
|
export * from './BookmarksTimeline';
|
|
7
|
+
export * from './Callback';
|
|
8
|
+
export * from './ClientEventInfo';
|
|
6
9
|
export * from './CommunitiesActions';
|
|
7
10
|
export * from './ContentEntryType';
|
|
8
11
|
export * from './ContentItemType';
|
|
9
12
|
export * from './ContentUnion';
|
|
13
|
+
export * from './CoverCta';
|
|
10
14
|
export * from './CreateRetweet';
|
|
11
15
|
export * from './CreateRetweetResponse';
|
|
12
16
|
export * from './CreateRetweetResponseData';
|
|
@@ -15,6 +19,7 @@ export * from './CreateTweet';
|
|
|
15
19
|
export * from './CreateTweetResponse';
|
|
16
20
|
export * from './CreateTweetResponseData';
|
|
17
21
|
export * from './CreateTweetResponseResult';
|
|
22
|
+
export * from './CtaClientEventInfo';
|
|
18
23
|
export * from './CursorType';
|
|
19
24
|
export * from './DeleteRetweetResponse';
|
|
20
25
|
export * from './DeleteRetweetResponseData';
|
|
@@ -24,6 +29,7 @@ export * from './DeleteTweetResponseResult';
|
|
|
24
29
|
export * from './Entities';
|
|
25
30
|
export * from './ErrorExtensions';
|
|
26
31
|
export * from './Errors';
|
|
32
|
+
export * from './ExtMediaAvailability';
|
|
27
33
|
export * from './ExtendedEntities';
|
|
28
34
|
export * from './FavoriteTweet';
|
|
29
35
|
export * from './FavoriteTweetResponseData';
|
|
@@ -42,6 +48,7 @@ export * from './GetProfileSpotlightsQuery200Response';
|
|
|
42
48
|
export * from './GetRetweeters200Response';
|
|
43
49
|
export * from './GetSearchTimeline200Response';
|
|
44
50
|
export * from './GetTweetDetail200Response';
|
|
51
|
+
export * from './GetTweetResultByRestId200Response';
|
|
45
52
|
export * from './GetUserByRestId200Response';
|
|
46
53
|
export * from './GetUserHighlightsTweets200Response';
|
|
47
54
|
export * from './GetUsersByRestIds200Response';
|
|
@@ -57,7 +64,14 @@ export * from './ListTweetsTimelineData';
|
|
|
57
64
|
export * from './ListTweetsTimelineList';
|
|
58
65
|
export * from './Location';
|
|
59
66
|
export * from './Media';
|
|
67
|
+
export * from './MediaExtended';
|
|
60
68
|
export * from './MediaOriginalInfo';
|
|
69
|
+
export * from './MediaOriginalInfoFocusRect';
|
|
70
|
+
export * from './MediaSize';
|
|
71
|
+
export * from './MediaSizes';
|
|
72
|
+
export * from './MediaStats';
|
|
73
|
+
export * from './MediaVideoInfo';
|
|
74
|
+
export * from './MediaVideoInfoVariant';
|
|
61
75
|
export * from './ModelError';
|
|
62
76
|
export * from './ModuleEntry';
|
|
63
77
|
export * from './ModuleItem';
|
|
@@ -89,13 +103,19 @@ export * from './SearchByRawQuery';
|
|
|
89
103
|
export * from './SearchTimeline';
|
|
90
104
|
export * from './SearchTimelineData';
|
|
91
105
|
export * from './SearchTimelineResponse';
|
|
106
|
+
export * from './SelfThread';
|
|
92
107
|
export * from './Session';
|
|
93
108
|
export * from './SocialContext';
|
|
109
|
+
export * from './Text';
|
|
110
|
+
export * from './TextEntity';
|
|
111
|
+
export * from './TextEntityRef';
|
|
94
112
|
export * from './Timeline';
|
|
95
113
|
export * from './TimelineAddEntries';
|
|
96
114
|
export * from './TimelineAddEntry';
|
|
97
115
|
export * from './TimelineAddToModule';
|
|
98
116
|
export * from './TimelineClearCache';
|
|
117
|
+
export * from './TimelineCoverBehavior';
|
|
118
|
+
export * from './TimelineHalfCover';
|
|
99
119
|
export * from './TimelineMessagePrompt';
|
|
100
120
|
export * from './TimelinePinEntry';
|
|
101
121
|
export * from './TimelinePrompt';
|
|
@@ -103,6 +123,7 @@ export * from './TimelineReplaceEntry';
|
|
|
103
123
|
export * from './TimelineResponse';
|
|
104
124
|
export * from './TimelineShowAlert';
|
|
105
125
|
export * from './TimelineShowAlertRichText';
|
|
126
|
+
export * from './TimelineShowCover';
|
|
106
127
|
export * from './TimelineTerminateTimeline';
|
|
107
128
|
export * from './TimelineTimelineCursor';
|
|
108
129
|
export * from './TimelineTimelineItem';
|
|
@@ -114,21 +135,23 @@ export * from './Tracing';
|
|
|
114
135
|
export * from './Tweet';
|
|
115
136
|
export * from './TweetCard';
|
|
116
137
|
export * from './TweetCardLegacy';
|
|
117
|
-
export * from './
|
|
118
|
-
export * from './
|
|
138
|
+
export * from './TweetCardLegacyBindingValue';
|
|
139
|
+
export * from './TweetCardLegacyBindingValueData';
|
|
119
140
|
export * from './TweetDetailResponse';
|
|
120
141
|
export * from './TweetDetailResponseData';
|
|
121
142
|
export * from './TweetEditControl';
|
|
143
|
+
export * from './TweetEditControlInitial';
|
|
122
144
|
export * from './TweetEditPrespective';
|
|
123
145
|
export * from './TweetFavoritersResponse';
|
|
124
146
|
export * from './TweetFavoritersResponseData';
|
|
125
147
|
export * from './TweetLegacy';
|
|
126
|
-
export * from './
|
|
148
|
+
export * from './TweetResultByRestIdData';
|
|
149
|
+
export * from './TweetResultByRestIdResponse';
|
|
127
150
|
export * from './TweetRetweetersResponse';
|
|
128
151
|
export * from './TweetRetweetersResponseData';
|
|
129
152
|
export * from './TweetTombstone';
|
|
130
153
|
export * from './TweetUnion';
|
|
131
|
-
export * from './
|
|
154
|
+
export * from './TweetView';
|
|
132
155
|
export * from './TweetWithVisibilityResults';
|
|
133
156
|
export * from './TypeName';
|
|
134
157
|
export * from './UnfavoriteTweet';
|
package/tools/win/replace.py
CHANGED
|
@@ -24,7 +24,7 @@ with open("package.json", mode="r", encoding="utf-8") as f:
|
|
|
24
24
|
package.update(
|
|
25
25
|
{
|
|
26
26
|
"author": "fa0311",
|
|
27
|
-
"license": "
|
|
27
|
+
"license": "custom license or AGPL-3.0-or-later",
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
30
|
"url": "https://github.com/fa0311/twitter-openapi-typescript.git",
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
"type": "shell",
|
|
7
7
|
"linux": {
|
|
8
8
|
"command": [
|
|
9
|
+
"source .venv/bin/activate;",
|
|
9
10
|
"python3 tools/build.py;",
|
|
10
11
|
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
|
12
|
+
"python3 test/python/replace.py;",
|
|
11
13
|
"python3 -m pip install ./python_generated;"
|
|
12
14
|
]
|
|
13
15
|
},
|
|
@@ -16,6 +18,7 @@
|
|
|
16
18
|
".venv/Scripts/activate;",
|
|
17
19
|
"python tools/build.py;",
|
|
18
20
|
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
|
21
|
+
"python test/python/replace.py;",
|
|
19
22
|
"python -m pip install ./python_generated;"
|
|
20
23
|
]
|
|
21
24
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
twitter-openapi License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 yuki
|
|
4
|
+
|
|
5
|
+
<https://yuki0311.com/>
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
The Software shall not be used for any activity that involves the following types
|
|
18
|
+
of behavior, commonly known as spam:
|
|
19
|
+
|
|
20
|
+
1. Sending unsolicited or excessive messages or posts.
|
|
21
|
+
2. Aggressively following, unfollowing, or liking tweets to artificially boost engagement.
|
|
22
|
+
3. Engaging in aggressive automated actions that disrupt or annoy other users.
|
|
23
|
+
4. Distributing false or misleading information.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
2
2
|
Version 3, 19 November 2007
|
|
3
3
|
|
|
4
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
5
|
Everyone is permitted to copy and distribute verbatim copies
|
|
6
6
|
of this license document, but changing it is not allowed.
|
|
7
7
|
|
|
@@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found.
|
|
|
643
643
|
GNU Affero General Public License for more details.
|
|
644
644
|
|
|
645
645
|
You should have received a copy of the GNU Affero General Public License
|
|
646
|
-
along with this program. If not, see <
|
|
646
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
647
647
|
|
|
648
648
|
Also add information on how to contact you by electronic and paper mail.
|
|
649
649
|
|
|
@@ -658,4 +658,4 @@ specific requirements.
|
|
|
658
658
|
You should also get your employer (if you work as a programmer) or school,
|
|
659
659
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
660
660
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
661
|
-
<
|
|
661
|
+
<https://www.gnu.org/licenses/>.
|
|
@@ -51,8 +51,8 @@ info:
|
|
|
51
51
|
email: yuki@yuki0311.com
|
|
52
52
|
description: Twitter OpenAPI(Swagger) specification
|
|
53
53
|
license:
|
|
54
|
-
name:
|
|
55
|
-
url: https://
|
|
54
|
+
name: custom license or AGPL-3.0-or-later
|
|
55
|
+
url: https://github.com/fa0311/twitter-openapi#license
|
|
56
56
|
termsOfService: https://github.com/fa0311
|
|
57
57
|
title: Twitter OpenAPI
|
|
58
58
|
version: 0.0.1
|
|
@@ -104,6 +104,8 @@ paths:
|
|
|
104
104
|
$ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1SearchTimeline
|
|
105
105
|
/graphql/{pathQueryId}/TweetDetail:
|
|
106
106
|
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
|
107
|
+
/graphql/{pathQueryId}/TweetResultByRestId:
|
|
108
|
+
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetResultByRestId
|
|
107
109
|
/graphql/{pathQueryId}/UnfavoriteTweet:
|
|
108
110
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
|
109
111
|
/graphql/{pathQueryId}/UserByRestId:
|