Skip to content
Merged

Dev #52

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
twitter-openapi License

Copyright (c) 2023 yuki

<https://yuki0311.com/>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

The Software shall not be used for any activity that involves the following types
of behavior, commonly known as spam:

1. Sending unsolicited or excessive messages or posts.
2. Aggressively following, unfollowing, or liking tweets to artificially boost engagement.
3. Engaging in aggressive automated actions that disrupt or annoy other users.
4. Distributing false or misleading information.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 3 additions & 3 deletions ...-openapi-typescript-generated/LICENSE.txt → LICENSE.AGPL
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -658,4 +658,4 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ npm run build

Setup

It cannot be installed from npm.
Plan to release it in v1.0.0 with npm.

```shell
git clone https://github.com/fa0311/twitter-openapi-typescript
npm install ./twitter-openapi-typescript/twitter-openapi-typescript
npm twitter-openapi-typescript-generated
```

License

This project is dual licensed. You can choose one of the following licenses:

- [Custom License](./LICENSE)
- [GNU Affero General Public License v3.0](./LICENSE.AGPL)

Usage

[twitter-openapi-typescript-generated/README.md](./twitter-openapi-typescript-generated/README.md)
28 changes: 24 additions & 4 deletions twitter-openapi-typescript-generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ src/apis/V11PostApi.ts
src/apis/V20GetApi.ts
src/apis/index.ts
src/index.ts
src/models/AdditionalMediaInfo.ts
src/models/BookmarksResponse.ts
src/models/BookmarksResponseData.ts
src/models/BookmarksTimeline.ts
src/models/Callback.ts
src/models/ClientEventInfo.ts
src/models/CommunitiesActions.ts
src/models/ContentEntryType.ts
src/models/ContentItemType.ts
src/models/ContentUnion.ts
src/models/CoverCta.ts
src/models/CreateRetweet.ts
src/models/CreateRetweetResponse.ts
src/models/CreateRetweetResponseData.ts
Expand All @@ -28,6 +32,7 @@ src/models/CreateTweet.ts
src/models/CreateTweetResponse.ts
src/models/CreateTweetResponseData.ts
src/models/CreateTweetResponseResult.ts
src/models/CtaClientEventInfo.ts
src/models/CursorType.ts
src/models/DeleteRetweetResponse.ts
src/models/DeleteRetweetResponseData.ts
Expand All @@ -37,6 +42,7 @@ src/models/DeleteTweetResponseResult.ts
src/models/Entities.ts
src/models/ErrorExtensions.ts
src/models/Errors.ts
src/models/ExtMediaAvailability.ts
src/models/ExtendedEntities.ts
src/models/FavoriteTweet.ts
src/models/FavoriteTweetResponseData.ts
Expand Down Expand Up @@ -71,7 +77,14 @@ src/models/ListTweetsTimelineData.ts
src/models/ListTweetsTimelineList.ts
src/models/Location.ts
src/models/Media.ts
src/models/MediaExtended.ts
src/models/MediaOriginalInfo.ts
src/models/MediaOriginalInfoFocusRect.ts
src/models/MediaSize.ts
src/models/MediaSizes.ts
src/models/MediaStats.ts
src/models/MediaVideoInfo.ts
src/models/MediaVideoInfoVariant.ts
src/models/ModelError.ts
src/models/ModuleEntry.ts
src/models/ModuleItem.ts
Expand Down Expand Up @@ -103,20 +116,27 @@ src/models/SearchByRawQuery.ts
src/models/SearchTimeline.ts
src/models/SearchTimelineData.ts
src/models/SearchTimelineResponse.ts
src/models/SelfThread.ts
src/models/Session.ts
src/models/SocialContext.ts
src/models/Text.ts
src/models/TextEntity.ts
src/models/TextEntityRef.ts
src/models/Timeline.ts
src/models/TimelineAddEntries.ts
src/models/TimelineAddEntry.ts
src/models/TimelineAddToModule.ts
src/models/TimelineClearCache.ts
src/models/TimelineCoverBehavior.ts
src/models/TimelineHalfCover.ts
src/models/TimelineMessagePrompt.ts
src/models/TimelinePinEntry.ts
src/models/TimelinePrompt.ts
src/models/TimelineReplaceEntry.ts
src/models/TimelineResponse.ts
src/models/TimelineShowAlert.ts
src/models/TimelineShowAlertRichText.ts
src/models/TimelineShowCover.ts
src/models/TimelineTerminateTimeline.ts
src/models/TimelineTimelineCursor.ts
src/models/TimelineTimelineItem.ts
Expand All @@ -128,23 +148,23 @@ src/models/Tracing.ts
src/models/Tweet.ts
src/models/TweetCard.ts
src/models/TweetCardLegacy.ts
src/models/TweetCardLegacyBindingValuesInner.ts
src/models/TweetCardLegacyBindingValuesInnerValue.ts
src/models/TweetCardLegacyBindingValue.ts
src/models/TweetCardLegacyBindingValueData.ts
src/models/TweetDetailResponse.ts
src/models/TweetDetailResponseData.ts
src/models/TweetEditControl.ts
src/models/TweetEditControlInitial.ts
src/models/TweetEditPrespective.ts
src/models/TweetFavoritersResponse.ts
src/models/TweetFavoritersResponseData.ts
src/models/TweetLegacy.ts
src/models/TweetLegacySelfThread.ts
src/models/TweetResultByRestIdData.ts
src/models/TweetResultByRestIdResponse.ts
src/models/TweetRetweetersResponse.ts
src/models/TweetRetweetersResponseData.ts
src/models/TweetTombstone.ts
src/models/TweetUnion.ts
src/models/TweetViews.ts
src/models/TweetView.ts
src/models/TweetWithVisibilityResults.ts
src/models/TypeName.ts
src/models/UnfavoriteTweet.ts
Expand Down
31 changes: 31 additions & 0 deletions twitter-openapi-typescript-generated/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
twitter-openapi License

Copyright (c) 2023 yuki

<https://yuki0311.com/>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

The Software shall not be used for any activity that involves the following types
of behavior, commonly known as spam:

1. Sending unsolicited or excessive messages or posts.
2. Aggressively following, unfollowing, or liking tweets to artificially boost engagement.
3. Engaging in aggressive automated actions that disrupt or annoy other users.
4. Distributing false or misleading information.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -658,4 +658,4 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
4 changes: 2 additions & 2 deletions twitter-openapi-typescript-generated/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## twitter-openapi-typescript-generated@0.0.10
## twitter-openapi-typescript-generated@0.0.11

This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:

Expand Down Expand Up @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_

```
npm install twitter-openapi-typescript-generated@0.0.10 --save
npm install twitter-openapi-typescript-generated@0.0.11 --save
```

_unPublished (not recommended):_
Expand Down
6 changes: 3 additions & 3 deletions twitter-openapi-typescript-generated/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions twitter-openapi-typescript-generated/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twitter-openapi-typescript-generated",
"version": "0.0.10",
"version": "0.0.11",
"description": "OpenAPI client for twitter-openapi-typescript-generated",
"author": "fa0311",
"repository": {
Expand All @@ -16,7 +16,7 @@
"devDependencies": {
"typescript": "^4.0"
},
"license": "LGPL-3.0-only",
"license": "custom license or AGPL-3.0-or-later",
"keywords": [
"twitter",
"api",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* Twitter OpenAPI
* Twitter OpenAPI(Swagger) specification
*
* The version of the OpenAPI document: 0.0.1
* Contact: yuki@yuki0311.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface AdditionalMediaInfo
*/
export interface AdditionalMediaInfo {
/**
*
* @type {boolean}
* @memberof AdditionalMediaInfo
*/
monetizable: boolean;
}

/**
* Check if a given object implements the AdditionalMediaInfo interface.
*/
export function instanceOfAdditionalMediaInfo(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "monetizable" in value;

return isInstance;
}

export function AdditionalMediaInfoFromJSON(json: any): AdditionalMediaInfo {
return AdditionalMediaInfoFromJSONTyped(json, false);
}

export function AdditionalMediaInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdditionalMediaInfo {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'monetizable': json['monetizable'],
};
}

export function AdditionalMediaInfoToJSON(value?: AdditionalMediaInfo | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'monetizable': value.monetizable,
};
}

Loading