{"_id":"x-api-sdk-ts","_rev":"12-661b011b1b2a1e1a80810e7bd280b5e9","name":"x-api-sdk-ts","dist-tags":{"latest":"2.0.5"},"versions":{"0.1.0":{"name":"x-api-sdk-ts","version":"0.1.0","keywords":["twitter","x","api","sdk","typescript"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@0.1.0","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-sdk-ts/issues"},"dist":{"shasum":"d8139d5be93e4f082dbb1d2b4e51cefab1cec044","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-0.1.0.tgz","fileCount":117,"integrity":"sha512-RZS31BCcrnNjwK8vszewqqdytOllR3jXfJfTPUbPpsSnozUN3a3Q3K4LRb/YejyT1c9a8M2owEnbHEciBMzVDw==","signatures":[{"sig":"MEUCIG23Z+dj1xQB3l6jraQXP6c9dVsHAU1nhYua81da5Zc0AiEAxYb8iXKZIaQiq3HVRBb1k7HwrFZrHtQmByTjO/ZwIqM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":112821},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"5857efa09eb349c5e0dd71cbe72d5fbcb57eab0a","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/micka33/x-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_0.1.0_1743337656238_0.30309113219799655","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"x-api-sdk-ts","version":"0.1.1","keywords":["twitter","x","api","sdk","typescript"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@0.1.1","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-sdk-ts/issues"},"dist":{"shasum":"0c93cd6a99056f3035735fe3c2e09a06cc6a90ee","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-0.1.1.tgz","fileCount":117,"integrity":"sha512-QUZI9Ywgo1/c2A84lSHOtmjMNROOz6GV3L6E4sBdqJW+Y+zoO+Gb/Eqs7o8enGQChMGbDKFZh5cdhJbGj7UrDQ==","signatures":[{"sig":"MEYCIQCuGZAMADsojxIwT80AhAjU2EmbXFpA2wmSRisCn8j2+gIhANCD7f6rzj4yCK/9pvGv+aikq7EYyQqgbE3d9XccQnmL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":112799},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"9204313dc27c4de46b204cdca9898d3bcc0edf21","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/micka33/x-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_0.1.1_1743339268118_0.09144274671923114","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"x-api-sdk-ts","version":"0.1.2","keywords":["twitter","x","api","sdk","typescript"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@0.1.2","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-sdk-ts/issues"},"dist":{"shasum":"00f462c2646ff56670056ef2e8e1b4ab33d38caf","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-0.1.2.tgz","fileCount":117,"integrity":"sha512-bMc1BFBN1TBVp06p+8n0/eJsX0YUAp4oyFOZ7wRkHEGyf85u3muqjQ1EnI1a1JyWBWhGfaNaIKOTADPshUEujw==","signatures":[{"sig":"MEUCIQCA8QFvGwljGJf6QtUglj/HJqFQCNAa+rojZsG+CmW3agIgNMkgcSkBD/pYaH4Ffr3LhJalt6S2XDG7dUsQoiYYyo0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":113051},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"b15a593d94b2a7bd62051776a8bddf29a9c8085e","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/micka33/x-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_0.1.2_1743782218015_0.7776425536623492","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"x-api-sdk-ts","version":"0.1.3","keywords":["twitter","x","api","sdk","typescript"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@0.1.3","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-sdk-ts/issues"},"dist":{"shasum":"a9cdc14b093affa06cf3494cc2db3ad3fb810032","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-0.1.3.tgz","fileCount":117,"integrity":"sha512-Kzbjissc/XJz7pK8Hgl7HuV4Ez0hGDmuoEEflrHC/dm1PZ9oq5yfBa9XrTtg9wfsnTWjT+BTYv29f0CbLCT0kQ==","signatures":[{"sig":"MEUCIHO0Eof7c2AiZENlgKNKe41/x6OQNuAI9NUygMw23OgkAiEAjg2vlZ1y6GsZ87OmYc0q0WQBXK9as2UxIiW6Ka+lR50=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":113132},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"471520003b9c67a260ffdcd5f6248a155f55970f","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/micka33/x-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_0.1.3_1743783293118_0.7774373627788458","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"x-api-sdk-ts","version":"1.0.0","keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@1.0.0","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-api-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"dist":{"shasum":"b62a60d9d3c8f988083efe54ee76d7c8f29b77e5","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-1.0.0.tgz","fileCount":123,"integrity":"sha512-UQ8tCcycYSW1xsqSAd3JrLFMZhwCmyWHM5z20XtLxpk6FAsnas67zpuHuovMNKHkDQ5zYuwIuzgL7WYNicZvEw==","signatures":[{"sig":"MEUCIDcVQfELgdIMHXVjeehGcfRguKDBa7zV4S4jn9sY0dWMAiEAw+zOIptQoMyNgYX/R8MWvCgqvgCw4ovrcO8LGeE74+Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":120607},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"d5a9ff06628847b691ca715876f9e379701f5a12","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/Micka33/x-api-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_1.0.0_1743848274641_0.6656624073576642","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"x-api-sdk-ts","version":"1.0.1","keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@1.0.1","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-api-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"dist":{"shasum":"d7778cd4b5610b311bb95d956b18ffea4a1e08cd","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-1.0.1.tgz","fileCount":123,"integrity":"sha512-tp2qbGlu9wVjnguC1kQaL0RDrIIQUzEtqpf7nG9uToiiy24VJRSWB7ZDsU3Pb/nyAA86ktdPdyjJZspAKpRatA==","signatures":[{"sig":"MEYCIQDNW4tugYwol4SyhrcFcU3dMwiESOYf2qqkC+cCYkmCgQIhANKCQmOgOy8t4WgD+iMdBDPCyJQwR/bgA2sTEOO69q3n","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":120770},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"501edd5f487afcd489c5c6e8428ad6d6cd797135","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/Micka33/x-api-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_1.0.1_1743857089195_0.0517498651825794","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"x-api-sdk-ts","version":"2.0.0","keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@2.0.0","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-api-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"dist":{"shasum":"da0e1cd46d2e3d0f97295e6705febcb744fa2b48","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-2.0.0.tgz","fileCount":126,"integrity":"sha512-oiPgYneo2TAJCx+hQYB2AUo2F3fi9g/Aq6XYvMguzj3VkYimrmSu5GrJ743j/hkUCKHIMuhC2PRVXOQ6mNSo6A==","signatures":[{"sig":"MEQCIHOeavY5NFsEJvaeVbf/0cottFxU5du+HZhW1JTyfkA+AiA50WHRtznDu+h85RGi7jE7jklMPGYKXVNXSAPrQ2Jheg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130786},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=21.0.0"},"gitHead":"78ac42927947dc9eb41c461ba9a2b13ba8478ed1","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/Micka33/x-api-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_2.0.0_1744018615161_0.7092482727590101","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"x-api-sdk-ts","version":"2.0.1","keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@2.0.1","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-api-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"dist":{"shasum":"049464a1ffd0250354040e5f327e5075d9a3e53d","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-2.0.1.tgz","fileCount":126,"integrity":"sha512-f0q0iX9nceeEAswRex648P6o3OG/cG331CTeUx9qXVl9YC3JoSA5Ml9qJu17mNORONGxwawxGXlpCVEKy4c4NQ==","signatures":[{"sig":"MEUCIExE7Zx4NQF7Vb/Lj4TWyO1fbCL4pQDcXIWsQnsUHKu5AiEAq9ux37kpa/GdJfQ8rnAAQ3+FBwzD3dIfA4lM3q7ZduA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130813},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=21.0.0"},"gitHead":"58dd5d2fe695e2b65f20ded740b5e8ff83509b2e","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/Micka33/x-api-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_2.0.1_1744051944834_0.2608533843634946","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"x-api-sdk-ts","version":"2.0.2","keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@2.0.2","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-api-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"dist":{"shasum":"26d6c2f85a65d9c07a5c5b4f8b264a56dfcbfce6","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-2.0.2.tgz","fileCount":126,"integrity":"sha512-2ofX0VG4bDkE5ZlluR+ZeDucn/g/E14Ll8ylwdpJw1Pd3AvZieupmD07wMov9RXPAL7yxoi5Vr9WhDwY4DlB7Q==","signatures":[{"sig":"MEUCIDe4+PtksMK8nk3GzwgTLcs4Vf1n8AG7Y8gi41XxapYMAiEAmZeHzim2vvlAG6Ui/aFWtWULLSE1eS87pnrhuTpwpsY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":131558},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=21.0.0"},"gitHead":"1f3532ff64d51673b03f7e3e6753105c57296df7","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/Micka33/x-api-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_2.0.2_1744055619879_0.37439246423648687","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"x-api-sdk-ts","version":"2.0.3","keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@2.0.3","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-api-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"dist":{"shasum":"f4f6e8a8b222cb396dd570747fca51037ff1e618","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-2.0.3.tgz","fileCount":126,"integrity":"sha512-ZAS3PwRoJDk7ezJ2iYOBwxgr/qbgOKdX1gP+xV10sgZIbBfhaQqzmpZJOVoWM8gz5ERF5QC1NhvM4PMR7bd7UQ==","signatures":[{"sig":"MEYCIQCeTWpU/o2EkGNy7LCvy4tnlRMjtZVHgzzxXybHPGQFTAIhAOfhEcY2ybAVHgWMWSCzGETeLnLdijXCiXPRs3Wii0BU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":132455},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=21.0.0"},"gitHead":"e67d1a52d3f794de04a8e1e015fa848cb423473b","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/Micka33/x-api-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_2.0.3_1744104544383_0.7132572271571747","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"x-api-sdk-ts","version":"2.0.4","keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"author":{"name":"@mickaelcassy"},"license":"MIT","_id":"x-api-sdk-ts@2.0.4","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"homepage":"https://github.com/micka33/x-api-sdk-ts#readme","bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"dist":{"shasum":"ecf9d57bbbe96c18284fda111212ba6a9b29d4f5","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-2.0.4.tgz","fileCount":126,"integrity":"sha512-+QAtWxYjPB9nYaDjfnYnEeWnFqgLHULqCwZpGyx7n2OAEdJWj6+cdJlwQIUrilisXnXes7lSabfST4MOu9DnRg==","signatures":[{"sig":"MEUCIBeHa6qoxtc+ambQoDZJUG9szKrjKCglLcwaXQRY6eAKAiEAp7bHkvIq2qbf9TgS5fF1vPeuh3tQHmxbHUbvp7drDlU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134049},"jest":{"roots":["<rootDir>/src/","<rootDir>/tests/"],"rootDir":".","testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","moduleNameMapper":{"^api/(.*)$":["<rootDir>/src/api/$1"],"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"]},"coverageDirectory":"../coverage","coverageThreshold":{"global":{"lines":100,"branches":100,"functions":100,"statements":100}},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=21.0.0"},"gitHead":"4004a7c989fadb366cb2026505c3396fa64af083","scripts":{"docs":"typedoc --out docs/api src","lint":"eslint 'src/**/*.ts'","test":"jest","build":"npm run clean && tsc","clean":"rm -rf dist tsconfig.tsbuildinfo","format":"prettier --write 'src/**/*.ts'","prepare":"npm run build","test:cov":"jest --coverage","test:watch":"jest --watch","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"repository":{"url":"git+https://github.com/Micka33/x-api-sdk-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript Library for the X (ex-twitter) API V2","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"joi":"^17.13.3","jest":"^29.7.0","nock":"^14.0.1","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","globals":"^15.14.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.4.2","readline":"^1.3.0","@eslint/js":"^9.18.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^22.10.7","tsconfig-paths":"^4.2.0","@eslint/eslintrc":"^3.2.0","typescript-eslint":"^8.20.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/x-api-sdk-ts_2.0.4_1744130070494_0.08028592645468247","host":"s3://npm-registry-packages-npm-production"}},"2.0.5":{"name":"x-api-sdk-ts","version":"2.0.5","description":"TypeScript Library for the X (ex-twitter) API V2","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist tsconfig.tsbuildinfo","build":"npm run clean && tsc","build:watch":"npm run build -- --watch","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","lint":"eslint 'src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","docs":"typedoc --out docs/api src","prepare":"npm run build"},"keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"author":{"name":"@mickaelcassy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Micka33/x-api-sdk-ts.git"},"bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"homepage":"https://github.com/micka33/x-api-sdk-ts#readme","dependencies":{},"devDependencies":{"@eslint/eslintrc":"^3.2.0","@eslint/js":"^9.18.0","@types/jest":"^29.5.14","@types/node":"^22.10.7","axios":"^1.8.3","dotenv":"^16.4.7","eslint":"^9.18.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2","globals":"^15.14.0","jest":"^29.7.0","joi":"^17.13.3","nock":"^14.0.1","prettier":"^3.4.2","readline":"^1.3.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","typescript":"^5.7.3","typescript-eslint":"^8.20.0"},"engines":{"node":">=21.0.0"},"jest":{"moduleNameMapper":{"^src/(.*)$":["<rootDir>/src/$1"],"^auth/(.*)$":["<rootDir>/src/auth/$1"],"^api/(.*)$":["<rootDir>/src/api/$1"],"^interfaces/(.*)$":["<rootDir>/src/interfaces/$1"],"^types/(.*)$":["<rootDir>/src/types/$1"],"^utils/(.*)$":["<rootDir>/src/utils/$1"]},"moduleFileExtensions":["js","json","ts"],"rootDir":".","roots":["<rootDir>/src/","<rootDir>/tests/"],"testRegex":".*\\.(spec|test)\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["src/**/*.ts","!src/**/*.d.ts","!src/types/**/*.ts","!src/index.ts"],"coverageDirectory":"../coverage","coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"testEnvironment":"node"},"_id":"x-api-sdk-ts@2.0.5","gitHead":"52608fc16e4f21fcbb07d9828137df2bcca57438","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-BDfTMoLNpiCys4GGV6EII5klpgbWTbwfftzPhMuWTcCi0u4zs/DMxGRa9mRPqyZsxg5C2pSLVSEDesEEckpFKA==","shasum":"88b7e72c3056d579249a633dcd924445dabfeb66","tarball":"https://registry.npmjs.org/x-api-sdk-ts/-/x-api-sdk-ts-2.0.5.tgz","fileCount":126,"unpackedSize":135868,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAZsn2BJvY6AWj4bCpqYY2zaqCgrAh102tPUUqIyKDRDAiEAjJ7gJfNwA9fphY42rAfeRaND+OOnqbk4Y/8NWU7tB3M="}]},"_npmUser":{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"},"directories":{},"maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x-api-sdk-ts_2.0.5_1744394486082_0.5512646400206311"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-30T12:27:36.237Z","modified":"2025-04-11T18:01:26.487Z","0.1.0":"2025-03-30T12:27:36.502Z","0.1.1":"2025-03-30T12:54:28.418Z","0.1.2":"2025-04-04T15:56:58.210Z","0.1.3":"2025-04-04T16:14:53.322Z","1.0.0":"2025-04-05T10:17:54.852Z","1.0.1":"2025-04-05T12:44:49.405Z","2.0.0":"2025-04-07T09:36:55.454Z","2.0.1":"2025-04-07T18:52:25.028Z","2.0.2":"2025-04-07T19:53:40.064Z","2.0.3":"2025-04-08T09:29:04.552Z","2.0.4":"2025-04-08T16:34:30.728Z","2.0.5":"2025-04-11T18:01:26.315Z"},"bugs":{"url":"https://github.com/micka33/x-api-sdk-ts/issues"},"author":{"name":"@mickaelcassy"},"license":"MIT","homepage":"https://github.com/micka33/x-api-sdk-ts#readme","keywords":["twitter","x","api","sdk","typescript","typed","types","v2","twitter-api","x-api"],"repository":{"type":"git","url":"git+https://github.com/Micka33/x-api-sdk-ts.git"},"description":"TypeScript Library for the X (ex-twitter) API V2","maintainers":[{"name":"mickael_cassy","email":"mickael.cassy@gmail.com"}],"readme":"<h1 align=\"center\">x-api-sdk-ts</h1>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/x-api-sdk-ts\" target=\"_blank\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/v/x-api-sdk-ts?sanitize=true\" alt=\"Version\" /></a>\n  <a href=\"https://github.com/Micka33/x-api-sdk-ts/actions/workflows/node.js.yml\" target=\"_blank\" rel=\"nofollow\"><img alt=\"Node.js Tests Passing\" src=\"https://github.com/Micka33/x-api-sdk-ts/actions/workflows/node.js.yml/badge.svg\" /></a>\n  <a href=\"https://www.npmjs.com/package/x-api-sdk-ts\" target=\"_blank\" rel=\"nofollow\"><img src=\"https://badgen.net/npm/dt/x-api-sdk-ts\" alt=\"PRs\" /></a>\n</p>\n<p align=\"center\">\n  <a href=\"https://bundlephobia.com/package/x-api-sdk-ts\" target=\"_blank\" rel=\"nofollow\"><img src=\"https://badgen.net/bundlephobia/dependency-count/x-api-sdk-ts\" alt=\"Dependency Count\" /></a>\n  <a href=\"https://github.com/Micka33/x-api-sdk-ts/graphs/contributors\" target=\"_blank\" rel=\"nofollow\"><img alt=\"GitHub Contributors\" src=\"https://img.shields.io/github/contributors/Micka33/x-api-sdk-ts\" /></a>\n  <a href=\"https://www.npmjs.com/package/x-api-sdk-ts\" target=\"_blank\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/l/x-api-sdk-ts?sanitize=true\" alt=\"License\" /></a>\n  <a href=\"https://github.com/Micka33/x-api-sdk-ts/issues/new/choose\" target=\"_blank\" rel=\"nofollow\"><img src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"PRs\" /></a>\n</p>\n\n<p align=\"center\">Simple and versatile typescript SDK for X Api.</p>\n\n<p align=\"center\">\n  <a href=\"https://x.com/DrHistoryX\" target=\"_blank\">See it in action on X(Twitter)</a>\n</p>\n\n<p align=\"center\">Love the project? Please consider <a href=\"https://www.paypal.com/donate/?hosted_button_id=JQTSZBUL54LHG\" target=\"_blank\">donating</a> to help it improve!</p>\n\n## Overview\n\nx-api-sdk-ts is a flexible TypeScript SDK for the X API, providing a type-safe, and intuitive interface to interact with v2 endpoints.  \n\n*Twitter's v1.1 endpoints are not supported, but can be implemented. if this is something you need, please open an issue.*  \n\nNB: Official X library is currently not ready for production. The documentation is lacking, but still, it's worth checking it out: [twitter-api-typescript-sdk](https://github.com/xdevplatform/twitter-api-typescript-sdk).\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Generate OAuth2 token from console](#generate-oauth2-token-from-console)\n- [Understanding the responses](#understanding-the-responses)\n- [Examples](#examples)\n  - [Scripts](#scripts)\n  - [Authentication](#authentication)\n  - [Get accessToken and refreshToken](#get-accesstoken-and-refreshtoken)\n  - [Set accessToken and refreshToken](#set-accesstoken-and-refreshtoken)\n  - [Check for successful response](#check-for-successful-response)\n    - [Usage example](#usage-example)\n  - [Media Upload](#media-upload)\n    - [Reduce your API usage](#reduce-your-api-usage)\n      - [Upload with custom chunk size](#upload-with-custom-chunk-size)\n      - [Upload with custom minimum waiting time](#upload-with-custom-minimum-waiting-time)\n  - [Get Media Upload Status](#get-media-upload-status)\n  - [Add Metadata to Media](#add-metadata-to-media)\n  - [Create Post](#create-post)\n  - [Delete Post](#delete-post)\n  - [Get One Post](#get-one-post)\n  - [Get Several Posts](#get-several-posts)\n  - [Like Post](#like-post)\n  - [Get Authenticated User Info](#get-authenticated-user-info)\n- [Change Base URL](#change-base-url)\n- [Change HTTP Adapter](#change-http-adapter)\n  - [Using Axios](#using-axios)\n  - [Create a custom HTTP adapter](#create-a-custom-http-adapter)\n- [Development Documentation](#development-documentation)\n- [Contributing](#contributing)\n- [Code of Conduct](#code-of-conduct)\n- [License](#license)\n\n## Features\n\n- Full TypeScript type definitions and JSDOC of supported endpoints.\n- Partial implementation of Twitter API v2 endpoints.\n- Support authentication for OAuth 2.0 (v2).\n- Modular architecture for easy customization and extension using depencencies injection.\n- 0 dependencies.\n- Supported v2 endpoints:\n  - Media\n    - Upload\n    - Get status\n    - Add metadata\n  - Posts\n    - Create\n    - Get\n    - GetMultiple\n    - Delete\n  - Likes\n    - Add\n  - Users\n    - Get information about the authenticated user\n\n## Installation\n\n```bash\nnpm install x-api-sdk-ts\n```\n\n## Generate OAuth2 token from console\n\nSee: [examples/generate-oauth2-token.mjs](https://github.com/Micka33/x-api-sdk-ts/blob/main/examples/generate-oauth2-token.mjs)\n\n- **NB:**\n  - Set `clientId` to your App's OAuth 2.0 Client ID\n  - Set `clientSecret` to your App's OAuth 2.0 Client Secret\n  - Set `redirectUri` to your App's Callback URI / Redirect URL\n    - Or set your App's Callback URI / Redirect URL to `http://localhost:3000/oauth2/callback`\n\n## Understanding the responses\n\nThe SDK returns a response object with the following structure:\n```ts\n{\n  data: T | IXError | string | null | undefined; // the response data from twitter\n  ok: boolean; // HTTP code >= 200 && < 300\n  status: number; // HTTP code\n  headers: Headers; // response headers\n  rateLimitInfo: IRateLimitInfo; // brought from the response headers for convenience\n}\n```\n\nWhatever X Api returns will be stored in the `data` property.  \nAs example, if you call the `twitterClient.posts.create` method, the response data type `T` will be [`ICreatePostResponse`](https://github.com/Micka33/x-api-sdk-ts/blob/main/src/types/x-api/posts/create_post_response.ts) which maps directly to X's documentation [Creation of a Post](https://docs.x.com/x-api/posts/creation-of-a-post#response-data).\n\nThis is true for all the endpoints.\n\n## Examples\n\n### Scripts\n\nyou will find some examples in the [examples](https://github.com/Micka33/x-api-sdk-ts/tree/main/examples) folder.\n\n- [examples/basic-usage.ts](https://github.com/Micka33/x-api-sdk-ts/blob/main/examples/basic-usage.ts)\n- [examples/generate-oauth2-token.mjs](https://github.com/Micka33/x-api-sdk-ts/blob/main/examples/generate-oauth2-token.mjs)\n- [examples/media-upload.ts](https://github.com/Micka33/x-api-sdk-ts/blob/main/examples/media-upload.ts)\n\n### Authentication\n\nThe SDK supports OAuth 2.0 (for v2 API).  \n*It is designed to be easily extendable to support OAuth 1.0a (for v1.1 API) in the future. if this is something you need, please open an issue.*\n\n```typescript\nimport { TwitterApiScope, TwitterClient } from 'x-api-sdk-ts';\n\nconst clientId = 'input_client_id_here';\nconst clientSecret = 'input_client_secret_here';\nconst redirectUri = 'http://localhost:3000/oauth2/callback';\nconst scopes = [ TwitterApiScope.UsersRead, TwitterApiScope.TweetRead, TwitterApiScope.TweetWrite, TwitterApiScope.OfflineAccess, TwitterApiScope.MediaWrite ];\n\nconst accessToken = 'input_access_token_here';\nconst refreshToken = 'input_refresh_token_here';\nconst tokenExpiresAt = new Date('input_token_expires_at_here').getTime();\n\n// Initialize the Twitter client\nconst twitterClient = new TwitterClient({\n  oAuth2: { clientId, clientSecret, scopes, redirectUri, accessToken, refreshToken, tokenExpiresAt },\n});\n```\n\n### Get accessToken and refreshToken\n\n```typescript\nconst token = twitterClient.oAuth2.getToken();\nconst { accessToken, refreshToken, tokenExpiresAt } = token;\n```\n\n### Set accessToken and refreshToken\n\n```typescript\ntwitterClient.oAuth2.setToken(accessToken, refreshToken, tokenExpiresAt);\n```\n\n### Check for successful response\n\nFor convenience, the SDK provides 2 methods to check a response and assert its type.  \nThey are accessible from the `twitterClient` object.\n\n```typescript\ntwitterClient.isSuccessResponse<T>(response: RCResponse<T>): response is RCResponseSimple<T>;\ntwitterClient.isErrorResponse<T>(response: RCResponse<T>): response is RCResponse<never>;\n```\n\n#### Usage example\n\n```typescript\nconst postResponse = await twitterClient.posts.create('Hello World!');\nif (twitterClient.isSuccessResponse(postResponse)) {\n  // postResponse.data is of type ICreatePostResponse\n  console.log('Successfully posted tweet');\n}\nif (twitterClient.isErrorResponse(postResponse)) {\n  // postResponse.data is of type XError | string | undefined | null\n  console.log('Failed to post tweet');\n}\n```\n\n\n### Media Upload\n\nThe `upload` method automatically handles the chunked upload process. (Read more about it in [X API Documentation](https://docs.x.com/en/x-api/media/quickstart/media-upload-chunked))  \nThe file is uploaded in chunks of MIN(4MB, MAX(1MB, media.length / 10)).  \n\n```typescript\nconst mediaResponse = await twitterClient.media.upload(\n  fs.readFileSync('path/to/media/doge.jpeg'),\n  'image/jpeg',\n  'tweet_image'\n);\nif (!twitterClient.isSuccessResponse(mediaResponse)) {\n  console.error('Failed uploading media:', JSON.stringify(mediaResponse, null, 2));\n}\nconst mediaData = mediaResponse.data;\nconst mediaId = mediaData.data.id;\n```\n\n#### Reduce your API usage\n\nYou can reduce your API usage by specifying a custom chunk size and a custom minimum waiting time.\n\n##### Upload with custom chunk size\n\nYou can specify a custom chunk size as 5th parameter which can be bigger than 4MB.  \nNote that the API has a maximum chunk size of 4MB (confirmed for free api access).\n\n```typescript\nconst mediaResponse = await twitterClient.media.upload(\n  fs.readFileSync('path/to/media/doge.jpeg'),\n  'image/jpeg',\n  'tweet_image',\n  null,\n  1024 * 1024 * 3 // 3MB\n);\n```\n\n##### Upload with custom minimum waiting time\n\nYou can specify a custom minimum waiting time as 6th parameter.\n\nThe default minimum waiting time is 1 second and X provides a recommended minimum waiting time.  \nHowever, on a Free API access, it is recommended to wait as long as it makes sense for your use case, in order to reduce API Usage.  \nRead more about it in this issue: [#7](https://github.com/Micka33/x-api-sdk-ts/issues/7).\n\n```typescript\nconst mediaResponse = await twitterClient.media.upload(\n  fs.readFileSync('path/to/media/doge.jpeg'),\n  'image/jpeg',\n  'tweet_image',\n  null,\n  null,\n  60 // 60 seconds\n);\n```\n\n### Get Media Upload Status\n\n```typescript\nconst mediaResponse = await twitterClient.media.getStatus(mediaId);\nif (!twitterClient.isSuccessResponse(mediaResponse)) {\n  console.error('Failed get media upload status:', JSON.stringify(mediaResponse, null, 2));\n}\nconst mediaStatus = mediaResponse.data.data.processing_info.state; // 'succeeded' | 'in_progress' | 'pending' | 'failed'\n```\n\n### Add Metadata to Media\n\n```typescript\nconst mediaMetadataResponse = await twitterClient.media.addMetadata(\n  mediaId,                          // media id\n  'A smiling dog profile picture',  // alt text\n  true,                             // allow download\n  'u5BzatR15TZ04',                  // optional, original media id\n  'giphy',                          // optional, original media provider\n  'gallery'                         // optional, upload source\n);\n```\n\n### Create Post\n\n```typescript\nconst postReponse = await twitterClient.posts.create(\n  'Hello World!',\n  {\n    media: { media_ids: [mediaId] },\n  }\n);\nif (!twitterClient.isSuccessResponse(postReponse)) {\n  console.error('Failed creating new post with media:', JSON.stringify(postReponse, null, 2));\n}\nconst post = postResponse.data;\nconst postId = post.data.id;\n```\n\n### Delete Post\n\n```typescript\nawait twitterClient.posts.delete(postId);\n```\n\n### Get One Post\n\n```typescript\nconst postResponse = await twitterClient.posts.get(postId, {\n  mediaFields: ['alt_text', 'type', 'url', 'media_key'],\n});\nif (!twitterClient.isSuccessResponse(postReponse)) return;\nconst post = postResponse.data;\nconst postId = post.data.id;\nconst postText = post.data.text;\nconst postAuthorId = post.data.author_id;\nconst postUsername = post.data.username;\nconst postMediaKey = post.data.attachments?.media_keys?.[0];\nconst otherpostMediaKey = post.includes?.media?.[0].media_keys?.[0];\n```\n\n### Get Several Posts\n\n```typescript\nconst postsResponse = await twitterClient.posts.getMultiple([postId1, postId2, postId3], {\n  mediaFields: ['alt_text', 'type', 'url', 'media_key'],\n});\nif (!twitterClient.isSuccessResponse(postsResponse)) return;\nconst posts = postsResponse.data;\nconst post1 = posts.data[0];\nconst post2 = posts.data[1];\nconst post3 = posts.data[2];\n```\n\n### Like Post\n\n```typescript\nconst likeResponse = await twitterClient.likes.add(postId);\nif (!twitterClient.isSuccessResponse(likeResponse)) return;\nconst like = likeResponse.data;\nconst liked = like.data.liked;\n```\n\n### Get Authenticated User Info\n\n```typescript\nconst userResponse = await twitterClient.users.getMe();\nif (!twitterClient.isSuccessResponse(userResponse)) return;\nconst user = userResponse.data;\nconst userId = user.data.id;\nconst userName = user.data.name;\nconst userUsername = user.data.username;\n```\n\n## Change Base URL\n\nBy default the SDK uses the X API base URL: `https://api.x.com`.  \nYou can change the base URL by setting the `baseUrl` parameter in the constructor.\n\n```typescript\n\nconst twitterClient = new TwitterClient(config, { baseUrl: 'https://api.twitter.com' });\n```\n\n## Change HTTP Adapter\n\nBy default, the SDK uses the `FetchAdapter`, which is a thin wrapper around the native `fetch` API.  \nYou can change the HTTP adapter by setting the `httpAdapter` parameter in the constructor.\n\n### Using Axios\n\n`x-api-sdk-ts` comes bundled with an Axios adapter.  \nTo use it, you need to install the `axios` package.\n\n```bash\nnpm install axios\n```\n\nAnd then use it like this:\n\n```typescript\nimport axios from 'axios';\nimport { AxiosAdapter, TwitterApiScope, TwitterClient } from 'x-api-sdk-ts';\n\naxios.defaults.adapter = 'http'; // see: https://github.com/axios/axios?tab=readme-ov-file#-fetch-adapter\n\nconst config = {/**/};\nconst twitterClient = new TwitterClient(config, { httpAdapter: [AxiosAdapter, axios] });\n```\n\n### Create a custom HTTP adapter\n\nYou can create your own custom HTTP adapter by implementing the `IHttpAdapter` interface.\n\n```typescript\nimport { IHttpAdapter, IHttpFetchResponse } from 'x-api-sdk-ts';\n\nexport class CustomHttpAdapter implements IHttpAdapter {\n  constructor(private paramA: string, private paramB: number) {}\n  public fetch<T>(url: string, options?: RequestInit): Promise<IHttpFetchResponse<T>> {\n    return fetch(url, options);\n  }\n}\n```\n\nAnd then use it like this:\n\n```typescript\nconst twitterClient = new TwitterClient(config, {\n  httpAdapter: [CustomHttpAdapter, 'paramA', 'paramB']\n});\n```\n\n\n## Development Documentation\n\nSee [Development Documentation](https://github.com/Micka33/x-api-sdk-ts/blob/main/DEVELOPMENT.md).\n\n## Contributing\n\nContributions are welcome! Please see our [Contributing Guidelines](CONTRIBUTING.md) for more details.\n\n## Code of Conduct\n\nBy participating in this project, you agree to abide by our [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md"}