fix: type RESTAPIAttachment

This commit is contained in:
MARCROCK22 2025-01-11 13:55:54 -04:00
parent 767d2a4302
commit e2d5813496
7 changed files with 141 additions and 140 deletions

View File

@ -1,3 +1,4 @@
{ {
"typescript.tsdk": "node_modules/typescript/lib" "typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "biomejs.biome"
} }

View File

@ -25,10 +25,10 @@
"@changesets/cli": "^2.27.11", "@changesets/cli": "^2.27.11",
"@commitlint/cli": "^19.6.1", "@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0", "@commitlint/config-conventional": "^19.6.0",
"@types/node": "^22.10.2", "@types/node": "^22.10.5",
"husky": "^9.1.7", "husky": "^9.1.7",
"lint-staged": "^15.3.0", "lint-staged": "^15.3.0",
"typescript": "^5.7.2", "typescript": "^5.7.3",
"vitest": "^2.1.8" "vitest": "^2.1.8"
}, },
"homepage": "https://seyfert.dev", "homepage": "https://seyfert.dev",

258
pnpm-lock.yaml generated
View File

@ -16,13 +16,13 @@ importers:
version: 2.27.11 version: 2.27.11
'@commitlint/cli': '@commitlint/cli':
specifier: ^19.6.1 specifier: ^19.6.1
version: 19.6.1(@types/node@22.10.2)(typescript@5.7.2) version: 19.6.1(@types/node@22.10.5)(typescript@5.7.3)
'@commitlint/config-conventional': '@commitlint/config-conventional':
specifier: ^19.6.0 specifier: ^19.6.0
version: 19.6.0 version: 19.6.0
'@types/node': '@types/node':
specifier: ^22.10.2 specifier: ^22.10.5
version: 22.10.2 version: 22.10.5
husky: husky:
specifier: ^9.1.7 specifier: ^9.1.7
version: 9.1.7 version: 9.1.7
@ -30,11 +30,11 @@ importers:
specifier: ^15.3.0 specifier: ^15.3.0
version: 15.3.0 version: 15.3.0
typescript: typescript:
specifier: ^5.7.2 specifier: ^5.7.3
version: 5.7.2 version: 5.7.3
vitest: vitest:
specifier: ^2.1.8 specifier: ^2.1.8
version: 2.1.8(@types/node@22.10.2) version: 2.1.8(@types/node@22.10.5)
packages: packages:
@ -386,98 +386,98 @@ packages:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
'@rollup/rollup-android-arm-eabi@4.29.1': '@rollup/rollup-android-arm-eabi@4.30.1':
resolution: {integrity: sha512-ssKhA8RNltTZLpG6/QNkCSge+7mBQGUqJRisZ2MDQcEGaK93QESEgWK2iOpIDZ7k9zPVkG5AS3ksvD5ZWxmItw==} resolution: {integrity: sha512-pSWY+EVt3rJ9fQ3IqlrEUtXh3cGqGtPDH1FQlNZehO2yYxCHEX1SPsz1M//NXwYfbTlcKr9WObLnJX9FsS9K1Q==}
cpu: [arm] cpu: [arm]
os: [android] os: [android]
'@rollup/rollup-android-arm64@4.29.1': '@rollup/rollup-android-arm64@4.30.1':
resolution: {integrity: sha512-CaRfrV0cd+NIIcVVN/jx+hVLN+VRqnuzLRmfmlzpOzB87ajixsN/+9L5xNmkaUUvEbI5BmIKS+XTwXsHEb65Ew==} resolution: {integrity: sha512-/NA2qXxE3D/BRjOJM8wQblmArQq1YoBVJjrjoTSBS09jgUisq7bqxNHJ8kjCHeV21W/9WDGwJEWSN0KQ2mtD/w==}
cpu: [arm64] cpu: [arm64]
os: [android] os: [android]
'@rollup/rollup-darwin-arm64@4.29.1': '@rollup/rollup-darwin-arm64@4.30.1':
resolution: {integrity: sha512-2ORr7T31Y0Mnk6qNuwtyNmy14MunTAMx06VAPI6/Ju52W10zk1i7i5U3vlDRWjhOI5quBcrvhkCHyF76bI7kEw==} resolution: {integrity: sha512-r7FQIXD7gB0WJ5mokTUgUWPl0eYIH0wnxqeSAhuIwvnnpjdVB8cRRClyKLQr7lgzjctkbp5KmswWszlwYln03Q==}
cpu: [arm64] cpu: [arm64]
os: [darwin] os: [darwin]
'@rollup/rollup-darwin-x64@4.29.1': '@rollup/rollup-darwin-x64@4.30.1':
resolution: {integrity: sha512-j/Ej1oanzPjmN0tirRd5K2/nncAhS9W6ICzgxV+9Y5ZsP0hiGhHJXZ2JQ53iSSjj8m6cRY6oB1GMzNn2EUt6Ng==} resolution: {integrity: sha512-x78BavIwSH6sqfP2xeI1hd1GpHL8J4W2BXcVM/5KYKoAD3nNsfitQhvWSw+TFtQTLZ9OmlF+FEInEHyubut2OA==}
cpu: [x64] cpu: [x64]
os: [darwin] os: [darwin]
'@rollup/rollup-freebsd-arm64@4.29.1': '@rollup/rollup-freebsd-arm64@4.30.1':
resolution: {integrity: sha512-91C//G6Dm/cv724tpt7nTyP+JdN12iqeXGFM1SqnljCmi5yTXriH7B1r8AD9dAZByHpKAumqP1Qy2vVNIdLZqw==} resolution: {integrity: sha512-HYTlUAjbO1z8ywxsDFWADfTRfTIIy/oUlfIDmlHYmjUP2QRDTzBuWXc9O4CXM+bo9qfiCclmHk1x4ogBjOUpUQ==}
cpu: [arm64] cpu: [arm64]
os: [freebsd] os: [freebsd]
'@rollup/rollup-freebsd-x64@4.29.1': '@rollup/rollup-freebsd-x64@4.30.1':
resolution: {integrity: sha512-hEioiEQ9Dec2nIRoeHUP6hr1PSkXzQaCUyqBDQ9I9ik4gCXQZjJMIVzoNLBRGet+hIUb3CISMh9KXuCcWVW/8w==} resolution: {integrity: sha512-1MEdGqogQLccphhX5myCJqeGNYTNcmTyaic9S7CG3JhwuIByJ7J05vGbZxsizQthP1xpVx7kd3o31eOogfEirw==}
cpu: [x64] cpu: [x64]
os: [freebsd] os: [freebsd]
'@rollup/rollup-linux-arm-gnueabihf@4.29.1': '@rollup/rollup-linux-arm-gnueabihf@4.30.1':
resolution: {integrity: sha512-Py5vFd5HWYN9zxBv3WMrLAXY3yYJ6Q/aVERoeUFwiDGiMOWsMs7FokXihSOaT/PMWUty/Pj60XDQndK3eAfE6A==} resolution: {integrity: sha512-PaMRNBSqCx7K3Wc9QZkFx5+CX27WFpAMxJNiYGAXfmMIKC7jstlr32UhTgK6T07OtqR+wYlWm9IxzennjnvdJg==}
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
'@rollup/rollup-linux-arm-musleabihf@4.29.1': '@rollup/rollup-linux-arm-musleabihf@4.30.1':
resolution: {integrity: sha512-RiWpGgbayf7LUcuSNIbahr0ys2YnEERD4gYdISA06wa0i8RALrnzflh9Wxii7zQJEB2/Eh74dX4y/sHKLWp5uQ==} resolution: {integrity: sha512-B8Rcyj9AV7ZlEFqvB5BubG5iO6ANDsRKlhIxySXcF1axXYUyqwBok+XZPgIYGBgs7LDXfWfifxhw0Ik57T0Yug==}
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
'@rollup/rollup-linux-arm64-gnu@4.29.1': '@rollup/rollup-linux-arm64-gnu@4.30.1':
resolution: {integrity: sha512-Z80O+taYxTQITWMjm/YqNoe9d10OX6kDh8X5/rFCMuPqsKsSyDilvfg+vd3iXIqtfmp+cnfL1UrYirkaF8SBZA==} resolution: {integrity: sha512-hqVyueGxAj3cBKrAI4aFHLV+h0Lv5VgWZs9CUGqr1z0fZtlADVV1YPOij6AhcK5An33EXaxnDLmJdQikcn5NEw==}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
'@rollup/rollup-linux-arm64-musl@4.29.1': '@rollup/rollup-linux-arm64-musl@4.30.1':
resolution: {integrity: sha512-fOHRtF9gahwJk3QVp01a/GqS4hBEZCV1oKglVVq13kcK3NeVlS4BwIFzOHDbmKzt3i0OuHG4zfRP0YoG5OF/rA==} resolution: {integrity: sha512-i4Ab2vnvS1AE1PyOIGp2kXni69gU2DAUVt6FSXeIqUCPIR3ZlheMW3oP2JkukDfu3PsexYRbOiJrY+yVNSk9oA==}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
'@rollup/rollup-linux-loongarch64-gnu@4.29.1': '@rollup/rollup-linux-loongarch64-gnu@4.30.1':
resolution: {integrity: sha512-5a7q3tnlbcg0OodyxcAdrrCxFi0DgXJSoOuidFUzHZ2GixZXQs6Tc3CHmlvqKAmOs5eRde+JJxeIf9DonkmYkw==} resolution: {integrity: sha512-fARcF5g296snX0oLGkVxPmysetwUk2zmHcca+e9ObOovBR++9ZPOhqFUM61UUZ2EYpXVPN1redgqVoBB34nTpQ==}
cpu: [loong64] cpu: [loong64]
os: [linux] os: [linux]
'@rollup/rollup-linux-powerpc64le-gnu@4.29.1': '@rollup/rollup-linux-powerpc64le-gnu@4.30.1':
resolution: {integrity: sha512-9b4Mg5Yfz6mRnlSPIdROcfw1BU22FQxmfjlp/CShWwO3LilKQuMISMTtAu/bxmmrE6A902W2cZJuzx8+gJ8e9w==} resolution: {integrity: sha512-GLrZraoO3wVT4uFXh67ElpwQY0DIygxdv0BNW9Hkm3X34wu+BkqrDrkcsIapAY+N2ATEbvak0XQ9gxZtCIA5Rw==}
cpu: [ppc64] cpu: [ppc64]
os: [linux] os: [linux]
'@rollup/rollup-linux-riscv64-gnu@4.29.1': '@rollup/rollup-linux-riscv64-gnu@4.30.1':
resolution: {integrity: sha512-G5pn0NChlbRM8OJWpJFMX4/i8OEU538uiSv0P6roZcbpe/WfhEO+AT8SHVKfp8qhDQzaz7Q+1/ixMy7hBRidnQ==} resolution: {integrity: sha512-0WKLaAUUHKBtll0wvOmh6yh3S0wSU9+yas923JIChfxOaaBarmb/lBKPF0w/+jTVozFnOXJeRGZ8NvOxvk/jcw==}
cpu: [riscv64] cpu: [riscv64]
os: [linux] os: [linux]
'@rollup/rollup-linux-s390x-gnu@4.29.1': '@rollup/rollup-linux-s390x-gnu@4.30.1':
resolution: {integrity: sha512-WM9lIkNdkhVwiArmLxFXpWndFGuOka4oJOZh8EP3Vb8q5lzdSCBuhjavJsw68Q9AKDGeOOIHYzYm4ZFvmWez5g==} resolution: {integrity: sha512-GWFs97Ruxo5Bt+cvVTQkOJ6TIx0xJDD/bMAOXWJg8TCSTEK8RnFeOeiFTxKniTc4vMIaWvCplMAFBt9miGxgkA==}
cpu: [s390x] cpu: [s390x]
os: [linux] os: [linux]
'@rollup/rollup-linux-x64-gnu@4.29.1': '@rollup/rollup-linux-x64-gnu@4.30.1':
resolution: {integrity: sha512-87xYCwb0cPGZFoGiErT1eDcssByaLX4fc0z2nRM6eMtV9njAfEE6OW3UniAoDhX4Iq5xQVpE6qO9aJbCFumKYQ==} resolution: {integrity: sha512-UtgGb7QGgXDIO+tqqJ5oZRGHsDLO8SlpE4MhqpY9Llpzi5rJMvrK6ZGhsRCST2abZdBqIBeXW6WPD5fGK5SDwg==}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
'@rollup/rollup-linux-x64-musl@4.29.1': '@rollup/rollup-linux-x64-musl@4.30.1':
resolution: {integrity: sha512-xufkSNppNOdVRCEC4WKvlR1FBDyqCSCpQeMMgv9ZyXqqtKBfkw1yfGMTUTs9Qsl6WQbJnsGboWCp7pJGkeMhKA==} resolution: {integrity: sha512-V9U8Ey2UqmQsBT+xTOeMzPzwDzyXmnAoO4edZhL7INkwQcaW1Ckv3WJX3qrrp/VHaDkEWIBWhRwP47r8cdrOow==}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
'@rollup/rollup-win32-arm64-msvc@4.29.1': '@rollup/rollup-win32-arm64-msvc@4.30.1':
resolution: {integrity: sha512-F2OiJ42m77lSkizZQLuC+jiZ2cgueWQL5YC9tjo3AgaEw+KJmVxHGSyQfDUoYR9cci0lAywv2Clmckzulcq6ig==} resolution: {integrity: sha512-WabtHWiPaFF47W3PkHnjbmWawnX/aE57K47ZDT1BXTS5GgrBUEpvOzq0FI0V/UYzQJgdb8XlhVNH8/fwV8xDjw==}
cpu: [arm64] cpu: [arm64]
os: [win32] os: [win32]
'@rollup/rollup-win32-ia32-msvc@4.29.1': '@rollup/rollup-win32-ia32-msvc@4.30.1':
resolution: {integrity: sha512-rYRe5S0FcjlOBZQHgbTKNrqxCBUmgDJem/VQTCcTnA2KCabYSWQDrytOzX7avb79cAAweNmMUb/Zw18RNd4mng==} resolution: {integrity: sha512-pxHAU+Zv39hLUTdQQHUVHf4P+0C47y/ZloorHpzs2SXMRqeAWmGghzAhfOlzFHHwjvgokdFAhC4V+6kC1lRRfw==}
cpu: [ia32] cpu: [ia32]
os: [win32] os: [win32]
'@rollup/rollup-win32-x64-msvc@4.29.1': '@rollup/rollup-win32-x64-msvc@4.30.1':
resolution: {integrity: sha512-+10CMg9vt1MoHj6x1pxyjPSMjHTIlqs8/tBztXvPAx24SKs9jwVnKqHJumlH/IzhaPUaj3T6T6wfZr8okdXaIg==} resolution: {integrity: sha512-D6qjsXGcvhTjv0kI4fU8tUuBDF/Ueee4SVX79VfNDXZa64TfCW1Slkb6Z7O1p7vflqZjcmOVdZlqf8gvJxc6og==}
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
@ -490,8 +490,8 @@ packages:
'@types/node@12.20.55': '@types/node@12.20.55':
resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
'@types/node@22.10.2': '@types/node@22.10.5':
resolution: {integrity: sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==} resolution: {integrity: sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==}
'@vitest/expect@2.1.8': '@vitest/expect@2.1.8':
resolution: {integrity: sha512-8ytZ/fFHq2g4PJVAtDX57mayemKgDR6X3Oa2Foro+EygiOJHUXhCqBAAKQYYajZpFoIfvBCF1j6R6IYRSIUFuw==} resolution: {integrity: sha512-8ytZ/fFHq2g4PJVAtDX57mayemKgDR6X3Oa2Foro+EygiOJHUXhCqBAAKQYYajZpFoIfvBCF1j6R6IYRSIUFuw==}
@ -759,12 +759,12 @@ packages:
fast-deep-equal@3.1.3: fast-deep-equal@3.1.3:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
fast-glob@3.3.2: fast-glob@3.3.3:
resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
engines: {node: '>=8.6.0'} engines: {node: '>=8.6.0'}
fast-uri@3.0.3: fast-uri@3.0.5:
resolution: {integrity: sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==} resolution: {integrity: sha512-5JnBCWpFlMo0a3ciDy/JckMzzv1U9coZrIhedq+HXxxUfDTAiS0LA8OKVao4G9BxmCVck/jtA5r3KAtRWEyD8Q==}
fastq@1.18.0: fastq@1.18.0:
resolution: {integrity: sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==} resolution: {integrity: sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==}
@ -1181,8 +1181,8 @@ packages:
rfdc@1.4.1: rfdc@1.4.1:
resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==}
rollup@4.29.1: rollup@4.30.1:
resolution: {integrity: sha512-RaJ45M/kmJUzSWDs1Nnd5DdV4eerC98idtUOVr6FfKcgxqvjwHmxc5upLF9qZU9EpsVzzhleFahrT3shLuJzIw==} resolution: {integrity: sha512-mlJ4glW020fPuLi7DkM/lN97mYEZGWeqBnrljzN0gs7GLctqX3lNWxKQ7Gl712UAX+6fog/L3jh4gb7R6aVi3w==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'} engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true hasBin: true
@ -1286,8 +1286,8 @@ packages:
tinybench@2.9.0: tinybench@2.9.0:
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
tinyexec@0.3.1: tinyexec@0.3.2:
resolution: {integrity: sha512-WiCJLEECkO18gwqIp6+hJg0//p23HXp4S+gGtAKu3mI2F2/sXC4FvHvXvB0zJVVaTPhx1/tOwdbRsa1sOBIKqQ==} resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}
tinypool@1.0.2: tinypool@1.0.2:
resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==} resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==}
@ -1309,8 +1309,8 @@ packages:
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'} engines: {node: '>=8.0'}
typescript@5.7.2: typescript@5.7.3:
resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==} resolution: {integrity: sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==}
engines: {node: '>=14.17'} engines: {node: '>=14.17'}
hasBin: true hasBin: true
@ -1616,14 +1616,14 @@ snapshots:
human-id: 1.0.2 human-id: 1.0.2
prettier: 2.8.8 prettier: 2.8.8
'@commitlint/cli@19.6.1(@types/node@22.10.2)(typescript@5.7.2)': '@commitlint/cli@19.6.1(@types/node@22.10.5)(typescript@5.7.3)':
dependencies: dependencies:
'@commitlint/format': 19.5.0 '@commitlint/format': 19.5.0
'@commitlint/lint': 19.6.0 '@commitlint/lint': 19.6.0
'@commitlint/load': 19.6.1(@types/node@22.10.2)(typescript@5.7.2) '@commitlint/load': 19.6.1(@types/node@22.10.5)(typescript@5.7.3)
'@commitlint/read': 19.5.0 '@commitlint/read': 19.5.0
'@commitlint/types': 19.5.0 '@commitlint/types': 19.5.0
tinyexec: 0.3.1 tinyexec: 0.3.2
yargs: 17.7.2 yargs: 17.7.2
transitivePeerDependencies: transitivePeerDependencies:
- '@types/node' - '@types/node'
@ -1667,15 +1667,15 @@ snapshots:
'@commitlint/rules': 19.6.0 '@commitlint/rules': 19.6.0
'@commitlint/types': 19.5.0 '@commitlint/types': 19.5.0
'@commitlint/load@19.6.1(@types/node@22.10.2)(typescript@5.7.2)': '@commitlint/load@19.6.1(@types/node@22.10.5)(typescript@5.7.3)':
dependencies: dependencies:
'@commitlint/config-validator': 19.5.0 '@commitlint/config-validator': 19.5.0
'@commitlint/execute-rule': 19.5.0 '@commitlint/execute-rule': 19.5.0
'@commitlint/resolve-extends': 19.5.0 '@commitlint/resolve-extends': 19.5.0
'@commitlint/types': 19.5.0 '@commitlint/types': 19.5.0
chalk: 5.4.1 chalk: 5.4.1
cosmiconfig: 9.0.0(typescript@5.7.2) cosmiconfig: 9.0.0(typescript@5.7.3)
cosmiconfig-typescript-loader: 6.1.0(@types/node@22.10.2)(cosmiconfig@9.0.0(typescript@5.7.2))(typescript@5.7.2) cosmiconfig-typescript-loader: 6.1.0(@types/node@22.10.5)(cosmiconfig@9.0.0(typescript@5.7.3))(typescript@5.7.3)
lodash.isplainobject: 4.0.6 lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2 lodash.merge: 4.6.2
lodash.uniq: 4.5.0 lodash.uniq: 4.5.0
@ -1697,7 +1697,7 @@ snapshots:
'@commitlint/types': 19.5.0 '@commitlint/types': 19.5.0
git-raw-commits: 4.0.0 git-raw-commits: 4.0.0
minimist: 1.2.8 minimist: 1.2.8
tinyexec: 0.3.1 tinyexec: 0.3.2
'@commitlint/resolve-extends@19.5.0': '@commitlint/resolve-extends@19.5.0':
dependencies: dependencies:
@ -1825,72 +1825,72 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5 '@nodelib/fs.scandir': 2.1.5
fastq: 1.18.0 fastq: 1.18.0
'@rollup/rollup-android-arm-eabi@4.29.1': '@rollup/rollup-android-arm-eabi@4.30.1':
optional: true optional: true
'@rollup/rollup-android-arm64@4.29.1': '@rollup/rollup-android-arm64@4.30.1':
optional: true optional: true
'@rollup/rollup-darwin-arm64@4.29.1': '@rollup/rollup-darwin-arm64@4.30.1':
optional: true optional: true
'@rollup/rollup-darwin-x64@4.29.1': '@rollup/rollup-darwin-x64@4.30.1':
optional: true optional: true
'@rollup/rollup-freebsd-arm64@4.29.1': '@rollup/rollup-freebsd-arm64@4.30.1':
optional: true optional: true
'@rollup/rollup-freebsd-x64@4.29.1': '@rollup/rollup-freebsd-x64@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-arm-gnueabihf@4.29.1': '@rollup/rollup-linux-arm-gnueabihf@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-arm-musleabihf@4.29.1': '@rollup/rollup-linux-arm-musleabihf@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-arm64-gnu@4.29.1': '@rollup/rollup-linux-arm64-gnu@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-arm64-musl@4.29.1': '@rollup/rollup-linux-arm64-musl@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-loongarch64-gnu@4.29.1': '@rollup/rollup-linux-loongarch64-gnu@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-powerpc64le-gnu@4.29.1': '@rollup/rollup-linux-powerpc64le-gnu@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-riscv64-gnu@4.29.1': '@rollup/rollup-linux-riscv64-gnu@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-s390x-gnu@4.29.1': '@rollup/rollup-linux-s390x-gnu@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-x64-gnu@4.29.1': '@rollup/rollup-linux-x64-gnu@4.30.1':
optional: true optional: true
'@rollup/rollup-linux-x64-musl@4.29.1': '@rollup/rollup-linux-x64-musl@4.30.1':
optional: true optional: true
'@rollup/rollup-win32-arm64-msvc@4.29.1': '@rollup/rollup-win32-arm64-msvc@4.30.1':
optional: true optional: true
'@rollup/rollup-win32-ia32-msvc@4.29.1': '@rollup/rollup-win32-ia32-msvc@4.30.1':
optional: true optional: true
'@rollup/rollup-win32-x64-msvc@4.29.1': '@rollup/rollup-win32-x64-msvc@4.30.1':
optional: true optional: true
'@types/conventional-commits-parser@5.0.1': '@types/conventional-commits-parser@5.0.1':
dependencies: dependencies:
'@types/node': 22.10.2 '@types/node': 22.10.5
'@types/estree@1.0.6': {} '@types/estree@1.0.6': {}
'@types/node@12.20.55': {} '@types/node@12.20.55': {}
'@types/node@22.10.2': '@types/node@22.10.5':
dependencies: dependencies:
undici-types: 6.20.0 undici-types: 6.20.0
@ -1901,13 +1901,13 @@ snapshots:
chai: 5.1.2 chai: 5.1.2
tinyrainbow: 1.2.0 tinyrainbow: 1.2.0
'@vitest/mocker@2.1.8(vite@5.4.11(@types/node@22.10.2))': '@vitest/mocker@2.1.8(vite@5.4.11(@types/node@22.10.5))':
dependencies: dependencies:
'@vitest/spy': 2.1.8 '@vitest/spy': 2.1.8
estree-walker: 3.0.3 estree-walker: 3.0.3
magic-string: 0.30.17 magic-string: 0.30.17
optionalDependencies: optionalDependencies:
vite: 5.4.11(@types/node@22.10.2) vite: 5.4.11(@types/node@22.10.5)
'@vitest/pretty-format@2.1.8': '@vitest/pretty-format@2.1.8':
dependencies: dependencies:
@ -1942,7 +1942,7 @@ snapshots:
ajv@8.17.1: ajv@8.17.1:
dependencies: dependencies:
fast-deep-equal: 3.1.3 fast-deep-equal: 3.1.3
fast-uri: 3.0.3 fast-uri: 3.0.5
json-schema-traverse: 1.0.0 json-schema-traverse: 1.0.0
require-from-string: 2.0.2 require-from-string: 2.0.2
@ -2047,21 +2047,21 @@ snapshots:
meow: 12.1.1 meow: 12.1.1
split2: 4.2.0 split2: 4.2.0
cosmiconfig-typescript-loader@6.1.0(@types/node@22.10.2)(cosmiconfig@9.0.0(typescript@5.7.2))(typescript@5.7.2): cosmiconfig-typescript-loader@6.1.0(@types/node@22.10.5)(cosmiconfig@9.0.0(typescript@5.7.3))(typescript@5.7.3):
dependencies: dependencies:
'@types/node': 22.10.2 '@types/node': 22.10.5
cosmiconfig: 9.0.0(typescript@5.7.2) cosmiconfig: 9.0.0(typescript@5.7.3)
jiti: 2.4.2 jiti: 2.4.2
typescript: 5.7.2 typescript: 5.7.3
cosmiconfig@9.0.0(typescript@5.7.2): cosmiconfig@9.0.0(typescript@5.7.3):
dependencies: dependencies:
env-paths: 2.2.1 env-paths: 2.2.1
import-fresh: 3.3.0 import-fresh: 3.3.0
js-yaml: 4.1.0 js-yaml: 4.1.0
parse-json: 5.2.0 parse-json: 5.2.0
optionalDependencies: optionalDependencies:
typescript: 5.7.2 typescript: 5.7.3
cross-spawn@7.0.6: cross-spawn@7.0.6:
dependencies: dependencies:
@ -2166,7 +2166,7 @@ snapshots:
fast-deep-equal@3.1.3: {} fast-deep-equal@3.1.3: {}
fast-glob@3.3.2: fast-glob@3.3.3:
dependencies: dependencies:
'@nodelib/fs.stat': 2.0.5 '@nodelib/fs.stat': 2.0.5
'@nodelib/fs.walk': 1.2.8 '@nodelib/fs.walk': 1.2.8
@ -2174,7 +2174,7 @@ snapshots:
merge2: 1.4.1 merge2: 1.4.1
micromatch: 4.0.8 micromatch: 4.0.8
fast-uri@3.0.3: {} fast-uri@3.0.5: {}
fastq@1.18.0: fastq@1.18.0:
dependencies: dependencies:
@ -2234,7 +2234,7 @@ snapshots:
dependencies: dependencies:
array-union: 2.1.0 array-union: 2.1.0
dir-glob: 3.0.1 dir-glob: 3.0.1
fast-glob: 3.3.2 fast-glob: 3.3.3
ignore: 5.3.2 ignore: 5.3.2
merge2: 1.4.1 merge2: 1.4.1
slash: 3.0.0 slash: 3.0.0
@ -2521,29 +2521,29 @@ snapshots:
rfdc@1.4.1: {} rfdc@1.4.1: {}
rollup@4.29.1: rollup@4.30.1:
dependencies: dependencies:
'@types/estree': 1.0.6 '@types/estree': 1.0.6
optionalDependencies: optionalDependencies:
'@rollup/rollup-android-arm-eabi': 4.29.1 '@rollup/rollup-android-arm-eabi': 4.30.1
'@rollup/rollup-android-arm64': 4.29.1 '@rollup/rollup-android-arm64': 4.30.1
'@rollup/rollup-darwin-arm64': 4.29.1 '@rollup/rollup-darwin-arm64': 4.30.1
'@rollup/rollup-darwin-x64': 4.29.1 '@rollup/rollup-darwin-x64': 4.30.1
'@rollup/rollup-freebsd-arm64': 4.29.1 '@rollup/rollup-freebsd-arm64': 4.30.1
'@rollup/rollup-freebsd-x64': 4.29.1 '@rollup/rollup-freebsd-x64': 4.30.1
'@rollup/rollup-linux-arm-gnueabihf': 4.29.1 '@rollup/rollup-linux-arm-gnueabihf': 4.30.1
'@rollup/rollup-linux-arm-musleabihf': 4.29.1 '@rollup/rollup-linux-arm-musleabihf': 4.30.1
'@rollup/rollup-linux-arm64-gnu': 4.29.1 '@rollup/rollup-linux-arm64-gnu': 4.30.1
'@rollup/rollup-linux-arm64-musl': 4.29.1 '@rollup/rollup-linux-arm64-musl': 4.30.1
'@rollup/rollup-linux-loongarch64-gnu': 4.29.1 '@rollup/rollup-linux-loongarch64-gnu': 4.30.1
'@rollup/rollup-linux-powerpc64le-gnu': 4.29.1 '@rollup/rollup-linux-powerpc64le-gnu': 4.30.1
'@rollup/rollup-linux-riscv64-gnu': 4.29.1 '@rollup/rollup-linux-riscv64-gnu': 4.30.1
'@rollup/rollup-linux-s390x-gnu': 4.29.1 '@rollup/rollup-linux-s390x-gnu': 4.30.1
'@rollup/rollup-linux-x64-gnu': 4.29.1 '@rollup/rollup-linux-x64-gnu': 4.30.1
'@rollup/rollup-linux-x64-musl': 4.29.1 '@rollup/rollup-linux-x64-musl': 4.30.1
'@rollup/rollup-win32-arm64-msvc': 4.29.1 '@rollup/rollup-win32-arm64-msvc': 4.30.1
'@rollup/rollup-win32-ia32-msvc': 4.29.1 '@rollup/rollup-win32-ia32-msvc': 4.30.1
'@rollup/rollup-win32-x64-msvc': 4.29.1 '@rollup/rollup-win32-x64-msvc': 4.30.1
fsevents: 2.3.3 fsevents: 2.3.3
run-parallel@1.2.0: run-parallel@1.2.0:
@ -2625,7 +2625,7 @@ snapshots:
tinybench@2.9.0: {} tinybench@2.9.0: {}
tinyexec@0.3.1: {} tinyexec@0.3.2: {}
tinypool@1.0.2: {} tinypool@1.0.2: {}
@ -2641,7 +2641,7 @@ snapshots:
dependencies: dependencies:
is-number: 7.0.0 is-number: 7.0.0
typescript@5.7.2: {} typescript@5.7.3: {}
undici-types@6.20.0: {} undici-types@6.20.0: {}
@ -2649,13 +2649,13 @@ snapshots:
universalify@0.1.2: {} universalify@0.1.2: {}
vite-node@2.1.8(@types/node@22.10.2): vite-node@2.1.8(@types/node@22.10.5):
dependencies: dependencies:
cac: 6.7.14 cac: 6.7.14
debug: 4.4.0 debug: 4.4.0
es-module-lexer: 1.6.0 es-module-lexer: 1.6.0
pathe: 1.1.2 pathe: 1.1.2
vite: 5.4.11(@types/node@22.10.2) vite: 5.4.11(@types/node@22.10.5)
transitivePeerDependencies: transitivePeerDependencies:
- '@types/node' - '@types/node'
- less - less
@ -2667,19 +2667,19 @@ snapshots:
- supports-color - supports-color
- terser - terser
vite@5.4.11(@types/node@22.10.2): vite@5.4.11(@types/node@22.10.5):
dependencies: dependencies:
esbuild: 0.21.5 esbuild: 0.21.5
postcss: 8.4.49 postcss: 8.4.49
rollup: 4.29.1 rollup: 4.30.1
optionalDependencies: optionalDependencies:
'@types/node': 22.10.2 '@types/node': 22.10.5
fsevents: 2.3.3 fsevents: 2.3.3
vitest@2.1.8(@types/node@22.10.2): vitest@2.1.8(@types/node@22.10.5):
dependencies: dependencies:
'@vitest/expect': 2.1.8 '@vitest/expect': 2.1.8
'@vitest/mocker': 2.1.8(vite@5.4.11(@types/node@22.10.2)) '@vitest/mocker': 2.1.8(vite@5.4.11(@types/node@22.10.5))
'@vitest/pretty-format': 2.1.8 '@vitest/pretty-format': 2.1.8
'@vitest/runner': 2.1.8 '@vitest/runner': 2.1.8
'@vitest/snapshot': 2.1.8 '@vitest/snapshot': 2.1.8
@ -2692,14 +2692,14 @@ snapshots:
pathe: 1.1.2 pathe: 1.1.2
std-env: 3.8.0 std-env: 3.8.0
tinybench: 2.9.0 tinybench: 2.9.0
tinyexec: 0.3.1 tinyexec: 0.3.2
tinypool: 1.0.2 tinypool: 1.0.2
tinyrainbow: 1.2.0 tinyrainbow: 1.2.0
vite: 5.4.11(@types/node@22.10.2) vite: 5.4.11(@types/node@22.10.5)
vite-node: 2.1.8(@types/node@22.10.2) vite-node: 2.1.8(@types/node@22.10.5)
why-is-node-running: 2.3.0 why-is-node-running: 2.3.0
optionalDependencies: optionalDependencies:
'@types/node': 22.10.2 '@types/node': 22.10.5
transitivePeerDependencies: transitivePeerDependencies:
- less - less
- lightningcss - lightningcss

View File

@ -197,12 +197,12 @@ export class BaseInteraction<
if ('attachments' in body) { if ('attachments' in body) {
payload.attachments = payload.attachments =
body.attachments?.map((x, i) => ({ body.attachments?.map((x, i) => ({
id: i, id: x.id ?? i.toString(),
...resolveAttachment(x), ...resolveAttachment(x),
})) ?? undefined; })) ?? undefined;
} else if (files?.length) { } else if (files?.length) {
payload.attachments = files?.map(({ filename }, id) => ({ payload.attachments = files?.map(({ filename }, i) => ({
id, id: i.toString(),
filename, filename,
})) as RESTAPIAttachment[]; })) as RESTAPIAttachment[];
} }

View File

@ -1,4 +1,4 @@
import { type AllChannels, Embed, ReturnCache } from '..'; import { type AllChannels, Embed, type ReturnCache } from '..';
import type { ListenerOptions } from '../builders'; import type { ListenerOptions } from '../builders';
import { import {
type GuildMemberStructure, type GuildMemberStructure,

View File

@ -327,12 +327,12 @@ export class MessagesMethods extends DiscordBase {
if ('attachments' in body) { if ('attachments' in body) {
payload.attachments = payload.attachments =
body.attachments?.map((x, i) => ({ body.attachments?.map((x, i) => ({
id: i, id: i.toString(),
...resolveAttachment(x), ...resolveAttachment(x),
})) ?? undefined; })) ?? undefined;
} else if (files?.length) { } else if (files?.length) {
payload.attachments = files?.map(({ filename }, id) => ({ payload.attachments = files?.map(({ filename }, i) => ({
id, id: i.toString(),
filename, filename,
})) as RESTAPIAttachment[]; })) as RESTAPIAttachment[];
} }

View File

@ -252,7 +252,7 @@ export type APIMessageReferenceSend = AddUndefinedToPossiblyUndefinedPropertiesO
* https://discord.com/developers/docs/resources/message#attachment-object * https://discord.com/developers/docs/resources/message#attachment-object
*/ */
export type RESTAPIAttachment = Partial< export type RESTAPIAttachment = Partial<
Pick<APIAttachment, 'description' | 'duration_secs' | 'filename' | 'title' | 'waveform'> Pick<APIAttachment, 'description' | 'duration_secs' | 'filename' | 'title' | 'waveform' | 'id'>
>; >;
/** /**