@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.
@@ -1,235 +1,234 @@
1
1
  {
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
- "^[a-zA-Z0-9]{44}$": { "$ref": "#/definitions/WalletMetadata" }
101
- },
102
- "additionalProperties": false,
103
- "properties": {},
104
- "required": [],
105
- "$comment": "",
106
- "title": "AssociatedSOLWallets"
107
- },
108
- "WalletMetadata": {
109
- "type": ["object"],
110
- "additionalProperties": true,
111
- "properties": {
112
- "signature": {
113
- "type": "string"
114
- }
115
- },
116
- "required": ["signature"],
117
- "$comment": "",
118
- "title": "WalletMetadata"
119
- },
120
- "Collectible": {
121
- "type": "object",
122
- "additionalProperties": false
123
- },
124
- "Collectibles": {
125
- "type": ["object", "null"],
126
- "default": null,
127
- "additionalProperties": {
128
- "$ref": "#/definitions/Collectible"
129
- },
130
- "properties": {
131
- "order": {
132
- "type": "array",
133
- "items": {
134
- "type": "string"
135
- }
136
- }
137
- },
138
- "required": [
139
- "order"
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
- "PlaylistIdentifier": {
143
- "properties": {
144
- "type": {
145
- "type": "string",
146
- "const": "playlist"
147
- },
148
- "playlist_id": {
149
- "type": "integer"
150
- }
151
- }
152
-
153
- },
154
- "ExplorePlaylistIdentifier": {
155
- "properties": {
156
- "type": {
157
- "type": "string",
158
- "const": "explore_playlist"
159
- },
160
- "playlist_id": {
161
- "type": "string",
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
- "$ref": "#/definitions/PlaylistIdentifier"
170
- },
171
- {
172
- "$ref": "#/definitions/ExplorePlaylistIdentifier"
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
- "PlaylistLibraryFolder": {
177
- "properties": {
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
  }
@@ -155,6 +155,8 @@ export type TrackMetadata = {
155
155
  // Added fields
156
156
  dateListened?: string
157
157
  duration: number
158
+
159
+ is_playlist_upload?: boolean
158
160
  }
159
161
 
160
162
  export type CollectionMetadata = {