@audius/sdk 1.0.26 → 1.0.27
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/index.cjs.js +9 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +9 -4
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +9 -4
- package/dist/native-libs.js.map +1 -1
- package/dist/sdk/api/generated/default/models/Favorite.d.ts +6 -0
- package/dist/sdk/api/generated/full/models/Favorite.d.ts +6 -0
- package/dist/utils/types.d.ts +1 -0
- package/package.json +2 -2
- package/src/sdk/api/generated/default/models/Favorite.ts +6 -0
- package/src/sdk/api/generated/full/models/Favorite.ts +6 -0
- package/src/services/schemaValidator/schemas/playlistSchema.json +64 -64
- package/src/services/schemaValidator/schemas/trackSchema.json +340 -364
- package/src/services/schemaValidator/schemas/userSchema.json +226 -227
- package/src/utils/types.ts +2 -0
|
@@ -1,235 +1,234 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/User",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"User": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"type": ["string", "null"],
|
|
11
|
+
"default": null
|
|
12
|
+
},
|
|
13
|
+
"profile_picture": {
|
|
14
|
+
"type": ["string", "null"],
|
|
15
|
+
"default": null,
|
|
16
|
+
"$ref": "#/definitions/CID"
|
|
17
|
+
},
|
|
18
|
+
"profile_picture_sizes": {
|
|
19
|
+
"type": ["string", "null"],
|
|
20
|
+
"default": null,
|
|
21
|
+
"$ref": "#/definitions/CID"
|
|
22
|
+
},
|
|
23
|
+
"cover_photo": {
|
|
24
|
+
"type": ["string", "null"],
|
|
25
|
+
"default": null,
|
|
26
|
+
"$ref": "#/definitions/CID"
|
|
27
|
+
},
|
|
28
|
+
"cover_photo_sizes": {
|
|
29
|
+
"type": ["string", "null"],
|
|
30
|
+
"default": null,
|
|
31
|
+
"$ref": "#/definitions/CID"
|
|
32
|
+
},
|
|
33
|
+
"bio": {
|
|
34
|
+
"type": ["string", "null"],
|
|
35
|
+
"default": null
|
|
36
|
+
},
|
|
37
|
+
"location": {
|
|
38
|
+
"type": ["string", "null"],
|
|
39
|
+
"default": null
|
|
40
|
+
},
|
|
41
|
+
"associated_wallets": {
|
|
42
|
+
"$ref": "#/definitions/AssociatedWallets"
|
|
43
|
+
},
|
|
44
|
+
"associated_sol_wallets": {
|
|
45
|
+
"$ref": "#/definitions/AssociatedSOLWallets"
|
|
46
|
+
},
|
|
47
|
+
"collectibles": {
|
|
48
|
+
"$ref": "#/definitions/Collectibles"
|
|
49
|
+
},
|
|
50
|
+
"playlist_library": {
|
|
51
|
+
"$ref": "#/definitions/PlaylistLibrary"
|
|
52
|
+
},
|
|
53
|
+
"events": {
|
|
54
|
+
"$ref": "#/definitions/Events"
|
|
55
|
+
},
|
|
56
|
+
"is_deactivated": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"default": false
|
|
59
|
+
},
|
|
60
|
+
"artist_pick_track_id": {
|
|
61
|
+
"type": ["integer", "null"],
|
|
62
|
+
"default": null
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"bio",
|
|
67
|
+
"cover_photo",
|
|
68
|
+
"cover_photo_sizes",
|
|
69
|
+
"location",
|
|
70
|
+
"name",
|
|
71
|
+
"profile_picture",
|
|
72
|
+
"profile_picture_sizes",
|
|
73
|
+
"artist_pick_track_id"
|
|
74
|
+
],
|
|
75
|
+
"title": "User"
|
|
76
|
+
},
|
|
77
|
+
"CID": {
|
|
78
|
+
"type": ["string", "null"],
|
|
79
|
+
"minLength": 46,
|
|
80
|
+
"maxLength": 46,
|
|
81
|
+
"pattern": "^Qm[a-zA-Z0-9]{44}$",
|
|
82
|
+
"title": "CID"
|
|
83
|
+
},
|
|
84
|
+
"AssociatedWallets": {
|
|
85
|
+
"type": ["object", "null"],
|
|
86
|
+
"default": null,
|
|
87
|
+
"patternProperties": {
|
|
88
|
+
"^0x[a-fA-F0-9]{40}$": { "$ref": "#/definitions/WalletMetadata" }
|
|
89
|
+
},
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"properties": {},
|
|
92
|
+
"required": [],
|
|
93
|
+
"$comment": "",
|
|
94
|
+
"title": "AssociatedWallets"
|
|
95
|
+
},
|
|
96
|
+
"AssociatedSOLWallets": {
|
|
97
|
+
"type": ["object", "null"],
|
|
98
|
+
"default": null,
|
|
99
|
+
"patternProperties": {
|
|
100
|
+
"^[1-9A-HJ-NP-Za-km-z]{32,44}$": {
|
|
101
|
+
"$ref": "#/definitions/WalletMetadata"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"properties": {},
|
|
106
|
+
"required": [],
|
|
107
|
+
"$comment": "",
|
|
108
|
+
"title": "AssociatedSOLWallets"
|
|
109
|
+
},
|
|
110
|
+
"WalletMetadata": {
|
|
111
|
+
"type": ["object"],
|
|
112
|
+
"additionalProperties": true,
|
|
113
|
+
"properties": {
|
|
114
|
+
"signature": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": ["signature"],
|
|
119
|
+
"$comment": "",
|
|
120
|
+
"title": "WalletMetadata"
|
|
121
|
+
},
|
|
122
|
+
"Collectible": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
},
|
|
126
|
+
"Collectibles": {
|
|
127
|
+
"type": ["object", "null"],
|
|
128
|
+
"default": null,
|
|
129
|
+
"additionalProperties": {
|
|
130
|
+
"$ref": "#/definitions/Collectible"
|
|
131
|
+
},
|
|
132
|
+
"properties": {
|
|
133
|
+
"order": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": ["order"]
|
|
141
|
+
},
|
|
142
|
+
"PlaylistIdentifier": {
|
|
143
|
+
"properties": {
|
|
144
|
+
"type": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"const": "playlist"
|
|
147
|
+
},
|
|
148
|
+
"playlist_id": {
|
|
149
|
+
"type": "integer"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"ExplorePlaylistIdentifier": {
|
|
154
|
+
"properties": {
|
|
155
|
+
"type": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"const": "explore_playlist"
|
|
158
|
+
},
|
|
159
|
+
"playlist_id": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"pattern": "^[a-zA-Z /-?]+$"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"PlaylistLibraryIdentifier": {
|
|
166
|
+
"oneOf": [
|
|
167
|
+
{
|
|
168
|
+
"$ref": "#/definitions/PlaylistIdentifier"
|
|
141
169
|
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"pattern": "^[a-zA-Z \/-?]+$"
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"PlaylistLibraryIdentifier": {
|
|
170
|
+
{
|
|
171
|
+
"$ref": "#/definitions/ExplorePlaylistIdentifier"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"PlaylistLibraryFolder": {
|
|
176
|
+
"properties": {
|
|
177
|
+
"type": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"const": "folder"
|
|
180
|
+
},
|
|
181
|
+
"id": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"name": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"contents": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"items": {
|
|
167
190
|
"oneOf": [
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
191
|
+
{
|
|
192
|
+
"$ref": "#/definitions/PlaylistLibraryFolder"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"$ref": "#/definitions/PlaylistLibraryIdentifier"
|
|
196
|
+
}
|
|
174
197
|
]
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"PlaylistLibrary": {
|
|
203
|
+
"type": ["object", "null"],
|
|
204
|
+
"default": null,
|
|
205
|
+
"properties": {
|
|
206
|
+
"contents": {
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": {
|
|
209
|
+
"oneOf": [
|
|
210
|
+
{
|
|
211
|
+
"$ref": "#/definitions/PlaylistLibraryFolder"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"$ref": "#/definitions/PlaylistLibraryIdentifier"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"Events": {
|
|
222
|
+
"type": ["object", "null"],
|
|
223
|
+
"default": null,
|
|
224
|
+
"properties": {
|
|
225
|
+
"referrer": {
|
|
226
|
+
"type": "integer"
|
|
175
227
|
},
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
"type": {
|
|
179
|
-
"type": "string",
|
|
180
|
-
"const": "folder"
|
|
181
|
-
},
|
|
182
|
-
"id": {
|
|
183
|
-
"type": "string"
|
|
184
|
-
},
|
|
185
|
-
"name": {
|
|
186
|
-
"type": "string"
|
|
187
|
-
},
|
|
188
|
-
"contents": {
|
|
189
|
-
"type": "array",
|
|
190
|
-
"items": {
|
|
191
|
-
"oneOf": [
|
|
192
|
-
{
|
|
193
|
-
"$ref": "#/definitions/PlaylistLibraryFolder"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"$ref": "#/definitions/PlaylistLibraryIdentifier"
|
|
197
|
-
}
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
"PlaylistLibrary": {
|
|
204
|
-
"type": ["object", "null"],
|
|
205
|
-
"default": null,
|
|
206
|
-
"properties": {
|
|
207
|
-
"contents": {
|
|
208
|
-
"type": "array",
|
|
209
|
-
"items": {
|
|
210
|
-
"oneOf": [
|
|
211
|
-
{
|
|
212
|
-
"$ref": "#/definitions/PlaylistLibraryFolder"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"$ref": "#/definitions/PlaylistLibraryIdentifier"
|
|
216
|
-
}
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
"Events": {
|
|
223
|
-
"type": ["object", "null"],
|
|
224
|
-
"default": null,
|
|
225
|
-
"properties": {
|
|
226
|
-
"referrer": {
|
|
227
|
-
"type": "integer"
|
|
228
|
-
},
|
|
229
|
-
"is_mobile_user": {
|
|
230
|
-
"type": "boolean"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
228
|
+
"is_mobile_user": {
|
|
229
|
+
"type": "boolean"
|
|
233
230
|
}
|
|
231
|
+
}
|
|
234
232
|
}
|
|
233
|
+
}
|
|
235
234
|
}
|