veltrixcode commited on
Commit
226daaa
·
verified ·
1 Parent(s): 0473de4

Upload 14 files

Browse files
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:21-alpine3.18
2
+
3
+ WORKDIR /app
4
+
5
+ COPY package*.json ./
6
+ # COPY yarn.lock ./
7
+
8
+ RUN apk update && apk add --no-cache chromium
9
+ RUN yarn
10
+ RUN yarn cache clean
11
+ COPY . .
12
+
13
+ ENV PORT 3000
14
+ ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium-browser
15
+ EXPOSE 3000
16
+
17
+ CMD ["node", "index.js"]
controllers/canvasController.js ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { getCanvases } from '../services/spotifyCanvasService.js';
2
+ import { searchSpotifyGraphQL } from '../services/browserAuthService.js';
3
+
4
+ const normalizeText = (text) => {
5
+ if (!text) return '';
6
+ return text.toLowerCase()
7
+ .replace(/[^a-z0-9]/g, ' ')
8
+ .replace(/\s+/g, ' ')
9
+ .trim();
10
+ };
11
+
12
+ const findBestMatch = (candidates, name, artist, duration) => {
13
+ const targetName = normalizeText(name);
14
+ const targetArtist = normalizeText(artist);
15
+
16
+ let targetDurationMs = null;
17
+ if (duration !== undefined && duration !== null) {
18
+ const parsedDuration = parseFloat(duration);
19
+ if (!isNaN(parsedDuration)) {
20
+ targetDurationMs = parsedDuration < 3000 ? parsedDuration * 1000 : parsedDuration;
21
+ }
22
+ }
23
+
24
+ let bestMatch = null;
25
+ let bestScore = -1;
26
+
27
+ for (const track of candidates) {
28
+ let score = 0;
29
+ const trackName = normalizeText(track.name);
30
+
31
+ if (trackName === targetName) {
32
+ score += 40;
33
+ } else if (trackName.includes(targetName) || targetName.includes(trackName)) {
34
+ score += 20;
35
+ }
36
+
37
+ let artistMatch = false;
38
+ let exactArtistMatch = false;
39
+ for (const trackArtist of track.artists || []) {
40
+ const normTrackArtist = normalizeText(trackArtist.name);
41
+ if (normTrackArtist === targetArtist) {
42
+ exactArtistMatch = true;
43
+ artistMatch = true;
44
+ } else if (normTrackArtist.includes(targetArtist) || targetArtist.includes(normTrackArtist)) {
45
+ artistMatch = true;
46
+ }
47
+ }
48
+
49
+ if (exactArtistMatch) {
50
+ score += 40;
51
+ } else if (artistMatch) {
52
+ score += 20;
53
+ }
54
+
55
+ if (targetDurationMs !== null && track.duration_ms) {
56
+ const diffSec = Math.abs(track.duration_ms - targetDurationMs) / 1000;
57
+ if (diffSec <= 2) {
58
+ score += 30;
59
+ } else if (diffSec <= 5) {
60
+ score += 20;
61
+ } else if (diffSec <= 10) {
62
+ score += 10;
63
+ } else if (diffSec > 30) {
64
+ score -= 20;
65
+ }
66
+ }
67
+
68
+ if (score > bestScore) {
69
+ bestScore = score;
70
+ bestMatch = track;
71
+ }
72
+ }
73
+
74
+ return bestScore >= 20 ? bestMatch : null;
75
+ };
76
+
77
+ export const fetchCanvas = async (req, res) => {
78
+ const { trackId, name, song, track, artist, duration } = req.query;
79
+
80
+ // 1. Direct track ID lookup
81
+ if (trackId) {
82
+ const canvasData = await getCanvases(`spotify:track:${trackId}`);
83
+ if (!canvasData) {
84
+ return res.status(500).json({ error: 'Failed to fetch canvas data' });
85
+ }
86
+ return res.json(canvasData);
87
+ }
88
+
89
+ // 2. Search and match mode
90
+ const targetSongName = name || song || track;
91
+ if (!targetSongName) {
92
+ return res.status(400).json({ error: 'Missing trackId or name parameter' });
93
+ }
94
+
95
+ try {
96
+ // Build search query
97
+ const searchQuery = artist ? `${targetSongName} ${artist}` : targetSongName;
98
+
99
+ console.log(`Searching Spotify GraphQL for: "${searchQuery}"`);
100
+ const candidates = await searchSpotifyGraphQL(searchQuery, 20);
101
+
102
+ if (candidates.length === 0) {
103
+ return res.status(404).json({ error: 'No matching tracks found on Spotify' });
104
+ }
105
+
106
+ const matchedTrack = findBestMatch(candidates, targetSongName, artist, duration);
107
+ if (!matchedTrack) {
108
+ return res.status(404).json({ error: 'No track matching the name, artist, and duration criteria was found' });
109
+ }
110
+
111
+ console.log(`Matched track: "${matchedTrack.name}" (${matchedTrack.id})`);
112
+
113
+ const canvasData = await getCanvases(`spotify:track:${matchedTrack.id}`);
114
+ if (!canvasData) {
115
+ return res.status(500).json({ error: 'Failed to fetch canvas data for the matched track' });
116
+ }
117
+
118
+ res.json({
119
+ matchedTrack: {
120
+ id: matchedTrack.id,
121
+ name: matchedTrack.name,
122
+ artist: matchedTrack.artists?.map(a => a.name).join(', '),
123
+ durationMs: matchedTrack.duration_ms
124
+ },
125
+ ...canvasData
126
+ });
127
+ } catch (error) {
128
+ console.error('Fetch canvas error:', error.response?.data || error.message);
129
+ res.status(500).json({ error: 'An error occurred while fetching canvas data' });
130
+ }
131
+ };
cookies.txt ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Netscape HTTP Cookie File
2
+ # https://curl.haxx.se/rfc/cookie_spec.html
3
+ # This is a generated file! Do not edit.
4
+
5
+ .spotify.com TRUE / TRUE 1815229310 sp_t 08009459-8894-42a5-b83b-0de84f60ad51
6
+ .spotify.com TRUE / FALSE 1811081975 OptanonAlertBoxClosed 2026-05-23T14:19:35.394Z
7
+ .spotify.com TRUE / FALSE 1787321976 _gcl_au 1.1.1842046148.1779545976
8
+ .spotify.com TRUE / FALSE 1791470033 _fbp fb.1.1779545976729.679919829838386801
9
+ .spotify.com TRUE / FALSE 1813760376 _scid nncpLexJj06zv3MbYUrZy42M5aNOu4K4
10
+ .spotify.com TRUE / TRUE 1815230030 sp_adid 291f5252-ebf1-4fb6-a96b-0cac7385bfd1
11
+ .spotify.com TRUE / FALSE 1787322060 _gac_UA-5784146-31 1.1779546060.Cj0KCQjwoMXQBhDcARIsAH-eEts5XWaXt_MSMDjFoCbOFKAEi4IPRgNI9iRWPGbZ9Mk5Po8YSo1cMDAaAq4_EALw_wcB
12
+ .spotify.com TRUE / TRUE 1787817290 sp_gaid 0088fc4accded89d0e9abc70d0b18c9e1b06e45c9680471e3e9698
13
+ .spotify.com TRUE / TRUE 1783776746 sp_landing https%3A%2F%2Fopen.spotify.com%2Fplaylist%2F0KXnR5OWkPxsUSW695dEUm%3Fsi%3D0CdcYGDcTpO9BzMBKgf-mA
14
+ .spotify.com TRUE / FALSE 1783779714 _gid GA1.2.413093824.1783690371
15
+ .spotify.com TRUE / TRUE 1815226375 sp_dc AQC451bQrVq12dDqg0TwarZk0b4ZRumdTf7BJcIsLv42WlxZwQm3nB7ONppeXLpNrs2qVJpKxJibkgFRrrp2cPtn6_LzVB08r2tHZUR_NuhuK5I1C2IePag2VoU_h__WvxNzP00wg7gUFUYEeaV81JAnNGDlRZuFucyinsp09FFutpZt_mmjzk8--Wc2SNeupDqZAxL9ZkMdJ1uhZ0GW_XkmALvTa1kLbOajoUwWdr4D9gx9wqrFeZR77b7r717XmxtbsN0WXNoVPCA
16
+ .spotify.com TRUE / TRUE 1815226375 sp_key 294ce30d-0fee-476f-b66a-d9a4b472a9ba
17
+ .spotify.com TRUE / TRUE 1783779279 sp_m in-en
18
+ .spotify.com TRUE / FALSE 1817907287 _sctr 1%7C1783621800000
19
+ .spotify.com TRUE / FALSE 1818254028 _ga GA1.1.520765516.1779545963
20
+ .spotify.com TRUE / FALSE 1818253314 _ga_ZWG1NSHWD8 GS2.1.s1783690371$o3$g1$t1783693314$j41$l0$h0
21
+ .spotify.com TRUE / FALSE 1818253315 _ga_BMC5VGR8YS GS2.2.s1783690372$o3$g1$t1783693314$j41$l0$h0
22
+ .spotify.com TRUE / TRUE 1788877887 sp_last_utm %7B%22utm_term%22%3A%22None%22%2C%22utm_campaign%22%3A%22na-uac-alwayson-Performance%2BAlwaysON%2BPremiumBusiness%2B2F1-Performance%2BSearch%2BPanIndia%2BPremium-performance-brand-india-apac-not-applicable-2025q1-na-google%22%2C%22utm_medium%22%3A%22display%22%2C%22utm_source%22%3A%22uac-brand-india-na%22%2C%22utm_content%22%3A%22None%22%7D
23
+ .spotify.com TRUE / FALSE 1815230001 OptanonConsent isGpcEnabled=0&datestamp=Fri+Jul+10+2026+20%3A03%3A21+GMT%2B0530+(India+Standard+Time)&version=202601.2.0&browserGpcFlag=0&isIABGlobal=false&hosts=&landingPath=NotLandingPage&groups=s00%3A1%2Cf00%3A1%2Cm00%3A1%2Ct00%3A1%2Ci00%3A1%2Cf11%3A1%2Cm02%3A1%2Ct02%3A1%2Cm03%3A1%2CID01%3A1&AwaitingReconsent=false&geolocation=IN%3BUP
24
+ .spotify.com TRUE / FALSE 1791470028 _gcl_gs 2.1.k1$i1783693873$u193005167
25
+ .spotify.com TRUE / TRUE 1783695809 _cs_mk_ga 0.19929662503689982_1783694009978
26
+ .spotify.com TRUE / FALSE 1791470028 _gcl_aw GCL.1783694028.Cj0KCQjwsMLSBhD9ARIsAIpUTDrHXqpqU-Tnsv-ywxxQ-eBrbeade3i5sp1Ecp3OSwL4v2UsuNc09KcaArTpEALw_wcB
27
+ .spotify.com TRUE / FALSE 1791470028 _gcl_dc GCL.1783694028.Cj0KCQjwsMLSBhD9ARIsAIpUTDrHXqpqU-Tnsv-ywxxQ-eBrbeade3i5sp1Ecp3OSwL4v2UsuNc09KcaArTpEALw_wcB
28
+ .spotify.com TRUE / FALSE 1817908429 _scid_r qfcpLexJj06zv3MbYUrZy42M5aNOu4K4LDLmDA
29
+ .spotify.com TRUE / FALSE 1815230032 AMP_MKTG_5048e0c51e JTdCJTIydXRtX2NhbXBhaWduJTIyJTNBJTIybmEtdWFjLWFsd2F5c29uLVBlcmZvcm1hbmNlJTJCQWx3YXlzT04lMkJQcmVtaXVtQnVzaW5lc3MlMkIyRjEtUGVyZm9ybWFuY2UlMkJTZWFyY2glMkJQYW5JbmRpYSUyQlByZW1pdW0tcGVyZm9ybWFuY2UtYnJhbmQtaW5kaWEtYXBhYy1ub3QtYXBwbGljYWJsZS0yMDI1cTEtbmEtZ29vZ2xlJTIyJTJDJTIydXRtX2NvbnRlbnQlMjIlM0ElMjJOb25lJTIyJTJDJTIydXRtX21lZGl1bSUyMiUzQSUyMmRpc3BsYXklMjIlMkMlMjJ1dG1fc291cmNlJTIyJTNBJTIydWFjLWJyYW5kLWluZGlhLW5hJTIyJTJDJTIydXRtX3Rlcm0lMjIlM0ElMjJOb25lJTIyJTJDJTIycmVmZXJyZXIlMjIlM0ElMjJodHRwcyUzQSUyRiUyRnd3dy5nb29nbGUuY29tJTJGJTIyJTJDJTIycmVmZXJyaW5nX2RvbWFpbiUyMiUzQSUyMnd3dy5nb29nbGUuY29tJTIyJTJDJTIyZ2JyYWlkJTIyJTNBJTIyMEFBQUFBRGZ6RHMyQ3N6el9YRk9nWGRkWkZsd2JER3M4OSUyMiUyQyUyMmdjbGlkJTIyJTNBJTIyQ2owS0NRandzTUxTQmhEOUFSSXNBSXBVVERySFhxcHFVLVRuc3YteXd4eFEtZUJyYmVhZGUzaTVzcDFFY3AzT1N3TDR2MlVzdU5jMDlLY2FBclRwRUFMd193Y0IlMjIlN0Q=
30
+ .spotify.com TRUE / FALSE 1815230032 AMP_5048e0c51e JTdCJTIyZGV2aWNlSWQlMjIlM0ElMjI0ODkyOWZmNS02ZTZmLTRjOGItYmEzZC1lNmZmZTM2ZmM2ZmElMjIlMkMlMjJ1c2VySWQlMjIlM0ElMjIwMDg4ZmM0YWNjZGVkODlkMGU5YWJjNzBkMGIxOGM5ZTFiMDZlNDVjOTY4MDQ3MWUzZTk2OTglMjIlMkMlMjJzZXNzaW9uSWQlMjIlM0ExNzgzNjkyODg0Njc4JTJDJTIyb3B0T3V0JTIyJTNBZmFsc2UlMkMlMjJsYXN0RXZlbnRUaW1lJTIyJTNBMTc4MzY5NDAzMjI5NCUyQyUyMmxhc3RFdmVudElkJTIyJTNBMTQ%2DMiU0Q=
31
+ .spotify.com TRUE / FALSE 1818254148 _ga_S35RN5WNT2 GS2.1.s1783692884$o2$g1$t1783694147$j60$l0$h0
32
+ .spotify.com TRUE / FALSE 1818254562 _ga_ZWRF3NLZJZ GS2.1.s1783692846$o2$g1$t1783694561$j57$l0$h0
index.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import express from 'express';
2
+ import axios from 'axios';
3
+ import canvasRoutes from './routes/canvasRoutes.js';
4
+ import dotenv from 'dotenv';
5
+
6
+ dotenv.config();
7
+ const app = express();
8
+ const PORT = process.env.PORT || 7860;
9
+
10
+ app.use('/api/canvas', canvasRoutes);
11
+
12
+ app.listen(PORT, function () {
13
+ console.log("Listening on PORT: ", PORT);
14
+ console.log(`Running on local: http://localhost:${PORT}`);
15
+ });
package-lock.json ADDED
@@ -0,0 +1,1351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Spotify-Canvas-API",
3
+ "version": "2.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "Spotify-Canvas-API",
9
+ "version": "2.0.0",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "axios": "^1.6.0",
13
+ "dotenv": "latest",
14
+ "express": "latest",
15
+ "google-protobuf": "^3.11.4",
16
+ "otpauth": "latest",
17
+ "puppeteer-core": "^25.3.0"
18
+ }
19
+ },
20
+ "node_modules/@noble/hashes": {
21
+ "version": "2.2.0",
22
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
23
+ "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
24
+ "license": "MIT",
25
+ "engines": {
26
+ "node": ">= 20.19.0"
27
+ },
28
+ "funding": {
29
+ "url": "https://paulmillr.com/funding/"
30
+ }
31
+ },
32
+ "node_modules/@puppeteer/browsers": {
33
+ "version": "3.0.6",
34
+ "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.0.6.tgz",
35
+ "integrity": "sha512-B/gKoqlFkzhvzsI6jo9K1cZz9o5ypviVv/xu8CwA4grZzyVwN+XfkT+tu8T1zrauuEXv6VhS2oGX+6NL95WcKA==",
36
+ "license": "Apache-2.0",
37
+ "dependencies": {
38
+ "modern-tar": "^0.7.6",
39
+ "yargs": "^18.0.0"
40
+ },
41
+ "bin": {
42
+ "browsers": "lib/main-cli.js"
43
+ },
44
+ "engines": {
45
+ "node": ">=22.12.0"
46
+ },
47
+ "peerDependencies": {
48
+ "proxy-agent": ">=8.0.1",
49
+ "yauzl": "^2.10.0 || ^3.4.0"
50
+ },
51
+ "peerDependenciesMeta": {
52
+ "proxy-agent": {
53
+ "optional": true
54
+ },
55
+ "yauzl": {
56
+ "optional": true
57
+ }
58
+ }
59
+ },
60
+ "node_modules/accepts": {
61
+ "version": "2.0.0",
62
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
63
+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
64
+ "license": "MIT",
65
+ "dependencies": {
66
+ "mime-types": "^3.0.0",
67
+ "negotiator": "^1.0.0"
68
+ },
69
+ "engines": {
70
+ "node": ">= 0.6"
71
+ }
72
+ },
73
+ "node_modules/agent-base": {
74
+ "version": "6.0.2",
75
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
76
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
77
+ "license": "MIT",
78
+ "dependencies": {
79
+ "debug": "4"
80
+ },
81
+ "engines": {
82
+ "node": ">= 6.0.0"
83
+ }
84
+ },
85
+ "node_modules/ansi-regex": {
86
+ "version": "6.2.2",
87
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
88
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
89
+ "license": "MIT",
90
+ "engines": {
91
+ "node": ">=12"
92
+ },
93
+ "funding": {
94
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
95
+ }
96
+ },
97
+ "node_modules/ansi-styles": {
98
+ "version": "6.2.3",
99
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
100
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
101
+ "license": "MIT",
102
+ "engines": {
103
+ "node": ">=12"
104
+ },
105
+ "funding": {
106
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
107
+ }
108
+ },
109
+ "node_modules/asynckit": {
110
+ "version": "0.4.0",
111
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
112
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
113
+ "license": "MIT"
114
+ },
115
+ "node_modules/axios": {
116
+ "version": "1.18.1",
117
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.18.1.tgz",
118
+ "integrity": "sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==",
119
+ "license": "MIT",
120
+ "dependencies": {
121
+ "follow-redirects": "^1.16.0",
122
+ "form-data": "^4.0.5",
123
+ "https-proxy-agent": "^5.0.1",
124
+ "proxy-from-env": "^2.1.0"
125
+ }
126
+ },
127
+ "node_modules/body-parser": {
128
+ "version": "2.3.0",
129
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz",
130
+ "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==",
131
+ "license": "MIT",
132
+ "dependencies": {
133
+ "bytes": "^3.1.2",
134
+ "content-type": "^2.0.0",
135
+ "debug": "^4.4.3",
136
+ "http-errors": "^2.0.1",
137
+ "iconv-lite": "^0.7.2",
138
+ "on-finished": "^2.4.1",
139
+ "qs": "^6.15.2",
140
+ "raw-body": "^3.0.2",
141
+ "type-is": "^2.1.0"
142
+ },
143
+ "engines": {
144
+ "node": ">=18"
145
+ },
146
+ "funding": {
147
+ "type": "opencollective",
148
+ "url": "https://opencollective.com/express"
149
+ }
150
+ },
151
+ "node_modules/body-parser/node_modules/content-type": {
152
+ "version": "2.0.0",
153
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",
154
+ "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",
155
+ "license": "MIT",
156
+ "engines": {
157
+ "node": ">=18"
158
+ },
159
+ "funding": {
160
+ "type": "opencollective",
161
+ "url": "https://opencollective.com/express"
162
+ }
163
+ },
164
+ "node_modules/bytes": {
165
+ "version": "3.1.2",
166
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
167
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
168
+ "license": "MIT",
169
+ "engines": {
170
+ "node": ">= 0.8"
171
+ }
172
+ },
173
+ "node_modules/call-bind-apply-helpers": {
174
+ "version": "1.0.2",
175
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
176
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
177
+ "license": "MIT",
178
+ "dependencies": {
179
+ "es-errors": "^1.3.0",
180
+ "function-bind": "^1.1.2"
181
+ },
182
+ "engines": {
183
+ "node": ">= 0.4"
184
+ }
185
+ },
186
+ "node_modules/call-bound": {
187
+ "version": "1.0.4",
188
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
189
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
190
+ "license": "MIT",
191
+ "dependencies": {
192
+ "call-bind-apply-helpers": "^1.0.2",
193
+ "get-intrinsic": "^1.3.0"
194
+ },
195
+ "engines": {
196
+ "node": ">= 0.4"
197
+ },
198
+ "funding": {
199
+ "url": "https://github.com/sponsors/ljharb"
200
+ }
201
+ },
202
+ "node_modules/chromium-bidi": {
203
+ "version": "16.0.1",
204
+ "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-16.0.1.tgz",
205
+ "integrity": "sha512-J63PGu/9PpeCwLIcKYyzWP6yaVL5pxuBc0shlYCYM8BaAkmlwiQboXO1iNbOgSDbVklEyYFfNEcHD8oOAWacUA==",
206
+ "license": "Apache-2.0",
207
+ "dependencies": {
208
+ "mitt": "^3.0.1",
209
+ "zod": "^3.24.1"
210
+ },
211
+ "engines": {
212
+ "node": ">=20.19.0 <22.0.0 || >=22.12.0"
213
+ },
214
+ "peerDependencies": {
215
+ "devtools-protocol": "*"
216
+ }
217
+ },
218
+ "node_modules/cliui": {
219
+ "version": "9.0.1",
220
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz",
221
+ "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==",
222
+ "license": "ISC",
223
+ "dependencies": {
224
+ "string-width": "^7.2.0",
225
+ "strip-ansi": "^7.1.0",
226
+ "wrap-ansi": "^9.0.0"
227
+ },
228
+ "engines": {
229
+ "node": ">=20"
230
+ }
231
+ },
232
+ "node_modules/combined-stream": {
233
+ "version": "1.0.8",
234
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
235
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
236
+ "license": "MIT",
237
+ "dependencies": {
238
+ "delayed-stream": "~1.0.0"
239
+ },
240
+ "engines": {
241
+ "node": ">= 0.8"
242
+ }
243
+ },
244
+ "node_modules/content-disposition": {
245
+ "version": "1.1.0",
246
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz",
247
+ "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==",
248
+ "license": "MIT",
249
+ "engines": {
250
+ "node": ">=18"
251
+ },
252
+ "funding": {
253
+ "type": "opencollective",
254
+ "url": "https://opencollective.com/express"
255
+ }
256
+ },
257
+ "node_modules/content-type": {
258
+ "version": "1.0.5",
259
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
260
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
261
+ "license": "MIT",
262
+ "engines": {
263
+ "node": ">= 0.6"
264
+ }
265
+ },
266
+ "node_modules/cookie": {
267
+ "version": "0.7.2",
268
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
269
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
270
+ "license": "MIT",
271
+ "engines": {
272
+ "node": ">= 0.6"
273
+ }
274
+ },
275
+ "node_modules/cookie-signature": {
276
+ "version": "1.2.2",
277
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
278
+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
279
+ "license": "MIT",
280
+ "engines": {
281
+ "node": ">=6.6.0"
282
+ }
283
+ },
284
+ "node_modules/debug": {
285
+ "version": "4.4.3",
286
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
287
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
288
+ "license": "MIT",
289
+ "dependencies": {
290
+ "ms": "^2.1.3"
291
+ },
292
+ "engines": {
293
+ "node": ">=6.0"
294
+ },
295
+ "peerDependenciesMeta": {
296
+ "supports-color": {
297
+ "optional": true
298
+ }
299
+ }
300
+ },
301
+ "node_modules/delayed-stream": {
302
+ "version": "1.0.0",
303
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
304
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
305
+ "license": "MIT",
306
+ "engines": {
307
+ "node": ">=0.4.0"
308
+ }
309
+ },
310
+ "node_modules/depd": {
311
+ "version": "2.0.0",
312
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
313
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
314
+ "license": "MIT",
315
+ "engines": {
316
+ "node": ">= 0.8"
317
+ }
318
+ },
319
+ "node_modules/devtools-protocol": {
320
+ "version": "0.0.1638949",
321
+ "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1638949.tgz",
322
+ "integrity": "sha512-mXwg4Fqnv0WR4iuAT/gYUmctNkjILwXFHyZ+m7Ty1dfr0ezZt2U3gnrrJTfRobJTHoXf+IbuFvFITzLrLFjwJA==",
323
+ "license": "BSD-3-Clause"
324
+ },
325
+ "node_modules/dotenv": {
326
+ "version": "17.4.2",
327
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
328
+ "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
329
+ "license": "BSD-2-Clause",
330
+ "engines": {
331
+ "node": ">=12"
332
+ },
333
+ "funding": {
334
+ "url": "https://dotenvx.com"
335
+ }
336
+ },
337
+ "node_modules/dunder-proto": {
338
+ "version": "1.0.1",
339
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
340
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
341
+ "license": "MIT",
342
+ "dependencies": {
343
+ "call-bind-apply-helpers": "^1.0.1",
344
+ "es-errors": "^1.3.0",
345
+ "gopd": "^1.2.0"
346
+ },
347
+ "engines": {
348
+ "node": ">= 0.4"
349
+ }
350
+ },
351
+ "node_modules/ee-first": {
352
+ "version": "1.1.1",
353
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
354
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
355
+ "license": "MIT"
356
+ },
357
+ "node_modules/emoji-regex": {
358
+ "version": "10.6.0",
359
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
360
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
361
+ "license": "MIT"
362
+ },
363
+ "node_modules/encodeurl": {
364
+ "version": "2.0.0",
365
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
366
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
367
+ "license": "MIT",
368
+ "engines": {
369
+ "node": ">= 0.8"
370
+ }
371
+ },
372
+ "node_modules/es-define-property": {
373
+ "version": "1.0.1",
374
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
375
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
376
+ "license": "MIT",
377
+ "engines": {
378
+ "node": ">= 0.4"
379
+ }
380
+ },
381
+ "node_modules/es-errors": {
382
+ "version": "1.3.0",
383
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
384
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
385
+ "license": "MIT",
386
+ "engines": {
387
+ "node": ">= 0.4"
388
+ }
389
+ },
390
+ "node_modules/es-object-atoms": {
391
+ "version": "1.1.2",
392
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
393
+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
394
+ "license": "MIT",
395
+ "dependencies": {
396
+ "es-errors": "^1.3.0"
397
+ },
398
+ "engines": {
399
+ "node": ">= 0.4"
400
+ }
401
+ },
402
+ "node_modules/es-set-tostringtag": {
403
+ "version": "2.1.0",
404
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
405
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
406
+ "license": "MIT",
407
+ "dependencies": {
408
+ "es-errors": "^1.3.0",
409
+ "get-intrinsic": "^1.2.6",
410
+ "has-tostringtag": "^1.0.2",
411
+ "hasown": "^2.0.2"
412
+ },
413
+ "engines": {
414
+ "node": ">= 0.4"
415
+ }
416
+ },
417
+ "node_modules/escalade": {
418
+ "version": "3.2.0",
419
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
420
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
421
+ "license": "MIT",
422
+ "engines": {
423
+ "node": ">=6"
424
+ }
425
+ },
426
+ "node_modules/escape-html": {
427
+ "version": "1.0.3",
428
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
429
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
430
+ "license": "MIT"
431
+ },
432
+ "node_modules/etag": {
433
+ "version": "1.8.1",
434
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
435
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
436
+ "license": "MIT",
437
+ "engines": {
438
+ "node": ">= 0.6"
439
+ }
440
+ },
441
+ "node_modules/express": {
442
+ "version": "5.2.1",
443
+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
444
+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
445
+ "license": "MIT",
446
+ "dependencies": {
447
+ "accepts": "^2.0.0",
448
+ "body-parser": "^2.2.1",
449
+ "content-disposition": "^1.0.0",
450
+ "content-type": "^1.0.5",
451
+ "cookie": "^0.7.1",
452
+ "cookie-signature": "^1.2.1",
453
+ "debug": "^4.4.0",
454
+ "depd": "^2.0.0",
455
+ "encodeurl": "^2.0.0",
456
+ "escape-html": "^1.0.3",
457
+ "etag": "^1.8.1",
458
+ "finalhandler": "^2.1.0",
459
+ "fresh": "^2.0.0",
460
+ "http-errors": "^2.0.0",
461
+ "merge-descriptors": "^2.0.0",
462
+ "mime-types": "^3.0.0",
463
+ "on-finished": "^2.4.1",
464
+ "once": "^1.4.0",
465
+ "parseurl": "^1.3.3",
466
+ "proxy-addr": "^2.0.7",
467
+ "qs": "^6.14.0",
468
+ "range-parser": "^1.2.1",
469
+ "router": "^2.2.0",
470
+ "send": "^1.1.0",
471
+ "serve-static": "^2.2.0",
472
+ "statuses": "^2.0.1",
473
+ "type-is": "^2.0.1",
474
+ "vary": "^1.1.2"
475
+ },
476
+ "engines": {
477
+ "node": ">= 18"
478
+ },
479
+ "funding": {
480
+ "type": "opencollective",
481
+ "url": "https://opencollective.com/express"
482
+ }
483
+ },
484
+ "node_modules/finalhandler": {
485
+ "version": "2.1.1",
486
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
487
+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
488
+ "license": "MIT",
489
+ "dependencies": {
490
+ "debug": "^4.4.0",
491
+ "encodeurl": "^2.0.0",
492
+ "escape-html": "^1.0.3",
493
+ "on-finished": "^2.4.1",
494
+ "parseurl": "^1.3.3",
495
+ "statuses": "^2.0.1"
496
+ },
497
+ "engines": {
498
+ "node": ">= 18.0.0"
499
+ },
500
+ "funding": {
501
+ "type": "opencollective",
502
+ "url": "https://opencollective.com/express"
503
+ }
504
+ },
505
+ "node_modules/follow-redirects": {
506
+ "version": "1.16.0",
507
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",
508
+ "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",
509
+ "funding": [
510
+ {
511
+ "type": "individual",
512
+ "url": "https://github.com/sponsors/RubenVerborgh"
513
+ }
514
+ ],
515
+ "license": "MIT",
516
+ "engines": {
517
+ "node": ">=4.0"
518
+ },
519
+ "peerDependenciesMeta": {
520
+ "debug": {
521
+ "optional": true
522
+ }
523
+ }
524
+ },
525
+ "node_modules/form-data": {
526
+ "version": "4.0.6",
527
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",
528
+ "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",
529
+ "license": "MIT",
530
+ "dependencies": {
531
+ "asynckit": "^0.4.0",
532
+ "combined-stream": "^1.0.8",
533
+ "es-set-tostringtag": "^2.1.0",
534
+ "hasown": "^2.0.4",
535
+ "mime-types": "^2.1.35"
536
+ },
537
+ "engines": {
538
+ "node": ">= 6"
539
+ }
540
+ },
541
+ "node_modules/form-data/node_modules/mime-db": {
542
+ "version": "1.52.0",
543
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
544
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
545
+ "license": "MIT",
546
+ "engines": {
547
+ "node": ">= 0.6"
548
+ }
549
+ },
550
+ "node_modules/form-data/node_modules/mime-types": {
551
+ "version": "2.1.35",
552
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
553
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
554
+ "license": "MIT",
555
+ "dependencies": {
556
+ "mime-db": "1.52.0"
557
+ },
558
+ "engines": {
559
+ "node": ">= 0.6"
560
+ }
561
+ },
562
+ "node_modules/forwarded": {
563
+ "version": "0.2.0",
564
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
565
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
566
+ "license": "MIT",
567
+ "engines": {
568
+ "node": ">= 0.6"
569
+ }
570
+ },
571
+ "node_modules/fresh": {
572
+ "version": "2.0.0",
573
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
574
+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
575
+ "license": "MIT",
576
+ "engines": {
577
+ "node": ">= 0.8"
578
+ }
579
+ },
580
+ "node_modules/function-bind": {
581
+ "version": "1.1.2",
582
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
583
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
584
+ "license": "MIT",
585
+ "funding": {
586
+ "url": "https://github.com/sponsors/ljharb"
587
+ }
588
+ },
589
+ "node_modules/get-caller-file": {
590
+ "version": "2.0.5",
591
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
592
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
593
+ "license": "ISC",
594
+ "engines": {
595
+ "node": "6.* || 8.* || >= 10.*"
596
+ }
597
+ },
598
+ "node_modules/get-east-asian-width": {
599
+ "version": "1.6.0",
600
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",
601
+ "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",
602
+ "license": "MIT",
603
+ "engines": {
604
+ "node": ">=18"
605
+ },
606
+ "funding": {
607
+ "url": "https://github.com/sponsors/sindresorhus"
608
+ }
609
+ },
610
+ "node_modules/get-intrinsic": {
611
+ "version": "1.3.0",
612
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
613
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
614
+ "license": "MIT",
615
+ "dependencies": {
616
+ "call-bind-apply-helpers": "^1.0.2",
617
+ "es-define-property": "^1.0.1",
618
+ "es-errors": "^1.3.0",
619
+ "es-object-atoms": "^1.1.1",
620
+ "function-bind": "^1.1.2",
621
+ "get-proto": "^1.0.1",
622
+ "gopd": "^1.2.0",
623
+ "has-symbols": "^1.1.0",
624
+ "hasown": "^2.0.2",
625
+ "math-intrinsics": "^1.1.0"
626
+ },
627
+ "engines": {
628
+ "node": ">= 0.4"
629
+ },
630
+ "funding": {
631
+ "url": "https://github.com/sponsors/ljharb"
632
+ }
633
+ },
634
+ "node_modules/get-proto": {
635
+ "version": "1.0.1",
636
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
637
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
638
+ "license": "MIT",
639
+ "dependencies": {
640
+ "dunder-proto": "^1.0.1",
641
+ "es-object-atoms": "^1.0.0"
642
+ },
643
+ "engines": {
644
+ "node": ">= 0.4"
645
+ }
646
+ },
647
+ "node_modules/google-protobuf": {
648
+ "version": "3.21.4",
649
+ "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.4.tgz",
650
+ "integrity": "sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==",
651
+ "license": "(BSD-3-Clause AND Apache-2.0)"
652
+ },
653
+ "node_modules/gopd": {
654
+ "version": "1.2.0",
655
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
656
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
657
+ "license": "MIT",
658
+ "engines": {
659
+ "node": ">= 0.4"
660
+ },
661
+ "funding": {
662
+ "url": "https://github.com/sponsors/ljharb"
663
+ }
664
+ },
665
+ "node_modules/has-symbols": {
666
+ "version": "1.1.0",
667
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
668
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
669
+ "license": "MIT",
670
+ "engines": {
671
+ "node": ">= 0.4"
672
+ },
673
+ "funding": {
674
+ "url": "https://github.com/sponsors/ljharb"
675
+ }
676
+ },
677
+ "node_modules/has-tostringtag": {
678
+ "version": "1.0.2",
679
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
680
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
681
+ "license": "MIT",
682
+ "dependencies": {
683
+ "has-symbols": "^1.0.3"
684
+ },
685
+ "engines": {
686
+ "node": ">= 0.4"
687
+ },
688
+ "funding": {
689
+ "url": "https://github.com/sponsors/ljharb"
690
+ }
691
+ },
692
+ "node_modules/hasown": {
693
+ "version": "2.0.4",
694
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
695
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
696
+ "license": "MIT",
697
+ "dependencies": {
698
+ "function-bind": "^1.1.2"
699
+ },
700
+ "engines": {
701
+ "node": ">= 0.4"
702
+ }
703
+ },
704
+ "node_modules/http-errors": {
705
+ "version": "2.0.1",
706
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
707
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
708
+ "license": "MIT",
709
+ "dependencies": {
710
+ "depd": "~2.0.0",
711
+ "inherits": "~2.0.4",
712
+ "setprototypeof": "~1.2.0",
713
+ "statuses": "~2.0.2",
714
+ "toidentifier": "~1.0.1"
715
+ },
716
+ "engines": {
717
+ "node": ">= 0.8"
718
+ },
719
+ "funding": {
720
+ "type": "opencollective",
721
+ "url": "https://opencollective.com/express"
722
+ }
723
+ },
724
+ "node_modules/https-proxy-agent": {
725
+ "version": "5.0.1",
726
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
727
+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
728
+ "license": "MIT",
729
+ "dependencies": {
730
+ "agent-base": "6",
731
+ "debug": "4"
732
+ },
733
+ "engines": {
734
+ "node": ">= 6"
735
+ }
736
+ },
737
+ "node_modules/iconv-lite": {
738
+ "version": "0.7.3",
739
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",
740
+ "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",
741
+ "license": "MIT",
742
+ "dependencies": {
743
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
744
+ },
745
+ "engines": {
746
+ "node": ">=0.10.0"
747
+ },
748
+ "funding": {
749
+ "type": "opencollective",
750
+ "url": "https://opencollective.com/express"
751
+ }
752
+ },
753
+ "node_modules/inherits": {
754
+ "version": "2.0.4",
755
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
756
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
757
+ "license": "ISC"
758
+ },
759
+ "node_modules/ipaddr.js": {
760
+ "version": "1.9.1",
761
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
762
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
763
+ "license": "MIT",
764
+ "engines": {
765
+ "node": ">= 0.10"
766
+ }
767
+ },
768
+ "node_modules/is-promise": {
769
+ "version": "4.0.0",
770
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
771
+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
772
+ "license": "MIT"
773
+ },
774
+ "node_modules/math-intrinsics": {
775
+ "version": "1.1.0",
776
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
777
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
778
+ "license": "MIT",
779
+ "engines": {
780
+ "node": ">= 0.4"
781
+ }
782
+ },
783
+ "node_modules/media-typer": {
784
+ "version": "1.1.0",
785
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
786
+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
787
+ "license": "MIT",
788
+ "engines": {
789
+ "node": ">= 0.8"
790
+ }
791
+ },
792
+ "node_modules/merge-descriptors": {
793
+ "version": "2.0.0",
794
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
795
+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
796
+ "license": "MIT",
797
+ "engines": {
798
+ "node": ">=18"
799
+ },
800
+ "funding": {
801
+ "url": "https://github.com/sponsors/sindresorhus"
802
+ }
803
+ },
804
+ "node_modules/mime-db": {
805
+ "version": "1.54.0",
806
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
807
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
808
+ "license": "MIT",
809
+ "engines": {
810
+ "node": ">= 0.6"
811
+ }
812
+ },
813
+ "node_modules/mime-types": {
814
+ "version": "3.0.2",
815
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
816
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
817
+ "license": "MIT",
818
+ "dependencies": {
819
+ "mime-db": "^1.54.0"
820
+ },
821
+ "engines": {
822
+ "node": ">=18"
823
+ },
824
+ "funding": {
825
+ "type": "opencollective",
826
+ "url": "https://opencollective.com/express"
827
+ }
828
+ },
829
+ "node_modules/mitt": {
830
+ "version": "3.0.1",
831
+ "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
832
+ "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",
833
+ "license": "MIT"
834
+ },
835
+ "node_modules/modern-tar": {
836
+ "version": "0.7.6",
837
+ "resolved": "https://registry.npmjs.org/modern-tar/-/modern-tar-0.7.6.tgz",
838
+ "integrity": "sha512-sweCIVXzx1aIGTCdzcMlSZt1h8k5Tmk08VNAuRk3IU28XamGiOH5ypi11g6De2CH7PhYqSSnGy2A/EFhbWnVKg==",
839
+ "license": "MIT",
840
+ "engines": {
841
+ "node": ">=18.0.0"
842
+ }
843
+ },
844
+ "node_modules/ms": {
845
+ "version": "2.1.3",
846
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
847
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
848
+ "license": "MIT"
849
+ },
850
+ "node_modules/negotiator": {
851
+ "version": "1.0.0",
852
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
853
+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
854
+ "license": "MIT",
855
+ "engines": {
856
+ "node": ">= 0.6"
857
+ }
858
+ },
859
+ "node_modules/object-inspect": {
860
+ "version": "1.13.4",
861
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
862
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
863
+ "license": "MIT",
864
+ "engines": {
865
+ "node": ">= 0.4"
866
+ },
867
+ "funding": {
868
+ "url": "https://github.com/sponsors/ljharb"
869
+ }
870
+ },
871
+ "node_modules/on-finished": {
872
+ "version": "2.4.1",
873
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
874
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
875
+ "license": "MIT",
876
+ "dependencies": {
877
+ "ee-first": "1.1.1"
878
+ },
879
+ "engines": {
880
+ "node": ">= 0.8"
881
+ }
882
+ },
883
+ "node_modules/once": {
884
+ "version": "1.4.0",
885
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
886
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
887
+ "license": "ISC",
888
+ "dependencies": {
889
+ "wrappy": "1"
890
+ }
891
+ },
892
+ "node_modules/otpauth": {
893
+ "version": "9.5.1",
894
+ "resolved": "https://registry.npmjs.org/otpauth/-/otpauth-9.5.1.tgz",
895
+ "integrity": "sha512-fJmDAHc8wImfqqqOXIlBvT1dEKrZK0Cmb2VEgScpNTolCz0PHh6ExUZGv4sLtOsWNaHCQlD+rRqaPgnoxFoZjQ==",
896
+ "license": "MIT",
897
+ "dependencies": {
898
+ "@noble/hashes": "2.2.0"
899
+ },
900
+ "funding": {
901
+ "url": "https://github.com/hectorm/otpauth?sponsor=1"
902
+ }
903
+ },
904
+ "node_modules/parseurl": {
905
+ "version": "1.3.3",
906
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
907
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
908
+ "license": "MIT",
909
+ "engines": {
910
+ "node": ">= 0.8"
911
+ }
912
+ },
913
+ "node_modules/path-to-regexp": {
914
+ "version": "8.4.2",
915
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",
916
+ "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",
917
+ "license": "MIT",
918
+ "funding": {
919
+ "type": "opencollective",
920
+ "url": "https://opencollective.com/express"
921
+ }
922
+ },
923
+ "node_modules/proxy-addr": {
924
+ "version": "2.0.7",
925
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
926
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
927
+ "license": "MIT",
928
+ "dependencies": {
929
+ "forwarded": "0.2.0",
930
+ "ipaddr.js": "1.9.1"
931
+ },
932
+ "engines": {
933
+ "node": ">= 0.10"
934
+ }
935
+ },
936
+ "node_modules/proxy-from-env": {
937
+ "version": "2.1.0",
938
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
939
+ "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",
940
+ "license": "MIT",
941
+ "engines": {
942
+ "node": ">=10"
943
+ }
944
+ },
945
+ "node_modules/puppeteer-core": {
946
+ "version": "25.3.0",
947
+ "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.3.0.tgz",
948
+ "integrity": "sha512-fm+wpUr2oigH1PXZvwgATrM2tYWHMDG8ASzTEe9uukCye4X5Ldx1K5BTHPFKITrIWvQQAQ256d1NpbEveBcKjA==",
949
+ "license": "Apache-2.0",
950
+ "dependencies": {
951
+ "@puppeteer/browsers": "3.0.6",
952
+ "chromium-bidi": "16.0.1",
953
+ "devtools-protocol": "0.0.1638949",
954
+ "typed-query-selector": "^2.12.2",
955
+ "webdriver-bidi-protocol": "0.4.2",
956
+ "ws": "^8.21.0"
957
+ },
958
+ "engines": {
959
+ "node": ">=22.12.0"
960
+ }
961
+ },
962
+ "node_modules/qs": {
963
+ "version": "6.15.3",
964
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz",
965
+ "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==",
966
+ "license": "BSD-3-Clause",
967
+ "dependencies": {
968
+ "es-define-property": "^1.0.1",
969
+ "side-channel": "^1.1.1"
970
+ },
971
+ "engines": {
972
+ "node": ">=0.6"
973
+ },
974
+ "funding": {
975
+ "url": "https://github.com/sponsors/ljharb"
976
+ }
977
+ },
978
+ "node_modules/range-parser": {
979
+ "version": "1.3.0",
980
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz",
981
+ "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==",
982
+ "license": "MIT",
983
+ "engines": {
984
+ "node": ">= 0.6"
985
+ },
986
+ "funding": {
987
+ "type": "opencollective",
988
+ "url": "https://opencollective.com/express"
989
+ }
990
+ },
991
+ "node_modules/raw-body": {
992
+ "version": "3.0.2",
993
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
994
+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
995
+ "license": "MIT",
996
+ "dependencies": {
997
+ "bytes": "~3.1.2",
998
+ "http-errors": "~2.0.1",
999
+ "iconv-lite": "~0.7.0",
1000
+ "unpipe": "~1.0.0"
1001
+ },
1002
+ "engines": {
1003
+ "node": ">= 0.10"
1004
+ }
1005
+ },
1006
+ "node_modules/router": {
1007
+ "version": "2.2.0",
1008
+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
1009
+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
1010
+ "license": "MIT",
1011
+ "dependencies": {
1012
+ "debug": "^4.4.0",
1013
+ "depd": "^2.0.0",
1014
+ "is-promise": "^4.0.0",
1015
+ "parseurl": "^1.3.3",
1016
+ "path-to-regexp": "^8.0.0"
1017
+ },
1018
+ "engines": {
1019
+ "node": ">= 18"
1020
+ }
1021
+ },
1022
+ "node_modules/safer-buffer": {
1023
+ "version": "2.1.2",
1024
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1025
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
1026
+ "license": "MIT"
1027
+ },
1028
+ "node_modules/send": {
1029
+ "version": "1.2.1",
1030
+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",
1031
+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
1032
+ "license": "MIT",
1033
+ "dependencies": {
1034
+ "debug": "^4.4.3",
1035
+ "encodeurl": "^2.0.0",
1036
+ "escape-html": "^1.0.3",
1037
+ "etag": "^1.8.1",
1038
+ "fresh": "^2.0.0",
1039
+ "http-errors": "^2.0.1",
1040
+ "mime-types": "^3.0.2",
1041
+ "ms": "^2.1.3",
1042
+ "on-finished": "^2.4.1",
1043
+ "range-parser": "^1.2.1",
1044
+ "statuses": "^2.0.2"
1045
+ },
1046
+ "engines": {
1047
+ "node": ">= 18"
1048
+ },
1049
+ "funding": {
1050
+ "type": "opencollective",
1051
+ "url": "https://opencollective.com/express"
1052
+ }
1053
+ },
1054
+ "node_modules/serve-static": {
1055
+ "version": "2.2.1",
1056
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",
1057
+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
1058
+ "license": "MIT",
1059
+ "dependencies": {
1060
+ "encodeurl": "^2.0.0",
1061
+ "escape-html": "^1.0.3",
1062
+ "parseurl": "^1.3.3",
1063
+ "send": "^1.2.0"
1064
+ },
1065
+ "engines": {
1066
+ "node": ">= 18"
1067
+ },
1068
+ "funding": {
1069
+ "type": "opencollective",
1070
+ "url": "https://opencollective.com/express"
1071
+ }
1072
+ },
1073
+ "node_modules/setprototypeof": {
1074
+ "version": "1.2.0",
1075
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1076
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
1077
+ "license": "ISC"
1078
+ },
1079
+ "node_modules/side-channel": {
1080
+ "version": "1.1.1",
1081
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
1082
+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
1083
+ "license": "MIT",
1084
+ "dependencies": {
1085
+ "es-errors": "^1.3.0",
1086
+ "object-inspect": "^1.13.4",
1087
+ "side-channel-list": "^1.0.1",
1088
+ "side-channel-map": "^1.0.1",
1089
+ "side-channel-weakmap": "^1.0.2"
1090
+ },
1091
+ "engines": {
1092
+ "node": ">= 0.4"
1093
+ },
1094
+ "funding": {
1095
+ "url": "https://github.com/sponsors/ljharb"
1096
+ }
1097
+ },
1098
+ "node_modules/side-channel-list": {
1099
+ "version": "1.0.1",
1100
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
1101
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
1102
+ "license": "MIT",
1103
+ "dependencies": {
1104
+ "es-errors": "^1.3.0",
1105
+ "object-inspect": "^1.13.4"
1106
+ },
1107
+ "engines": {
1108
+ "node": ">= 0.4"
1109
+ },
1110
+ "funding": {
1111
+ "url": "https://github.com/sponsors/ljharb"
1112
+ }
1113
+ },
1114
+ "node_modules/side-channel-map": {
1115
+ "version": "1.0.1",
1116
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
1117
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
1118
+ "license": "MIT",
1119
+ "dependencies": {
1120
+ "call-bound": "^1.0.2",
1121
+ "es-errors": "^1.3.0",
1122
+ "get-intrinsic": "^1.2.5",
1123
+ "object-inspect": "^1.13.3"
1124
+ },
1125
+ "engines": {
1126
+ "node": ">= 0.4"
1127
+ },
1128
+ "funding": {
1129
+ "url": "https://github.com/sponsors/ljharb"
1130
+ }
1131
+ },
1132
+ "node_modules/side-channel-weakmap": {
1133
+ "version": "1.0.2",
1134
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
1135
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
1136
+ "license": "MIT",
1137
+ "dependencies": {
1138
+ "call-bound": "^1.0.2",
1139
+ "es-errors": "^1.3.0",
1140
+ "get-intrinsic": "^1.2.5",
1141
+ "object-inspect": "^1.13.3",
1142
+ "side-channel-map": "^1.0.1"
1143
+ },
1144
+ "engines": {
1145
+ "node": ">= 0.4"
1146
+ },
1147
+ "funding": {
1148
+ "url": "https://github.com/sponsors/ljharb"
1149
+ }
1150
+ },
1151
+ "node_modules/statuses": {
1152
+ "version": "2.0.2",
1153
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
1154
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
1155
+ "license": "MIT",
1156
+ "engines": {
1157
+ "node": ">= 0.8"
1158
+ }
1159
+ },
1160
+ "node_modules/string-width": {
1161
+ "version": "7.2.0",
1162
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
1163
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
1164
+ "license": "MIT",
1165
+ "dependencies": {
1166
+ "emoji-regex": "^10.3.0",
1167
+ "get-east-asian-width": "^1.0.0",
1168
+ "strip-ansi": "^7.1.0"
1169
+ },
1170
+ "engines": {
1171
+ "node": ">=18"
1172
+ },
1173
+ "funding": {
1174
+ "url": "https://github.com/sponsors/sindresorhus"
1175
+ }
1176
+ },
1177
+ "node_modules/strip-ansi": {
1178
+ "version": "7.2.0",
1179
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
1180
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
1181
+ "license": "MIT",
1182
+ "dependencies": {
1183
+ "ansi-regex": "^6.2.2"
1184
+ },
1185
+ "engines": {
1186
+ "node": ">=12"
1187
+ },
1188
+ "funding": {
1189
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
1190
+ }
1191
+ },
1192
+ "node_modules/toidentifier": {
1193
+ "version": "1.0.1",
1194
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1195
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
1196
+ "license": "MIT",
1197
+ "engines": {
1198
+ "node": ">=0.6"
1199
+ }
1200
+ },
1201
+ "node_modules/type-is": {
1202
+ "version": "2.1.0",
1203
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz",
1204
+ "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==",
1205
+ "license": "MIT",
1206
+ "dependencies": {
1207
+ "content-type": "^2.0.0",
1208
+ "media-typer": "^1.1.0",
1209
+ "mime-types": "^3.0.0"
1210
+ },
1211
+ "engines": {
1212
+ "node": ">= 18"
1213
+ },
1214
+ "funding": {
1215
+ "type": "opencollective",
1216
+ "url": "https://opencollective.com/express"
1217
+ }
1218
+ },
1219
+ "node_modules/type-is/node_modules/content-type": {
1220
+ "version": "2.0.0",
1221
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",
1222
+ "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",
1223
+ "license": "MIT",
1224
+ "engines": {
1225
+ "node": ">=18"
1226
+ },
1227
+ "funding": {
1228
+ "type": "opencollective",
1229
+ "url": "https://opencollective.com/express"
1230
+ }
1231
+ },
1232
+ "node_modules/typed-query-selector": {
1233
+ "version": "2.12.2",
1234
+ "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.2.tgz",
1235
+ "integrity": "sha512-EOPFbyIub4ngnEdqi2yOcNeDLaX/0jcE1JoAXQDDMIthap7FoN795lc/SHfIq2d416VufXpM8z/lD+WRm2gfOQ==",
1236
+ "license": "MIT"
1237
+ },
1238
+ "node_modules/unpipe": {
1239
+ "version": "1.0.0",
1240
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1241
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1242
+ "license": "MIT",
1243
+ "engines": {
1244
+ "node": ">= 0.8"
1245
+ }
1246
+ },
1247
+ "node_modules/vary": {
1248
+ "version": "1.1.2",
1249
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1250
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1251
+ "license": "MIT",
1252
+ "engines": {
1253
+ "node": ">= 0.8"
1254
+ }
1255
+ },
1256
+ "node_modules/webdriver-bidi-protocol": {
1257
+ "version": "0.4.2",
1258
+ "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.2.tgz",
1259
+ "integrity": "sha512-VSV+fzfChirL3e7jay2yUC7B4HQCGtEWEg/MSSQbK+qWbqeGlRLlXTzPpYr3XGUvbpDHumWZBJxgesg4N7dbtA==",
1260
+ "license": "Apache-2.0"
1261
+ },
1262
+ "node_modules/wrap-ansi": {
1263
+ "version": "9.0.2",
1264
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
1265
+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
1266
+ "license": "MIT",
1267
+ "dependencies": {
1268
+ "ansi-styles": "^6.2.1",
1269
+ "string-width": "^7.0.0",
1270
+ "strip-ansi": "^7.1.0"
1271
+ },
1272
+ "engines": {
1273
+ "node": ">=18"
1274
+ },
1275
+ "funding": {
1276
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
1277
+ }
1278
+ },
1279
+ "node_modules/wrappy": {
1280
+ "version": "1.0.2",
1281
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1282
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
1283
+ "license": "ISC"
1284
+ },
1285
+ "node_modules/ws": {
1286
+ "version": "8.21.0",
1287
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
1288
+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
1289
+ "license": "MIT",
1290
+ "engines": {
1291
+ "node": ">=10.0.0"
1292
+ },
1293
+ "peerDependencies": {
1294
+ "bufferutil": "^4.0.1",
1295
+ "utf-8-validate": ">=5.0.2"
1296
+ },
1297
+ "peerDependenciesMeta": {
1298
+ "bufferutil": {
1299
+ "optional": true
1300
+ },
1301
+ "utf-8-validate": {
1302
+ "optional": true
1303
+ }
1304
+ }
1305
+ },
1306
+ "node_modules/y18n": {
1307
+ "version": "5.0.8",
1308
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
1309
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
1310
+ "license": "ISC",
1311
+ "engines": {
1312
+ "node": ">=10"
1313
+ }
1314
+ },
1315
+ "node_modules/yargs": {
1316
+ "version": "18.0.0",
1317
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz",
1318
+ "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==",
1319
+ "license": "MIT",
1320
+ "dependencies": {
1321
+ "cliui": "^9.0.1",
1322
+ "escalade": "^3.1.1",
1323
+ "get-caller-file": "^2.0.5",
1324
+ "string-width": "^7.2.0",
1325
+ "y18n": "^5.0.5",
1326
+ "yargs-parser": "^22.0.0"
1327
+ },
1328
+ "engines": {
1329
+ "node": "^20.19.0 || ^22.12.0 || >=23"
1330
+ }
1331
+ },
1332
+ "node_modules/yargs-parser": {
1333
+ "version": "22.0.0",
1334
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz",
1335
+ "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==",
1336
+ "license": "ISC",
1337
+ "engines": {
1338
+ "node": "^20.19.0 || ^22.12.0 || >=23"
1339
+ }
1340
+ },
1341
+ "node_modules/zod": {
1342
+ "version": "3.25.76",
1343
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
1344
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
1345
+ "license": "MIT",
1346
+ "funding": {
1347
+ "url": "https://github.com/sponsors/colinhacks"
1348
+ }
1349
+ }
1350
+ }
1351
+ }
package.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Spotify-Canvas-API",
3
+ "version": "2.0.0",
4
+ "description": "Unofficial API to fetch Spotify **Canvas video data** (the looping visual videos that appear behind songs on mobile).",
5
+ "type": "module",
6
+ "main": "index.js",
7
+ "keywords": [
8
+ "spotify",
9
+ "canvas",
10
+ "api"
11
+ ],
12
+ "author": "Paxsenix0",
13
+ "license": "MIT",
14
+ "dependencies": {
15
+ "axios": "^1.6.0",
16
+ "dotenv": "latest",
17
+ "express": "latest",
18
+ "google-protobuf": "^3.11.4",
19
+ "otpauth": "latest",
20
+ "puppeteer-core": "^25.3.0"
21
+ }
22
+ }
proto/_canvas.proto ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // generate javascript interfaces:
2
+ // $ protoc --proto_path=api --js_out=import_style=commonjs,binary:api/ api/_canvas.proto
3
+
4
+ syntax = "proto3";
5
+
6
+ message CanvasRequest {
7
+ message Track {
8
+ string track_uri = 1; // spotify:track:5osCClSjGplWagDsJmyivf
9
+ }
10
+ repeated Track tracks = 1;
11
+ }
12
+
13
+ message CanvasResponse {
14
+ message Canvas {
15
+ string id = 1; // ef3bc2ac86ba4a39b2cddff19dca884a
16
+ string canvas_url = 2; // https://canvaz.scdn.co/upload/artist/6i1GVNJCyyssRwXmnaeEFH/video/ef3bc2ac86ba4a39b2cddff19dca884a.cnvs.mp4
17
+ string track_uri = 5; // spotify:track:5osCClSjGplWagDsJmyivf
18
+ message Artist {
19
+ string artist_uri = 1; // spotify:artist:3E61SnNA9oqKP7hI0K3vZv
20
+ string artist_name = 2; // CALVO
21
+ string artist_img_url = 3; // https://i.scdn.co/image/2d7b0ebe1e06c74f5c6b9a2384d746673051241d
22
+ }
23
+ Artist artist = 6;
24
+ string other_id = 9; // 957a9be5e5c1b9ef1ac1c96b7cebf396
25
+ string canvas_uri = 11; // spotify:canvas:1OuybAWK7XOQMG725ZtFwG
26
+ }
27
+ repeated Canvas canvases = 1;
28
+ }
proto/_canvas_pb.cjs ADDED
@@ -0,0 +1,1066 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // source: _canvas.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
+ * field starts with 'MSG_' and isn't a translatable message.
7
+ * @public
8
+ */
9
+ // GENERATED CODE -- DO NOT EDIT!
10
+
11
+ var jspb = require('google-protobuf');
12
+ var goog = jspb;
13
+ var global = Function('return this')();
14
+
15
+ goog.exportSymbol('proto.CanvasRequest', null, global);
16
+ goog.exportSymbol('proto.CanvasRequest.Track', null, global);
17
+ goog.exportSymbol('proto.CanvasResponse', null, global);
18
+ goog.exportSymbol('proto.CanvasResponse.Canvas', null, global);
19
+ goog.exportSymbol('proto.CanvasResponse.Canvas.Artist', null, global);
20
+ /**
21
+ * Generated by JsPbCodeGenerator.
22
+ * @param {Array=} opt_data Optional initial data array, typically from a
23
+ * server response, or constructed directly in Javascript. The array is used
24
+ * in place and becomes part of the constructed object. It is not cloned.
25
+ * If no data is provided, the constructed object will be empty, but still
26
+ * valid.
27
+ * @extends {jspb.Message}
28
+ * @constructor
29
+ */
30
+ proto.CanvasRequest = function(opt_data) {
31
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.CanvasRequest.repeatedFields_, null);
32
+ };
33
+ goog.inherits(proto.CanvasRequest, jspb.Message);
34
+ if (goog.DEBUG && !COMPILED) {
35
+ /**
36
+ * @public
37
+ * @override
38
+ */
39
+ proto.CanvasRequest.displayName = 'proto.CanvasRequest';
40
+ }
41
+ /**
42
+ * Generated by JsPbCodeGenerator.
43
+ * @param {Array=} opt_data Optional initial data array, typically from a
44
+ * server response, or constructed directly in Javascript. The array is used
45
+ * in place and becomes part of the constructed object. It is not cloned.
46
+ * If no data is provided, the constructed object will be empty, but still
47
+ * valid.
48
+ * @extends {jspb.Message}
49
+ * @constructor
50
+ */
51
+ proto.CanvasRequest.Track = function(opt_data) {
52
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
53
+ };
54
+ goog.inherits(proto.CanvasRequest.Track, jspb.Message);
55
+ if (goog.DEBUG && !COMPILED) {
56
+ /**
57
+ * @public
58
+ * @override
59
+ */
60
+ proto.CanvasRequest.Track.displayName = 'proto.CanvasRequest.Track';
61
+ }
62
+ /**
63
+ * Generated by JsPbCodeGenerator.
64
+ * @param {Array=} opt_data Optional initial data array, typically from a
65
+ * server response, or constructed directly in Javascript. The array is used
66
+ * in place and becomes part of the constructed object. It is not cloned.
67
+ * If no data is provided, the constructed object will be empty, but still
68
+ * valid.
69
+ * @extends {jspb.Message}
70
+ * @constructor
71
+ */
72
+ proto.CanvasResponse = function(opt_data) {
73
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.CanvasResponse.repeatedFields_, null);
74
+ };
75
+ goog.inherits(proto.CanvasResponse, jspb.Message);
76
+ if (goog.DEBUG && !COMPILED) {
77
+ /**
78
+ * @public
79
+ * @override
80
+ */
81
+ proto.CanvasResponse.displayName = 'proto.CanvasResponse';
82
+ }
83
+ /**
84
+ * Generated by JsPbCodeGenerator.
85
+ * @param {Array=} opt_data Optional initial data array, typically from a
86
+ * server response, or constructed directly in Javascript. The array is used
87
+ * in place and becomes part of the constructed object. It is not cloned.
88
+ * If no data is provided, the constructed object will be empty, but still
89
+ * valid.
90
+ * @extends {jspb.Message}
91
+ * @constructor
92
+ */
93
+ proto.CanvasResponse.Canvas = function(opt_data) {
94
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
95
+ };
96
+ goog.inherits(proto.CanvasResponse.Canvas, jspb.Message);
97
+ if (goog.DEBUG && !COMPILED) {
98
+ /**
99
+ * @public
100
+ * @override
101
+ */
102
+ proto.CanvasResponse.Canvas.displayName = 'proto.CanvasResponse.Canvas';
103
+ }
104
+ /**
105
+ * Generated by JsPbCodeGenerator.
106
+ * @param {Array=} opt_data Optional initial data array, typically from a
107
+ * server response, or constructed directly in Javascript. The array is used
108
+ * in place and becomes part of the constructed object. It is not cloned.
109
+ * If no data is provided, the constructed object will be empty, but still
110
+ * valid.
111
+ * @extends {jspb.Message}
112
+ * @constructor
113
+ */
114
+ proto.CanvasResponse.Canvas.Artist = function(opt_data) {
115
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
116
+ };
117
+ goog.inherits(proto.CanvasResponse.Canvas.Artist, jspb.Message);
118
+ if (goog.DEBUG && !COMPILED) {
119
+ /**
120
+ * @public
121
+ * @override
122
+ */
123
+ proto.CanvasResponse.Canvas.Artist.displayName = 'proto.CanvasResponse.Canvas.Artist';
124
+ }
125
+
126
+ /**
127
+ * List of repeated fields within this message type.
128
+ * @private {!Array<number>}
129
+ * @const
130
+ */
131
+ proto.CanvasRequest.repeatedFields_ = [1];
132
+
133
+
134
+
135
+ if (jspb.Message.GENERATE_TO_OBJECT) {
136
+ /**
137
+ * Creates an object representation of this proto.
138
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
139
+ * Optional fields that are not set will be set to undefined.
140
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
141
+ * For the list of reserved names please see:
142
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
143
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
144
+ * JSPB instance for transitional soy proto support:
145
+ * http://goto/soy-param-migration
146
+ * @return {!Object}
147
+ */
148
+ proto.CanvasRequest.prototype.toObject = function(opt_includeInstance) {
149
+ return proto.CanvasRequest.toObject(opt_includeInstance, this);
150
+ };
151
+
152
+
153
+ /**
154
+ * Static version of the {@see toObject} method.
155
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
156
+ * the JSPB instance for transitional soy proto support:
157
+ * http://goto/soy-param-migration
158
+ * @param {!proto.CanvasRequest} msg The msg instance to transform.
159
+ * @return {!Object}
160
+ * @suppress {unusedLocalVariables} f is only used for nested messages
161
+ */
162
+ proto.CanvasRequest.toObject = function(includeInstance, msg) {
163
+ var f, obj = {
164
+ tracksList: jspb.Message.toObjectList(msg.getTracksList(),
165
+ proto.CanvasRequest.Track.toObject, includeInstance)
166
+ };
167
+
168
+ if (includeInstance) {
169
+ obj.$jspbMessageInstance = msg;
170
+ }
171
+ return obj;
172
+ };
173
+ }
174
+
175
+
176
+ /**
177
+ * Deserializes binary data (in protobuf wire format).
178
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
179
+ * @return {!proto.CanvasRequest}
180
+ */
181
+ proto.CanvasRequest.deserializeBinary = function(bytes) {
182
+ var reader = new jspb.BinaryReader(bytes);
183
+ var msg = new proto.CanvasRequest;
184
+ return proto.CanvasRequest.deserializeBinaryFromReader(msg, reader);
185
+ };
186
+
187
+
188
+ /**
189
+ * Deserializes binary data (in protobuf wire format) from the
190
+ * given reader into the given message object.
191
+ * @param {!proto.CanvasRequest} msg The message object to deserialize into.
192
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
193
+ * @return {!proto.CanvasRequest}
194
+ */
195
+ proto.CanvasRequest.deserializeBinaryFromReader = function(msg, reader) {
196
+ while (reader.nextField()) {
197
+ if (reader.isEndGroup()) {
198
+ break;
199
+ }
200
+ var field = reader.getFieldNumber();
201
+ switch (field) {
202
+ case 1:
203
+ var value = new proto.CanvasRequest.Track;
204
+ reader.readMessage(value,proto.CanvasRequest.Track.deserializeBinaryFromReader);
205
+ msg.addTracks(value);
206
+ break;
207
+ default:
208
+ reader.skipField();
209
+ break;
210
+ }
211
+ }
212
+ return msg;
213
+ };
214
+
215
+
216
+ /**
217
+ * Serializes the message to binary data (in protobuf wire format).
218
+ * @return {!Uint8Array}
219
+ */
220
+ proto.CanvasRequest.prototype.serializeBinary = function() {
221
+ var writer = new jspb.BinaryWriter();
222
+ proto.CanvasRequest.serializeBinaryToWriter(this, writer);
223
+ return writer.getResultBuffer();
224
+ };
225
+
226
+
227
+ /**
228
+ * Serializes the given message to binary data (in protobuf wire
229
+ * format), writing to the given BinaryWriter.
230
+ * @param {!proto.CanvasRequest} message
231
+ * @param {!jspb.BinaryWriter} writer
232
+ * @suppress {unusedLocalVariables} f is only used for nested messages
233
+ */
234
+ proto.CanvasRequest.serializeBinaryToWriter = function(message, writer) {
235
+ var f = undefined;
236
+ f = message.getTracksList();
237
+ if (f.length > 0) {
238
+ writer.writeRepeatedMessage(
239
+ 1,
240
+ f,
241
+ proto.CanvasRequest.Track.serializeBinaryToWriter
242
+ );
243
+ }
244
+ };
245
+
246
+
247
+
248
+
249
+
250
+ if (jspb.Message.GENERATE_TO_OBJECT) {
251
+ /**
252
+ * Creates an object representation of this proto.
253
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
254
+ * Optional fields that are not set will be set to undefined.
255
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
256
+ * For the list of reserved names please see:
257
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
258
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
259
+ * JSPB instance for transitional soy proto support:
260
+ * http://goto/soy-param-migration
261
+ * @return {!Object}
262
+ */
263
+ proto.CanvasRequest.Track.prototype.toObject = function(opt_includeInstance) {
264
+ return proto.CanvasRequest.Track.toObject(opt_includeInstance, this);
265
+ };
266
+
267
+
268
+ /**
269
+ * Static version of the {@see toObject} method.
270
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
271
+ * the JSPB instance for transitional soy proto support:
272
+ * http://goto/soy-param-migration
273
+ * @param {!proto.CanvasRequest.Track} msg The msg instance to transform.
274
+ * @return {!Object}
275
+ * @suppress {unusedLocalVariables} f is only used for nested messages
276
+ */
277
+ proto.CanvasRequest.Track.toObject = function(includeInstance, msg) {
278
+ var f, obj = {
279
+ trackUri: jspb.Message.getFieldWithDefault(msg, 1, "")
280
+ };
281
+
282
+ if (includeInstance) {
283
+ obj.$jspbMessageInstance = msg;
284
+ }
285
+ return obj;
286
+ };
287
+ }
288
+
289
+
290
+ /**
291
+ * Deserializes binary data (in protobuf wire format).
292
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
293
+ * @return {!proto.CanvasRequest.Track}
294
+ */
295
+ proto.CanvasRequest.Track.deserializeBinary = function(bytes) {
296
+ var reader = new jspb.BinaryReader(bytes);
297
+ var msg = new proto.CanvasRequest.Track;
298
+ return proto.CanvasRequest.Track.deserializeBinaryFromReader(msg, reader);
299
+ };
300
+
301
+
302
+ /**
303
+ * Deserializes binary data (in protobuf wire format) from the
304
+ * given reader into the given message object.
305
+ * @param {!proto.CanvasRequest.Track} msg The message object to deserialize into.
306
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
307
+ * @return {!proto.CanvasRequest.Track}
308
+ */
309
+ proto.CanvasRequest.Track.deserializeBinaryFromReader = function(msg, reader) {
310
+ while (reader.nextField()) {
311
+ if (reader.isEndGroup()) {
312
+ break;
313
+ }
314
+ var field = reader.getFieldNumber();
315
+ switch (field) {
316
+ case 1:
317
+ var value = /** @type {string} */ (reader.readString());
318
+ msg.setTrackUri(value);
319
+ break;
320
+ default:
321
+ reader.skipField();
322
+ break;
323
+ }
324
+ }
325
+ return msg;
326
+ };
327
+
328
+
329
+ /**
330
+ * Serializes the message to binary data (in protobuf wire format).
331
+ * @return {!Uint8Array}
332
+ */
333
+ proto.CanvasRequest.Track.prototype.serializeBinary = function() {
334
+ var writer = new jspb.BinaryWriter();
335
+ proto.CanvasRequest.Track.serializeBinaryToWriter(this, writer);
336
+ return writer.getResultBuffer();
337
+ };
338
+
339
+
340
+ /**
341
+ * Serializes the given message to binary data (in protobuf wire
342
+ * format), writing to the given BinaryWriter.
343
+ * @param {!proto.CanvasRequest.Track} message
344
+ * @param {!jspb.BinaryWriter} writer
345
+ * @suppress {unusedLocalVariables} f is only used for nested messages
346
+ */
347
+ proto.CanvasRequest.Track.serializeBinaryToWriter = function(message, writer) {
348
+ var f = undefined;
349
+ f = message.getTrackUri();
350
+ if (f.length > 0) {
351
+ writer.writeString(
352
+ 1,
353
+ f
354
+ );
355
+ }
356
+ };
357
+
358
+
359
+ /**
360
+ * optional string track_uri = 1;
361
+ * @return {string}
362
+ */
363
+ proto.CanvasRequest.Track.prototype.getTrackUri = function() {
364
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
365
+ };
366
+
367
+
368
+ /**
369
+ * @param {string} value
370
+ * @return {!proto.CanvasRequest.Track} returns this
371
+ */
372
+ proto.CanvasRequest.Track.prototype.setTrackUri = function(value) {
373
+ return jspb.Message.setProto3StringField(this, 1, value);
374
+ };
375
+
376
+
377
+ /**
378
+ * repeated Track tracks = 1;
379
+ * @return {!Array<!proto.CanvasRequest.Track>}
380
+ */
381
+ proto.CanvasRequest.prototype.getTracksList = function() {
382
+ return /** @type{!Array<!proto.CanvasRequest.Track>} */ (
383
+ jspb.Message.getRepeatedWrapperField(this, proto.CanvasRequest.Track, 1));
384
+ };
385
+
386
+
387
+ /**
388
+ * @param {!Array<!proto.CanvasRequest.Track>} value
389
+ * @return {!proto.CanvasRequest} returns this
390
+ */
391
+ proto.CanvasRequest.prototype.setTracksList = function(value) {
392
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
393
+ };
394
+
395
+
396
+ /**
397
+ * @param {!proto.CanvasRequest.Track=} opt_value
398
+ * @param {number=} opt_index
399
+ * @return {!proto.CanvasRequest.Track}
400
+ */
401
+ proto.CanvasRequest.prototype.addTracks = function(opt_value, opt_index) {
402
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.CanvasRequest.Track, opt_index);
403
+ };
404
+
405
+
406
+ /**
407
+ * Clears the list making it empty but non-null.
408
+ * @return {!proto.CanvasRequest} returns this
409
+ */
410
+ proto.CanvasRequest.prototype.clearTracksList = function() {
411
+ return this.setTracksList([]);
412
+ };
413
+
414
+
415
+
416
+ /**
417
+ * List of repeated fields within this message type.
418
+ * @private {!Array<number>}
419
+ * @const
420
+ */
421
+ proto.CanvasResponse.repeatedFields_ = [1];
422
+
423
+
424
+
425
+ if (jspb.Message.GENERATE_TO_OBJECT) {
426
+ /**
427
+ * Creates an object representation of this proto.
428
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
429
+ * Optional fields that are not set will be set to undefined.
430
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
431
+ * For the list of reserved names please see:
432
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
433
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
434
+ * JSPB instance for transitional soy proto support:
435
+ * http://goto/soy-param-migration
436
+ * @return {!Object}
437
+ */
438
+ proto.CanvasResponse.prototype.toObject = function(opt_includeInstance) {
439
+ return proto.CanvasResponse.toObject(opt_includeInstance, this);
440
+ };
441
+
442
+
443
+ /**
444
+ * Static version of the {@see toObject} method.
445
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
446
+ * the JSPB instance for transitional soy proto support:
447
+ * http://goto/soy-param-migration
448
+ * @param {!proto.CanvasResponse} msg The msg instance to transform.
449
+ * @return {!Object}
450
+ * @suppress {unusedLocalVariables} f is only used for nested messages
451
+ */
452
+ proto.CanvasResponse.toObject = function(includeInstance, msg) {
453
+ var f, obj = {
454
+ canvasesList: jspb.Message.toObjectList(msg.getCanvasesList(),
455
+ proto.CanvasResponse.Canvas.toObject, includeInstance)
456
+ };
457
+
458
+ if (includeInstance) {
459
+ obj.$jspbMessageInstance = msg;
460
+ }
461
+ return obj;
462
+ };
463
+ }
464
+
465
+
466
+ /**
467
+ * Deserializes binary data (in protobuf wire format).
468
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
469
+ * @return {!proto.CanvasResponse}
470
+ */
471
+ proto.CanvasResponse.deserializeBinary = function(bytes) {
472
+ var reader = new jspb.BinaryReader(bytes);
473
+ var msg = new proto.CanvasResponse;
474
+ return proto.CanvasResponse.deserializeBinaryFromReader(msg, reader);
475
+ };
476
+
477
+
478
+ /**
479
+ * Deserializes binary data (in protobuf wire format) from the
480
+ * given reader into the given message object.
481
+ * @param {!proto.CanvasResponse} msg The message object to deserialize into.
482
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
483
+ * @return {!proto.CanvasResponse}
484
+ */
485
+ proto.CanvasResponse.deserializeBinaryFromReader = function(msg, reader) {
486
+ while (reader.nextField()) {
487
+ if (reader.isEndGroup()) {
488
+ break;
489
+ }
490
+ var field = reader.getFieldNumber();
491
+ switch (field) {
492
+ case 1:
493
+ var value = new proto.CanvasResponse.Canvas;
494
+ reader.readMessage(value,proto.CanvasResponse.Canvas.deserializeBinaryFromReader);
495
+ msg.addCanvases(value);
496
+ break;
497
+ default:
498
+ reader.skipField();
499
+ break;
500
+ }
501
+ }
502
+ return msg;
503
+ };
504
+
505
+
506
+ /**
507
+ * Serializes the message to binary data (in protobuf wire format).
508
+ * @return {!Uint8Array}
509
+ */
510
+ proto.CanvasResponse.prototype.serializeBinary = function() {
511
+ var writer = new jspb.BinaryWriter();
512
+ proto.CanvasResponse.serializeBinaryToWriter(this, writer);
513
+ return writer.getResultBuffer();
514
+ };
515
+
516
+
517
+ /**
518
+ * Serializes the given message to binary data (in protobuf wire
519
+ * format), writing to the given BinaryWriter.
520
+ * @param {!proto.CanvasResponse} message
521
+ * @param {!jspb.BinaryWriter} writer
522
+ * @suppress {unusedLocalVariables} f is only used for nested messages
523
+ */
524
+ proto.CanvasResponse.serializeBinaryToWriter = function(message, writer) {
525
+ var f = undefined;
526
+ f = message.getCanvasesList();
527
+ if (f.length > 0) {
528
+ writer.writeRepeatedMessage(
529
+ 1,
530
+ f,
531
+ proto.CanvasResponse.Canvas.serializeBinaryToWriter
532
+ );
533
+ }
534
+ };
535
+
536
+
537
+
538
+
539
+
540
+ if (jspb.Message.GENERATE_TO_OBJECT) {
541
+ /**
542
+ * Creates an object representation of this proto.
543
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
544
+ * Optional fields that are not set will be set to undefined.
545
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
546
+ * For the list of reserved names please see:
547
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
548
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
549
+ * JSPB instance for transitional soy proto support:
550
+ * http://goto/soy-param-migration
551
+ * @return {!Object}
552
+ */
553
+ proto.CanvasResponse.Canvas.prototype.toObject = function(opt_includeInstance) {
554
+ return proto.CanvasResponse.Canvas.toObject(opt_includeInstance, this);
555
+ };
556
+
557
+
558
+ /**
559
+ * Static version of the {@see toObject} method.
560
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
561
+ * the JSPB instance for transitional soy proto support:
562
+ * http://goto/soy-param-migration
563
+ * @param {!proto.CanvasResponse.Canvas} msg The msg instance to transform.
564
+ * @return {!Object}
565
+ * @suppress {unusedLocalVariables} f is only used for nested messages
566
+ */
567
+ proto.CanvasResponse.Canvas.toObject = function(includeInstance, msg) {
568
+ var f, obj = {
569
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
570
+ canvasUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
571
+ trackUri: jspb.Message.getFieldWithDefault(msg, 5, ""),
572
+ artist: (f = msg.getArtist()) && proto.CanvasResponse.Canvas.Artist.toObject(includeInstance, f),
573
+ otherId: jspb.Message.getFieldWithDefault(msg, 9, ""),
574
+ canvasUri: jspb.Message.getFieldWithDefault(msg, 11, "")
575
+ };
576
+
577
+ if (includeInstance) {
578
+ obj.$jspbMessageInstance = msg;
579
+ }
580
+ return obj;
581
+ };
582
+ }
583
+
584
+
585
+ /**
586
+ * Deserializes binary data (in protobuf wire format).
587
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
588
+ * @return {!proto.CanvasResponse.Canvas}
589
+ */
590
+ proto.CanvasResponse.Canvas.deserializeBinary = function(bytes) {
591
+ var reader = new jspb.BinaryReader(bytes);
592
+ var msg = new proto.CanvasResponse.Canvas;
593
+ return proto.CanvasResponse.Canvas.deserializeBinaryFromReader(msg, reader);
594
+ };
595
+
596
+
597
+ /**
598
+ * Deserializes binary data (in protobuf wire format) from the
599
+ * given reader into the given message object.
600
+ * @param {!proto.CanvasResponse.Canvas} msg The message object to deserialize into.
601
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
602
+ * @return {!proto.CanvasResponse.Canvas}
603
+ */
604
+ proto.CanvasResponse.Canvas.deserializeBinaryFromReader = function(msg, reader) {
605
+ while (reader.nextField()) {
606
+ if (reader.isEndGroup()) {
607
+ break;
608
+ }
609
+ var field = reader.getFieldNumber();
610
+ switch (field) {
611
+ case 1:
612
+ var value = /** @type {string} */ (reader.readString());
613
+ msg.setId(value);
614
+ break;
615
+ case 2:
616
+ var value = /** @type {string} */ (reader.readString());
617
+ msg.setCanvasUrl(value);
618
+ break;
619
+ case 5:
620
+ var value = /** @type {string} */ (reader.readString());
621
+ msg.setTrackUri(value);
622
+ break;
623
+ case 6:
624
+ var value = new proto.CanvasResponse.Canvas.Artist;
625
+ reader.readMessage(value,proto.CanvasResponse.Canvas.Artist.deserializeBinaryFromReader);
626
+ msg.setArtist(value);
627
+ break;
628
+ case 9:
629
+ var value = /** @type {string} */ (reader.readString());
630
+ msg.setOtherId(value);
631
+ break;
632
+ case 11:
633
+ var value = /** @type {string} */ (reader.readString());
634
+ msg.setCanvasUri(value);
635
+ break;
636
+ default:
637
+ reader.skipField();
638
+ break;
639
+ }
640
+ }
641
+ return msg;
642
+ };
643
+
644
+
645
+ /**
646
+ * Serializes the message to binary data (in protobuf wire format).
647
+ * @return {!Uint8Array}
648
+ */
649
+ proto.CanvasResponse.Canvas.prototype.serializeBinary = function() {
650
+ var writer = new jspb.BinaryWriter();
651
+ proto.CanvasResponse.Canvas.serializeBinaryToWriter(this, writer);
652
+ return writer.getResultBuffer();
653
+ };
654
+
655
+
656
+ /**
657
+ * Serializes the given message to binary data (in protobuf wire
658
+ * format), writing to the given BinaryWriter.
659
+ * @param {!proto.CanvasResponse.Canvas} message
660
+ * @param {!jspb.BinaryWriter} writer
661
+ * @suppress {unusedLocalVariables} f is only used for nested messages
662
+ */
663
+ proto.CanvasResponse.Canvas.serializeBinaryToWriter = function(message, writer) {
664
+ var f = undefined;
665
+ f = message.getId();
666
+ if (f.length > 0) {
667
+ writer.writeString(
668
+ 1,
669
+ f
670
+ );
671
+ }
672
+ f = message.getCanvasUrl();
673
+ if (f.length > 0) {
674
+ writer.writeString(
675
+ 2,
676
+ f
677
+ );
678
+ }
679
+ f = message.getTrackUri();
680
+ if (f.length > 0) {
681
+ writer.writeString(
682
+ 5,
683
+ f
684
+ );
685
+ }
686
+ f = message.getArtist();
687
+ if (f != null) {
688
+ writer.writeMessage(
689
+ 6,
690
+ f,
691
+ proto.CanvasResponse.Canvas.Artist.serializeBinaryToWriter
692
+ );
693
+ }
694
+ f = message.getOtherId();
695
+ if (f.length > 0) {
696
+ writer.writeString(
697
+ 9,
698
+ f
699
+ );
700
+ }
701
+ f = message.getCanvasUri();
702
+ if (f.length > 0) {
703
+ writer.writeString(
704
+ 11,
705
+ f
706
+ );
707
+ }
708
+ };
709
+
710
+
711
+
712
+
713
+
714
+ if (jspb.Message.GENERATE_TO_OBJECT) {
715
+ /**
716
+ * Creates an object representation of this proto.
717
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
718
+ * Optional fields that are not set will be set to undefined.
719
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
720
+ * For the list of reserved names please see:
721
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
722
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
723
+ * JSPB instance for transitional soy proto support:
724
+ * http://goto/soy-param-migration
725
+ * @return {!Object}
726
+ */
727
+ proto.CanvasResponse.Canvas.Artist.prototype.toObject = function(opt_includeInstance) {
728
+ return proto.CanvasResponse.Canvas.Artist.toObject(opt_includeInstance, this);
729
+ };
730
+
731
+
732
+ /**
733
+ * Static version of the {@see toObject} method.
734
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
735
+ * the JSPB instance for transitional soy proto support:
736
+ * http://goto/soy-param-migration
737
+ * @param {!proto.CanvasResponse.Canvas.Artist} msg The msg instance to transform.
738
+ * @return {!Object}
739
+ * @suppress {unusedLocalVariables} f is only used for nested messages
740
+ */
741
+ proto.CanvasResponse.Canvas.Artist.toObject = function(includeInstance, msg) {
742
+ var f, obj = {
743
+ artistUri: jspb.Message.getFieldWithDefault(msg, 1, ""),
744
+ artistName: jspb.Message.getFieldWithDefault(msg, 2, ""),
745
+ artistImgUrl: jspb.Message.getFieldWithDefault(msg, 3, "")
746
+ };
747
+
748
+ if (includeInstance) {
749
+ obj.$jspbMessageInstance = msg;
750
+ }
751
+ return obj;
752
+ };
753
+ }
754
+
755
+
756
+ /**
757
+ * Deserializes binary data (in protobuf wire format).
758
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
759
+ * @return {!proto.CanvasResponse.Canvas.Artist}
760
+ */
761
+ proto.CanvasResponse.Canvas.Artist.deserializeBinary = function(bytes) {
762
+ var reader = new jspb.BinaryReader(bytes);
763
+ var msg = new proto.CanvasResponse.Canvas.Artist;
764
+ return proto.CanvasResponse.Canvas.Artist.deserializeBinaryFromReader(msg, reader);
765
+ };
766
+
767
+
768
+ /**
769
+ * Deserializes binary data (in protobuf wire format) from the
770
+ * given reader into the given message object.
771
+ * @param {!proto.CanvasResponse.Canvas.Artist} msg The message object to deserialize into.
772
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
773
+ * @return {!proto.CanvasResponse.Canvas.Artist}
774
+ */
775
+ proto.CanvasResponse.Canvas.Artist.deserializeBinaryFromReader = function(msg, reader) {
776
+ while (reader.nextField()) {
777
+ if (reader.isEndGroup()) {
778
+ break;
779
+ }
780
+ var field = reader.getFieldNumber();
781
+ switch (field) {
782
+ case 1:
783
+ var value = /** @type {string} */ (reader.readString());
784
+ msg.setArtistUri(value);
785
+ break;
786
+ case 2:
787
+ var value = /** @type {string} */ (reader.readString());
788
+ msg.setArtistName(value);
789
+ break;
790
+ case 3:
791
+ var value = /** @type {string} */ (reader.readString());
792
+ msg.setArtistImgUrl(value);
793
+ break;
794
+ default:
795
+ reader.skipField();
796
+ break;
797
+ }
798
+ }
799
+ return msg;
800
+ };
801
+
802
+
803
+ /**
804
+ * Serializes the message to binary data (in protobuf wire format).
805
+ * @return {!Uint8Array}
806
+ */
807
+ proto.CanvasResponse.Canvas.Artist.prototype.serializeBinary = function() {
808
+ var writer = new jspb.BinaryWriter();
809
+ proto.CanvasResponse.Canvas.Artist.serializeBinaryToWriter(this, writer);
810
+ return writer.getResultBuffer();
811
+ };
812
+
813
+
814
+ /**
815
+ * Serializes the given message to binary data (in protobuf wire
816
+ * format), writing to the given BinaryWriter.
817
+ * @param {!proto.CanvasResponse.Canvas.Artist} message
818
+ * @param {!jspb.BinaryWriter} writer
819
+ * @suppress {unusedLocalVariables} f is only used for nested messages
820
+ */
821
+ proto.CanvasResponse.Canvas.Artist.serializeBinaryToWriter = function(message, writer) {
822
+ var f = undefined;
823
+ f = message.getArtistUri();
824
+ if (f.length > 0) {
825
+ writer.writeString(
826
+ 1,
827
+ f
828
+ );
829
+ }
830
+ f = message.getArtistName();
831
+ if (f.length > 0) {
832
+ writer.writeString(
833
+ 2,
834
+ f
835
+ );
836
+ }
837
+ f = message.getArtistImgUrl();
838
+ if (f.length > 0) {
839
+ writer.writeString(
840
+ 3,
841
+ f
842
+ );
843
+ }
844
+ };
845
+
846
+
847
+ /**
848
+ * optional string artist_uri = 1;
849
+ * @return {string}
850
+ */
851
+ proto.CanvasResponse.Canvas.Artist.prototype.getArtistUri = function() {
852
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
853
+ };
854
+
855
+
856
+ /**
857
+ * @param {string} value
858
+ * @return {!proto.CanvasResponse.Canvas.Artist} returns this
859
+ */
860
+ proto.CanvasResponse.Canvas.Artist.prototype.setArtistUri = function(value) {
861
+ return jspb.Message.setProto3StringField(this, 1, value);
862
+ };
863
+
864
+
865
+ /**
866
+ * optional string artist_name = 2;
867
+ * @return {string}
868
+ */
869
+ proto.CanvasResponse.Canvas.Artist.prototype.getArtistName = function() {
870
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
871
+ };
872
+
873
+
874
+ /**
875
+ * @param {string} value
876
+ * @return {!proto.CanvasResponse.Canvas.Artist} returns this
877
+ */
878
+ proto.CanvasResponse.Canvas.Artist.prototype.setArtistName = function(value) {
879
+ return jspb.Message.setProto3StringField(this, 2, value);
880
+ };
881
+
882
+
883
+ /**
884
+ * optional string artist_img_url = 3;
885
+ * @return {string}
886
+ */
887
+ proto.CanvasResponse.Canvas.Artist.prototype.getArtistImgUrl = function() {
888
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
889
+ };
890
+
891
+
892
+ /**
893
+ * @param {string} value
894
+ * @return {!proto.CanvasResponse.Canvas.Artist} returns this
895
+ */
896
+ proto.CanvasResponse.Canvas.Artist.prototype.setArtistImgUrl = function(value) {
897
+ return jspb.Message.setProto3StringField(this, 3, value);
898
+ };
899
+
900
+
901
+ /**
902
+ * optional string id = 1;
903
+ * @return {string}
904
+ */
905
+ proto.CanvasResponse.Canvas.prototype.getId = function() {
906
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
907
+ };
908
+
909
+
910
+ /**
911
+ * @param {string} value
912
+ * @return {!proto.CanvasResponse.Canvas} returns this
913
+ */
914
+ proto.CanvasResponse.Canvas.prototype.setId = function(value) {
915
+ return jspb.Message.setProto3StringField(this, 1, value);
916
+ };
917
+
918
+
919
+ /**
920
+ * optional string canvas_url = 2;
921
+ * @return {string}
922
+ */
923
+ proto.CanvasResponse.Canvas.prototype.getCanvasUrl = function() {
924
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
925
+ };
926
+
927
+
928
+ /**
929
+ * @param {string} value
930
+ * @return {!proto.CanvasResponse.Canvas} returns this
931
+ */
932
+ proto.CanvasResponse.Canvas.prototype.setCanvasUrl = function(value) {
933
+ return jspb.Message.setProto3StringField(this, 2, value);
934
+ };
935
+
936
+
937
+ /**
938
+ * optional string track_uri = 5;
939
+ * @return {string}
940
+ */
941
+ proto.CanvasResponse.Canvas.prototype.getTrackUri = function() {
942
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
943
+ };
944
+
945
+
946
+ /**
947
+ * @param {string} value
948
+ * @return {!proto.CanvasResponse.Canvas} returns this
949
+ */
950
+ proto.CanvasResponse.Canvas.prototype.setTrackUri = function(value) {
951
+ return jspb.Message.setProto3StringField(this, 5, value);
952
+ };
953
+
954
+
955
+ /**
956
+ * optional Artist artist = 6;
957
+ * @return {?proto.CanvasResponse.Canvas.Artist}
958
+ */
959
+ proto.CanvasResponse.Canvas.prototype.getArtist = function() {
960
+ return /** @type{?proto.CanvasResponse.Canvas.Artist} */ (
961
+ jspb.Message.getWrapperField(this, proto.CanvasResponse.Canvas.Artist, 6));
962
+ };
963
+
964
+
965
+ /**
966
+ * @param {?proto.CanvasResponse.Canvas.Artist|undefined} value
967
+ * @return {!proto.CanvasResponse.Canvas} returns this
968
+ */
969
+ proto.CanvasResponse.Canvas.prototype.setArtist = function(value) {
970
+ return jspb.Message.setWrapperField(this, 6, value);
971
+ };
972
+
973
+
974
+ /**
975
+ * Clears the message field making it undefined.
976
+ * @return {!proto.CanvasResponse.Canvas} returns this
977
+ */
978
+ proto.CanvasResponse.Canvas.prototype.clearArtist = function() {
979
+ return this.setArtist(undefined);
980
+ };
981
+
982
+
983
+ /**
984
+ * Returns whether this field is set.
985
+ * @return {boolean}
986
+ */
987
+ proto.CanvasResponse.Canvas.prototype.hasArtist = function() {
988
+ return jspb.Message.getField(this, 6) != null;
989
+ };
990
+
991
+
992
+ /**
993
+ * optional string other_id = 9;
994
+ * @return {string}
995
+ */
996
+ proto.CanvasResponse.Canvas.prototype.getOtherId = function() {
997
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
998
+ };
999
+
1000
+
1001
+ /**
1002
+ * @param {string} value
1003
+ * @return {!proto.CanvasResponse.Canvas} returns this
1004
+ */
1005
+ proto.CanvasResponse.Canvas.prototype.setOtherId = function(value) {
1006
+ return jspb.Message.setProto3StringField(this, 9, value);
1007
+ };
1008
+
1009
+
1010
+ /**
1011
+ * optional string canvas_uri = 11;
1012
+ * @return {string}
1013
+ */
1014
+ proto.CanvasResponse.Canvas.prototype.getCanvasUri = function() {
1015
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1016
+ };
1017
+
1018
+
1019
+ /**
1020
+ * @param {string} value
1021
+ * @return {!proto.CanvasResponse.Canvas} returns this
1022
+ */
1023
+ proto.CanvasResponse.Canvas.prototype.setCanvasUri = function(value) {
1024
+ return jspb.Message.setProto3StringField(this, 11, value);
1025
+ };
1026
+
1027
+
1028
+ /**
1029
+ * repeated Canvas canvases = 1;
1030
+ * @return {!Array<!proto.CanvasResponse.Canvas>}
1031
+ */
1032
+ proto.CanvasResponse.prototype.getCanvasesList = function() {
1033
+ return /** @type{!Array<!proto.CanvasResponse.Canvas>} */ (
1034
+ jspb.Message.getRepeatedWrapperField(this, proto.CanvasResponse.Canvas, 1));
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * @param {!Array<!proto.CanvasResponse.Canvas>} value
1040
+ * @return {!proto.CanvasResponse} returns this
1041
+ */
1042
+ proto.CanvasResponse.prototype.setCanvasesList = function(value) {
1043
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * @param {!proto.CanvasResponse.Canvas=} opt_value
1049
+ * @param {number=} opt_index
1050
+ * @return {!proto.CanvasResponse.Canvas}
1051
+ */
1052
+ proto.CanvasResponse.prototype.addCanvases = function(opt_value, opt_index) {
1053
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.CanvasResponse.Canvas, opt_index);
1054
+ };
1055
+
1056
+
1057
+ /**
1058
+ * Clears the list making it empty but non-null.
1059
+ * @return {!proto.CanvasResponse} returns this
1060
+ */
1061
+ proto.CanvasResponse.prototype.clearCanvasesList = function() {
1062
+ return this.setCanvasesList([]);
1063
+ };
1064
+
1065
+
1066
+ goog.object.extend(exports, proto);
routes/canvasRoutes.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import express from 'express';
2
+ import { fetchCanvas } from '../controllers/canvasController.js';
3
+
4
+ const router = express.Router();
5
+
6
+ router.get('/', fetchCanvas);
7
+
8
+ export default router;
services/browserAuthService.js ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import puppeteer from 'puppeteer-core';
2
+ import fs from 'fs';
3
+ import path from 'path';
4
+
5
+ let cachedCreds = null;
6
+ let credsExpiresAt = 0;
7
+
8
+ const parseNetscapeCookies = (text) => {
9
+ const cookies = [];
10
+ for (const line of text.split('\n')) {
11
+ if (!line.trim() || line.startsWith('#')) continue;
12
+ const parts = line.split('\t');
13
+ if (parts.length >= 7) {
14
+ cookies.push({
15
+ name: parts[5],
16
+ value: parts[6].trim(),
17
+ domain: parts[0],
18
+ path: parts[2],
19
+ secure: parts[3] === 'TRUE',
20
+ expires: parseFloat(parts[4])
21
+ });
22
+ }
23
+ }
24
+ return cookies;
25
+ };
26
+
27
+ const getExecutablePath = () => {
28
+ if (process.env.PUPPETEER_EXECUTABLE_PATH) {
29
+ return process.env.PUPPETEER_EXECUTABLE_PATH;
30
+ }
31
+ if (process.platform === 'darwin') {
32
+ return '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome';
33
+ }
34
+ for (const p of ['/usr/bin/chromium-browser', '/usr/bin/google-chrome', '/usr/bin/chromium']) {
35
+ if (fs.existsSync(p)) return p;
36
+ }
37
+ return null;
38
+ };
39
+
40
+ export const getBrowserCredentials = async () => {
41
+ if (cachedCreds && Date.now() < credsExpiresAt) {
42
+ return cachedCreds;
43
+ }
44
+
45
+ const cookiePath = path.resolve('cookies.txt');
46
+ if (!fs.existsSync(cookiePath)) {
47
+ throw new Error('cookies.txt not found in project root.');
48
+ }
49
+
50
+ const executablePath = getExecutablePath();
51
+ if (!executablePath) {
52
+ throw new Error('Chrome/Chromium not found. Install Chrome or set PUPPETEER_EXECUTABLE_PATH.');
53
+ }
54
+
55
+ console.log('Launching headless browser to retrieve Spotify credentials...');
56
+ const cookieText = fs.readFileSync(cookiePath, 'utf8');
57
+ const cookies = parseNetscapeCookies(cookieText);
58
+
59
+ const browser = await puppeteer.launch({
60
+ executablePath,
61
+ headless: true,
62
+ args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage', '--disable-gpu']
63
+ });
64
+
65
+ try {
66
+ const page = await browser.newPage();
67
+ await page.setCookie(...cookies);
68
+
69
+ let authorization = null;
70
+ let clientToken = null;
71
+
72
+ const credsPromise = new Promise((resolve) => {
73
+ page.on('request', request => {
74
+ const headers = request.headers();
75
+ if (headers['authorization'] && headers['authorization'].startsWith('Bearer ') && headers['client-token']) {
76
+ if (!authorization) {
77
+ authorization = headers['authorization'].split(' ')[1];
78
+ clientToken = headers['client-token'];
79
+ resolve({ authorization, clientToken });
80
+ }
81
+ }
82
+ });
83
+ });
84
+
85
+ await page.goto('https://open.spotify.com/search', { waitUntil: 'networkidle2', timeout: 30000 });
86
+
87
+ const creds = await Promise.race([
88
+ credsPromise,
89
+ new Promise((_, reject) => setTimeout(() => reject(new Error('Credential detection timed out')), 15000))
90
+ ]);
91
+
92
+ // Cache for 50 minutes
93
+ cachedCreds = creds;
94
+ credsExpiresAt = Date.now() + 50 * 60 * 1000;
95
+ console.log('Credentials retrieved and cached successfully.');
96
+ return creds;
97
+ } finally {
98
+ await browser.close();
99
+ }
100
+ };
101
+
102
+ // Search using Spotify's internal GraphQL v2 endpoint
103
+ export const searchSpotifyGraphQL = async (query, limit = 20) => {
104
+ const { authorization, clientToken } = await getBrowserCredentials();
105
+
106
+ const payload = {
107
+ variables: {
108
+ query,
109
+ limit,
110
+ offset: 0,
111
+ numberOfTopResults: limit,
112
+ includeArtistHasConcertsField: false,
113
+ includeAudiobooks: false,
114
+ includeAuthors: false,
115
+ includePreReleases: true,
116
+ includeAlbumPreReleases: true,
117
+ includeEpisodeContentRatingsV2: false,
118
+ isPrefix: null
119
+ },
120
+ operationName: 'searchTopResultsList',
121
+ extensions: {
122
+ persistedQuery: {
123
+ version: 1,
124
+ sha256Hash: '63a93cc04f6d8dea84a85de315e43f396a76cb681500de9ac5ccf5fc618c84cb'
125
+ }
126
+ }
127
+ };
128
+
129
+ const axios = (await import('axios')).default;
130
+ const response = await axios.post('https://api-partner.spotify.com/pathfinder/v2/query', payload, {
131
+ headers: {
132
+ 'accept': 'application/json',
133
+ 'content-type': 'application/json;charset=UTF-8',
134
+ 'authorization': `Bearer ${authorization}`,
135
+ 'client-token': clientToken,
136
+ 'app-platform': 'WebPlayer',
137
+ 'origin': 'https://open.spotify.com',
138
+ 'referer': 'https://open.spotify.com/',
139
+ 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36',
140
+ 'spotify-app-version': '1.2.95.15.g813d8ea0'
141
+ }
142
+ });
143
+
144
+ // Extract tracks from the GraphQL response
145
+ const topResults = response.data?.data?.searchV2?.topResultsV2?.itemsV2 || [];
146
+ const tracks = topResults
147
+ .filter(item => item?.item?.__typename === 'TrackResponseWrapper')
148
+ .map(item => {
149
+ const d = item.item.data;
150
+ return {
151
+ id: d.id,
152
+ name: d.name,
153
+ uri: d.uri,
154
+ artists: (d.artists?.items || []).map(a => ({ name: a.profile.name, uri: a.uri })),
155
+ duration_ms: d.duration?.totalMilliseconds,
156
+ album: {
157
+ name: d.albumOfTrack?.name,
158
+ id: d.albumOfTrack?.id
159
+ }
160
+ };
161
+ });
162
+
163
+ return tracks;
164
+ };
165
+
166
+ // Backwards compatible export for token-only consumers
167
+ export const getBrowserSearchToken = async () => {
168
+ const { authorization } = await getBrowserCredentials();
169
+ return authorization;
170
+ };
services/spotifyAuthService.js ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import axios from "axios";
2
+ import * as OTPAuth from "otpauth";
3
+ import dotenv from "dotenv";
4
+ import fs from "fs";
5
+ import { fileURLToPath } from "url";
6
+
7
+ dotenv.config();
8
+
9
+ const SP_DC = process.env.SP_DC;
10
+ const DEFAULT_SECRETS_URL = "https://git.gay/thereallo/totp-secrets/raw/branch/main/secrets/secretDict.json";
11
+ const FALLBACK_SECRETS_URL = "https://raw.githubusercontent.com/xyloflake/spot-secrets-go/refs/heads/main/secrets/secretDict.json";
12
+
13
+ // Global variables to store the current TOTP configuration
14
+ let currentTotp = null;
15
+ let currentTotpVersion = null;
16
+ let lastFetchTime = 0;
17
+ const FETCH_INTERVAL = 60 * 60 * 1000; // 1 hour in milliseconds
18
+
19
+ // Initialize TOTP secrets on startup
20
+ initializeTOTPSecrets();
21
+
22
+ // Set up periodic updates
23
+ setInterval(updateTOTPSecrets, FETCH_INTERVAL);
24
+
25
+ async function initializeTOTPSecrets() {
26
+ try {
27
+ await updateTOTPSecrets();
28
+ } catch (error) {
29
+ console.error('Failed to initialize TOTP secrets:', error);
30
+ // Fallback to the original hardcoded secret
31
+ useFallbackSecret();
32
+ }
33
+ }
34
+
35
+ async function updateTOTPSecrets() {
36
+ try {
37
+ const now = Date.now();
38
+ if (now - lastFetchTime < FETCH_INTERVAL) {
39
+ return; // Don't fetch too frequently
40
+ }
41
+
42
+ console.log('Fetching updated TOTP secrets...');
43
+ const secrets = await fetchSecrets();
44
+ const newestVersion = findNewestVersion(secrets);
45
+
46
+ if (newestVersion && newestVersion !== currentTotpVersion) {
47
+ const secretData = secrets[newestVersion];
48
+ const totpSecret = createTotpSecret(secretData);
49
+
50
+ currentTotp = new OTPAuth.TOTP({
51
+ period: 30,
52
+ digits: 6,
53
+ algorithm: "SHA1",
54
+ secret: totpSecret
55
+ });
56
+
57
+ currentTotpVersion = newestVersion;
58
+ lastFetchTime = now;
59
+ console.log(`TOTP secrets updated to version ${newestVersion}`);
60
+ } else {
61
+ console.log(`No new TOTP secrets found, using version ${newestVersion}`);
62
+ }
63
+ } catch (error) {
64
+ console.error('Failed to update TOTP secrets:', error);
65
+ // Keep using current TOTP if available, otherwise use fallback
66
+ if (!currentTotp) {
67
+ useFallbackSecret();
68
+ }
69
+ }
70
+ }
71
+
72
+ async function fetchSecrets() {
73
+ const urlOption = process.env.SECRETS_URL || DEFAULT_SECRETS_URL;
74
+
75
+ // Try loading from local file
76
+ if (urlOption.startsWith("file://") || (!urlOption.startsWith("http://") && !urlOption.startsWith("https://"))) {
77
+ try {
78
+ let filePath = urlOption;
79
+ if (urlOption.startsWith("file://")) {
80
+ filePath = fileURLToPath(urlOption);
81
+ }
82
+ console.log(`Reading secrets from local file: ${filePath}`);
83
+ const fileContent = await fs.promises.readFile(filePath, 'utf8');
84
+ return JSON.parse(fileContent);
85
+ } catch (error) {
86
+ console.error(`Failed to read secrets from local file: ${error.message}`);
87
+ throw error;
88
+ }
89
+ }
90
+
91
+ // Remote fetching with fallback
92
+ try {
93
+ console.log(`Fetching secrets from remote URL: ${urlOption}`);
94
+ const response = await axios.get(urlOption, {
95
+ timeout: 10000,
96
+ headers: {
97
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
98
+ }
99
+ });
100
+ return response.data;
101
+ } catch (error) {
102
+ console.error(`Failed to fetch secrets from URL (${urlOption}): ${error.message}`);
103
+ // If the error was from the default primary URL, try the fallback URL
104
+ if (urlOption === DEFAULT_SECRETS_URL) {
105
+ try {
106
+ console.log(`Trying fallback secrets URL: ${FALLBACK_SECRETS_URL}`);
107
+ const response = await axios.get(FALLBACK_SECRETS_URL, {
108
+ timeout: 10000,
109
+ headers: {
110
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
111
+ }
112
+ });
113
+ return response.data;
114
+ } catch (fallbackError) {
115
+ console.error(`Failed to fetch secrets from fallback URL: ${fallbackError.message}`);
116
+ throw fallbackError;
117
+ }
118
+ }
119
+ throw error;
120
+ }
121
+ }
122
+
123
+ function findNewestVersion(secrets) {
124
+ const versions = Object.keys(secrets).map(Number);
125
+ return Math.max(...versions).toString();
126
+ }
127
+
128
+ function createTotpSecret(data) {
129
+ const mappedData = data.map((value, index) => value ^ ((index % 33) + 9));
130
+ const hexData = Buffer.from(mappedData.join(""), "utf8").toString("hex");
131
+ return OTPAuth.Secret.fromHex(hexData);
132
+ }
133
+
134
+ function useFallbackSecret() {
135
+ // Fallback to the original hardcoded secret
136
+ // This secret will most likely fail because Spotify is rotating the secrets every couple of days
137
+ // This is really just kept in here for reference
138
+ const fallbackData = [99, 111, 47, 88, 49, 56, 118, 65, 52, 67, 50, 104, 117, 101, 55, 94, 95, 75, 94, 49, 69, 36, 85, 64, 74, 60];
139
+ const totpSecret = createTotpSecret(fallbackData);
140
+
141
+ currentTotp = new OTPAuth.TOTP({
142
+ period: 30,
143
+ digits: 6,
144
+ algorithm: "SHA1",
145
+ secret: totpSecret
146
+ });
147
+
148
+ currentTotpVersion = "19"; // Fallback version
149
+ console.log('Using fallback TOTP secret');
150
+ }
151
+
152
+ export async function getToken(reason = "init", productType = "mobile-web-player") {
153
+ // Ensure we have a TOTP instance
154
+ if (!currentTotp) {
155
+ await initializeTOTPSecrets();
156
+ }
157
+
158
+ const payload = await generateAuthPayload(reason, productType);
159
+
160
+ const url = new URL("https://open.spotify.com/api/token");
161
+ Object.entries(payload).forEach(([key, value]) => url.searchParams.append(key, value));
162
+
163
+ const response = await axios.get(url.toString(), {
164
+ headers: {
165
+ 'User-Agent': userAgent(),
166
+ 'Origin': 'https://open.spotify.com/',
167
+ 'Referer': 'https://open.spotify.com/',
168
+ 'Cookie': `sp_dc=${SP_DC}`,
169
+ },
170
+ });
171
+
172
+ return response.data?.accessToken;
173
+ }
174
+
175
+ async function generateAuthPayload(reason, productType) {
176
+ const localTime = Date.now();
177
+ const serverTime = await getServerTime();
178
+
179
+ return {
180
+ reason,
181
+ productType,
182
+ totp: generateTOTP(localTime),
183
+ totpVer: currentTotpVersion || "19",
184
+ totpServer: generateTOTP(Math.floor(serverTime / 30))
185
+ };
186
+ }
187
+
188
+ async function getServerTime() {
189
+ try {
190
+ const { data } = await axios.get("https://open.spotify.com/api/server-time", {
191
+ headers: {
192
+ 'User-Agent': userAgent(),
193
+ 'Origin': 'https://open.spotify.com/',
194
+ 'Referer': 'https://open.spotify.com/',
195
+ 'Cookie': `sp_dc=${SP_DC}`,
196
+ },
197
+ });
198
+
199
+ const time = Number(data.serverTime);
200
+ if (isNaN(time)) throw new Error("Invalid server time");
201
+ return time * 1000;
202
+ } catch {
203
+ return Date.now();
204
+ }
205
+ }
206
+
207
+ function generateTOTP(timestamp) {
208
+ if (!currentTotp) {
209
+ throw new Error("TOTP not initialized");
210
+ }
211
+ return currentTotp.generate({ timestamp });
212
+ }
213
+
214
+ function userAgent() {
215
+ return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36";
216
+ }
services/spotifyCanvasService.js ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import axios from 'axios';
2
+ import { getToken } from './spotifyAuthService.js';
3
+
4
+ export async function getCanvases(trackUri) {
5
+ const { CanvasRequest, CanvasResponse } = (await import('../proto/_canvas_pb.cjs')).default;
6
+
7
+ try {
8
+ const accessToken = await getToken();
9
+
10
+ const canvasRequest = new CanvasRequest();
11
+ const track = new CanvasRequest.Track();
12
+ track.setTrackUri(trackUri);
13
+ canvasRequest.addTracks(track);
14
+
15
+ const requestBytes = canvasRequest.serializeBinary();
16
+
17
+ const response = await axios.post(
18
+ 'https://spclient.wg.spotify.com/canvaz-cache/v0/canvases',
19
+ requestBytes,
20
+ {
21
+ responseType: 'arraybuffer',
22
+ headers: {
23
+ 'Accept': 'application/protobuf',
24
+ 'Content-Type': 'application/x-www-form-urlencoded',
25
+ 'Accept-Language': 'en',
26
+ 'User-Agent': 'Spotify/9.0.34.593 iOS/18.4 (iPhone15,3)',
27
+ 'Accept-Encoding': 'gzip, deflate, br',
28
+ 'Authorization': `Bearer ${accessToken}`,
29
+ },
30
+ }
31
+ );
32
+
33
+ if (response.status !== 200) {
34
+ console.error(`Canvas fetch failed: ${response.status} ${response.statusText}`);
35
+ return null;
36
+ }
37
+
38
+ const parsed = CanvasResponse.deserializeBinary(response.data).toObject();
39
+ return parsed;
40
+ } catch (error) {
41
+ console.error(`Canvas request error:`, error);
42
+ return null;
43
+ }
44
+ }
test_canvas.js ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import puppeteer from 'puppeteer-core';
2
+ import fs from 'fs';
3
+
4
+ const parseNetscapeCookies = (text) => {
5
+ const cookies = [];
6
+ const lines = text.split('\n');
7
+ for (const line of lines) {
8
+ if (!line.trim() || line.startsWith('#')) continue;
9
+ const parts = line.split('\t');
10
+ if (parts.length >= 7) {
11
+ cookies.push({
12
+ name: parts[5],
13
+ value: parts[6].trim(),
14
+ domain: parts[0],
15
+ path: parts[2],
16
+ secure: parts[3] === 'TRUE',
17
+ expires: parseFloat(parts[4])
18
+ });
19
+ }
20
+ }
21
+ return cookies;
22
+ };
23
+
24
+ async function testNetworkInterception() {
25
+ const cookieText = fs.readFileSync('cookies.txt', 'utf8');
26
+ const cookies = parseNetscapeCookies(cookieText);
27
+
28
+ const executablePath = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome';
29
+ const browser = await puppeteer.launch({
30
+ executablePath,
31
+ headless: true,
32
+ args: ['--no-sandbox', '--disable-setuid-sandbox']
33
+ });
34
+
35
+ const page = await browser.newPage();
36
+ await page.setCookie(...cookies);
37
+
38
+ let searchResponseData = null;
39
+
40
+ console.log("Listening for Pathfinder query responses...");
41
+ page.on('response', async (response) => {
42
+ const url = response.url();
43
+ if (url.includes('api-partner.spotify.com/pathfinder/v1/query')) {
44
+ const request = response.request();
45
+ const postData = request.postData() || '';
46
+
47
+ // Check if it's the search request
48
+ if (url.includes('search') || postData.includes('search') || postData.includes('Search') || url.includes('operationName=search')) {
49
+ try {
50
+ const text = await response.text();
51
+ const json = JSON.parse(text);
52
+ console.log("FOUND SEARCH GRAPHQL RESPONSE!");
53
+ searchResponseData = json;
54
+ } catch (e) {
55
+ // Ignore parse errors or text errors
56
+ }
57
+ }
58
+ }
59
+ });
60
+
61
+ const query = "Kill Bill SZA";
62
+ console.log(`Navigating to search page for: ${query}...`);
63
+ // Navigate directly to the search URL for the query
64
+ const searchUrl = `https://open.spotify.com/search/${encodeURIComponent(query)}`;
65
+ await page.goto(searchUrl, { waitUntil: 'networkidle2', timeout: 30000 });
66
+
67
+ // Wait another 5 seconds to ensure requests finish loading
68
+ await new Promise(resolve => setTimeout(resolve, 5000));
69
+
70
+ console.log("Closing browser...");
71
+ await browser.close();
72
+
73
+ if (searchResponseData) {
74
+ console.log("GraphQL Search Data (truncated):", JSON.stringify(searchResponseData, null, 2).substring(0, 1500));
75
+ } else {
76
+ console.log("Search response not captured via network interception. Let's list all requests we saw:");
77
+ }
78
+ }
79
+
80
+ testNetworkInterception().catch(console.error);
vercel.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 2,
3
+ "builds": [
4
+ {
5
+ "src": "./index.js",
6
+ "use": "@vercel/node"
7
+ }
8
+ ],
9
+ "routes": [
10
+ {
11
+ "src": "/(.*)",
12
+ "dest": "/"
13
+ }
14
+ ]
15
+ }