@audius/sdk 1.0.1-beta.1 → 1.0.1-beta.2
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 +30 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +30 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +30 -2
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +30 -2
- package/dist/native-libs.js.map +1 -1
- package/package.json +1 -1
- package/src/services/schemaValidator/schemas/trackSchema.json +26 -1
package/package.json
CHANGED
|
@@ -114,6 +114,15 @@
|
|
|
114
114
|
"type": ["object", "null"],
|
|
115
115
|
"$ref": "#/definitions/RemixOf",
|
|
116
116
|
"default": null
|
|
117
|
+
},
|
|
118
|
+
"is_premium": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"default": false
|
|
121
|
+
},
|
|
122
|
+
"premium_conditions": {
|
|
123
|
+
"type": ["object", "null"],
|
|
124
|
+
"$ref": "#/definitions/PremiumConditions",
|
|
125
|
+
"default": null
|
|
117
126
|
}
|
|
118
127
|
},
|
|
119
128
|
"required": [
|
|
@@ -137,7 +146,9 @@
|
|
|
137
146
|
"stem_of",
|
|
138
147
|
"tags",
|
|
139
148
|
"title",
|
|
140
|
-
"track_segments"
|
|
149
|
+
"track_segments",
|
|
150
|
+
"is_premium",
|
|
151
|
+
"premium_conditions"
|
|
141
152
|
],
|
|
142
153
|
"title": "Track"
|
|
143
154
|
},
|
|
@@ -262,6 +273,20 @@
|
|
|
262
273
|
"maxLength": 46,
|
|
263
274
|
"pattern": "^Qm[a-zA-Z0-9]{44}$",
|
|
264
275
|
"title": "CID"
|
|
276
|
+
},
|
|
277
|
+
"PremiumConditions": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"additionalProperties": false,
|
|
280
|
+
"properties": {
|
|
281
|
+
"nft-collection": {
|
|
282
|
+
"type": "string"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"required": [
|
|
286
|
+
"nft-collection"
|
|
287
|
+
],
|
|
288
|
+
"$comment": "Once we allow other conditions, we need to update the required property to [] as users will determine what conditions they're gating their content on; the conditions won't necessarily include 'nft-collection'.",
|
|
289
|
+
"title": "PremiumConditions"
|
|
265
290
|
}
|
|
266
291
|
}
|
|
267
292
|
}
|