@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/dist/native-libs.js
CHANGED
|
@@ -514,7 +514,7 @@ if (typeof window !== 'undefined' && window && window.Web3) {
|
|
|
514
514
|
var LibsWeb3 = Web3;
|
|
515
515
|
|
|
516
516
|
var name = "@audius/sdk";
|
|
517
|
-
var version = "1.0.1-beta.
|
|
517
|
+
var version = "1.0.1-beta.2";
|
|
518
518
|
var audius = {
|
|
519
519
|
releaseSHA: "b2033d58ac5a15ed1fd1d6d3298f06541aa78b5e"
|
|
520
520
|
};
|
|
@@ -2972,6 +2972,18 @@ var definitions$2 = {
|
|
|
2972
2972
|
],
|
|
2973
2973
|
$ref: "#/definitions/RemixOf",
|
|
2974
2974
|
"default": null
|
|
2975
|
+
},
|
|
2976
|
+
is_premium: {
|
|
2977
|
+
type: "boolean",
|
|
2978
|
+
"default": false
|
|
2979
|
+
},
|
|
2980
|
+
premium_conditions: {
|
|
2981
|
+
type: [
|
|
2982
|
+
"object",
|
|
2983
|
+
"null"
|
|
2984
|
+
],
|
|
2985
|
+
$ref: "#/definitions/PremiumConditions",
|
|
2986
|
+
"default": null
|
|
2975
2987
|
}
|
|
2976
2988
|
},
|
|
2977
2989
|
required: [
|
|
@@ -2995,7 +3007,9 @@ var definitions$2 = {
|
|
|
2995
3007
|
"stem_of",
|
|
2996
3008
|
"tags",
|
|
2997
3009
|
"title",
|
|
2998
|
-
"track_segments"
|
|
3010
|
+
"track_segments",
|
|
3011
|
+
"is_premium",
|
|
3012
|
+
"premium_conditions"
|
|
2999
3013
|
],
|
|
3000
3014
|
title: "Track"
|
|
3001
3015
|
},
|
|
@@ -3135,6 +3149,20 @@ var definitions$2 = {
|
|
|
3135
3149
|
maxLength: 46,
|
|
3136
3150
|
pattern: "^Qm[a-zA-Z0-9]{44}$",
|
|
3137
3151
|
title: "CID"
|
|
3152
|
+
},
|
|
3153
|
+
PremiumConditions: {
|
|
3154
|
+
type: "object",
|
|
3155
|
+
additionalProperties: false,
|
|
3156
|
+
properties: {
|
|
3157
|
+
"nft-collection": {
|
|
3158
|
+
type: "string"
|
|
3159
|
+
}
|
|
3160
|
+
},
|
|
3161
|
+
required: [
|
|
3162
|
+
"nft-collection"
|
|
3163
|
+
],
|
|
3164
|
+
$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'.",
|
|
3165
|
+
title: "PremiumConditions"
|
|
3138
3166
|
}
|
|
3139
3167
|
};
|
|
3140
3168
|
var TrackSchema = {
|