Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
696ae50
Merge pull request #705 from Rishikant181/dev
Rishikant181 May 15, 2025
dff1304
Updated linting rules
Rishikant181 May 26, 2025
df33741
Merge pull request #710 from Rishikant181/lint
Rishikant181 May 26, 2025
6ae56bb
Added ability to fetch replies to a tweet via CLI
Rishikant181 May 26, 2025
1e9ca91
Merge pull request #711 from Rishikant181/tweet-replies-cli
Rishikant181 May 26, 2025
be84f53
Updated RettiwtConfig to include max retries parameter
Rishikant181 May 27, 2025
ce3f273
Added ability to use a maximum set number of retries
Rishikant181 May 27, 2025
37ab535
Updated docs
Rishikant181 May 27, 2025
e4ad2dc
Merge pull request #712 from Rishikant181/retries
Rishikant181 May 27, 2025
ae04589
Updated CLI to provide more options
Rishikant181 May 27, 2025
b262098
Updated .gitignore
Rishikant181 Jun 4, 2025
04c366e
Removed .tool-version
Rishikant181 Jun 4, 2025
768efa7
Updated defaults for delay and retries
Rishikant181 Jun 4, 2025
7cbe055
Merge branch 'release' into dev
Rishikant181 Jun 11, 2025
862c0e2
Updated some dependencies
Rishikant181 Jun 11, 2025
d272312
Updated packages
Rishikant181 Jun 11, 2025
6cf506b
Updated README.md
Rishikant181 Jun 13, 2025
51d3fcb
Bumped version
Rishikant181 Jun 13, 2025
abcb6fe
Merge pull request #716 from Rishikant181/dev
Rishikant181 Jun 13, 2025
3c2b58c
Bumped version
Rishikant181 Jun 13, 2025
86e9b92
Merge pull request #717 from Rishikant181/dev
Rishikant181 Jun 13, 2025
f543233
Used more accurate transaction ID generation
Rishikant181 Jun 15, 2025
46b9636
Merge pull request #718 from Rishikant181/better-tid
Rishikant181 Jun 15, 2025
a619bf6
Transaction ID is generated for every retry
Rishikant181 Jun 15, 2025
cddbffb
Reset default maxRetries and delay to 0 since it's no longer required…
Rishikant181 Jun 15, 2025
af265f9
Merge pull request #719 from Rishikant181/defaults
Rishikant181 Jun 15, 2025
0101c46
Updated README.md
Rishikant181 Jun 15, 2025
762342f
Merge pull request #720 from Rishikant181/dev
Rishikant181 Jun 15, 2025
1fc8979
Fixed broken dependency
Rishikant181 Jun 15, 2025
7ad8ddc
Bumped version
Rishikant181 Jun 15, 2025
3492a4a
Merge pull request #721 from Rishikant181/dev
Rishikant181 Jun 15, 2025
2006fb1
fix: type user service
vachmara Jun 29, 2025
769469b
refactor: update UserRequests to analytics v2
vachmara Jun 29, 2025
d835f12
feat: add analytics to service
vachmara Jun 29, 2025
8abf132
feat: data extractor for user analytics
vachmara Jun 29, 2025
a6ebc10
fix: add analytics in fetch ressources group
vachmara Jun 30, 2025
feca459
fix: user analytics request
vachmara Jun 30, 2025
33b641a
fix: model args fetch
vachmara Jun 30, 2025
f85a072
fix: user requests
vachmara Jun 30, 2025
2ab4fc9
fix: types response analytics
vachmara Jun 30, 2025
88f5464
docs: update readme
vachmara Jun 30, 2025
f2a964d
Fixed unknown error while getting transaction token by upgrading x-cl…
Rishikant181 Jun 30, 2025
e30a8e9
Merge pull request #726 from Rishikant181/transaction-fix
Rishikant181 Jun 30, 2025
cfcb4c0
Merge branch 'release' into fix/user-service-types
Rishikant181 Jun 30, 2025
8c9675d
Fixed type for user.details
Rishikant181 Jun 30, 2025
a4f09cf
Merge pull request #724 from vachmara/fix/user-service-types
Rishikant181 Jun 30, 2025
0949343
Merge pull request #728 from Rishikant181/fix/user-service-types
Rishikant181 Jun 30, 2025
2d34ba6
Merge branch 'dev' into feat/premium-analytics
vachmara Jun 30, 2025
6bb6d73
feat: add dm requests
vachmara Jun 30, 2025
4c30693
Revered x-client-transaction-id package to upstream version
Rishikant181 Jul 1, 2025
0633b92
Merge branch 'dev' of https://github.com/Rishikant181/Rettiwt-API int…
vachmara Jul 1, 2025
b8d1639
feat: getter raw, linting, format
vachmara Jul 1, 2025
f78addc
Added ability to bookmark a tweet
Rishikant181 Jul 1, 2025
73bfaa3
Added ability to unbookmark a tweet
Rishikant181 Jul 1, 2025
2018419
Updated README.md
Rishikant181 Jul 1, 2025
a76fe30
Merge pull request #731 from Rishikant181/bookmark-tweet
Rishikant181 Jul 1, 2025
4817944
Merge branch 'dev' into feat/premium-analytics
Rishikant181 Jul 1, 2025
6e6df79
Merge pull request #725 from vachmara/feat/premium-analytics
Rishikant181 Jul 1, 2025
b4db7b9
Merge branch 'dev' into feat/dm
vachmara Jul 1, 2025
6be4a42
Updated README.md
Rishikant181 Jul 1, 2025
fd0b450
Merge branch 'dev' into feat/dm
vachmara Jul 1, 2025
872b63b
Added CLI command for getting user analytics
Rishikant181 Jul 1, 2025
6ede776
feat: raw responses types
vachmara Jul 1, 2025
17eba2f
Merge branch 'feat/dm' of github.com:vachmara/Rettiwt-API into feat/dm
vachmara Jul 1, 2025
11cc765
Merge branch 'dev' into feat/dm
vachmara Jul 1, 2025
87a8f80
feat: Resource types & registration
vachmara Jul 2, 2025
a43b08f
Fixed README.md
Rishikant181 Jul 3, 2025
f4aec55
Fixed incorrect example in README
Rishikant181 Jul 3, 2025
14e27bb
Merge pull request #734 from Rishikant181/readme
Rishikant181 Jul 3, 2025
340ceac
Merge branch 'release' into dev
Rishikant181 Jul 3, 2025
de7990b
Merge branch 'dev' into feat/dm
vachmara Jul 4, 2025
738e6bc
Test
Rishikant181 Jul 5, 2025
4cedd9f
Test
Rishikant181 Jul 5, 2025
c69c90f
feat: extractor & data models & public service
vachmara Jul 6, 2025
00e3af1
Merge branch 'feat/dm' of github.com:vachmara/Rettiwt-API into feat/dm
vachmara Jul 6, 2025
10051a0
Merge branch 'dev' into feat/dm
vachmara Jul 8, 2025
d1a3cfd
Added raw requests and types for adding and removing members from a list
Rishikant181 Jul 10, 2025
3012d9f
Added ability to add and remove members from a list
Rishikant181 Jul 10, 2025
a346e2f
Updated README
Rishikant181 Jul 10, 2025
01e0b58
Merge pull request #739 from Rishikant181/manage-list-members
Rishikant181 Jul 10, 2025
7bb0317
Updated exports
Rishikant181 Jul 10, 2025
e8ceffb
refactor: inbox and conv data models
vachmara Jul 11, 2025
ffb9d83
Merge branch 'dev' of https://github.com/Rishikant181/Rettiwt-API int…
vachmara Jul 11, 2025
8d26451
refactor: rename directMessage to dm
vachmara Jul 18, 2025
05ef064
refactor: dm model data
vachmara Jul 18, 2025
ece87e4
refactor: types DirectMessage model
vachmara Jul 18, 2025
e2ce023
docs: update README
vachmara Jul 18, 2025
688280e
feat: add CLI dm support
vachmara Jul 18, 2025
6fa6efa
Merge pull request #729 from vachmara/feat/dm
Rishikant181 Jul 18, 2025
9327fb5
Formatted code
Rishikant181 Jul 18, 2025
41b9359
Renamed some types
Rishikant181 Jul 22, 2025
8a2840b
Fixed some typos
Rishikant181 Jul 22, 2025
36ef24b
Updated exports
Rishikant181 Jul 22, 2025
f4e733e
Removed inboxTimeline method from DM service and merge it's functiona…
Rishikant181 Jul 22, 2025
27b3069
Merge pull request #745 from Rishikant181/dm-trim
Rishikant181 Jul 22, 2025
e4f6d59
Updated README.md
Rishikant181 Jul 22, 2025
b284885
feat: add playground
vachmara Jul 22, 2025
fe399e2
feat: improve PR and Issue examples
vachmara Jul 22, 2025
268a666
feat: mainly for me always forgetting to format and lint 🥲
vachmara Jul 22, 2025
ed83d37
chore: ci on PR too
vachmara Jul 22, 2025
44d11a6
chore: format
vachmara Jul 22, 2025
1828680
refactor: playground index
vachmara Jul 25, 2025
b56d245
Merge pull request #746 from vachmara/feat/playground
Rishikant181 Jul 25, 2025
f5d22bb
Updated list type
Rishikant181Vaut Aug 4, 2025
920115f
Added ability to get the details of list
Rishikant181Vaut Aug 4, 2025
ea867d9
Merge pull request #754 from Rishikant181/lists
Rishikant181 Aug 4, 2025
22c7056
Added ability to fetch logged-in user's lists
Rishikant181Vaut Aug 6, 2025
2abab2f
Merge pull request #755 from Rishikant181/lists
Rishikant181 Aug 6, 2025
e31d474
Update README.md
dschwertfeger Aug 6, 2025
bc12cac
Merge pull request #757 from dschwertfeger/fix-typo
Rishikant181 Aug 7, 2025
293b5a5
Added getter to get the current API key associated with the Rettiwt i…
Rishikant181Vaut Aug 26, 2025
a88adfb
Merge pull request #763 from Rishikant181/get-api-key
Rishikant181 Aug 26, 2025
9d53142
Fixed confusing naming of `isFollowed` and `isFollowing` field of `Us…
Rishikant181 Sep 16, 2025
c5c7c71
Bumped requisite Node to 22.x in README.md (drop 20.x) (#770)
andre-cavalheiro Oct 8, 2025
e644a46
Fixed tweet transform error (#776)
lihengdao666 Oct 21, 2025
49919f8
Updated dependencies
Rishikant181 Oct 28, 2025
e1a531e
Fixed an issue where tweet failed to post due to incorrect user agent…
Rishikant181 Oct 30, 2025
e1cdeb9
Bumped version
Rishikant181 Oct 30, 2025
eddb11c
Fixed merge conflicts
Rishikant181 Nov 5, 2025
537801d
Updated docs
Rishikant181 Nov 5, 2025
65c08b7
Appending '@' to all-numeric username while getting user details dist…
Bruce-zxy Nov 9, 2025
42f0717
Updated .gitignore
Rishikant181 Nov 14, 2025
2bf2b09
Transaction ID generation now respects custom headers and proxy (#790)
Rishikant181 Nov 15, 2025
940c7a8
Fixed dependencies
Rishikant181 Nov 15, 2025
f749d5e
Fixed merge conflicts
Rishikant181 Nov 17, 2025
ee9427c
Fixed typo in documentation
Rishikant181 Nov 19, 2025
e9c6bc8
Impression count fields are now optional in Tweet (#793)
Rishikant181 Nov 19, 2025
953ce0f
Made isFollowed and isFollowing field optional (#794)
Rishikant181 Nov 19, 2025
eb064a1
Bumped version
Rishikant181 Nov 19, 2025
1d92fe5
Merge pull request #795 from Rishikant181/dev
Rishikant181 Nov 19, 2025
8742fb8
Fixed tweet.post() returning undefined on Error 226 (#796)
furkankoykiran Nov 23, 2025
bcf9bbf
Merge pull request #797 from furkankoykiran/fix/error-226-handling
Rishikant181 Nov 24, 2025
7a94567
Add Comprehensive User Profile Update Functionality
karasungur Nov 25, 2025
a6480c7
Merge pull request #799 from karasungur/dev
Rishikant181 Nov 27, 2025
6de2ec8
Fixed compilation errors
Rishikant181 Nov 27, 2025
a1038ab
Fixed a compilation error that might occur under some compiler config…
Rishikant181 Dec 1, 2025
ab5c335
Merge pull request #801 from Rishikant181/build-error
Rishikant181 Dec 1, 2025
87f6665
Bumped version
Rishikant181 Dec 1, 2025
ce432d4
Fixed an issue where user notification threw an `undefined` error, du…
Rishikant181 Dec 3, 2025
26d4e29
Bumped version
Rishikant181 Dec 3, 2025
fa8654a
Merge branch 'release' into dev
Rishikant181 Dec 9, 2025
b1b5fcf
Fixed an issue where an error was still thrown even if custom error h…
Rishikant181 Dec 12, 2025
ed4ede6
Merge pull request #807 from Rishikant181/raw-error
Rishikant181 Dec 12, 2025
a765a66
Bumped version
Rishikant181 Dec 12, 2025
d7260c9
Fixed an issue where an error was still thrown even if custom error h…
Rishikant181 Dec 12, 2025
53c0490
Bumped version
Rishikant181 Dec 12, 2025
3ef0a25
Merge pull request #809 from Rishikant181/error-handler-fix
Rishikant181 Dec 12, 2025
ed7ac1a
Merge branch 'release' into dev
Rishikant181 Dec 12, 2025
0cccac4
Fixed tweet.post() returning undefined on Error 226 (#796)
furkankoykiran Nov 23, 2025
1188b57
Merge pull request #810 from Rishikant181/error-handling
Rishikant181 Dec 16, 2025
43775d2
Bumped version
Rishikant181 Dec 16, 2025
5fbfb58
Updated all Twitter API endpoints
Rishikant181 Dec 23, 2025
1119326
Merge pull request #811 from Rishikant181/fix-endpoints-update
Rishikant181 Dec 23, 2025
bbb1eb4
Bumped version
Rishikant181 Dec 23, 2025
e791ca4
Fixed an issue where error would be thrown even when request was part…
Rishikant181 Dec 23, 2025
e52aa7a
Merge pull request #812 from Rishikant181/error-handler-fix
Rishikant181 Dec 23, 2025
66e2961
Bumped version
Rishikant181 Dec 23, 2025
3938c06
Fixed an issue where profile image was missing from deserialized user
Rishikant181 Dec 24, 2025
91a1040
Merge pull request #818 from Rishikant181/profile-image-fix
Rishikant181 Dec 24, 2025
adacaea
Bumped version
Rishikant181 Dec 24, 2025
1ce64e1
feat(tweet): add media id to TweetMedia
steven-vvv Dec 30, 2025
82b552b
Merge pull request #821 from steven-vvv/dev
Rishikant181 Dec 30, 2025
62c5758
Linted and formatted code
Rishikant181 Dec 30, 2025
9b441f6
Fixed merge conflicts
Rishikant181 Jan 7, 2026
2bdbc19
Bumped version
Rishikant181 Jan 7, 2026
0a71095
Enabled query to bookmark folders and their respective tweets
andre-cavalheiro Dec 23, 2025
cec1c40
Bookmark folders clean-up: Linting, formatting, documentation, etc
andre-cavalheiro Dec 23, 2025
5bf7fea
Removed duplicated properties to pass CI
andre-cavalheiro Jan 8, 2026
04c4264
Merge pull request #815 from andre-cavalheiro/feat/bookmark_folder_su…
Rishikant181 Jan 9, 2026
bebfc59
fix(playground): removing workspace in favor `file:../`
vachmara Jan 9, 2026
da111d7
docs(playground): use API_KEY instead of ACCESS_KEY
vachmara Jan 9, 2026
50c26b3
Merge pull request #825 from vachmara/chore/playground
Rishikant181 Jan 9, 2026
e92d36f
Updated README.md
Rishikant181 Jan 12, 2026
5461b9e
Added ability to search for users
Rishikant181 Jan 19, 2026
d1b96ce
Merge pull request #828 from Rishikant181/feature/user-search
Rishikant181 Jan 19, 2026
a6cd1f9
Bumped version
Rishikant181 Jan 19, 2026
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
21 changes: 13 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,43 @@ module.exports = {
'@typescript-eslint/naming-convention': [
'warn',
{
selector: ['class'],
selector: ['class', 'enum'],
format: ['PascalCase'],
},
{
selector: 'interface',
selector: ['interface'],
format: ['PascalCase'],
prefix: ['I'],
},
{
selector: 'enum',
selector: ['typeAlias'],
format: ['PascalCase'],
prefix: ['E'],
},
{
selector: ['variableLike', 'memberLike'],
selector: ['memberLike', 'variableLike'],
format: ['camelCase'],
leadingUnderscore: 'allow',
},
{
selector: ['variableLike', 'property'],
selector: ['memberLike'],
modifiers: ['private'],
format: ['camelCase'],
leadingUnderscore: 'require',
},
{
selector: ['variableLike', 'memberLike'],
selector: ['memberLike'],
modifiers: ['static', 'readonly'],
format: ['UPPER_CASE'],
},
{
selector: 'enumMember',
selector: ['enumMember'],
format: ['UPPER_CASE'],
},
{
selector: ['variable'],
modifiers: ['global'],
format: ['PascalCase'],
},
],
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
Expand Down
57 changes: 57 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: '🐛 Bug report'
description: Report a bug to help us improve Rettiwt-API.
labels: ['triage', 'bug']
body:
- type: markdown
attributes:
value: |
Before reporting a bug, please make sure you have read through our [documentation](https://rishikant181.github.io/Rettiwt-API/) and checked existing [issues](https://github.com/Rishikant181/Rettiwt-API/issues?q=is%3Aissue%20is%3Aopen%20sort%3Aupdated-desc).
- type: textarea
id: env
attributes:
label: Environment
description: Please provide your environment details. You can use `node -v` and `npm list rettiwt-api` to fill this section.
placeholder: |
- Operating System: `Windows/Linux/macOS`
- Node Version: `v22.x.x` (Rettiwt-API requires NodeJS 20+)
- Rettiwt-API Version: `x.x.x`
- Package Manager: `npm/yarn/pnpm`
- CLI or Dependency: `CLI` or `Dependency`
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction
description: Please provide a minimal code snippet or CLI command that reproduces the issue. If possible, include the API_KEY usage and any relevant configuration. If the report is vague and has no reproduction, it may be closed automatically.
placeholder: |
```ts
import { Rettiwt } from 'rettiwt-api';
const rettiwt = new Rettiwt({ apiKey: '<API_KEY>' });
// ...
```
or
```sh
rettiwt <command> -k <API_KEY>
```
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, mention it here.
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional context
description: If applicable, add any other context, configuration, or screenshots here.
- type: textarea
id: logs
attributes:
label: Logs
description: |
Please copy-paste any error logs or stack traces here. Avoid screenshots if possible.
render: shell-script
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: '🚀 Feature request (Rettiwt-API)'
description: Suggest an idea or enhancement for Rettiwt-API.
labels: ['triage', 'enhancement', 'feature-request']
body:
- type: markdown
attributes:
value: |
Before requesting a feature, please make sure you have read through our [documentation](https://rishikant181.github.io/Rettiwt-API/) and checked existing [issues](https://github.com/Rishikant181/Rettiwt-API/issues?q=is%3Aissue%20is%3Aopen%20sort%3Aupdated-desc).
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of the feature or enhancement. Include possible use cases, alternatives, and links to any prototype or related module.
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional context
description: If applicable, add any other context, configuration, or screenshots here.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: '💬 Question (Rettiwt-API)'
description: Ask a question about Rettiwt-API.
labels: ['question']
body:
- type: markdown
attributes:
value: |
Before asking a question, please make sure you have read through our [documentation](https://rishikant181.github.io/Rettiwt-API/) and checked existing [issues](https://github.com/Rishikant181/Rettiwt-API/issues?q=is%3Aissue%20is%3Aopen%20sort%3Aupdated-desc).
- type: textarea
id: description
attributes:
label: Description
description: Please provide a clear and concise question. Include any relevant context, code snippets, or links to documentation.
validations:
required: true
32 changes: 32 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## 🔗 Related Issue

<!-- Reference any related issue or discussion, e.g. "Closes #123" -->

## ❓ Type of Change

<!-- Select all that apply -->

- [ ] 📖 Documentation (docs, README, or comments)
- [ ] 🐞 Bug fix (non-breaking fix for an issue)
- [ ] 👌 Enhancement (improvement to existing functionality)
- [ ] ✨ New feature (adds new functionality)
- [ ] 🧹 Chore (build, tooling, dependencies)
- [ ] ⚠️ Breaking change (affects existing usage)

## 📚 Description

<!--
Describe your changes and their motivation.
What problem does this solve? Any relevant context for Rettiwt-API?
-->

## 📝 Checklist

- [ ] Issue/discussion linked above.
- [ ] Documentation updated (if needed).
- [ ] Code follows project conventions and ESLint rules.
- [ ] No sensitive data or credentials are included.

<!--
If you need help, mention @Rishikant181 or ask in the discussions.
-->
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci

on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [22]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install node
uses: actions/setup-node@v4

- name: Install dependencies
run: npm install

- name: Run Format check
run: npm run format:check

- name: Run Lint check
run: npm run lint:check
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ dist

# VSCode configs
.vscode
.devcontainer

# Stores VSCode versions used for testing VSCode extensions
.vscode-test
Expand All @@ -138,4 +139,7 @@ test
# Documentation
docs

.idea
.idea

# Debugging
src/debug.ts
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.21.0
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

Loading