├── .cursor ├── mcp.json └── rules │ ├── cursor_rules.mdc │ ├── dev_workflow.mdc │ ├── self_improve.mdc │ └── taskmaster.mdc ├── .env.example ├── .gitignore ├── .roo ├── rules-architect │ └── architect-rules ├── rules-ask │ └── ask-rules ├── rules-boomerang │ └── boomerang-rules ├── rules-code │ └── code-rules ├── rules-debug │ └── debug-rules ├── rules-test │ └── test-rules └── rules │ ├── dev_workflow.md │ ├── roo_rules.md │ ├── self_improve.md │ └── taskmaster.md ├── .roomodes ├── .taskmasterconfig ├── .windsurfrules ├── CLAUDE.md ├── LICENSE ├── README.md ├── RELEASE_NOTES_v0.4.0.md ├── TECHNICAL_SUMMARY.md ├── node_modules ├── .bin │ ├── tsc │ └── tsserver ├── .package-lock.json ├── @modelcontextprotocol │ └── sdk │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ ├── cli.d.ts │ │ ├── cli.d.ts.map │ │ ├── cli.js │ │ ├── cli.js.map │ │ ├── client │ │ │ ├── index.d.ts │ │ │ ├── index.d.ts.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── sse.d.ts │ │ │ ├── sse.d.ts.map │ │ │ ├── sse.js │ │ │ ├── sse.js.map │ │ │ ├── stdio.d.ts │ │ │ ├── stdio.d.ts.map │ │ │ ├── stdio.js │ │ │ ├── stdio.js.map │ │ │ ├── websocket.d.ts │ │ │ ├── websocket.d.ts.map │ │ │ ├── websocket.js │ │ │ └── websocket.js.map │ │ ├── inMemory.d.ts │ │ ├── inMemory.d.ts.map │ │ ├── inMemory.js │ │ ├── inMemory.js.map │ │ ├── server │ │ │ ├── index.d.ts │ │ │ ├── index.d.ts.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── sse.d.ts │ │ │ ├── sse.d.ts.map │ │ │ ├── sse.js │ │ │ ├── sse.js.map │ │ │ ├── stdio.d.ts │ │ │ ├── stdio.d.ts.map │ │ │ ├── stdio.js │ │ │ └── stdio.js.map │ │ ├── shared │ │ │ ├── protocol.d.ts │ │ │ ├── protocol.d.ts.map │ │ │ ├── protocol.js │ │ │ ├── protocol.js.map │ │ │ ├── stdio.d.ts │ │ │ ├── stdio.d.ts.map │ │ │ ├── stdio.js │ │ │ ├── stdio.js.map │ │ │ ├── transport.d.ts │ │ │ ├── transport.d.ts.map │ │ │ ├── transport.js │ │ │ └── transport.js.map │ │ ├── types.d.ts │ │ ├── types.d.ts.map │ │ ├── types.js │ │ └── types.js.map │ │ └── package.json ├── @types │ └── node │ │ ├── LICENSE │ │ ├── README.md │ │ ├── assert.d.ts │ │ ├── assert │ │ └── strict.d.ts │ │ ├── async_hooks.d.ts │ │ ├── buffer.buffer.d.ts │ │ ├── buffer.d.ts │ │ ├── child_process.d.ts │ │ ├── cluster.d.ts │ │ ├── compatibility │ │ ├── disposable.d.ts │ │ ├── index.d.ts │ │ ├── indexable.d.ts │ │ └── iterators.d.ts │ │ ├── console.d.ts │ │ ├── constants.d.ts │ │ ├── crypto.d.ts │ │ ├── dgram.d.ts │ │ ├── diagnostics_channel.d.ts │ │ ├── dns.d.ts │ │ ├── dns │ │ └── promises.d.ts │ │ ├── dom-events.d.ts │ │ ├── domain.d.ts │ │ ├── events.d.ts │ │ ├── fs.d.ts │ │ ├── fs │ │ └── promises.d.ts │ │ ├── globals.d.ts │ │ ├── globals.typedarray.d.ts │ │ ├── http.d.ts │ │ ├── http2.d.ts │ │ ├── https.d.ts │ │ ├── index.d.ts │ │ ├── inspector.d.ts │ │ ├── module.d.ts │ │ ├── net.d.ts │ │ ├── os.d.ts │ │ ├── package.json │ │ ├── path.d.ts │ │ ├── perf_hooks.d.ts │ │ ├── process.d.ts │ │ ├── punycode.d.ts │ │ ├── querystring.d.ts │ │ ├── readline.d.ts │ │ ├── readline │ │ └── promises.d.ts │ │ ├── repl.d.ts │ │ ├── sea.d.ts │ │ ├── stream.d.ts │ │ ├── stream │ │ ├── consumers.d.ts │ │ ├── promises.d.ts │ │ └── web.d.ts │ │ ├── string_decoder.d.ts │ │ ├── test.d.ts │ │ ├── timers.d.ts │ │ ├── timers │ │ └── promises.d.ts │ │ ├── tls.d.ts │ │ ├── trace_events.d.ts │ │ ├── ts5.6 │ │ ├── buffer.buffer.d.ts │ │ ├── globals.typedarray.d.ts │ │ └── index.d.ts │ │ ├── tty.d.ts │ │ ├── url.d.ts │ │ ├── util.d.ts │ │ ├── v8.d.ts │ │ ├── vm.d.ts │ │ ├── wasi.d.ts │ │ ├── worker_threads.d.ts │ │ └── zlib.d.ts ├── bytes │ ├── History.md │ ├── LICENSE │ ├── Readme.md │ ├── index.js │ └── package.json ├── content-type │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── depd │ ├── History.md │ ├── LICENSE │ ├── Readme.md │ ├── index.js │ ├── lib │ │ └── browser │ │ │ └── index.js │ └── package.json ├── dotenv │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README-es.md │ ├── README.md │ ├── config.d.ts │ ├── config.js │ ├── lib │ │ ├── cli-options.js │ │ ├── env-options.js │ │ ├── main.d.ts │ │ └── main.js │ └── package.json ├── http-errors │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── iconv-lite │ ├── .github │ │ └── dependabot.yml │ ├── .idea │ │ ├── codeStyles │ │ │ ├── Project.xml │ │ │ └── codeStyleConfig.xml │ │ ├── iconv-lite.iml │ │ ├── inspectionProfiles │ │ │ └── Project_Default.xml │ │ ├── modules.xml │ │ └── vcs.xml │ ├── Changelog.md │ ├── LICENSE │ ├── README.md │ ├── encodings │ │ ├── dbcs-codec.js │ │ ├── dbcs-data.js │ │ ├── index.js │ │ ├── internal.js │ │ ├── sbcs-codec.js │ │ ├── sbcs-data-generated.js │ │ ├── sbcs-data.js │ │ ├── tables │ │ │ ├── big5-added.json │ │ │ ├── cp936.json │ │ │ ├── cp949.json │ │ │ ├── cp950.json │ │ │ ├── eucjp.json │ │ │ ├── gb18030-ranges.json │ │ │ ├── gbk-added.json │ │ │ └── shiftjis.json │ │ ├── utf16.js │ │ ├── utf32.js │ │ └── utf7.js │ ├── lib │ │ ├── bom-handling.js │ │ ├── index.d.ts │ │ ├── index.js │ │ └── streams.js │ └── package.json ├── inherits │ ├── LICENSE │ ├── README.md │ ├── inherits.js │ ├── inherits_browser.js │ └── package.json ├── raw-body │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── SECURITY.md │ ├── index.d.ts │ ├── index.js │ └── package.json ├── safer-buffer │ ├── LICENSE │ ├── Porting-Buffer.md │ ├── Readme.md │ ├── dangerous.js │ ├── package.json │ ├── safer.js │ └── tests.js ├── setprototypeof │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ ├── index.js │ ├── package.json │ └── test │ │ └── index.js ├── statuses │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── codes.json │ ├── index.js │ └── package.json ├── toidentifier │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── twitter-api-v2 │ ├── LICENSE │ ├── README.md │ ├── changelog.md │ ├── dist │ │ ├── cjs │ │ │ ├── client-mixins │ │ │ │ ├── form-data.helper.d.ts │ │ │ │ ├── form-data.helper.js │ │ │ │ ├── oauth1.helper.d.ts │ │ │ │ ├── oauth1.helper.js │ │ │ │ ├── oauth2.helper.d.ts │ │ │ │ ├── oauth2.helper.js │ │ │ │ ├── request-handler.helper.d.ts │ │ │ │ ├── request-handler.helper.js │ │ │ │ ├── request-maker.mixin.d.ts │ │ │ │ ├── request-maker.mixin.js │ │ │ │ ├── request-param.helper.d.ts │ │ │ │ └── request-param.helper.js │ │ │ ├── client.base.d.ts │ │ │ ├── client.base.js │ │ │ ├── client.subclient.d.ts │ │ │ ├── client.subclient.js │ │ │ ├── client │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ ├── readonly.d.ts │ │ │ │ ├── readonly.js │ │ │ │ ├── readwrite.d.ts │ │ │ │ └── readwrite.js │ │ │ ├── globals.d.ts │ │ │ ├── globals.js │ │ │ ├── helpers.d.ts │ │ │ ├── helpers.js │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── paginators │ │ │ │ ├── TwitterPaginator.d.ts │ │ │ │ ├── TwitterPaginator.js │ │ │ │ ├── dm.paginator.v1.d.ts │ │ │ │ ├── dm.paginator.v1.js │ │ │ │ ├── dm.paginator.v2.d.ts │ │ │ │ ├── dm.paginator.v2.js │ │ │ │ ├── followers.paginator.v1.d.ts │ │ │ │ ├── followers.paginator.v1.js │ │ │ │ ├── friends.paginator.v1.d.ts │ │ │ │ ├── friends.paginator.v1.js │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ ├── list.paginator.v1.d.ts │ │ │ │ ├── list.paginator.v1.js │ │ │ │ ├── list.paginator.v2.d.ts │ │ │ │ ├── list.paginator.v2.js │ │ │ │ ├── mutes.paginator.v1.d.ts │ │ │ │ ├── mutes.paginator.v1.js │ │ │ │ ├── paginator.v1.d.ts │ │ │ │ ├── paginator.v1.js │ │ │ │ ├── tweet.paginator.v1.d.ts │ │ │ │ ├── tweet.paginator.v1.js │ │ │ │ ├── tweet.paginator.v2.d.ts │ │ │ │ ├── tweet.paginator.v2.js │ │ │ │ ├── user.paginator.v1.d.ts │ │ │ │ ├── user.paginator.v1.js │ │ │ │ ├── user.paginator.v2.d.ts │ │ │ │ ├── user.paginator.v2.js │ │ │ │ ├── v2.paginator.d.ts │ │ │ │ └── v2.paginator.js │ │ │ ├── plugins │ │ │ │ ├── helpers.d.ts │ │ │ │ └── helpers.js │ │ │ ├── settings.d.ts │ │ │ ├── settings.js │ │ │ ├── stream │ │ │ │ ├── TweetStream.d.ts │ │ │ │ ├── TweetStream.js │ │ │ │ ├── TweetStreamEventCombiner.d.ts │ │ │ │ ├── TweetStreamEventCombiner.js │ │ │ │ ├── TweetStreamParser.d.ts │ │ │ │ └── TweetStreamParser.js │ │ │ ├── test │ │ │ │ ├── utils.d.ts │ │ │ │ └── utils.js │ │ │ ├── types │ │ │ │ ├── auth.types.d.ts │ │ │ │ ├── auth.types.js │ │ │ │ ├── client.types.d.ts │ │ │ │ ├── client.types.js │ │ │ │ ├── entities.types.d.ts │ │ │ │ ├── entities.types.js │ │ │ │ ├── errors.types.d.ts │ │ │ │ ├── errors.types.js │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ ├── plugins │ │ │ │ │ ├── client.plugins.types.d.ts │ │ │ │ │ ├── client.plugins.types.js │ │ │ │ │ ├── index.d.ts │ │ │ │ │ └── index.js │ │ │ │ ├── request-maker.mixin.types.d.ts │ │ │ │ ├── request-maker.mixin.types.js │ │ │ │ ├── responses.types.d.ts │ │ │ │ ├── responses.types.js │ │ │ │ ├── shared.types.d.ts │ │ │ │ ├── shared.types.js │ │ │ │ ├── v1 │ │ │ │ │ ├── dev-utilities.v1.types.d.ts │ │ │ │ │ ├── dev-utilities.v1.types.js │ │ │ │ │ ├── dm.v1.types.d.ts │ │ │ │ │ ├── dm.v1.types.js │ │ │ │ │ ├── entities.v1.types.d.ts │ │ │ │ │ ├── entities.v1.types.js │ │ │ │ │ ├── geo.v1.types.d.ts │ │ │ │ │ ├── geo.v1.types.js │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── index.js │ │ │ │ │ ├── list.v1.types.d.ts │ │ │ │ │ ├── list.v1.types.js │ │ │ │ │ ├── streaming.v1.types.d.ts │ │ │ │ │ ├── streaming.v1.types.js │ │ │ │ │ ├── trends.v1.types.d.ts │ │ │ │ │ ├── trends.v1.types.js │ │ │ │ │ ├── tweet.v1.types.d.ts │ │ │ │ │ ├── tweet.v1.types.js │ │ │ │ │ ├── user.v1.types.d.ts │ │ │ │ │ └── user.v1.types.js │ │ │ │ └── v2 │ │ │ │ │ ├── dm.v2.types.d.ts │ │ │ │ │ ├── dm.v2.types.js │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── index.js │ │ │ │ │ ├── list.v2.types.d.ts │ │ │ │ │ ├── list.v2.types.js │ │ │ │ │ ├── shared.v2.types.d.ts │ │ │ │ │ ├── shared.v2.types.js │ │ │ │ │ ├── spaces.v2.types.d.ts │ │ │ │ │ ├── spaces.v2.types.js │ │ │ │ │ ├── streaming.v2.types.d.ts │ │ │ │ │ ├── streaming.v2.types.js │ │ │ │ │ ├── tweet.definition.v2.d.ts │ │ │ │ │ ├── tweet.definition.v2.js │ │ │ │ │ ├── tweet.v2.types.d.ts │ │ │ │ │ ├── tweet.v2.types.js │ │ │ │ │ ├── user.v2.types.d.ts │ │ │ │ │ └── user.v2.types.js │ │ │ ├── v1 │ │ │ │ ├── client.v1.d.ts │ │ │ │ ├── client.v1.js │ │ │ │ ├── client.v1.read.d.ts │ │ │ │ ├── client.v1.read.js │ │ │ │ ├── client.v1.write.d.ts │ │ │ │ ├── client.v1.write.js │ │ │ │ ├── media-helpers.v1.d.ts │ │ │ │ └── media-helpers.v1.js │ │ │ ├── v2-labs │ │ │ │ ├── client.v2.labs.d.ts │ │ │ │ ├── client.v2.labs.js │ │ │ │ ├── client.v2.labs.read.d.ts │ │ │ │ ├── client.v2.labs.read.js │ │ │ │ ├── client.v2.labs.write.d.ts │ │ │ │ └── client.v2.labs.write.js │ │ │ └── v2 │ │ │ │ ├── client.v2.d.ts │ │ │ │ ├── client.v2.js │ │ │ │ ├── client.v2.read.d.ts │ │ │ │ ├── client.v2.read.js │ │ │ │ ├── client.v2.write.d.ts │ │ │ │ ├── client.v2.write.js │ │ │ │ ├── includes.v2.helper.d.ts │ │ │ │ └── includes.v2.helper.js │ │ └── esm │ │ │ ├── client-mixins │ │ │ ├── form-data.helper.d.ts │ │ │ ├── form-data.helper.js │ │ │ ├── oauth1.helper.d.ts │ │ │ ├── oauth1.helper.js │ │ │ ├── oauth2.helper.d.ts │ │ │ ├── oauth2.helper.js │ │ │ ├── request-handler.helper.d.ts │ │ │ ├── request-handler.helper.js │ │ │ ├── request-maker.mixin.d.ts │ │ │ ├── request-maker.mixin.js │ │ │ ├── request-param.helper.d.ts │ │ │ └── request-param.helper.js │ │ │ ├── client.base.d.ts │ │ │ ├── client.base.js │ │ │ ├── client.subclient.d.ts │ │ │ ├── client.subclient.js │ │ │ ├── client │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── readonly.d.ts │ │ │ ├── readonly.js │ │ │ ├── readwrite.d.ts │ │ │ └── readwrite.js │ │ │ ├── globals.d.ts │ │ │ ├── globals.js │ │ │ ├── helpers.d.ts │ │ │ ├── helpers.js │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── paginators │ │ │ ├── TwitterPaginator.d.ts │ │ │ ├── TwitterPaginator.js │ │ │ ├── dm.paginator.v1.d.ts │ │ │ ├── dm.paginator.v1.js │ │ │ ├── dm.paginator.v2.d.ts │ │ │ ├── dm.paginator.v2.js │ │ │ ├── followers.paginator.v1.d.ts │ │ │ ├── followers.paginator.v1.js │ │ │ ├── friends.paginator.v1.d.ts │ │ │ ├── friends.paginator.v1.js │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── list.paginator.v1.d.ts │ │ │ ├── list.paginator.v1.js │ │ │ ├── list.paginator.v2.d.ts │ │ │ ├── list.paginator.v2.js │ │ │ ├── mutes.paginator.v1.d.ts │ │ │ ├── mutes.paginator.v1.js │ │ │ ├── paginator.v1.d.ts │ │ │ ├── paginator.v1.js │ │ │ ├── tweet.paginator.v1.d.ts │ │ │ ├── tweet.paginator.v1.js │ │ │ ├── tweet.paginator.v2.d.ts │ │ │ ├── tweet.paginator.v2.js │ │ │ ├── user.paginator.v1.d.ts │ │ │ ├── user.paginator.v1.js │ │ │ ├── user.paginator.v2.d.ts │ │ │ ├── user.paginator.v2.js │ │ │ ├── v2.paginator.d.ts │ │ │ └── v2.paginator.js │ │ │ ├── plugins │ │ │ ├── helpers.d.ts │ │ │ └── helpers.js │ │ │ ├── settings.d.ts │ │ │ ├── settings.js │ │ │ ├── stream │ │ │ ├── TweetStream.d.ts │ │ │ ├── TweetStream.js │ │ │ ├── TweetStreamEventCombiner.d.ts │ │ │ ├── TweetStreamEventCombiner.js │ │ │ ├── TweetStreamParser.d.ts │ │ │ └── TweetStreamParser.js │ │ │ ├── test │ │ │ ├── utils.d.ts │ │ │ └── utils.js │ │ │ ├── types │ │ │ ├── auth.types.d.ts │ │ │ ├── auth.types.js │ │ │ ├── client.types.d.ts │ │ │ ├── client.types.js │ │ │ ├── entities.types.d.ts │ │ │ ├── entities.types.js │ │ │ ├── errors.types.d.ts │ │ │ ├── errors.types.js │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── plugins │ │ │ │ ├── client.plugins.types.d.ts │ │ │ │ ├── client.plugins.types.js │ │ │ │ ├── index.d.ts │ │ │ │ └── index.js │ │ │ ├── request-maker.mixin.types.d.ts │ │ │ ├── request-maker.mixin.types.js │ │ │ ├── responses.types.d.ts │ │ │ ├── responses.types.js │ │ │ ├── shared.types.d.ts │ │ │ ├── shared.types.js │ │ │ ├── v1 │ │ │ │ ├── dev-utilities.v1.types.d.ts │ │ │ │ ├── dev-utilities.v1.types.js │ │ │ │ ├── dm.v1.types.d.ts │ │ │ │ ├── dm.v1.types.js │ │ │ │ ├── entities.v1.types.d.ts │ │ │ │ ├── entities.v1.types.js │ │ │ │ ├── geo.v1.types.d.ts │ │ │ │ ├── geo.v1.types.js │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ ├── list.v1.types.d.ts │ │ │ │ ├── list.v1.types.js │ │ │ │ ├── streaming.v1.types.d.ts │ │ │ │ ├── streaming.v1.types.js │ │ │ │ ├── trends.v1.types.d.ts │ │ │ │ ├── trends.v1.types.js │ │ │ │ ├── tweet.v1.types.d.ts │ │ │ │ ├── tweet.v1.types.js │ │ │ │ ├── user.v1.types.d.ts │ │ │ │ └── user.v1.types.js │ │ │ └── v2 │ │ │ │ ├── dm.v2.types.d.ts │ │ │ │ ├── dm.v2.types.js │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ ├── list.v2.types.d.ts │ │ │ │ ├── list.v2.types.js │ │ │ │ ├── shared.v2.types.d.ts │ │ │ │ ├── shared.v2.types.js │ │ │ │ ├── spaces.v2.types.d.ts │ │ │ │ ├── spaces.v2.types.js │ │ │ │ ├── streaming.v2.types.d.ts │ │ │ │ ├── streaming.v2.types.js │ │ │ │ ├── tweet.definition.v2.d.ts │ │ │ │ ├── tweet.definition.v2.js │ │ │ │ ├── tweet.v2.types.d.ts │ │ │ │ ├── tweet.v2.types.js │ │ │ │ ├── user.v2.types.d.ts │ │ │ │ └── user.v2.types.js │ │ │ ├── v1 │ │ │ ├── client.v1.d.ts │ │ │ ├── client.v1.js │ │ │ ├── client.v1.read.d.ts │ │ │ ├── client.v1.read.js │ │ │ ├── client.v1.write.d.ts │ │ │ ├── client.v1.write.js │ │ │ ├── media-helpers.v1.d.ts │ │ │ └── media-helpers.v1.js │ │ │ ├── v2-labs │ │ │ ├── client.v2.labs.d.ts │ │ │ ├── client.v2.labs.js │ │ │ ├── client.v2.labs.read.d.ts │ │ │ ├── client.v2.labs.read.js │ │ │ ├── client.v2.labs.write.d.ts │ │ │ └── client.v2.labs.write.js │ │ │ └── v2 │ │ │ ├── client.v2.d.ts │ │ │ ├── client.v2.js │ │ │ ├── client.v2.read.d.ts │ │ │ ├── client.v2.read.js │ │ │ ├── client.v2.write.d.ts │ │ │ ├── client.v2.write.js │ │ │ ├── includes.v2.helper.d.ts │ │ │ └── includes.v2.helper.js │ └── package.json ├── typescript │ ├── LICENSE.txt │ ├── README.md │ ├── SECURITY.md │ ├── ThirdPartyNoticeText.txt │ ├── bin │ │ ├── tsc │ │ └── tsserver │ ├── lib │ │ ├── _tsc.js │ │ ├── _tsserver.js │ │ ├── _typingsInstaller.js │ │ ├── cancellationToken.js │ │ ├── cs │ │ │ └── diagnosticMessages.generated.json │ │ ├── de │ │ │ └── diagnosticMessages.generated.json │ │ ├── es │ │ │ └── diagnosticMessages.generated.json │ │ ├── fr │ │ │ └── diagnosticMessages.generated.json │ │ ├── it │ │ │ └── diagnosticMessages.generated.json │ │ ├── ja │ │ │ └── diagnosticMessages.generated.json │ │ ├── ko │ │ │ └── diagnosticMessages.generated.json │ │ ├── lib.d.ts │ │ ├── lib.decorators.d.ts │ │ ├── lib.decorators.legacy.d.ts │ │ ├── lib.dom.asynciterable.d.ts │ │ ├── lib.dom.d.ts │ │ ├── lib.dom.iterable.d.ts │ │ ├── lib.es2015.collection.d.ts │ │ ├── lib.es2015.core.d.ts │ │ ├── lib.es2015.d.ts │ │ ├── lib.es2015.generator.d.ts │ │ ├── lib.es2015.iterable.d.ts │ │ ├── lib.es2015.promise.d.ts │ │ ├── lib.es2015.proxy.d.ts │ │ ├── lib.es2015.reflect.d.ts │ │ ├── lib.es2015.symbol.d.ts │ │ ├── lib.es2015.symbol.wellknown.d.ts │ │ ├── lib.es2016.array.include.d.ts │ │ ├── lib.es2016.d.ts │ │ ├── lib.es2016.full.d.ts │ │ ├── lib.es2016.intl.d.ts │ │ ├── lib.es2017.arraybuffer.d.ts │ │ ├── lib.es2017.d.ts │ │ ├── lib.es2017.date.d.ts │ │ ├── lib.es2017.full.d.ts │ │ ├── lib.es2017.intl.d.ts │ │ ├── lib.es2017.object.d.ts │ │ ├── lib.es2017.sharedmemory.d.ts │ │ ├── lib.es2017.string.d.ts │ │ ├── lib.es2017.typedarrays.d.ts │ │ ├── lib.es2018.asyncgenerator.d.ts │ │ ├── lib.es2018.asynciterable.d.ts │ │ ├── lib.es2018.d.ts │ │ ├── lib.es2018.full.d.ts │ │ ├── lib.es2018.intl.d.ts │ │ ├── lib.es2018.promise.d.ts │ │ ├── lib.es2018.regexp.d.ts │ │ ├── lib.es2019.array.d.ts │ │ ├── lib.es2019.d.ts │ │ ├── lib.es2019.full.d.ts │ │ ├── lib.es2019.intl.d.ts │ │ ├── lib.es2019.object.d.ts │ │ ├── lib.es2019.string.d.ts │ │ ├── lib.es2019.symbol.d.ts │ │ ├── lib.es2020.bigint.d.ts │ │ ├── lib.es2020.d.ts │ │ ├── lib.es2020.date.d.ts │ │ ├── lib.es2020.full.d.ts │ │ ├── lib.es2020.intl.d.ts │ │ ├── lib.es2020.number.d.ts │ │ ├── lib.es2020.promise.d.ts │ │ ├── lib.es2020.sharedmemory.d.ts │ │ ├── lib.es2020.string.d.ts │ │ ├── lib.es2020.symbol.wellknown.d.ts │ │ ├── lib.es2021.d.ts │ │ ├── lib.es2021.full.d.ts │ │ ├── lib.es2021.intl.d.ts │ │ ├── lib.es2021.promise.d.ts │ │ ├── lib.es2021.string.d.ts │ │ ├── lib.es2021.weakref.d.ts │ │ ├── lib.es2022.array.d.ts │ │ ├── lib.es2022.d.ts │ │ ├── lib.es2022.error.d.ts │ │ ├── lib.es2022.full.d.ts │ │ ├── lib.es2022.intl.d.ts │ │ ├── lib.es2022.object.d.ts │ │ ├── lib.es2022.regexp.d.ts │ │ ├── lib.es2022.string.d.ts │ │ ├── lib.es2023.array.d.ts │ │ ├── lib.es2023.collection.d.ts │ │ ├── lib.es2023.d.ts │ │ ├── lib.es2023.full.d.ts │ │ ├── lib.es2023.intl.d.ts │ │ ├── lib.es2024.arraybuffer.d.ts │ │ ├── lib.es2024.collection.d.ts │ │ ├── lib.es2024.d.ts │ │ ├── lib.es2024.full.d.ts │ │ ├── lib.es2024.object.d.ts │ │ ├── lib.es2024.promise.d.ts │ │ ├── lib.es2024.regexp.d.ts │ │ ├── lib.es2024.sharedmemory.d.ts │ │ ├── lib.es2024.string.d.ts │ │ ├── lib.es5.d.ts │ │ ├── lib.es6.d.ts │ │ ├── lib.esnext.array.d.ts │ │ ├── lib.esnext.collection.d.ts │ │ ├── lib.esnext.d.ts │ │ ├── lib.esnext.decorators.d.ts │ │ ├── lib.esnext.disposable.d.ts │ │ ├── lib.esnext.full.d.ts │ │ ├── lib.esnext.intl.d.ts │ │ ├── lib.esnext.iterator.d.ts │ │ ├── lib.scripthost.d.ts │ │ ├── lib.webworker.asynciterable.d.ts │ │ ├── lib.webworker.d.ts │ │ ├── lib.webworker.importscripts.d.ts │ │ ├── lib.webworker.iterable.d.ts │ │ ├── pl │ │ │ └── diagnosticMessages.generated.json │ │ ├── pt-br │ │ │ └── diagnosticMessages.generated.json │ │ ├── ru │ │ │ └── diagnosticMessages.generated.json │ │ ├── tr │ │ │ └── diagnosticMessages.generated.json │ │ ├── tsc.js │ │ ├── tsserver.js │ │ ├── tsserverlibrary.d.ts │ │ ├── tsserverlibrary.js │ │ ├── typesMap.json │ │ ├── typescript.d.ts │ │ ├── typescript.js │ │ ├── typingsInstaller.js │ │ ├── watchGuard.js │ │ ├── zh-cn │ │ │ └── diagnosticMessages.generated.json │ │ └── zh-tw │ │ │ └── diagnosticMessages.generated.json │ └── package.json ├── undici-types │ ├── LICENSE │ ├── README.md │ ├── agent.d.ts │ ├── api.d.ts │ ├── balanced-pool.d.ts │ ├── cache.d.ts │ ├── client.d.ts │ ├── connector.d.ts │ ├── content-type.d.ts │ ├── cookies.d.ts │ ├── diagnostics-channel.d.ts │ ├── dispatcher.d.ts │ ├── env-http-proxy-agent.d.ts │ ├── errors.d.ts │ ├── eventsource.d.ts │ ├── fetch.d.ts │ ├── file.d.ts │ ├── filereader.d.ts │ ├── formdata.d.ts │ ├── global-dispatcher.d.ts │ ├── global-origin.d.ts │ ├── handlers.d.ts │ ├── header.d.ts │ ├── index.d.ts │ ├── interceptors.d.ts │ ├── mock-agent.d.ts │ ├── mock-client.d.ts │ ├── mock-errors.d.ts │ ├── mock-interceptor.d.ts │ ├── mock-pool.d.ts │ ├── package.json │ ├── patch.d.ts │ ├── pool-stats.d.ts │ ├── pool.d.ts │ ├── proxy-agent.d.ts │ ├── readable.d.ts │ ├── retry-agent.d.ts │ ├── retry-handler.d.ts │ ├── util.d.ts │ ├── webidl.d.ts │ └── websocket.d.ts ├── unpipe │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json └── zod │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ ├── lib │ ├── ZodError.d.ts │ ├── ZodError.js │ ├── __tests__ │ │ ├── Mocker.d.ts │ │ └── Mocker.js │ ├── benchmarks │ │ ├── datetime.d.ts │ │ ├── datetime.js │ │ ├── discriminatedUnion.d.ts │ │ ├── discriminatedUnion.js │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── ipv4.d.ts │ │ ├── ipv4.js │ │ ├── object.d.ts │ │ ├── object.js │ │ ├── primitives.d.ts │ │ ├── primitives.js │ │ ├── realworld.d.ts │ │ ├── realworld.js │ │ ├── string.d.ts │ │ ├── string.js │ │ ├── union.d.ts │ │ └── union.js │ ├── errors.d.ts │ ├── errors.js │ ├── external.d.ts │ ├── external.js │ ├── helpers │ │ ├── enumUtil.d.ts │ │ ├── enumUtil.js │ │ ├── errorUtil.d.ts │ │ ├── errorUtil.js │ │ ├── parseUtil.d.ts │ │ ├── parseUtil.js │ │ ├── partialUtil.d.ts │ │ ├── partialUtil.js │ │ ├── typeAliases.d.ts │ │ ├── typeAliases.js │ │ ├── util.d.ts │ │ └── util.js │ ├── index.d.ts │ ├── index.js │ ├── index.mjs │ ├── index.umd.js │ ├── locales │ │ ├── en.d.ts │ │ └── en.js │ ├── standard-schema.d.ts │ ├── standard-schema.js │ ├── types.d.ts │ └── types.js │ └── package.json ├── package-lock.json ├── package.json ├── repomix-output.txt ├── scripts ├── example_prd.txt └── prd.txt ├── src ├── client │ ├── socialdata.ts │ └── twitter.ts ├── handlers │ ├── directmessage.handlers.ts │ ├── engagement.handlers.ts │ ├── index.ts │ ├── list.handlers.ts │ ├── moderation.handlers.ts │ ├── search.handlers.ts │ ├── socialdata │ │ ├── analytics.handlers.ts │ │ ├── index.ts │ │ ├── network.handlers.ts │ │ ├── search.handlers.ts │ │ ├── thread.handlers.ts │ │ └── user.handlers.ts │ ├── tweet.handlers.ts │ └── user.handlers.ts ├── index.ts ├── prompts.ts ├── resources.ts ├── socialDataClient.ts ├── socialdata-tools.ts ├── tools.ts ├── twitterClient.ts ├── types.ts ├── types │ ├── handlers.ts │ └── socialdata.ts └── utils │ ├── response.ts │ ├── socialdata-response.ts │ └── twitter-response.ts └── tsconfig.json /.cursor/mcp.json: -------------------------------------------------------------------------------- 1 | { 2 | "mcpServers": { 3 | "task-master-ai": { 4 | "command": "npx", 5 | "args": [ 6 | "-y", 7 | "--package=task-master-ai", 8 | "task-master-ai" 9 | ], 10 | "env": { 11 | "ANTHROPIC_API_KEY": "ANTHROPIC_API_KEY_HERE", 12 | "PERPLEXITY_API_KEY": "PERPLEXITY_API_KEY_HERE", 13 | "OPENAI_API_KEY": "OPENAI_API_KEY_HERE", 14 | "GOOGLE_API_KEY": "GOOGLE_API_KEY_HERE", 15 | "XAI_API_KEY": "XAI_API_KEY_HERE", 16 | "OPENROUTER_API_KEY": "OPENROUTER_API_KEY_HERE", 17 | "MISTRAL_API_KEY": "MISTRAL_API_KEY_HERE", 18 | "AZURE_OPENAI_API_KEY": "AZURE_OPENAI_API_KEY_HERE", 19 | "OLLAMA_API_KEY": "OLLAMA_API_KEY_HERE" 20 | } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | # X (Twitter) API Credentials 2 | # Get these from the X Developer Portal (https://developer.twitter.com/en/portal/dashboard) 3 | X_API_KEY= 4 | X_API_SECRET= 5 | X_ACCESS_TOKEN= 6 | X_ACCESS_TOKEN_SECRET= -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directories 2 | node_modules/ 3 | 4 | # Environment variables 5 | .env 6 | 7 | # Build output 8 | dist/ 9 | 10 | # Logs 11 | *.log 12 | 13 | # IDE files 14 | .vscode/ 15 | .idea/ 16 | *.swp 17 | *.swo 18 | 19 | # OS files 20 | .DS_Store 21 | Thumbs.db 22 | 23 | # Added by Claude Task Master 24 | logs 25 | npm-debug.log* 26 | yarn-debug.log* 27 | yarn-error.log* 28 | dev-debug.log 29 | # Editor directories and files 30 | .idea 31 | .vscode 32 | *.suo 33 | *.ntvs* 34 | *.njsproj 35 | *.sln 36 | *.sw? 37 | # OS specific 38 | # Task files 39 | tasks.json 40 | tasks/ 41 | 42 | # Development tools and configs 43 | *repomix* 44 | .claude/ 45 | .cursor/ 46 | .roo/ 47 | .roomodes/ 48 | .taskmasterconfig 49 | .windsurfrules -------------------------------------------------------------------------------- /.taskmasterconfig: -------------------------------------------------------------------------------- 1 | { 2 | "models": { 3 | "main": { 4 | "provider": "anthropic", 5 | "modelId": "claude-3-7-sonnet-20250219", 6 | "maxTokens": 120000, 7 | "temperature": 0.2 8 | }, 9 | "research": { 10 | "provider": "perplexity", 11 | "modelId": "sonar-pro", 12 | "maxTokens": 8700, 13 | "temperature": 0.1 14 | }, 15 | "fallback": { 16 | "provider": "anthropic", 17 | "modelId": "claude-3-5-sonnet-20240620", 18 | "maxTokens": 8192, 19 | "temperature": 0.1 20 | } 21 | }, 22 | "global": { 23 | "logLevel": "info", 24 | "debug": false, 25 | "defaultSubtasks": 5, 26 | "defaultPriority": "medium", 27 | "projectName": "Taskmaster", 28 | "ollamaBaseUrl": "http://localhost:11434/api", 29 | "azureOpenaiBaseUrl": "https://your-endpoint.openai.azure.com/", 30 | "userId": "1234567890" 31 | } 32 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 MCP Twitter Server Contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /node_modules/.bin/tsc: -------------------------------------------------------------------------------- 1 | ../typescript/bin/tsc -------------------------------------------------------------------------------- /node_modules/.bin/tsserver: -------------------------------------------------------------------------------- 1 | ../typescript/bin/tsserver -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Anthropic, PBC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | //# sourceMappingURL=cli.d.ts.map -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts: -------------------------------------------------------------------------------- 1 | import { Transport } from "../shared/transport.js"; 2 | import { JSONRPCMessage } from "../types.js"; 3 | /** 4 | * Client transport for SSE: this will connect to a server using Server-Sent Events for receiving 5 | * messages and make separate POST requests for sending messages. 6 | * 7 | * This uses the EventSource API in browsers. You can install the `eventsource` package for Node.js. 8 | */ 9 | export declare class SSEClientTransport implements Transport { 10 | private _eventSource?; 11 | private _endpoint?; 12 | private _abortController?; 13 | private _url; 14 | private _eventSourceInit?; 15 | private _requestInit?; 16 | onclose?: () => void; 17 | onerror?: (error: Error) => void; 18 | onmessage?: (message: JSONRPCMessage) => void; 19 | constructor(url: URL, opts?: { 20 | eventSourceInit?: EventSourceInit; 21 | requestInit?: RequestInit; 22 | }); 23 | start(): Promise; 24 | close(): Promise; 25 | send(message: JSONRPCMessage): Promise; 26 | } 27 | //# sourceMappingURL=sse.d.ts.map -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../src/client/sse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAEnE;;;;;GAKG;AACH,qBAAa,kBAAmB,YAAW,SAAS;IAClD,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,OAAO,CAAC,SAAS,CAAC,CAAM;IACxB,OAAO,CAAC,gBAAgB,CAAC,CAAkB;IAC3C,OAAO,CAAC,IAAI,CAAM;IAClB,OAAO,CAAC,gBAAgB,CAAC,CAAkB;IAC3C,OAAO,CAAC,YAAY,CAAC,CAAc;IAEnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,eAAe,CAAC;QAAC,WAAW,CAAC,EAAE,WAAW,CAAA;KAAE;IAM7F,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyDhB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CA6BnD"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/client/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAS,MAAM,oBAAoB,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,UAgBmB,CAAC;AAE3D;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkB9D;AAED;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,SAAS;IACpD,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,OAAO,CAAC,gBAAgB,CAA0C;IAClE,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,aAAa,CAAwB;IAE7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,MAAM,EAAE,qBAAqB;IAIzC;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAuD5B;;;;OAIG;IACH,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAE1B;IAED,OAAO,CAAC,iBAAiB;IAenB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAM5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAc7C"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts: -------------------------------------------------------------------------------- 1 | import { Transport } from "../shared/transport.js"; 2 | import { JSONRPCMessage } from "../types.js"; 3 | /** 4 | * Client transport for WebSocket: this will connect to a server over the WebSocket protocol. 5 | */ 6 | export declare class WebSocketClientTransport implements Transport { 7 | private _socket?; 8 | private _url; 9 | onclose?: () => void; 10 | onerror?: (error: Error) => void; 11 | onmessage?: (message: JSONRPCMessage) => void; 12 | constructor(url: URL); 13 | start(): Promise; 14 | close(): Promise; 15 | send(message: JSONRPCMessage): Promise; 16 | } 17 | //# sourceMappingURL=websocket.d.ts.map -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/client/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAInE;;GAEG;AACH,qBAAa,wBAAyB,YAAW,SAAS;IACxD,OAAO,CAAC,OAAO,CAAC,CAAY;IAC5B,OAAO,CAAC,IAAI,CAAM;IAElB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,GAAG,EAAE,GAAG;IAIpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyChB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAW7C"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts: -------------------------------------------------------------------------------- 1 | import { Transport } from "./shared/transport.js"; 2 | import { JSONRPCMessage } from "./types.js"; 3 | /** 4 | * In-memory transport for creating clients and servers that talk to each other within the same process. 5 | */ 6 | export declare class InMemoryTransport implements Transport { 7 | private _otherTransport?; 8 | private _messageQueue; 9 | onclose?: () => void; 10 | onerror?: (error: Error) => void; 11 | onmessage?: (message: JSONRPCMessage) => void; 12 | /** 13 | * Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server. 14 | */ 15 | static createLinkedPair(): [InMemoryTransport, InMemoryTransport]; 16 | start(): Promise; 17 | close(): Promise; 18 | send(message: JSONRPCMessage): Promise; 19 | } 20 | //# sourceMappingURL=inMemory.d.ts.map -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"inMemory.d.ts","sourceRoot":"","sources":["../src/inMemory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C;;GAEG;AACH,qBAAa,iBAAkB,YAAW,SAAS;IACjD,OAAO,CAAC,eAAe,CAAC,CAAoB;IAC5C,OAAO,CAAC,aAAa,CAAwB;IAE7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAE9C;;OAEG;IACH,MAAM,CAAC,gBAAgB,IAAI,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAQ3D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAUtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAOtB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAWnD"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/inMemory.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"inMemory.js","sourceRoot":"","sources":["../src/inMemory.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAA9B;QAEU,kBAAa,GAAqB,EAAE,CAAC;IA6C/C,CAAC;IAvCC;;OAEG;IACH,MAAM,CAAC,gBAAgB;QACrB,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAChD,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAChD,eAAe,CAAC,eAAe,GAAG,eAAe,CAAC;QAClD,eAAe,CAAC,eAAe,GAAG,eAAe,CAAC;QAClD,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,KAAK;;QACT,gEAAgE;QAChE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrC,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YAC3C,IAAI,OAAO,EAAE,CAAC;gBACZ,MAAA,IAAI,CAAC,SAAS,qDAAG,OAAO,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,KAAK;;QACT,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACjC,MAAM,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,EAAE,CAAA,CAAC;QACrB,MAAA,IAAI,CAAC,OAAO,oDAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAuB;QAChC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACnC,CAAC;QAED,IAAI,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;YACnC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../src/server/sse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAMnE;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,SAAS;IAYhD,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,GAAG;IAZb,OAAO,CAAC,YAAY,CAAC,CAAiB;IACtC,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAE9C;;OAEG;gBAEO,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,cAAc;IAK7B;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB5B;;;;OAIG;IACG,iBAAiB,CACrB,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAAC,IAAI,CAAC;IAkChB;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAY9C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAUlD;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;CACF"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts: -------------------------------------------------------------------------------- 1 | import { Readable, Writable } from "node:stream"; 2 | import { JSONRPCMessage } from "../types.js"; 3 | import { Transport } from "../shared/transport.js"; 4 | /** 5 | * Server transport for stdio: this communicates with a MCP client by reading from the current process' stdin and writing to stdout. 6 | * 7 | * This transport is only available in Node.js environments. 8 | */ 9 | export declare class StdioServerTransport implements Transport { 10 | private _stdin; 11 | private _stdout; 12 | private _readBuffer; 13 | private _started; 14 | constructor(_stdin?: Readable, _stdout?: Writable); 15 | onclose?: () => void; 16 | onerror?: (error: Error) => void; 17 | onmessage?: (message: JSONRPCMessage) => void; 18 | _ondata: (chunk: Buffer) => void; 19 | _onerror: (error: Error) => void; 20 | /** 21 | * Starts listening for messages on stdin. 22 | */ 23 | start(): Promise; 24 | private processReadBuffer; 25 | close(): Promise; 26 | send(message: JSONRPCMessage): Promise; 27 | } 28 | //# sourceMappingURL=stdio.d.ts.map -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/server/stdio.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,SAAS;IAKlD,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IALjB,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,QAAQ,CAAS;gBAGf,MAAM,GAAE,QAAwB,EAChC,OAAO,GAAE,QAAyB;IAG5C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAG9C,OAAO,UAAW,MAAM,UAGtB;IACF,QAAQ,UAAW,KAAK,UAEtB;IAEF;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5B,OAAO,CAAC,iBAAiB;IAenB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAU7C"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts: -------------------------------------------------------------------------------- 1 | import { JSONRPCMessage } from "../types.js"; 2 | /** 3 | * Buffers a continuous stdio stream into discrete JSON-RPC messages. 4 | */ 5 | export declare class ReadBuffer { 6 | private _buffer?; 7 | append(chunk: Buffer): void; 8 | readMessage(): JSONRPCMessage | null; 9 | clear(): void; 10 | } 11 | export declare function deserializeMessage(line: string): JSONRPCMessage; 12 | export declare function serializeMessage(message: JSONRPCMessage): string; 13 | //# sourceMappingURL=stdio.d.ts.map -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/shared/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAEnE;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI3B,WAAW,IAAI,cAAc,GAAG,IAAI;IAepC,KAAK,IAAI,IAAI;CAGd;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEhE"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js: -------------------------------------------------------------------------------- 1 | import { JSONRPCMessageSchema } from "../types.js"; 2 | /** 3 | * Buffers a continuous stdio stream into discrete JSON-RPC messages. 4 | */ 5 | export class ReadBuffer { 6 | append(chunk) { 7 | this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk; 8 | } 9 | readMessage() { 10 | if (!this._buffer) { 11 | return null; 12 | } 13 | const index = this._buffer.indexOf("\n"); 14 | if (index === -1) { 15 | return null; 16 | } 17 | const line = this._buffer.toString("utf8", 0, index); 18 | this._buffer = this._buffer.subarray(index + 1); 19 | return deserializeMessage(line); 20 | } 21 | clear() { 22 | this._buffer = undefined; 23 | } 24 | } 25 | export function deserializeMessage(line) { 26 | return JSONRPCMessageSchema.parse(JSON.parse(line)); 27 | } 28 | export function serializeMessage(message) { 29 | return JSON.stringify(message) + "\n"; 30 | } 31 | //# sourceMappingURL=stdio.js.map -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/shared/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnE;;GAEG;AACH,MAAM,OAAO,UAAU;IAGrB,MAAM,CAAC,KAAa;QAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7E,CAAC;IAED,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAChD,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,KAAK;QACH,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAuB;IACtD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AACxC,CAAC"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/shared/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;;;;OAMG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7C;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC/C"} -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | //# sourceMappingURL=transport.js.map -------------------------------------------------------------------------------- /node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/shared/transport.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /node_modules/@types/node/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /node_modules/@types/node/assert/strict.d.ts: -------------------------------------------------------------------------------- 1 | declare module "assert/strict" { 2 | import { strict } from "node:assert"; 3 | export = strict; 4 | } 5 | declare module "node:assert/strict" { 6 | import { strict } from "node:assert"; 7 | export = strict; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@types/node/compatibility/disposable.d.ts: -------------------------------------------------------------------------------- 1 | // Polyfills for the explicit resource management types added in TypeScript 5.2. 2 | // TODO: remove once this package no longer supports TS 5.1, and replace with a 3 | // to TypeScript's disposable library in index.d.ts. 4 | 5 | interface SymbolConstructor { 6 | readonly dispose: unique symbol; 7 | readonly asyncDispose: unique symbol; 8 | } 9 | 10 | interface Disposable { 11 | [Symbol.dispose](): void; 12 | } 13 | 14 | interface AsyncDisposable { 15 | [Symbol.asyncDispose](): PromiseLike; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/@types/node/compatibility/index.d.ts: -------------------------------------------------------------------------------- 1 | // Declaration files in this directory contain types relating to TypeScript library features 2 | // that are not included in all TypeScript versions supported by DefinitelyTyped, but 3 | // which can be made backwards-compatible without needing `typesVersions`. 4 | // If adding declarations to this directory, please specify which versions of TypeScript require them, 5 | // so that they can be removed when no longer needed. 6 | 7 | /// 8 | /// 9 | /// 10 | -------------------------------------------------------------------------------- /node_modules/@types/node/compatibility/indexable.d.ts: -------------------------------------------------------------------------------- 1 | // Polyfill for ES2022's .at() method on string/array prototypes, added to TypeScript in 4.6. 2 | 3 | interface RelativeIndexable { 4 | at(index: number): T | undefined; 5 | } 6 | 7 | interface String extends RelativeIndexable {} 8 | interface Array extends RelativeIndexable {} 9 | interface ReadonlyArray extends RelativeIndexable {} 10 | interface Int8Array extends RelativeIndexable {} 11 | interface Uint8Array extends RelativeIndexable {} 12 | interface Uint8ClampedArray extends RelativeIndexable {} 13 | interface Int16Array extends RelativeIndexable {} 14 | interface Uint16Array extends RelativeIndexable {} 15 | interface Int32Array extends RelativeIndexable {} 16 | interface Uint32Array extends RelativeIndexable {} 17 | interface Float32Array extends RelativeIndexable {} 18 | interface Float64Array extends RelativeIndexable {} 19 | interface BigInt64Array extends RelativeIndexable {} 20 | interface BigUint64Array extends RelativeIndexable {} 21 | -------------------------------------------------------------------------------- /node_modules/@types/node/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module "constants" { 3 | import { constants as osConstants, SignalConstants } from "node:os"; 4 | import { constants as cryptoConstants } from "node:crypto"; 5 | import { constants as fsConstants } from "node:fs"; 6 | 7 | const exp: 8 | & typeof osConstants.errno 9 | & typeof osConstants.priority 10 | & SignalConstants 11 | & typeof cryptoConstants 12 | & typeof fsConstants; 13 | export = exp; 14 | } 15 | 16 | declare module "node:constants" { 17 | import constants = require("constants"); 18 | export = constants; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/@types/node/globals.typedarray.d.ts: -------------------------------------------------------------------------------- 1 | export {}; // Make this a module 2 | 3 | declare global { 4 | namespace NodeJS { 5 | type TypedArray = 6 | | Uint8Array 7 | | Uint8ClampedArray 8 | | Uint16Array 9 | | Uint32Array 10 | | Int8Array 11 | | Int16Array 12 | | Int32Array 13 | | BigUint64Array 14 | | BigInt64Array 15 | | Float32Array 16 | | Float64Array; 17 | type ArrayBufferView = 18 | | TypedArray 19 | | DataView; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/@types/node/stream/consumers.d.ts: -------------------------------------------------------------------------------- 1 | declare module "stream/consumers" { 2 | import { Blob as NodeBlob } from "node:buffer"; 3 | import { Readable } from "node:stream"; 4 | function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable): Promise; 5 | function text(stream: NodeJS.ReadableStream | Readable | AsyncIterable): Promise; 6 | function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable): Promise; 7 | function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterable): Promise; 8 | function json(stream: NodeJS.ReadableStream | Readable | AsyncIterable): Promise; 9 | } 10 | declare module "node:stream/consumers" { 11 | export * from "stream/consumers"; 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts5.6/globals.typedarray.d.ts: -------------------------------------------------------------------------------- 1 | export {}; // Make this a module 2 | 3 | declare global { 4 | namespace NodeJS { 5 | type TypedArray = 6 | | Uint8Array 7 | | Uint8ClampedArray 8 | | Uint16Array 9 | | Uint32Array 10 | | Int8Array 11 | | Int16Array 12 | | Int32Array 13 | | BigUint64Array 14 | | BigInt64Array 15 | | Float32Array 16 | | Float64Array; 17 | type ArrayBufferView = TypedArray | DataView; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/bytes/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2012-2014 TJ Holowaychuk 4 | Copyright (c) 2015 Jed Watson 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining 7 | a copy of this software and associated documentation files (the 8 | 'Software'), to deal in the Software without restriction, including 9 | without limitation the rights to use, copy, modify, merge, publish, 10 | distribute, sublicense, and/or sell copies of the Software, and to 11 | permit persons to whom the Software is furnished to do so, subject to 12 | the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /node_modules/bytes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bytes", 3 | "description": "Utility to parse a string bytes to bytes and vice-versa", 4 | "version": "3.1.2", 5 | "author": "TJ Holowaychuk (http://tjholowaychuk.com)", 6 | "contributors": [ 7 | "Jed Watson ", 8 | "Théo FIDRY " 9 | ], 10 | "license": "MIT", 11 | "keywords": [ 12 | "byte", 13 | "bytes", 14 | "utility", 15 | "parse", 16 | "parser", 17 | "convert", 18 | "converter" 19 | ], 20 | "repository": "visionmedia/bytes.js", 21 | "devDependencies": { 22 | "eslint": "7.32.0", 23 | "eslint-plugin-markdown": "2.2.1", 24 | "mocha": "9.2.0", 25 | "nyc": "15.1.0" 26 | }, 27 | "files": [ 28 | "History.md", 29 | "LICENSE", 30 | "Readme.md", 31 | "index.js" 32 | ], 33 | "engines": { 34 | "node": ">= 0.8" 35 | }, 36 | "scripts": { 37 | "lint": "eslint .", 38 | "test": "mocha --check-leaks --reporter spec", 39 | "test-ci": "nyc --reporter=lcov --reporter=text npm test", 40 | "test-cov": "nyc --reporter=html --reporter=text npm test" 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /node_modules/content-type/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.5 / 2023-01-29 2 | ================== 3 | 4 | * perf: skip value escaping when unnecessary 5 | 6 | 1.0.4 / 2017-09-11 7 | ================== 8 | 9 | * perf: skip parameter parsing when no parameters 10 | 11 | 1.0.3 / 2017-09-10 12 | ================== 13 | 14 | * perf: remove argument reassignment 15 | 16 | 1.0.2 / 2016-05-09 17 | ================== 18 | 19 | * perf: enable strict mode 20 | 21 | 1.0.1 / 2015-02-13 22 | ================== 23 | 24 | * Improve missing `Content-Type` header error message 25 | 26 | 1.0.0 / 2015-02-01 27 | ================== 28 | 29 | * Initial implementation, derived from `media-typer@0.3.0` 30 | -------------------------------------------------------------------------------- /node_modules/content-type/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2015 Douglas Christopher Wilson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/depd/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014-2018 Douglas Christopher Wilson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/dotenv/config.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/dotenv/config.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | require('./lib/main').config( 3 | Object.assign( 4 | {}, 5 | require('./lib/env-options'), 6 | require('./lib/cli-options')(process.argv) 7 | ) 8 | ) 9 | })() 10 | -------------------------------------------------------------------------------- /node_modules/dotenv/lib/cli-options.js: -------------------------------------------------------------------------------- 1 | const re = /^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/ 2 | 3 | module.exports = function optionMatcher (args) { 4 | return args.reduce(function (acc, cur) { 5 | const matches = cur.match(re) 6 | if (matches) { 7 | acc[matches[1]] = matches[2] 8 | } 9 | return acc 10 | }, {}) 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/dotenv/lib/env-options.js: -------------------------------------------------------------------------------- 1 | // ../config.js accepts options via environment variables 2 | const options = {} 3 | 4 | if (process.env.DOTENV_CONFIG_ENCODING != null) { 5 | options.encoding = process.env.DOTENV_CONFIG_ENCODING 6 | } 7 | 8 | if (process.env.DOTENV_CONFIG_PATH != null) { 9 | options.path = process.env.DOTENV_CONFIG_PATH 10 | } 11 | 12 | if (process.env.DOTENV_CONFIG_DEBUG != null) { 13 | options.debug = process.env.DOTENV_CONFIG_DEBUG 14 | } 15 | 16 | if (process.env.DOTENV_CONFIG_OVERRIDE != null) { 17 | options.override = process.env.DOTENV_CONFIG_OVERRIDE 18 | } 19 | 20 | if (process.env.DOTENV_CONFIG_DOTENV_KEY != null) { 21 | options.DOTENV_KEY = process.env.DOTENV_CONFIG_DOTENV_KEY 22 | } 23 | 24 | module.exports = options 25 | -------------------------------------------------------------------------------- /node_modules/http-errors/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2014 Jonathan Ong me@jongleberry.com 5 | Copyright (c) 2016 Douglas Christopher Wilson doug@somethingdoug.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 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # Please see the documentation for all configuration options: 2 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 3 | 4 | version: 2 5 | updates: 6 | - package-ecosystem: "npm" 7 | directory: "/" 8 | schedule: 9 | interval: "daily" 10 | allow: 11 | - dependency-type: production 12 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/.idea/iconv-lite.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Alexander Shtuchkin 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/encodings/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // Update this array if you add/rename/remove files in this directory. 4 | // We support Browserify by skipping automatic module discovery and requiring modules directly. 5 | var modules = [ 6 | require("./internal"), 7 | require("./utf32"), 8 | require("./utf16"), 9 | require("./utf7"), 10 | require("./sbcs-codec"), 11 | require("./sbcs-data"), 12 | require("./sbcs-data-generated"), 13 | require("./dbcs-codec"), 14 | require("./dbcs-data"), 15 | ]; 16 | 17 | // Put all encoding/alias/codec definitions to single object and export it. 18 | for (var i = 0; i < modules.length; i++) { 19 | var module = modules[i]; 20 | for (var enc in module) 21 | if (Object.prototype.hasOwnProperty.call(module, enc)) 22 | exports[enc] = module[enc]; 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/iconv-lite/encodings/tables/gbk-added.json: -------------------------------------------------------------------------------- 1 | [ 2 | ["a140","",62], 3 | ["a180","",32], 4 | ["a240","",62], 5 | ["a280","",32], 6 | ["a2ab","",5], 7 | ["a2e3","€"], 8 | ["a2ef",""], 9 | ["a2fd",""], 10 | ["a340","",62], 11 | ["a380","",31," "], 12 | ["a440","",62], 13 | ["a480","",32], 14 | ["a4f4","",10], 15 | ["a540","",62], 16 | ["a580","",32], 17 | ["a5f7","",7], 18 | ["a640","",62], 19 | ["a680","",32], 20 | ["a6b9","",7], 21 | ["a6d9","",6], 22 | ["a6ec",""], 23 | ["a6f3",""], 24 | ["a6f6","",8], 25 | ["a740","",62], 26 | ["a780","",32], 27 | ["a7c2","",14], 28 | ["a7f2","",12], 29 | ["a896","",10], 30 | ["a8bc","ḿ"], 31 | ["a8bf","ǹ"], 32 | ["a8c1",""], 33 | ["a8ea","",20], 34 | ["a958",""], 35 | ["a95b",""], 36 | ["a95d",""], 37 | ["a989","〾⿰",11], 38 | ["a997","",12], 39 | ["a9f0","",14], 40 | ["aaa1","",93], 41 | ["aba1","",93], 42 | ["aca1","",93], 43 | ["ada1","",93], 44 | ["aea1","",93], 45 | ["afa1","",93], 46 | ["d7fa","",4], 47 | ["f8a1","",93], 48 | ["f9a1","",93], 49 | ["faa1","",93], 50 | ["fba1","",93], 51 | ["fca1","",93], 52 | ["fda1","",93], 53 | ["fe50","⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"], 54 | ["fe80","䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓",6,"䶮",93], 55 | ["8135f437",""] 56 | ] 57 | -------------------------------------------------------------------------------- /node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | try { 2 | var util = require('util'); 3 | /* istanbul ignore next */ 4 | if (typeof util.inherits !== 'function') throw ''; 5 | module.exports = util.inherits; 6 | } catch (e) { 7 | /* istanbul ignore next */ 8 | module.exports = require('./inherits_browser.js'); 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | if (superCtor) { 5 | ctor.super_ = superCtor 6 | ctor.prototype = Object.create(superCtor.prototype, { 7 | constructor: { 8 | value: ctor, 9 | enumerable: false, 10 | writable: true, 11 | configurable: true 12 | } 13 | }) 14 | } 15 | }; 16 | } else { 17 | // old school shim for old browsers 18 | module.exports = function inherits(ctor, superCtor) { 19 | if (superCtor) { 20 | ctor.super_ = superCtor 21 | var TempCtor = function () {} 22 | TempCtor.prototype = superCtor.prototype 23 | ctor.prototype = new TempCtor() 24 | ctor.prototype.constructor = ctor 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/inherits/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inherits", 3 | "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", 4 | "version": "2.0.4", 5 | "keywords": [ 6 | "inheritance", 7 | "class", 8 | "klass", 9 | "oop", 10 | "object-oriented", 11 | "inherits", 12 | "browser", 13 | "browserify" 14 | ], 15 | "main": "./inherits.js", 16 | "browser": "./inherits_browser.js", 17 | "repository": "git://github.com/isaacs/inherits", 18 | "license": "ISC", 19 | "scripts": { 20 | "test": "tap" 21 | }, 22 | "devDependencies": { 23 | "tap": "^14.2.4" 24 | }, 25 | "files": [ 26 | "inherits.js", 27 | "inherits_browser.js" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/safer-buffer/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Nikita Skovoroda 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/safer-buffer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "safer-buffer", 3 | "version": "2.1.2", 4 | "description": "Modern Buffer API polyfill without footguns", 5 | "main": "safer.js", 6 | "scripts": { 7 | "browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js", 8 | "test": "standard && tape tests.js" 9 | }, 10 | "author": { 11 | "name": "Nikita Skovoroda", 12 | "email": "chalkerx@gmail.com", 13 | "url": "https://github.com/ChALkeR" 14 | }, 15 | "license": "MIT", 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/ChALkeR/safer-buffer.git" 19 | }, 20 | "bugs": { 21 | "url": "https://github.com/ChALkeR/safer-buffer/issues" 22 | }, 23 | "devDependencies": { 24 | "standard": "^11.0.1", 25 | "tape": "^4.9.0" 26 | }, 27 | "files": [ 28 | "Porting-Buffer.md", 29 | "Readme.md", 30 | "tests.js", 31 | "dangerous.js", 32 | "safer.js" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/setprototypeof/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Wes Todd 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 10 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 12 | OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 13 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 | -------------------------------------------------------------------------------- /node_modules/setprototypeof/README.md: -------------------------------------------------------------------------------- 1 | # Polyfill for `Object.setPrototypeOf` 2 | 3 | [![NPM Version](https://img.shields.io/npm/v/setprototypeof.svg)](https://npmjs.org/package/setprototypeof) 4 | [![NPM Downloads](https://img.shields.io/npm/dm/setprototypeof.svg)](https://npmjs.org/package/setprototypeof) 5 | [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/standard/standard) 6 | 7 | A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8. 8 | 9 | ## Usage: 10 | 11 | ``` 12 | $ npm install --save setprototypeof 13 | ``` 14 | 15 | ```javascript 16 | var setPrototypeOf = require('setprototypeof') 17 | 18 | var obj = {} 19 | setPrototypeOf(obj, { 20 | foo: function () { 21 | return 'bar' 22 | } 23 | }) 24 | obj.foo() // bar 25 | ``` 26 | 27 | TypeScript is also supported: 28 | 29 | ```typescript 30 | import setPrototypeOf from 'setprototypeof' 31 | ``` 32 | -------------------------------------------------------------------------------- /node_modules/setprototypeof/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function setPrototypeOf(o: any, proto: object | null): any; 2 | export = setPrototypeOf; 3 | -------------------------------------------------------------------------------- /node_modules/setprototypeof/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | /* eslint no-proto: 0 */ 3 | module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties) 4 | 5 | function setProtoOf (obj, proto) { 6 | obj.__proto__ = proto 7 | return obj 8 | } 9 | 10 | function mixinProperties (obj, proto) { 11 | for (var prop in proto) { 12 | if (!Object.prototype.hasOwnProperty.call(obj, prop)) { 13 | obj[prop] = proto[prop] 14 | } 15 | } 16 | return obj 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/setprototypeof/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | /* eslint-env mocha */ 3 | /* eslint no-proto: 0 */ 4 | var assert = require('assert') 5 | var setPrototypeOf = require('..') 6 | 7 | describe('setProtoOf(obj, proto)', function () { 8 | it('should merge objects', function () { 9 | var obj = { a: 1, b: 2 } 10 | var proto = { b: 3, c: 4 } 11 | var mergeObj = setPrototypeOf(obj, proto) 12 | 13 | if (Object.getPrototypeOf) { 14 | assert.strictEqual(Object.getPrototypeOf(obj), proto) 15 | } else if ({ __proto__: [] } instanceof Array) { 16 | assert.strictEqual(obj.__proto__, proto) 17 | } else { 18 | assert.strictEqual(obj.a, 1) 19 | assert.strictEqual(obj.b, 2) 20 | assert.strictEqual(obj.c, 4) 21 | } 22 | assert.strictEqual(mergeObj, obj) 23 | }) 24 | }) 25 | -------------------------------------------------------------------------------- /node_modules/toidentifier/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2021-11-14 2 | ================== 3 | 4 | * pref: enable strict mode 5 | 6 | 1.0.0 / 2018-07-09 7 | ================== 8 | 9 | * Initial release 10 | -------------------------------------------------------------------------------- /node_modules/toidentifier/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Douglas Christopher Wilson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/toidentifier/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * toidentifier 3 | * Copyright(c) 2016 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | 'use strict' 8 | 9 | /** 10 | * Module exports. 11 | * @public 12 | */ 13 | 14 | module.exports = toIdentifier 15 | 16 | /** 17 | * Trasform the given string into a JavaScript identifier 18 | * 19 | * @param {string} str 20 | * @returns {string} 21 | * @public 22 | */ 23 | 24 | function toIdentifier (str) { 25 | return str 26 | .split(' ') 27 | .map(function (token) { 28 | return token.slice(0, 1).toUpperCase() + token.slice(1) 29 | }) 30 | .join('') 31 | .replace(/[^ _0-9a-z]/gi, '') 32 | } 33 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/client-mixins/form-data.helper.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare type TStringable = { 3 | toString(): string; 4 | }; 5 | export declare class FormDataHelper { 6 | protected _boundary: string; 7 | protected _chunks: Buffer[]; 8 | protected _footerChunk?: Buffer; 9 | protected static readonly LINE_BREAK = "\r\n"; 10 | protected static readonly DEFAULT_CONTENT_TYPE = "application/octet-stream"; 11 | protected bodyAppend(...values: (Buffer | string)[]): void; 12 | append(field: string, value: Buffer | string | TStringable, contentType?: string): void; 13 | getHeaders(): { 14 | 'content-type': string; 15 | }; 16 | /** Length of form-data (including footer length). */ 17 | protected getLength(): number; 18 | getBuffer(): Buffer; 19 | protected getBoundary(): string; 20 | protected generateBoundary(): void; 21 | protected getMultipartHeader(field: string, value: string | Buffer, contentType?: string): string; 22 | protected getMultipartFooter(): Buffer; 23 | } 24 | export {}; 25 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/client-mixins/oauth2.helper.d.ts: -------------------------------------------------------------------------------- 1 | export declare class OAuth2Helper { 2 | static getCodeVerifier(): string; 3 | static getCodeChallengeFromVerifier(verifier: string): string; 4 | static getAuthHeader(clientId: string, clientSecret: string): string; 5 | static generateRandomString(length: number): string; 6 | private static escapeBase64Url; 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/client.subclient.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiBase from './client.base'; 2 | /** 3 | * Base subclient for every v1 and v2 client. 4 | */ 5 | export default abstract class TwitterApiSubClient extends TwitterApiBase { 6 | constructor(instance: TwitterApiBase); 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/client.subclient.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __importDefault = (this && this.__importDefault) || function (mod) { 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; 4 | }; 5 | Object.defineProperty(exports, "__esModule", { value: true }); 6 | const client_base_1 = __importDefault(require("./client.base")); 7 | /** 8 | * Base subclient for every v1 and v2 client. 9 | */ 10 | class TwitterApiSubClient extends client_base_1.default { 11 | constructor(instance) { 12 | if (!(instance instanceof client_base_1.default)) { 13 | throw new Error('You must instance SubTwitterApi instance from existing TwitterApi instance.'); 14 | } 15 | super(instance); 16 | } 17 | } 18 | exports.default = TwitterApiSubClient; 19 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/client/index.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv1 from '../v1/client.v1'; 2 | import TwitterApiv2 from '../v2/client.v2'; 3 | import TwitterApiReadWrite from './readwrite'; 4 | /** 5 | * Twitter v1.1 and v2 API client. 6 | */ 7 | export declare class TwitterApi extends TwitterApiReadWrite { 8 | protected _v1?: TwitterApiv1; 9 | protected _v2?: TwitterApiv2; 10 | get v1(): TwitterApiv1; 11 | get v2(): TwitterApiv2; 12 | /** 13 | * Get a client with read/write rights. 14 | */ 15 | get readWrite(): TwitterApiReadWrite; 16 | static getErrors(error: any): (import("../types").ErrorV1 | import("../types").ErrorV2)[]; 17 | /** Extract another image size than obtained in a `profile_image_url` or `profile_image_url_https` field of a user object. */ 18 | static getProfileImageInSize(profileImageUrl: string, size: 'normal' | 'bigger' | 'mini' | 'original'): string; 19 | } 20 | export { default as TwitterApiReadWrite } from './readwrite'; 21 | export { default as TwitterApiReadOnly } from './readonly'; 22 | export default TwitterApi; 23 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/client/readwrite.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv1ReadWrite from '../v1/client.v1.write'; 2 | import TwitterApiv2ReadWrite from '../v2/client.v2.write'; 3 | import TwitterApiReadOnly from './readonly'; 4 | /** 5 | * Twitter v1.1 and v2 API client. 6 | */ 7 | export default class TwitterApiReadWrite extends TwitterApiReadOnly { 8 | protected _v1?: TwitterApiv1ReadWrite; 9 | protected _v2?: TwitterApiv2ReadWrite; 10 | get v1(): TwitterApiv1ReadWrite; 11 | get v2(): TwitterApiv2ReadWrite; 12 | /** 13 | * Get a client with read only rights. 14 | */ 15 | get readOnly(): TwitterApiReadOnly; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/client/readwrite.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __importDefault = (this && this.__importDefault) || function (mod) { 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; 4 | }; 5 | Object.defineProperty(exports, "__esModule", { value: true }); 6 | const client_v1_write_1 = __importDefault(require("../v1/client.v1.write")); 7 | const client_v2_write_1 = __importDefault(require("../v2/client.v2.write")); 8 | const readonly_1 = __importDefault(require("./readonly")); 9 | /** 10 | * Twitter v1.1 and v2 API client. 11 | */ 12 | class TwitterApiReadWrite extends readonly_1.default { 13 | /* Direct access to subclients */ 14 | get v1() { 15 | if (this._v1) 16 | return this._v1; 17 | return this._v1 = new client_v1_write_1.default(this); 18 | } 19 | get v2() { 20 | if (this._v2) 21 | return this._v2; 22 | return this._v2 = new client_v2_write_1.default(this); 23 | } 24 | /** 25 | * Get a client with read only rights. 26 | */ 27 | get readOnly() { 28 | return this; 29 | } 30 | } 31 | exports.default = TwitterApiReadWrite; 32 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/globals.d.ts: -------------------------------------------------------------------------------- 1 | export declare const API_V2_PREFIX = "https://api.x.com/2/"; 2 | export declare const API_V2_LABS_PREFIX = "https://api.x.com/labs/2/"; 3 | export declare const API_V1_1_PREFIX = "https://api.x.com/1.1/"; 4 | export declare const API_V1_1_UPLOAD_PREFIX = "https://upload.x.com/1.1/"; 5 | export declare const API_V1_1_STREAM_PREFIX = "https://stream.x.com/1.1/"; 6 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/globals.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.API_V1_1_STREAM_PREFIX = exports.API_V1_1_UPLOAD_PREFIX = exports.API_V1_1_PREFIX = exports.API_V2_LABS_PREFIX = exports.API_V2_PREFIX = void 0; 4 | exports.API_V2_PREFIX = 'https://api.x.com/2/'; 5 | exports.API_V2_LABS_PREFIX = 'https://api.x.com/labs/2/'; 6 | exports.API_V1_1_PREFIX = 'https://api.x.com/1.1/'; 7 | exports.API_V1_1_UPLOAD_PREFIX = 'https://upload.x.com/1.1/'; 8 | exports.API_V1_1_STREAM_PREFIX = 'https://stream.x.com/1.1/'; 9 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/helpers.d.ts: -------------------------------------------------------------------------------- 1 | export interface SharedPromise { 2 | value: T | undefined; 3 | promise: Promise; 4 | } 5 | export declare function sharedPromise(getter: () => Promise): SharedPromise; 6 | export declare function arrayWrap(value: T | T[]): T[]; 7 | export declare function trimUndefinedProperties(object: any): void; 8 | export declare function isTweetStreamV2ErrorPayload(payload: any): boolean; 9 | export declare function hasMultipleItems(item: string | string[]): boolean; 10 | export interface IDeprecationWarning { 11 | instance: string; 12 | method: string; 13 | problem: string; 14 | resolution: string; 15 | } 16 | export declare function safeDeprecationWarning(message: IDeprecationWarning): void; 17 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/index.d.ts: -------------------------------------------------------------------------------- 1 | export { default as default } from './client'; 2 | export * from './client'; 3 | export * from './v1/client.v1'; 4 | export * from './v2/client.v2'; 5 | export * from './v2/includes.v2.helper'; 6 | export * from './v2-labs/client.v2.labs'; 7 | export * from './types'; 8 | export * from './paginators'; 9 | export * from './stream/TweetStream'; 10 | export * from './settings'; 11 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/paginators/dm.paginator.v2.d.ts: -------------------------------------------------------------------------------- 1 | import { TimelineV2Paginator } from './v2.paginator'; 2 | import { DMEventV2, GetDMEventV2Params, GetDMEventV2Result } from '../types/v2/dm.v2.types'; 3 | export declare abstract class DMTimelineV2Paginator extends TimelineV2Paginator { 4 | protected getItemArray(): DMEventV2[]; 5 | /** 6 | * Events returned by paginator. 7 | */ 8 | get events(): DMEventV2[]; 9 | get meta(): import("../types/v2/shared.v2.types").PaginableCountMetaV2; 10 | } 11 | export declare class FullDMTimelineV2Paginator extends DMTimelineV2Paginator { 12 | protected _endpoint: string; 13 | } 14 | export declare class OneToOneDMTimelineV2Paginator extends DMTimelineV2Paginator<{ 15 | participant_id: string; 16 | }> { 17 | protected _endpoint: string; 18 | } 19 | export declare class ConversationDMTimelineV2Paginator extends DMTimelineV2Paginator<{ 20 | dm_conversation_id: string; 21 | }> { 22 | protected _endpoint: string; 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/paginators/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './tweet.paginator.v2'; 2 | export * from './TwitterPaginator'; 3 | export * from './dm.paginator.v1'; 4 | export * from './mutes.paginator.v1'; 5 | export * from './tweet.paginator.v1'; 6 | export * from './user.paginator.v1'; 7 | export * from './user.paginator.v2'; 8 | export * from './list.paginator.v1'; 9 | export * from './list.paginator.v2'; 10 | export * from './friends.paginator.v1'; 11 | export * from './followers.paginator.v1'; 12 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/paginators/list.paginator.v2.d.ts: -------------------------------------------------------------------------------- 1 | import type { GetListTimelineV2Params, ListTimelineV2Result, ListV2 } from '../types'; 2 | import { TimelineV2Paginator } from './v2.paginator'; 3 | declare abstract class ListTimelineV2Paginator extends TimelineV2Paginator { 4 | protected getItemArray(): ListV2[]; 5 | /** 6 | * Lists returned by paginator. 7 | */ 8 | get lists(): ListV2[]; 9 | get meta(): TResult["meta"]; 10 | } 11 | export declare class UserOwnedListsV2Paginator extends ListTimelineV2Paginator { 14 | protected _endpoint: string; 15 | } 16 | export declare class UserListMembershipsV2Paginator extends ListTimelineV2Paginator { 19 | protected _endpoint: string; 20 | } 21 | export declare class UserListFollowedV2Paginator extends ListTimelineV2Paginator { 24 | protected _endpoint: string; 25 | } 26 | export {}; 27 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/paginators/paginator.v1.d.ts: -------------------------------------------------------------------------------- 1 | import { TwitterResponse } from '../types'; 2 | import TwitterPaginator from './TwitterPaginator'; 3 | export declare abstract class CursoredV1Paginator extends TwitterPaginator { 9 | protected getNextQueryParams(maxResults?: number): Partial; 10 | protected isFetchLastOver(result: TwitterResponse): boolean; 11 | protected canFetchNextPage(result: TApiResult): boolean; 12 | private isNextCursorInvalid; 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/plugins/helpers.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import type { ClientRequestArgs } from 'http'; 3 | import type { ClientRequestMaker } from '../client-mixins/request-maker.mixin'; 4 | import { IGetHttpRequestArgs } from '../types'; 5 | import type { IComputedHttpRequestArgs } from '../types/request-maker.mixin.types'; 6 | export declare function hasRequestErrorPlugins(client: ClientRequestMaker): boolean; 7 | export declare function applyResponseHooks(this: ClientRequestMaker, requestParams: IGetHttpRequestArgs, computedParams: IComputedHttpRequestArgs, requestOptions: Partial, error: any): Promise; 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/settings.d.ts: -------------------------------------------------------------------------------- 1 | export interface ITwitterApiV2Settings { 2 | debug: boolean; 3 | deprecationWarnings: boolean; 4 | logger: ITwitterApiV2SettingsLogger; 5 | } 6 | export interface ITwitterApiV2SettingsLogger { 7 | log(message: string, payload?: any): void; 8 | } 9 | export declare const TwitterApiV2Settings: ITwitterApiV2Settings; 10 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/settings.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.TwitterApiV2Settings = void 0; 4 | exports.TwitterApiV2Settings = { 5 | debug: false, 6 | deprecationWarnings: true, 7 | logger: { log: console.log.bind(console) }, 8 | }; 9 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/stream/TweetStreamEventCombiner.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { EventEmitter } from 'events'; 3 | import type TweetStream from './TweetStream'; 4 | export declare class TweetStreamEventCombiner extends EventEmitter { 5 | private stream; 6 | private stack; 7 | private onceNewEvent; 8 | constructor(stream: TweetStream); 9 | /** Returns a new `Promise` that will `resolve` on next event (`data` or any sort of error). */ 10 | nextEvent(): Promise<{ 11 | type: "error"; 12 | payload?: any; 13 | } | { 14 | type: "data"; 15 | payload: T; 16 | }>; 17 | /** Returns `true` if there's something in the stack. */ 18 | hasStack(): boolean; 19 | /** Returns stacked data events, and clean the stack. */ 20 | popStack(): T[]; 21 | /** Cleanup all the listeners attached on stream. */ 22 | destroy(): void; 23 | private emitEvent; 24 | private onStreamError; 25 | private onStreamData; 26 | } 27 | export default TweetStreamEventCombiner; 28 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/stream/TweetStreamParser.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { EventEmitter } from 'events'; 3 | export default class TweetStreamParser extends EventEmitter { 4 | protected currentMessage: string; 5 | push(chunk: string): void; 6 | /** Reset the currently stored message (f.e. on connection reset) */ 7 | reset(): void; 8 | } 9 | export declare enum EStreamParserEvent { 10 | ParsedData = "parsed data", 11 | ParseError = "parse error" 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/test/utils.d.ts: -------------------------------------------------------------------------------- 1 | import { TwitterApi } from '..'; 2 | /** User OAuth 1.0a client */ 3 | export declare function getUserClient(this: any): TwitterApi; 4 | export declare function getUserKeys(): { 5 | appKey: string; 6 | appSecret: string; 7 | accessToken: string; 8 | accessSecret: string; 9 | }; 10 | export declare function sleepTest(ms: number): Promise; 11 | /** User-unlogged OAuth 1.0a client */ 12 | export declare function getRequestClient(): TwitterApi; 13 | export declare function getRequestKeys(): { 14 | appKey: string; 15 | appSecret: string; 16 | }; 17 | export declare function getAuthLink(callback: string): Promise<{ 18 | oauth_token: string; 19 | oauth_token_secret: string; 20 | oauth_callback_confirmed: "true"; 21 | url: string; 22 | }>; 23 | export declare function getAccessClient(verifier: string): Promise; 24 | /** App OAuth 2.0 client */ 25 | export declare function getAppClient(): Promise; 26 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/auth.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/client.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ETwitterStreamEvent = void 0; 4 | var ETwitterStreamEvent; 5 | (function (ETwitterStreamEvent) { 6 | ETwitterStreamEvent["Connected"] = "connected"; 7 | ETwitterStreamEvent["ConnectError"] = "connect error"; 8 | ETwitterStreamEvent["ConnectionError"] = "connection error"; 9 | ETwitterStreamEvent["ConnectionClosed"] = "connection closed"; 10 | ETwitterStreamEvent["ConnectionLost"] = "connection lost"; 11 | ETwitterStreamEvent["ReconnectAttempt"] = "reconnect attempt"; 12 | ETwitterStreamEvent["Reconnected"] = "reconnected"; 13 | ETwitterStreamEvent["ReconnectError"] = "reconnect error"; 14 | ETwitterStreamEvent["ReconnectLimitExceeded"] = "reconnect limit exceeded"; 15 | ETwitterStreamEvent["DataKeepAlive"] = "data keep-alive"; 16 | ETwitterStreamEvent["Data"] = "data event content"; 17 | ETwitterStreamEvent["DataError"] = "data twitter error"; 18 | ETwitterStreamEvent["TweetParseError"] = "data tweet parse error"; 19 | ETwitterStreamEvent["Error"] = "stream error"; 20 | })(ETwitterStreamEvent = exports.ETwitterStreamEvent || (exports.ETwitterStreamEvent = {})); 21 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/entities.types.d.ts: -------------------------------------------------------------------------------- 1 | export interface Entity { 2 | start: number; 3 | end: number; 4 | } 5 | export interface UrlEntity extends Entity { 6 | url: string; 7 | expanded_url: string; 8 | display_url: string; 9 | } 10 | export interface HashtagEntity extends Entity { 11 | tag: string; 12 | } 13 | export interface CashtagEntity extends Entity { 14 | tag: string; 15 | } 16 | export interface MentionEntity extends Entity { 17 | username: string; 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/entities.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './v1'; 2 | export * from './v2'; 3 | export * from './errors.types'; 4 | export * from './responses.types'; 5 | export * from './client.types'; 6 | export * from './auth.types'; 7 | export * from './plugins'; 8 | export { IGetHttpRequestArgs } from './request-maker.mixin.types'; 9 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | var desc = Object.getOwnPropertyDescriptor(m, k); 5 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 6 | desc = { enumerable: true, get: function() { return m[k]; } }; 7 | } 8 | Object.defineProperty(o, k2, desc); 9 | }) : (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | o[k2] = m[k]; 12 | })); 13 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 14 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 15 | }; 16 | Object.defineProperty(exports, "__esModule", { value: true }); 17 | __exportStar(require("./v1"), exports); 18 | __exportStar(require("./v2"), exports); 19 | __exportStar(require("./errors.types"), exports); 20 | __exportStar(require("./responses.types"), exports); 21 | __exportStar(require("./client.types"), exports); 22 | __exportStar(require("./auth.types"), exports); 23 | __exportStar(require("./plugins"), exports); 24 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/plugins/client.plugins.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.TwitterApiPluginResponseOverride = void 0; 4 | class TwitterApiPluginResponseOverride { 5 | constructor(value) { 6 | this.value = value; 7 | } 8 | } 9 | exports.TwitterApiPluginResponseOverride = TwitterApiPluginResponseOverride; 10 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/plugins/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './client.plugins.types'; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/plugins/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | var desc = Object.getOwnPropertyDescriptor(m, k); 5 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 6 | desc = { enumerable: true, get: function() { return m[k]; } }; 7 | } 8 | Object.defineProperty(o, k2, desc); 9 | }) : (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | o[k2] = m[k]; 12 | })); 13 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 14 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 15 | }; 16 | Object.defineProperty(exports, "__esModule", { value: true }); 17 | __exportStar(require("./client.plugins.types"), exports); 18 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/request-maker.mixin.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/responses.types.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import type { IncomingHttpHeaders } from 'http'; 3 | export interface TwitterResponse { 4 | headers: IncomingHttpHeaders; 5 | data: T; 6 | rateLimit?: TwitterRateLimit; 7 | } 8 | export interface SingleTwitterRateLimit { 9 | limit: number; 10 | reset: number; 11 | remaining: number; 12 | } 13 | export interface TwitterRateLimit extends SingleTwitterRateLimit { 14 | day?: SingleTwitterRateLimit; 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/responses.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/shared.types.d.ts: -------------------------------------------------------------------------------- 1 | export declare type NumberString = number | string; 2 | export declare type BooleanString = boolean | string; 3 | export declare type TypeOrArrayOf = T | T[]; 4 | export declare type PromiseOrType = T | Promise; 5 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/shared.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/dev-utilities.v1.types.d.ts: -------------------------------------------------------------------------------- 1 | export declare type TAppRateLimitResourceV1 = 'help' | 'statuses' | 'friends' | 'followers' | 'users' | 'search' | 'trends' | 'favorites' | 'friendships' | 'direct_messages' | 'lists' | 'geo' | 'account' | 'application' | 'account_activity'; 2 | export interface AppRateLimitV1Result { 3 | rate_limit_context: { 4 | access_token: string; 5 | }; 6 | resources: { 7 | [TResourceName in TAppRateLimitResourceV1]?: { 8 | [resourceEndpoint: string]: AppRateLimitEndpointV1; 9 | }; 10 | }; 11 | } 12 | export interface AppRateLimitEndpointV1 { 13 | limit: number; 14 | remaining: number; 15 | reset: number; 16 | } 17 | export interface HelpLanguageV1Result { 18 | code: string; 19 | status: string; 20 | name: string; 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/dev-utilities.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/dm.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.EDirectMessageEventTypeV1 = void 0; 4 | // Creation of DMs 5 | var EDirectMessageEventTypeV1; 6 | (function (EDirectMessageEventTypeV1) { 7 | EDirectMessageEventTypeV1["Create"] = "message_create"; 8 | EDirectMessageEventTypeV1["WelcomeCreate"] = "welcome_message"; 9 | })(EDirectMessageEventTypeV1 = exports.EDirectMessageEventTypeV1 || (exports.EDirectMessageEventTypeV1 = {})); 10 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/entities.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/geo.v1.types.d.ts: -------------------------------------------------------------------------------- 1 | import { PlaceV1 } from './entities.v1.types'; 2 | export interface ReverseGeoCodeV1Params { 3 | lat: number; 4 | long: number; 5 | accuracy?: string; 6 | granularity?: 'city' | 'neighborhood' | 'country' | 'admin'; 7 | max_results?: number; 8 | } 9 | export interface ReverseGeoCodeV1Result { 10 | query: { 11 | params: Partial; 12 | type: string; 13 | url: string; 14 | }; 15 | result: { 16 | places: PlaceV1[]; 17 | }; 18 | } 19 | export interface SearchGeoV1Params extends Partial { 20 | ip?: string; 21 | query?: string; 22 | } 23 | export interface SearchGeoV1Result { 24 | query: { 25 | params: SearchGeoV1Params; 26 | type: string; 27 | url: string; 28 | }; 29 | result: { 30 | places: PlaceV1[]; 31 | }; 32 | } 33 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/geo.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './streaming.v1.types'; 2 | export * from './tweet.v1.types'; 3 | export * from './entities.v1.types'; 4 | export * from './user.v1.types'; 5 | export * from './dev-utilities.v1.types'; 6 | export * from './geo.v1.types'; 7 | export * from './trends.v1.types'; 8 | export * from './dm.v1.types'; 9 | export * from './list.v1.types'; 10 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/list.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/streaming.v1.types.d.ts: -------------------------------------------------------------------------------- 1 | import type { TypeOrArrayOf } from '../shared.types'; 2 | export interface AskTweetStreamV1Params { 3 | tweet_mode?: 'extended' | 'compat'; 4 | /** Specifies whether stall warnings should be delivered. */ 5 | stall_warnings: boolean; 6 | } 7 | /** 8 | * See https://developer.x.com/en/docs/twitter-api/v1/tweets/filter-realtime/guides/basic-stream-parameters 9 | * for detailed documentation. 10 | */ 11 | export interface FilterStreamV1Params extends AskTweetStreamV1Params { 12 | /** A list of user IDs, indicating the users to return statuses for in the stream. */ 13 | follow: TypeOrArrayOf<(string | BigInt)>; 14 | /** Keywords to track. */ 15 | track: TypeOrArrayOf; 16 | /** Specifies a set of bounding boxes to track. */ 17 | locations: TypeOrArrayOf<{ 18 | lng: string; 19 | lat: string; 20 | }>; 21 | /** Specifies whether stall warnings should be delivered. */ 22 | stall_warnings: boolean; 23 | [otherParameter: string]: any; 24 | } 25 | export interface SampleStreamV1Params extends AskTweetStreamV1Params { 26 | [otherParameter: string]: any; 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/streaming.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/trends.v1.types.d.ts: -------------------------------------------------------------------------------- 1 | import { TrendLocationV1, TrendV1 } from './entities.v1.types'; 2 | export interface TrendsPlaceV1Params { 3 | exclude: string; 4 | } 5 | export interface TrendMatchV1 { 6 | trends: TrendV1[]; 7 | as_of: string; 8 | created_at: string; 9 | locations: TrendLocationV1[]; 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/trends.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/tweet.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.EUploadMimeType = void 0; 4 | var EUploadMimeType; 5 | (function (EUploadMimeType) { 6 | EUploadMimeType["Jpeg"] = "image/jpeg"; 7 | EUploadMimeType["Mp4"] = "video/mp4"; 8 | EUploadMimeType["Mov"] = "video/quicktime"; 9 | EUploadMimeType["Gif"] = "image/gif"; 10 | EUploadMimeType["Png"] = "image/png"; 11 | EUploadMimeType["Srt"] = "text/plain"; 12 | EUploadMimeType["Webp"] = "image/webp"; 13 | })(EUploadMimeType = exports.EUploadMimeType || (exports.EUploadMimeType = {})); 14 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v1/user.v1.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/dm.v2.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './streaming.v2.types'; 2 | export * from './tweet.v2.types'; 3 | export * from './tweet.definition.v2'; 4 | export * from './user.v2.types'; 5 | export * from './spaces.v2.types'; 6 | export * from './list.v2.types'; 7 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | var desc = Object.getOwnPropertyDescriptor(m, k); 5 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 6 | desc = { enumerable: true, get: function() { return m[k]; } }; 7 | } 8 | Object.defineProperty(o, k2, desc); 9 | }) : (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | o[k2] = m[k]; 12 | })); 13 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 14 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 15 | }; 16 | Object.defineProperty(exports, "__esModule", { value: true }); 17 | __exportStar(require("./streaming.v2.types"), exports); 18 | __exportStar(require("./tweet.v2.types"), exports); 19 | __exportStar(require("./tweet.definition.v2"), exports); 20 | __exportStar(require("./user.v2.types"), exports); 21 | __exportStar(require("./spaces.v2.types"), exports); 22 | __exportStar(require("./list.v2.types"), exports); 23 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/list.v2.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/shared.v2.types.d.ts: -------------------------------------------------------------------------------- 1 | import type { InlineErrorV2 } from '../errors.types'; 2 | export declare type MetaV2 = { 3 | meta: M; 4 | errors?: InlineErrorV2[]; 5 | }; 6 | export declare type DataV2 = { 7 | data: D; 8 | errors?: InlineErrorV2[]; 9 | }; 10 | export declare type IncludeV2 = { 11 | includes?: I; 12 | errors?: InlineErrorV2[]; 13 | }; 14 | export declare type DataAndMetaV2 = { 15 | data: D; 16 | meta: M; 17 | errors?: InlineErrorV2[]; 18 | }; 19 | export declare type DataAndIncludeV2 = { 20 | data: D; 21 | includes?: I; 22 | errors?: InlineErrorV2[]; 23 | }; 24 | export declare type DataMetaAndIncludeV2 = { 25 | data: D; 26 | meta: M; 27 | includes?: I; 28 | errors?: InlineErrorV2[]; 29 | }; 30 | export interface SentMeta { 31 | /** The time when the request body was returned. */ 32 | sent: string; 33 | } 34 | export interface PaginableCountMetaV2 { 35 | result_count: number; 36 | next_token?: string; 37 | previous_token?: string; 38 | } 39 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/shared.v2.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/spaces.v2.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/streaming.v2.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // --------------- 3 | // -- Streaming -- 4 | // --------------- 5 | Object.defineProperty(exports, "__esModule", { value: true }); 6 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/tweet.definition.v2.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/tweet.v2.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/types/v2/user.v2.types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/v1/media-helpers.v1.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | import * as fs from 'fs'; 4 | import type { TUploadableMedia, TUploadTypeV1 } from '../types'; 5 | import { EUploadMimeType } from '../types'; 6 | export declare type TFileHandle = fs.promises.FileHandle | number | Buffer; 7 | export declare function readFileIntoBuffer(file: TUploadableMedia): Promise; 8 | export declare function getFileHandle(file: TUploadableMedia): number | Buffer | fs.promises.FileHandle | Promise; 9 | export declare function getFileSizeFromFileHandle(fileHandle: TFileHandle): Promise; 10 | export declare function getMimeType(file: TUploadableMedia, type?: TUploadTypeV1 | string, mimeType?: EUploadMimeType | string): string; 11 | export declare function getMediaCategoryByMime(name: string, target: 'tweet' | 'dm'): "TweetVideo" | "DmVideo" | "TweetGif" | "DmGif" | "Subtitles" | "TweetImage" | "DmImage"; 12 | export declare function sleepSecs(seconds: number): Promise; 13 | export declare function readNextPartOf(file: TFileHandle, chunkLength: number, bufferOffset?: number, buffer?: Buffer): Promise<[Buffer, number]>; 14 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/v2-labs/client.v2.labs.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv2LabsReadWrite from './client.v2.labs.write'; 2 | /** 3 | * Twitter v2 labs client with all rights (read/write/DMs) 4 | */ 5 | export declare class TwitterApiv2Labs extends TwitterApiv2LabsReadWrite { 6 | protected _prefix: string; 7 | /** 8 | * Get a client with read/write rights. 9 | */ 10 | get readWrite(): TwitterApiv2LabsReadWrite; 11 | } 12 | export default TwitterApiv2Labs; 13 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/v2-labs/client.v2.labs.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __importDefault = (this && this.__importDefault) || function (mod) { 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; 4 | }; 5 | Object.defineProperty(exports, "__esModule", { value: true }); 6 | exports.TwitterApiv2Labs = void 0; 7 | const globals_1 = require("../globals"); 8 | const client_v2_labs_write_1 = __importDefault(require("./client.v2.labs.write")); 9 | /** 10 | * Twitter v2 labs client with all rights (read/write/DMs) 11 | */ 12 | class TwitterApiv2Labs extends client_v2_labs_write_1.default { 13 | constructor() { 14 | super(...arguments); 15 | this._prefix = globals_1.API_V2_LABS_PREFIX; 16 | } 17 | /** 18 | * Get a client with read/write rights. 19 | */ 20 | get readWrite() { 21 | return this; 22 | } 23 | } 24 | exports.TwitterApiv2Labs = TwitterApiv2Labs; 25 | exports.default = TwitterApiv2Labs; 26 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/v2-labs/client.v2.labs.read.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiSubClient from '../client.subclient'; 2 | /** 3 | * Base Twitter v2 labs client with only read right. 4 | */ 5 | export default class TwitterApiv2LabsReadOnly extends TwitterApiSubClient { 6 | protected _prefix: string; 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/v2-labs/client.v2.labs.read.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __importDefault = (this && this.__importDefault) || function (mod) { 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; 4 | }; 5 | Object.defineProperty(exports, "__esModule", { value: true }); 6 | const client_subclient_1 = __importDefault(require("../client.subclient")); 7 | const globals_1 = require("../globals"); 8 | /** 9 | * Base Twitter v2 labs client with only read right. 10 | */ 11 | class TwitterApiv2LabsReadOnly extends client_subclient_1.default { 12 | constructor() { 13 | super(...arguments); 14 | this._prefix = globals_1.API_V2_LABS_PREFIX; 15 | } 16 | } 17 | exports.default = TwitterApiv2LabsReadOnly; 18 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/v2-labs/client.v2.labs.write.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv2LabsReadOnly from './client.v2.labs.read'; 2 | /** 3 | * Base Twitter v2 labs client with read/write rights. 4 | */ 5 | export default class TwitterApiv2LabsReadWrite extends TwitterApiv2LabsReadOnly { 6 | protected _prefix: string; 7 | /** 8 | * Get a client with only read rights. 9 | */ 10 | get readOnly(): TwitterApiv2LabsReadOnly; 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/v2-labs/client.v2.labs.write.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __importDefault = (this && this.__importDefault) || function (mod) { 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; 4 | }; 5 | Object.defineProperty(exports, "__esModule", { value: true }); 6 | const globals_1 = require("../globals"); 7 | const client_v2_labs_read_1 = __importDefault(require("./client.v2.labs.read")); 8 | /** 9 | * Base Twitter v2 labs client with read/write rights. 10 | */ 11 | class TwitterApiv2LabsReadWrite extends client_v2_labs_read_1.default { 12 | constructor() { 13 | super(...arguments); 14 | this._prefix = globals_1.API_V2_LABS_PREFIX; 15 | } 16 | /** 17 | * Get a client with only read rights. 18 | */ 19 | get readOnly() { 20 | return this; 21 | } 22 | } 23 | exports.default = TwitterApiv2LabsReadWrite; 24 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/cjs/v2/client.v2.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv2ReadWrite from './client.v2.write'; 2 | import TwitterApiv2Labs from '../v2-labs/client.v2.labs'; 3 | /** 4 | * Twitter v2 client with all rights (read/write/DMs) 5 | */ 6 | export declare class TwitterApiv2 extends TwitterApiv2ReadWrite { 7 | protected _prefix: string; 8 | protected _labs?: TwitterApiv2Labs; 9 | /** 10 | * Get a client with read/write rights. 11 | */ 12 | get readWrite(): TwitterApiv2ReadWrite; 13 | /** 14 | * Get a client for v2 labs endpoints. 15 | */ 16 | get labs(): TwitterApiv2Labs; 17 | } 18 | export default TwitterApiv2; 19 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/client-mixins/form-data.helper.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare type TStringable = { 3 | toString(): string; 4 | }; 5 | export declare class FormDataHelper { 6 | protected _boundary: string; 7 | protected _chunks: Buffer[]; 8 | protected _footerChunk?: Buffer; 9 | protected static readonly LINE_BREAK = "\r\n"; 10 | protected static readonly DEFAULT_CONTENT_TYPE = "application/octet-stream"; 11 | protected bodyAppend(...values: (Buffer | string)[]): void; 12 | append(field: string, value: Buffer | string | TStringable, contentType?: string): void; 13 | getHeaders(): { 14 | 'content-type': string; 15 | }; 16 | /** Length of form-data (including footer length). */ 17 | protected getLength(): number; 18 | getBuffer(): Buffer; 19 | protected getBoundary(): string; 20 | protected generateBoundary(): void; 21 | protected getMultipartHeader(field: string, value: string | Buffer, contentType?: string): string; 22 | protected getMultipartFooter(): Buffer; 23 | } 24 | export {}; 25 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/client-mixins/oauth2.helper.d.ts: -------------------------------------------------------------------------------- 1 | export declare class OAuth2Helper { 2 | static getCodeVerifier(): string; 3 | static getCodeChallengeFromVerifier(verifier: string): string; 4 | static getAuthHeader(clientId: string, clientSecret: string): string; 5 | static generateRandomString(length: number): string; 6 | private static escapeBase64Url; 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/client-mixins/oauth2.helper.js: -------------------------------------------------------------------------------- 1 | import * as crypto from 'crypto'; 2 | export class OAuth2Helper { 3 | static getCodeVerifier() { 4 | return this.generateRandomString(128); 5 | } 6 | static getCodeChallengeFromVerifier(verifier) { 7 | return this.escapeBase64Url(crypto 8 | .createHash('sha256') 9 | .update(verifier) 10 | .digest('base64')); 11 | } 12 | static getAuthHeader(clientId, clientSecret) { 13 | const key = encodeURIComponent(clientId) + ':' + encodeURIComponent(clientSecret); 14 | return Buffer.from(key).toString('base64'); 15 | } 16 | static generateRandomString(length) { 17 | let text = ''; 18 | const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~'; 19 | for (let i = 0; i < length; i++) { 20 | text += possible[Math.floor(Math.random() * possible.length)]; 21 | } 22 | return text; 23 | } 24 | static escapeBase64Url(string) { 25 | return string.replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/client.subclient.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiBase from './client.base'; 2 | /** 3 | * Base subclient for every v1 and v2 client. 4 | */ 5 | export default abstract class TwitterApiSubClient extends TwitterApiBase { 6 | constructor(instance: TwitterApiBase); 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/client.subclient.js: -------------------------------------------------------------------------------- 1 | import TwitterApiBase from './client.base'; 2 | /** 3 | * Base subclient for every v1 and v2 client. 4 | */ 5 | export default class TwitterApiSubClient extends TwitterApiBase { 6 | constructor(instance) { 7 | if (!(instance instanceof TwitterApiBase)) { 8 | throw new Error('You must instance SubTwitterApi instance from existing TwitterApi instance.'); 9 | } 10 | super(instance); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/client/index.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv1 from '../v1/client.v1'; 2 | import TwitterApiv2 from '../v2/client.v2'; 3 | import TwitterApiReadWrite from './readwrite'; 4 | /** 5 | * Twitter v1.1 and v2 API client. 6 | */ 7 | export declare class TwitterApi extends TwitterApiReadWrite { 8 | protected _v1?: TwitterApiv1; 9 | protected _v2?: TwitterApiv2; 10 | get v1(): TwitterApiv1; 11 | get v2(): TwitterApiv2; 12 | /** 13 | * Get a client with read/write rights. 14 | */ 15 | get readWrite(): TwitterApiReadWrite; 16 | static getErrors(error: any): (import("../types").ErrorV1 | import("../types").ErrorV2)[]; 17 | /** Extract another image size than obtained in a `profile_image_url` or `profile_image_url_https` field of a user object. */ 18 | static getProfileImageInSize(profileImageUrl: string, size: 'normal' | 'bigger' | 'mini' | 'original'): string; 19 | } 20 | export { default as TwitterApiReadWrite } from './readwrite'; 21 | export { default as TwitterApiReadOnly } from './readonly'; 22 | export default TwitterApi; 23 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/client/readwrite.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv1ReadWrite from '../v1/client.v1.write'; 2 | import TwitterApiv2ReadWrite from '../v2/client.v2.write'; 3 | import TwitterApiReadOnly from './readonly'; 4 | /** 5 | * Twitter v1.1 and v2 API client. 6 | */ 7 | export default class TwitterApiReadWrite extends TwitterApiReadOnly { 8 | protected _v1?: TwitterApiv1ReadWrite; 9 | protected _v2?: TwitterApiv2ReadWrite; 10 | get v1(): TwitterApiv1ReadWrite; 11 | get v2(): TwitterApiv2ReadWrite; 12 | /** 13 | * Get a client with read only rights. 14 | */ 15 | get readOnly(): TwitterApiReadOnly; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/client/readwrite.js: -------------------------------------------------------------------------------- 1 | import TwitterApiv1ReadWrite from '../v1/client.v1.write'; 2 | import TwitterApiv2ReadWrite from '../v2/client.v2.write'; 3 | import TwitterApiReadOnly from './readonly'; 4 | /** 5 | * Twitter v1.1 and v2 API client. 6 | */ 7 | export default class TwitterApiReadWrite extends TwitterApiReadOnly { 8 | /* Direct access to subclients */ 9 | get v1() { 10 | if (this._v1) 11 | return this._v1; 12 | return this._v1 = new TwitterApiv1ReadWrite(this); 13 | } 14 | get v2() { 15 | if (this._v2) 16 | return this._v2; 17 | return this._v2 = new TwitterApiv2ReadWrite(this); 18 | } 19 | /** 20 | * Get a client with read only rights. 21 | */ 22 | get readOnly() { 23 | return this; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/globals.d.ts: -------------------------------------------------------------------------------- 1 | export declare const API_V2_PREFIX = "https://api.x.com/2/"; 2 | export declare const API_V2_LABS_PREFIX = "https://api.x.com/labs/2/"; 3 | export declare const API_V1_1_PREFIX = "https://api.x.com/1.1/"; 4 | export declare const API_V1_1_UPLOAD_PREFIX = "https://upload.x.com/1.1/"; 5 | export declare const API_V1_1_STREAM_PREFIX = "https://stream.x.com/1.1/"; 6 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/globals.js: -------------------------------------------------------------------------------- 1 | export const API_V2_PREFIX = 'https://api.x.com/2/'; 2 | export const API_V2_LABS_PREFIX = 'https://api.x.com/labs/2/'; 3 | export const API_V1_1_PREFIX = 'https://api.x.com/1.1/'; 4 | export const API_V1_1_UPLOAD_PREFIX = 'https://upload.x.com/1.1/'; 5 | export const API_V1_1_STREAM_PREFIX = 'https://stream.x.com/1.1/'; 6 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/helpers.d.ts: -------------------------------------------------------------------------------- 1 | export interface SharedPromise { 2 | value: T | undefined; 3 | promise: Promise; 4 | } 5 | export declare function sharedPromise(getter: () => Promise): SharedPromise; 6 | export declare function arrayWrap(value: T | T[]): T[]; 7 | export declare function trimUndefinedProperties(object: any): void; 8 | export declare function isTweetStreamV2ErrorPayload(payload: any): boolean; 9 | export declare function hasMultipleItems(item: string | string[]): boolean; 10 | export interface IDeprecationWarning { 11 | instance: string; 12 | method: string; 13 | problem: string; 14 | resolution: string; 15 | } 16 | export declare function safeDeprecationWarning(message: IDeprecationWarning): void; 17 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/index.d.ts: -------------------------------------------------------------------------------- 1 | export { default as default } from './client'; 2 | export * from './client'; 3 | export * from './v1/client.v1'; 4 | export * from './v2/client.v2'; 5 | export * from './v2/includes.v2.helper'; 6 | export * from './v2-labs/client.v2.labs'; 7 | export * from './types'; 8 | export * from './paginators'; 9 | export * from './stream/TweetStream'; 10 | export * from './settings'; 11 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/index.js: -------------------------------------------------------------------------------- 1 | export { default as default } from './client'; 2 | export * from './client'; 3 | export * from './v1/client.v1'; 4 | export * from './v2/client.v2'; 5 | export * from './v2/includes.v2.helper'; 6 | export * from './v2-labs/client.v2.labs'; 7 | export * from './types'; 8 | export * from './paginators'; 9 | export * from './stream/TweetStream'; 10 | export * from './settings'; 11 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/paginators/dm.paginator.v2.d.ts: -------------------------------------------------------------------------------- 1 | import { TimelineV2Paginator } from './v2.paginator'; 2 | import { DMEventV2, GetDMEventV2Params, GetDMEventV2Result } from '../types/v2/dm.v2.types'; 3 | export declare abstract class DMTimelineV2Paginator extends TimelineV2Paginator { 4 | protected getItemArray(): DMEventV2[]; 5 | /** 6 | * Events returned by paginator. 7 | */ 8 | get events(): DMEventV2[]; 9 | get meta(): import("../types/v2/shared.v2.types").PaginableCountMetaV2; 10 | } 11 | export declare class FullDMTimelineV2Paginator extends DMTimelineV2Paginator { 12 | protected _endpoint: string; 13 | } 14 | export declare class OneToOneDMTimelineV2Paginator extends DMTimelineV2Paginator<{ 15 | participant_id: string; 16 | }> { 17 | protected _endpoint: string; 18 | } 19 | export declare class ConversationDMTimelineV2Paginator extends DMTimelineV2Paginator<{ 20 | dm_conversation_id: string; 21 | }> { 22 | protected _endpoint: string; 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/paginators/dm.paginator.v2.js: -------------------------------------------------------------------------------- 1 | import { TimelineV2Paginator } from './v2.paginator'; 2 | export class DMTimelineV2Paginator extends TimelineV2Paginator { 3 | getItemArray() { 4 | return this.events; 5 | } 6 | /** 7 | * Events returned by paginator. 8 | */ 9 | get events() { 10 | var _a; 11 | return (_a = this._realData.data) !== null && _a !== void 0 ? _a : []; 12 | } 13 | get meta() { 14 | return super.meta; 15 | } 16 | } 17 | export class FullDMTimelineV2Paginator extends DMTimelineV2Paginator { 18 | constructor() { 19 | super(...arguments); 20 | this._endpoint = 'dm_events'; 21 | } 22 | } 23 | export class OneToOneDMTimelineV2Paginator extends DMTimelineV2Paginator { 24 | constructor() { 25 | super(...arguments); 26 | this._endpoint = 'dm_conversations/with/:participant_id/dm_events'; 27 | } 28 | } 29 | export class ConversationDMTimelineV2Paginator extends DMTimelineV2Paginator { 30 | constructor() { 31 | super(...arguments); 32 | this._endpoint = 'dm_conversations/:dm_conversation_id/dm_events'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/paginators/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './tweet.paginator.v2'; 2 | export * from './TwitterPaginator'; 3 | export * from './dm.paginator.v1'; 4 | export * from './mutes.paginator.v1'; 5 | export * from './tweet.paginator.v1'; 6 | export * from './user.paginator.v1'; 7 | export * from './user.paginator.v2'; 8 | export * from './list.paginator.v1'; 9 | export * from './list.paginator.v2'; 10 | export * from './friends.paginator.v1'; 11 | export * from './followers.paginator.v1'; 12 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/paginators/index.js: -------------------------------------------------------------------------------- 1 | export * from './tweet.paginator.v2'; 2 | export * from './TwitterPaginator'; 3 | export * from './dm.paginator.v1'; 4 | export * from './mutes.paginator.v1'; 5 | export * from './tweet.paginator.v1'; 6 | export * from './user.paginator.v1'; 7 | export * from './user.paginator.v2'; 8 | export * from './list.paginator.v1'; 9 | export * from './list.paginator.v2'; 10 | export * from './friends.paginator.v1'; 11 | export * from './followers.paginator.v1'; 12 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/paginators/list.paginator.v2.d.ts: -------------------------------------------------------------------------------- 1 | import type { GetListTimelineV2Params, ListTimelineV2Result, ListV2 } from '../types'; 2 | import { TimelineV2Paginator } from './v2.paginator'; 3 | declare abstract class ListTimelineV2Paginator extends TimelineV2Paginator { 4 | protected getItemArray(): ListV2[]; 5 | /** 6 | * Lists returned by paginator. 7 | */ 8 | get lists(): ListV2[]; 9 | get meta(): TResult["meta"]; 10 | } 11 | export declare class UserOwnedListsV2Paginator extends ListTimelineV2Paginator { 14 | protected _endpoint: string; 15 | } 16 | export declare class UserListMembershipsV2Paginator extends ListTimelineV2Paginator { 19 | protected _endpoint: string; 20 | } 21 | export declare class UserListFollowedV2Paginator extends ListTimelineV2Paginator { 24 | protected _endpoint: string; 25 | } 26 | export {}; 27 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/paginators/list.paginator.v2.js: -------------------------------------------------------------------------------- 1 | import { TimelineV2Paginator } from './v2.paginator'; 2 | class ListTimelineV2Paginator extends TimelineV2Paginator { 3 | getItemArray() { 4 | return this.lists; 5 | } 6 | /** 7 | * Lists returned by paginator. 8 | */ 9 | get lists() { 10 | var _a; 11 | return (_a = this._realData.data) !== null && _a !== void 0 ? _a : []; 12 | } 13 | get meta() { 14 | return super.meta; 15 | } 16 | } 17 | export class UserOwnedListsV2Paginator extends ListTimelineV2Paginator { 18 | constructor() { 19 | super(...arguments); 20 | this._endpoint = 'users/:id/owned_lists'; 21 | } 22 | } 23 | export class UserListMembershipsV2Paginator extends ListTimelineV2Paginator { 24 | constructor() { 25 | super(...arguments); 26 | this._endpoint = 'users/:id/list_memberships'; 27 | } 28 | } 29 | export class UserListFollowedV2Paginator extends ListTimelineV2Paginator { 30 | constructor() { 31 | super(...arguments); 32 | this._endpoint = 'users/:id/followed_lists'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/paginators/paginator.v1.d.ts: -------------------------------------------------------------------------------- 1 | import { TwitterResponse } from '../types'; 2 | import TwitterPaginator from './TwitterPaginator'; 3 | export declare abstract class CursoredV1Paginator extends TwitterPaginator { 9 | protected getNextQueryParams(maxResults?: number): Partial; 10 | protected isFetchLastOver(result: TwitterResponse): boolean; 11 | protected canFetchNextPage(result: TApiResult): boolean; 12 | private isNextCursorInvalid; 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/paginators/paginator.v1.js: -------------------------------------------------------------------------------- 1 | import TwitterPaginator from './TwitterPaginator'; 2 | export class CursoredV1Paginator extends TwitterPaginator { 3 | getNextQueryParams(maxResults) { 4 | var _a; 5 | return { 6 | ...this._queryParams, 7 | cursor: (_a = this._realData.next_cursor_str) !== null && _a !== void 0 ? _a : this._realData.next_cursor, 8 | ...(maxResults ? { count: maxResults } : {}), 9 | }; 10 | } 11 | isFetchLastOver(result) { 12 | // If we cant fetch next page 13 | return !this.canFetchNextPage(result.data); 14 | } 15 | canFetchNextPage(result) { 16 | // If one of cursor is valid 17 | return !this.isNextCursorInvalid(result.next_cursor) || !this.isNextCursorInvalid(result.next_cursor_str); 18 | } 19 | isNextCursorInvalid(value) { 20 | return value === undefined 21 | || value === 0 22 | || value === -1 23 | || value === '0' 24 | || value === '-1'; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/plugins/helpers.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import type { ClientRequestArgs } from 'http'; 3 | import type { ClientRequestMaker } from '../client-mixins/request-maker.mixin'; 4 | import { IGetHttpRequestArgs } from '../types'; 5 | import type { IComputedHttpRequestArgs } from '../types/request-maker.mixin.types'; 6 | export declare function hasRequestErrorPlugins(client: ClientRequestMaker): boolean; 7 | export declare function applyResponseHooks(this: ClientRequestMaker, requestParams: IGetHttpRequestArgs, computedParams: IComputedHttpRequestArgs, requestOptions: Partial, error: any): Promise; 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/settings.d.ts: -------------------------------------------------------------------------------- 1 | export interface ITwitterApiV2Settings { 2 | debug: boolean; 3 | deprecationWarnings: boolean; 4 | logger: ITwitterApiV2SettingsLogger; 5 | } 6 | export interface ITwitterApiV2SettingsLogger { 7 | log(message: string, payload?: any): void; 8 | } 9 | export declare const TwitterApiV2Settings: ITwitterApiV2Settings; 10 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/settings.js: -------------------------------------------------------------------------------- 1 | export const TwitterApiV2Settings = { 2 | debug: false, 3 | deprecationWarnings: true, 4 | logger: { log: console.log.bind(console) }, 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/stream/TweetStreamEventCombiner.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { EventEmitter } from 'events'; 3 | import type TweetStream from './TweetStream'; 4 | export declare class TweetStreamEventCombiner extends EventEmitter { 5 | private stream; 6 | private stack; 7 | private onceNewEvent; 8 | constructor(stream: TweetStream); 9 | /** Returns a new `Promise` that will `resolve` on next event (`data` or any sort of error). */ 10 | nextEvent(): Promise<{ 11 | type: "error"; 12 | payload?: any; 13 | } | { 14 | type: "data"; 15 | payload: T; 16 | }>; 17 | /** Returns `true` if there's something in the stack. */ 18 | hasStack(): boolean; 19 | /** Returns stacked data events, and clean the stack. */ 20 | popStack(): T[]; 21 | /** Cleanup all the listeners attached on stream. */ 22 | destroy(): void; 23 | private emitEvent; 24 | private onStreamError; 25 | private onStreamData; 26 | } 27 | export default TweetStreamEventCombiner; 28 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/stream/TweetStreamParser.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { EventEmitter } from 'events'; 3 | export default class TweetStreamParser extends EventEmitter { 4 | protected currentMessage: string; 5 | push(chunk: string): void; 6 | /** Reset the currently stored message (f.e. on connection reset) */ 7 | reset(): void; 8 | } 9 | export declare enum EStreamParserEvent { 10 | ParsedData = "parsed data", 11 | ParseError = "parse error" 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/test/utils.d.ts: -------------------------------------------------------------------------------- 1 | import { TwitterApi } from '..'; 2 | /** User OAuth 1.0a client */ 3 | export declare function getUserClient(this: any): TwitterApi; 4 | export declare function getUserKeys(): { 5 | appKey: string; 6 | appSecret: string; 7 | accessToken: string; 8 | accessSecret: string; 9 | }; 10 | export declare function sleepTest(ms: number): Promise; 11 | /** User-unlogged OAuth 1.0a client */ 12 | export declare function getRequestClient(): TwitterApi; 13 | export declare function getRequestKeys(): { 14 | appKey: string; 15 | appSecret: string; 16 | }; 17 | export declare function getAuthLink(callback: string): Promise<{ 18 | oauth_token: string; 19 | oauth_token_secret: string; 20 | oauth_callback_confirmed: "true"; 21 | url: string; 22 | }>; 23 | export declare function getAccessClient(verifier: string): Promise; 24 | /** App OAuth 2.0 client */ 25 | export declare function getAppClient(): Promise; 26 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/auth.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/client.types.js: -------------------------------------------------------------------------------- 1 | export var ETwitterStreamEvent; 2 | (function (ETwitterStreamEvent) { 3 | ETwitterStreamEvent["Connected"] = "connected"; 4 | ETwitterStreamEvent["ConnectError"] = "connect error"; 5 | ETwitterStreamEvent["ConnectionError"] = "connection error"; 6 | ETwitterStreamEvent["ConnectionClosed"] = "connection closed"; 7 | ETwitterStreamEvent["ConnectionLost"] = "connection lost"; 8 | ETwitterStreamEvent["ReconnectAttempt"] = "reconnect attempt"; 9 | ETwitterStreamEvent["Reconnected"] = "reconnected"; 10 | ETwitterStreamEvent["ReconnectError"] = "reconnect error"; 11 | ETwitterStreamEvent["ReconnectLimitExceeded"] = "reconnect limit exceeded"; 12 | ETwitterStreamEvent["DataKeepAlive"] = "data keep-alive"; 13 | ETwitterStreamEvent["Data"] = "data event content"; 14 | ETwitterStreamEvent["DataError"] = "data twitter error"; 15 | ETwitterStreamEvent["TweetParseError"] = "data tweet parse error"; 16 | ETwitterStreamEvent["Error"] = "stream error"; 17 | })(ETwitterStreamEvent || (ETwitterStreamEvent = {})); 18 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/entities.types.d.ts: -------------------------------------------------------------------------------- 1 | export interface Entity { 2 | start: number; 3 | end: number; 4 | } 5 | export interface UrlEntity extends Entity { 6 | url: string; 7 | expanded_url: string; 8 | display_url: string; 9 | } 10 | export interface HashtagEntity extends Entity { 11 | tag: string; 12 | } 13 | export interface CashtagEntity extends Entity { 14 | tag: string; 15 | } 16 | export interface MentionEntity extends Entity { 17 | username: string; 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/entities.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './v1'; 2 | export * from './v2'; 3 | export * from './errors.types'; 4 | export * from './responses.types'; 5 | export * from './client.types'; 6 | export * from './auth.types'; 7 | export * from './plugins'; 8 | export { IGetHttpRequestArgs } from './request-maker.mixin.types'; 9 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/index.js: -------------------------------------------------------------------------------- 1 | export * from './v1'; 2 | export * from './v2'; 3 | export * from './errors.types'; 4 | export * from './responses.types'; 5 | export * from './client.types'; 6 | export * from './auth.types'; 7 | export * from './plugins'; 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/plugins/client.plugins.types.js: -------------------------------------------------------------------------------- 1 | export class TwitterApiPluginResponseOverride { 2 | constructor(value) { 3 | this.value = value; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/plugins/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './client.plugins.types'; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/plugins/index.js: -------------------------------------------------------------------------------- 1 | export * from './client.plugins.types'; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/request-maker.mixin.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/responses.types.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import type { IncomingHttpHeaders } from 'http'; 3 | export interface TwitterResponse { 4 | headers: IncomingHttpHeaders; 5 | data: T; 6 | rateLimit?: TwitterRateLimit; 7 | } 8 | export interface SingleTwitterRateLimit { 9 | limit: number; 10 | reset: number; 11 | remaining: number; 12 | } 13 | export interface TwitterRateLimit extends SingleTwitterRateLimit { 14 | day?: SingleTwitterRateLimit; 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/responses.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/shared.types.d.ts: -------------------------------------------------------------------------------- 1 | export declare type NumberString = number | string; 2 | export declare type BooleanString = boolean | string; 3 | export declare type TypeOrArrayOf = T | T[]; 4 | export declare type PromiseOrType = T | Promise; 5 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/shared.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/dev-utilities.v1.types.d.ts: -------------------------------------------------------------------------------- 1 | export declare type TAppRateLimitResourceV1 = 'help' | 'statuses' | 'friends' | 'followers' | 'users' | 'search' | 'trends' | 'favorites' | 'friendships' | 'direct_messages' | 'lists' | 'geo' | 'account' | 'application' | 'account_activity'; 2 | export interface AppRateLimitV1Result { 3 | rate_limit_context: { 4 | access_token: string; 5 | }; 6 | resources: { 7 | [TResourceName in TAppRateLimitResourceV1]?: { 8 | [resourceEndpoint: string]: AppRateLimitEndpointV1; 9 | }; 10 | }; 11 | } 12 | export interface AppRateLimitEndpointV1 { 13 | limit: number; 14 | remaining: number; 15 | reset: number; 16 | } 17 | export interface HelpLanguageV1Result { 18 | code: string; 19 | status: string; 20 | name: string; 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/dev-utilities.v1.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/dm.v1.types.js: -------------------------------------------------------------------------------- 1 | // Creation of DMs 2 | export var EDirectMessageEventTypeV1; 3 | (function (EDirectMessageEventTypeV1) { 4 | EDirectMessageEventTypeV1["Create"] = "message_create"; 5 | EDirectMessageEventTypeV1["WelcomeCreate"] = "welcome_message"; 6 | })(EDirectMessageEventTypeV1 || (EDirectMessageEventTypeV1 = {})); 7 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/entities.v1.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/geo.v1.types.d.ts: -------------------------------------------------------------------------------- 1 | import { PlaceV1 } from './entities.v1.types'; 2 | export interface ReverseGeoCodeV1Params { 3 | lat: number; 4 | long: number; 5 | accuracy?: string; 6 | granularity?: 'city' | 'neighborhood' | 'country' | 'admin'; 7 | max_results?: number; 8 | } 9 | export interface ReverseGeoCodeV1Result { 10 | query: { 11 | params: Partial; 12 | type: string; 13 | url: string; 14 | }; 15 | result: { 16 | places: PlaceV1[]; 17 | }; 18 | } 19 | export interface SearchGeoV1Params extends Partial { 20 | ip?: string; 21 | query?: string; 22 | } 23 | export interface SearchGeoV1Result { 24 | query: { 25 | params: SearchGeoV1Params; 26 | type: string; 27 | url: string; 28 | }; 29 | result: { 30 | places: PlaceV1[]; 31 | }; 32 | } 33 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/geo.v1.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './streaming.v1.types'; 2 | export * from './tweet.v1.types'; 3 | export * from './entities.v1.types'; 4 | export * from './user.v1.types'; 5 | export * from './dev-utilities.v1.types'; 6 | export * from './geo.v1.types'; 7 | export * from './trends.v1.types'; 8 | export * from './dm.v1.types'; 9 | export * from './list.v1.types'; 10 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/index.js: -------------------------------------------------------------------------------- 1 | export * from './streaming.v1.types'; 2 | export * from './tweet.v1.types'; 3 | export * from './entities.v1.types'; 4 | export * from './user.v1.types'; 5 | export * from './dev-utilities.v1.types'; 6 | export * from './geo.v1.types'; 7 | export * from './trends.v1.types'; 8 | export * from './dm.v1.types'; 9 | export * from './list.v1.types'; 10 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/list.v1.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/streaming.v1.types.d.ts: -------------------------------------------------------------------------------- 1 | import type { TypeOrArrayOf } from '../shared.types'; 2 | export interface AskTweetStreamV1Params { 3 | tweet_mode?: 'extended' | 'compat'; 4 | /** Specifies whether stall warnings should be delivered. */ 5 | stall_warnings: boolean; 6 | } 7 | /** 8 | * See https://developer.x.com/en/docs/twitter-api/v1/tweets/filter-realtime/guides/basic-stream-parameters 9 | * for detailed documentation. 10 | */ 11 | export interface FilterStreamV1Params extends AskTweetStreamV1Params { 12 | /** A list of user IDs, indicating the users to return statuses for in the stream. */ 13 | follow: TypeOrArrayOf<(string | BigInt)>; 14 | /** Keywords to track. */ 15 | track: TypeOrArrayOf; 16 | /** Specifies a set of bounding boxes to track. */ 17 | locations: TypeOrArrayOf<{ 18 | lng: string; 19 | lat: string; 20 | }>; 21 | /** Specifies whether stall warnings should be delivered. */ 22 | stall_warnings: boolean; 23 | [otherParameter: string]: any; 24 | } 25 | export interface SampleStreamV1Params extends AskTweetStreamV1Params { 26 | [otherParameter: string]: any; 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/streaming.v1.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/trends.v1.types.d.ts: -------------------------------------------------------------------------------- 1 | import { TrendLocationV1, TrendV1 } from './entities.v1.types'; 2 | export interface TrendsPlaceV1Params { 3 | exclude: string; 4 | } 5 | export interface TrendMatchV1 { 6 | trends: TrendV1[]; 7 | as_of: string; 8 | created_at: string; 9 | locations: TrendLocationV1[]; 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/trends.v1.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/tweet.v1.types.js: -------------------------------------------------------------------------------- 1 | export var EUploadMimeType; 2 | (function (EUploadMimeType) { 3 | EUploadMimeType["Jpeg"] = "image/jpeg"; 4 | EUploadMimeType["Mp4"] = "video/mp4"; 5 | EUploadMimeType["Mov"] = "video/quicktime"; 6 | EUploadMimeType["Gif"] = "image/gif"; 7 | EUploadMimeType["Png"] = "image/png"; 8 | EUploadMimeType["Srt"] = "text/plain"; 9 | EUploadMimeType["Webp"] = "image/webp"; 10 | })(EUploadMimeType || (EUploadMimeType = {})); 11 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v1/user.v1.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/dm.v2.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './streaming.v2.types'; 2 | export * from './tweet.v2.types'; 3 | export * from './tweet.definition.v2'; 4 | export * from './user.v2.types'; 5 | export * from './spaces.v2.types'; 6 | export * from './list.v2.types'; 7 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/index.js: -------------------------------------------------------------------------------- 1 | export * from './streaming.v2.types'; 2 | export * from './tweet.v2.types'; 3 | export * from './tweet.definition.v2'; 4 | export * from './user.v2.types'; 5 | export * from './spaces.v2.types'; 6 | export * from './list.v2.types'; 7 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/list.v2.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/shared.v2.types.d.ts: -------------------------------------------------------------------------------- 1 | import type { InlineErrorV2 } from '../errors.types'; 2 | export declare type MetaV2 = { 3 | meta: M; 4 | errors?: InlineErrorV2[]; 5 | }; 6 | export declare type DataV2 = { 7 | data: D; 8 | errors?: InlineErrorV2[]; 9 | }; 10 | export declare type IncludeV2 = { 11 | includes?: I; 12 | errors?: InlineErrorV2[]; 13 | }; 14 | export declare type DataAndMetaV2 = { 15 | data: D; 16 | meta: M; 17 | errors?: InlineErrorV2[]; 18 | }; 19 | export declare type DataAndIncludeV2 = { 20 | data: D; 21 | includes?: I; 22 | errors?: InlineErrorV2[]; 23 | }; 24 | export declare type DataMetaAndIncludeV2 = { 25 | data: D; 26 | meta: M; 27 | includes?: I; 28 | errors?: InlineErrorV2[]; 29 | }; 30 | export interface SentMeta { 31 | /** The time when the request body was returned. */ 32 | sent: string; 33 | } 34 | export interface PaginableCountMetaV2 { 35 | result_count: number; 36 | next_token?: string; 37 | previous_token?: string; 38 | } 39 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/shared.v2.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/spaces.v2.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/streaming.v2.types.js: -------------------------------------------------------------------------------- 1 | // --------------- 2 | // -- Streaming -- 3 | // --------------- 4 | export {}; 5 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/tweet.definition.v2.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/tweet.v2.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/types/v2/user.v2.types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v1/media-helpers.v1.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | import * as fs from 'fs'; 4 | import type { TUploadableMedia, TUploadTypeV1 } from '../types'; 5 | import { EUploadMimeType } from '../types'; 6 | export declare type TFileHandle = fs.promises.FileHandle | number | Buffer; 7 | export declare function readFileIntoBuffer(file: TUploadableMedia): Promise; 8 | export declare function getFileHandle(file: TUploadableMedia): number | Buffer | fs.promises.FileHandle | Promise; 9 | export declare function getFileSizeFromFileHandle(fileHandle: TFileHandle): Promise; 10 | export declare function getMimeType(file: TUploadableMedia, type?: TUploadTypeV1 | string, mimeType?: EUploadMimeType | string): string; 11 | export declare function getMediaCategoryByMime(name: string, target: 'tweet' | 'dm'): "TweetVideo" | "DmVideo" | "TweetGif" | "DmGif" | "Subtitles" | "TweetImage" | "DmImage"; 12 | export declare function sleepSecs(seconds: number): Promise; 13 | export declare function readNextPartOf(file: TFileHandle, chunkLength: number, bufferOffset?: number, buffer?: Buffer): Promise<[Buffer, number]>; 14 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v2-labs/client.v2.labs.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv2LabsReadWrite from './client.v2.labs.write'; 2 | /** 3 | * Twitter v2 labs client with all rights (read/write/DMs) 4 | */ 5 | export declare class TwitterApiv2Labs extends TwitterApiv2LabsReadWrite { 6 | protected _prefix: string; 7 | /** 8 | * Get a client with read/write rights. 9 | */ 10 | get readWrite(): TwitterApiv2LabsReadWrite; 11 | } 12 | export default TwitterApiv2Labs; 13 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v2-labs/client.v2.labs.js: -------------------------------------------------------------------------------- 1 | import { API_V2_LABS_PREFIX } from '../globals'; 2 | import TwitterApiv2LabsReadWrite from './client.v2.labs.write'; 3 | /** 4 | * Twitter v2 labs client with all rights (read/write/DMs) 5 | */ 6 | export class TwitterApiv2Labs extends TwitterApiv2LabsReadWrite { 7 | constructor() { 8 | super(...arguments); 9 | this._prefix = API_V2_LABS_PREFIX; 10 | } 11 | /** 12 | * Get a client with read/write rights. 13 | */ 14 | get readWrite() { 15 | return this; 16 | } 17 | } 18 | export default TwitterApiv2Labs; 19 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v2-labs/client.v2.labs.read.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiSubClient from '../client.subclient'; 2 | /** 3 | * Base Twitter v2 labs client with only read right. 4 | */ 5 | export default class TwitterApiv2LabsReadOnly extends TwitterApiSubClient { 6 | protected _prefix: string; 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v2-labs/client.v2.labs.read.js: -------------------------------------------------------------------------------- 1 | import TwitterApiSubClient from '../client.subclient'; 2 | import { API_V2_LABS_PREFIX } from '../globals'; 3 | /** 4 | * Base Twitter v2 labs client with only read right. 5 | */ 6 | export default class TwitterApiv2LabsReadOnly extends TwitterApiSubClient { 7 | constructor() { 8 | super(...arguments); 9 | this._prefix = API_V2_LABS_PREFIX; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v2-labs/client.v2.labs.write.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv2LabsReadOnly from './client.v2.labs.read'; 2 | /** 3 | * Base Twitter v2 labs client with read/write rights. 4 | */ 5 | export default class TwitterApiv2LabsReadWrite extends TwitterApiv2LabsReadOnly { 6 | protected _prefix: string; 7 | /** 8 | * Get a client with only read rights. 9 | */ 10 | get readOnly(): TwitterApiv2LabsReadOnly; 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v2-labs/client.v2.labs.write.js: -------------------------------------------------------------------------------- 1 | import { API_V2_LABS_PREFIX } from '../globals'; 2 | import TwitterApiv2LabsReadOnly from './client.v2.labs.read'; 3 | /** 4 | * Base Twitter v2 labs client with read/write rights. 5 | */ 6 | export default class TwitterApiv2LabsReadWrite extends TwitterApiv2LabsReadOnly { 7 | constructor() { 8 | super(...arguments); 9 | this._prefix = API_V2_LABS_PREFIX; 10 | } 11 | /** 12 | * Get a client with only read rights. 13 | */ 14 | get readOnly() { 15 | return this; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v2/client.v2.d.ts: -------------------------------------------------------------------------------- 1 | import TwitterApiv2ReadWrite from './client.v2.write'; 2 | import TwitterApiv2Labs from '../v2-labs/client.v2.labs'; 3 | /** 4 | * Twitter v2 client with all rights (read/write/DMs) 5 | */ 6 | export declare class TwitterApiv2 extends TwitterApiv2ReadWrite { 7 | protected _prefix: string; 8 | protected _labs?: TwitterApiv2Labs; 9 | /** 10 | * Get a client with read/write rights. 11 | */ 12 | get readWrite(): TwitterApiv2ReadWrite; 13 | /** 14 | * Get a client for v2 labs endpoints. 15 | */ 16 | get labs(): TwitterApiv2Labs; 17 | } 18 | export default TwitterApiv2; 19 | -------------------------------------------------------------------------------- /node_modules/twitter-api-v2/dist/esm/v2/client.v2.js: -------------------------------------------------------------------------------- 1 | import { API_V2_PREFIX } from '../globals'; 2 | import TwitterApiv2ReadWrite from './client.v2.write'; 3 | import TwitterApiv2Labs from '../v2-labs/client.v2.labs'; 4 | /** 5 | * Twitter v2 client with all rights (read/write/DMs) 6 | */ 7 | export class TwitterApiv2 extends TwitterApiv2ReadWrite { 8 | constructor() { 9 | super(...arguments); 10 | this._prefix = API_V2_PREFIX; 11 | /** API endpoints */ 12 | } 13 | /* Sub-clients */ 14 | /** 15 | * Get a client with read/write rights. 16 | */ 17 | get readWrite() { 18 | return this; 19 | } 20 | /** 21 | * Get a client for v2 labs endpoints. 22 | */ 23 | get labs() { 24 | if (this._labs) 25 | return this._labs; 26 | return this._labs = new TwitterApiv2Labs(this); 27 | } 28 | } 29 | export default TwitterApiv2; 30 | -------------------------------------------------------------------------------- /node_modules/typescript/bin/tsc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../lib/tsc.js') 3 | -------------------------------------------------------------------------------- /node_modules/typescript/bin/tsserver: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../lib/tsserver.js') 3 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2016.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2016.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface ArrayBufferConstructor { 20 | new (): ArrayBuffer; 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2017.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2018.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2018.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2019.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2019.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2019.intl.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | declare namespace Intl { 20 | interface DateTimeFormatPartTypesRegistry { 21 | unknown: never; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2019.symbol.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface Symbol { 20 | /** 21 | * Expose the [[Description]] internal slot of a symbol directly. 22 | */ 23 | readonly description: string | undefined; 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2020.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2021.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2021.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2022.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2022.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2022.object.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface ObjectConstructor { 20 | /** 21 | * Determines whether an object has a property with the specified name. 22 | * @param o An object. 23 | * @param v A property name. 24 | */ 25 | hasOwn(o: object, v: PropertyKey): boolean; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2023.collection.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface WeakKeyTypes { 20 | symbol: symbol; 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2023.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2023.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2024.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es2024.regexp.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | interface RegExp { 20 | /** 21 | * Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression. 22 | * Default is false. Read-only. 23 | */ 24 | readonly unicodeSets: boolean; 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.es6.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.esnext.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.esnext.decorators.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | 22 | interface SymbolConstructor { 23 | readonly metadata: unique symbol; 24 | } 25 | 26 | interface Function { 27 | [Symbol.metadata]: DecoratorMetadata | null; 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.esnext.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.esnext.intl.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | declare namespace Intl { 20 | // Empty 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/lib.webworker.importscripts.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | /// 18 | 19 | ///////////////////////////// 20 | /// WorkerGlobalScope APIs 21 | ///////////////////////////// 22 | // These are only available in a Web Worker 23 | declare function importScripts(...urls: string[]): void; 24 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/tsc.js: -------------------------------------------------------------------------------- 1 | // This file is a shim which defers loading the real module until the compile cache is enabled. 2 | try { 3 | const { enableCompileCache } = require("node:module"); 4 | if (enableCompileCache) { 5 | enableCompileCache(); 6 | } 7 | } catch {} 8 | module.exports = require("./_tsc.js"); 9 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/tsserver.js: -------------------------------------------------------------------------------- 1 | // This file is a shim which defers loading the real module until the compile cache is enabled. 2 | try { 3 | const { enableCompileCache } = require("node:module"); 4 | if (enableCompileCache) { 5 | enableCompileCache(); 6 | } 7 | } catch {} 8 | module.exports = require("./_tsserver.js"); 9 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/tsserverlibrary.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | import ts = require("./typescript.js"); 17 | export = ts; 18 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/tsserverlibrary.js: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | if (typeof module !== "undefined" && module.exports) { 17 | module.exports = require("./typescript.js"); 18 | } 19 | else { 20 | throw new Error("tsserverlibrary requires CommonJS; use typescript.js instead"); 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/typescript/lib/typingsInstaller.js: -------------------------------------------------------------------------------- 1 | // This file is a shim which defers loading the real module until the compile cache is enabled. 2 | try { 3 | const { enableCompileCache } = require("node:module"); 4 | if (enableCompileCache) { 5 | enableCompileCache(); 6 | } 7 | } catch {} 8 | module.exports = require("./_typingsInstaller.js"); 9 | -------------------------------------------------------------------------------- /node_modules/undici-types/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Matteo Collina and Undici contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/undici-types/README.md: -------------------------------------------------------------------------------- 1 | # undici-types 2 | 3 | This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version. 4 | 5 | - [GitHub nodejs/undici](https://github.com/nodejs/undici) 6 | - [Undici Documentation](https://undici.nodejs.org/#/) 7 | -------------------------------------------------------------------------------- /node_modules/undici-types/agent.d.ts: -------------------------------------------------------------------------------- 1 | import { URL } from 'url' 2 | import Pool from './pool' 3 | import Dispatcher from "./dispatcher"; 4 | 5 | export default Agent 6 | 7 | declare class Agent extends Dispatcher{ 8 | constructor(opts?: Agent.Options) 9 | /** `true` after `dispatcher.close()` has been called. */ 10 | closed: boolean; 11 | /** `true` after `dispatcher.destroyed()` has been called or `dispatcher.close()` has been called and the dispatcher shutdown has completed. */ 12 | destroyed: boolean; 13 | /** Dispatches a request. */ 14 | dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean; 15 | } 16 | 17 | declare namespace Agent { 18 | export interface Options extends Pool.Options { 19 | /** Default: `(origin, opts) => new Pool(origin, opts)`. */ 20 | factory?(origin: string | URL, opts: Object): Dispatcher; 21 | /** Integer. Default: `0` */ 22 | maxRedirections?: number; 23 | 24 | interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options["interceptors"] 25 | } 26 | 27 | export interface DispatchOptions extends Dispatcher.DispatchOptions { 28 | /** Integer. */ 29 | maxRedirections?: number; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /node_modules/undici-types/balanced-pool.d.ts: -------------------------------------------------------------------------------- 1 | import Pool from './pool' 2 | import Dispatcher from './dispatcher' 3 | import { URL } from 'url' 4 | 5 | export default BalancedPool 6 | 7 | type BalancedPoolConnectOptions = Omit; 8 | 9 | declare class BalancedPool extends Dispatcher { 10 | constructor(url: string | string[] | URL | URL[], options?: Pool.Options); 11 | 12 | addUpstream(upstream: string | URL): BalancedPool; 13 | removeUpstream(upstream: string | URL): BalancedPool; 14 | upstreams: Array; 15 | 16 | /** `true` after `pool.close()` has been called. */ 17 | closed: boolean; 18 | /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ 19 | destroyed: boolean; 20 | 21 | // Override dispatcher APIs. 22 | override connect( 23 | options: BalancedPoolConnectOptions 24 | ): Promise; 25 | override connect( 26 | options: BalancedPoolConnectOptions, 27 | callback: (err: Error | null, data: Dispatcher.ConnectData) => void 28 | ): void; 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/undici-types/connector.d.ts: -------------------------------------------------------------------------------- 1 | import { TLSSocket, ConnectionOptions } from 'tls' 2 | import { IpcNetConnectOpts, Socket, TcpNetConnectOpts } from 'net' 3 | 4 | export default buildConnector 5 | declare function buildConnector (options?: buildConnector.BuildOptions): buildConnector.connector 6 | 7 | declare namespace buildConnector { 8 | export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & { 9 | allowH2?: boolean; 10 | maxCachedSessions?: number | null; 11 | socketPath?: string | null; 12 | timeout?: number | null; 13 | port?: number; 14 | keepAlive?: boolean | null; 15 | keepAliveInitialDelay?: number | null; 16 | } 17 | 18 | export interface Options { 19 | hostname: string 20 | host?: string 21 | protocol: string 22 | port: string 23 | servername?: string 24 | localAddress?: string | null 25 | httpSocket?: Socket 26 | } 27 | 28 | export type Callback = (...args: CallbackArgs) => void 29 | type CallbackArgs = [null, Socket | TLSSocket] | [Error, null] 30 | 31 | export interface connector { 32 | (options: buildConnector.Options, callback: buildConnector.Callback): void 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/undici-types/content-type.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | interface MIMEType { 4 | type: string 5 | subtype: string 6 | parameters: Map 7 | essence: string 8 | } 9 | 10 | /** 11 | * Parse a string to a {@link MIMEType} object. Returns `failure` if the string 12 | * couldn't be parsed. 13 | * @see https://mimesniff.spec.whatwg.org/#parse-a-mime-type 14 | */ 15 | export function parseMIMEType (input: string): 'failure' | MIMEType 16 | 17 | /** 18 | * Convert a MIMEType object to a string. 19 | * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type 20 | */ 21 | export function serializeAMimeType (mimeType: MIMEType): string 22 | -------------------------------------------------------------------------------- /node_modules/undici-types/cookies.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | import type { Headers } from './fetch' 4 | 5 | export interface Cookie { 6 | name: string 7 | value: string 8 | expires?: Date | number 9 | maxAge?: number 10 | domain?: string 11 | path?: string 12 | secure?: boolean 13 | httpOnly?: boolean 14 | sameSite?: 'Strict' | 'Lax' | 'None' 15 | unparsed?: string[] 16 | } 17 | 18 | export function deleteCookie ( 19 | headers: Headers, 20 | name: string, 21 | attributes?: { name?: string, domain?: string } 22 | ): void 23 | 24 | export function getCookies (headers: Headers): Record 25 | 26 | export function getSetCookies (headers: Headers): Cookie[] 27 | 28 | export function setCookie (headers: Headers, cookie: Cookie): void 29 | -------------------------------------------------------------------------------- /node_modules/undici-types/env-http-proxy-agent.d.ts: -------------------------------------------------------------------------------- 1 | import Agent from './agent' 2 | import Dispatcher from './dispatcher' 3 | 4 | export default EnvHttpProxyAgent 5 | 6 | declare class EnvHttpProxyAgent extends Dispatcher { 7 | constructor(opts?: EnvHttpProxyAgent.Options) 8 | 9 | dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean; 10 | } 11 | 12 | declare namespace EnvHttpProxyAgent { 13 | export interface Options extends Agent.Options { 14 | /** Overrides the value of the HTTP_PROXY environment variable */ 15 | httpProxy?: string; 16 | /** Overrides the value of the HTTPS_PROXY environment variable */ 17 | httpsProxy?: string; 18 | /** Overrides the value of the NO_PROXY environment variable */ 19 | noProxy?: string; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/undici-types/global-dispatcher.d.ts: -------------------------------------------------------------------------------- 1 | import Dispatcher from "./dispatcher"; 2 | 3 | export { 4 | getGlobalDispatcher, 5 | setGlobalDispatcher 6 | } 7 | 8 | declare function setGlobalDispatcher(dispatcher: DispatcherImplementation): void; 9 | declare function getGlobalDispatcher(): Dispatcher; 10 | -------------------------------------------------------------------------------- /node_modules/undici-types/global-origin.d.ts: -------------------------------------------------------------------------------- 1 | export { 2 | setGlobalOrigin, 3 | getGlobalOrigin 4 | } 5 | 6 | declare function setGlobalOrigin(origin: string | URL | undefined): void; 7 | declare function getGlobalOrigin(): URL | undefined; -------------------------------------------------------------------------------- /node_modules/undici-types/handlers.d.ts: -------------------------------------------------------------------------------- 1 | import Dispatcher from "./dispatcher"; 2 | 3 | export declare class RedirectHandler implements Dispatcher.DispatchHandlers { 4 | constructor( 5 | dispatch: Dispatcher, 6 | maxRedirections: number, 7 | opts: Dispatcher.DispatchOptions, 8 | handler: Dispatcher.DispatchHandlers, 9 | redirectionLimitReached: boolean 10 | ); 11 | } 12 | 13 | export declare class DecoratorHandler implements Dispatcher.DispatchHandlers { 14 | constructor(handler: Dispatcher.DispatchHandlers); 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/undici-types/header.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The header type declaration of `undici`. 3 | */ 4 | export type IncomingHttpHeaders = Record; 5 | -------------------------------------------------------------------------------- /node_modules/undici-types/interceptors.d.ts: -------------------------------------------------------------------------------- 1 | import Dispatcher from "./dispatcher"; 2 | import RetryHandler from "./retry-handler"; 3 | 4 | export default Interceptors; 5 | 6 | declare namespace Interceptors { 7 | export type DumpInterceptorOpts = { maxSize?: number } 8 | export type RetryInterceptorOpts = RetryHandler.RetryOptions 9 | export type RedirectInterceptorOpts = { maxRedirections?: number } 10 | 11 | export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor 12 | export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor 13 | export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor 14 | export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/undici-types/mock-client.d.ts: -------------------------------------------------------------------------------- 1 | import Client from './client' 2 | import Dispatcher from './dispatcher' 3 | import MockAgent from './mock-agent' 4 | import { MockInterceptor, Interceptable } from './mock-interceptor' 5 | 6 | export default MockClient 7 | 8 | /** MockClient extends the Client API and allows one to mock requests. */ 9 | declare class MockClient extends Client implements Interceptable { 10 | constructor(origin: string, options: MockClient.Options); 11 | /** Intercepts any matching requests that use the same origin as this mock client. */ 12 | intercept(options: MockInterceptor.Options): MockInterceptor; 13 | /** Dispatches a mocked request. */ 14 | dispatch(options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandlers): boolean; 15 | /** Closes the mock client and gracefully waits for enqueued requests to complete. */ 16 | close(): Promise; 17 | } 18 | 19 | declare namespace MockClient { 20 | /** MockClient options. */ 21 | export interface Options extends Client.Options { 22 | /** The agent to associate this MockClient with. */ 23 | agent: MockAgent; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/undici-types/mock-errors.d.ts: -------------------------------------------------------------------------------- 1 | import Errors from './errors' 2 | 3 | export default MockErrors 4 | 5 | declare namespace MockErrors { 6 | /** The request does not match any registered mock dispatches. */ 7 | export class MockNotMatchedError extends Errors.UndiciError { 8 | constructor(message?: string); 9 | name: 'MockNotMatchedError'; 10 | code: 'UND_MOCK_ERR_MOCK_NOT_MATCHED'; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/undici-types/mock-pool.d.ts: -------------------------------------------------------------------------------- 1 | import Pool from './pool' 2 | import MockAgent from './mock-agent' 3 | import { Interceptable, MockInterceptor } from './mock-interceptor' 4 | import Dispatcher from './dispatcher' 5 | 6 | export default MockPool 7 | 8 | /** MockPool extends the Pool API and allows one to mock requests. */ 9 | declare class MockPool extends Pool implements Interceptable { 10 | constructor(origin: string, options: MockPool.Options); 11 | /** Intercepts any matching requests that use the same origin as this mock pool. */ 12 | intercept(options: MockInterceptor.Options): MockInterceptor; 13 | /** Dispatches a mocked request. */ 14 | dispatch(options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandlers): boolean; 15 | /** Closes the mock pool and gracefully waits for enqueued requests to complete. */ 16 | close(): Promise; 17 | } 18 | 19 | declare namespace MockPool { 20 | /** MockPool options. */ 21 | export interface Options extends Pool.Options { 22 | /** The agent to associate this MockPool with. */ 23 | agent: MockAgent; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/undici-types/pool-stats.d.ts: -------------------------------------------------------------------------------- 1 | import Pool from "./pool" 2 | 3 | export default PoolStats 4 | 5 | declare class PoolStats { 6 | constructor(pool: Pool); 7 | /** Number of open socket connections in this pool. */ 8 | connected: number; 9 | /** Number of open socket connections in this pool that do not have an active request. */ 10 | free: number; 11 | /** Number of pending requests across all clients in this pool. */ 12 | pending: number; 13 | /** Number of queued requests across all clients in this pool. */ 14 | queued: number; 15 | /** Number of currently active requests across all clients in this pool. */ 16 | running: number; 17 | /** Number of active, pending, or queued requests across all clients in this pool. */ 18 | size: number; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/undici-types/proxy-agent.d.ts: -------------------------------------------------------------------------------- 1 | import Agent from './agent' 2 | import buildConnector from './connector'; 3 | import Dispatcher from './dispatcher' 4 | import { IncomingHttpHeaders } from './header' 5 | 6 | export default ProxyAgent 7 | 8 | declare class ProxyAgent extends Dispatcher { 9 | constructor(options: ProxyAgent.Options | string) 10 | 11 | dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean; 12 | close(): Promise; 13 | } 14 | 15 | declare namespace ProxyAgent { 16 | export interface Options extends Agent.Options { 17 | uri: string; 18 | /** 19 | * @deprecated use opts.token 20 | */ 21 | auth?: string; 22 | token?: string; 23 | headers?: IncomingHttpHeaders; 24 | requestTls?: buildConnector.BuildOptions; 25 | proxyTls?: buildConnector.BuildOptions; 26 | clientFactory?(origin: URL, opts: object): Dispatcher; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/undici-types/retry-agent.d.ts: -------------------------------------------------------------------------------- 1 | import Dispatcher from './dispatcher' 2 | import RetryHandler from './retry-handler' 3 | 4 | export default RetryAgent 5 | 6 | declare class RetryAgent extends Dispatcher { 7 | constructor(dispatcher: Dispatcher, options?: RetryHandler.RetryOptions) 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/undici-types/util.d.ts: -------------------------------------------------------------------------------- 1 | export namespace util { 2 | /** 3 | * Retrieves a header name and returns its lowercase value. 4 | * @param value Header name 5 | */ 6 | export function headerNameToString(value: string | Buffer): string; 7 | 8 | /** 9 | * Receives a header object and returns the parsed value. 10 | * @param headers Header object 11 | * @param obj Object to specify a proxy object. Used to assign parsed values. 12 | * @returns If `obj` is specified, it is equivalent to `obj`. 13 | */ 14 | export function parseHeaders( 15 | headers: (Buffer | string | (Buffer | string)[])[], 16 | obj?: Record 17 | ): Record; 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/unpipe/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.0 / 2015-06-14 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /node_modules/unpipe/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2015 Douglas Christopher Wilson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/unpipe/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "unpipe", 3 | "description": "Unpipe a stream from all destinations", 4 | "version": "1.0.0", 5 | "author": "Douglas Christopher Wilson ", 6 | "license": "MIT", 7 | "repository": "stream-utils/unpipe", 8 | "devDependencies": { 9 | "istanbul": "0.3.15", 10 | "mocha": "2.2.5", 11 | "readable-stream": "1.1.13" 12 | }, 13 | "files": [ 14 | "HISTORY.md", 15 | "LICENSE", 16 | "README.md", 17 | "index.js" 18 | ], 19 | "engines": { 20 | "node": ">= 0.8" 21 | }, 22 | "scripts": { 23 | "test": "mocha --reporter spec --bail --check-leaks test/", 24 | "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", 25 | "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/zod/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Colin McDonnell 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/zod/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from "./lib"; 2 | export as namespace Zod; 3 | -------------------------------------------------------------------------------- /node_modules/zod/lib/__tests__/Mocker.d.ts: -------------------------------------------------------------------------------- 1 | export declare class Mocker { 2 | pick: (...args: any[]) => any; 3 | get string(): string; 4 | get number(): number; 5 | get bigint(): bigint; 6 | get boolean(): boolean; 7 | get date(): Date; 8 | get symbol(): symbol; 9 | get null(): null; 10 | get undefined(): undefined; 11 | get stringOptional(): any; 12 | get stringNullable(): any; 13 | get numberOptional(): any; 14 | get numberNullable(): any; 15 | get booleanOptional(): any; 16 | get booleanNullable(): any; 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/datetime.d.ts: -------------------------------------------------------------------------------- 1 | import Benchmark from "benchmark"; 2 | declare const _default: { 3 | suites: Benchmark.Suite[]; 4 | }; 5 | export default _default; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts: -------------------------------------------------------------------------------- 1 | import Benchmark from "benchmark"; 2 | declare const _default: { 3 | suites: Benchmark.Suite[]; 4 | }; 5 | export default _default; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/ipv4.d.ts: -------------------------------------------------------------------------------- 1 | import Benchmark from "benchmark"; 2 | declare const _default: { 3 | suites: Benchmark.Suite[]; 4 | }; 5 | export default _default; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/object.d.ts: -------------------------------------------------------------------------------- 1 | import Benchmark from "benchmark"; 2 | declare const _default: { 3 | suites: Benchmark.Suite[]; 4 | }; 5 | export default _default; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/primitives.d.ts: -------------------------------------------------------------------------------- 1 | import Benchmark from "benchmark"; 2 | declare const _default: { 3 | suites: Benchmark.Suite[]; 4 | }; 5 | export default _default; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/realworld.d.ts: -------------------------------------------------------------------------------- 1 | import Benchmark from "benchmark"; 2 | declare const _default: { 3 | suites: Benchmark.Suite[]; 4 | }; 5 | export default _default; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/string.d.ts: -------------------------------------------------------------------------------- 1 | import Benchmark from "benchmark"; 2 | declare const _default: { 3 | suites: Benchmark.Suite[]; 4 | }; 5 | export default _default; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/benchmarks/union.d.ts: -------------------------------------------------------------------------------- 1 | import Benchmark from "benchmark"; 2 | declare const _default: { 3 | suites: Benchmark.Suite[]; 4 | }; 5 | export default _default; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/errors.d.ts: -------------------------------------------------------------------------------- 1 | import defaultErrorMap from "./locales/en"; 2 | import type { ZodErrorMap } from "./ZodError"; 3 | export { defaultErrorMap }; 4 | export declare function setErrorMap(map: ZodErrorMap): void; 5 | export declare function getErrorMap(): ZodErrorMap; 6 | -------------------------------------------------------------------------------- /node_modules/zod/lib/errors.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __importDefault = (this && this.__importDefault) || function (mod) { 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; 4 | }; 5 | Object.defineProperty(exports, "__esModule", { value: true }); 6 | exports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0; 7 | const en_1 = __importDefault(require("./locales/en")); 8 | exports.defaultErrorMap = en_1.default; 9 | let overrideErrorMap = en_1.default; 10 | function setErrorMap(map) { 11 | overrideErrorMap = map; 12 | } 13 | exports.setErrorMap = setErrorMap; 14 | function getErrorMap() { 15 | return overrideErrorMap; 16 | } 17 | exports.getErrorMap = getErrorMap; 18 | -------------------------------------------------------------------------------- /node_modules/zod/lib/external.d.ts: -------------------------------------------------------------------------------- 1 | export * from "./errors"; 2 | export * from "./helpers/parseUtil"; 3 | export * from "./helpers/typeAliases"; 4 | export * from "./helpers/util"; 5 | export * from "./types"; 6 | export * from "./ZodError"; 7 | -------------------------------------------------------------------------------- /node_modules/zod/lib/external.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | var desc = Object.getOwnPropertyDescriptor(m, k); 5 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 6 | desc = { enumerable: true, get: function() { return m[k]; } }; 7 | } 8 | Object.defineProperty(o, k2, desc); 9 | }) : (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | o[k2] = m[k]; 12 | })); 13 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 14 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 15 | }; 16 | Object.defineProperty(exports, "__esModule", { value: true }); 17 | __exportStar(require("./errors"), exports); 18 | __exportStar(require("./helpers/parseUtil"), exports); 19 | __exportStar(require("./helpers/typeAliases"), exports); 20 | __exportStar(require("./helpers/util"), exports); 21 | __exportStar(require("./types"), exports); 22 | __exportStar(require("./ZodError"), exports); 23 | -------------------------------------------------------------------------------- /node_modules/zod/lib/helpers/enumUtil.d.ts: -------------------------------------------------------------------------------- 1 | export declare namespace enumUtil { 2 | type UnionToIntersectionFn = (T extends unknown ? (k: () => T) => void : never) extends (k: infer Intersection) => void ? Intersection : never; 3 | type GetUnionLast = UnionToIntersectionFn extends () => infer Last ? Last : never; 4 | type UnionToTuple = [T] extends [never] ? Tuple : UnionToTuple>, [GetUnionLast, ...Tuple]>; 5 | type CastToStringTuple = T extends [string, ...string[]] ? T : never; 6 | export type UnionToTupleString = CastToStringTuple>; 7 | export {}; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/zod/lib/helpers/enumUtil.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/zod/lib/helpers/errorUtil.d.ts: -------------------------------------------------------------------------------- 1 | export declare namespace errorUtil { 2 | type ErrMessage = string | { 3 | message?: string; 4 | }; 5 | const errToObj: (message?: ErrMessage) => { 6 | message?: string | undefined; 7 | }; 8 | const toString: (message?: ErrMessage) => string | undefined; 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/zod/lib/helpers/errorUtil.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.errorUtil = void 0; 4 | var errorUtil; 5 | (function (errorUtil) { 6 | errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {}; 7 | errorUtil.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message; 8 | })(errorUtil || (exports.errorUtil = errorUtil = {})); 9 | -------------------------------------------------------------------------------- /node_modules/zod/lib/helpers/partialUtil.d.ts: -------------------------------------------------------------------------------- 1 | import type { ZodArray, ZodNullable, ZodObject, ZodOptional, ZodRawShape, ZodTuple, ZodTupleItems, ZodTypeAny } from "../index"; 2 | export declare namespace partialUtil { 3 | type DeepPartial = T extends ZodObject ? ZodObject<{ 4 | [k in keyof T["shape"]]: ZodOptional>; 5 | }, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray ? ZodArray, Card> : T extends ZodOptional ? ZodOptional> : T extends ZodNullable ? ZodNullable> : T extends ZodTuple ? { 6 | [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial : never; 7 | } extends infer PI ? PI extends ZodTupleItems ? ZodTuple : never : never : T; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/zod/lib/helpers/partialUtil.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/zod/lib/helpers/typeAliases.d.ts: -------------------------------------------------------------------------------- 1 | export type Primitive = string | number | symbol | bigint | boolean | null | undefined; 2 | export type Scalars = Primitive | Primitive[]; 3 | -------------------------------------------------------------------------------- /node_modules/zod/lib/helpers/typeAliases.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/zod/lib/index.d.ts: -------------------------------------------------------------------------------- 1 | import * as z from "./external"; 2 | export * from "./external"; 3 | export { z }; 4 | export default z; 5 | -------------------------------------------------------------------------------- /node_modules/zod/lib/locales/en.d.ts: -------------------------------------------------------------------------------- 1 | import { ZodErrorMap } from "../ZodError"; 2 | declare const errorMap: ZodErrorMap; 3 | export default errorMap; 4 | -------------------------------------------------------------------------------- /node_modules/zod/lib/standard-schema.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /src/handlers/index.ts: -------------------------------------------------------------------------------- 1 | // This will be the main export file for all handlers 2 | export * from './tweet.handlers.js'; 3 | export * from './user.handlers.js'; 4 | export * from './list.handlers.js'; 5 | export * from './engagement.handlers.js'; -------------------------------------------------------------------------------- /src/handlers/socialdata/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * SocialData.tools handlers entry point 3 | * Exports all SocialData-powered functionality 4 | */ 5 | 6 | // Search handlers 7 | export * from './search.handlers.js'; 8 | 9 | // User research handlers 10 | export * from './user.handlers.js'; 11 | 12 | // Thread and conversation handlers 13 | export * from './thread.handlers.js'; 14 | 15 | // Network analysis handlers 16 | export * from './network.handlers.js'; 17 | 18 | // Advanced analytics handlers 19 | export * from './analytics.handlers.js'; -------------------------------------------------------------------------------- /src/socialDataClient.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * SocialData.tools client factory and configuration 3 | */ 4 | import { SocialDataClient, SocialDataConfig } from './client/socialdata.js'; 5 | 6 | let socialDataClient: SocialDataClient | null = null; 7 | 8 | export function createSocialDataClient(): SocialDataClient | null { 9 | if (!socialDataClient) { 10 | const apiKey = process.env.SOCIALDATA_API_KEY; 11 | 12 | if (!apiKey) { 13 | return null; 14 | } 15 | 16 | const config: SocialDataConfig = { 17 | apiKey, 18 | baseUrl: process.env.SOCIALDATA_BASE_URL || 'https://api.socialdata.tools' 19 | }; 20 | 21 | socialDataClient = new SocialDataClient(config); 22 | } 23 | 24 | return socialDataClient; 25 | } 26 | 27 | export function getSocialDataClient(): SocialDataClient | null { 28 | if (!socialDataClient) { 29 | return createSocialDataClient(); 30 | } 31 | return socialDataClient; 32 | } 33 | 34 | // Reset client (useful for testing) 35 | export function resetSocialDataClient(): void { 36 | socialDataClient = null; 37 | } -------------------------------------------------------------------------------- /src/twitterClient.ts: -------------------------------------------------------------------------------- 1 | import { TwitterApi } from 'twitter-api-v2'; 2 | import { TwitterClient } from './client/twitter.js'; 3 | 4 | export { TwitterClient } from './client/twitter.js'; 5 | 6 | export function createTwitterClient(): TwitterClient | null { 7 | const appKey = process.env.X_API_KEY; 8 | const appSecret = process.env.X_API_SECRET; 9 | const accessToken = process.env.X_ACCESS_TOKEN; 10 | const accessSecret = process.env.X_ACCESS_TOKEN_SECRET; 11 | 12 | // Check if all required credentials are provided 13 | if (!appKey || !appSecret || !accessToken || !accessSecret) { 14 | return null; 15 | } 16 | 17 | try { 18 | const client = new TwitterClient({ 19 | appKey, 20 | appSecret, 21 | accessToken, 22 | accessSecret, 23 | }); 24 | return client; 25 | } catch (error) { 26 | console.error('Failed to initialize Twitter client:', error); 27 | return null; 28 | } 29 | } -------------------------------------------------------------------------------- /src/utils/response.ts: -------------------------------------------------------------------------------- 1 | import { HandlerResponse } from '../types/handlers.js'; 2 | 3 | export function createResponse(text: string, tools?: Record): HandlerResponse { 4 | return { 5 | response: text, 6 | tools 7 | }; 8 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2022", 4 | "module": "Node16", 5 | "moduleResolution": "Node16", 6 | "outDir": "./dist", 7 | "rootDir": "./src", 8 | "strict": true, 9 | "esModuleInterop": true, 10 | "skipLibCheck": true, 11 | "forceConsistentCasingInFileNames": true 12 | }, 13 | "include": ["src/**/*"], 14 | "exclude": ["node_modules"] 15 | } --------------------------------------------------------------------------------