├── .commitlintrc.json ├── .github └── workflows │ ├── ci.yaml │ └── release-please.yaml ├── .gitignore ├── .release-please-manifest.json ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── biome.json ├── examples ├── express_app.js ├── express_app_with_bodyparser.js ├── gcloud_function.js ├── message_components.js ├── modal_example.js └── nextjs_api.js ├── jest.config.js ├── package.json ├── release-please-config.json ├── renovate.json ├── src ├── __tests__ │ ├── utils │ │ └── SharedTestUtils.ts │ ├── verifyKey.ts │ ├── verifyKeyMiddleware.ts │ └── verifyWebhookEventMiddleware.ts ├── components.ts ├── index.ts ├── util.ts └── webhooks.ts └── tsconfig.json /.commitlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["@commitlint/config-conventional"] 3 | } 4 | -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/release-please.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/.github/workflows/release-please.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/.gitignore -------------------------------------------------------------------------------- /.release-please-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | ".": "4.4.0" 3 | } 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/README.md -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/biome.json -------------------------------------------------------------------------------- /examples/express_app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/examples/express_app.js -------------------------------------------------------------------------------- /examples/express_app_with_bodyparser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/examples/express_app_with_bodyparser.js -------------------------------------------------------------------------------- /examples/gcloud_function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/examples/gcloud_function.js -------------------------------------------------------------------------------- /examples/message_components.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/examples/message_components.js -------------------------------------------------------------------------------- /examples/modal_example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/examples/modal_example.js -------------------------------------------------------------------------------- /examples/nextjs_api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/examples/nextjs_api.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/package.json -------------------------------------------------------------------------------- /release-please-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/release-please-config.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/renovate.json -------------------------------------------------------------------------------- /src/__tests__/utils/SharedTestUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/src/__tests__/utils/SharedTestUtils.ts -------------------------------------------------------------------------------- /src/__tests__/verifyKey.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/src/__tests__/verifyKey.ts -------------------------------------------------------------------------------- /src/__tests__/verifyKeyMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/src/__tests__/verifyKeyMiddleware.ts -------------------------------------------------------------------------------- /src/__tests__/verifyWebhookEventMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/src/__tests__/verifyWebhookEventMiddleware.ts -------------------------------------------------------------------------------- /src/components.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/src/components.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/src/util.ts -------------------------------------------------------------------------------- /src/webhooks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/src/webhooks.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discord/discord-interactions-js/HEAD/tsconfig.json --------------------------------------------------------------------------------