Pull.
J'ai juste update le cutie.js, CONNARD Ah oui, j'ai aussi add le info.js, qui est merdique d'ailleurs
This commit is contained in:
@@ -12,9 +12,9 @@ module.exports = {
|
||||
.setTitle('🥰 Liste des Cuties')
|
||||
.addFields(
|
||||
{ name: '👑 Reine des Cuties', value: `<@366171099966210049> | Tags: Tellement Cutie que j'suis jalouse 🥺`, inline: true },
|
||||
{ name: '👑 Roi des Cuties', value: '<@868244823059075102> | Tags: Richou 💵 et Bg 😎', inline: true},
|
||||
{ name: '👸 Princesses des Cuties', value: `<@361526553940721684> | Titre Refusé, mais ordonné (snif)`, inline: true }
|
||||
|
||||
{ name: '👑 Roi des Cuties', value: '<@868244823059075102> | Tags: Richou 💵 et Bg 😎', inline: true},
|
||||
{ name: '👸 Princesses des Cuties', value: `<@361526553940721684> | Titre Refusé, mais ordonné (snif)`, inline: true },
|
||||
{ name: '😻 Cutie Suprème', value: '<@303149512065548289> | Tags: Cutie Suprème. Aucune négociation'}
|
||||
)
|
||||
await interaction.reply({ embeds: [embed] });
|
||||
},
|
||||
|
||||
41
commands/info/info.js
Normal file
41
commands/info/info.js
Normal file
@@ -0,0 +1,41 @@
|
||||
const {SlashCommandBuilder, EmbedBuilder} = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
category: 'info',
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('info')
|
||||
.setDescription('Obtenir les informations du bot'),
|
||||
async execute(interaction) {
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle('📝 Informations du Bot')
|
||||
.setColor('Pink')
|
||||
.addFields(
|
||||
{
|
||||
name:'👩💻 Développeuse Principale',
|
||||
value:'<@361526553940721684>',
|
||||
inline: true},
|
||||
|
||||
{
|
||||
name: '🧠 Langages et environnement',
|
||||
value: [
|
||||
'• **Langage :** <:javascript:1425179797692092506> JavaScript (ECMAScript 2024)',
|
||||
'• **Backend :** <:nodejs:1425179878252089435> Node.js v22.20.0',
|
||||
'• **Librairies :** <:discordjs:1425179852536938670> Discord.js v14.22'
|
||||
].join('\n'),
|
||||
inline: false
|
||||
},
|
||||
|
||||
{
|
||||
name: '',
|
||||
}
|
||||
|
||||
)
|
||||
.setFooter({
|
||||
text: 'Fembot • Made with love by Syxpi 💞',
|
||||
iconURL: interaction.client.user.displayAvatarURL()
|
||||
})
|
||||
|
||||
await interaction.reply({ embeds: [embed] });
|
||||
},
|
||||
};
|
||||
106
node_modules/.package-lock.json
generated
vendored
106
node_modules/.package-lock.json
generated
vendored
@@ -50,9 +50,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/rest": {
|
||||
"version": "2.5.1",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.5.1.tgz",
|
||||
"integrity": "sha512-Tg9840IneBcbrAjcGaQzHUJWFNq1MMWZjTdjJ0WS/89IffaNKc++iOvffucPxQTF/gviO9+9r8kEPea1X5J2Dw==",
|
||||
"version": "2.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.6.0.tgz",
|
||||
"integrity": "sha512-RDYrhmpB7mTvmCKcpj+pc5k7POKszS4E2O9TYc+U+Y4iaCP+r910QdO43qmpOja8LRr1RJ0b3U+CqVsnPqzf4w==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/collection": "^2.1.1",
|
||||
@@ -60,7 +60,7 @@
|
||||
"@sapphire/async-queue": "^1.5.3",
|
||||
"@sapphire/snowflake": "^3.5.3",
|
||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||
"discord-api-types": "^0.38.1",
|
||||
"discord-api-types": "^0.38.16",
|
||||
"magic-bytes.js": "^1.10.0",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.21.3"
|
||||
@@ -132,9 +132,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@eslint-community/eslint-utils": {
|
||||
"version": "4.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz",
|
||||
"integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==",
|
||||
"version": "4.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz",
|
||||
"integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -236,9 +236,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@eslint/js": {
|
||||
"version": "9.33.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.33.0.tgz",
|
||||
"integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==",
|
||||
"version": "9.36.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.36.0.tgz",
|
||||
"integrity": "sha512-uhCbYtYynH30iZErszX78U+nR3pJU3RHGQ57NXy5QupD4SBVwDeU8TNBy+MjMngc1UyIW9noKqsRqfjQTBU2dw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
@@ -283,33 +283,19 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@humanfs/node": {
|
||||
"version": "0.16.6",
|
||||
"resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",
|
||||
"integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",
|
||||
"version": "0.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",
|
||||
"integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@humanfs/core": "^0.19.1",
|
||||
"@humanwhocodes/retry": "^0.3.0"
|
||||
"@humanwhocodes/retry": "^0.4.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.18.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",
|
||||
"integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=18.18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/nzakas"
|
||||
}
|
||||
},
|
||||
"node_modules/@humanwhocodes/module-importer": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
|
||||
@@ -386,12 +372,12 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "24.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz",
|
||||
"integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==",
|
||||
"version": "24.5.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.2.tgz",
|
||||
"integrity": "sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~7.10.0"
|
||||
"undici-types": "~7.12.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/ws": {
|
||||
@@ -573,9 +559,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.4.1",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
|
||||
"integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
|
||||
"version": "4.4.3",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
||||
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -607,28 +593,28 @@
|
||||
}
|
||||
},
|
||||
"node_modules/discord-api-types": {
|
||||
"version": "0.38.20",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.20.tgz",
|
||||
"integrity": "sha512-wJSmFFi8eoFL/jIosUQLoXeCv7YK+l7joKmFCsnkx7HWSFt5xScNQdhvILLxC0oU6J5bK0ppR7GZ1d4NJScSNQ==",
|
||||
"version": "0.38.26",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.26.tgz",
|
||||
"integrity": "sha512-xpmPviHjIJ6dFu1eNwNDIGQ3N6qmPUUYFVAx/YZ64h7ZgPkTcKjnciD8bZe8Vbeji7yS5uYljyciunpq0J5NSw==",
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"scripts/actions/documentation"
|
||||
]
|
||||
},
|
||||
"node_modules/discord.js": {
|
||||
"version": "14.21.0",
|
||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.21.0.tgz",
|
||||
"integrity": "sha512-U5w41cEmcnSfwKYlLv5RJjB8Joa+QJyRwIJz5i/eg+v2Qvv6EYpCRhN9I2Rlf0900LuqSDg8edakUATrDZQncQ==",
|
||||
"version": "14.22.1",
|
||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.22.1.tgz",
|
||||
"integrity": "sha512-3k+Kisd/v570Jr68A1kNs7qVhNehDwDJAPe4DZ2Syt+/zobf9zEcuYFvsfIaAOgCa0BiHMfOOKQY4eYINl0z7w==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/builders": "^1.11.2",
|
||||
"@discordjs/collection": "1.5.3",
|
||||
"@discordjs/formatters": "^0.6.1",
|
||||
"@discordjs/rest": "^2.5.1",
|
||||
"@discordjs/rest": "^2.6.0",
|
||||
"@discordjs/util": "^1.1.1",
|
||||
"@discordjs/ws": "^1.2.3",
|
||||
"@sapphire/snowflake": "3.5.3",
|
||||
"discord-api-types": "^0.38.1",
|
||||
"discord-api-types": "^0.38.16",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"lodash.snakecase": "4.1.1",
|
||||
"magic-bytes.js": "^1.10.0",
|
||||
@@ -656,19 +642,19 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint": {
|
||||
"version": "9.33.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.33.0.tgz",
|
||||
"integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==",
|
||||
"version": "9.36.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.36.0.tgz",
|
||||
"integrity": "sha512-hB4FIzXovouYzwzECDcUkJ4OcfOEkXTv2zRY6B9bkwjx/cprAq0uvm1nl7zvQ0/TsUk0zQiN4uPfJpB9m+rPMQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.2.0",
|
||||
"@eslint-community/eslint-utils": "^4.8.0",
|
||||
"@eslint-community/regexpp": "^4.12.1",
|
||||
"@eslint/config-array": "^0.21.0",
|
||||
"@eslint/config-helpers": "^0.3.1",
|
||||
"@eslint/core": "^0.15.2",
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@eslint/js": "9.33.0",
|
||||
"@eslint/js": "9.36.0",
|
||||
"@eslint/plugin-kit": "^0.3.5",
|
||||
"@humanfs/node": "^0.16.6",
|
||||
"@humanwhocodes/module-importer": "^1.0.1",
|
||||
@@ -927,15 +913,19 @@
|
||||
}
|
||||
},
|
||||
"node_modules/iconv-lite": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
||||
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
|
||||
"integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/ignore": {
|
||||
@@ -1161,15 +1151,15 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/mysql2": {
|
||||
"version": "3.14.3",
|
||||
"resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.14.3.tgz",
|
||||
"integrity": "sha512-fD6MLV8XJ1KiNFIF0bS7Msl8eZyhlTDCDl75ajU5SJtpdx9ZPEACulJcqJWr1Y8OYyxsFc4j3+nflpmhxCU5aQ==",
|
||||
"version": "3.15.1",
|
||||
"resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.15.1.tgz",
|
||||
"integrity": "sha512-WZMIRZstT2MFfouEaDz/AGFnGi1A2GwaDe7XvKTdRJEYiAHbOrh4S3d8KFmQeh11U85G+BFjIvS1Di5alusZsw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"aws-ssl-profiles": "^1.1.1",
|
||||
"denque": "^2.1.0",
|
||||
"generate-function": "^2.3.1",
|
||||
"iconv-lite": "^0.6.3",
|
||||
"iconv-lite": "^0.7.0",
|
||||
"long": "^5.2.1",
|
||||
"lru.min": "^1.0.0",
|
||||
"named-placeholders": "^1.1.3",
|
||||
@@ -1416,9 +1406,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "7.10.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz",
|
||||
"integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==",
|
||||
"version": "7.12.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.12.0.tgz",
|
||||
"integrity": "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/uri-js": {
|
||||
|
||||
40
node_modules/@discordjs/rest/dist/index.d.mts
generated
vendored
40
node_modules/@discordjs/rest/dist/index.d.mts
generated
vendored
@@ -446,26 +446,40 @@ declare const BurstHandlerMajorIdKey = "burst";
|
||||
declare const DEPRECATION_WARNING_PREFIX: "DeprecationWarning";
|
||||
|
||||
/**
|
||||
* The options used for image URLs
|
||||
* The options used for image URLs.
|
||||
*/
|
||||
interface BaseImageURLOptions {
|
||||
/**
|
||||
* The extension to use for the image URL
|
||||
* The extension to use for the image URL.
|
||||
*
|
||||
* @defaultValue `'webp'`
|
||||
*/
|
||||
extension?: ImageExtension;
|
||||
/**
|
||||
* The size specified in the image URL
|
||||
* The size specified in the image URL.
|
||||
*/
|
||||
size?: ImageSize;
|
||||
}
|
||||
interface EmojiURLOptionsWebp extends BaseImageURLOptions {
|
||||
/**
|
||||
* Whether to use the `animated` query parameter.
|
||||
*/
|
||||
animated?: boolean;
|
||||
extension?: 'webp';
|
||||
}
|
||||
interface EmojiURLOptionsNotWebp extends BaseImageURLOptions {
|
||||
extension: Exclude<ImageExtension, 'webp'>;
|
||||
}
|
||||
/**
|
||||
* The options used for image URLs with animated content
|
||||
* The options used for emoji URLs.
|
||||
*/
|
||||
type EmojiURLOptions = EmojiURLOptionsNotWebp | EmojiURLOptionsWebp;
|
||||
/**
|
||||
* The options used for image URLs that may be animated.
|
||||
*/
|
||||
interface ImageURLOptions extends BaseImageURLOptions {
|
||||
/**
|
||||
* Whether or not to prefer the static version of an image asset.
|
||||
* Whether to prefer the static asset.
|
||||
*/
|
||||
forceStatic?: boolean;
|
||||
}
|
||||
@@ -477,6 +491,10 @@ interface MakeURLOptions {
|
||||
* The allowed extensions that can be used
|
||||
*/
|
||||
allowedExtensions?: readonly string[];
|
||||
/**
|
||||
* Whether to use the `animated` query parameter
|
||||
*/
|
||||
animated?: boolean;
|
||||
/**
|
||||
* The base URL.
|
||||
*
|
||||
@@ -579,7 +597,7 @@ declare class CDN {
|
||||
* @param emojiId - The emoji id
|
||||
* @param options - Optional options for the emoji
|
||||
*/
|
||||
emoji(emojiId: string, options?: Readonly<BaseImageURLOptions>): string;
|
||||
emoji(emojiId: string, options?: Readonly<EmojiURLOptions>): string;
|
||||
/**
|
||||
* Generates an emoji's URL for an emoji.
|
||||
*
|
||||
@@ -669,6 +687,14 @@ declare class CDN {
|
||||
* @param soundId - The soundboard sound id
|
||||
*/
|
||||
soundboardSound(soundId: string): string;
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId: string, badgeHash: string, options?: Readonly<BaseImageURLOptions>): string;
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -929,4 +955,4 @@ declare function calculateUserDefaultAvatarIndex(userId: Snowflake): number;
|
||||
*/
|
||||
declare const version: string;
|
||||
|
||||
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DEPRECATION_WARNING_PREFIX, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
||||
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DEPRECATION_WARNING_PREFIX, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type EmojiURLOptions, type EmojiURLOptionsNotWebp, type EmojiURLOptionsWebp, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
||||
|
||||
40
node_modules/@discordjs/rest/dist/index.d.ts
generated
vendored
40
node_modules/@discordjs/rest/dist/index.d.ts
generated
vendored
@@ -446,26 +446,40 @@ declare const BurstHandlerMajorIdKey = "burst";
|
||||
declare const DEPRECATION_WARNING_PREFIX: "DeprecationWarning";
|
||||
|
||||
/**
|
||||
* The options used for image URLs
|
||||
* The options used for image URLs.
|
||||
*/
|
||||
interface BaseImageURLOptions {
|
||||
/**
|
||||
* The extension to use for the image URL
|
||||
* The extension to use for the image URL.
|
||||
*
|
||||
* @defaultValue `'webp'`
|
||||
*/
|
||||
extension?: ImageExtension;
|
||||
/**
|
||||
* The size specified in the image URL
|
||||
* The size specified in the image URL.
|
||||
*/
|
||||
size?: ImageSize;
|
||||
}
|
||||
interface EmojiURLOptionsWebp extends BaseImageURLOptions {
|
||||
/**
|
||||
* Whether to use the `animated` query parameter.
|
||||
*/
|
||||
animated?: boolean;
|
||||
extension?: 'webp';
|
||||
}
|
||||
interface EmojiURLOptionsNotWebp extends BaseImageURLOptions {
|
||||
extension: Exclude<ImageExtension, 'webp'>;
|
||||
}
|
||||
/**
|
||||
* The options used for image URLs with animated content
|
||||
* The options used for emoji URLs.
|
||||
*/
|
||||
type EmojiURLOptions = EmojiURLOptionsNotWebp | EmojiURLOptionsWebp;
|
||||
/**
|
||||
* The options used for image URLs that may be animated.
|
||||
*/
|
||||
interface ImageURLOptions extends BaseImageURLOptions {
|
||||
/**
|
||||
* Whether or not to prefer the static version of an image asset.
|
||||
* Whether to prefer the static asset.
|
||||
*/
|
||||
forceStatic?: boolean;
|
||||
}
|
||||
@@ -477,6 +491,10 @@ interface MakeURLOptions {
|
||||
* The allowed extensions that can be used
|
||||
*/
|
||||
allowedExtensions?: readonly string[];
|
||||
/**
|
||||
* Whether to use the `animated` query parameter
|
||||
*/
|
||||
animated?: boolean;
|
||||
/**
|
||||
* The base URL.
|
||||
*
|
||||
@@ -579,7 +597,7 @@ declare class CDN {
|
||||
* @param emojiId - The emoji id
|
||||
* @param options - Optional options for the emoji
|
||||
*/
|
||||
emoji(emojiId: string, options?: Readonly<BaseImageURLOptions>): string;
|
||||
emoji(emojiId: string, options?: Readonly<EmojiURLOptions>): string;
|
||||
/**
|
||||
* Generates an emoji's URL for an emoji.
|
||||
*
|
||||
@@ -669,6 +687,14 @@ declare class CDN {
|
||||
* @param soundId - The soundboard sound id
|
||||
*/
|
||||
soundboardSound(soundId: string): string;
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId: string, badgeHash: string, options?: Readonly<BaseImageURLOptions>): string;
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -929,4 +955,4 @@ declare function calculateUserDefaultAvatarIndex(userId: Snowflake): number;
|
||||
*/
|
||||
declare const version: string;
|
||||
|
||||
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DEPRECATION_WARNING_PREFIX, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
||||
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DEPRECATION_WARNING_PREFIX, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type EmojiURLOptions, type EmojiURLOptionsNotWebp, type EmojiURLOptionsWebp, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
||||
|
||||
20
node_modules/@discordjs/rest/dist/index.js
generated
vendored
20
node_modules/@discordjs/rest/dist/index.js
generated
vendored
@@ -127,7 +127,7 @@ var import_v102 = require("discord-api-types/v10");
|
||||
// src/lib/utils/constants.ts
|
||||
var import_util = require("@discordjs/util");
|
||||
var import_v10 = require("discord-api-types/v10");
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.5.1)`;
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.6.0)`;
|
||||
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
|
||||
var DefaultRestOptions = {
|
||||
agent: null,
|
||||
@@ -543,6 +543,16 @@ var CDN = class {
|
||||
soundboardSound(soundId) {
|
||||
return `${this.cdn}${import_v102.CDNRoutes.soundboardSound(soundId)}`;
|
||||
}
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId, badgeHash, options) {
|
||||
return this.makeURL(`/guild-tag-badges/${guildId}/${badgeHash}`, options);
|
||||
}
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -563,7 +573,8 @@ var CDN = class {
|
||||
allowedExtensions = ALLOWED_EXTENSIONS,
|
||||
base = this.cdn,
|
||||
extension = "webp",
|
||||
size
|
||||
size,
|
||||
animated
|
||||
} = {}) {
|
||||
extension = String(extension).toLowerCase();
|
||||
if (!allowedExtensions.includes(extension)) {
|
||||
@@ -575,6 +586,9 @@ Must be one of: ${allowedExtensions.join(", ")}`);
|
||||
Must be one of: ${ALLOWED_SIZES.join(", ")}`);
|
||||
}
|
||||
const url = new URL(`${base}${route}.${extension}`);
|
||||
if (animated !== void 0) {
|
||||
url.searchParams.set("animated", String(animated));
|
||||
}
|
||||
if (size) {
|
||||
url.searchParams.set("size", String(size));
|
||||
}
|
||||
@@ -1469,7 +1483,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
|
||||
};
|
||||
|
||||
// src/shared.ts
|
||||
var version = "2.5.1";
|
||||
var version = "2.6.0";
|
||||
|
||||
// src/index.ts
|
||||
globalThis.FormData ??= import_undici2.FormData;
|
||||
|
||||
2
node_modules/@discordjs/rest/dist/index.js.map
generated
vendored
2
node_modules/@discordjs/rest/dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
20
node_modules/@discordjs/rest/dist/index.mjs
generated
vendored
20
node_modules/@discordjs/rest/dist/index.mjs
generated
vendored
@@ -86,7 +86,7 @@ import { CDNRoutes } from "discord-api-types/v10";
|
||||
// src/lib/utils/constants.ts
|
||||
import { getUserAgentAppendix } from "@discordjs/util";
|
||||
import { APIVersion } from "discord-api-types/v10";
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.5.1)`;
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.6.0)`;
|
||||
var DefaultUserAgentAppendix = getUserAgentAppendix();
|
||||
var DefaultRestOptions = {
|
||||
agent: null,
|
||||
@@ -502,6 +502,16 @@ var CDN = class {
|
||||
soundboardSound(soundId) {
|
||||
return `${this.cdn}${CDNRoutes.soundboardSound(soundId)}`;
|
||||
}
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId, badgeHash, options) {
|
||||
return this.makeURL(`/guild-tag-badges/${guildId}/${badgeHash}`, options);
|
||||
}
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -522,7 +532,8 @@ var CDN = class {
|
||||
allowedExtensions = ALLOWED_EXTENSIONS,
|
||||
base = this.cdn,
|
||||
extension = "webp",
|
||||
size
|
||||
size,
|
||||
animated
|
||||
} = {}) {
|
||||
extension = String(extension).toLowerCase();
|
||||
if (!allowedExtensions.includes(extension)) {
|
||||
@@ -534,6 +545,9 @@ Must be one of: ${allowedExtensions.join(", ")}`);
|
||||
Must be one of: ${ALLOWED_SIZES.join(", ")}`);
|
||||
}
|
||||
const url = new URL(`${base}${route}.${extension}`);
|
||||
if (animated !== void 0) {
|
||||
url.searchParams.set("animated", String(animated));
|
||||
}
|
||||
if (size) {
|
||||
url.searchParams.set("size", String(size));
|
||||
}
|
||||
@@ -1428,7 +1442,7 @@ var REST = class _REST extends AsyncEventEmitter {
|
||||
};
|
||||
|
||||
// src/shared.ts
|
||||
var version = "2.5.1";
|
||||
var version = "2.6.0";
|
||||
|
||||
// src/index.ts
|
||||
globalThis.FormData ??= FormData2;
|
||||
|
||||
2
node_modules/@discordjs/rest/dist/index.mjs.map
generated
vendored
2
node_modules/@discordjs/rest/dist/index.mjs.map
generated
vendored
File diff suppressed because one or more lines are too long
40
node_modules/@discordjs/rest/dist/web.d.mts
generated
vendored
40
node_modules/@discordjs/rest/dist/web.d.mts
generated
vendored
@@ -446,26 +446,40 @@ declare const BurstHandlerMajorIdKey = "burst";
|
||||
declare const DEPRECATION_WARNING_PREFIX: "DeprecationWarning";
|
||||
|
||||
/**
|
||||
* The options used for image URLs
|
||||
* The options used for image URLs.
|
||||
*/
|
||||
interface BaseImageURLOptions {
|
||||
/**
|
||||
* The extension to use for the image URL
|
||||
* The extension to use for the image URL.
|
||||
*
|
||||
* @defaultValue `'webp'`
|
||||
*/
|
||||
extension?: ImageExtension;
|
||||
/**
|
||||
* The size specified in the image URL
|
||||
* The size specified in the image URL.
|
||||
*/
|
||||
size?: ImageSize;
|
||||
}
|
||||
interface EmojiURLOptionsWebp extends BaseImageURLOptions {
|
||||
/**
|
||||
* Whether to use the `animated` query parameter.
|
||||
*/
|
||||
animated?: boolean;
|
||||
extension?: 'webp';
|
||||
}
|
||||
interface EmojiURLOptionsNotWebp extends BaseImageURLOptions {
|
||||
extension: Exclude<ImageExtension, 'webp'>;
|
||||
}
|
||||
/**
|
||||
* The options used for image URLs with animated content
|
||||
* The options used for emoji URLs.
|
||||
*/
|
||||
type EmojiURLOptions = EmojiURLOptionsNotWebp | EmojiURLOptionsWebp;
|
||||
/**
|
||||
* The options used for image URLs that may be animated.
|
||||
*/
|
||||
interface ImageURLOptions extends BaseImageURLOptions {
|
||||
/**
|
||||
* Whether or not to prefer the static version of an image asset.
|
||||
* Whether to prefer the static asset.
|
||||
*/
|
||||
forceStatic?: boolean;
|
||||
}
|
||||
@@ -477,6 +491,10 @@ interface MakeURLOptions {
|
||||
* The allowed extensions that can be used
|
||||
*/
|
||||
allowedExtensions?: readonly string[];
|
||||
/**
|
||||
* Whether to use the `animated` query parameter
|
||||
*/
|
||||
animated?: boolean;
|
||||
/**
|
||||
* The base URL.
|
||||
*
|
||||
@@ -579,7 +597,7 @@ declare class CDN {
|
||||
* @param emojiId - The emoji id
|
||||
* @param options - Optional options for the emoji
|
||||
*/
|
||||
emoji(emojiId: string, options?: Readonly<BaseImageURLOptions>): string;
|
||||
emoji(emojiId: string, options?: Readonly<EmojiURLOptions>): string;
|
||||
/**
|
||||
* Generates an emoji's URL for an emoji.
|
||||
*
|
||||
@@ -669,6 +687,14 @@ declare class CDN {
|
||||
* @param soundId - The soundboard sound id
|
||||
*/
|
||||
soundboardSound(soundId: string): string;
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId: string, badgeHash: string, options?: Readonly<BaseImageURLOptions>): string;
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -929,4 +955,4 @@ declare function calculateUserDefaultAvatarIndex(userId: Snowflake): number;
|
||||
*/
|
||||
declare const version: string;
|
||||
|
||||
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DEPRECATION_WARNING_PREFIX, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
||||
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DEPRECATION_WARNING_PREFIX, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type EmojiURLOptions, type EmojiURLOptionsNotWebp, type EmojiURLOptionsWebp, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
||||
|
||||
40
node_modules/@discordjs/rest/dist/web.d.ts
generated
vendored
40
node_modules/@discordjs/rest/dist/web.d.ts
generated
vendored
@@ -446,26 +446,40 @@ declare const BurstHandlerMajorIdKey = "burst";
|
||||
declare const DEPRECATION_WARNING_PREFIX: "DeprecationWarning";
|
||||
|
||||
/**
|
||||
* The options used for image URLs
|
||||
* The options used for image URLs.
|
||||
*/
|
||||
interface BaseImageURLOptions {
|
||||
/**
|
||||
* The extension to use for the image URL
|
||||
* The extension to use for the image URL.
|
||||
*
|
||||
* @defaultValue `'webp'`
|
||||
*/
|
||||
extension?: ImageExtension;
|
||||
/**
|
||||
* The size specified in the image URL
|
||||
* The size specified in the image URL.
|
||||
*/
|
||||
size?: ImageSize;
|
||||
}
|
||||
interface EmojiURLOptionsWebp extends BaseImageURLOptions {
|
||||
/**
|
||||
* Whether to use the `animated` query parameter.
|
||||
*/
|
||||
animated?: boolean;
|
||||
extension?: 'webp';
|
||||
}
|
||||
interface EmojiURLOptionsNotWebp extends BaseImageURLOptions {
|
||||
extension: Exclude<ImageExtension, 'webp'>;
|
||||
}
|
||||
/**
|
||||
* The options used for image URLs with animated content
|
||||
* The options used for emoji URLs.
|
||||
*/
|
||||
type EmojiURLOptions = EmojiURLOptionsNotWebp | EmojiURLOptionsWebp;
|
||||
/**
|
||||
* The options used for image URLs that may be animated.
|
||||
*/
|
||||
interface ImageURLOptions extends BaseImageURLOptions {
|
||||
/**
|
||||
* Whether or not to prefer the static version of an image asset.
|
||||
* Whether to prefer the static asset.
|
||||
*/
|
||||
forceStatic?: boolean;
|
||||
}
|
||||
@@ -477,6 +491,10 @@ interface MakeURLOptions {
|
||||
* The allowed extensions that can be used
|
||||
*/
|
||||
allowedExtensions?: readonly string[];
|
||||
/**
|
||||
* Whether to use the `animated` query parameter
|
||||
*/
|
||||
animated?: boolean;
|
||||
/**
|
||||
* The base URL.
|
||||
*
|
||||
@@ -579,7 +597,7 @@ declare class CDN {
|
||||
* @param emojiId - The emoji id
|
||||
* @param options - Optional options for the emoji
|
||||
*/
|
||||
emoji(emojiId: string, options?: Readonly<BaseImageURLOptions>): string;
|
||||
emoji(emojiId: string, options?: Readonly<EmojiURLOptions>): string;
|
||||
/**
|
||||
* Generates an emoji's URL for an emoji.
|
||||
*
|
||||
@@ -669,6 +687,14 @@ declare class CDN {
|
||||
* @param soundId - The soundboard sound id
|
||||
*/
|
||||
soundboardSound(soundId: string): string;
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId: string, badgeHash: string, options?: Readonly<BaseImageURLOptions>): string;
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -929,4 +955,4 @@ declare function calculateUserDefaultAvatarIndex(userId: Snowflake): number;
|
||||
*/
|
||||
declare const version: string;
|
||||
|
||||
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DEPRECATION_WARNING_PREFIX, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
||||
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DEPRECATION_WARNING_PREFIX, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type EmojiURLOptions, type EmojiURLOptionsNotWebp, type EmojiURLOptionsWebp, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
||||
|
||||
20
node_modules/@discordjs/rest/dist/web.js
generated
vendored
20
node_modules/@discordjs/rest/dist/web.js
generated
vendored
@@ -61,7 +61,7 @@ var import_v102 = require("discord-api-types/v10");
|
||||
// src/lib/utils/constants.ts
|
||||
var import_util = require("@discordjs/util");
|
||||
var import_v10 = require("discord-api-types/v10");
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.5.1)`;
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.6.0)`;
|
||||
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
|
||||
var DefaultRestOptions = {
|
||||
agent: null,
|
||||
@@ -477,6 +477,16 @@ var CDN = class {
|
||||
soundboardSound(soundId) {
|
||||
return `${this.cdn}${import_v102.CDNRoutes.soundboardSound(soundId)}`;
|
||||
}
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId, badgeHash, options) {
|
||||
return this.makeURL(`/guild-tag-badges/${guildId}/${badgeHash}`, options);
|
||||
}
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -497,7 +507,8 @@ var CDN = class {
|
||||
allowedExtensions = ALLOWED_EXTENSIONS,
|
||||
base = this.cdn,
|
||||
extension = "webp",
|
||||
size
|
||||
size,
|
||||
animated
|
||||
} = {}) {
|
||||
extension = String(extension).toLowerCase();
|
||||
if (!allowedExtensions.includes(extension)) {
|
||||
@@ -509,6 +520,9 @@ Must be one of: ${allowedExtensions.join(", ")}`);
|
||||
Must be one of: ${ALLOWED_SIZES.join(", ")}`);
|
||||
}
|
||||
const url = new URL(`${base}${route}.${extension}`);
|
||||
if (animated !== void 0) {
|
||||
url.searchParams.set("animated", String(animated));
|
||||
}
|
||||
if (size) {
|
||||
url.searchParams.set("size", String(size));
|
||||
}
|
||||
@@ -1403,7 +1417,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
|
||||
};
|
||||
|
||||
// src/shared.ts
|
||||
var version = "2.5.1";
|
||||
var version = "2.6.0";
|
||||
|
||||
// src/web.ts
|
||||
setDefaultStrategy(fetch);
|
||||
|
||||
2
node_modules/@discordjs/rest/dist/web.js.map
generated
vendored
2
node_modules/@discordjs/rest/dist/web.js.map
generated
vendored
File diff suppressed because one or more lines are too long
20
node_modules/@discordjs/rest/dist/web.mjs
generated
vendored
20
node_modules/@discordjs/rest/dist/web.mjs
generated
vendored
@@ -18,7 +18,7 @@ import { CDNRoutes } from "discord-api-types/v10";
|
||||
// src/lib/utils/constants.ts
|
||||
import { getUserAgentAppendix } from "@discordjs/util";
|
||||
import { APIVersion } from "discord-api-types/v10";
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.5.1)`;
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.6.0)`;
|
||||
var DefaultUserAgentAppendix = getUserAgentAppendix();
|
||||
var DefaultRestOptions = {
|
||||
agent: null,
|
||||
@@ -434,6 +434,16 @@ var CDN = class {
|
||||
soundboardSound(soundId) {
|
||||
return `${this.cdn}${CDNRoutes.soundboardSound(soundId)}`;
|
||||
}
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId, badgeHash, options) {
|
||||
return this.makeURL(`/guild-tag-badges/${guildId}/${badgeHash}`, options);
|
||||
}
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -454,7 +464,8 @@ var CDN = class {
|
||||
allowedExtensions = ALLOWED_EXTENSIONS,
|
||||
base = this.cdn,
|
||||
extension = "webp",
|
||||
size
|
||||
size,
|
||||
animated
|
||||
} = {}) {
|
||||
extension = String(extension).toLowerCase();
|
||||
if (!allowedExtensions.includes(extension)) {
|
||||
@@ -466,6 +477,9 @@ Must be one of: ${allowedExtensions.join(", ")}`);
|
||||
Must be one of: ${ALLOWED_SIZES.join(", ")}`);
|
||||
}
|
||||
const url = new URL(`${base}${route}.${extension}`);
|
||||
if (animated !== void 0) {
|
||||
url.searchParams.set("animated", String(animated));
|
||||
}
|
||||
if (size) {
|
||||
url.searchParams.set("size", String(size));
|
||||
}
|
||||
@@ -1360,7 +1374,7 @@ var REST = class _REST extends AsyncEventEmitter {
|
||||
};
|
||||
|
||||
// src/shared.ts
|
||||
var version = "2.5.1";
|
||||
var version = "2.6.0";
|
||||
|
||||
// src/web.ts
|
||||
setDefaultStrategy(fetch);
|
||||
|
||||
2
node_modules/@discordjs/rest/dist/web.mjs.map
generated
vendored
2
node_modules/@discordjs/rest/dist/web.mjs.map
generated
vendored
File diff suppressed because one or more lines are too long
8
node_modules/@discordjs/rest/package.json
generated
vendored
8
node_modules/@discordjs/rest/package.json
generated
vendored
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"name": "@discordjs/rest",
|
||||
"version": "2.5.1",
|
||||
"version": "2.6.0",
|
||||
"description": "The REST API for discord.js",
|
||||
"exports": {
|
||||
".": {
|
||||
@@ -74,7 +74,7 @@
|
||||
"@sapphire/async-queue": "^1.5.3",
|
||||
"@sapphire/snowflake": "^3.5.3",
|
||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||
"discord-api-types": "^0.38.1",
|
||||
"discord-api-types": "^0.38.16",
|
||||
"magic-bytes.js": "^1.10.0",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.21.3",
|
||||
@@ -95,8 +95,8 @@
|
||||
"turbo": "^2.0.14",
|
||||
"typescript": "~5.5.4",
|
||||
"vitest": "^2.0.5",
|
||||
"@discordjs/scripts": "^0.1.0",
|
||||
"@discordjs/api-extractor": "^7.38.1"
|
||||
"@discordjs/api-extractor": "^7.38.1",
|
||||
"@discordjs/scripts": "^0.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
159
node_modules/@eslint-community/eslint-utils/index.js
generated
vendored
159
node_modules/@eslint-community/eslint-utils/index.js
generated
vendored
@@ -286,6 +286,7 @@ function getFunctionHeadLocation(node, sourceCode) {
|
||||
/* globals globalThis, global, self, window */
|
||||
/** @typedef {import("./types.mjs").StaticValue} StaticValue */
|
||||
/** @typedef {import("eslint").Scope.Scope} Scope */
|
||||
/** @typedef {import("eslint").Scope.Variable} Variable */
|
||||
/** @typedef {import("estree").Node} Node */
|
||||
/** @typedef {import("@typescript-eslint/types").TSESTree.Node} TSESTreeNode */
|
||||
/** @typedef {import("@typescript-eslint/types").TSESTree.AST_NODE_TYPES} TSESTreeNodeTypes */
|
||||
@@ -549,9 +550,40 @@ function getElementValues(nodeList, initialScope) {
|
||||
return valueList
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a variable is a built-in global.
|
||||
* @param {Variable|null} variable The variable to check.
|
||||
* @returns {variable is Variable & {defs:[]}}
|
||||
*/
|
||||
function isBuiltinGlobal(variable) {
|
||||
return (
|
||||
variable != null &&
|
||||
variable.defs.length === 0 &&
|
||||
builtinNames.has(variable.name) &&
|
||||
variable.name in globalObject
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a variable can be considered as a constant.
|
||||
* @param {Variable} variable
|
||||
* @returns {variable is Variable & {defs: [import("eslint").Scope.Definition & { type: "Variable" }]}} True if the variable can be considered as a constant.
|
||||
*/
|
||||
function canBeConsideredConst(variable) {
|
||||
if (variable.defs.length !== 1) {
|
||||
return false
|
||||
}
|
||||
const def = variable.defs[0];
|
||||
return Boolean(
|
||||
def.parent &&
|
||||
def.type === "Variable" &&
|
||||
(def.parent.kind === "const" || isEffectivelyConst(variable)),
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the given variable is never written to after initialization.
|
||||
* @param {import("eslint").Scope.Variable} variable
|
||||
* @param {Variable} variable
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function isEffectivelyConst(variable) {
|
||||
@@ -566,6 +598,68 @@ function isEffectivelyConst(variable) {
|
||||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a variable has mutation in its property.
|
||||
* @param {Variable} variable The variable to check.
|
||||
* @param {Scope|null} initialScope The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.
|
||||
* @returns {boolean} True if the variable has mutation in its property.
|
||||
*/
|
||||
function hasMutationInProperty(variable, initialScope) {
|
||||
for (const ref of variable.references) {
|
||||
let node = /** @type {TSESTreeNode} */ (ref.identifier);
|
||||
while (node && node.parent && node.parent.type === "MemberExpression") {
|
||||
node = node.parent;
|
||||
}
|
||||
if (!node || !node.parent) {
|
||||
continue
|
||||
}
|
||||
if (
|
||||
(node.parent.type === "AssignmentExpression" &&
|
||||
node.parent.left === node) ||
|
||||
(node.parent.type === "UpdateExpression" &&
|
||||
node.parent.argument === node)
|
||||
) {
|
||||
// This is a mutation.
|
||||
return true
|
||||
}
|
||||
if (
|
||||
node.parent.type === "CallExpression" &&
|
||||
node.parent.callee === node &&
|
||||
node.type === "MemberExpression"
|
||||
) {
|
||||
const methodName = getStaticPropertyNameValue(node, initialScope);
|
||||
if (isNameOfMutationArrayMethod(methodName)) {
|
||||
// This is a mutation.
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
||||
/**
|
||||
* Checks if a method name is one of the mutation array methods.
|
||||
* @param {StaticValue|null} methodName The method name to check.
|
||||
* @returns {boolean} True if the method name is a mutation array method.
|
||||
*/
|
||||
function isNameOfMutationArrayMethod(methodName) {
|
||||
if (methodName == null || methodName.value == null) {
|
||||
return false
|
||||
}
|
||||
const name = methodName.value;
|
||||
return (
|
||||
name === "copyWithin" ||
|
||||
name === "fill" ||
|
||||
name === "pop" ||
|
||||
name === "push" ||
|
||||
name === "reverse" ||
|
||||
name === "shift" ||
|
||||
name === "sort" ||
|
||||
name === "splice" ||
|
||||
name === "unshift"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @template {TSESTreeNodeTypes} T
|
||||
* @callback VisitorCallback
|
||||
@@ -795,28 +889,35 @@ const operations = Object.freeze({
|
||||
if (initialScope != null) {
|
||||
const variable = findVariable(initialScope, node);
|
||||
|
||||
// Built-in globals.
|
||||
if (
|
||||
variable != null &&
|
||||
variable.defs.length === 0 &&
|
||||
builtinNames.has(variable.name) &&
|
||||
variable.name in globalObject
|
||||
) {
|
||||
return { value: globalObject[variable.name] }
|
||||
}
|
||||
if (variable != null) {
|
||||
// Built-in globals.
|
||||
if (isBuiltinGlobal(variable)) {
|
||||
return { value: globalObject[variable.name] }
|
||||
}
|
||||
|
||||
// Constants.
|
||||
if (variable != null && variable.defs.length === 1) {
|
||||
const def = variable.defs[0];
|
||||
if (
|
||||
def.parent &&
|
||||
def.type === "Variable" &&
|
||||
(def.parent.kind === "const" ||
|
||||
isEffectivelyConst(variable)) &&
|
||||
// TODO(mysticatea): don't support destructuring here.
|
||||
def.node.id.type === "Identifier"
|
||||
) {
|
||||
return getStaticValueR(def.node.init, initialScope)
|
||||
// Constants.
|
||||
if (canBeConsideredConst(variable)) {
|
||||
const def = variable.defs[0];
|
||||
if (
|
||||
// TODO(mysticatea): don't support destructuring here.
|
||||
def.node.id.type === "Identifier"
|
||||
) {
|
||||
const init = getStaticValueR(
|
||||
def.node.init,
|
||||
initialScope,
|
||||
);
|
||||
if (
|
||||
init &&
|
||||
typeof init.value === "object" &&
|
||||
init.value !== null
|
||||
) {
|
||||
if (hasMutationInProperty(variable, initialScope)) {
|
||||
// This variable has mutation in its property.
|
||||
return null
|
||||
}
|
||||
}
|
||||
return init
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1541,6 +1642,8 @@ function hasSideEffect(node, sourceCode, options = {}) {
|
||||
}
|
||||
|
||||
/** @typedef {import("estree").Node} Node */
|
||||
/** @typedef {import("@typescript-eslint/types").TSESTree.NewExpression} TSNewExpression */
|
||||
/** @typedef {import("@typescript-eslint/types").TSESTree.CallExpression} TSCallExpression */
|
||||
/** @typedef {import("eslint").SourceCode} SourceCode */
|
||||
/** @typedef {import("eslint").AST.Token} Token */
|
||||
/** @typedef {import("eslint").Rule.Node} RuleNode */
|
||||
@@ -1552,6 +1655,7 @@ function hasSideEffect(node, sourceCode, options = {}) {
|
||||
* @param {SourceCode} sourceCode The source code object to get tokens.
|
||||
* @returns {Token|null} The left parenthesis of the parent node syntax
|
||||
*/
|
||||
// eslint-disable-next-line complexity
|
||||
function getParentSyntaxParen(node, sourceCode) {
|
||||
const parent = /** @type {RuleNode} */ (node).parent;
|
||||
|
||||
@@ -1560,7 +1664,16 @@ function getParentSyntaxParen(node, sourceCode) {
|
||||
case "NewExpression":
|
||||
if (parent.arguments.length === 1 && parent.arguments[0] === node) {
|
||||
return sourceCode.getTokenAfter(
|
||||
parent.callee,
|
||||
// @ts-expect-error https://github.com/typescript-eslint/typescript-eslint/pull/5384
|
||||
parent.typeArguments ||
|
||||
/** @type {RuleNode} */ (
|
||||
/** @type {unknown} */ (
|
||||
/** @type {TSNewExpression | TSCallExpression} */ (
|
||||
parent
|
||||
).typeParameters
|
||||
)
|
||||
) ||
|
||||
parent.callee,
|
||||
isOpeningParenToken,
|
||||
)
|
||||
}
|
||||
|
||||
2
node_modules/@eslint-community/eslint-utils/index.js.map
generated
vendored
2
node_modules/@eslint-community/eslint-utils/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
159
node_modules/@eslint-community/eslint-utils/index.mjs
generated
vendored
159
node_modules/@eslint-community/eslint-utils/index.mjs
generated
vendored
@@ -282,6 +282,7 @@ function getFunctionHeadLocation(node, sourceCode) {
|
||||
/* globals globalThis, global, self, window */
|
||||
/** @typedef {import("./types.mjs").StaticValue} StaticValue */
|
||||
/** @typedef {import("eslint").Scope.Scope} Scope */
|
||||
/** @typedef {import("eslint").Scope.Variable} Variable */
|
||||
/** @typedef {import("estree").Node} Node */
|
||||
/** @typedef {import("@typescript-eslint/types").TSESTree.Node} TSESTreeNode */
|
||||
/** @typedef {import("@typescript-eslint/types").TSESTree.AST_NODE_TYPES} TSESTreeNodeTypes */
|
||||
@@ -545,9 +546,40 @@ function getElementValues(nodeList, initialScope) {
|
||||
return valueList
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a variable is a built-in global.
|
||||
* @param {Variable|null} variable The variable to check.
|
||||
* @returns {variable is Variable & {defs:[]}}
|
||||
*/
|
||||
function isBuiltinGlobal(variable) {
|
||||
return (
|
||||
variable != null &&
|
||||
variable.defs.length === 0 &&
|
||||
builtinNames.has(variable.name) &&
|
||||
variable.name in globalObject
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a variable can be considered as a constant.
|
||||
* @param {Variable} variable
|
||||
* @returns {variable is Variable & {defs: [import("eslint").Scope.Definition & { type: "Variable" }]}} True if the variable can be considered as a constant.
|
||||
*/
|
||||
function canBeConsideredConst(variable) {
|
||||
if (variable.defs.length !== 1) {
|
||||
return false
|
||||
}
|
||||
const def = variable.defs[0];
|
||||
return Boolean(
|
||||
def.parent &&
|
||||
def.type === "Variable" &&
|
||||
(def.parent.kind === "const" || isEffectivelyConst(variable)),
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the given variable is never written to after initialization.
|
||||
* @param {import("eslint").Scope.Variable} variable
|
||||
* @param {Variable} variable
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function isEffectivelyConst(variable) {
|
||||
@@ -562,6 +594,68 @@ function isEffectivelyConst(variable) {
|
||||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a variable has mutation in its property.
|
||||
* @param {Variable} variable The variable to check.
|
||||
* @param {Scope|null} initialScope The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.
|
||||
* @returns {boolean} True if the variable has mutation in its property.
|
||||
*/
|
||||
function hasMutationInProperty(variable, initialScope) {
|
||||
for (const ref of variable.references) {
|
||||
let node = /** @type {TSESTreeNode} */ (ref.identifier);
|
||||
while (node && node.parent && node.parent.type === "MemberExpression") {
|
||||
node = node.parent;
|
||||
}
|
||||
if (!node || !node.parent) {
|
||||
continue
|
||||
}
|
||||
if (
|
||||
(node.parent.type === "AssignmentExpression" &&
|
||||
node.parent.left === node) ||
|
||||
(node.parent.type === "UpdateExpression" &&
|
||||
node.parent.argument === node)
|
||||
) {
|
||||
// This is a mutation.
|
||||
return true
|
||||
}
|
||||
if (
|
||||
node.parent.type === "CallExpression" &&
|
||||
node.parent.callee === node &&
|
||||
node.type === "MemberExpression"
|
||||
) {
|
||||
const methodName = getStaticPropertyNameValue(node, initialScope);
|
||||
if (isNameOfMutationArrayMethod(methodName)) {
|
||||
// This is a mutation.
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
||||
/**
|
||||
* Checks if a method name is one of the mutation array methods.
|
||||
* @param {StaticValue|null} methodName The method name to check.
|
||||
* @returns {boolean} True if the method name is a mutation array method.
|
||||
*/
|
||||
function isNameOfMutationArrayMethod(methodName) {
|
||||
if (methodName == null || methodName.value == null) {
|
||||
return false
|
||||
}
|
||||
const name = methodName.value;
|
||||
return (
|
||||
name === "copyWithin" ||
|
||||
name === "fill" ||
|
||||
name === "pop" ||
|
||||
name === "push" ||
|
||||
name === "reverse" ||
|
||||
name === "shift" ||
|
||||
name === "sort" ||
|
||||
name === "splice" ||
|
||||
name === "unshift"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @template {TSESTreeNodeTypes} T
|
||||
* @callback VisitorCallback
|
||||
@@ -791,28 +885,35 @@ const operations = Object.freeze({
|
||||
if (initialScope != null) {
|
||||
const variable = findVariable(initialScope, node);
|
||||
|
||||
// Built-in globals.
|
||||
if (
|
||||
variable != null &&
|
||||
variable.defs.length === 0 &&
|
||||
builtinNames.has(variable.name) &&
|
||||
variable.name in globalObject
|
||||
) {
|
||||
return { value: globalObject[variable.name] }
|
||||
}
|
||||
if (variable != null) {
|
||||
// Built-in globals.
|
||||
if (isBuiltinGlobal(variable)) {
|
||||
return { value: globalObject[variable.name] }
|
||||
}
|
||||
|
||||
// Constants.
|
||||
if (variable != null && variable.defs.length === 1) {
|
||||
const def = variable.defs[0];
|
||||
if (
|
||||
def.parent &&
|
||||
def.type === "Variable" &&
|
||||
(def.parent.kind === "const" ||
|
||||
isEffectivelyConst(variable)) &&
|
||||
// TODO(mysticatea): don't support destructuring here.
|
||||
def.node.id.type === "Identifier"
|
||||
) {
|
||||
return getStaticValueR(def.node.init, initialScope)
|
||||
// Constants.
|
||||
if (canBeConsideredConst(variable)) {
|
||||
const def = variable.defs[0];
|
||||
if (
|
||||
// TODO(mysticatea): don't support destructuring here.
|
||||
def.node.id.type === "Identifier"
|
||||
) {
|
||||
const init = getStaticValueR(
|
||||
def.node.init,
|
||||
initialScope,
|
||||
);
|
||||
if (
|
||||
init &&
|
||||
typeof init.value === "object" &&
|
||||
init.value !== null
|
||||
) {
|
||||
if (hasMutationInProperty(variable, initialScope)) {
|
||||
// This variable has mutation in its property.
|
||||
return null
|
||||
}
|
||||
}
|
||||
return init
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1537,6 +1638,8 @@ function hasSideEffect(node, sourceCode, options = {}) {
|
||||
}
|
||||
|
||||
/** @typedef {import("estree").Node} Node */
|
||||
/** @typedef {import("@typescript-eslint/types").TSESTree.NewExpression} TSNewExpression */
|
||||
/** @typedef {import("@typescript-eslint/types").TSESTree.CallExpression} TSCallExpression */
|
||||
/** @typedef {import("eslint").SourceCode} SourceCode */
|
||||
/** @typedef {import("eslint").AST.Token} Token */
|
||||
/** @typedef {import("eslint").Rule.Node} RuleNode */
|
||||
@@ -1548,6 +1651,7 @@ function hasSideEffect(node, sourceCode, options = {}) {
|
||||
* @param {SourceCode} sourceCode The source code object to get tokens.
|
||||
* @returns {Token|null} The left parenthesis of the parent node syntax
|
||||
*/
|
||||
// eslint-disable-next-line complexity
|
||||
function getParentSyntaxParen(node, sourceCode) {
|
||||
const parent = /** @type {RuleNode} */ (node).parent;
|
||||
|
||||
@@ -1556,7 +1660,16 @@ function getParentSyntaxParen(node, sourceCode) {
|
||||
case "NewExpression":
|
||||
if (parent.arguments.length === 1 && parent.arguments[0] === node) {
|
||||
return sourceCode.getTokenAfter(
|
||||
parent.callee,
|
||||
// @ts-expect-error https://github.com/typescript-eslint/typescript-eslint/pull/5384
|
||||
parent.typeArguments ||
|
||||
/** @type {RuleNode} */ (
|
||||
/** @type {unknown} */ (
|
||||
/** @type {TSNewExpression | TSCallExpression} */ (
|
||||
parent
|
||||
).typeParameters
|
||||
)
|
||||
) ||
|
||||
parent.callee,
|
||||
isOpeningParenToken,
|
||||
)
|
||||
}
|
||||
|
||||
2
node_modules/@eslint-community/eslint-utils/index.mjs.map
generated
vendored
2
node_modules/@eslint-community/eslint-utils/index.mjs.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@eslint-community/eslint-utils/package.json
generated
vendored
2
node_modules/@eslint-community/eslint-utils/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@eslint-community/eslint-utils",
|
||||
"version": "4.7.0",
|
||||
"version": "4.9.0",
|
||||
"description": "Utilities for ESLint plugins.",
|
||||
"keywords": [
|
||||
"eslint"
|
||||
|
||||
2
node_modules/@eslint/js/package.json
generated
vendored
2
node_modules/@eslint/js/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@eslint/js",
|
||||
"version": "9.33.0",
|
||||
"version": "9.36.0",
|
||||
"description": "ESLint JavaScript language implementation",
|
||||
"funding": "https://eslint.org/donate",
|
||||
"main": "./src/index.js",
|
||||
|
||||
5
node_modules/@eslint/js/src/configs/eslint-all.js
generated
vendored
5
node_modules/@eslint/js/src/configs/eslint-all.js
generated
vendored
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
module.exports = Object.freeze({
|
||||
"rules": {
|
||||
rules: Object.freeze({
|
||||
"accessor-pairs": "error",
|
||||
"array-callback-return": "error",
|
||||
"arrow-body-style": "error",
|
||||
@@ -197,6 +197,7 @@ module.exports = Object.freeze({
|
||||
"prefer-rest-params": "error",
|
||||
"prefer-spread": "error",
|
||||
"prefer-template": "error",
|
||||
"preserve-caught-error": "error",
|
||||
"radix": "error",
|
||||
"require-atomic-updates": "error",
|
||||
"require-await": "error",
|
||||
@@ -212,5 +213,5 @@ module.exports = Object.freeze({
|
||||
"valid-typeof": "error",
|
||||
"vars-on-top": "error",
|
||||
"yoda": "error"
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
201
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/LICENSE
generated
vendored
201
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/LICENSE
generated
vendored
@@ -1,201 +0,0 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
138
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/README.md
generated
vendored
138
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/README.md
generated
vendored
@@ -1,138 +0,0 @@
|
||||
# Retry utility
|
||||
|
||||
by [Nicholas C. Zakas](https://humanwhocodes.com)
|
||||
|
||||
If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate) or [nominate me](https://stars.github.com/nominate/) for a GitHub Star.
|
||||
|
||||
## Description
|
||||
|
||||
A utility for retrying failed async JavaScript calls based on the error returned.
|
||||
|
||||
## Usage
|
||||
|
||||
### Node.js
|
||||
|
||||
Install using [npm][npm] or [yarn][yarn]:
|
||||
|
||||
```
|
||||
npm install @humanwhocodes/retry
|
||||
|
||||
# or
|
||||
|
||||
yarn add @humanwhocodes/retry
|
||||
```
|
||||
|
||||
Import into your Node.js project:
|
||||
|
||||
```js
|
||||
// CommonJS
|
||||
const { Retrier } = require("@humanwhocodes/retry");
|
||||
|
||||
// ESM
|
||||
import { Retrier } from "@humanwhocodes/retry";
|
||||
```
|
||||
|
||||
### Deno
|
||||
|
||||
Install using [JSR](https://jsr.io):
|
||||
|
||||
```shell
|
||||
deno add @humanwhocodes/retry
|
||||
|
||||
#or
|
||||
|
||||
jsr add @humanwhocodes/retry
|
||||
```
|
||||
|
||||
Then import into your Deno project:
|
||||
|
||||
```js
|
||||
import { Retrier } from "@humanwhocodes/retry";
|
||||
```
|
||||
|
||||
### Bun
|
||||
|
||||
Install using this command:
|
||||
|
||||
```
|
||||
bun add @humanwhocodes/retry
|
||||
```
|
||||
|
||||
Import into your Bun project:
|
||||
|
||||
```js
|
||||
import { Retrier } from "@humanwhocodes/retry";
|
||||
```
|
||||
|
||||
### Browser
|
||||
|
||||
It's recommended to import the minified version to save bandwidth:
|
||||
|
||||
```js
|
||||
import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry?min";
|
||||
```
|
||||
|
||||
However, you can also import the unminified version for debugging purposes:
|
||||
|
||||
```js
|
||||
import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry";
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
After importing, create a new instance of `Retrier` and specify the function to run on the error. This function should return `true` if you want the call retried and `false` if not.
|
||||
|
||||
```js
|
||||
// this instance will retry if the specific error code is found
|
||||
const retrier = new Retrier(error => {
|
||||
return error.code === "ENFILE" || error.code === "EMFILE";
|
||||
});
|
||||
```
|
||||
|
||||
Then, call the `retry()` method around the function you'd like to retry, such as:
|
||||
|
||||
```js
|
||||
import fs from "fs/promises";
|
||||
|
||||
const retrier = new Retrier(error => {
|
||||
return error.code === "ENFILE" || error.code === "EMFILE";
|
||||
});
|
||||
|
||||
const text = await retrier.retry(() => fs.readFile("README.md", "utf8"));
|
||||
```
|
||||
|
||||
The `retry()` method will either pass through the result on success or wait and retry on failure. Any error that isn't caught by the retrier is automatically rejected so the end result is a transparent passing through of both success and failure.
|
||||
|
||||
You can also pass an `AbortSignal` to cancel a retry:
|
||||
|
||||
```js
|
||||
import fs from "fs/promises";
|
||||
|
||||
const controller = new AbortController();
|
||||
const retrier = new Retrier(error => {
|
||||
return error.code === "ENFILE" || error.code === "EMFILE";
|
||||
});
|
||||
|
||||
const text = await retrier.retry(
|
||||
() => fs.readFile("README.md", "utf8"),
|
||||
{ signal: controller.signal }
|
||||
);
|
||||
```
|
||||
|
||||
## Developer Setup
|
||||
|
||||
1. Fork the repository
|
||||
2. Clone your fork
|
||||
3. Run `npm install` to setup dependencies
|
||||
4. Run `npm test` to run tests
|
||||
|
||||
## License
|
||||
|
||||
Apache 2.0
|
||||
|
||||
## Prior Art
|
||||
|
||||
This utility is inspired by, and contains code from [`graceful-fs`](https://github.com/isaacs/node-graceful-fs).
|
||||
|
||||
[npm]: https://npmjs.com/
|
||||
[yarn]: https://yarnpkg.com/
|
||||
303
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.cjs
generated
vendored
303
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.cjs
generated
vendored
@@ -1,303 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @fileoverview A utility for retrying failed async method calls.
|
||||
*/
|
||||
|
||||
/* global setTimeout, clearTimeout */
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Constants
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
const MAX_TASK_TIMEOUT = 60000;
|
||||
const MAX_TASK_DELAY = 100;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Helpers
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* The following logic has been extracted from graceful-fs.
|
||||
*
|
||||
* The ISC License
|
||||
*
|
||||
* Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Checks if it is time to retry a task based on the timestamp and last attempt time.
|
||||
* @param {RetryTask} task The task to check.
|
||||
* @param {number} maxDelay The maximum delay for the queue.
|
||||
* @returns {boolean} true if it is time to retry, false otherwise.
|
||||
*/
|
||||
function isTimeToRetry(task, maxDelay) {
|
||||
const timeSinceLastAttempt = Date.now() - task.lastAttempt;
|
||||
const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1);
|
||||
const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay);
|
||||
|
||||
return timeSinceLastAttempt >= desiredDelay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if it is time to bail out based on the given timestamp.
|
||||
* @param {RetryTask} task The task to check.
|
||||
* @param {number} timeout The timeout for the queue.
|
||||
* @returns {boolean} true if it is time to bail, false otherwise.
|
||||
*/
|
||||
function isTimeToBail(task, timeout) {
|
||||
return task.age > timeout;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A class to represent a task in the retry queue.
|
||||
*/
|
||||
class RetryTask {
|
||||
|
||||
/**
|
||||
* The unique ID for the task.
|
||||
* @type {string}
|
||||
*/
|
||||
id = Math.random().toString(36).slice(2);
|
||||
|
||||
/**
|
||||
* The function to call.
|
||||
* @type {Function}
|
||||
*/
|
||||
fn;
|
||||
|
||||
/**
|
||||
* The error that was thrown.
|
||||
* @type {Error}
|
||||
*/
|
||||
error;
|
||||
|
||||
/**
|
||||
* The timestamp of the task.
|
||||
* @type {number}
|
||||
*/
|
||||
timestamp = Date.now();
|
||||
|
||||
/**
|
||||
* The timestamp of the last attempt.
|
||||
* @type {number}
|
||||
*/
|
||||
lastAttempt = this.timestamp;
|
||||
|
||||
/**
|
||||
* The resolve function for the promise.
|
||||
* @type {Function}
|
||||
*/
|
||||
resolve;
|
||||
|
||||
/**
|
||||
* The reject function for the promise.
|
||||
* @type {Function}
|
||||
*/
|
||||
reject;
|
||||
|
||||
/**
|
||||
* The AbortSignal to monitor for cancellation.
|
||||
* @type {AbortSignal|undefined}
|
||||
*/
|
||||
signal;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Function} fn The function to call.
|
||||
* @param {Error} error The error that was thrown.
|
||||
* @param {Function} resolve The resolve function for the promise.
|
||||
* @param {Function} reject The reject function for the promise.
|
||||
* @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation.
|
||||
*/
|
||||
constructor(fn, error, resolve, reject, signal) {
|
||||
this.fn = fn;
|
||||
this.error = error;
|
||||
this.timestamp = Date.now();
|
||||
this.lastAttempt = Date.now();
|
||||
this.resolve = resolve;
|
||||
this.reject = reject;
|
||||
this.signal = signal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the age of the task.
|
||||
* @returns {number} The age of the task in milliseconds.
|
||||
* @readonly
|
||||
*/
|
||||
get age() {
|
||||
return Date.now() - this.timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Exports
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* A class that manages a queue of retry jobs.
|
||||
*/
|
||||
class Retrier {
|
||||
|
||||
/**
|
||||
* Represents the queue for processing tasks.
|
||||
* @type {Array<RetryTask>}
|
||||
*/
|
||||
#queue = [];
|
||||
|
||||
/**
|
||||
* The timeout for the queue.
|
||||
* @type {number}
|
||||
*/
|
||||
#timeout;
|
||||
|
||||
/**
|
||||
* The maximum delay for the queue.
|
||||
* @type {number}
|
||||
*/
|
||||
#maxDelay;
|
||||
|
||||
/**
|
||||
* The setTimeout() timer ID.
|
||||
* @type {NodeJS.Timeout|undefined}
|
||||
*/
|
||||
#timerId;
|
||||
|
||||
/**
|
||||
* The function to call.
|
||||
* @type {Function}
|
||||
*/
|
||||
#check;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Function} check The function to call.
|
||||
* @param {object} [options] The options for the instance.
|
||||
* @param {number} [options.timeout] The timeout for the queue.
|
||||
* @param {number} [options.maxDelay] The maximum delay for the queue.
|
||||
*/
|
||||
constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) {
|
||||
|
||||
if (typeof check !== "function") {
|
||||
throw new Error("Missing function to check errors");
|
||||
}
|
||||
|
||||
this.#check = check;
|
||||
this.#timeout = timeout;
|
||||
this.#maxDelay = maxDelay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new retry job to the queue.
|
||||
* @param {Function} fn The function to call.
|
||||
* @param {object} [options] The options for the job.
|
||||
* @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation.
|
||||
* @returns {Promise<any>} A promise that resolves when the queue is
|
||||
* processed.
|
||||
*/
|
||||
retry(fn, { signal } = {}) {
|
||||
|
||||
signal?.throwIfAborted();
|
||||
|
||||
let result;
|
||||
|
||||
try {
|
||||
result = fn();
|
||||
} catch (/** @type {any} */ error) {
|
||||
return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error }));
|
||||
}
|
||||
|
||||
// if the result is not a promise then reject an error
|
||||
if (!result || typeof result.then !== "function") {
|
||||
return Promise.reject(new Error("Result is not a promise."));
|
||||
}
|
||||
|
||||
// call the original function and catch any ENFILE or EMFILE errors
|
||||
// @ts-ignore because we know it's any
|
||||
return Promise.resolve(result).catch(error => {
|
||||
if (!this.#check(error)) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
this.#queue.push(new RetryTask(fn, error, resolve, reject, signal));
|
||||
|
||||
signal?.addEventListener("abort", () => {
|
||||
reject(signal.reason);
|
||||
});
|
||||
|
||||
this.#processQueue();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Processes the queue.
|
||||
* @returns {void}
|
||||
*/
|
||||
#processQueue() {
|
||||
// clear any timer because we're going to check right now
|
||||
clearTimeout(this.#timerId);
|
||||
this.#timerId = undefined;
|
||||
|
||||
// if there's nothing in the queue, we're done
|
||||
const task = this.#queue.shift();
|
||||
if (!task) {
|
||||
return;
|
||||
}
|
||||
const processAgain = () => {
|
||||
this.#timerId = setTimeout(() => this.#processQueue(), 0);
|
||||
};
|
||||
|
||||
// if it's time to bail, then bail
|
||||
if (isTimeToBail(task, this.#timeout)) {
|
||||
task.reject(task.error);
|
||||
processAgain();
|
||||
return;
|
||||
}
|
||||
|
||||
// if it's not time to retry, then wait and try again
|
||||
if (!isTimeToRetry(task, this.#maxDelay)) {
|
||||
this.#queue.push(task);
|
||||
processAgain();
|
||||
return;
|
||||
}
|
||||
|
||||
// otherwise, try again
|
||||
task.lastAttempt = Date.now();
|
||||
|
||||
// Promise.resolve needed in case it's a thenable but not a Promise
|
||||
Promise.resolve(task.fn())
|
||||
// @ts-ignore because we know it's any
|
||||
.then(result => task.resolve(result))
|
||||
|
||||
// @ts-ignore because we know it's any
|
||||
.catch(error => {
|
||||
if (!this.#check(error)) {
|
||||
task.reject(error);
|
||||
return;
|
||||
}
|
||||
|
||||
// update the task timestamp and push to back of queue to try again
|
||||
task.lastAttempt = Date.now();
|
||||
this.#queue.push(task);
|
||||
|
||||
})
|
||||
.finally(() => this.#processQueue());
|
||||
}
|
||||
}
|
||||
|
||||
exports.Retrier = Retrier;
|
||||
28
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.cts
generated
vendored
28
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.cts
generated
vendored
@@ -1,28 +0,0 @@
|
||||
/**
|
||||
* A class that manages a queue of retry jobs.
|
||||
*/
|
||||
export class Retrier {
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Function} check The function to call.
|
||||
* @param {object} [options] The options for the instance.
|
||||
* @param {number} [options.timeout] The timeout for the queue.
|
||||
* @param {number} [options.maxDelay] The maximum delay for the queue.
|
||||
*/
|
||||
constructor(check: Function, { timeout, maxDelay }?: {
|
||||
timeout?: number | undefined;
|
||||
maxDelay?: number | undefined;
|
||||
} | undefined);
|
||||
/**
|
||||
* Adds a new retry job to the queue.
|
||||
* @param {Function} fn The function to call.
|
||||
* @param {object} [options] The options for the job.
|
||||
* @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation.
|
||||
* @returns {Promise<any>} A promise that resolves when the queue is
|
||||
* processed.
|
||||
*/
|
||||
retry(fn: Function, { signal }?: {
|
||||
signal?: AbortSignal | undefined;
|
||||
} | undefined): Promise<any>;
|
||||
#private;
|
||||
}
|
||||
28
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.ts
generated
vendored
28
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.ts
generated
vendored
@@ -1,28 +0,0 @@
|
||||
/**
|
||||
* A class that manages a queue of retry jobs.
|
||||
*/
|
||||
export class Retrier {
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Function} check The function to call.
|
||||
* @param {object} [options] The options for the instance.
|
||||
* @param {number} [options.timeout] The timeout for the queue.
|
||||
* @param {number} [options.maxDelay] The maximum delay for the queue.
|
||||
*/
|
||||
constructor(check: Function, { timeout, maxDelay }?: {
|
||||
timeout?: number | undefined;
|
||||
maxDelay?: number | undefined;
|
||||
} | undefined);
|
||||
/**
|
||||
* Adds a new retry job to the queue.
|
||||
* @param {Function} fn The function to call.
|
||||
* @param {object} [options] The options for the job.
|
||||
* @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation.
|
||||
* @returns {Promise<any>} A promise that resolves when the queue is
|
||||
* processed.
|
||||
*/
|
||||
retry(fn: Function, { signal }?: {
|
||||
signal?: AbortSignal | undefined;
|
||||
} | undefined): Promise<any>;
|
||||
#private;
|
||||
}
|
||||
302
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.js
generated
vendored
302
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.js
generated
vendored
@@ -1,302 +0,0 @@
|
||||
// @ts-self-types="./retrier.d.ts"
|
||||
/**
|
||||
* @fileoverview A utility for retrying failed async method calls.
|
||||
*/
|
||||
|
||||
/* global setTimeout, clearTimeout */
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Constants
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
const MAX_TASK_TIMEOUT = 60000;
|
||||
const MAX_TASK_DELAY = 100;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Helpers
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* The following logic has been extracted from graceful-fs.
|
||||
*
|
||||
* The ISC License
|
||||
*
|
||||
* Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Checks if it is time to retry a task based on the timestamp and last attempt time.
|
||||
* @param {RetryTask} task The task to check.
|
||||
* @param {number} maxDelay The maximum delay for the queue.
|
||||
* @returns {boolean} true if it is time to retry, false otherwise.
|
||||
*/
|
||||
function isTimeToRetry(task, maxDelay) {
|
||||
const timeSinceLastAttempt = Date.now() - task.lastAttempt;
|
||||
const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1);
|
||||
const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay);
|
||||
|
||||
return timeSinceLastAttempt >= desiredDelay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if it is time to bail out based on the given timestamp.
|
||||
* @param {RetryTask} task The task to check.
|
||||
* @param {number} timeout The timeout for the queue.
|
||||
* @returns {boolean} true if it is time to bail, false otherwise.
|
||||
*/
|
||||
function isTimeToBail(task, timeout) {
|
||||
return task.age > timeout;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A class to represent a task in the retry queue.
|
||||
*/
|
||||
class RetryTask {
|
||||
|
||||
/**
|
||||
* The unique ID for the task.
|
||||
* @type {string}
|
||||
*/
|
||||
id = Math.random().toString(36).slice(2);
|
||||
|
||||
/**
|
||||
* The function to call.
|
||||
* @type {Function}
|
||||
*/
|
||||
fn;
|
||||
|
||||
/**
|
||||
* The error that was thrown.
|
||||
* @type {Error}
|
||||
*/
|
||||
error;
|
||||
|
||||
/**
|
||||
* The timestamp of the task.
|
||||
* @type {number}
|
||||
*/
|
||||
timestamp = Date.now();
|
||||
|
||||
/**
|
||||
* The timestamp of the last attempt.
|
||||
* @type {number}
|
||||
*/
|
||||
lastAttempt = this.timestamp;
|
||||
|
||||
/**
|
||||
* The resolve function for the promise.
|
||||
* @type {Function}
|
||||
*/
|
||||
resolve;
|
||||
|
||||
/**
|
||||
* The reject function for the promise.
|
||||
* @type {Function}
|
||||
*/
|
||||
reject;
|
||||
|
||||
/**
|
||||
* The AbortSignal to monitor for cancellation.
|
||||
* @type {AbortSignal|undefined}
|
||||
*/
|
||||
signal;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Function} fn The function to call.
|
||||
* @param {Error} error The error that was thrown.
|
||||
* @param {Function} resolve The resolve function for the promise.
|
||||
* @param {Function} reject The reject function for the promise.
|
||||
* @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation.
|
||||
*/
|
||||
constructor(fn, error, resolve, reject, signal) {
|
||||
this.fn = fn;
|
||||
this.error = error;
|
||||
this.timestamp = Date.now();
|
||||
this.lastAttempt = Date.now();
|
||||
this.resolve = resolve;
|
||||
this.reject = reject;
|
||||
this.signal = signal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the age of the task.
|
||||
* @returns {number} The age of the task in milliseconds.
|
||||
* @readonly
|
||||
*/
|
||||
get age() {
|
||||
return Date.now() - this.timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Exports
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* A class that manages a queue of retry jobs.
|
||||
*/
|
||||
class Retrier {
|
||||
|
||||
/**
|
||||
* Represents the queue for processing tasks.
|
||||
* @type {Array<RetryTask>}
|
||||
*/
|
||||
#queue = [];
|
||||
|
||||
/**
|
||||
* The timeout for the queue.
|
||||
* @type {number}
|
||||
*/
|
||||
#timeout;
|
||||
|
||||
/**
|
||||
* The maximum delay for the queue.
|
||||
* @type {number}
|
||||
*/
|
||||
#maxDelay;
|
||||
|
||||
/**
|
||||
* The setTimeout() timer ID.
|
||||
* @type {NodeJS.Timeout|undefined}
|
||||
*/
|
||||
#timerId;
|
||||
|
||||
/**
|
||||
* The function to call.
|
||||
* @type {Function}
|
||||
*/
|
||||
#check;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Function} check The function to call.
|
||||
* @param {object} [options] The options for the instance.
|
||||
* @param {number} [options.timeout] The timeout for the queue.
|
||||
* @param {number} [options.maxDelay] The maximum delay for the queue.
|
||||
*/
|
||||
constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) {
|
||||
|
||||
if (typeof check !== "function") {
|
||||
throw new Error("Missing function to check errors");
|
||||
}
|
||||
|
||||
this.#check = check;
|
||||
this.#timeout = timeout;
|
||||
this.#maxDelay = maxDelay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new retry job to the queue.
|
||||
* @param {Function} fn The function to call.
|
||||
* @param {object} [options] The options for the job.
|
||||
* @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation.
|
||||
* @returns {Promise<any>} A promise that resolves when the queue is
|
||||
* processed.
|
||||
*/
|
||||
retry(fn, { signal } = {}) {
|
||||
|
||||
signal?.throwIfAborted();
|
||||
|
||||
let result;
|
||||
|
||||
try {
|
||||
result = fn();
|
||||
} catch (/** @type {any} */ error) {
|
||||
return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error }));
|
||||
}
|
||||
|
||||
// if the result is not a promise then reject an error
|
||||
if (!result || typeof result.then !== "function") {
|
||||
return Promise.reject(new Error("Result is not a promise."));
|
||||
}
|
||||
|
||||
// call the original function and catch any ENFILE or EMFILE errors
|
||||
// @ts-ignore because we know it's any
|
||||
return Promise.resolve(result).catch(error => {
|
||||
if (!this.#check(error)) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
this.#queue.push(new RetryTask(fn, error, resolve, reject, signal));
|
||||
|
||||
signal?.addEventListener("abort", () => {
|
||||
reject(signal.reason);
|
||||
});
|
||||
|
||||
this.#processQueue();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Processes the queue.
|
||||
* @returns {void}
|
||||
*/
|
||||
#processQueue() {
|
||||
// clear any timer because we're going to check right now
|
||||
clearTimeout(this.#timerId);
|
||||
this.#timerId = undefined;
|
||||
|
||||
// if there's nothing in the queue, we're done
|
||||
const task = this.#queue.shift();
|
||||
if (!task) {
|
||||
return;
|
||||
}
|
||||
const processAgain = () => {
|
||||
this.#timerId = setTimeout(() => this.#processQueue(), 0);
|
||||
};
|
||||
|
||||
// if it's time to bail, then bail
|
||||
if (isTimeToBail(task, this.#timeout)) {
|
||||
task.reject(task.error);
|
||||
processAgain();
|
||||
return;
|
||||
}
|
||||
|
||||
// if it's not time to retry, then wait and try again
|
||||
if (!isTimeToRetry(task, this.#maxDelay)) {
|
||||
this.#queue.push(task);
|
||||
processAgain();
|
||||
return;
|
||||
}
|
||||
|
||||
// otherwise, try again
|
||||
task.lastAttempt = Date.now();
|
||||
|
||||
// Promise.resolve needed in case it's a thenable but not a Promise
|
||||
Promise.resolve(task.fn())
|
||||
// @ts-ignore because we know it's any
|
||||
.then(result => task.resolve(result))
|
||||
|
||||
// @ts-ignore because we know it's any
|
||||
.catch(error => {
|
||||
if (!this.#check(error)) {
|
||||
task.reject(error);
|
||||
return;
|
||||
}
|
||||
|
||||
// update the task timestamp and push to back of queue to try again
|
||||
task.lastAttempt = Date.now();
|
||||
this.#queue.push(task);
|
||||
|
||||
})
|
||||
.finally(() => this.#processQueue());
|
||||
}
|
||||
}
|
||||
|
||||
export { Retrier };
|
||||
1
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.min.js
generated
vendored
1
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.min.js
generated
vendored
@@ -1 +0,0 @@
|
||||
class RetryTask{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(t,e,r,s,i){this.fn=t,this.error=e,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=r,this.reject=s,this.signal=i}get age(){return Date.now()-this.timestamp}}class Retrier{#t=[];#e;#r;#s;#i;constructor(t,{timeout:e=6e4,maxDelay:r=100}={}){if("function"!=typeof t)throw new Error("Missing function to check errors");this.#i=t,this.#e=e,this.#r=r}retry(t,{signal:e}={}){let r;e?.throwIfAborted();try{r=t()}catch(t){return Promise.reject(new Error(`Synchronous error: ${t.message}`,{cause:t}))}return r&&"function"==typeof r.then?Promise.resolve(r).catch((r=>{if(!this.#i(r))throw r;return new Promise(((s,i)=>{this.#t.push(new RetryTask(t,r,s,i,e)),e?.addEventListener("abort",(()=>{i(e.reason)})),this.#o()}))})):Promise.reject(new Error("Result is not a promise."))}#o(){clearTimeout(this.#s),this.#s=void 0;const t=this.#t.shift();if(!t)return;const e=()=>{this.#s=setTimeout((()=>this.#o()),0)};return function(t,e){return t.age>e}(t,this.#e)?(t.reject(t.error),void e()):function(t,e){const r=Date.now()-t.lastAttempt,s=Math.max(t.lastAttempt-t.timestamp,1);return r>=Math.min(1.2*s,e)}(t,this.#r)?(t.lastAttempt=Date.now(),void Promise.resolve(t.fn()).then((e=>t.resolve(e))).catch((e=>{this.#i(e)?(t.lastAttempt=Date.now(),this.#t.push(t)):t.reject(e)})).finally((()=>this.#o()))):(this.#t.push(t),void e())}}export{Retrier};
|
||||
301
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.mjs
generated
vendored
301
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.mjs
generated
vendored
@@ -1,301 +0,0 @@
|
||||
/**
|
||||
* @fileoverview A utility for retrying failed async method calls.
|
||||
*/
|
||||
|
||||
/* global setTimeout, clearTimeout */
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Constants
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
const MAX_TASK_TIMEOUT = 60000;
|
||||
const MAX_TASK_DELAY = 100;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Helpers
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* The following logic has been extracted from graceful-fs.
|
||||
*
|
||||
* The ISC License
|
||||
*
|
||||
* Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Checks if it is time to retry a task based on the timestamp and last attempt time.
|
||||
* @param {RetryTask} task The task to check.
|
||||
* @param {number} maxDelay The maximum delay for the queue.
|
||||
* @returns {boolean} true if it is time to retry, false otherwise.
|
||||
*/
|
||||
function isTimeToRetry(task, maxDelay) {
|
||||
const timeSinceLastAttempt = Date.now() - task.lastAttempt;
|
||||
const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1);
|
||||
const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay);
|
||||
|
||||
return timeSinceLastAttempt >= desiredDelay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if it is time to bail out based on the given timestamp.
|
||||
* @param {RetryTask} task The task to check.
|
||||
* @param {number} timeout The timeout for the queue.
|
||||
* @returns {boolean} true if it is time to bail, false otherwise.
|
||||
*/
|
||||
function isTimeToBail(task, timeout) {
|
||||
return task.age > timeout;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A class to represent a task in the retry queue.
|
||||
*/
|
||||
class RetryTask {
|
||||
|
||||
/**
|
||||
* The unique ID for the task.
|
||||
* @type {string}
|
||||
*/
|
||||
id = Math.random().toString(36).slice(2);
|
||||
|
||||
/**
|
||||
* The function to call.
|
||||
* @type {Function}
|
||||
*/
|
||||
fn;
|
||||
|
||||
/**
|
||||
* The error that was thrown.
|
||||
* @type {Error}
|
||||
*/
|
||||
error;
|
||||
|
||||
/**
|
||||
* The timestamp of the task.
|
||||
* @type {number}
|
||||
*/
|
||||
timestamp = Date.now();
|
||||
|
||||
/**
|
||||
* The timestamp of the last attempt.
|
||||
* @type {number}
|
||||
*/
|
||||
lastAttempt = this.timestamp;
|
||||
|
||||
/**
|
||||
* The resolve function for the promise.
|
||||
* @type {Function}
|
||||
*/
|
||||
resolve;
|
||||
|
||||
/**
|
||||
* The reject function for the promise.
|
||||
* @type {Function}
|
||||
*/
|
||||
reject;
|
||||
|
||||
/**
|
||||
* The AbortSignal to monitor for cancellation.
|
||||
* @type {AbortSignal|undefined}
|
||||
*/
|
||||
signal;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Function} fn The function to call.
|
||||
* @param {Error} error The error that was thrown.
|
||||
* @param {Function} resolve The resolve function for the promise.
|
||||
* @param {Function} reject The reject function for the promise.
|
||||
* @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation.
|
||||
*/
|
||||
constructor(fn, error, resolve, reject, signal) {
|
||||
this.fn = fn;
|
||||
this.error = error;
|
||||
this.timestamp = Date.now();
|
||||
this.lastAttempt = Date.now();
|
||||
this.resolve = resolve;
|
||||
this.reject = reject;
|
||||
this.signal = signal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the age of the task.
|
||||
* @returns {number} The age of the task in milliseconds.
|
||||
* @readonly
|
||||
*/
|
||||
get age() {
|
||||
return Date.now() - this.timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Exports
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* A class that manages a queue of retry jobs.
|
||||
*/
|
||||
class Retrier {
|
||||
|
||||
/**
|
||||
* Represents the queue for processing tasks.
|
||||
* @type {Array<RetryTask>}
|
||||
*/
|
||||
#queue = [];
|
||||
|
||||
/**
|
||||
* The timeout for the queue.
|
||||
* @type {number}
|
||||
*/
|
||||
#timeout;
|
||||
|
||||
/**
|
||||
* The maximum delay for the queue.
|
||||
* @type {number}
|
||||
*/
|
||||
#maxDelay;
|
||||
|
||||
/**
|
||||
* The setTimeout() timer ID.
|
||||
* @type {NodeJS.Timeout|undefined}
|
||||
*/
|
||||
#timerId;
|
||||
|
||||
/**
|
||||
* The function to call.
|
||||
* @type {Function}
|
||||
*/
|
||||
#check;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
* @param {Function} check The function to call.
|
||||
* @param {object} [options] The options for the instance.
|
||||
* @param {number} [options.timeout] The timeout for the queue.
|
||||
* @param {number} [options.maxDelay] The maximum delay for the queue.
|
||||
*/
|
||||
constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) {
|
||||
|
||||
if (typeof check !== "function") {
|
||||
throw new Error("Missing function to check errors");
|
||||
}
|
||||
|
||||
this.#check = check;
|
||||
this.#timeout = timeout;
|
||||
this.#maxDelay = maxDelay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new retry job to the queue.
|
||||
* @param {Function} fn The function to call.
|
||||
* @param {object} [options] The options for the job.
|
||||
* @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation.
|
||||
* @returns {Promise<any>} A promise that resolves when the queue is
|
||||
* processed.
|
||||
*/
|
||||
retry(fn, { signal } = {}) {
|
||||
|
||||
signal?.throwIfAborted();
|
||||
|
||||
let result;
|
||||
|
||||
try {
|
||||
result = fn();
|
||||
} catch (/** @type {any} */ error) {
|
||||
return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error }));
|
||||
}
|
||||
|
||||
// if the result is not a promise then reject an error
|
||||
if (!result || typeof result.then !== "function") {
|
||||
return Promise.reject(new Error("Result is not a promise."));
|
||||
}
|
||||
|
||||
// call the original function and catch any ENFILE or EMFILE errors
|
||||
// @ts-ignore because we know it's any
|
||||
return Promise.resolve(result).catch(error => {
|
||||
if (!this.#check(error)) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
this.#queue.push(new RetryTask(fn, error, resolve, reject, signal));
|
||||
|
||||
signal?.addEventListener("abort", () => {
|
||||
reject(signal.reason);
|
||||
});
|
||||
|
||||
this.#processQueue();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Processes the queue.
|
||||
* @returns {void}
|
||||
*/
|
||||
#processQueue() {
|
||||
// clear any timer because we're going to check right now
|
||||
clearTimeout(this.#timerId);
|
||||
this.#timerId = undefined;
|
||||
|
||||
// if there's nothing in the queue, we're done
|
||||
const task = this.#queue.shift();
|
||||
if (!task) {
|
||||
return;
|
||||
}
|
||||
const processAgain = () => {
|
||||
this.#timerId = setTimeout(() => this.#processQueue(), 0);
|
||||
};
|
||||
|
||||
// if it's time to bail, then bail
|
||||
if (isTimeToBail(task, this.#timeout)) {
|
||||
task.reject(task.error);
|
||||
processAgain();
|
||||
return;
|
||||
}
|
||||
|
||||
// if it's not time to retry, then wait and try again
|
||||
if (!isTimeToRetry(task, this.#maxDelay)) {
|
||||
this.#queue.push(task);
|
||||
processAgain();
|
||||
return;
|
||||
}
|
||||
|
||||
// otherwise, try again
|
||||
task.lastAttempt = Date.now();
|
||||
|
||||
// Promise.resolve needed in case it's a thenable but not a Promise
|
||||
Promise.resolve(task.fn())
|
||||
// @ts-ignore because we know it's any
|
||||
.then(result => task.resolve(result))
|
||||
|
||||
// @ts-ignore because we know it's any
|
||||
.catch(error => {
|
||||
if (!this.#check(error)) {
|
||||
task.reject(error);
|
||||
return;
|
||||
}
|
||||
|
||||
// update the task timestamp and push to back of queue to try again
|
||||
task.lastAttempt = Date.now();
|
||||
this.#queue.push(task);
|
||||
|
||||
})
|
||||
.finally(() => this.#processQueue());
|
||||
}
|
||||
}
|
||||
|
||||
export { Retrier };
|
||||
77
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/package.json
generated
vendored
77
node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/package.json
generated
vendored
@@ -1,77 +0,0 @@
|
||||
{
|
||||
"name": "@humanwhocodes/retry",
|
||||
"version": "0.3.1",
|
||||
"description": "A utility to retry failed async methods.",
|
||||
"type": "module",
|
||||
"main": "dist/retrier.cjs",
|
||||
"module": "dist/retrier.js",
|
||||
"types": "dist/retrier.d.ts",
|
||||
"exports": {
|
||||
"require": {
|
||||
"types": "./dist/retrier.d.cts",
|
||||
"default": "./dist/retrier.cjs"
|
||||
},
|
||||
"import": {
|
||||
"types": "./dist/retrier.d.ts",
|
||||
"default": "./dist/retrier.js"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18.18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"eslint --fix"
|
||||
]
|
||||
},
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/nzakas"
|
||||
},
|
||||
"scripts": {
|
||||
"build:cts-types": "node -e \"fs.copyFileSync('dist/retrier.d.ts', 'dist/retrier.d.cts')\"",
|
||||
"build": "rollup -c && tsc && npm run build:cts-types",
|
||||
"prepare": "npm run build",
|
||||
"lint": "eslint src/ tests/",
|
||||
"pretest": "npm run build",
|
||||
"test:unit": "mocha tests/retrier.test.js",
|
||||
"test:build": "node tests/pkg.test.cjs && node tests/pkg.test.mjs",
|
||||
"test:jsr": "npx jsr@latest publish --dry-run",
|
||||
"test:emfile": "node tools/check-emfile-handling.js",
|
||||
"test": "npm run test:unit && npm run test:build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/humanwhocodes/retry.git"
|
||||
},
|
||||
"keywords": [
|
||||
"nodejs",
|
||||
"retry",
|
||||
"async",
|
||||
"promises"
|
||||
],
|
||||
"author": "Nicholas C. Zaks",
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^8.49.0",
|
||||
"@rollup/plugin-terser": "0.4.4",
|
||||
"@tsconfig/node16": "^16.1.1",
|
||||
"@types/mocha": "^10.0.3",
|
||||
"@types/node": "20.12.6",
|
||||
"eslint": "^8.21.0",
|
||||
"lint-staged": "15.2.1",
|
||||
"mocha": "^10.3.0",
|
||||
"rollup": "3.29.4",
|
||||
"typescript": "5.4.4",
|
||||
"yorkie": "2.0.0"
|
||||
}
|
||||
}
|
||||
7
node_modules/@humanfs/node/package.json
generated
vendored
7
node_modules/@humanfs/node/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@humanfs/node",
|
||||
"version": "0.16.6",
|
||||
"version": "0.16.7",
|
||||
"description": "The Node.js bindings of the humanfs library.",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
@@ -23,7 +23,8 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/humanwhocodes/humanfs.git"
|
||||
"url": "git+https://github.com/humanwhocodes/humanfs.git",
|
||||
"directory": "packages/node"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@@ -51,7 +52,7 @@
|
||||
"typescript": "^5.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@humanwhocodes/retry": "^0.3.0",
|
||||
"@humanwhocodes/retry": "^0.4.0",
|
||||
"@humanfs/core": "^0.19.1"
|
||||
}
|
||||
}
|
||||
|
||||
2
node_modules/@types/node/README.md
generated
vendored
2
node_modules/@types/node/README.md
generated
vendored
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Fri, 15 Aug 2025 08:39:32 GMT
|
||||
* Last updated: Thu, 18 Sep 2025 00:04:03 GMT
|
||||
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
||||
|
||||
# Credits
|
||||
|
||||
2
node_modules/@types/node/buffer.d.ts
generated
vendored
2
node_modules/@types/node/buffer.d.ts
generated
vendored
@@ -139,7 +139,7 @@ declare module "buffer" {
|
||||
type?: string | undefined;
|
||||
}
|
||||
/**
|
||||
* A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
|
||||
* A `Blob` encapsulates immutable, raw data that can be safely shared across
|
||||
* multiple worker threads.
|
||||
* @since v15.7.0, v14.18.0
|
||||
*/
|
||||
|
||||
2
node_modules/@types/node/child_process.d.ts
generated
vendored
2
node_modules/@types/node/child_process.d.ts
generated
vendored
@@ -24,7 +24,7 @@
|
||||
* the parent Node.js process and the spawned subprocess. These pipes have
|
||||
* limited (and platform-specific) capacity. If the subprocess writes to
|
||||
* stdout in excess of that limit without the output being captured, the
|
||||
* subprocess blocks waiting for the pipe buffer to accept more data. This is
|
||||
* subprocess blocks, waiting for the pipe buffer to accept more data. This is
|
||||
* identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }` option if the output will not be consumed.
|
||||
*
|
||||
* The command lookup is performed using the `options.env.PATH` environment
|
||||
|
||||
54
node_modules/@types/node/crypto.d.ts
generated
vendored
54
node_modules/@types/node/crypto.d.ts
generated
vendored
@@ -3363,11 +3363,36 @@ declare module "crypto" {
|
||||
options: { privateKey: KeyObject; publicKey: KeyObject },
|
||||
callback: (err: Error | null, secret: Buffer) => void,
|
||||
): void;
|
||||
interface OneShotDigestOptions {
|
||||
/**
|
||||
* Encoding used to encode the returned digest.
|
||||
* @default 'hex'
|
||||
*/
|
||||
outputEncoding?: BinaryToTextEncoding | "buffer" | undefined;
|
||||
/**
|
||||
* For XOF hash functions such as 'shake256', the outputLength option
|
||||
* can be used to specify the desired output length in bytes.
|
||||
*/
|
||||
outputLength?: number | undefined;
|
||||
}
|
||||
interface OneShotDigestOptionsWithStringEncoding extends OneShotDigestOptions {
|
||||
outputEncoding?: BinaryToTextEncoding | undefined;
|
||||
}
|
||||
interface OneShotDigestOptionsWithBufferEncoding extends OneShotDigestOptions {
|
||||
outputEncoding: "buffer";
|
||||
}
|
||||
/**
|
||||
* A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data
|
||||
* (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm`
|
||||
* is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases
|
||||
* of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms.
|
||||
* A utility for creating one-shot hash digests of data. It can be faster than
|
||||
* the object-based `crypto.createHash()` when hashing a smaller amount of data
|
||||
* (<= 5MB) that's readily available. If the data can be big or if it is streamed,
|
||||
* it's still recommended to use `crypto.createHash()` instead.
|
||||
*
|
||||
* The `algorithm` is dependent on the available algorithms supported by the
|
||||
* version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
|
||||
* On recent releases of OpenSSL, `openssl list -digest-algorithms` will
|
||||
* display the available digest algorithms.
|
||||
*
|
||||
* If `options` is a string, then it specifies the `outputEncoding`.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
@@ -3387,16 +3412,25 @@ declare module "crypto" {
|
||||
* console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer'));
|
||||
* ```
|
||||
* @since v21.7.0, v20.12.0
|
||||
* @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
|
||||
* could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
|
||||
* @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v24.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
|
||||
* @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different
|
||||
* input encoding is desired for a string input, user could encode the string
|
||||
* into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing
|
||||
* the encoded `TypedArray` into this API instead.
|
||||
*/
|
||||
function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
|
||||
function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
|
||||
function hash(
|
||||
algorithm: string,
|
||||
data: BinaryLike,
|
||||
outputEncoding?: BinaryToTextEncoding | "buffer",
|
||||
options?: OneShotDigestOptionsWithStringEncoding | BinaryToTextEncoding,
|
||||
): string;
|
||||
function hash(
|
||||
algorithm: string,
|
||||
data: BinaryLike,
|
||||
options: OneShotDigestOptionsWithBufferEncoding | "buffer",
|
||||
): Buffer;
|
||||
function hash(
|
||||
algorithm: string,
|
||||
data: BinaryLike,
|
||||
options: OneShotDigestOptions | BinaryToTextEncoding | "buffer",
|
||||
): string | Buffer;
|
||||
type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts";
|
||||
interface CipherInfoOptions {
|
||||
|
||||
5
node_modules/@types/node/dns.d.ts
generated
vendored
5
node_modules/@types/node/dns.d.ts
generated
vendored
@@ -830,6 +830,11 @@ declare module "dns" {
|
||||
* @default 4
|
||||
*/
|
||||
tries?: number;
|
||||
/**
|
||||
* The max retry timeout, in milliseconds.
|
||||
* @default 0
|
||||
*/
|
||||
maxTimeout?: number | undefined;
|
||||
}
|
||||
/**
|
||||
* An independent resolver for DNS requests.
|
||||
|
||||
33
node_modules/@types/node/fs.d.ts
generated
vendored
33
node_modules/@types/node/fs.d.ts
generated
vendored
@@ -1966,6 +1966,39 @@ declare module "fs" {
|
||||
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
||||
*/
|
||||
export function mkdtempSync(prefix: string, options?: EncodingOption): string | Buffer;
|
||||
export interface DisposableTempDir extends AsyncDisposable {
|
||||
/**
|
||||
* The path of the created directory.
|
||||
*/
|
||||
path: string;
|
||||
/**
|
||||
* A function which removes the created directory.
|
||||
*/
|
||||
remove(): Promise<void>;
|
||||
/**
|
||||
* The same as `remove`.
|
||||
*/
|
||||
[Symbol.asyncDispose](): Promise<void>;
|
||||
}
|
||||
/**
|
||||
* Returns a disposable object whose `path` property holds the created directory
|
||||
* path. When the object is disposed, the directory and its contents will be
|
||||
* removed if it still exists. If the directory cannot be deleted, disposal will
|
||||
* throw an error. The object has a `remove()` method which will perform the same
|
||||
* task.
|
||||
*
|
||||
* <!-- TODO: link MDN docs for disposables once https://github.com/mdn/content/pull/38027 lands -->
|
||||
*
|
||||
* For detailed information, see the documentation of `fs.mkdtemp()`.
|
||||
*
|
||||
* There is no callback-based version of this API because it is designed for use
|
||||
* with the `using` syntax.
|
||||
*
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use.
|
||||
* @since v24.4.0
|
||||
*/
|
||||
export function mkdtempDisposableSync(prefix: string, options?: EncodingOption): DisposableTempDir;
|
||||
/**
|
||||
* Reads the contents of a directory. The callback gets two arguments `(err, files)` where `files` is an array of the names of the files in the directory excluding `'.'` and `'..'`.
|
||||
*
|
||||
|
||||
22
node_modules/@types/node/fs/promises.d.ts
generated
vendored
22
node_modules/@types/node/fs/promises.d.ts
generated
vendored
@@ -20,6 +20,8 @@ declare module "fs/promises" {
|
||||
CopyOptions,
|
||||
Dir,
|
||||
Dirent,
|
||||
DisposableTempDir,
|
||||
EncodingOption,
|
||||
GlobOptions,
|
||||
GlobOptionsWithFileTypes,
|
||||
GlobOptionsWithoutFileTypes,
|
||||
@@ -961,6 +963,26 @@ declare module "fs/promises" {
|
||||
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
||||
*/
|
||||
function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>;
|
||||
/**
|
||||
* The resulting Promise holds an async-disposable object whose `path` property
|
||||
* holds the created directory path. When the object is disposed, the directory
|
||||
* and its contents will be removed asynchronously if it still exists. If the
|
||||
* directory cannot be deleted, disposal will throw an error. The object has an
|
||||
* async `remove()` method which will perform the same task.
|
||||
*
|
||||
* Both this function and the disposal function on the resulting object are
|
||||
* async, so it should be used with `await` + `await using` as in
|
||||
* `await using dir = await fsPromises.mkdtempDisposable('prefix')`.
|
||||
*
|
||||
* <!-- TODO: link MDN docs for disposables once https://github.com/mdn/content/pull/38027 lands -->
|
||||
*
|
||||
* For detailed information, see the documentation of `fsPromises.mkdtemp()`.
|
||||
*
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use.
|
||||
* @since v24.4.0
|
||||
*/
|
||||
function mkdtempDisposable(prefix: PathLike, options?: EncodingOption): Promise<DisposableTempDir>;
|
||||
/**
|
||||
* Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an
|
||||
* [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an
|
||||
|
||||
525
node_modules/@types/node/globals.d.ts
generated
vendored
525
node_modules/@types/node/globals.d.ts
generated
vendored
@@ -1,367 +1,168 @@
|
||||
export {}; // Make this a module
|
||||
declare var global: typeof globalThis;
|
||||
|
||||
// #region Fetch and friends
|
||||
// Conditional type aliases, used at the end of this file.
|
||||
// Will either be empty if lib.dom (or lib.webworker) is included, or the undici version otherwise.
|
||||
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
|
||||
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
|
||||
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
|
||||
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
|
||||
type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").MessageEvent;
|
||||
type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
|
||||
: import("undici-types").RequestInit;
|
||||
type _ResponseInit = typeof globalThis extends { onmessage: any } ? {}
|
||||
: import("undici-types").ResponseInit;
|
||||
type _WebSocket = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").WebSocket;
|
||||
type _EventSource = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").EventSource;
|
||||
type _CloseEvent = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").CloseEvent;
|
||||
// #endregion Fetch and friends
|
||||
|
||||
// Conditional type definitions for webstorage interface, which conflicts with lib.dom otherwise.
|
||||
type _Storage = typeof globalThis extends { onabort: any } ? {} : {
|
||||
readonly length: number;
|
||||
clear(): void;
|
||||
getItem(key: string): string | null;
|
||||
key(index: number): string | null;
|
||||
removeItem(key: string): void;
|
||||
setItem(key: string, value: string): void;
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
// #region DOMException
|
||||
type _DOMException = typeof globalThis extends { onmessage: any } ? {} : NodeDOMException;
|
||||
interface NodeDOMException extends Error {
|
||||
readonly code: number;
|
||||
readonly message: string;
|
||||
readonly name: string;
|
||||
readonly INDEX_SIZE_ERR: 1;
|
||||
readonly DOMSTRING_SIZE_ERR: 2;
|
||||
readonly HIERARCHY_REQUEST_ERR: 3;
|
||||
readonly WRONG_DOCUMENT_ERR: 4;
|
||||
readonly INVALID_CHARACTER_ERR: 5;
|
||||
readonly NO_DATA_ALLOWED_ERR: 6;
|
||||
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
|
||||
readonly NOT_FOUND_ERR: 8;
|
||||
readonly NOT_SUPPORTED_ERR: 9;
|
||||
readonly INUSE_ATTRIBUTE_ERR: 10;
|
||||
readonly INVALID_STATE_ERR: 11;
|
||||
readonly SYNTAX_ERR: 12;
|
||||
readonly INVALID_MODIFICATION_ERR: 13;
|
||||
readonly NAMESPACE_ERR: 14;
|
||||
readonly INVALID_ACCESS_ERR: 15;
|
||||
readonly VALIDATION_ERR: 16;
|
||||
readonly TYPE_MISMATCH_ERR: 17;
|
||||
readonly SECURITY_ERR: 18;
|
||||
readonly NETWORK_ERR: 19;
|
||||
readonly ABORT_ERR: 20;
|
||||
readonly URL_MISMATCH_ERR: 21;
|
||||
readonly QUOTA_EXCEEDED_ERR: 22;
|
||||
readonly TIMEOUT_ERR: 23;
|
||||
readonly INVALID_NODE_TYPE_ERR: 24;
|
||||
readonly DATA_CLONE_ERR: 25;
|
||||
}
|
||||
interface NodeDOMExceptionConstructor {
|
||||
prototype: DOMException;
|
||||
new(message?: string, nameOrOptions?: string | { name?: string; cause?: unknown }): DOMException;
|
||||
readonly INDEX_SIZE_ERR: 1;
|
||||
readonly DOMSTRING_SIZE_ERR: 2;
|
||||
readonly HIERARCHY_REQUEST_ERR: 3;
|
||||
readonly WRONG_DOCUMENT_ERR: 4;
|
||||
readonly INVALID_CHARACTER_ERR: 5;
|
||||
readonly NO_DATA_ALLOWED_ERR: 6;
|
||||
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
|
||||
readonly NOT_FOUND_ERR: 8;
|
||||
readonly NOT_SUPPORTED_ERR: 9;
|
||||
readonly INUSE_ATTRIBUTE_ERR: 10;
|
||||
readonly INVALID_STATE_ERR: 11;
|
||||
readonly SYNTAX_ERR: 12;
|
||||
readonly INVALID_MODIFICATION_ERR: 13;
|
||||
readonly NAMESPACE_ERR: 14;
|
||||
readonly INVALID_ACCESS_ERR: 15;
|
||||
readonly VALIDATION_ERR: 16;
|
||||
readonly TYPE_MISMATCH_ERR: 17;
|
||||
readonly SECURITY_ERR: 18;
|
||||
readonly NETWORK_ERR: 19;
|
||||
readonly ABORT_ERR: 20;
|
||||
readonly URL_MISMATCH_ERR: 21;
|
||||
readonly QUOTA_EXCEEDED_ERR: 22;
|
||||
readonly TIMEOUT_ERR: 23;
|
||||
readonly INVALID_NODE_TYPE_ERR: 24;
|
||||
readonly DATA_CLONE_ERR: 25;
|
||||
}
|
||||
// #endregion DOMException
|
||||
|
||||
declare global {
|
||||
var global: typeof globalThis;
|
||||
|
||||
var process: NodeJS.Process;
|
||||
var console: Console;
|
||||
|
||||
interface ErrorConstructor {
|
||||
/**
|
||||
* Creates a `.stack` property on `targetObject`, which when accessed returns
|
||||
* a string representing the location in the code at which
|
||||
* `Error.captureStackTrace()` was called.
|
||||
*
|
||||
* ```js
|
||||
* const myObject = {};
|
||||
* Error.captureStackTrace(myObject);
|
||||
* myObject.stack; // Similar to `new Error().stack`
|
||||
* ```
|
||||
*
|
||||
* The first line of the trace will be prefixed with
|
||||
* `${myObject.name}: ${myObject.message}`.
|
||||
*
|
||||
* The optional `constructorOpt` argument accepts a function. If given, all frames
|
||||
* above `constructorOpt`, including `constructorOpt`, will be omitted from the
|
||||
* generated stack trace.
|
||||
*
|
||||
* The `constructorOpt` argument is useful for hiding implementation
|
||||
* details of error generation from the user. For instance:
|
||||
*
|
||||
* ```js
|
||||
* function a() {
|
||||
* b();
|
||||
* }
|
||||
*
|
||||
* function b() {
|
||||
* c();
|
||||
* }
|
||||
*
|
||||
* function c() {
|
||||
* // Create an error without stack trace to avoid calculating the stack trace twice.
|
||||
* const { stackTraceLimit } = Error;
|
||||
* Error.stackTraceLimit = 0;
|
||||
* const error = new Error();
|
||||
* Error.stackTraceLimit = stackTraceLimit;
|
||||
*
|
||||
* // Capture the stack trace above function b
|
||||
* Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
|
||||
* throw error;
|
||||
* }
|
||||
*
|
||||
* a();
|
||||
* ```
|
||||
*/
|
||||
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
||||
/**
|
||||
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
||||
*/
|
||||
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
||||
/**
|
||||
* The `Error.stackTraceLimit` property specifies the number of stack frames
|
||||
* collected by a stack trace (whether generated by `new Error().stack` or
|
||||
* `Error.captureStackTrace(obj)`).
|
||||
*
|
||||
* The default value is `10` but may be set to any valid JavaScript number. Changes
|
||||
* will affect any stack trace captured _after_ the value has been changed.
|
||||
*
|
||||
* If set to a non-number value, or set to a negative number, stack traces will
|
||||
* not capture any frames.
|
||||
*/
|
||||
stackTraceLimit: number;
|
||||
}
|
||||
declare var process: NodeJS.Process;
|
||||
declare var console: Console;
|
||||
|
||||
interface ErrorConstructor {
|
||||
/**
|
||||
* Enable this API with the `--expose-gc` CLI flag.
|
||||
* Creates a `.stack` property on `targetObject`, which when accessed returns
|
||||
* a string representing the location in the code at which
|
||||
* `Error.captureStackTrace()` was called.
|
||||
*
|
||||
* ```js
|
||||
* const myObject = {};
|
||||
* Error.captureStackTrace(myObject);
|
||||
* myObject.stack; // Similar to `new Error().stack`
|
||||
* ```
|
||||
*
|
||||
* The first line of the trace will be prefixed with
|
||||
* `${myObject.name}: ${myObject.message}`.
|
||||
*
|
||||
* The optional `constructorOpt` argument accepts a function. If given, all frames
|
||||
* above `constructorOpt`, including `constructorOpt`, will be omitted from the
|
||||
* generated stack trace.
|
||||
*
|
||||
* The `constructorOpt` argument is useful for hiding implementation
|
||||
* details of error generation from the user. For instance:
|
||||
*
|
||||
* ```js
|
||||
* function a() {
|
||||
* b();
|
||||
* }
|
||||
*
|
||||
* function b() {
|
||||
* c();
|
||||
* }
|
||||
*
|
||||
* function c() {
|
||||
* // Create an error without stack trace to avoid calculating the stack trace twice.
|
||||
* const { stackTraceLimit } = Error;
|
||||
* Error.stackTraceLimit = 0;
|
||||
* const error = new Error();
|
||||
* Error.stackTraceLimit = stackTraceLimit;
|
||||
*
|
||||
* // Capture the stack trace above function b
|
||||
* Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
|
||||
* throw error;
|
||||
* }
|
||||
*
|
||||
* a();
|
||||
* ```
|
||||
*/
|
||||
var gc: NodeJS.GCFunction | undefined;
|
||||
|
||||
namespace NodeJS {
|
||||
interface CallSite {
|
||||
getColumnNumber(): number | null;
|
||||
getEnclosingColumnNumber(): number | null;
|
||||
getEnclosingLineNumber(): number | null;
|
||||
getEvalOrigin(): string | undefined;
|
||||
getFileName(): string | null;
|
||||
getFunction(): Function | undefined;
|
||||
getFunctionName(): string | null;
|
||||
getLineNumber(): number | null;
|
||||
getMethodName(): string | null;
|
||||
getPosition(): number;
|
||||
getPromiseIndex(): number | null;
|
||||
getScriptHash(): string;
|
||||
getScriptNameOrSourceURL(): string | null;
|
||||
getThis(): unknown;
|
||||
getTypeName(): string | null;
|
||||
isAsync(): boolean;
|
||||
isConstructor(): boolean;
|
||||
isEval(): boolean;
|
||||
isNative(): boolean;
|
||||
isPromiseAll(): boolean;
|
||||
isToplevel(): boolean;
|
||||
}
|
||||
|
||||
interface ErrnoException extends Error {
|
||||
errno?: number | undefined;
|
||||
code?: string | undefined;
|
||||
path?: string | undefined;
|
||||
syscall?: string | undefined;
|
||||
}
|
||||
|
||||
interface ReadableStream extends EventEmitter {
|
||||
readable: boolean;
|
||||
read(size?: number): string | Buffer;
|
||||
setEncoding(encoding: BufferEncoding): this;
|
||||
pause(): this;
|
||||
resume(): this;
|
||||
isPaused(): boolean;
|
||||
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
|
||||
unpipe(destination?: WritableStream): this;
|
||||
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
||||
wrap(oldStream: ReadableStream): this;
|
||||
[Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
|
||||
}
|
||||
|
||||
interface WritableStream extends EventEmitter {
|
||||
writable: boolean;
|
||||
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
||||
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
||||
end(cb?: () => void): this;
|
||||
end(data: string | Uint8Array, cb?: () => void): this;
|
||||
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
||||
}
|
||||
|
||||
interface ReadWriteStream extends ReadableStream, WritableStream {}
|
||||
|
||||
interface RefCounted {
|
||||
ref(): this;
|
||||
unref(): this;
|
||||
}
|
||||
|
||||
interface Dict<T> {
|
||||
[key: string]: T | undefined;
|
||||
}
|
||||
|
||||
interface ReadOnlyDict<T> {
|
||||
readonly [key: string]: T | undefined;
|
||||
}
|
||||
|
||||
interface GCFunction {
|
||||
(minor?: boolean): void;
|
||||
(options: NodeJS.GCOptions & { execution: "async" }): Promise<void>;
|
||||
(options: NodeJS.GCOptions): void;
|
||||
}
|
||||
|
||||
interface GCOptions {
|
||||
execution?: "sync" | "async" | undefined;
|
||||
flavor?: "regular" | "last-resort" | undefined;
|
||||
type?: "major-snapshot" | "major" | "minor" | undefined;
|
||||
filename?: string | undefined;
|
||||
}
|
||||
|
||||
/** An iterable iterator returned by the Node.js API. */
|
||||
interface Iterator<T, TReturn = undefined, TNext = any> extends IteratorObject<T, TReturn, TNext> {
|
||||
[Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
|
||||
}
|
||||
|
||||
/** An async iterable iterator returned by the Node.js API. */
|
||||
interface AsyncIterator<T, TReturn = undefined, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
|
||||
[Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
|
||||
}
|
||||
}
|
||||
|
||||
// Global DOM types
|
||||
|
||||
interface DOMException extends _DOMException {}
|
||||
var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
|
||||
: NodeDOMExceptionConstructor;
|
||||
|
||||
// #region AbortController
|
||||
interface AbortController {
|
||||
readonly signal: AbortSignal;
|
||||
abort(reason?: any): void;
|
||||
}
|
||||
var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
|
||||
: {
|
||||
prototype: AbortController;
|
||||
new(): AbortController;
|
||||
};
|
||||
|
||||
interface AbortSignal extends EventTarget {
|
||||
readonly aborted: boolean;
|
||||
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
||||
readonly reason: any;
|
||||
throwIfAborted(): void;
|
||||
}
|
||||
var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
|
||||
: {
|
||||
prototype: AbortSignal;
|
||||
new(): AbortSignal;
|
||||
abort(reason?: any): AbortSignal;
|
||||
any(signals: AbortSignal[]): AbortSignal;
|
||||
timeout(milliseconds: number): AbortSignal;
|
||||
};
|
||||
// #endregion AbortController
|
||||
|
||||
// #region Storage
|
||||
interface Storage extends _Storage {}
|
||||
// Conditional on `onabort` rather than `onmessage`, in order to exclude lib.webworker
|
||||
var Storage: typeof globalThis extends { onabort: any; Storage: infer T } ? T
|
||||
: {
|
||||
prototype: Storage;
|
||||
new(): Storage;
|
||||
};
|
||||
|
||||
var localStorage: Storage;
|
||||
var sessionStorage: Storage;
|
||||
// #endregion Storage
|
||||
|
||||
// #region fetch
|
||||
interface RequestInit extends _RequestInit {}
|
||||
|
||||
function fetch(
|
||||
input: string | URL | globalThis.Request,
|
||||
init?: RequestInit,
|
||||
): Promise<Response>;
|
||||
|
||||
interface Request extends _Request {}
|
||||
var Request: typeof globalThis extends {
|
||||
onmessage: any;
|
||||
Request: infer T;
|
||||
} ? T
|
||||
: typeof import("undici-types").Request;
|
||||
|
||||
interface ResponseInit extends _ResponseInit {}
|
||||
|
||||
interface Response extends _Response {}
|
||||
var Response: typeof globalThis extends {
|
||||
onmessage: any;
|
||||
Response: infer T;
|
||||
} ? T
|
||||
: typeof import("undici-types").Response;
|
||||
|
||||
interface FormData extends _FormData {}
|
||||
var FormData: typeof globalThis extends {
|
||||
onmessage: any;
|
||||
FormData: infer T;
|
||||
} ? T
|
||||
: typeof import("undici-types").FormData;
|
||||
|
||||
interface Headers extends _Headers {}
|
||||
var Headers: typeof globalThis extends {
|
||||
onmessage: any;
|
||||
Headers: infer T;
|
||||
} ? T
|
||||
: typeof import("undici-types").Headers;
|
||||
|
||||
interface MessageEvent extends _MessageEvent {}
|
||||
var MessageEvent: typeof globalThis extends {
|
||||
onmessage: any;
|
||||
MessageEvent: infer T;
|
||||
} ? T
|
||||
: typeof import("undici-types").MessageEvent;
|
||||
|
||||
interface WebSocket extends _WebSocket {}
|
||||
var WebSocket: typeof globalThis extends { onmessage: any; WebSocket: infer T } ? T
|
||||
: typeof import("undici-types").WebSocket;
|
||||
|
||||
interface EventSource extends _EventSource {}
|
||||
var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T
|
||||
: typeof import("undici-types").EventSource;
|
||||
|
||||
interface CloseEvent extends _CloseEvent {}
|
||||
var CloseEvent: typeof globalThis extends { onmessage: any; CloseEvent: infer T } ? T
|
||||
: typeof import("undici-types").CloseEvent;
|
||||
// #endregion fetch
|
||||
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
||||
/**
|
||||
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
||||
*/
|
||||
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
||||
/**
|
||||
* The `Error.stackTraceLimit` property specifies the number of stack frames
|
||||
* collected by a stack trace (whether generated by `new Error().stack` or
|
||||
* `Error.captureStackTrace(obj)`).
|
||||
*
|
||||
* The default value is `10` but may be set to any valid JavaScript number. Changes
|
||||
* will affect any stack trace captured _after_ the value has been changed.
|
||||
*
|
||||
* If set to a non-number value, or set to a negative number, stack traces will
|
||||
* not capture any frames.
|
||||
*/
|
||||
stackTraceLimit: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable this API with the `--expose-gc` CLI flag.
|
||||
*/
|
||||
declare var gc: NodeJS.GCFunction | undefined;
|
||||
|
||||
declare namespace NodeJS {
|
||||
interface CallSite {
|
||||
getColumnNumber(): number | null;
|
||||
getEnclosingColumnNumber(): number | null;
|
||||
getEnclosingLineNumber(): number | null;
|
||||
getEvalOrigin(): string | undefined;
|
||||
getFileName(): string | null;
|
||||
getFunction(): Function | undefined;
|
||||
getFunctionName(): string | null;
|
||||
getLineNumber(): number | null;
|
||||
getMethodName(): string | null;
|
||||
getPosition(): number;
|
||||
getPromiseIndex(): number | null;
|
||||
getScriptHash(): string;
|
||||
getScriptNameOrSourceURL(): string | null;
|
||||
getThis(): unknown;
|
||||
getTypeName(): string | null;
|
||||
isAsync(): boolean;
|
||||
isConstructor(): boolean;
|
||||
isEval(): boolean;
|
||||
isNative(): boolean;
|
||||
isPromiseAll(): boolean;
|
||||
isToplevel(): boolean;
|
||||
}
|
||||
|
||||
interface ErrnoException extends Error {
|
||||
errno?: number | undefined;
|
||||
code?: string | undefined;
|
||||
path?: string | undefined;
|
||||
syscall?: string | undefined;
|
||||
}
|
||||
|
||||
interface ReadableStream extends EventEmitter {
|
||||
readable: boolean;
|
||||
read(size?: number): string | Buffer;
|
||||
setEncoding(encoding: BufferEncoding): this;
|
||||
pause(): this;
|
||||
resume(): this;
|
||||
isPaused(): boolean;
|
||||
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
|
||||
unpipe(destination?: WritableStream): this;
|
||||
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
||||
wrap(oldStream: ReadableStream): this;
|
||||
[Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
|
||||
}
|
||||
|
||||
interface WritableStream extends EventEmitter {
|
||||
writable: boolean;
|
||||
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
||||
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
||||
end(cb?: () => void): this;
|
||||
end(data: string | Uint8Array, cb?: () => void): this;
|
||||
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
||||
}
|
||||
|
||||
interface ReadWriteStream extends ReadableStream, WritableStream {}
|
||||
|
||||
interface RefCounted {
|
||||
ref(): this;
|
||||
unref(): this;
|
||||
}
|
||||
|
||||
interface Dict<T> {
|
||||
[key: string]: T | undefined;
|
||||
}
|
||||
|
||||
interface ReadOnlyDict<T> {
|
||||
readonly [key: string]: T | undefined;
|
||||
}
|
||||
|
||||
interface GCFunction {
|
||||
(minor?: boolean): void;
|
||||
(options: NodeJS.GCOptions & { execution: "async" }): Promise<void>;
|
||||
(options: NodeJS.GCOptions): void;
|
||||
}
|
||||
|
||||
interface GCOptions {
|
||||
execution?: "sync" | "async" | undefined;
|
||||
flavor?: "regular" | "last-resort" | undefined;
|
||||
type?: "major-snapshot" | "major" | "minor" | undefined;
|
||||
filename?: string | undefined;
|
||||
}
|
||||
|
||||
/** An iterable iterator returned by the Node.js API. */
|
||||
interface Iterator<T, TReturn = undefined, TNext = any> extends IteratorObject<T, TReturn, TNext> {
|
||||
[Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
|
||||
}
|
||||
|
||||
/** An async iterable iterator returned by the Node.js API. */
|
||||
interface AsyncIterator<T, TReturn = undefined, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
|
||||
[Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
|
||||
}
|
||||
}
|
||||
|
||||
34
node_modules/@types/node/http.d.ts
generated
vendored
34
node_modules/@types/node/http.d.ts
generated
vendored
@@ -1419,6 +1419,14 @@ declare module "http" {
|
||||
*/
|
||||
destroy(error?: Error): this;
|
||||
}
|
||||
interface ProxyEnv extends NodeJS.ProcessEnv {
|
||||
HTTP_PROXY?: string | undefined;
|
||||
HTTPS_PROXY?: string | undefined;
|
||||
NO_PROXY?: string | undefined;
|
||||
http_proxy?: string | undefined;
|
||||
https_proxy?: string | undefined;
|
||||
no_proxy?: string | undefined;
|
||||
}
|
||||
interface AgentOptions extends Partial<TcpSocketConnectOpts> {
|
||||
/**
|
||||
* Keep sockets around in a pool to be used by other requests in the future. Default = false
|
||||
@@ -1450,6 +1458,22 @@ declare module "http" {
|
||||
* @default `lifo`
|
||||
*/
|
||||
scheduling?: "fifo" | "lifo" | undefined;
|
||||
/**
|
||||
* Environment variables for proxy configuration. See
|
||||
* [Built-in Proxy Support](https://nodejs.org/docs/latest-v24.x/api/http.html#built-in-proxy-support) for details.
|
||||
* @since v24.5.0
|
||||
*/
|
||||
proxyEnv?: ProxyEnv | undefined;
|
||||
/**
|
||||
* Default port to use when the port is not specified in requests.
|
||||
* @since v24.5.0
|
||||
*/
|
||||
defaultPort?: number | undefined;
|
||||
/**
|
||||
* The protocol to use for the agent.
|
||||
* @since v24.5.0
|
||||
*/
|
||||
protocol?: string | undefined;
|
||||
}
|
||||
/**
|
||||
* An `Agent` is responsible for managing connection persistence
|
||||
@@ -1591,7 +1615,7 @@ declare module "http" {
|
||||
createConnection(
|
||||
options: ClientRequestArgs,
|
||||
callback?: (err: Error | null, stream: stream.Duplex) => void,
|
||||
): stream.Duplex;
|
||||
): stream.Duplex | null | undefined;
|
||||
/**
|
||||
* Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to:
|
||||
*
|
||||
@@ -2028,18 +2052,18 @@ declare module "http" {
|
||||
*/
|
||||
const maxHeaderSize: number;
|
||||
/**
|
||||
* A browser-compatible implementation of [WebSocket](https://nodejs.org/docs/latest/api/http.html#websocket).
|
||||
* A browser-compatible implementation of `WebSocket`.
|
||||
* @since v22.5.0
|
||||
*/
|
||||
const WebSocket: import("undici-types").WebSocket;
|
||||
const WebSocket: typeof import("undici-types").WebSocket;
|
||||
/**
|
||||
* @since v22.5.0
|
||||
*/
|
||||
const CloseEvent: import("undici-types").CloseEvent;
|
||||
const CloseEvent: typeof import("undici-types").CloseEvent;
|
||||
/**
|
||||
* @since v22.5.0
|
||||
*/
|
||||
const MessageEvent: import("undici-types").MessageEvent;
|
||||
const MessageEvent: typeof import("undici-types").MessageEvent;
|
||||
}
|
||||
declare module "node:http" {
|
||||
export * from "http";
|
||||
|
||||
5
node_modules/@types/node/https.d.ts
generated
vendored
5
node_modules/@types/node/https.d.ts
generated
vendored
@@ -32,6 +32,11 @@ declare module "https" {
|
||||
class Agent extends http.Agent {
|
||||
constructor(options?: AgentOptions);
|
||||
options: AgentOptions;
|
||||
createConnection(
|
||||
options: RequestOptions,
|
||||
callback?: (err: Error | null, stream: Duplex) => void,
|
||||
): Duplex | null | undefined;
|
||||
getName(options?: RequestOptions): string;
|
||||
}
|
||||
interface Server<
|
||||
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
||||
|
||||
9
node_modules/@types/node/index.d.ts
generated
vendored
9
node_modules/@types/node/index.d.ts
generated
vendored
@@ -38,6 +38,12 @@
|
||||
|
||||
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
||||
/// <reference path="globals.d.ts" />
|
||||
/// <reference path="web-globals/abortcontroller.d.ts" />
|
||||
/// <reference path="web-globals/domexception.d.ts" />
|
||||
/// <reference path="web-globals/events.d.ts" />
|
||||
/// <reference path="web-globals/fetch.d.ts" />
|
||||
/// <reference path="web-globals/navigator.d.ts" />
|
||||
/// <reference path="web-globals/storage.d.ts" />
|
||||
/// <reference path="assert.d.ts" />
|
||||
/// <reference path="assert/strict.d.ts" />
|
||||
/// <reference path="async_hooks.d.ts" />
|
||||
@@ -51,9 +57,7 @@
|
||||
/// <reference path="diagnostics_channel.d.ts" />
|
||||
/// <reference path="dns.d.ts" />
|
||||
/// <reference path="dns/promises.d.ts" />
|
||||
/// <reference path="dns/promises.d.ts" />
|
||||
/// <reference path="domain.d.ts" />
|
||||
/// <reference path="dom-events.d.ts" />
|
||||
/// <reference path="events.d.ts" />
|
||||
/// <reference path="fs.d.ts" />
|
||||
/// <reference path="fs/promises.d.ts" />
|
||||
@@ -61,6 +65,7 @@
|
||||
/// <reference path="http2.d.ts" />
|
||||
/// <reference path="https.d.ts" />
|
||||
/// <reference path="inspector.d.ts" />
|
||||
/// <reference path="inspector.generated.d.ts" />
|
||||
/// <reference path="module.d.ts" />
|
||||
/// <reference path="net.d.ts" />
|
||||
/// <reference path="os.d.ts" />
|
||||
|
||||
4050
node_modules/@types/node/inspector.d.ts
generated
vendored
4050
node_modules/@types/node/inspector.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
4052
node_modules/@types/node/inspector.generated.d.ts
generated
vendored
Normal file
4052
node_modules/@types/node/inspector.generated.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@types/node/module.d.ts
generated
vendored
1
node_modules/@types/node/module.d.ts
generated
vendored
@@ -359,6 +359,7 @@ declare module "module" {
|
||||
interface ImportAttributes extends NodeJS.Dict<string> {
|
||||
type?: string | undefined;
|
||||
}
|
||||
type ImportPhase = "source" | "evaluation";
|
||||
type ModuleFormat =
|
||||
| "addon"
|
||||
| "builtin"
|
||||
|
||||
21
node_modules/@types/node/net.d.ts
generated
vendored
21
node_modules/@types/node/net.d.ts
generated
vendored
@@ -805,6 +805,27 @@ declare module "net" {
|
||||
* @param value Any JS value
|
||||
*/
|
||||
static isBlockList(value: unknown): value is BlockList;
|
||||
/**
|
||||
* ```js
|
||||
* const blockList = new net.BlockList();
|
||||
* const data = [
|
||||
* 'Subnet: IPv4 192.168.1.0/24',
|
||||
* 'Address: IPv4 10.0.0.5',
|
||||
* 'Range: IPv4 192.168.2.1-192.168.2.10',
|
||||
* 'Range: IPv4 10.0.0.1-10.0.0.10',
|
||||
* ];
|
||||
* blockList.fromJSON(data);
|
||||
* blockList.fromJSON(JSON.stringify(data));
|
||||
* ```
|
||||
* @since v24.5.0
|
||||
* @experimental
|
||||
*/
|
||||
fromJSON(data: string | readonly string[]): void;
|
||||
/**
|
||||
* @since v24.5.0
|
||||
* @experimental
|
||||
*/
|
||||
toJSON(): readonly string[];
|
||||
}
|
||||
interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
|
||||
timeout?: number | undefined;
|
||||
|
||||
6
node_modules/@types/node/package.json
generated
vendored
6
node_modules/@types/node/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@types/node",
|
||||
"version": "24.3.0",
|
||||
"version": "24.5.2",
|
||||
"description": "TypeScript definitions for node",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
||||
"license": "MIT",
|
||||
@@ -147,9 +147,9 @@
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"undici-types": "~7.10.0"
|
||||
"undici-types": "~7.12.0"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "1db0510763ba3afd8e54c0591e60a100a7b90926f5d7da28ae32d8f845d725da",
|
||||
"typesPublisherContentHash": "5df6870a3de1de1f3716802276fe0c64c2b3a2903d725578b50f533f42cfea46",
|
||||
"typeScriptVersion": "5.2"
|
||||
}
|
||||
34
node_modules/@types/node/sqlite.d.ts
generated
vendored
34
node_modules/@types/node/sqlite.d.ts
generated
vendored
@@ -97,6 +97,33 @@ declare module "node:sqlite" {
|
||||
* @default 0
|
||||
*/
|
||||
timeout?: number | undefined;
|
||||
/**
|
||||
* If `true`, integer fields are read as JavaScript `BigInt` values. If `false`,
|
||||
* integer fields are read as JavaScript numbers.
|
||||
* @since v24.4.0
|
||||
* @default false
|
||||
*/
|
||||
readBigInts?: boolean | undefined;
|
||||
/**
|
||||
* If `true`, query results are returned as arrays instead of objects.
|
||||
* @since v24.4.0
|
||||
* @default false
|
||||
*/
|
||||
returnArrays?: boolean | undefined;
|
||||
/**
|
||||
* If `true`, allows binding named parameters without the prefix
|
||||
* character (e.g., `foo` instead of `:foo`).
|
||||
* @since v24.4.40
|
||||
* @default true
|
||||
*/
|
||||
allowBareNamedParameters?: boolean | undefined;
|
||||
/**
|
||||
* If `true`, unknown named parameters are ignored when binding.
|
||||
* If `false`, an exception is thrown for unknown named parameters.
|
||||
* @since v24.4.40
|
||||
* @default false
|
||||
*/
|
||||
allowUnknownNamedParameters?: boolean | undefined;
|
||||
}
|
||||
interface CreateSessionOptions {
|
||||
/**
|
||||
@@ -566,6 +593,13 @@ declare module "node:sqlite" {
|
||||
* @param enabled Enables or disables support for unknown named parameters.
|
||||
*/
|
||||
setAllowUnknownNamedParameters(enabled: boolean): void;
|
||||
/**
|
||||
* When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
|
||||
* of objects.
|
||||
* @since v24.0.0
|
||||
* @param enabled Enables or disables the return of query results as arrays.
|
||||
*/
|
||||
setReturnArrays(enabled: boolean): void;
|
||||
/**
|
||||
* When reading from the database, SQLite `INTEGER`s are mapped to JavaScript
|
||||
* numbers by default. However, SQLite `INTEGER`s can store values larger than
|
||||
|
||||
32
node_modules/@types/node/tls.d.ts
generated
vendored
32
node_modules/@types/node/tls.d.ts
generated
vendored
@@ -1162,6 +1162,38 @@ declare module "tls" {
|
||||
* @since v0.10.2
|
||||
*/
|
||||
function getCiphers(): string[];
|
||||
/**
|
||||
* Sets the default CA certificates used by Node.js TLS clients. If the provided
|
||||
* certificates are parsed successfully, they will become the default CA
|
||||
* certificate list returned by {@link getCACertificates} and used
|
||||
* by subsequent TLS connections that don't specify their own CA certificates.
|
||||
* The certificates will be deduplicated before being set as the default.
|
||||
*
|
||||
* This function only affects the current Node.js thread. Previous
|
||||
* sessions cached by the HTTPS agent won't be affected by this change, so
|
||||
* this method should be called before any unwanted cachable TLS connections are
|
||||
* made.
|
||||
*
|
||||
* To use system CA certificates as the default:
|
||||
*
|
||||
* ```js
|
||||
* import tls from 'node:tls';
|
||||
* tls.setDefaultCACertificates(tls.getCACertificates('system'));
|
||||
* ```
|
||||
*
|
||||
* This function completely replaces the default CA certificate list. To add additional
|
||||
* certificates to the existing defaults, get the current certificates and append to them:
|
||||
*
|
||||
* ```js
|
||||
* import tls from 'node:tls';
|
||||
* const currentCerts = tls.getCACertificates('default');
|
||||
* const additionalCerts = ['-----BEGIN CERTIFICATE-----\n...'];
|
||||
* tls.setDefaultCACertificates([...currentCerts, ...additionalCerts]);
|
||||
* ```
|
||||
* @since v24.5.0
|
||||
* @param certs An array of CA certificates in PEM format.
|
||||
*/
|
||||
function setDefaultCACertificates(certs: ReadonlyArray<string | NodeJS.ArrayBufferView>): void;
|
||||
/**
|
||||
* The default curve name to use for ECDH key agreement in a tls server.
|
||||
* The default value is `'auto'`. See `{@link createSecureContext()}` for further
|
||||
|
||||
9
node_modules/@types/node/ts5.6/index.d.ts
generated
vendored
9
node_modules/@types/node/ts5.6/index.d.ts
generated
vendored
@@ -40,6 +40,12 @@
|
||||
|
||||
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
||||
/// <reference path="../globals.d.ts" />
|
||||
/// <reference path="../web-globals/abortcontroller.d.ts" />
|
||||
/// <reference path="../web-globals/domexception.d.ts" />
|
||||
/// <reference path="../web-globals/events.d.ts" />
|
||||
/// <reference path="../web-globals/fetch.d.ts" />
|
||||
/// <reference path="../web-globals/navigator.d.ts" />
|
||||
/// <reference path="../web-globals/storage.d.ts" />
|
||||
/// <reference path="../assert.d.ts" />
|
||||
/// <reference path="../assert/strict.d.ts" />
|
||||
/// <reference path="../async_hooks.d.ts" />
|
||||
@@ -53,9 +59,7 @@
|
||||
/// <reference path="../diagnostics_channel.d.ts" />
|
||||
/// <reference path="../dns.d.ts" />
|
||||
/// <reference path="../dns/promises.d.ts" />
|
||||
/// <reference path="../dns/promises.d.ts" />
|
||||
/// <reference path="../domain.d.ts" />
|
||||
/// <reference path="../dom-events.d.ts" />
|
||||
/// <reference path="../events.d.ts" />
|
||||
/// <reference path="../fs.d.ts" />
|
||||
/// <reference path="../fs/promises.d.ts" />
|
||||
@@ -63,6 +67,7 @@
|
||||
/// <reference path="../http2.d.ts" />
|
||||
/// <reference path="../https.d.ts" />
|
||||
/// <reference path="../inspector.d.ts" />
|
||||
/// <reference path="../inspector.generated.d.ts" />
|
||||
/// <reference path="../module.d.ts" />
|
||||
/// <reference path="../net.d.ts" />
|
||||
/// <reference path="../os.d.ts" />
|
||||
|
||||
9
node_modules/@types/node/ts5.7/index.d.ts
generated
vendored
9
node_modules/@types/node/ts5.7/index.d.ts
generated
vendored
@@ -40,6 +40,12 @@
|
||||
|
||||
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
||||
/// <reference path="../globals.d.ts" />
|
||||
/// <reference path="../web-globals/abortcontroller.d.ts" />
|
||||
/// <reference path="../web-globals/domexception.d.ts" />
|
||||
/// <reference path="../web-globals/events.d.ts" />
|
||||
/// <reference path="../web-globals/fetch.d.ts" />
|
||||
/// <reference path="../web-globals/navigator.d.ts" />
|
||||
/// <reference path="../web-globals/storage.d.ts" />
|
||||
/// <reference path="../assert.d.ts" />
|
||||
/// <reference path="../assert/strict.d.ts" />
|
||||
/// <reference path="../async_hooks.d.ts" />
|
||||
@@ -53,9 +59,7 @@
|
||||
/// <reference path="../diagnostics_channel.d.ts" />
|
||||
/// <reference path="../dns.d.ts" />
|
||||
/// <reference path="../dns/promises.d.ts" />
|
||||
/// <reference path="../dns/promises.d.ts" />
|
||||
/// <reference path="../domain.d.ts" />
|
||||
/// <reference path="../dom-events.d.ts" />
|
||||
/// <reference path="../events.d.ts" />
|
||||
/// <reference path="../fs.d.ts" />
|
||||
/// <reference path="../fs/promises.d.ts" />
|
||||
@@ -63,6 +67,7 @@
|
||||
/// <reference path="../http2.d.ts" />
|
||||
/// <reference path="../https.d.ts" />
|
||||
/// <reference path="../inspector.d.ts" />
|
||||
/// <reference path="../inspector.generated.d.ts" />
|
||||
/// <reference path="../module.d.ts" />
|
||||
/// <reference path="../net.d.ts" />
|
||||
/// <reference path="../os.d.ts" />
|
||||
|
||||
13
node_modules/@types/node/url.d.ts
generated
vendored
13
node_modules/@types/node/url.d.ts
generated
vendored
@@ -455,12 +455,15 @@ declare module "url" {
|
||||
*/
|
||||
static canParse(input: string, base?: string): boolean;
|
||||
/**
|
||||
* Parses a string as a URL. If `base` is provided, it will be used as the base URL for the purpose of resolving non-absolute `input` URLs.
|
||||
* Returns `null` if `input` is not a valid.
|
||||
* @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is
|
||||
* `converted to a string` first.
|
||||
* @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
|
||||
* Parses a string as a URL. If `base` is provided, it will be used as the base
|
||||
* URL for the purpose of resolving non-absolute `input` URLs. Returns `null`
|
||||
* if the parameters can't be resolved to a valid URL.
|
||||
* @since v22.1.0
|
||||
* @param input The absolute or relative input URL to parse. If `input`
|
||||
* is relative, then `base` is required. If `input` is absolute, the `base`
|
||||
* is ignored. If `input` is not a string, it is [converted to a string](https://tc39.es/ecma262/#sec-tostring) first.
|
||||
* @param base The base URL to resolve against if the `input` is not
|
||||
* absolute. If `base` is not a string, it is [converted to a string](https://tc39.es/ecma262/#sec-tostring) first.
|
||||
*/
|
||||
static parse(input: string, base?: string): URL | null;
|
||||
constructor(input: string | { toString: () => string }, base?: string | URL);
|
||||
|
||||
10
node_modules/@types/node/util.d.ts
generated
vendored
10
node_modules/@types/node/util.d.ts
generated
vendored
@@ -1420,10 +1420,12 @@ declare module "util" {
|
||||
*/
|
||||
short?: string | undefined;
|
||||
/**
|
||||
* The default value to
|
||||
* be used if (and only if) the option does not appear in the arguments to be
|
||||
* parsed. It must be of the same type as the `type` property. When `multiple`
|
||||
* is `true`, it must be an array.
|
||||
* The value to assign to
|
||||
* the option if it does not appear in the arguments to be parsed. The value
|
||||
* must match the type specified by the `type` property. If `multiple` is
|
||||
* `true`, it must be an array. No default value is applied when the option
|
||||
* does appear in the arguments to be parsed, even if the provided value
|
||||
* is falsy.
|
||||
* @since v18.11.0
|
||||
*/
|
||||
default?: string | boolean | string[] | boolean[] | undefined;
|
||||
|
||||
83
node_modules/@types/node/vm.d.ts
generated
vendored
83
node_modules/@types/node/vm.d.ts
generated
vendored
@@ -37,7 +37,7 @@
|
||||
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/vm.js)
|
||||
*/
|
||||
declare module "vm" {
|
||||
import { ImportAttributes } from "node:module";
|
||||
import { ImportAttributes, ImportPhase } from "node:module";
|
||||
interface Context extends NodeJS.Dict<any> {}
|
||||
interface BaseOptions {
|
||||
/**
|
||||
@@ -60,7 +60,7 @@ declare module "vm" {
|
||||
specifier: string,
|
||||
referrer: T,
|
||||
importAttributes: ImportAttributes,
|
||||
phase: "source" | "evaluation",
|
||||
phase: ImportPhase,
|
||||
) => Module | Promise<Module>;
|
||||
interface ScriptOptions extends BaseOptions {
|
||||
/**
|
||||
@@ -791,14 +791,6 @@ declare module "vm" {
|
||||
* @experimental
|
||||
*/
|
||||
class Module {
|
||||
/**
|
||||
* The specifiers of all dependencies of this module. The returned array is frozen
|
||||
* to disallow any changes to it.
|
||||
*
|
||||
* Corresponds to the `[[RequestedModules]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
|
||||
* the ECMAScript specification.
|
||||
*/
|
||||
dependencySpecifiers: readonly string[];
|
||||
/**
|
||||
* If the `module.status` is `'errored'`, this property contains the exception
|
||||
* thrown by the module during evaluation. If the status is anything else,
|
||||
@@ -918,6 +910,25 @@ declare module "vm" {
|
||||
*/
|
||||
importModuleDynamically?: DynamicModuleLoader<SourceTextModule> | undefined;
|
||||
}
|
||||
/**
|
||||
* A `ModuleRequest` represents the request to import a module with given import attributes and phase.
|
||||
* @since 24.4.0
|
||||
*/
|
||||
interface ModuleRequest {
|
||||
/**
|
||||
* The specifier of the requested module.
|
||||
*/
|
||||
specifier: string;
|
||||
/**
|
||||
* The `"with"` value passed to the `WithClause` in a `ImportDeclaration`, or an empty object if no value was
|
||||
* provided.
|
||||
*/
|
||||
attributes: ImportAttributes;
|
||||
/**
|
||||
* The phase of the requested module (`"source"` or `"evaluation"`).
|
||||
*/
|
||||
phase: ImportPhase;
|
||||
}
|
||||
/**
|
||||
* This feature is only available with the `--experimental-vm-modules` command
|
||||
* flag enabled.
|
||||
@@ -933,6 +944,58 @@ declare module "vm" {
|
||||
* @param code JavaScript Module code to parse
|
||||
*/
|
||||
constructor(code: string, options?: SourceTextModuleOptions);
|
||||
/**
|
||||
* @deprecated Use `sourceTextModule.moduleRequests` instead.
|
||||
*/
|
||||
readonly dependencySpecifiers: readonly string[];
|
||||
/**
|
||||
* The requested import dependencies of this module. The returned array is frozen
|
||||
* to disallow any changes to it.
|
||||
*
|
||||
* For example, given a source text:
|
||||
*
|
||||
* ```js
|
||||
* import foo from 'foo';
|
||||
* import fooAlias from 'foo';
|
||||
* import bar from './bar.js';
|
||||
* import withAttrs from '../with-attrs.ts' with { arbitraryAttr: 'attr-val' };
|
||||
* import source Module from 'wasm-mod.wasm';
|
||||
* ```
|
||||
*
|
||||
* The value of the `sourceTextModule.moduleRequests` will be:
|
||||
*
|
||||
* ```js
|
||||
* [
|
||||
* {
|
||||
* specifier: 'foo',
|
||||
* attributes: {},
|
||||
* phase: 'evaluation',
|
||||
* },
|
||||
* {
|
||||
* specifier: 'foo',
|
||||
* attributes: {},
|
||||
* phase: 'evaluation',
|
||||
* },
|
||||
* {
|
||||
* specifier: './bar.js',
|
||||
* attributes: {},
|
||||
* phase: 'evaluation',
|
||||
* },
|
||||
* {
|
||||
* specifier: '../with-attrs.ts',
|
||||
* attributes: { arbitraryAttr: 'attr-val' },
|
||||
* phase: 'evaluation',
|
||||
* },
|
||||
* {
|
||||
* specifier: 'wasm-mod.wasm',
|
||||
* attributes: {},
|
||||
* phase: 'source',
|
||||
* },
|
||||
* ];
|
||||
* ```
|
||||
* @since v24.4.0
|
||||
*/
|
||||
readonly moduleRequests: readonly ModuleRequest[];
|
||||
}
|
||||
interface SyntheticModuleOptions {
|
||||
/**
|
||||
|
||||
21
node_modules/@types/node/wasi.d.ts
generated
vendored
21
node_modules/@types/node/wasi.d.ts
generated
vendored
@@ -121,6 +121,12 @@ declare module "wasi" {
|
||||
*/
|
||||
version: "unstable" | "preview1";
|
||||
}
|
||||
interface FinalizeBindingsOptions {
|
||||
/**
|
||||
* @default instance.exports.memory
|
||||
*/
|
||||
memory?: object | undefined;
|
||||
}
|
||||
/**
|
||||
* The `WASI` class provides the WASI system call API and additional convenience
|
||||
* methods for working with WASI-based applications. Each `WASI` instance
|
||||
@@ -167,6 +173,21 @@ declare module "wasi" {
|
||||
* @since v14.6.0, v12.19.0
|
||||
*/
|
||||
initialize(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
|
||||
/**
|
||||
* Set up WASI host bindings to `instance` without calling `initialize()`
|
||||
* or `start()`. This method is useful when the WASI module is instantiated in
|
||||
* child threads for sharing the memory across threads.
|
||||
*
|
||||
* `finalizeBindings()` requires that either `instance` exports a
|
||||
* [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named `memory` or user specify a
|
||||
* [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) object in `options.memory`. If the `memory` is invalid
|
||||
* an exception is thrown.
|
||||
*
|
||||
* `start()` and `initialize()` will call `finalizeBindings()` internally.
|
||||
* If `finalizeBindings()` is called more than once, an exception is thrown.
|
||||
* @since v24.4.0
|
||||
*/
|
||||
finalizeBindings(instance: object, options?: FinalizeBindingsOptions): void;
|
||||
/**
|
||||
* `wasiImport` is an object that implements the WASI system call API. This object
|
||||
* should be passed as the `wasi_snapshot_preview1` import during the instantiation
|
||||
|
||||
34
node_modules/@types/node/web-globals/abortcontroller.d.ts
generated
vendored
Normal file
34
node_modules/@types/node/web-globals/abortcontroller.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
export {};
|
||||
|
||||
type _AbortController = typeof globalThis extends { onmessage: any } ? {} : AbortController;
|
||||
interface AbortController {
|
||||
readonly signal: AbortSignal;
|
||||
abort(reason?: any): void;
|
||||
}
|
||||
|
||||
type _AbortSignal = typeof globalThis extends { onmessage: any } ? {} : AbortSignal;
|
||||
interface AbortSignal extends EventTarget {
|
||||
readonly aborted: boolean;
|
||||
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
||||
readonly reason: any;
|
||||
throwIfAborted(): void;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface AbortController extends _AbortController {}
|
||||
var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
|
||||
: {
|
||||
prototype: AbortController;
|
||||
new(): AbortController;
|
||||
};
|
||||
|
||||
interface AbortSignal extends _AbortSignal {}
|
||||
var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
|
||||
: {
|
||||
prototype: AbortSignal;
|
||||
new(): AbortSignal;
|
||||
abort(reason?: any): AbortSignal;
|
||||
any(signals: AbortSignal[]): AbortSignal;
|
||||
timeout(milliseconds: number): AbortSignal;
|
||||
};
|
||||
}
|
||||
68
node_modules/@types/node/web-globals/domexception.d.ts
generated
vendored
Normal file
68
node_modules/@types/node/web-globals/domexception.d.ts
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
export {};
|
||||
|
||||
type _DOMException = typeof globalThis extends { onmessage: any } ? {} : DOMException;
|
||||
interface DOMException extends Error {
|
||||
readonly code: number;
|
||||
readonly message: string;
|
||||
readonly name: string;
|
||||
readonly INDEX_SIZE_ERR: 1;
|
||||
readonly DOMSTRING_SIZE_ERR: 2;
|
||||
readonly HIERARCHY_REQUEST_ERR: 3;
|
||||
readonly WRONG_DOCUMENT_ERR: 4;
|
||||
readonly INVALID_CHARACTER_ERR: 5;
|
||||
readonly NO_DATA_ALLOWED_ERR: 6;
|
||||
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
|
||||
readonly NOT_FOUND_ERR: 8;
|
||||
readonly NOT_SUPPORTED_ERR: 9;
|
||||
readonly INUSE_ATTRIBUTE_ERR: 10;
|
||||
readonly INVALID_STATE_ERR: 11;
|
||||
readonly SYNTAX_ERR: 12;
|
||||
readonly INVALID_MODIFICATION_ERR: 13;
|
||||
readonly NAMESPACE_ERR: 14;
|
||||
readonly INVALID_ACCESS_ERR: 15;
|
||||
readonly VALIDATION_ERR: 16;
|
||||
readonly TYPE_MISMATCH_ERR: 17;
|
||||
readonly SECURITY_ERR: 18;
|
||||
readonly NETWORK_ERR: 19;
|
||||
readonly ABORT_ERR: 20;
|
||||
readonly URL_MISMATCH_ERR: 21;
|
||||
readonly QUOTA_EXCEEDED_ERR: 22;
|
||||
readonly TIMEOUT_ERR: 23;
|
||||
readonly INVALID_NODE_TYPE_ERR: 24;
|
||||
readonly DATA_CLONE_ERR: 25;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface DOMException extends _DOMException {}
|
||||
var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
|
||||
: {
|
||||
prototype: DOMException;
|
||||
new(message?: string, name?: string): DOMException;
|
||||
new(message?: string, options?: { name?: string; cause?: unknown }): DOMException;
|
||||
readonly INDEX_SIZE_ERR: 1;
|
||||
readonly DOMSTRING_SIZE_ERR: 2;
|
||||
readonly HIERARCHY_REQUEST_ERR: 3;
|
||||
readonly WRONG_DOCUMENT_ERR: 4;
|
||||
readonly INVALID_CHARACTER_ERR: 5;
|
||||
readonly NO_DATA_ALLOWED_ERR: 6;
|
||||
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
|
||||
readonly NOT_FOUND_ERR: 8;
|
||||
readonly NOT_SUPPORTED_ERR: 9;
|
||||
readonly INUSE_ATTRIBUTE_ERR: 10;
|
||||
readonly INVALID_STATE_ERR: 11;
|
||||
readonly SYNTAX_ERR: 12;
|
||||
readonly INVALID_MODIFICATION_ERR: 13;
|
||||
readonly NAMESPACE_ERR: 14;
|
||||
readonly INVALID_ACCESS_ERR: 15;
|
||||
readonly VALIDATION_ERR: 16;
|
||||
readonly TYPE_MISMATCH_ERR: 17;
|
||||
readonly SECURITY_ERR: 18;
|
||||
readonly NETWORK_ERR: 19;
|
||||
readonly ABORT_ERR: 20;
|
||||
readonly URL_MISMATCH_ERR: 21;
|
||||
readonly QUOTA_EXCEEDED_ERR: 22;
|
||||
readonly TIMEOUT_ERR: 23;
|
||||
readonly INVALID_NODE_TYPE_ERR: 24;
|
||||
readonly DATA_CLONE_ERR: 25;
|
||||
};
|
||||
}
|
||||
@@ -1,37 +1,61 @@
|
||||
// Make this a module
|
||||
export {};
|
||||
|
||||
// Conditional type aliases, which are later merged into the global scope.
|
||||
// Will either be empty if the relevant web library is already present, or the @types/node definition otherwise.
|
||||
interface AddEventListenerOptions extends EventListenerOptions {
|
||||
once?: boolean;
|
||||
passive?: boolean;
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
type __Event = typeof globalThis extends { onmessage: any } ? {} : Event;
|
||||
type _CustomEvent<T = any> = typeof globalThis extends { onmessage: any } ? {} : CustomEvent<T>;
|
||||
interface CustomEvent<T = any> extends Event {
|
||||
readonly detail: T;
|
||||
}
|
||||
|
||||
interface CustomEventInit<T = any> extends EventInit {
|
||||
detail?: T;
|
||||
}
|
||||
|
||||
type _Event = typeof globalThis extends { onmessage: any } ? {} : Event;
|
||||
interface Event {
|
||||
readonly bubbles: boolean;
|
||||
cancelBubble: boolean;
|
||||
readonly cancelable: boolean;
|
||||
readonly composed: boolean;
|
||||
composedPath(): [EventTarget?];
|
||||
readonly currentTarget: EventTarget | null;
|
||||
readonly defaultPrevented: boolean;
|
||||
readonly eventPhase: 0 | 2;
|
||||
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
||||
readonly isTrusted: boolean;
|
||||
preventDefault(): void;
|
||||
readonly returnValue: boolean;
|
||||
returnValue: boolean;
|
||||
readonly srcElement: EventTarget | null;
|
||||
stopImmediatePropagation(): void;
|
||||
stopPropagation(): void;
|
||||
readonly target: EventTarget | null;
|
||||
readonly timeStamp: number;
|
||||
readonly type: string;
|
||||
composedPath(): [EventTarget?];
|
||||
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
||||
preventDefault(): void;
|
||||
stopImmediatePropagation(): void;
|
||||
stopPropagation(): void;
|
||||
}
|
||||
|
||||
type __CustomEvent<T = any> = typeof globalThis extends { onmessage: any } ? {} : CustomEvent<T>;
|
||||
interface CustomEvent<T = any> extends Event {
|
||||
readonly detail: T;
|
||||
interface EventInit {
|
||||
bubbles?: boolean;
|
||||
cancelable?: boolean;
|
||||
composed?: boolean;
|
||||
}
|
||||
|
||||
type __EventTarget = typeof globalThis extends { onmessage: any } ? {} : EventTarget;
|
||||
interface EventListener {
|
||||
(evt: Event): void;
|
||||
}
|
||||
|
||||
interface EventListenerObject {
|
||||
handleEvent(object: Event): void;
|
||||
}
|
||||
|
||||
interface EventListenerOptions {
|
||||
capture?: boolean;
|
||||
}
|
||||
|
||||
type _EventTarget = typeof globalThis extends { onmessage: any } ? {} : EventTarget;
|
||||
interface EventTarget {
|
||||
addEventListener(
|
||||
type: string,
|
||||
@@ -46,51 +70,22 @@ interface EventTarget {
|
||||
): void;
|
||||
}
|
||||
|
||||
interface EventInit {
|
||||
bubbles?: boolean;
|
||||
cancelable?: boolean;
|
||||
composed?: boolean;
|
||||
}
|
||||
|
||||
interface CustomEventInit<T = any> extends EventInit {
|
||||
detail?: T;
|
||||
}
|
||||
|
||||
interface EventListenerOptions {
|
||||
capture?: boolean;
|
||||
}
|
||||
|
||||
interface AddEventListenerOptions extends EventListenerOptions {
|
||||
once?: boolean;
|
||||
passive?: boolean;
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
interface EventListener {
|
||||
(evt: Event): void;
|
||||
}
|
||||
|
||||
interface EventListenerObject {
|
||||
handleEvent(object: Event): void;
|
||||
}
|
||||
|
||||
// Merge conditional interfaces into global scope, and conditionally declare global constructors.
|
||||
declare global {
|
||||
interface Event extends __Event {}
|
||||
var Event: typeof globalThis extends { onmessage: any; Event: infer T } ? T
|
||||
: {
|
||||
prototype: Event;
|
||||
new(type: string, eventInitDict?: EventInit): Event;
|
||||
};
|
||||
|
||||
interface CustomEvent<T = any> extends __CustomEvent<T> {}
|
||||
interface CustomEvent<T = any> extends _CustomEvent<T> {}
|
||||
var CustomEvent: typeof globalThis extends { onmessage: any; CustomEvent: infer T } ? T
|
||||
: {
|
||||
prototype: CustomEvent;
|
||||
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
||||
};
|
||||
|
||||
interface EventTarget extends __EventTarget {}
|
||||
interface Event extends _Event {}
|
||||
var Event: typeof globalThis extends { onmessage: any; Event: infer T } ? T
|
||||
: {
|
||||
prototype: Event;
|
||||
new(type: string, eventInitDict?: EventInit): Event;
|
||||
};
|
||||
|
||||
interface EventTarget extends _EventTarget {}
|
||||
var EventTarget: typeof globalThis extends { onmessage: any; EventTarget: infer T } ? T
|
||||
: {
|
||||
prototype: EventTarget;
|
||||
50
node_modules/@types/node/web-globals/fetch.d.ts
generated
vendored
Normal file
50
node_modules/@types/node/web-globals/fetch.d.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
export {};
|
||||
|
||||
import * as undici from "undici-types";
|
||||
|
||||
type _CloseEvent = typeof globalThis extends { onmessage: any } ? {} : undici.CloseEvent;
|
||||
type _EventSource = typeof globalThis extends { onmessage: any } ? {} : undici.EventSource;
|
||||
type _FormData = typeof globalThis extends { onmessage: any } ? {} : undici.FormData;
|
||||
type _Headers = typeof globalThis extends { onmessage: any } ? {} : undici.Headers;
|
||||
type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : undici.MessageEvent;
|
||||
type _Request = typeof globalThis extends { onmessage: any } ? {} : undici.Request;
|
||||
type _RequestInit = typeof globalThis extends { onmessage: any } ? {} : undici.RequestInit;
|
||||
type _Response = typeof globalThis extends { onmessage: any } ? {} : undici.Response;
|
||||
type _ResponseInit = typeof globalThis extends { onmessage: any } ? {} : undici.ResponseInit;
|
||||
type _WebSocket = typeof globalThis extends { onmessage: any } ? {} : undici.WebSocket;
|
||||
|
||||
declare global {
|
||||
function fetch(
|
||||
input: string | URL | Request,
|
||||
init?: RequestInit,
|
||||
): Promise<Response>;
|
||||
|
||||
interface CloseEvent extends _CloseEvent {}
|
||||
var CloseEvent: typeof globalThis extends { onmessage: any; CloseEvent: infer T } ? T : typeof undici.CloseEvent;
|
||||
|
||||
interface EventSource extends _EventSource {}
|
||||
var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T : typeof undici.EventSource;
|
||||
|
||||
interface FormData extends _FormData {}
|
||||
var FormData: typeof globalThis extends { onmessage: any; FormData: infer T } ? T : typeof undici.FormData;
|
||||
|
||||
interface Headers extends _Headers {}
|
||||
var Headers: typeof globalThis extends { onmessage: any; Headers: infer T } ? T : typeof undici.Headers;
|
||||
|
||||
interface MessageEvent extends _MessageEvent {}
|
||||
var MessageEvent: typeof globalThis extends { onmessage: any; MessageEvent: infer T } ? T
|
||||
: typeof undici.MessageEvent;
|
||||
|
||||
interface Request extends _Request {}
|
||||
var Request: typeof globalThis extends { onmessage: any; Request: infer T } ? T : typeof undici.Request;
|
||||
|
||||
interface RequestInit extends _RequestInit {}
|
||||
|
||||
interface Response extends _Response {}
|
||||
var Response: typeof globalThis extends { onmessage: any; Response: infer T } ? T : typeof undici.Response;
|
||||
|
||||
interface ResponseInit extends _ResponseInit {}
|
||||
|
||||
interface WebSocket extends _WebSocket {}
|
||||
var WebSocket: typeof globalThis extends { onmessage: any; WebSocket: infer T } ? T : typeof undici.WebSocket;
|
||||
}
|
||||
25
node_modules/@types/node/web-globals/navigator.d.ts
generated
vendored
Normal file
25
node_modules/@types/node/web-globals/navigator.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
export {};
|
||||
|
||||
import { LockManager } from "worker_threads";
|
||||
|
||||
// lib.webworker has `WorkerNavigator` rather than `Navigator`, so conditionals use `onabort` instead of `onmessage`
|
||||
type _Navigator = typeof globalThis extends { onabort: any } ? {} : Navigator;
|
||||
interface Navigator {
|
||||
readonly hardwareConcurrency: number;
|
||||
readonly language: string;
|
||||
readonly languages: readonly string[];
|
||||
readonly locks: LockManager;
|
||||
readonly platform: string;
|
||||
readonly userAgent: string;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Navigator extends _Navigator {}
|
||||
var Navigator: typeof globalThis extends { onabort: any; Navigator: infer T } ? T : {
|
||||
prototype: Navigator;
|
||||
new(): Navigator;
|
||||
};
|
||||
|
||||
// Needs conditional inference for lib.dom and lib.webworker compatibility
|
||||
var navigator: typeof globalThis extends { onmessage: any; navigator: infer T } ? T : Navigator;
|
||||
}
|
||||
24
node_modules/@types/node/web-globals/storage.d.ts
generated
vendored
Normal file
24
node_modules/@types/node/web-globals/storage.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
export {};
|
||||
|
||||
// These interfaces are absent from lib.webworker, so the conditionals use `onabort` rather than `onmessage`
|
||||
type _Storage = typeof globalThis extends { onabort: any } ? {} : Storage;
|
||||
interface Storage {
|
||||
readonly length: number;
|
||||
clear(): void;
|
||||
getItem(key: string): string | null;
|
||||
key(index: number): string | null;
|
||||
removeItem(key: string): void;
|
||||
setItem(key: string, value: string): void;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Storage extends _Storage {}
|
||||
var Storage: typeof globalThis extends { onabort: any; Storage: infer T } ? T : {
|
||||
prototype: Storage;
|
||||
new(): Storage;
|
||||
};
|
||||
|
||||
var localStorage: Storage;
|
||||
var sessionStorage: Storage;
|
||||
}
|
||||
54
node_modules/@types/node/worker_threads.d.ts
generated
vendored
54
node_modules/@types/node/worker_threads.d.ts
generated
vendored
@@ -63,6 +63,7 @@ declare module "worker_threads" {
|
||||
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
||||
import { URL } from "node:url";
|
||||
import { HeapInfo } from "node:v8";
|
||||
import { MessageEvent } from "undici-types";
|
||||
const isInternalThread: boolean;
|
||||
const isMainThread: boolean;
|
||||
const parentPort: null | MessagePort;
|
||||
@@ -574,18 +575,18 @@ declare module "worker_threads" {
|
||||
* ```
|
||||
* @since v15.4.0
|
||||
*/
|
||||
class BroadcastChannel {
|
||||
class BroadcastChannel extends EventTarget {
|
||||
readonly name: string;
|
||||
/**
|
||||
* Invoked with a single \`MessageEvent\` argument when a message is received.
|
||||
* @since v15.4.0
|
||||
*/
|
||||
onmessage: (message: unknown) => void;
|
||||
onmessage: (message: MessageEvent) => void;
|
||||
/**
|
||||
* Invoked with a received message cannot be deserialized.
|
||||
* @since v15.4.0
|
||||
*/
|
||||
onmessageerror: (message: unknown) => void;
|
||||
onmessageerror: (message: MessageEvent) => void;
|
||||
constructor(name: string);
|
||||
/**
|
||||
* Closes the `BroadcastChannel` connection.
|
||||
@@ -598,6 +599,35 @@ declare module "worker_threads" {
|
||||
*/
|
||||
postMessage(message: unknown): void;
|
||||
}
|
||||
interface Lock {
|
||||
readonly mode: LockMode;
|
||||
readonly name: string;
|
||||
}
|
||||
interface LockGrantedCallback<T> {
|
||||
(lock: Lock | null): T;
|
||||
}
|
||||
interface LockInfo {
|
||||
clientId: string;
|
||||
mode: LockMode;
|
||||
name: string;
|
||||
}
|
||||
interface LockManager {
|
||||
query(): Promise<LockManagerSnapshot>;
|
||||
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
||||
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
||||
}
|
||||
interface LockManagerSnapshot {
|
||||
held: LockInfo[];
|
||||
pending: LockInfo[];
|
||||
}
|
||||
type LockMode = "exclusive" | "shared";
|
||||
interface LockOptions {
|
||||
ifAvailable?: boolean;
|
||||
mode?: LockMode;
|
||||
signal?: AbortSignal;
|
||||
steal?: boolean;
|
||||
}
|
||||
var locks: LockManager;
|
||||
/**
|
||||
* Mark an object as not transferable. If `object` occurs in the transfer list of
|
||||
* a `port.postMessage()` call, it is ignored.
|
||||
@@ -739,6 +769,24 @@ declare module "worker_threads" {
|
||||
* for the `key` will be deleted.
|
||||
*/
|
||||
function setEnvironmentData(key: Serializable, value?: Serializable): void;
|
||||
/**
|
||||
* Sends a value to another worker, identified by its thread ID.
|
||||
* @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown.
|
||||
* If the target thread ID is the current thread ID, a `ERR_WORKER_MESSAGING_SAME_THREAD` error will be thrown.
|
||||
* @param value The value to send.
|
||||
* @param transferList If one or more `MessagePort`-like objects are passed in value, a `transferList` is required for those items
|
||||
* or `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` is thrown. See `port.postMessage()` for more information.
|
||||
* @param timeout Time to wait for the message to be delivered in milliseconds. By default it's `undefined`, which means wait forever.
|
||||
* If the operation times out, a `ERR_WORKER_MESSAGING_TIMEOUT` error is thrown.
|
||||
* @since v22.5.0
|
||||
*/
|
||||
function postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>;
|
||||
function postMessageToThread(
|
||||
threadId: number,
|
||||
value: any,
|
||||
transferList: readonly Transferable[],
|
||||
timeout?: number,
|
||||
): Promise<void>;
|
||||
|
||||
import {
|
||||
BroadcastChannel as _BroadcastChannel,
|
||||
|
||||
2
node_modules/debug/package.json
generated
vendored
2
node_modules/debug/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "debug",
|
||||
"version": "4.4.1",
|
||||
"version": "4.4.3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/debug-js/debug.git"
|
||||
|
||||
64
node_modules/discord-api-types/CHANGELOG.md
generated
vendored
64
node_modules/discord-api-types/CHANGELOG.md
generated
vendored
@@ -1,3 +1,67 @@
|
||||
## [0.38.26](https://github.com/discordjs/discord-api-types/compare/0.38.25...0.38.26) (2025-09-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add guild_id back to GatewayVoiceStateUpdateDispatchData ([#1346](https://github.com/discordjs/discord-api-types/issues/1346)) ([e52ac85](https://github.com/discordjs/discord-api-types/commit/e52ac85e9d60b4032bb21cd958cf032cad50643f))
|
||||
|
||||
|
||||
|
||||
## [0.38.25](https://github.com/discordjs/discord-api-types/compare/0.38.24...0.38.25) (2025-09-15)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add RateLimited gateway event ([#1334](https://github.com/discordjs/discord-api-types/issues/1334)) ([14963d6](https://github.com/discordjs/discord-api-types/commit/14963d61d488af2be8d3655651fd0677ad4c46ed))
|
||||
|
||||
|
||||
|
||||
## [0.38.24](https://github.com/discordjs/discord-api-types/compare/0.38.23...0.38.24) (2025-09-10)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **RESTPatchAPICurrentGuildMemberJSONBody:** Add `banner`, `avatar`, and `bio` ([#1356](https://github.com/discordjs/discord-api-types/issues/1356)) ([35a4084](https://github.com/discordjs/discord-api-types/commit/35a40846473eebfe5245656ee5437347ff2fa88f))
|
||||
* **RESTPostAPIChannelThreadsResult:** narrow response ([#1364](https://github.com/discordjs/discord-api-types/issues/1364)) ([8eb66a1](https://github.com/discordjs/discord-api-types/commit/8eb66a1512e5b8c57ba7e4a85a18380664ac6219))
|
||||
* Update invite types ([#1365](https://github.com/discordjs/discord-api-types/issues/1365)) ([35867c1](https://github.com/discordjs/discord-api-types/commit/35867c19e6942e82ac6b2bcd93f61853b0b41666))
|
||||
|
||||
|
||||
|
||||
## [0.38.23](https://github.com/discordjs/discord-api-types/compare/0.38.22...0.38.23) (2025-09-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing text display in modal submission ([#1362](https://github.com/discordjs/discord-api-types/issues/1362)) ([464a9c8](https://github.com/discordjs/discord-api-types/commit/464a9c8cbf613428c3da6b3a9ebd0da4bd827c2b))
|
||||
* **RESTPatchAPIWebhookWithTokenMessageJSONBody:** add `flags` ([#1354](https://github.com/discordjs/discord-api-types/issues/1354)) ([af3907b](https://github.com/discordjs/discord-api-types/commit/af3907b10690c224dcd3106127fd67491262cc6c))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add 400001 ([#1352](https://github.com/discordjs/discord-api-types/issues/1352)) ([ae09e2b](https://github.com/discordjs/discord-api-types/commit/ae09e2b9e47460b07907fc3b6e317bc1ae426663))
|
||||
* More label components and text display in modals ([#1351](https://github.com/discordjs/discord-api-types/issues/1351)) ([fa05a75](https://github.com/discordjs/discord-api-types/commit/fa05a7503f59017efc16ba2ca6cfb3fc99d331a3))
|
||||
|
||||
|
||||
|
||||
## [0.38.22](https://github.com/discordjs/discord-api-types/compare/0.38.21...0.38.22) (2025-08-29)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Support select in modals ([#1321](https://github.com/discordjs/discord-api-types/issues/1321)) ([3659c59](https://github.com/discordjs/discord-api-types/commit/3659c59ce7b3ee8c0281bf28499e733e1bc0752b))
|
||||
|
||||
|
||||
|
||||
## [0.38.21](https://github.com/discordjs/discord-api-types/compare/0.38.20...0.38.21) (2025-08-21)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* guest invites ([#1290](https://github.com/discordjs/discord-api-types/issues/1290)) ([1a37ae3](https://github.com/discordjs/discord-api-types/commit/1a37ae3eea156108e1add538b1d42c5fc2ce08ee))
|
||||
* **PermissionFlagsBits:** add `PinMessages` ([#1340](https://github.com/discordjs/discord-api-types/issues/1340)) ([b05df17](https://github.com/discordjs/discord-api-types/commit/b05df17466ade5bf58578b8a230d9cb5ec9e1024))
|
||||
|
||||
|
||||
|
||||
## [0.38.20](https://github.com/discordjs/discord-api-types/compare/0.38.19...0.38.20) (2025-08-14)
|
||||
|
||||
|
||||
|
||||
68
node_modules/discord-api-types/gateway/v10.d.ts
generated
vendored
68
node_modules/discord-api-types/gateway/v10.d.ts
generated
vendored
@@ -2,9 +2,8 @@
|
||||
* Types extracted from https://discord.com/developers/docs/topics/gateway
|
||||
*/
|
||||
import type { Snowflake } from '../globals';
|
||||
import type { APIApplication, APIApplicationCommandPermission, APIAutoModerationRule, APIAutoModerationAction, APIChannel, APIEmoji, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildScheduledEvent, APIInteraction, APIRole, APIStageInstance, APISticker, APIThreadChannel, APIThreadMember, APIUnavailableGuild, APIUser, GatewayActivity, GatewayPresenceUpdate, GatewayThreadListSync, GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate, APIVoiceState, InviteTargetType, PresenceUpdateStatus, AutoModerationRuleTriggerType, APIAuditLogEntry, APIEntitlement, ChannelType, APISubscription, APISoundboardSound, GuildChannelType, ThreadChannelType, APIBaseGuild, APIBaseGuildMember, APIBaseVoiceState, APIBaseVoiceGuildMember, APIGuildMemberJoined, APIFlaggedGuildMember, APIGuildMemberAvatar, APIGuildMemberUser, GatewayGuildMembersChunkPresence, APIBaseMessage } from '../payloads/v10/index';
|
||||
import type { APIApplication, APIApplicationCommandPermission, APIAutoModerationRule, APIAutoModerationAction, APIChannel, APIEmoji, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildScheduledEvent, APIInteraction, APIRole, APIStageInstance, APISticker, APIThreadChannel, APIThreadMember, APIUnavailableGuild, APIUser, GatewayActivity, GatewayPresenceUpdate, GatewayThreadListSync, GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate, InviteTargetType, PresenceUpdateStatus, AutoModerationRuleTriggerType, APIAuditLogEntry, APIEntitlement, ChannelType, APISubscription, APISoundboardSound, GuildChannelType, ThreadChannelType, APIBaseGuild, APIBaseGuildMember, APIBaseVoiceState, APIBaseVoiceGuildMember, APIGuildMemberJoined, APIFlaggedGuildMember, APIGuildMemberAvatar, APIGuildMemberUser, GatewayGuildMembersChunkPresence, APIBaseMessage, APIVoiceState } from '../payloads/v10/index';
|
||||
import type { ReactionType } from '../rest/v10/index';
|
||||
import type { _Nullable } from '../utils/internals';
|
||||
export type * from './common';
|
||||
export declare const GatewayVersion = "10";
|
||||
/**
|
||||
@@ -235,6 +234,7 @@ export declare enum GatewayDispatchEvents {
|
||||
MessageReactionRemoveEmoji = "MESSAGE_REACTION_REMOVE_EMOJI",
|
||||
MessageUpdate = "MESSAGE_UPDATE",
|
||||
PresenceUpdate = "PRESENCE_UPDATE",
|
||||
RateLimited = "RATE_LIMITED",
|
||||
Ready = "READY",
|
||||
Resumed = "RESUMED",
|
||||
StageInstanceCreate = "STAGE_INSTANCE_CREATE",
|
||||
@@ -258,7 +258,7 @@ export declare enum GatewayDispatchEvents {
|
||||
}
|
||||
export type GatewaySendPayload = GatewayHeartbeat | GatewayIdentify | GatewayRequestGuildMembers | GatewayRequestSoundboardSounds | GatewayResume | GatewayUpdatePresence | GatewayVoiceStateUpdate;
|
||||
export type GatewayReceivePayload = GatewayDispatchPayload | GatewayHeartbeatAck | GatewayHeartbeatRequest | GatewayHello | GatewayInvalidSession | GatewayReconnect;
|
||||
export type GatewayDispatchPayload = GatewayApplicationCommandPermissionsUpdateDispatch | GatewayAutoModerationActionExecutionDispatch | GatewayAutoModerationRuleCreateDispatch | GatewayAutoModerationRuleDeleteDispatch | GatewayAutoModerationRuleModifyDispatch | GatewayChannelModifyDispatch | GatewayChannelPinsUpdateDispatch | GatewayEntitlementModifyDispatch | GatewayGuildAuditLogEntryCreateDispatch | GatewayGuildBanModifyDispatch | GatewayGuildCreateDispatch | GatewayGuildDeleteDispatch | GatewayGuildEmojisUpdateDispatch | GatewayGuildIntegrationsUpdateDispatch | GatewayGuildMemberAddDispatch | GatewayGuildMemberRemoveDispatch | GatewayGuildMembersChunkDispatch | GatewayGuildMemberUpdateDispatch | GatewayGuildModifyDispatch | GatewayGuildRoleDeleteDispatch | GatewayGuildRoleModifyDispatch | GatewayGuildScheduledEventCreateDispatch | GatewayGuildScheduledEventDeleteDispatch | GatewayGuildScheduledEventUpdateDispatch | GatewayGuildScheduledEventUserAddDispatch | GatewayGuildScheduledEventUserRemoveDispatch | GatewayGuildSoundboardSoundCreateDispatch | GatewayGuildSoundboardSoundDeleteDispatch | GatewayGuildSoundboardSoundsUpdateDispatch | GatewayGuildSoundboardSoundUpdateDispatch | GatewayGuildStickersUpdateDispatch | GatewayIntegrationCreateDispatch | GatewayIntegrationDeleteDispatch | GatewayIntegrationUpdateDispatch | GatewayInteractionCreateDispatch | GatewayInviteCreateDispatch | GatewayInviteDeleteDispatch | GatewayMessageCreateDispatch | GatewayMessageDeleteBulkDispatch | GatewayMessageDeleteDispatch | GatewayMessagePollVoteAddDispatch | GatewayMessagePollVoteRemoveDispatch | GatewayMessageReactionAddDispatch | GatewayMessageReactionRemoveAllDispatch | GatewayMessageReactionRemoveDispatch | GatewayMessageReactionRemoveEmojiDispatch | GatewayMessageUpdateDispatch | GatewayPresenceUpdateDispatch | GatewayReadyDispatch | GatewayResumedDispatch | GatewaySoundboardSoundsDispatch | GatewayStageInstanceCreateDispatch | GatewayStageInstanceDeleteDispatch | GatewayStageInstanceUpdateDispatch | GatewaySubscriptionModifyDispatch | GatewayThreadCreateDispatch | GatewayThreadDeleteDispatch | GatewayThreadListSyncDispatch | GatewayThreadMembersUpdateDispatch | GatewayThreadMemberUpdateDispatch | GatewayThreadUpdateDispatch | GatewayTypingStartDispatch | GatewayUserUpdateDispatch | GatewayVoiceChannelEffectSendDispatch | GatewayVoiceServerUpdateDispatch | GatewayVoiceStateUpdateDispatch | GatewayWebhooksUpdateDispatch;
|
||||
export type GatewayDispatchPayload = GatewayApplicationCommandPermissionsUpdateDispatch | GatewayAutoModerationActionExecutionDispatch | GatewayAutoModerationRuleCreateDispatch | GatewayAutoModerationRuleDeleteDispatch | GatewayAutoModerationRuleModifyDispatch | GatewayChannelModifyDispatch | GatewayChannelPinsUpdateDispatch | GatewayEntitlementModifyDispatch | GatewayGuildAuditLogEntryCreateDispatch | GatewayGuildBanModifyDispatch | GatewayGuildCreateDispatch | GatewayGuildDeleteDispatch | GatewayGuildEmojisUpdateDispatch | GatewayGuildIntegrationsUpdateDispatch | GatewayGuildMemberAddDispatch | GatewayGuildMemberRemoveDispatch | GatewayGuildMembersChunkDispatch | GatewayGuildMemberUpdateDispatch | GatewayGuildModifyDispatch | GatewayGuildRoleDeleteDispatch | GatewayGuildRoleModifyDispatch | GatewayGuildScheduledEventCreateDispatch | GatewayGuildScheduledEventDeleteDispatch | GatewayGuildScheduledEventUpdateDispatch | GatewayGuildScheduledEventUserAddDispatch | GatewayGuildScheduledEventUserRemoveDispatch | GatewayGuildSoundboardSoundCreateDispatch | GatewayGuildSoundboardSoundDeleteDispatch | GatewayGuildSoundboardSoundsUpdateDispatch | GatewayGuildSoundboardSoundUpdateDispatch | GatewayGuildStickersUpdateDispatch | GatewayIntegrationCreateDispatch | GatewayIntegrationDeleteDispatch | GatewayIntegrationUpdateDispatch | GatewayInteractionCreateDispatch | GatewayInviteCreateDispatch | GatewayInviteDeleteDispatch | GatewayMessageCreateDispatch | GatewayMessageDeleteBulkDispatch | GatewayMessageDeleteDispatch | GatewayMessagePollVoteAddDispatch | GatewayMessagePollVoteRemoveDispatch | GatewayMessageReactionAddDispatch | GatewayMessageReactionRemoveAllDispatch | GatewayMessageReactionRemoveDispatch | GatewayMessageReactionRemoveEmojiDispatch | GatewayMessageUpdateDispatch | GatewayPresenceUpdateDispatch | GatewayRateLimitedDispatch | GatewayReadyDispatch | GatewayResumedDispatch | GatewaySoundboardSoundsDispatch | GatewayStageInstanceCreateDispatch | GatewayStageInstanceDeleteDispatch | GatewayStageInstanceUpdateDispatch | GatewaySubscriptionModifyDispatch | GatewayThreadCreateDispatch | GatewayThreadDeleteDispatch | GatewayThreadListSyncDispatch | GatewayThreadMembersUpdateDispatch | GatewayThreadMemberUpdateDispatch | GatewayThreadUpdateDispatch | GatewayTypingStartDispatch | GatewayUserUpdateDispatch | GatewayVoiceChannelEffectSendDispatch | GatewayVoiceServerUpdateDispatch | GatewayVoiceStateUpdateDispatch | GatewayWebhooksUpdateDispatch;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#hello}
|
||||
*/
|
||||
@@ -870,7 +870,7 @@ export type GatewayGuildMemberUpdateDispatch = _DataPayload<GatewayDispatchEvent
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#guild-member-update}
|
||||
*/
|
||||
export interface GatewayGuildMemberUpdateDispatchData extends _Nullable<APIGuildMemberJoined>, APIBaseGuildMember, Partial<APIBaseVoiceGuildMember>, Partial<APIFlaggedGuildMember>, Required<APIGuildMemberAvatar>, Required<APIGuildMemberUser> {
|
||||
export interface GatewayGuildMemberUpdateDispatchData extends APIGuildMemberJoined, APIBaseGuildMember, Partial<APIBaseVoiceGuildMember>, Partial<APIFlaggedGuildMember>, Required<APIGuildMemberAvatar>, Required<APIGuildMemberUser> {
|
||||
/**
|
||||
* The id of the guild
|
||||
*/
|
||||
@@ -1201,6 +1201,10 @@ export interface GatewayInviteCreateDispatchData {
|
||||
* How many times the invite has been used (always will be `0`)
|
||||
*/
|
||||
uses: 0;
|
||||
/**
|
||||
* The expiration date of this invite.
|
||||
*/
|
||||
expires_at: string | null;
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#invite-delete}
|
||||
@@ -1243,7 +1247,7 @@ export type GatewayMessageUpdateDispatch = _DataPayload<GatewayDispatchEvents.Me
|
||||
*/
|
||||
export interface GatewayMessageUpdateDispatchData extends GatewayMessageEventExtraFields, APIBaseMessage {
|
||||
}
|
||||
export interface APIGuildMemberNoUser extends APIBaseGuildMember, APIFlaggedGuildMember, APIGuildMemberAvatar, APIGuildMemberJoined, APIBaseVoiceGuildMember {
|
||||
export interface APIGuildMemberNoUser extends APIBaseGuildMember, APIFlaggedGuildMember, APIGuildMemberAvatar, NonNullable<APIGuildMemberJoined>, APIBaseVoiceGuildMember {
|
||||
}
|
||||
export interface APIUserWithMember extends APIUser {
|
||||
/**
|
||||
@@ -1709,6 +1713,60 @@ export interface GatewayMessagePollVoteDispatchData {
|
||||
*/
|
||||
answer_id: number;
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedDispatch<Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap> = _DataPayload<GatewayDispatchEvents.RateLimited, GatewayRateLimitedDispatchData<Opcode>>;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatch = GatewayRateLimitedDispatch<GatewayOpcodes.RequestGuildMembers>;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export interface GatewayRateLimitedDispatchData<Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap> {
|
||||
/**
|
||||
* {@link GatewayOpcodes | Gateway opcode} of the event that was rate limited
|
||||
*/
|
||||
opcode: Opcode;
|
||||
/**
|
||||
* The number of seconds to wait before submitting another request
|
||||
*/
|
||||
retry_after: number;
|
||||
/**
|
||||
* Metadata for the event that was rate limited
|
||||
*/
|
||||
meta: GatewayOpcodeRateLimitMetadataMap[Opcode];
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatchData = GatewayRateLimitedDispatchData<GatewayOpcodes.RequestGuildMembers>;
|
||||
/**
|
||||
* Map of gateway opcodes to their rate limit metadata types
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited-rate-limit-metadata-for-opcode-structure}
|
||||
*/
|
||||
export interface GatewayOpcodeRateLimitMetadataMap {
|
||||
[GatewayOpcodes.RequestGuildMembers]: GatewayRequestGuildMemberRateLimitMetadata;
|
||||
}
|
||||
/**
|
||||
* Types of metadata that can be received in a {@link GatewayRateLimitedDispatchData.meta} field
|
||||
*/
|
||||
export type GatewayRateLimitedMetadata = GatewayOpcodeRateLimitMetadataMap[keyof GatewayOpcodeRateLimitMetadataMap];
|
||||
/**
|
||||
* Rate limit metadata for the {@link GatewayOpcodes.RequestGuildMembers} opcode
|
||||
*/
|
||||
export interface GatewayRequestGuildMemberRateLimitMetadata {
|
||||
/**
|
||||
* Id of the guild members were requested for
|
||||
*/
|
||||
guild_id: Snowflake;
|
||||
/**
|
||||
* Nonce used to identify the {@link GatewayGuildMembersChunkDispatch} response
|
||||
*/
|
||||
nonce?: string;
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway#sending-heartbeats}
|
||||
*/
|
||||
|
||||
2
node_modules/discord-api-types/gateway/v10.d.ts.map
generated
vendored
2
node_modules/discord-api-types/gateway/v10.d.ts.map
generated
vendored
File diff suppressed because one or more lines are too long
1
node_modules/discord-api-types/gateway/v10.js
generated
vendored
1
node_modules/discord-api-types/gateway/v10.js
generated
vendored
@@ -237,6 +237,7 @@ var GatewayDispatchEvents;
|
||||
GatewayDispatchEvents["MessageReactionRemoveEmoji"] = "MESSAGE_REACTION_REMOVE_EMOJI";
|
||||
GatewayDispatchEvents["MessageUpdate"] = "MESSAGE_UPDATE";
|
||||
GatewayDispatchEvents["PresenceUpdate"] = "PRESENCE_UPDATE";
|
||||
GatewayDispatchEvents["RateLimited"] = "RATE_LIMITED";
|
||||
GatewayDispatchEvents["Ready"] = "READY";
|
||||
GatewayDispatchEvents["Resumed"] = "RESUMED";
|
||||
GatewayDispatchEvents["StageInstanceCreate"] = "STAGE_INSTANCE_CREATE";
|
||||
|
||||
2
node_modules/discord-api-types/gateway/v10.js.map
generated
vendored
2
node_modules/discord-api-types/gateway/v10.js.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"v10.js","sourceRoot":"","sources":["v10.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAqDU,QAAA,cAAc,GAAG,IAAI,CAAC;AAEnC;;GAEG;AACH,IAAY,cAkDX;AAlDD,WAAY,cAAc;IACzB;;OAEG;IACH,2DAAQ,CAAA;IACR;;;OAGG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,2DAAQ,CAAA;IACR;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,2EAAgB,CAAA;IAChB;;OAEG;IACH,uDAAU,CAAA;IACV;;OAEG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,iFAAmB,CAAA;IACnB;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,sDAAK,CAAA;IACL;;OAEG;IACH,oEAAY,CAAA;IACZ;;OAEG;IACH,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6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,mEAA0C,CAAA;IAC1C,mEAA0C,CAAA;IAC1C,mEAA0C,CAAA;IAC1C,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,4DAAmC,CAAA;IACnC,sEAA6C,CAAA;IAC7C,oEAA2C,CAAA;IAC3C,uDAA8B,CAAA;IAC9B,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,6EAAoD,CAAA;IACpD,kEAAyC,CAAA;IACzC,gEAAuC,CAAA;IACvC,2DAAkC,CAAA;AACnC,CAAC,EA7EW,qBAAqB,qCAArB,qBAAqB,QA6EhC;AA4uDD;;GAEG;AACH,IAAY,mCASX;AATD,WAAY,mCAAmC;IAC9C;;OAEG;IACH,mGAAO,CAAA;IACP;;OAEG;IACH,+FAAK,CAAA;AACN,CAAC,EATW,mCAAmC,mDAAnC,mCAAmC,QAS9C;AAogBD,oBAAoB"}
|
||||
68
node_modules/discord-api-types/gateway/v9.d.ts
generated
vendored
68
node_modules/discord-api-types/gateway/v9.d.ts
generated
vendored
@@ -2,9 +2,8 @@
|
||||
* Types extracted from https://discord.com/developers/docs/topics/gateway
|
||||
*/
|
||||
import type { Snowflake } from '../globals';
|
||||
import type { APIApplication, APIApplicationCommandPermission, APIAutoModerationRule, APIAutoModerationAction, APIChannel, APIEmoji, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildScheduledEvent, APIInteraction, APIRole, APIStageInstance, APISticker, APIThreadChannel, APIThreadMember, APIUnavailableGuild, APIUser, GatewayActivity, GatewayPresenceUpdate, GatewayThreadListSync, GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate, APIVoiceState, InviteTargetType, PresenceUpdateStatus, AutoModerationRuleTriggerType, APIAuditLogEntry, ChannelType, APISubscription, APISoundboardSound, GuildChannelType, ThreadChannelType, APIEntitlement, APIBaseGuild, APIBaseGuildMember, APIBaseVoiceState, APIBaseVoiceGuildMember, APIFlaggedGuildMember, APIGuildMemberUser, APIGuildMemberAvatar, GatewayGuildMembersChunkPresence, APIBaseMessage, APIGuildMemberJoined } from '../payloads/v9/index';
|
||||
import type { APIApplication, APIApplicationCommandPermission, APIAutoModerationRule, APIAutoModerationAction, APIChannel, APIEmoji, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildScheduledEvent, APIInteraction, APIRole, APIStageInstance, APISticker, APIThreadChannel, APIThreadMember, APIUnavailableGuild, APIUser, GatewayActivity, GatewayPresenceUpdate, GatewayThreadListSync, GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate, InviteTargetType, PresenceUpdateStatus, AutoModerationRuleTriggerType, APIAuditLogEntry, ChannelType, APISubscription, APISoundboardSound, GuildChannelType, ThreadChannelType, APIEntitlement, APIBaseGuild, APIBaseGuildMember, APIBaseVoiceState, APIBaseVoiceGuildMember, APIFlaggedGuildMember, APIGuildMemberUser, APIGuildMemberAvatar, GatewayGuildMembersChunkPresence, APIBaseMessage, APIGuildMemberJoined, APIVoiceState } from '../payloads/v9/index';
|
||||
import type { ReactionType } from '../rest/v9/index';
|
||||
import type { _Nullable } from '../utils/internals';
|
||||
export type * from './common';
|
||||
export declare const GatewayVersion = "9";
|
||||
/**
|
||||
@@ -234,6 +233,7 @@ export declare enum GatewayDispatchEvents {
|
||||
MessageReactionRemoveEmoji = "MESSAGE_REACTION_REMOVE_EMOJI",
|
||||
MessageUpdate = "MESSAGE_UPDATE",
|
||||
PresenceUpdate = "PRESENCE_UPDATE",
|
||||
RateLimited = "RATE_LIMITED",
|
||||
Ready = "READY",
|
||||
Resumed = "RESUMED",
|
||||
StageInstanceCreate = "STAGE_INSTANCE_CREATE",
|
||||
@@ -257,7 +257,7 @@ export declare enum GatewayDispatchEvents {
|
||||
}
|
||||
export type GatewaySendPayload = GatewayHeartbeat | GatewayIdentify | GatewayRequestGuildMembers | GatewayRequestSoundboardSounds | GatewayResume | GatewayUpdatePresence | GatewayVoiceStateUpdate;
|
||||
export type GatewayReceivePayload = GatewayDispatchPayload | GatewayHeartbeatAck | GatewayHeartbeatRequest | GatewayHello | GatewayInvalidSession | GatewayReconnect;
|
||||
export type GatewayDispatchPayload = GatewayApplicationCommandPermissionsUpdateDispatch | GatewayAutoModerationActionExecutionDispatch | GatewayAutoModerationRuleCreateDispatch | GatewayAutoModerationRuleDeleteDispatch | GatewayAutoModerationRuleModifyDispatch | GatewayChannelModifyDispatch | GatewayChannelPinsUpdateDispatch | GatewayEntitlementModifyDispatch | GatewayGuildAuditLogEntryCreateDispatch | GatewayGuildBanModifyDispatch | GatewayGuildCreateDispatch | GatewayGuildDeleteDispatch | GatewayGuildEmojisUpdateDispatch | GatewayGuildIntegrationsUpdateDispatch | GatewayGuildMemberAddDispatch | GatewayGuildMemberRemoveDispatch | GatewayGuildMembersChunkDispatch | GatewayGuildMemberUpdateDispatch | GatewayGuildModifyDispatch | GatewayGuildRoleDeleteDispatch | GatewayGuildRoleModifyDispatch | GatewayGuildScheduledEventCreateDispatch | GatewayGuildScheduledEventDeleteDispatch | GatewayGuildScheduledEventUpdateDispatch | GatewayGuildScheduledEventUserAddDispatch | GatewayGuildScheduledEventUserRemoveDispatch | GatewayGuildSoundboardSoundCreateDispatch | GatewayGuildSoundboardSoundDeleteDispatch | GatewayGuildSoundboardSoundsUpdateDispatch | GatewayGuildSoundboardSoundUpdateDispatch | GatewayGuildStickersUpdateDispatch | GatewayIntegrationCreateDispatch | GatewayIntegrationDeleteDispatch | GatewayIntegrationUpdateDispatch | GatewayInteractionCreateDispatch | GatewayInviteCreateDispatch | GatewayInviteDeleteDispatch | GatewayMessageCreateDispatch | GatewayMessageDeleteBulkDispatch | GatewayMessageDeleteDispatch | GatewayMessagePollVoteAddDispatch | GatewayMessagePollVoteRemoveDispatch | GatewayMessageReactionAddDispatch | GatewayMessageReactionRemoveAllDispatch | GatewayMessageReactionRemoveDispatch | GatewayMessageReactionRemoveEmojiDispatch | GatewayMessageUpdateDispatch | GatewayPresenceUpdateDispatch | GatewayReadyDispatch | GatewayResumedDispatch | GatewaySoundboardSoundsDispatch | GatewayStageInstanceCreateDispatch | GatewayStageInstanceDeleteDispatch | GatewayStageInstanceUpdateDispatch | GatewaySubscriptionModifyDispatch | GatewayThreadCreateDispatch | GatewayThreadDeleteDispatch | GatewayThreadListSyncDispatch | GatewayThreadMembersUpdateDispatch | GatewayThreadMemberUpdateDispatch | GatewayThreadUpdateDispatch | GatewayTypingStartDispatch | GatewayUserUpdateDispatch | GatewayVoiceChannelEffectSendDispatch | GatewayVoiceServerUpdateDispatch | GatewayVoiceStateUpdateDispatch | GatewayWebhooksUpdateDispatch;
|
||||
export type GatewayDispatchPayload = GatewayApplicationCommandPermissionsUpdateDispatch | GatewayAutoModerationActionExecutionDispatch | GatewayAutoModerationRuleCreateDispatch | GatewayAutoModerationRuleDeleteDispatch | GatewayAutoModerationRuleModifyDispatch | GatewayChannelModifyDispatch | GatewayChannelPinsUpdateDispatch | GatewayEntitlementModifyDispatch | GatewayGuildAuditLogEntryCreateDispatch | GatewayGuildBanModifyDispatch | GatewayGuildCreateDispatch | GatewayGuildDeleteDispatch | GatewayGuildEmojisUpdateDispatch | GatewayGuildIntegrationsUpdateDispatch | GatewayGuildMemberAddDispatch | GatewayGuildMemberRemoveDispatch | GatewayGuildMembersChunkDispatch | GatewayGuildMemberUpdateDispatch | GatewayGuildModifyDispatch | GatewayGuildRoleDeleteDispatch | GatewayGuildRoleModifyDispatch | GatewayGuildScheduledEventCreateDispatch | GatewayGuildScheduledEventDeleteDispatch | GatewayGuildScheduledEventUpdateDispatch | GatewayGuildScheduledEventUserAddDispatch | GatewayGuildScheduledEventUserRemoveDispatch | GatewayGuildSoundboardSoundCreateDispatch | GatewayGuildSoundboardSoundDeleteDispatch | GatewayGuildSoundboardSoundsUpdateDispatch | GatewayGuildSoundboardSoundUpdateDispatch | GatewayGuildStickersUpdateDispatch | GatewayIntegrationCreateDispatch | GatewayIntegrationDeleteDispatch | GatewayIntegrationUpdateDispatch | GatewayInteractionCreateDispatch | GatewayInviteCreateDispatch | GatewayInviteDeleteDispatch | GatewayMessageCreateDispatch | GatewayMessageDeleteBulkDispatch | GatewayMessageDeleteDispatch | GatewayMessagePollVoteAddDispatch | GatewayMessagePollVoteRemoveDispatch | GatewayMessageReactionAddDispatch | GatewayMessageReactionRemoveAllDispatch | GatewayMessageReactionRemoveDispatch | GatewayMessageReactionRemoveEmojiDispatch | GatewayMessageUpdateDispatch | GatewayPresenceUpdateDispatch | GatewayRateLimitedDispatch | GatewayReadyDispatch | GatewayResumedDispatch | GatewaySoundboardSoundsDispatch | GatewayStageInstanceCreateDispatch | GatewayStageInstanceDeleteDispatch | GatewayStageInstanceUpdateDispatch | GatewaySubscriptionModifyDispatch | GatewayThreadCreateDispatch | GatewayThreadDeleteDispatch | GatewayThreadListSyncDispatch | GatewayThreadMembersUpdateDispatch | GatewayThreadMemberUpdateDispatch | GatewayThreadUpdateDispatch | GatewayTypingStartDispatch | GatewayUserUpdateDispatch | GatewayVoiceChannelEffectSendDispatch | GatewayVoiceServerUpdateDispatch | GatewayVoiceStateUpdateDispatch | GatewayWebhooksUpdateDispatch;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#hello}
|
||||
*/
|
||||
@@ -869,7 +869,7 @@ export type GatewayGuildMemberUpdateDispatch = _DataPayload<GatewayDispatchEvent
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#guild-member-update}
|
||||
*/
|
||||
export interface GatewayGuildMemberUpdateDispatchData extends _Nullable<APIGuildMemberJoined>, APIBaseGuildMember, Partial<APIBaseVoiceGuildMember>, Partial<APIFlaggedGuildMember>, Required<APIGuildMemberUser>, Required<APIGuildMemberAvatar> {
|
||||
export interface GatewayGuildMemberUpdateDispatchData extends APIGuildMemberJoined, APIBaseGuildMember, Partial<APIBaseVoiceGuildMember>, Partial<APIFlaggedGuildMember>, Required<APIGuildMemberUser>, Required<APIGuildMemberAvatar> {
|
||||
/**
|
||||
* The id of the guild
|
||||
*/
|
||||
@@ -1200,6 +1200,10 @@ export interface GatewayInviteCreateDispatchData {
|
||||
* How many times the invite has been used (always will be `0`)
|
||||
*/
|
||||
uses: 0;
|
||||
/**
|
||||
* The expiration date of this invite.
|
||||
*/
|
||||
expires_at: string | null;
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#invite-delete}
|
||||
@@ -1242,7 +1246,7 @@ export type GatewayMessageUpdateDispatch = _DataPayload<GatewayDispatchEvents.Me
|
||||
*/
|
||||
export interface GatewayMessageUpdateDispatchData extends GatewayMessageEventExtraFields, APIBaseMessage {
|
||||
}
|
||||
export interface APIGuildMemberNoUser extends APIBaseGuildMember, APIFlaggedGuildMember, APIGuildMemberAvatar, APIGuildMemberJoined, APIBaseVoiceGuildMember {
|
||||
export interface APIGuildMemberNoUser extends APIBaseGuildMember, APIFlaggedGuildMember, APIGuildMemberAvatar, NonNullable<APIGuildMemberJoined>, APIBaseVoiceGuildMember {
|
||||
}
|
||||
export interface APIUserWithMember extends APIUser {
|
||||
/**
|
||||
@@ -1708,6 +1712,60 @@ export interface GatewayMessagePollVoteDispatchData {
|
||||
*/
|
||||
answer_id: number;
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedDispatch<Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap> = _DataPayload<GatewayDispatchEvents.RateLimited, GatewayRateLimitedDispatchData<Opcode>>;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatch = GatewayRateLimitedDispatch<GatewayOpcodes.RequestGuildMembers>;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export interface GatewayRateLimitedDispatchData<Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap> {
|
||||
/**
|
||||
* {@link GatewayOpcodes | Gateway opcode} of the event that was rate limited
|
||||
*/
|
||||
opcode: Opcode;
|
||||
/**
|
||||
* The number of seconds to wait before submitting another request
|
||||
*/
|
||||
retry_after: number;
|
||||
/**
|
||||
* Metadata for the event that was rate limited
|
||||
*/
|
||||
meta: GatewayOpcodeRateLimitMetadataMap[Opcode];
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatchData = GatewayRateLimitedDispatchData<GatewayOpcodes.RequestGuildMembers>;
|
||||
/**
|
||||
* Map of gateway opcodes to their rate limit metadata types
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited-rate-limit-metadata-for-opcode-structure}
|
||||
*/
|
||||
export interface GatewayOpcodeRateLimitMetadataMap {
|
||||
[GatewayOpcodes.RequestGuildMembers]: GatewayRequestGuildMemberRateLimitMetadata;
|
||||
}
|
||||
/**
|
||||
* Types of metadata that can be received in a {@link GatewayRateLimitedDispatchData.meta} field
|
||||
*/
|
||||
export type GatewayRateLimitedMetadata = GatewayOpcodeRateLimitMetadataMap[keyof GatewayOpcodeRateLimitMetadataMap];
|
||||
/**
|
||||
* Rate limit metadata for the {@link GatewayOpcodes.RequestGuildMembers} opcode
|
||||
*/
|
||||
export interface GatewayRequestGuildMemberRateLimitMetadata {
|
||||
/**
|
||||
* Id of the guild members were requested for
|
||||
*/
|
||||
guild_id: Snowflake;
|
||||
/**
|
||||
* Nonce used to identify the {@link GatewayGuildMembersChunkDispatch} response
|
||||
*/
|
||||
nonce?: string;
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway#sending-heartbeats}
|
||||
*/
|
||||
|
||||
2
node_modules/discord-api-types/gateway/v9.d.ts.map
generated
vendored
2
node_modules/discord-api-types/gateway/v9.d.ts.map
generated
vendored
File diff suppressed because one or more lines are too long
1
node_modules/discord-api-types/gateway/v9.js
generated
vendored
1
node_modules/discord-api-types/gateway/v9.js
generated
vendored
@@ -236,6 +236,7 @@ var GatewayDispatchEvents;
|
||||
GatewayDispatchEvents["MessageReactionRemoveEmoji"] = "MESSAGE_REACTION_REMOVE_EMOJI";
|
||||
GatewayDispatchEvents["MessageUpdate"] = "MESSAGE_UPDATE";
|
||||
GatewayDispatchEvents["PresenceUpdate"] = "PRESENCE_UPDATE";
|
||||
GatewayDispatchEvents["RateLimited"] = "RATE_LIMITED";
|
||||
GatewayDispatchEvents["Ready"] = "READY";
|
||||
GatewayDispatchEvents["Resumed"] = "RESUMED";
|
||||
GatewayDispatchEvents["StageInstanceCreate"] = "STAGE_INSTANCE_CREATE";
|
||||
|
||||
2
node_modules/discord-api-types/gateway/v9.js.map
generated
vendored
2
node_modules/discord-api-types/gateway/v9.js.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"v9.js","sourceRoot":"","sources":["v9.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAqDU,QAAA,cAAc,GAAG,GAAG,CAAC;AAElC;;GAEG;AACH,IAAY,cAkDX;AAlDD,WAAY,cAAc;IACzB;;OAEG;IACH,2DAAQ,CAAA;IACR;;;OAGG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,2DAAQ,CAAA;IACR;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,2EAAgB,CAAA;IAChB;;OAEG;IACH,uDAAU,CAAA;IACV;;OAEG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,iFAAmB,CAAA;IACnB;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,sDAAK,CAAA;IACL;;OAEG;IACH,oEAAY,CAAA;IACZ;;OAEG;IACH,0FAA4B,CAAA;AAC7B,CAAC,EAlDW,cAAc,8BAAd,cAAc,QAkDzB;AAED;;GAEG;AACH,IAAY,iBA6EX;AA7ED,WAAY,iBAAiB;IAC5B;;OAEG;IACH,4EAAo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AC7C,oEAA2C,CAAA;IAC3C,uDAA8B,CAAA;IAC9B,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,6EAAoD,CAAA;IACpD,kEAAyC,CAAA;IACzC,gEAAuC,CAAA;IACvC,2DAAkC,CAAA;AACnC,CAAC,EA7EW,qBAAqB,qCAArB,qBAAqB,QA6EhC;AA4uDD;;GAEG;AACH,IAAY,mCASX;AATD,WAAY,mCAAmC;IAC9C;;OAEG;IACH,mGAAO,CAAA;IACP;;OAEG;IACH,+FAAK,CAAA;AACN,CAAC,EATW,mCAAmC,mDAAnC,mCAAmC,QAS9C;AAogBD,oBAAoB"}
|
||||
8
node_modules/discord-api-types/package.json
generated
vendored
8
node_modules/discord-api-types/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord-api-types",
|
||||
"version": "0.38.20",
|
||||
"version": "0.38.26",
|
||||
"description": "Discord API typings that are kept up to date for use in bot library creation.",
|
||||
"homepage": "https://discord-api-types.dev",
|
||||
"workspaces": [
|
||||
@@ -207,9 +207,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.9.2",
|
||||
"packageManager": "yarn@4.9.4",
|
||||
"volta": {
|
||||
"node": "24.5.0",
|
||||
"yarn": "4.9.2"
|
||||
"node": "24.8.0",
|
||||
"yarn": "4.9.4"
|
||||
}
|
||||
}
|
||||
6
node_modules/discord-api-types/payloads/common.d.ts
generated
vendored
6
node_modules/discord-api-types/payloads/common.d.ts
generated
vendored
@@ -286,6 +286,12 @@ export declare const PermissionFlagsBits: {
|
||||
* Applies to channel types: Text, Voice, Stage
|
||||
*/
|
||||
readonly UseExternalApps: bigint;
|
||||
/**
|
||||
* Allows pinning and unpinning messages
|
||||
*
|
||||
* Applies to channel types: Text
|
||||
*/
|
||||
readonly PinMessages: bigint;
|
||||
};
|
||||
export type LocalizationMap = Partial<Record<Locale, string | null>>;
|
||||
/**
|
||||
|
||||
2
node_modules/discord-api-types/payloads/common.d.ts.map
generated
vendored
2
node_modules/discord-api-types/payloads/common.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;IAC/B;;;;OAIG;;IAEH;;OAEG;;IAGH;;OAEG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;CAEM,CAAC;AASX,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC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;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;CAEM,CAAC;AASX,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,yBAAyB,GAAG,qBAAqB,GAAG,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,CAAC;AAExH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACpB"}
|
||||
6
node_modules/discord-api-types/payloads/common.js
generated
vendored
6
node_modules/discord-api-types/payloads/common.js
generated
vendored
@@ -288,6 +288,12 @@ exports.PermissionFlagsBits = {
|
||||
* Applies to channel types: Text, Voice, Stage
|
||||
*/
|
||||
UseExternalApps: 1n << 50n,
|
||||
/**
|
||||
* Allows pinning and unpinning messages
|
||||
*
|
||||
* Applies to channel types: Text
|
||||
*/
|
||||
PinMessages: 1n << 51n,
|
||||
};
|
||||
/**
|
||||
* Freeze the object of bits, preventing any modifications to it
|
||||
|
||||
2
node_modules/discord-api-types/payloads/common.js.map
generated
vendored
2
node_modules/discord-api-types/payloads/common.js.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"common.js","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACU,QAAA,mBAAmB,GAAG;IAClC;;;;OAIG;IACH,mBAAmB,EAAE,EAAE,IAAI,EAAE;IAC7B;;OAEG;IAEH,WAAW,EAAE,EAAE,IAAI,EAAE;IACrB;;OAEG;IACH,UAAU,EAAE,EAAE,IAAI,EAAE;IACpB;;OAEG;IACH,aAAa,EAAE,EAAE,IAAI,EAAE;IACvB;;;;OAIG;IACH,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB;;OAEG;IACH,WAAW,EAAE,EAAE,IAAI,EAAE;IACrB;;;;OAIG;IACH,YAAY,EAAE,EAAE,IAAI,EAAE;IACtB;;OAEG;IACH,YAAY,EAAE,EAAE,IAAI,EAAE;IACtB;;;;OAIG;IACH,eAAe,EAAE,EAAE,IAAI,EAAE;IACzB;;;;OAIG;IACH,MAAM,EAAE,EAAE,IAAI,EAAE;IAChB;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;IACtB;;;;;OAKG;IACH,YAAY,EAAE,EAAE,IAAI,GAAG;IACvB;;;;OAIG;IACH,eAAe,EAAE,EAAE,IAAI,GAAG;IAC1B;;;;OAIG;IACH,cAAc,EAAE,EAAE,IAAI,GAAG;IACzB;;;;OAIG;IACH,UAAU,EAAE,EAAE,IAAI,GAAG;IACrB;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;IACtB;;;;OAIG;IACH,k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B;;;;OAIG;IACH,aAAa,EAAE,EAAE,IAAI,GAAG;IACxB;;;;OAIG;IACH,mBAAmB,EAAE,EAAE,IAAI,GAAG;IAC9B;;;;OAIG;IACH,oBAAoB,EAAE,EAAE,IAAI,GAAG;IAC/B;;;;OAIG;IACH,mBAAmB,EAAE,EAAE,IAAI,GAAG;IAC9B;;;;OAIG;IACH,qBAAqB,EAAE,EAAE,IAAI,GAAG;IAChC;;;;OAIG;IACH,qBAAqB,EAAE,EAAE,IAAI,GAAG;IAChC;;;OAGG;IACH,eAAe,EAAE,EAAE,IAAI,GAAG;IAC1B;;OAEG;IACH,gCAAgC,EAAE,EAAE,IAAI,GAAG;IAC3C;;;;OAIG;IACH,aAAa,EAAE,EAAE,IAAI,GAAG;IACxB;;OAEG;IACH,sBAAsB,EAAE,EAAE,IAAI,GAAG;IACjC;;;;OAIG;IACH,YAAY,EAAE,EAAE,IAAI,GAAG;IACvB;;;;OAIG;IACH,iBAAiB,EAAE,EAAE,IAAI,GAAG;IAC5B;;;;OAIG;IACH,iBAAiB,EAAE,EAAE,IAAI,GAAG;IAC5B;;;;OAIG;IACH,SAAS,EAAE,EAAE,IAAI,GAAG;IACpB;;;;OAIG;IACH,eAAe,EAAE,EAAE,IAAI,GAAG;IAC1B;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;CACb,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,CAAC,2BAAmB,CAAC,CAAC"}
|
||||
1
node_modules/discord-api-types/payloads/index.mjs
generated
vendored
1
node_modules/discord-api-types/payloads/index.mjs
generated
vendored
@@ -55,6 +55,7 @@ export const IntegrationExpireBehavior = mod.IntegrationExpireBehavior;
|
||||
export const InteractionContextType = mod.InteractionContextType;
|
||||
export const InteractionResponseType = mod.InteractionResponseType;
|
||||
export const InteractionType = mod.InteractionType;
|
||||
export const InviteFlags = mod.InviteFlags;
|
||||
export const InviteTargetType = mod.InviteTargetType;
|
||||
export const InviteType = mod.InviteType;
|
||||
export const MembershipScreeningFieldType = mod.MembershipScreeningFieldType;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Snowflake } from '../../../../globals';
|
||||
import type { APIMessage } from '../../channel';
|
||||
import type { APIMessage } from '../../message';
|
||||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands';
|
||||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base';
|
||||
import type { APIBaseApplicationCommandInteractionData } from './internals';
|
||||
|
||||
3
node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts
generated
vendored
3
node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts
generated
vendored
@@ -1,7 +1,8 @@
|
||||
import type { Permissions, Snowflake } from '../../../globals';
|
||||
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v10';
|
||||
import type { APIAttachment, APIChannel, APIMessage, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel';
|
||||
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel';
|
||||
import type { APIBaseGuildMember, APIFlaggedGuildMember, APIGuildMember, APIGuildMemberAvatar, APIGuildMemberJoined, APIPartialInteractionGuild } from '../guild';
|
||||
import type { APIAttachment, APIMessage } from '../message';
|
||||
import type { APIEntitlement } from '../monetization';
|
||||
import type { APIUser } from '../user';
|
||||
import type { InteractionType } from './responses';
|
||||
|
||||
2
node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,c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M,WAAW,qCAChB,SAAQ,kBAAkB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB;IACrB,WAAW,EAAE,WAAW,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,qCAAqC,CAAC,CAAC;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,iCAAiC,CAAC,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,qDAAqD,GAAG,0BAA0B,CAAC;AAE/F;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC,0BAA0B,EAAE,SAAS,CAAC,GACvF,QAAQ,CAAC,IAAI,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,gDAAgD,GAAG,8BAA8B,CAAC"}
|
||||
2
node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts
generated
vendored
2
node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts
generated
vendored
@@ -1,6 +1,6 @@
|
||||
import type { Snowflake } from '../../../globals';
|
||||
import type { ComponentType } from '../channel';
|
||||
import type { APIBaseInteraction, InteractionType } from '../interactions';
|
||||
import type { ComponentType } from '../message';
|
||||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIInteractionDataResolved, APIUserInteractionDataResolved } from './base';
|
||||
export type APIMessageComponentInteraction = APIBaseInteraction<InteractionType.MessageComponent, APIMessageComponentInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageComponentInteractionData>, 'app_permissions' | 'channel_id' | 'channel' | 'data' | 'message'>>;
|
||||
export type APIMessageComponentButtonInteraction = APIBaseInteraction<InteractionType.MessageComponent, APIMessageButtonInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageButtonInteractionData>, 'app_permissions' | 'channel_id' | 'channel' | 'data' | 'message'>>;
|
||||
|
||||
2
node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"messageComponents.d.ts","sourceRoot":"","sources":["messageComponents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,MAAM,QAAQ,CAAC;AAEhB,MAAM,MAAM,8BAA8B,GAAG,kBAAkB,CAC9D,eAAe,CAAC,gBAAgB,EAChC,kCAAkC,CAClC,GACA,QAAQ,CACP,IAAI,CACH,kBAAkB,CAAC,eAAe,CAAC,gBAAgB,EAAE,kCAAkC,CAAC,EACxF,iBAAiB,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CACjE,CACD,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,kBAAkB,CACpE,eAAe,CAAC,gBAAgB,EAChC,+BAA+B,CAC/B,GACA,QAAQ,CACP,IAAI,CACH,kBAAkB,CAAC,eAAe,CAAC,gBAAgB,EAAE,+BAA+B,CAAC,EACrF,iBAAiB,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CACjE,CACD,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,k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C,aAAa,CAAC,aAAa,CAAC;IAC3E,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC,CAAC;CACjE;AAED,MAAM,MAAM,mCAAmC,GAC5C,sCAAsC,GACtC,0CAA0C,GAC1C,mCAAmC,GACnC,qCAAqC,GACrC,mCAAmC,CAAC;AAEvC,MAAM,MAAM,gCAAgC,GAAG,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;AAEvG,MAAM,MAAM,mCAAmC,GAAG,0BAA0B,CAAC,8BAA8B,CAAC,CAAC"}
|
||||
44
node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts
generated
vendored
44
node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts
generated
vendored
@@ -1,17 +1,47 @@
|
||||
import type { APIBaseComponent } from '../channel';
|
||||
import type { APIBaseInteraction, APIDMInteractionWrapper, APIGuildInteractionWrapper, ComponentType, InteractionType } from '../index';
|
||||
export interface ModalSubmitComponent {
|
||||
type: ComponentType;
|
||||
import type { APIBaseInteraction, APIDMInteractionWrapper, APIGuildInteractionWrapper, APIInteractionDataResolved, ComponentType, InteractionType } from '../index';
|
||||
import type { APIBaseComponent } from '../message';
|
||||
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
|
||||
type: T;
|
||||
custom_id: string;
|
||||
}
|
||||
export interface APIModalSubmitTextInputComponent extends APIBaseModalSubmitComponent<ComponentType.TextInput> {
|
||||
value: string;
|
||||
}
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: ModalSubmitComponent[];
|
||||
export interface APIModalSubmitStringSelectComponent extends APIBaseModalSubmitComponent<ComponentType.StringSelect> {
|
||||
values: string[];
|
||||
}
|
||||
export interface APIModalSubmitUserSelectComponent extends APIBaseModalSubmitComponent<ComponentType.UserSelect> {
|
||||
values: string[];
|
||||
}
|
||||
export interface APIModalSubmitRoleSelectComponent extends APIBaseModalSubmitComponent<ComponentType.RoleSelect> {
|
||||
values: string[];
|
||||
}
|
||||
export interface APIModalSubmitMentionableSelectComponent extends APIBaseModalSubmitComponent<ComponentType.MentionableSelect> {
|
||||
values: string[];
|
||||
}
|
||||
export interface APIModalSubmitChannelSelectComponent extends APIBaseModalSubmitComponent<ComponentType.ChannelSelect> {
|
||||
values: string[];
|
||||
}
|
||||
export type ModalSubmitComponent = APIModalSubmitChannelSelectComponent | APIModalSubmitMentionableSelectComponent | APIModalSubmitRoleSelectComponent | APIModalSubmitStringSelectComponent | APIModalSubmitTextInputComponent | APIModalSubmitUserSelectComponent;
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: APIModalSubmitTextInputComponent[];
|
||||
}
|
||||
export interface ModalSubmitTextDisplayComponent extends APIBaseComponent<ComponentType.TextDisplay> {
|
||||
}
|
||||
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
|
||||
component: ModalSubmitComponent;
|
||||
}
|
||||
export type APIModalSubmissionComponent = ModalSubmitActionRowComponent | ModalSubmitLabelComponent | ModalSubmitTextDisplayComponent;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}
|
||||
*/
|
||||
export interface APIModalSubmission {
|
||||
/**
|
||||
* Data for users, members, channels, and roles in the modal's auto-populated select menus
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure}
|
||||
*/
|
||||
resolved?: APIInteractionDataResolved;
|
||||
/**
|
||||
* A developer-defined identifier for the component, max 100 characters
|
||||
*/
|
||||
@@ -19,7 +49,7 @@ export interface APIModalSubmission {
|
||||
/**
|
||||
* A list of child components
|
||||
*/
|
||||
components: ModalSubmitActionRowComponent[];
|
||||
components: APIModalSubmissionComponent[];
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object}
|
||||
|
||||
2
node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"modalSubmit.d.ts","sourceRoot":"","sources":["modalSubmit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EACX,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,aAAa,EACb,eAAe,EACf,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC;IAC/F,UAAU,EAAE,oBAAoB,EAAE,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,6BAA6B,EAAE,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CAAC,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAC1G,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7F;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAAC,yBAAyB,CAAC,CAAC;AAE7F;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,CAAC,yBAAyB,CAAC,CAAC"}
|
||||
{"version":3,"file":"modalSubmit.d.ts","sourceRoot":"","sources":["modalSubmit.ts"],"names":[],"mapp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C,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,+BAAgC,SAAQ,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC;CAAG;AAEvG,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB,CAAC,aAAa,CAAC,KAAK,CAAC;IACvF,SAAS,EAAE,oBAAoB,CAAC;CAChC;AAED,MAAM,MAAM,2BAA2B,GACpC,6BAA6B,GAC7B,yBAAyB,GACzB,+BAA+B,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,0BAA0B,CAAC;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,2BAA2B,EAAE,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CAAC,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAC1G,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7F;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAAC,yBAAyB,CAAC,CAAC;AAE7F;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,CAAC,yBAAyB,CAAC,CAAC"}
|
||||
7
node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts
generated
vendored
7
node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts
generated
vendored
@@ -1,5 +1,5 @@
|
||||
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10';
|
||||
import type { APIActionRowComponent, APIComponentInModalActionRow } from '../channel';
|
||||
import type { APIActionRowComponent, APIComponentInModalActionRow, APILabelComponent, APITextDisplayComponent } from '../message';
|
||||
import type { APIApplicationCommandOptionChoice } from './applicationCommands';
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-type}
|
||||
@@ -101,6 +101,7 @@ export type APIInteractionResponseCallbackData = Omit<RESTPostAPIWebhookWithToke
|
||||
export interface APICommandAutocompleteInteractionResponseCallbackData {
|
||||
choices?: APIApplicationCommandOptionChoice[];
|
||||
}
|
||||
export type APIModalInteractionResponseCallbackComponent = APIActionRowComponent<APIComponentInModalActionRow> | APILabelComponent | APITextDisplayComponent;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-modal}
|
||||
*/
|
||||
@@ -115,7 +116,9 @@ export interface APIModalInteractionResponseCallbackData {
|
||||
title: string;
|
||||
/**
|
||||
* Between 1 and 5 (inclusive) components that make up the modal
|
||||
*
|
||||
* @remarks Using action rows inside modals is deprecated.
|
||||
*/
|
||||
components: APIActionRowComponent<APIComponentInModalActionRow>[];
|
||||
components: APIModalInteractionResponseCallbackComponent[];
|
||||
}
|
||||
//# sourceMappingURL=responses.d.ts.map
|
||||
2
node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAE/E;;GAEG;AACH,oBAAY,eAAe;IAC1B,IAAI,IAAI;IACR,kBAAkB,IAAA;IAClB,gBAAgB,IAAA;IAChB,8BAA8B,IAAA;IAC9B,WAAW,IAAA;CACX;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC/B,yCAAyC,GACzC,8CAA8C,GAC9C,sDAAsD,GACtD,2CAA2C,GAC3C,oCAAoC,GACpC,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MAAM,4CAA4C,GACrD,qBAAqB,CAAC,4BAA4B,CAAC,GACnD,iBAAiB,GACjB,uBAAuB,CAAC;AAE3B;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACvD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,EAAE,4CAA4C,EAAE,CAAC;CAC3D"}
|
||||
2
node_modules/discord-api-types/payloads/v10/_interactions/responses.js.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/_interactions/responses.js.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"responses.js","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACH,IAAY,eAMX;AAND,WAAY,eAAe;IAC1B,qDAAQ,CAAA;IACR,iFAAkB,CAAA;IAClB,6EAAgB,CAAA;IAChB,yGAA8B,CAAA;IAC9B,mEAAW,CAAA;AACZ,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AAyDD;;GAEG;AACH,IAAY,uBA4CX;AA5CD,WAAY,uBAAuB;IAClC;;OAEG;IACH,qEAAQ,CAAA;IACR;;OAEG;IACH,6GAA4B,CAAA;IAC5B;;OAEG;IACH,6HAAgC,CAAA;IAChC;;OAEG;IACH,uGAAqB,CAAA;IACrB;;OAEG;IACH,uFAAa,CAAA;IACb;;OAEG;IACH,qIAAoC,CAAA;IACpC;;OAEG;IACH,uEAAK,CAAA;IACL;;;;;OAKG;IACH,4FAAe,CAAA;IAEf;;;;;OAKG;IACH,0FAAmB,CAAA;AACpB,CAAC,EA5CW,uBAAuB,uCAAvB,uBAAuB,QA4ClC"}
|
||||
{"version":3,"file":"responses.js","sourceRoot":"","sources":["responses.ts"],"names":[],"mappings":";;;AASA;;GAEG;AACH,IAAY,eAMX;AAND,WAAY,eAAe;IAC1B,qDAAQ,CAAA;IACR,iFAAkB,CAAA;IAClB,6EAAgB,CAAA;IAChB,yGAA8B,CAAA;IAC9B,mEAAW,CAAA;AACZ,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AAyDD;;GAEG;AACH,IAAY,uBA4CX;AA5CD,WAAY,uBAAuB;IAClC;;OAEG;IACH,qEAAQ,CAAA;IACR;;OAEG;IACH,6GAA4B,CAAA;IAC5B;;OAEG;IACH,6HAAgC,CAAA;IAChC;;OAEG;IACH,uGAAqB,CAAA;IACrB;;OAEG;IACH,uFAAa,CAAA;IACb;;OAEG;IACH,qIAAoC,CAAA;IACpC;;OAEG;IACH,uEAAK,CAAA;IACL;;;;;OAKG;IACH,4FAAe,CAAA;IAEf;;;;;OAKG;IACH,0FAAmB,CAAA;AACpB,CAAC,EA5CW,uBAAuB,uCAAvB,uBAAuB,QA4ClC"}
|
||||
1580
node_modules/discord-api-types/payloads/v10/channel.d.ts
generated
vendored
1580
node_modules/discord-api-types/payloads/v10/channel.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
2
node_modules/discord-api-types/payloads/v10/channel.d.ts.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/channel.d.ts.map
generated
vendored
File diff suppressed because one or more lines are too long
350
node_modules/discord-api-types/payloads/v10/channel.js
generated
vendored
350
node_modules/discord-api-types/payloads/v10/channel.js
generated
vendored
@@ -3,7 +3,7 @@
|
||||
* Types extracted from https://discord.com/developers/docs/resources/channel
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ChannelFlags = exports.SeparatorSpacingSize = exports.UnfurledMediaItemLoadingState = exports.SelectMenuDefaultValueType = exports.TextInputStyle = exports.ButtonStyle = exports.ComponentType = exports.AllowedMentionsTypes = exports.AttachmentFlags = exports.EmbedType = exports.ThreadMemberFlags = exports.ThreadAutoArchiveDuration = exports.OverwriteType = exports.MessageFlags = exports.MessageReferenceType = exports.MessageActivityType = exports.MessageType = exports.VideoQualityMode = exports.ChannelType = exports.ForumLayoutType = exports.SortOrderType = void 0;
|
||||
exports.ChannelFlags = exports.ThreadMemberFlags = exports.ThreadAutoArchiveDuration = exports.OverwriteType = exports.VideoQualityMode = exports.ChannelType = exports.ForumLayoutType = exports.SortOrderType = void 0;
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel/#channel-object-sort-order-types}
|
||||
*/
|
||||
@@ -142,141 +142,6 @@ var VideoQualityMode;
|
||||
*/
|
||||
VideoQualityMode[VideoQualityMode["Full"] = 2] = "Full";
|
||||
})(VideoQualityMode || (exports.VideoQualityMode = VideoQualityMode = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#message-object-message-types}
|
||||
*/
|
||||
var MessageType;
|
||||
(function (MessageType) {
|
||||
MessageType[MessageType["Default"] = 0] = "Default";
|
||||
MessageType[MessageType["RecipientAdd"] = 1] = "RecipientAdd";
|
||||
MessageType[MessageType["RecipientRemove"] = 2] = "RecipientRemove";
|
||||
MessageType[MessageType["Call"] = 3] = "Call";
|
||||
MessageType[MessageType["ChannelNameChange"] = 4] = "ChannelNameChange";
|
||||
MessageType[MessageType["ChannelIconChange"] = 5] = "ChannelIconChange";
|
||||
MessageType[MessageType["ChannelPinnedMessage"] = 6] = "ChannelPinnedMessage";
|
||||
MessageType[MessageType["UserJoin"] = 7] = "UserJoin";
|
||||
MessageType[MessageType["GuildBoost"] = 8] = "GuildBoost";
|
||||
MessageType[MessageType["GuildBoostTier1"] = 9] = "GuildBoostTier1";
|
||||
MessageType[MessageType["GuildBoostTier2"] = 10] = "GuildBoostTier2";
|
||||
MessageType[MessageType["GuildBoostTier3"] = 11] = "GuildBoostTier3";
|
||||
MessageType[MessageType["ChannelFollowAdd"] = 12] = "ChannelFollowAdd";
|
||||
MessageType[MessageType["GuildDiscoveryDisqualified"] = 14] = "GuildDiscoveryDisqualified";
|
||||
MessageType[MessageType["GuildDiscoveryRequalified"] = 15] = "GuildDiscoveryRequalified";
|
||||
MessageType[MessageType["GuildDiscoveryGracePeriodInitialWarning"] = 16] = "GuildDiscoveryGracePeriodInitialWarning";
|
||||
MessageType[MessageType["GuildDiscoveryGracePeriodFinalWarning"] = 17] = "GuildDiscoveryGracePeriodFinalWarning";
|
||||
MessageType[MessageType["ThreadCreated"] = 18] = "ThreadCreated";
|
||||
MessageType[MessageType["Reply"] = 19] = "Reply";
|
||||
MessageType[MessageType["ChatInputCommand"] = 20] = "ChatInputCommand";
|
||||
MessageType[MessageType["ThreadStarterMessage"] = 21] = "ThreadStarterMessage";
|
||||
MessageType[MessageType["GuildInviteReminder"] = 22] = "GuildInviteReminder";
|
||||
MessageType[MessageType["ContextMenuCommand"] = 23] = "ContextMenuCommand";
|
||||
MessageType[MessageType["AutoModerationAction"] = 24] = "AutoModerationAction";
|
||||
MessageType[MessageType["RoleSubscriptionPurchase"] = 25] = "RoleSubscriptionPurchase";
|
||||
MessageType[MessageType["InteractionPremiumUpsell"] = 26] = "InteractionPremiumUpsell";
|
||||
MessageType[MessageType["StageStart"] = 27] = "StageStart";
|
||||
MessageType[MessageType["StageEnd"] = 28] = "StageEnd";
|
||||
MessageType[MessageType["StageSpeaker"] = 29] = "StageSpeaker";
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/5927#discussion_r1107678548
|
||||
*/
|
||||
MessageType[MessageType["StageRaiseHand"] = 30] = "StageRaiseHand";
|
||||
MessageType[MessageType["StageTopic"] = 31] = "StageTopic";
|
||||
MessageType[MessageType["GuildApplicationPremiumSubscription"] = 32] = "GuildApplicationPremiumSubscription";
|
||||
MessageType[MessageType["GuildIncidentAlertModeEnabled"] = 36] = "GuildIncidentAlertModeEnabled";
|
||||
MessageType[MessageType["GuildIncidentAlertModeDisabled"] = 37] = "GuildIncidentAlertModeDisabled";
|
||||
MessageType[MessageType["GuildIncidentReportRaid"] = 38] = "GuildIncidentReportRaid";
|
||||
MessageType[MessageType["GuildIncidentReportFalseAlarm"] = 39] = "GuildIncidentReportFalseAlarm";
|
||||
MessageType[MessageType["PurchaseNotification"] = 44] = "PurchaseNotification";
|
||||
MessageType[MessageType["PollResult"] = 46] = "PollResult";
|
||||
})(MessageType || (exports.MessageType = MessageType = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#message-object-message-activity-types}
|
||||
*/
|
||||
var MessageActivityType;
|
||||
(function (MessageActivityType) {
|
||||
MessageActivityType[MessageActivityType["Join"] = 1] = "Join";
|
||||
MessageActivityType[MessageActivityType["Spectate"] = 2] = "Spectate";
|
||||
MessageActivityType[MessageActivityType["Listen"] = 3] = "Listen";
|
||||
MessageActivityType[MessageActivityType["JoinRequest"] = 5] = "JoinRequest";
|
||||
})(MessageActivityType || (exports.MessageActivityType = MessageActivityType = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#message-reference-types}
|
||||
*/
|
||||
var MessageReferenceType;
|
||||
(function (MessageReferenceType) {
|
||||
/**
|
||||
* A standard reference used by replies
|
||||
*/
|
||||
MessageReferenceType[MessageReferenceType["Default"] = 0] = "Default";
|
||||
/**
|
||||
* Reference used to point to a message at a point in time
|
||||
*/
|
||||
MessageReferenceType[MessageReferenceType["Forward"] = 1] = "Forward";
|
||||
})(MessageReferenceType || (exports.MessageReferenceType = MessageReferenceType = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#message-object-message-flags}
|
||||
*/
|
||||
var MessageFlags;
|
||||
(function (MessageFlags) {
|
||||
/**
|
||||
* This message has been published to subscribed channels (via Channel Following)
|
||||
*/
|
||||
MessageFlags[MessageFlags["Crossposted"] = 1] = "Crossposted";
|
||||
/**
|
||||
* This message originated from a message in another channel (via Channel Following)
|
||||
*/
|
||||
MessageFlags[MessageFlags["IsCrosspost"] = 2] = "IsCrosspost";
|
||||
/**
|
||||
* Do not include any embeds when serializing this message
|
||||
*/
|
||||
MessageFlags[MessageFlags["SuppressEmbeds"] = 4] = "SuppressEmbeds";
|
||||
/**
|
||||
* The source message for this crosspost has been deleted (via Channel Following)
|
||||
*/
|
||||
MessageFlags[MessageFlags["SourceMessageDeleted"] = 8] = "SourceMessageDeleted";
|
||||
/**
|
||||
* This message came from the urgent message system
|
||||
*/
|
||||
MessageFlags[MessageFlags["Urgent"] = 16] = "Urgent";
|
||||
/**
|
||||
* This message has an associated thread, which shares its id
|
||||
*/
|
||||
MessageFlags[MessageFlags["HasThread"] = 32] = "HasThread";
|
||||
/**
|
||||
* This message is only visible to the user who invoked the Interaction
|
||||
*/
|
||||
MessageFlags[MessageFlags["Ephemeral"] = 64] = "Ephemeral";
|
||||
/**
|
||||
* This message is an Interaction Response and the bot is "thinking"
|
||||
*/
|
||||
MessageFlags[MessageFlags["Loading"] = 128] = "Loading";
|
||||
/**
|
||||
* This message failed to mention some roles and add their members to the thread
|
||||
*/
|
||||
MessageFlags[MessageFlags["FailedToMentionSomeRolesInThread"] = 256] = "FailedToMentionSomeRolesInThread";
|
||||
/**
|
||||
* @unstable This message flag is currently not documented by Discord but has a known value which we will try to keep up to date.
|
||||
*/
|
||||
MessageFlags[MessageFlags["ShouldShowLinkNotDiscordWarning"] = 1024] = "ShouldShowLinkNotDiscordWarning";
|
||||
/**
|
||||
* This message will not trigger push and desktop notifications
|
||||
*/
|
||||
MessageFlags[MessageFlags["SuppressNotifications"] = 4096] = "SuppressNotifications";
|
||||
/**
|
||||
* This message is a voice message
|
||||
*/
|
||||
MessageFlags[MessageFlags["IsVoiceMessage"] = 8192] = "IsVoiceMessage";
|
||||
/**
|
||||
* This message has a snapshot (via Message Forwarding)
|
||||
*/
|
||||
MessageFlags[MessageFlags["HasSnapshot"] = 16384] = "HasSnapshot";
|
||||
/**
|
||||
* Allows you to create fully component-driven messages
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/components/overview}
|
||||
*/
|
||||
MessageFlags[MessageFlags["IsComponentsV2"] = 32768] = "IsComponentsV2";
|
||||
})(MessageFlags || (exports.MessageFlags = MessageFlags = {}));
|
||||
var OverwriteType;
|
||||
(function (OverwriteType) {
|
||||
OverwriteType[OverwriteType["Role"] = 0] = "Role";
|
||||
@@ -308,219 +173,6 @@ var ThreadMemberFlags;
|
||||
*/
|
||||
ThreadMemberFlags[ThreadMemberFlags["NoMessages"] = 8] = "NoMessages";
|
||||
})(ThreadMemberFlags || (exports.ThreadMemberFlags = ThreadMemberFlags = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#embed-object-embed-types}
|
||||
*/
|
||||
var EmbedType;
|
||||
(function (EmbedType) {
|
||||
/**
|
||||
* Generic embed rendered from embed attributes
|
||||
*/
|
||||
EmbedType["Rich"] = "rich";
|
||||
/**
|
||||
* Image embed
|
||||
*/
|
||||
EmbedType["Image"] = "image";
|
||||
/**
|
||||
* Video embed
|
||||
*/
|
||||
EmbedType["Video"] = "video";
|
||||
/**
|
||||
* Animated gif image embed rendered as a video embed
|
||||
*/
|
||||
EmbedType["GIFV"] = "gifv";
|
||||
/**
|
||||
* Article embed
|
||||
*/
|
||||
EmbedType["Article"] = "article";
|
||||
/**
|
||||
* Link embed
|
||||
*/
|
||||
EmbedType["Link"] = "link";
|
||||
/**
|
||||
* Auto moderation alert embed
|
||||
*
|
||||
* @unstable This embed type is currently not documented by Discord, but it is returned in the auto moderation system messages.
|
||||
*/
|
||||
EmbedType["AutoModerationMessage"] = "auto_moderation_message";
|
||||
/**
|
||||
* Poll result embed
|
||||
*/
|
||||
EmbedType["PollResult"] = "poll_result";
|
||||
})(EmbedType || (exports.EmbedType = EmbedType = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure-attachment-flags}
|
||||
*/
|
||||
var AttachmentFlags;
|
||||
(function (AttachmentFlags) {
|
||||
/**
|
||||
* This attachment has been edited using the remix feature on mobile
|
||||
*/
|
||||
AttachmentFlags[AttachmentFlags["IsRemix"] = 4] = "IsRemix";
|
||||
})(AttachmentFlags || (exports.AttachmentFlags = AttachmentFlags = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mention-types}
|
||||
*/
|
||||
var AllowedMentionsTypes;
|
||||
(function (AllowedMentionsTypes) {
|
||||
/**
|
||||
* Controls `@everyone` and `@here` mentions
|
||||
*/
|
||||
AllowedMentionsTypes["Everyone"] = "everyone";
|
||||
/**
|
||||
* Controls role mentions
|
||||
*/
|
||||
AllowedMentionsTypes["Role"] = "roles";
|
||||
/**
|
||||
* Controls user mentions
|
||||
*/
|
||||
AllowedMentionsTypes["User"] = "users";
|
||||
})(AllowedMentionsTypes || (exports.AllowedMentionsTypes = AllowedMentionsTypes = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/components/reference#component-object-component-types}
|
||||
*/
|
||||
var ComponentType;
|
||||
(function (ComponentType) {
|
||||
/**
|
||||
* Container to display a row of interactive components
|
||||
*/
|
||||
ComponentType[ComponentType["ActionRow"] = 1] = "ActionRow";
|
||||
/**
|
||||
* Button component
|
||||
*/
|
||||
ComponentType[ComponentType["Button"] = 2] = "Button";
|
||||
/**
|
||||
* Select menu for picking from defined text options
|
||||
*/
|
||||
ComponentType[ComponentType["StringSelect"] = 3] = "StringSelect";
|
||||
/**
|
||||
* Text Input component
|
||||
*/
|
||||
ComponentType[ComponentType["TextInput"] = 4] = "TextInput";
|
||||
/**
|
||||
* Select menu for users
|
||||
*/
|
||||
ComponentType[ComponentType["UserSelect"] = 5] = "UserSelect";
|
||||
/**
|
||||
* Select menu for roles
|
||||
*/
|
||||
ComponentType[ComponentType["RoleSelect"] = 6] = "RoleSelect";
|
||||
/**
|
||||
* Select menu for users and roles
|
||||
*/
|
||||
ComponentType[ComponentType["MentionableSelect"] = 7] = "MentionableSelect";
|
||||
/**
|
||||
* Select menu for channels
|
||||
*/
|
||||
ComponentType[ComponentType["ChannelSelect"] = 8] = "ChannelSelect";
|
||||
/**
|
||||
* Container to display text alongside an accessory component
|
||||
*/
|
||||
ComponentType[ComponentType["Section"] = 9] = "Section";
|
||||
/**
|
||||
* Markdown text
|
||||
*/
|
||||
ComponentType[ComponentType["TextDisplay"] = 10] = "TextDisplay";
|
||||
/**
|
||||
* Small image that can be used as an accessory
|
||||
*/
|
||||
ComponentType[ComponentType["Thumbnail"] = 11] = "Thumbnail";
|
||||
/**
|
||||
* Display images and other media
|
||||
*/
|
||||
ComponentType[ComponentType["MediaGallery"] = 12] = "MediaGallery";
|
||||
/**
|
||||
* Displays an attached file
|
||||
*/
|
||||
ComponentType[ComponentType["File"] = 13] = "File";
|
||||
/**
|
||||
* Component to add vertical padding between other components
|
||||
*/
|
||||
ComponentType[ComponentType["Separator"] = 14] = "Separator";
|
||||
/**
|
||||
* @unstable This component type is currently not documented by Discord but has a known value which we will try to keep up to date.
|
||||
*/
|
||||
ComponentType[ComponentType["ContentInventoryEntry"] = 16] = "ContentInventoryEntry";
|
||||
/**
|
||||
* Container that visually groups a set of components
|
||||
*/
|
||||
ComponentType[ComponentType["Container"] = 17] = "Container";
|
||||
// EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS //
|
||||
/**
|
||||
* Select menu for picking from defined text options
|
||||
*
|
||||
* @deprecated This is the old name for {@link ComponentType.StringSelect}
|
||||
*/
|
||||
ComponentType[ComponentType["SelectMenu"] = 3] = "SelectMenu";
|
||||
})(ComponentType || (exports.ComponentType = ComponentType = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/components/reference#button-button-styles}
|
||||
*/
|
||||
var ButtonStyle;
|
||||
(function (ButtonStyle) {
|
||||
/**
|
||||
* The most important or recommended action in a group of options
|
||||
*/
|
||||
ButtonStyle[ButtonStyle["Primary"] = 1] = "Primary";
|
||||
/**
|
||||
* Alternative or supporting actions
|
||||
*/
|
||||
ButtonStyle[ButtonStyle["Secondary"] = 2] = "Secondary";
|
||||
/**
|
||||
* Positive confirmation or completion actions
|
||||
*/
|
||||
ButtonStyle[ButtonStyle["Success"] = 3] = "Success";
|
||||
/**
|
||||
* An action with irreversible consequences
|
||||
*/
|
||||
ButtonStyle[ButtonStyle["Danger"] = 4] = "Danger";
|
||||
/**
|
||||
* Navigates to a URL
|
||||
*/
|
||||
ButtonStyle[ButtonStyle["Link"] = 5] = "Link";
|
||||
/**
|
||||
* Purchase
|
||||
*/
|
||||
ButtonStyle[ButtonStyle["Premium"] = 6] = "Premium";
|
||||
})(ButtonStyle || (exports.ButtonStyle = ButtonStyle = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/components/reference#text-input-text-input-styles}
|
||||
*/
|
||||
var TextInputStyle;
|
||||
(function (TextInputStyle) {
|
||||
/**
|
||||
* Single-line input
|
||||
*/
|
||||
TextInputStyle[TextInputStyle["Short"] = 1] = "Short";
|
||||
/**
|
||||
* Multi-line input
|
||||
*/
|
||||
TextInputStyle[TextInputStyle["Paragraph"] = 2] = "Paragraph";
|
||||
})(TextInputStyle || (exports.TextInputStyle = TextInputStyle = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/components/reference#user-select-select-default-value-structure}
|
||||
*/
|
||||
var SelectMenuDefaultValueType;
|
||||
(function (SelectMenuDefaultValueType) {
|
||||
SelectMenuDefaultValueType["Channel"] = "channel";
|
||||
SelectMenuDefaultValueType["Role"] = "role";
|
||||
SelectMenuDefaultValueType["User"] = "user";
|
||||
})(SelectMenuDefaultValueType || (exports.SelectMenuDefaultValueType = SelectMenuDefaultValueType = {}));
|
||||
var UnfurledMediaItemLoadingState;
|
||||
(function (UnfurledMediaItemLoadingState) {
|
||||
UnfurledMediaItemLoadingState[UnfurledMediaItemLoadingState["Unknown"] = 0] = "Unknown";
|
||||
UnfurledMediaItemLoadingState[UnfurledMediaItemLoadingState["Loading"] = 1] = "Loading";
|
||||
UnfurledMediaItemLoadingState[UnfurledMediaItemLoadingState["LoadedSuccess"] = 2] = "LoadedSuccess";
|
||||
UnfurledMediaItemLoadingState[UnfurledMediaItemLoadingState["LoadedNotFound"] = 3] = "LoadedNotFound";
|
||||
})(UnfurledMediaItemLoadingState || (exports.UnfurledMediaItemLoadingState = UnfurledMediaItemLoadingState = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/components/reference#separator}
|
||||
*/
|
||||
var SeparatorSpacingSize;
|
||||
(function (SeparatorSpacingSize) {
|
||||
SeparatorSpacingSize[SeparatorSpacingSize["Small"] = 1] = "Small";
|
||||
SeparatorSpacingSize[SeparatorSpacingSize["Large"] = 2] = "Large";
|
||||
})(SeparatorSpacingSize || (exports.SeparatorSpacingSize = SeparatorSpacingSize = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#channel-object-channel-flags}
|
||||
*/
|
||||
|
||||
2
node_modules/discord-api-types/payloads/v10/channel.js.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/channel.js.map
generated
vendored
File diff suppressed because one or more lines are too long
8
node_modules/discord-api-types/payloads/v10/guild.d.ts
generated
vendored
8
node_modules/discord-api-types/payloads/v10/guild.d.ts
generated
vendored
@@ -556,7 +556,11 @@ export declare enum GuildFeature {
|
||||
/**
|
||||
* Guild is able to set gradient colors to roles
|
||||
*/
|
||||
EnhancedRoleColors = "ENHANCED_ROLE_COLORS"
|
||||
EnhancedRoleColors = "ENHANCED_ROLE_COLORS",
|
||||
/**
|
||||
* Guild has access to guest invites
|
||||
*/
|
||||
GuestsEnabled = "GUESTS_ENABLED"
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-preview-object}
|
||||
@@ -685,7 +689,7 @@ export interface APIGuildMemberJoined {
|
||||
/**
|
||||
* When the user joined the guild
|
||||
*/
|
||||
joined_at: string;
|
||||
joined_at: string | null;
|
||||
}
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
|
||||
2
node_modules/discord-api-types/payloads/v10/guild.d.ts.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/guild.d.ts.map
generated
vendored
File diff suppressed because one or more lines are too long
4
node_modules/discord-api-types/payloads/v10/guild.js
generated
vendored
4
node_modules/discord-api-types/payloads/v10/guild.js
generated
vendored
@@ -271,6 +271,10 @@ var GuildFeature;
|
||||
* Guild is able to set gradient colors to roles
|
||||
*/
|
||||
GuildFeature["EnhancedRoleColors"] = "ENHANCED_ROLE_COLORS";
|
||||
/**
|
||||
* Guild has access to guest invites
|
||||
*/
|
||||
GuildFeature["GuestsEnabled"] = "GUESTS_ENABLED";
|
||||
})(GuildFeature || (exports.GuildFeature = GuildFeature = {}));
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags}
|
||||
|
||||
2
node_modules/discord-api-types/payloads/v10/guild.js.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/guild.js.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"guild.js","sourceRoot":"","sources":["guild.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAmTH;;GAEG;AACH,IAAY,gCAGX;AAHD,WAAY,gCAAgC;IAC3C,qGAAW,CAAA;IACX,uGAAY,CAAA;AACb,CAAC,EAHW,gCAAgC,gDAAhC,gCAAgC,QAG3C;AAED;;GAEG;AACH,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACrC,mFAAQ,CAAA;IACR,yGAAmB,CAAA;IACnB,uFAAU,CAAA;AACX,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC;AAED;;GAEG;AACH,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,iDAAI,CAAA;IACJ,yDAAQ,CAAA;AACT,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,yDAAO,CAAA;IACP,2DAAQ,CAAA;IACR,mDAAI,CAAA;IACJ,qEAAa,CAAA;AACd,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAED;;GAEG;AACH,IAAY,sBAqBX;AArBD,WAAY,sBAAsB;IACjC;;OAEG;IACH,mEAAI,CAAA;IACJ;;OAEG;IACH,iEAAG,CAAA;IACH;;OAEG;IACH,uEAAM,CAAA;IACN;;O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AED;;GAEG;AACH,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,6FAAc,CAAA;IACd,iFAAQ,CAAA;AACT,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC"}
|
||||
1
node_modules/discord-api-types/payloads/v10/index.d.ts
generated
vendored
1
node_modules/discord-api-types/payloads/v10/index.d.ts
generated
vendored
@@ -9,6 +9,7 @@ export * from './guild';
|
||||
export * from './guildScheduledEvent';
|
||||
export * from './interactions';
|
||||
export * from './invite';
|
||||
export * from './message';
|
||||
export * from './monetization';
|
||||
export * from './oauth2';
|
||||
export * from './permissions';
|
||||
|
||||
2
node_modules/discord-api-types/payloads/v10/index.d.ts.map
generated
vendored
2
node_modules/discord-api-types/payloads/v10/index.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,mBAAmB,SAAS,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,mBAAmB,cAAc,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,mBAAmB,YAAY,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,SAAS,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,mBAAmB,SAAS,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,mBAAmB,cAAc,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,mBAAmB,YAAY,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,SAAS,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user