soundcloud-api-ts 1.6.3 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var chunkLNMDNQSC_js = require('./chunk-LNMDNQSC.js');
4
+ var chunkTDMKITMS_js = require('./chunk-TDMKITMS.js');
5
5
  require('./chunk-NBKG62HR.js');
6
6
  var readline = require('readline');
7
7
  var http = require('http');
@@ -112,7 +112,7 @@ function getClient(config) {
112
112
  if (!config.clientId || !config.clientSecret) {
113
113
  die("Not configured. Run `sc-cli auth` first.");
114
114
  }
115
- const client = new chunkLNMDNQSC_js.SoundCloudClient({
115
+ const client = new chunkTDMKITMS_js.SoundCloudClient({
116
116
  clientId: config.clientId,
117
117
  clientSecret: config.clientSecret,
118
118
  redirectUri: "http://localhost:8976/callback"
@@ -166,7 +166,7 @@ ${col(c.bold + c.cyan, "\u26A1 SoundCloud CLI Setup")}
166
166
  if (!clientSecret) die("Client Secret is required.");
167
167
  const spinner = createSpinner("Verifying credentials\u2026");
168
168
  try {
169
- const client = new chunkLNMDNQSC_js.SoundCloudClient({ clientId, clientSecret });
169
+ const client = new chunkTDMKITMS_js.SoundCloudClient({ clientId, clientSecret });
170
170
  const token = await client.auth.getClientToken();
171
171
  spinner.stop(`${col(c.green, "\u2714")} Credentials verified!`);
172
172
  const config = { clientId, clientSecret, token: token.access_token };
@@ -182,9 +182,9 @@ async function cmdLogin() {
182
182
  if (!config.clientId || !config.clientSecret) {
183
183
  die("Not configured. Run `sc-cli auth` first.");
184
184
  }
185
- const verifier = chunkLNMDNQSC_js.generateCodeVerifier();
186
- const challenge = await chunkLNMDNQSC_js.generateCodeChallenge(verifier);
187
- const client = new chunkLNMDNQSC_js.SoundCloudClient({
185
+ const verifier = chunkTDMKITMS_js.generateCodeVerifier();
186
+ const challenge = await chunkTDMKITMS_js.generateCodeChallenge(verifier);
187
+ const client = new chunkTDMKITMS_js.SoundCloudClient({
188
188
  clientId: config.clientId,
189
189
  clientSecret: config.clientSecret,
190
190
  redirectUri: "http://localhost:8976/callback"
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { generateCodeVerifier, generateCodeChallenge, SoundCloudClient } from './chunk-TZWEL7VA.mjs';
2
+ import { generateCodeVerifier, generateCodeChallenge, SoundCloudClient } from './chunk-ZK2KWVSV.mjs';
3
3
  import './chunk-CYDTNVV3.mjs';
4
4
  import * as readline from 'readline';
5
5
  import * as http from 'http';
package/dist/index.d.mts CHANGED
@@ -1465,7 +1465,7 @@ declare const refreshUserToken: (clientId: string, clientSecret: string, redirec
1465
1465
  declare const signOut: (accessToken: string) => Promise<void>;
1466
1466
 
1467
1467
  /**
1468
- * Build the SoundCloud authorization URL for the OAuth 2.0 code flow.
1468
+ * Build the SoundCloud authorization URL for the OAuth 2.1 code flow.
1469
1469
  *
1470
1470
  * Redirect the user to this URL so they can grant access to your application.
1471
1471
  *
package/dist/index.d.ts CHANGED
@@ -1465,7 +1465,7 @@ declare const refreshUserToken: (clientId: string, clientSecret: string, redirec
1465
1465
  declare const signOut: (accessToken: string) => Promise<void>;
1466
1466
 
1467
1467
  /**
1468
- * Build the SoundCloud authorization URL for the OAuth 2.0 code flow.
1468
+ * Build the SoundCloud authorization URL for the OAuth 2.1 code flow.
1469
1469
  *
1470
1470
  * Redirect the user to this URL so they can grant access to your application.
1471
1471
  *
package/dist/index.js CHANGED
@@ -1,257 +1,257 @@
1
1
  'use strict';
2
2
 
3
- var chunkLNMDNQSC_js = require('./chunk-LNMDNQSC.js');
3
+ var chunkTDMKITMS_js = require('./chunk-TDMKITMS.js');
4
4
  var chunkNBKG62HR_js = require('./chunk-NBKG62HR.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "SoundCloudClient", {
9
9
  enumerable: true,
10
- get: function () { return chunkLNMDNQSC_js.SoundCloudClient; }
10
+ get: function () { return chunkTDMKITMS_js.SoundCloudClient; }
11
11
  });
12
12
  Object.defineProperty(exports, "createPlaylist", {
13
13
  enumerable: true,
14
- get: function () { return chunkLNMDNQSC_js.createPlaylist; }
14
+ get: function () { return chunkTDMKITMS_js.createPlaylist; }
15
15
  });
16
16
  Object.defineProperty(exports, "createTrackComment", {
17
17
  enumerable: true,
18
- get: function () { return chunkLNMDNQSC_js.createTrackComment; }
18
+ get: function () { return chunkTDMKITMS_js.createTrackComment; }
19
19
  });
20
20
  Object.defineProperty(exports, "deletePlaylist", {
21
21
  enumerable: true,
22
- get: function () { return chunkLNMDNQSC_js.deletePlaylist; }
22
+ get: function () { return chunkTDMKITMS_js.deletePlaylist; }
23
23
  });
24
24
  Object.defineProperty(exports, "deleteTrack", {
25
25
  enumerable: true,
26
- get: function () { return chunkLNMDNQSC_js.deleteTrack; }
26
+ get: function () { return chunkTDMKITMS_js.deleteTrack; }
27
27
  });
28
28
  Object.defineProperty(exports, "fetchAll", {
29
29
  enumerable: true,
30
- get: function () { return chunkLNMDNQSC_js.fetchAll; }
30
+ get: function () { return chunkTDMKITMS_js.fetchAll; }
31
31
  });
32
32
  Object.defineProperty(exports, "followUser", {
33
33
  enumerable: true,
34
- get: function () { return chunkLNMDNQSC_js.followUser; }
34
+ get: function () { return chunkTDMKITMS_js.followUser; }
35
35
  });
36
36
  Object.defineProperty(exports, "generateCodeChallenge", {
37
37
  enumerable: true,
38
- get: function () { return chunkLNMDNQSC_js.generateCodeChallenge; }
38
+ get: function () { return chunkTDMKITMS_js.generateCodeChallenge; }
39
39
  });
40
40
  Object.defineProperty(exports, "generateCodeVerifier", {
41
41
  enumerable: true,
42
- get: function () { return chunkLNMDNQSC_js.generateCodeVerifier; }
42
+ get: function () { return chunkTDMKITMS_js.generateCodeVerifier; }
43
43
  });
44
44
  Object.defineProperty(exports, "getAuthorizationUrl", {
45
45
  enumerable: true,
46
- get: function () { return chunkLNMDNQSC_js.getAuthorizationUrl; }
46
+ get: function () { return chunkTDMKITMS_js.getAuthorizationUrl; }
47
47
  });
48
48
  Object.defineProperty(exports, "getClientToken", {
49
49
  enumerable: true,
50
- get: function () { return chunkLNMDNQSC_js.getClientToken; }
50
+ get: function () { return chunkTDMKITMS_js.getClientToken; }
51
51
  });
52
52
  Object.defineProperty(exports, "getFollowers", {
53
53
  enumerable: true,
54
- get: function () { return chunkLNMDNQSC_js.getFollowers; }
54
+ get: function () { return chunkTDMKITMS_js.getFollowers; }
55
55
  });
56
56
  Object.defineProperty(exports, "getFollowings", {
57
57
  enumerable: true,
58
- get: function () { return chunkLNMDNQSC_js.getFollowings; }
58
+ get: function () { return chunkTDMKITMS_js.getFollowings; }
59
59
  });
60
60
  Object.defineProperty(exports, "getMe", {
61
61
  enumerable: true,
62
- get: function () { return chunkLNMDNQSC_js.getMe; }
62
+ get: function () { return chunkTDMKITMS_js.getMe; }
63
63
  });
64
64
  Object.defineProperty(exports, "getMeActivities", {
65
65
  enumerable: true,
66
- get: function () { return chunkLNMDNQSC_js.getMeActivities; }
66
+ get: function () { return chunkTDMKITMS_js.getMeActivities; }
67
67
  });
68
68
  Object.defineProperty(exports, "getMeActivitiesOwn", {
69
69
  enumerable: true,
70
- get: function () { return chunkLNMDNQSC_js.getMeActivitiesOwn; }
70
+ get: function () { return chunkTDMKITMS_js.getMeActivitiesOwn; }
71
71
  });
72
72
  Object.defineProperty(exports, "getMeActivitiesTracks", {
73
73
  enumerable: true,
74
- get: function () { return chunkLNMDNQSC_js.getMeActivitiesTracks; }
74
+ get: function () { return chunkTDMKITMS_js.getMeActivitiesTracks; }
75
75
  });
76
76
  Object.defineProperty(exports, "getMeFollowers", {
77
77
  enumerable: true,
78
- get: function () { return chunkLNMDNQSC_js.getMeFollowers; }
78
+ get: function () { return chunkTDMKITMS_js.getMeFollowers; }
79
79
  });
80
80
  Object.defineProperty(exports, "getMeFollowings", {
81
81
  enumerable: true,
82
- get: function () { return chunkLNMDNQSC_js.getMeFollowings; }
82
+ get: function () { return chunkTDMKITMS_js.getMeFollowings; }
83
83
  });
84
84
  Object.defineProperty(exports, "getMeFollowingsTracks", {
85
85
  enumerable: true,
86
- get: function () { return chunkLNMDNQSC_js.getMeFollowingsTracks; }
86
+ get: function () { return chunkTDMKITMS_js.getMeFollowingsTracks; }
87
87
  });
88
88
  Object.defineProperty(exports, "getMeLikesPlaylists", {
89
89
  enumerable: true,
90
- get: function () { return chunkLNMDNQSC_js.getMeLikesPlaylists; }
90
+ get: function () { return chunkTDMKITMS_js.getMeLikesPlaylists; }
91
91
  });
92
92
  Object.defineProperty(exports, "getMeLikesTracks", {
93
93
  enumerable: true,
94
- get: function () { return chunkLNMDNQSC_js.getMeLikesTracks; }
94
+ get: function () { return chunkTDMKITMS_js.getMeLikesTracks; }
95
95
  });
96
96
  Object.defineProperty(exports, "getMePlaylists", {
97
97
  enumerable: true,
98
- get: function () { return chunkLNMDNQSC_js.getMePlaylists; }
98
+ get: function () { return chunkTDMKITMS_js.getMePlaylists; }
99
99
  });
100
100
  Object.defineProperty(exports, "getMeTracks", {
101
101
  enumerable: true,
102
- get: function () { return chunkLNMDNQSC_js.getMeTracks; }
102
+ get: function () { return chunkTDMKITMS_js.getMeTracks; }
103
103
  });
104
104
  Object.defineProperty(exports, "getPlaylist", {
105
105
  enumerable: true,
106
- get: function () { return chunkLNMDNQSC_js.getPlaylist; }
106
+ get: function () { return chunkTDMKITMS_js.getPlaylist; }
107
107
  });
108
108
  Object.defineProperty(exports, "getPlaylistReposts", {
109
109
  enumerable: true,
110
- get: function () { return chunkLNMDNQSC_js.getPlaylistReposts; }
110
+ get: function () { return chunkTDMKITMS_js.getPlaylistReposts; }
111
111
  });
112
112
  Object.defineProperty(exports, "getPlaylistTracks", {
113
113
  enumerable: true,
114
- get: function () { return chunkLNMDNQSC_js.getPlaylistTracks; }
114
+ get: function () { return chunkTDMKITMS_js.getPlaylistTracks; }
115
115
  });
116
116
  Object.defineProperty(exports, "getRelatedTracks", {
117
117
  enumerable: true,
118
- get: function () { return chunkLNMDNQSC_js.getRelatedTracks; }
118
+ get: function () { return chunkTDMKITMS_js.getRelatedTracks; }
119
119
  });
120
120
  Object.defineProperty(exports, "getSoundCloudWidgetUrl", {
121
121
  enumerable: true,
122
- get: function () { return chunkLNMDNQSC_js.getSoundCloudWidgetUrl; }
122
+ get: function () { return chunkTDMKITMS_js.getSoundCloudWidgetUrl; }
123
123
  });
124
124
  Object.defineProperty(exports, "getTrack", {
125
125
  enumerable: true,
126
- get: function () { return chunkLNMDNQSC_js.getTrack; }
126
+ get: function () { return chunkTDMKITMS_js.getTrack; }
127
127
  });
128
128
  Object.defineProperty(exports, "getTrackComments", {
129
129
  enumerable: true,
130
- get: function () { return chunkLNMDNQSC_js.getTrackComments; }
130
+ get: function () { return chunkTDMKITMS_js.getTrackComments; }
131
131
  });
132
132
  Object.defineProperty(exports, "getTrackLikes", {
133
133
  enumerable: true,
134
- get: function () { return chunkLNMDNQSC_js.getTrackLikes; }
134
+ get: function () { return chunkTDMKITMS_js.getTrackLikes; }
135
135
  });
136
136
  Object.defineProperty(exports, "getTrackReposts", {
137
137
  enumerable: true,
138
- get: function () { return chunkLNMDNQSC_js.getTrackReposts; }
138
+ get: function () { return chunkTDMKITMS_js.getTrackReposts; }
139
139
  });
140
140
  Object.defineProperty(exports, "getTrackStreams", {
141
141
  enumerable: true,
142
- get: function () { return chunkLNMDNQSC_js.getTrackStreams; }
142
+ get: function () { return chunkTDMKITMS_js.getTrackStreams; }
143
143
  });
144
144
  Object.defineProperty(exports, "getUser", {
145
145
  enumerable: true,
146
- get: function () { return chunkLNMDNQSC_js.getUser; }
146
+ get: function () { return chunkTDMKITMS_js.getUser; }
147
147
  });
148
148
  Object.defineProperty(exports, "getUserLikesPlaylists", {
149
149
  enumerable: true,
150
- get: function () { return chunkLNMDNQSC_js.getUserLikesPlaylists; }
150
+ get: function () { return chunkTDMKITMS_js.getUserLikesPlaylists; }
151
151
  });
152
152
  Object.defineProperty(exports, "getUserLikesTracks", {
153
153
  enumerable: true,
154
- get: function () { return chunkLNMDNQSC_js.getUserLikesTracks; }
154
+ get: function () { return chunkTDMKITMS_js.getUserLikesTracks; }
155
155
  });
156
156
  Object.defineProperty(exports, "getUserPlaylists", {
157
157
  enumerable: true,
158
- get: function () { return chunkLNMDNQSC_js.getUserPlaylists; }
158
+ get: function () { return chunkTDMKITMS_js.getUserPlaylists; }
159
159
  });
160
160
  Object.defineProperty(exports, "getUserToken", {
161
161
  enumerable: true,
162
- get: function () { return chunkLNMDNQSC_js.getUserToken; }
162
+ get: function () { return chunkTDMKITMS_js.getUserToken; }
163
163
  });
164
164
  Object.defineProperty(exports, "getUserTracks", {
165
165
  enumerable: true,
166
- get: function () { return chunkLNMDNQSC_js.getUserTracks; }
166
+ get: function () { return chunkTDMKITMS_js.getUserTracks; }
167
167
  });
168
168
  Object.defineProperty(exports, "getUserWebProfiles", {
169
169
  enumerable: true,
170
- get: function () { return chunkLNMDNQSC_js.getUserWebProfiles; }
170
+ get: function () { return chunkTDMKITMS_js.getUserWebProfiles; }
171
171
  });
172
172
  Object.defineProperty(exports, "likePlaylist", {
173
173
  enumerable: true,
174
- get: function () { return chunkLNMDNQSC_js.likePlaylist; }
174
+ get: function () { return chunkTDMKITMS_js.likePlaylist; }
175
175
  });
176
176
  Object.defineProperty(exports, "likeTrack", {
177
177
  enumerable: true,
178
- get: function () { return chunkLNMDNQSC_js.likeTrack; }
178
+ get: function () { return chunkTDMKITMS_js.likeTrack; }
179
179
  });
180
180
  Object.defineProperty(exports, "paginate", {
181
181
  enumerable: true,
182
- get: function () { return chunkLNMDNQSC_js.paginate; }
182
+ get: function () { return chunkTDMKITMS_js.paginate; }
183
183
  });
184
184
  Object.defineProperty(exports, "paginateItems", {
185
185
  enumerable: true,
186
- get: function () { return chunkLNMDNQSC_js.paginateItems; }
186
+ get: function () { return chunkTDMKITMS_js.paginateItems; }
187
187
  });
188
188
  Object.defineProperty(exports, "refreshUserToken", {
189
189
  enumerable: true,
190
- get: function () { return chunkLNMDNQSC_js.refreshUserToken; }
190
+ get: function () { return chunkTDMKITMS_js.refreshUserToken; }
191
191
  });
192
192
  Object.defineProperty(exports, "repostPlaylist", {
193
193
  enumerable: true,
194
- get: function () { return chunkLNMDNQSC_js.repostPlaylist; }
194
+ get: function () { return chunkTDMKITMS_js.repostPlaylist; }
195
195
  });
196
196
  Object.defineProperty(exports, "repostTrack", {
197
197
  enumerable: true,
198
- get: function () { return chunkLNMDNQSC_js.repostTrack; }
198
+ get: function () { return chunkTDMKITMS_js.repostTrack; }
199
199
  });
200
200
  Object.defineProperty(exports, "resolveUrl", {
201
201
  enumerable: true,
202
- get: function () { return chunkLNMDNQSC_js.resolveUrl; }
202
+ get: function () { return chunkTDMKITMS_js.resolveUrl; }
203
203
  });
204
204
  Object.defineProperty(exports, "scFetch", {
205
205
  enumerable: true,
206
- get: function () { return chunkLNMDNQSC_js.scFetch; }
206
+ get: function () { return chunkTDMKITMS_js.scFetch; }
207
207
  });
208
208
  Object.defineProperty(exports, "scFetchUrl", {
209
209
  enumerable: true,
210
- get: function () { return chunkLNMDNQSC_js.scFetchUrl; }
210
+ get: function () { return chunkTDMKITMS_js.scFetchUrl; }
211
211
  });
212
212
  Object.defineProperty(exports, "searchPlaylists", {
213
213
  enumerable: true,
214
- get: function () { return chunkLNMDNQSC_js.searchPlaylists; }
214
+ get: function () { return chunkTDMKITMS_js.searchPlaylists; }
215
215
  });
216
216
  Object.defineProperty(exports, "searchTracks", {
217
217
  enumerable: true,
218
- get: function () { return chunkLNMDNQSC_js.searchTracks; }
218
+ get: function () { return chunkTDMKITMS_js.searchTracks; }
219
219
  });
220
220
  Object.defineProperty(exports, "searchUsers", {
221
221
  enumerable: true,
222
- get: function () { return chunkLNMDNQSC_js.searchUsers; }
222
+ get: function () { return chunkTDMKITMS_js.searchUsers; }
223
223
  });
224
224
  Object.defineProperty(exports, "signOut", {
225
225
  enumerable: true,
226
- get: function () { return chunkLNMDNQSC_js.signOut; }
226
+ get: function () { return chunkTDMKITMS_js.signOut; }
227
227
  });
228
228
  Object.defineProperty(exports, "unfollowUser", {
229
229
  enumerable: true,
230
- get: function () { return chunkLNMDNQSC_js.unfollowUser; }
230
+ get: function () { return chunkTDMKITMS_js.unfollowUser; }
231
231
  });
232
232
  Object.defineProperty(exports, "unlikePlaylist", {
233
233
  enumerable: true,
234
- get: function () { return chunkLNMDNQSC_js.unlikePlaylist; }
234
+ get: function () { return chunkTDMKITMS_js.unlikePlaylist; }
235
235
  });
236
236
  Object.defineProperty(exports, "unlikeTrack", {
237
237
  enumerable: true,
238
- get: function () { return chunkLNMDNQSC_js.unlikeTrack; }
238
+ get: function () { return chunkTDMKITMS_js.unlikeTrack; }
239
239
  });
240
240
  Object.defineProperty(exports, "unrepostPlaylist", {
241
241
  enumerable: true,
242
- get: function () { return chunkLNMDNQSC_js.unrepostPlaylist; }
242
+ get: function () { return chunkTDMKITMS_js.unrepostPlaylist; }
243
243
  });
244
244
  Object.defineProperty(exports, "unrepostTrack", {
245
245
  enumerable: true,
246
- get: function () { return chunkLNMDNQSC_js.unrepostTrack; }
246
+ get: function () { return chunkTDMKITMS_js.unrepostTrack; }
247
247
  });
248
248
  Object.defineProperty(exports, "updatePlaylist", {
249
249
  enumerable: true,
250
- get: function () { return chunkLNMDNQSC_js.updatePlaylist; }
250
+ get: function () { return chunkTDMKITMS_js.updatePlaylist; }
251
251
  });
252
252
  Object.defineProperty(exports, "updateTrack", {
253
253
  enumerable: true,
254
- get: function () { return chunkLNMDNQSC_js.updateTrack; }
254
+ get: function () { return chunkTDMKITMS_js.updateTrack; }
255
255
  });
256
256
  Object.defineProperty(exports, "SoundCloudError", {
257
257
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { SoundCloudClient, createPlaylist, createTrackComment, deletePlaylist, deleteTrack, fetchAll, followUser, generateCodeChallenge, generateCodeVerifier, getAuthorizationUrl, getClientToken, getFollowers, getFollowings, getMe, getMeActivities, getMeActivitiesOwn, getMeActivitiesTracks, getMeFollowers, getMeFollowings, getMeFollowingsTracks, getMeLikesPlaylists, getMeLikesTracks, getMePlaylists, getMeTracks, getPlaylist, getPlaylistReposts, getPlaylistTracks, getRelatedTracks, getSoundCloudWidgetUrl, getTrack, getTrackComments, getTrackLikes, getTrackReposts, getTrackStreams, getUser, getUserLikesPlaylists, getUserLikesTracks, getUserPlaylists, getUserToken, getUserTracks, getUserWebProfiles, likePlaylist, likeTrack, paginate, paginateItems, refreshUserToken, repostPlaylist, repostTrack, resolveUrl, scFetch, scFetchUrl, searchPlaylists, searchTracks, searchUsers, signOut, unfollowUser, unlikePlaylist, unlikeTrack, unrepostPlaylist, unrepostTrack, updatePlaylist, updateTrack } from './chunk-TZWEL7VA.mjs';
1
+ export { SoundCloudClient, createPlaylist, createTrackComment, deletePlaylist, deleteTrack, fetchAll, followUser, generateCodeChallenge, generateCodeVerifier, getAuthorizationUrl, getClientToken, getFollowers, getFollowings, getMe, getMeActivities, getMeActivitiesOwn, getMeActivitiesTracks, getMeFollowers, getMeFollowings, getMeFollowingsTracks, getMeLikesPlaylists, getMeLikesTracks, getMePlaylists, getMeTracks, getPlaylist, getPlaylistReposts, getPlaylistTracks, getRelatedTracks, getSoundCloudWidgetUrl, getTrack, getTrackComments, getTrackLikes, getTrackReposts, getTrackStreams, getUser, getUserLikesPlaylists, getUserLikesTracks, getUserPlaylists, getUserToken, getUserTracks, getUserWebProfiles, likePlaylist, likeTrack, paginate, paginateItems, refreshUserToken, repostPlaylist, repostTrack, resolveUrl, scFetch, scFetchUrl, searchPlaylists, searchTracks, searchUsers, signOut, unfollowUser, unlikePlaylist, unlikeTrack, unrepostPlaylist, unrepostTrack, updatePlaylist, updateTrack } from './chunk-ZK2KWVSV.mjs';
2
2
  export { SoundCloudError } from './chunk-CYDTNVV3.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1,10 +1,10 @@
1
1
  /**
2
- * OAuth 2.0 token response returned by SoundCloud's `/oauth2/token` endpoint.
2
+ * OAuth 2.1 token response returned by SoundCloud's `/oauth2/token` endpoint.
3
3
  *
4
4
  * @see https://developers.soundcloud.com/docs/api/explorer/open-api#/oauth2/post_oauth2_token
5
5
  */
6
6
  interface SoundCloudToken {
7
- /** The OAuth 2.0 access token used to authenticate API requests */
7
+ /** The OAuth 2.1 access token used to authenticate API requests */
8
8
  access_token: string;
9
9
  /** Number of seconds until the access token expires */
10
10
  expires_in: number;
@@ -1,10 +1,10 @@
1
1
  /**
2
- * OAuth 2.0 token response returned by SoundCloud's `/oauth2/token` endpoint.
2
+ * OAuth 2.1 token response returned by SoundCloud's `/oauth2/token` endpoint.
3
3
  *
4
4
  * @see https://developers.soundcloud.com/docs/api/explorer/open-api#/oauth2/post_oauth2_token
5
5
  */
6
6
  interface SoundCloudToken {
7
- /** The OAuth 2.0 access token used to authenticate API requests */
7
+ /** The OAuth 2.1 access token used to authenticate API requests */
8
8
  access_token: string;
9
9
  /** Number of seconds until the access token expires */
10
10
  expires_in: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "soundcloud-api-ts",
3
- "version": "1.6.3",
4
- "description": "A TypeScript client for the SoundCloud API. Zero dependencies, native fetch, full OAuth 2.0 + PKCE support.",
3
+ "version": "1.6.5",
4
+ "description": "A TypeScript client for the SoundCloud API. Zero dependencies, native fetch, full OAuth 2.1 + PKCE support.",
5
5
  "bin": {
6
6
  "sc-cli": "./dist/cli.js",
7
7
  "soundcloud-cli": "./dist/cli.js"