@sureel/sdk 1.17.0 → 1.17.4-rc.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/api/sureel-api.d.ts +344 -169
- package/api/sureel-api.d.ts.map +1 -1
- package/api/sureel-api.js +451 -193
- package/api/sureel-api.js.map +1 -1
- package/esm/api/sureel-api.d.ts +344 -169
- package/esm/api/sureel-api.d.ts.map +1 -1
- package/esm/api/sureel-api.js +450 -192
- package/esm/api/sureel-api.js.map +1 -1
- package/esm/models/aidetection-result-per-stem-inner.d.ts +1 -1
- package/esm/models/apply-watermark-request.d.ts +2 -2
- package/esm/models/artifacts-per-epoch-entry.d.ts +1 -1
- package/esm/models/artist-profile-data.d.ts +19 -0
- package/esm/models/artist-profile-data.d.ts.map +1 -1
- package/esm/models/artist-settings-duplicate-error.d.ts +24 -0
- package/esm/models/artist-settings-duplicate-error.d.ts.map +1 -1
- package/esm/models/artist-settings-error.d.ts +24 -0
- package/esm/models/artist-settings-error.d.ts.map +1 -1
- package/esm/models/avatar-image-blending-request.d.ts +2 -2
- package/esm/models/bad-request-response.d.ts +44 -0
- package/esm/models/bad-request-response.d.ts.map +1 -0
- package/esm/models/bad-request-response.js +15 -0
- package/esm/models/bad-request-response.js.map +1 -0
- package/esm/models/calculate-attribution-request.d.ts +1 -1
- package/esm/models/control-net-request.d.ts +2 -2
- package/esm/models/cover-art-request.d.ts +2 -2
- package/esm/models/create-collection-request.d.ts +2 -2
- package/esm/models/customer-profile-data.d.ts +13 -0
- package/esm/models/customer-profile-data.d.ts.map +1 -1
- package/esm/models/ddex-source-manifest.d.ts +1 -1
- package/esm/models/ddex-source-zip.d.ts +1 -1
- package/esm/models/ddex-source.d.ts +2 -2
- package/esm/models/evaluate-artist-settings-body.d.ts +7 -0
- package/esm/models/evaluate-artist-settings-body.d.ts.map +1 -1
- package/esm/models/evaluate-music-consent-body.d.ts +7 -0
- package/esm/models/evaluate-music-consent-body.d.ts.map +1 -1
- package/esm/models/evaluate-music-use.d.ts +19 -0
- package/esm/models/evaluate-music-use.d.ts.map +1 -0
- package/esm/models/evaluate-music-use.js +15 -0
- package/esm/models/evaluate-music-use.js.map +1 -0
- package/esm/models/evaluate-nilv-use.d.ts +19 -0
- package/esm/models/evaluate-nilv-use.d.ts.map +1 -0
- package/esm/models/evaluate-nilv-use.js +15 -0
- package/esm/models/evaluate-nilv-use.js.map +1 -0
- package/esm/models/external-stem.d.ts +1 -1
- package/esm/models/generate-preview-request.d.ts +2 -2
- package/esm/models/get-all-artists-response.d.ts +32 -0
- package/esm/models/get-all-artists-response.d.ts.map +1 -0
- package/esm/models/get-all-artists-response.js +15 -0
- package/esm/models/get-all-artists-response.js.map +1 -0
- package/esm/models/identical-matches.d.ts +4 -6
- package/esm/models/identical-matches.d.ts.map +1 -1
- package/esm/models/identical-matches1.d.ts +2 -3
- package/esm/models/identical-matches1.d.ts.map +1 -1
- package/esm/models/image-attribution-analysis-request.d.ts +1 -1
- package/esm/models/image-blending-request.d.ts +2 -2
- package/esm/models/index.d.ts +15 -4
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +15 -4
- package/esm/models/index.js.map +1 -1
- package/esm/models/inpaint-request.d.ts +3 -3
- package/esm/models/model-file.d.ts +1 -1
- package/esm/models/music-ai-use.d.ts +19 -0
- package/esm/models/music-ai-use.d.ts.map +1 -0
- package/esm/models/music-ai-use.js +15 -0
- package/esm/models/music-ai-use.js.map +1 -0
- package/esm/models/music-consent-error.d.ts +24 -0
- package/esm/models/music-consent-error.d.ts.map +1 -1
- package/esm/models/music-grant-input.d.ts +8 -1
- package/esm/models/music-grant-input.d.ts.map +1 -1
- package/esm/models/music-grant.d.ts +8 -1
- package/esm/models/music-grant.d.ts.map +1 -1
- package/esm/models/music-grant1.d.ts +8 -1
- package/esm/models/music-grant1.d.ts.map +1 -1
- package/esm/models/nil-asset-thumbnail-size.d.ts +19 -0
- package/esm/models/nil-asset-thumbnail-size.d.ts.map +1 -0
- package/esm/models/nil-asset-thumbnail-size.js +15 -0
- package/esm/models/nil-asset-thumbnail-size.js.map +1 -0
- package/esm/models/nilv-ai-use.d.ts +19 -0
- package/esm/models/nilv-ai-use.d.ts.map +1 -0
- package/esm/models/nilv-ai-use.js +15 -0
- package/esm/models/nilv-ai-use.js.map +1 -0
- package/esm/models/nilv-grant-input.d.ts +8 -1
- package/esm/models/nilv-grant-input.d.ts.map +1 -1
- package/esm/models/nilv-grant-response.d.ts +8 -1
- package/esm/models/nilv-grant-response.d.ts.map +1 -1
- package/esm/models/nilv-grant-response1.d.ts +8 -1
- package/esm/models/nilv-grant-response1.d.ts.map +1 -1
- package/esm/models/post-accidental-infringement-check-body.d.ts +1 -1
- package/esm/models/post-audio-attribution-analysis-body.d.ts +1 -1
- package/esm/models/post-audio-to-audio-body.d.ts +1 -1
- package/esm/models/post-calculate-attribution-body-audio.d.ts +1 -1
- package/esm/models/post-detect-aigenerated-audio-body.d.ts +1 -1
- package/esm/models/post-lyrics-analysis-body.d.ts +1 -1
- package/esm/models/post-opt-out-analysis-body.d.ts +1 -1
- package/esm/models/post-similar-song-finder-body.d.ts +1 -1
- package/esm/models/post-song-analysis.d.ts +1 -1
- package/esm/models/post-stem-split-body.d.ts +1 -1
- package/esm/models/profile-picture-source.d.ts +19 -0
- package/esm/models/profile-picture-source.d.ts.map +1 -0
- package/esm/models/profile-picture-source.js +15 -0
- package/esm/models/profile-picture-source.js.map +1 -0
- package/esm/models/reimagine-request.d.ts +2 -2
- package/esm/models/remove-background-request.d.ts +1 -1
- package/esm/models/roster-artist-profile-data.d.ts +25 -0
- package/esm/models/roster-artist-profile-data.d.ts.map +1 -1
- package/esm/models/roster-artist-response.d.ts +33 -0
- package/esm/models/roster-artist-response.d.ts.map +1 -0
- package/esm/models/roster-artist-response.js +15 -0
- package/esm/models/roster-artist-response.js.map +1 -0
- package/esm/models/roster-invited-by-acting-as.d.ts +19 -0
- package/esm/models/roster-invited-by-acting-as.d.ts.map +1 -0
- package/esm/models/roster-invited-by-acting-as.js +15 -0
- package/esm/models/roster-invited-by-acting-as.js.map +1 -0
- package/esm/models/roster-invited-by.d.ts +44 -0
- package/esm/models/roster-invited-by.d.ts.map +1 -0
- package/esm/models/roster-invited-by.js +15 -0
- package/esm/models/roster-invited-by.js.map +1 -0
- package/esm/models/roster-party-org.d.ts +31 -0
- package/esm/models/roster-party-org.d.ts.map +1 -0
- package/esm/models/roster-party-org.js +15 -0
- package/esm/models/roster-party-org.js.map +1 -0
- package/esm/models/roster-party-status.d.ts +19 -0
- package/esm/models/roster-party-status.d.ts.map +1 -0
- package/esm/models/roster-party-status.js +15 -0
- package/esm/models/roster-party-status.js.map +1 -0
- package/esm/models/roster-party.d.ts +88 -0
- package/esm/models/roster-party.d.ts.map +1 -0
- package/esm/models/roster-party.js +15 -0
- package/esm/models/roster-party.js.map +1 -0
- package/esm/models/service-unavailable-response.d.ts +37 -0
- package/esm/models/service-unavailable-response.d.ts.map +1 -0
- package/esm/models/service-unavailable-response.js +15 -0
- package/esm/models/service-unavailable-response.js.map +1 -0
- package/esm/models/set-filepath-file.d.ts +1 -1
- package/esm/models/style-image.d.ts +1 -1
- package/esm/models/style-transfer-request.d.ts +2 -2
- package/esm/models/text-to-image-request.d.ts +1 -1
- package/esm/models/track-inference-artifacts-body.d.ts +8 -8
- package/esm/models/track-training-artifacts-body.d.ts +2 -2
- package/esm/models/training-artifact-entry.d.ts +2 -2
- package/esm/models/update-collection-request.d.ts +1 -1
- package/esm/models/upload-url-request.d.ts +6 -0
- package/esm/models/upload-url-request.d.ts.map +1 -1
- package/esm/models/upload-url.d.ts +1 -1
- package/esm/models/upscale-request.d.ts +2 -2
- package/models/aidetection-result-per-stem-inner.d.ts +1 -1
- package/models/apply-watermark-request.d.ts +2 -2
- package/models/artifacts-per-epoch-entry.d.ts +1 -1
- package/models/artist-profile-data.d.ts +19 -0
- package/models/artist-profile-data.d.ts.map +1 -1
- package/models/artist-settings-duplicate-error.d.ts +24 -0
- package/models/artist-settings-duplicate-error.d.ts.map +1 -1
- package/models/artist-settings-error.d.ts +24 -0
- package/models/artist-settings-error.d.ts.map +1 -1
- package/models/avatar-image-blending-request.d.ts +2 -2
- package/models/bad-request-response.d.ts +44 -0
- package/models/bad-request-response.d.ts.map +1 -0
- package/models/bad-request-response.js +16 -0
- package/models/bad-request-response.js.map +1 -0
- package/models/calculate-attribution-request.d.ts +1 -1
- package/models/control-net-request.d.ts +2 -2
- package/models/cover-art-request.d.ts +2 -2
- package/models/create-collection-request.d.ts +2 -2
- package/models/customer-profile-data.d.ts +13 -0
- package/models/customer-profile-data.d.ts.map +1 -1
- package/models/ddex-source-manifest.d.ts +1 -1
- package/models/ddex-source-zip.d.ts +1 -1
- package/models/ddex-source.d.ts +2 -2
- package/models/evaluate-artist-settings-body.d.ts +7 -0
- package/models/evaluate-artist-settings-body.d.ts.map +1 -1
- package/models/evaluate-music-consent-body.d.ts +7 -0
- package/models/evaluate-music-consent-body.d.ts.map +1 -1
- package/models/evaluate-music-use.d.ts +19 -0
- package/models/evaluate-music-use.d.ts.map +1 -0
- package/models/evaluate-music-use.js +16 -0
- package/models/evaluate-music-use.js.map +1 -0
- package/models/evaluate-nilv-use.d.ts +19 -0
- package/models/evaluate-nilv-use.d.ts.map +1 -0
- package/models/evaluate-nilv-use.js +16 -0
- package/models/evaluate-nilv-use.js.map +1 -0
- package/models/external-stem.d.ts +1 -1
- package/models/generate-preview-request.d.ts +2 -2
- package/models/get-all-artists-response.d.ts +32 -0
- package/models/get-all-artists-response.d.ts.map +1 -0
- package/models/get-all-artists-response.js +16 -0
- package/models/get-all-artists-response.js.map +1 -0
- package/models/identical-matches.d.ts +4 -6
- package/models/identical-matches.d.ts.map +1 -1
- package/models/identical-matches1.d.ts +2 -3
- package/models/identical-matches1.d.ts.map +1 -1
- package/models/image-attribution-analysis-request.d.ts +1 -1
- package/models/image-blending-request.d.ts +2 -2
- package/models/index.d.ts +15 -4
- package/models/index.d.ts.map +1 -1
- package/models/index.js +15 -4
- package/models/index.js.map +1 -1
- package/models/inpaint-request.d.ts +3 -3
- package/models/model-file.d.ts +1 -1
- package/models/music-ai-use.d.ts +19 -0
- package/models/music-ai-use.d.ts.map +1 -0
- package/models/music-ai-use.js +16 -0
- package/models/music-ai-use.js.map +1 -0
- package/models/music-consent-error.d.ts +24 -0
- package/models/music-consent-error.d.ts.map +1 -1
- package/models/music-grant-input.d.ts +8 -1
- package/models/music-grant-input.d.ts.map +1 -1
- package/models/music-grant.d.ts +8 -1
- package/models/music-grant.d.ts.map +1 -1
- package/models/music-grant1.d.ts +8 -1
- package/models/music-grant1.d.ts.map +1 -1
- package/models/nil-asset-thumbnail-size.d.ts +19 -0
- package/models/nil-asset-thumbnail-size.d.ts.map +1 -0
- package/models/nil-asset-thumbnail-size.js +16 -0
- package/models/nil-asset-thumbnail-size.js.map +1 -0
- package/models/nilv-ai-use.d.ts +19 -0
- package/models/nilv-ai-use.d.ts.map +1 -0
- package/models/nilv-ai-use.js +16 -0
- package/models/nilv-ai-use.js.map +1 -0
- package/models/nilv-grant-input.d.ts +8 -1
- package/models/nilv-grant-input.d.ts.map +1 -1
- package/models/nilv-grant-response.d.ts +8 -1
- package/models/nilv-grant-response.d.ts.map +1 -1
- package/models/nilv-grant-response1.d.ts +8 -1
- package/models/nilv-grant-response1.d.ts.map +1 -1
- package/models/post-accidental-infringement-check-body.d.ts +1 -1
- package/models/post-audio-attribution-analysis-body.d.ts +1 -1
- package/models/post-audio-to-audio-body.d.ts +1 -1
- package/models/post-calculate-attribution-body-audio.d.ts +1 -1
- package/models/post-detect-aigenerated-audio-body.d.ts +1 -1
- package/models/post-lyrics-analysis-body.d.ts +1 -1
- package/models/post-opt-out-analysis-body.d.ts +1 -1
- package/models/post-similar-song-finder-body.d.ts +1 -1
- package/models/post-song-analysis.d.ts +1 -1
- package/models/post-stem-split-body.d.ts +1 -1
- package/models/profile-picture-source.d.ts +19 -0
- package/models/profile-picture-source.d.ts.map +1 -0
- package/models/profile-picture-source.js +16 -0
- package/models/profile-picture-source.js.map +1 -0
- package/models/reimagine-request.d.ts +2 -2
- package/models/remove-background-request.d.ts +1 -1
- package/models/roster-artist-profile-data.d.ts +25 -0
- package/models/roster-artist-profile-data.d.ts.map +1 -1
- package/models/roster-artist-response.d.ts +33 -0
- package/models/roster-artist-response.d.ts.map +1 -0
- package/models/roster-artist-response.js +16 -0
- package/models/roster-artist-response.js.map +1 -0
- package/models/roster-invited-by-acting-as.d.ts +19 -0
- package/models/roster-invited-by-acting-as.d.ts.map +1 -0
- package/models/roster-invited-by-acting-as.js +16 -0
- package/models/roster-invited-by-acting-as.js.map +1 -0
- package/models/roster-invited-by.d.ts +44 -0
- package/models/roster-invited-by.d.ts.map +1 -0
- package/models/roster-invited-by.js +16 -0
- package/models/roster-invited-by.js.map +1 -0
- package/models/roster-party-org.d.ts +31 -0
- package/models/roster-party-org.d.ts.map +1 -0
- package/models/roster-party-org.js +16 -0
- package/models/roster-party-org.js.map +1 -0
- package/models/roster-party-status.d.ts +19 -0
- package/models/roster-party-status.d.ts.map +1 -0
- package/models/roster-party-status.js +16 -0
- package/models/roster-party-status.js.map +1 -0
- package/models/roster-party.d.ts +88 -0
- package/models/roster-party.d.ts.map +1 -0
- package/models/roster-party.js +16 -0
- package/models/roster-party.js.map +1 -0
- package/models/service-unavailable-response.d.ts +37 -0
- package/models/service-unavailable-response.d.ts.map +1 -0
- package/models/service-unavailable-response.js +16 -0
- package/models/service-unavailable-response.js.map +1 -0
- package/models/set-filepath-file.d.ts +1 -1
- package/models/style-image.d.ts +1 -1
- package/models/style-transfer-request.d.ts +2 -2
- package/models/text-to-image-request.d.ts +1 -1
- package/models/track-inference-artifacts-body.d.ts +8 -8
- package/models/track-training-artifacts-body.d.ts +2 -2
- package/models/training-artifact-entry.d.ts +2 -2
- package/models/update-collection-request.d.ts +1 -1
- package/models/upload-url-request.d.ts +6 -0
- package/models/upload-url-request.d.ts.map +1 -1
- package/models/upload-url.d.ts +1 -1
- package/models/upscale-request.d.ts +2 -2
- package/package.json +1 -1
package/esm/api/sureel-api.js
CHANGED
|
@@ -996,7 +996,7 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
996
996
|
},
|
|
997
997
|
/**
|
|
998
998
|
* Returns the signed url for the given filenames.
|
|
999
|
-
* @summary Generate signed URLs to
|
|
999
|
+
* @summary Generate signed URLs to upload files to cloud storage
|
|
1000
1000
|
* @param {GeneratePutUploadUrlsContentTypeEnum} contentType
|
|
1001
1001
|
* @param {UploadUrlRequest} uploadUrlRequest
|
|
1002
1002
|
* @param {*} [options] Override http request option.
|
|
@@ -1102,17 +1102,18 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1102
1102
|
};
|
|
1103
1103
|
},
|
|
1104
1104
|
/**
|
|
1105
|
-
* Get a list of
|
|
1105
|
+
* Get a paginated list of artists on the public directory, including their published collections. Read a page at a time with `take` (default 20, at most 100) and resume the walk by passing the previous page\'s `lastEvaluatedKey` back as `cursor`. The body is an object, `{ artists, lastEvaluatedKey }`; `lastEvaluatedKey` is absent on the last page, and an empty directory is a 200 with an empty `artists` array. The optional `search` term matches an artist\'s username, a previous username, or their company name, and is served from the profile index alone: while that index is unavailable a searched read answers 503, an unsearched one starts again from DynamoDB, unordered, and a walk already resuming from an index cursor is refused rather than restarted. By default, each user has a limit of 60 requests per minute.
|
|
1106
1106
|
* @summary Get all artists
|
|
1107
1107
|
* @param {string} includeArtworks
|
|
1108
1108
|
* @param {string} [includeOriginalSongs]
|
|
1109
1109
|
* @param {string} [includeFullResArtworks]
|
|
1110
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
1111
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
1110
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
1111
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
1112
|
+
* @param {string} [search] Filter the directory to artists matching this term, on their username, a previous username, or their company name. Served from the profile index alone: while that index is unavailable a searched read answers 503, because DynamoDB cannot match a name without answering a different question. Omit the parameter to read the whole directory: an empty term is refused, because it would otherwise be answered as an unsearched read whose cursor format the next request cannot carry.
|
|
1112
1113
|
* @param {*} [options] Override http request option.
|
|
1113
1114
|
* @throws {RequiredError}
|
|
1114
1115
|
*/
|
|
1115
|
-
getAllArtists: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options = {}) => {
|
|
1116
|
+
getAllArtists: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options = {}) => {
|
|
1116
1117
|
// verify required parameter 'includeArtworks' is not null or undefined
|
|
1117
1118
|
assertParamExists("getAllArtists", "includeArtworks", includeArtworks);
|
|
1118
1119
|
const localVarPath = `/v1/ai/artist/`;
|
|
@@ -1142,6 +1143,9 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1142
1143
|
if (cursor !== undefined) {
|
|
1143
1144
|
localVarQueryParameter["cursor"] = cursor;
|
|
1144
1145
|
}
|
|
1146
|
+
if (search !== undefined) {
|
|
1147
|
+
localVarQueryParameter["search"] = search;
|
|
1148
|
+
}
|
|
1145
1149
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1146
1150
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1147
1151
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1210,16 +1214,18 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1210
1214
|
* @param {string} username
|
|
1211
1215
|
* @param {string} [includeOriginalSongs]
|
|
1212
1216
|
* @param {string} [includeFullResArtworks]
|
|
1213
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
1214
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
1217
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
1218
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
1215
1219
|
* @param {GetArtistByUsernameCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
|
|
1216
|
-
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
|
|
1217
|
-
* @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria.
|
|
1218
|
-
* @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order.
|
|
1220
|
+
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching. Answered by the search index, so the request is refused with 503 while that index is unavailable.
|
|
1221
|
+
* @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria. While the search index is unavailable, only release_date, collection_name and number_of_assets can be answered; the other fields are refused with 503.
|
|
1222
|
+
* @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
|
|
1223
|
+
* @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \'album,single\'). Valid values: album, single, compilation, audio collection, image collection, video collection. Only the values ingestion writes are stored on a record and can therefore be filtered on: album, single, compilation. The remaining values (\"audio collection\", \"image collection\", \"video collection\") are derived at read time from a collection\'s assets and are not filterable yet: asking for one matches nothing.
|
|
1224
|
+
* @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
|
|
1219
1225
|
* @param {*} [options] Override http request option.
|
|
1220
1226
|
* @throws {RequiredError}
|
|
1221
1227
|
*/
|
|
1222
|
-
getArtistByUsername: async (includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options = {}) => {
|
|
1228
|
+
getArtistByUsername: async (includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options = {}) => {
|
|
1223
1229
|
// verify required parameter 'includeArtworks' is not null or undefined
|
|
1224
1230
|
assertParamExists("getArtistByUsername", "includeArtworks", includeArtworks);
|
|
1225
1231
|
// verify required parameter 'username' is not null or undefined
|
|
@@ -1265,6 +1271,12 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1265
1271
|
if (sortOrder !== undefined) {
|
|
1266
1272
|
localVarQueryParameter["sort_order"] = sortOrder;
|
|
1267
1273
|
}
|
|
1274
|
+
if (releaseType !== undefined) {
|
|
1275
|
+
localVarQueryParameter["release_type"] = releaseType;
|
|
1276
|
+
}
|
|
1277
|
+
if (useForTraining !== undefined) {
|
|
1278
|
+
localVarQueryParameter["use_for_training"] = useForTraining;
|
|
1279
|
+
}
|
|
1268
1280
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1269
1281
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1270
1282
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1442,19 +1454,21 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1442
1454
|
};
|
|
1443
1455
|
},
|
|
1444
1456
|
/**
|
|
1445
|
-
*
|
|
1457
|
+
* Get the label profile data and one page of the artists associated with the label. Read a page at a time with `take` (default 20, at most 100) and resume the walk by passing the previous page\'s `lastEvaluatedKey` back as `cursor`; `lastEvaluatedKey` is absent on the last page. The optional `search` term matches an artist\'s username, a previous username, or their company name, and is served from the profile index alone: while that index is unavailable a searched read answers 503, an unsearched one is read from DynamoDB. The optional `signed_label` narrows the roster to one of the company\'s labels, from the same index and with the same 503. A cursor may only be carried between requests that agree on whether `search` or `signed_label` is set, and one this service cannot decode is refused: both answer 400.
|
|
1446
1458
|
* @summary Get profile data by label name
|
|
1447
1459
|
* @param {string} labelName
|
|
1448
|
-
* @param {number} [take] The `take` parameter is the number of artists to return per page.
|
|
1449
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
|
|
1460
|
+
* @param {number} [take] The `take` parameter is the number of artists to return per page, at most 100. A searched page is read by key out of the profile table, which reads 100 keys per round trip.
|
|
1461
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page. A cursor belongs to the read that issued it: one issued by a searched page is refused on an unsearched read and the other way round, and one this service cannot decode is refused too, both with 400.
|
|
1462
|
+
* @param {string} [search] Filter the roster to parties matching this term, on their username, a previous username, or their company name. Served from the profile index alone: while that index is unavailable a searched read answers 503, because DynamoDB cannot match a name without answering a different question. The search issues a cursor format of its own, so a `cursor` may only be carried between requests that agree on whether `search` is set: mixing the two is refused. Omit the parameter to read the whole roster: an empty term is refused rather than read as no search at all.
|
|
1463
|
+
* @param {string} [signedLabel] Narrow the roster to parties signed to this label, matched exactly against their `signed_labels`; the company\'s `sub_labels` are the values it holds. Combines with `search`, `roles` and `include_hidden`, and never reaches past the company\'s own roster. Served from the profile index like `search`, with the same 503 while that index is unavailable and the same cursor format: a `cursor` may only be carried between requests that agree on whether either parameter is set.
|
|
1450
1464
|
* @param {boolean} [includeNilv] When true, each roster artist carries a `nilv` summary of their consent record: whether one exists, its version, when it changed and whether the artist or the label changed it. Only the label itself and users connected to it may ask for this. Requires an explicit `take` of at most 100, because the summary costs one read per artist.
|
|
1451
1465
|
* @param {boolean} [includeMusicConsent] When true, each roster artist carries a `music_consent` summary of their music consent record, the track-level twin of `nilv`. Same boundary and the same explicit `take` requirement, because the summary costs one read per artist.
|
|
1452
1466
|
* @param {boolean} [includeHidden] When true, roster artists that are not shown in the frontend are included, each carrying `show_in_frontend`. Only the label itself and users connected to it may ask for this; anyone else is refused.
|
|
1453
|
-
* @param {Set<RosterRoleFilter>} [roles] Which parties the roster returns: artists, songwriters, or both, in one page stream. Artists join through the company\'s customer_name, songwriters through its publisher_name;
|
|
1467
|
+
* @param {Set<RosterRoleFilter>} [roles] Which parties the roster returns: artists, songwriters, or both, in one page stream. Artists and singer-songwriters join through the company\'s customer_name, songwriters through its customer_name (roster invitees) and its publisher_name; every party appears once. Omitted, the roster behaves exactly as before this parameter existed. Only the company itself and users connected to it may filter by roles, and the cursor format differs from the default one, so do not mix cursors across the two modes.
|
|
1454
1468
|
* @param {*} [options] Override http request option.
|
|
1455
1469
|
* @throws {RequiredError}
|
|
1456
1470
|
*/
|
|
1457
|
-
getCustomerData: async (labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options = {}) => {
|
|
1471
|
+
getCustomerData: async (labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options = {}) => {
|
|
1458
1472
|
// verify required parameter 'labelName' is not null or undefined
|
|
1459
1473
|
assertParamExists("getCustomerData", "labelName", labelName);
|
|
1460
1474
|
const localVarPath = `/v1/ai/record-label/{labelName}`.replace(`{${"labelName"}}`, encodeURIComponent(String(labelName)));
|
|
@@ -1476,6 +1490,12 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1476
1490
|
if (cursor !== undefined) {
|
|
1477
1491
|
localVarQueryParameter["cursor"] = cursor;
|
|
1478
1492
|
}
|
|
1493
|
+
if (search !== undefined) {
|
|
1494
|
+
localVarQueryParameter["search"] = search;
|
|
1495
|
+
}
|
|
1496
|
+
if (signedLabel !== undefined) {
|
|
1497
|
+
localVarQueryParameter["signed_label"] = signedLabel;
|
|
1498
|
+
}
|
|
1479
1499
|
if (includeNilv !== undefined) {
|
|
1480
1500
|
localVarQueryParameter["include_nilv"] = includeNilv;
|
|
1481
1501
|
}
|
|
@@ -1564,6 +1584,93 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1564
1584
|
options: localVarRequestOptions,
|
|
1565
1585
|
};
|
|
1566
1586
|
},
|
|
1587
|
+
/**
|
|
1588
|
+
* Re-encoded on the server with metadata stripped; the original bytes and any URL to them never leave. 404 for an unknown id, a non-image entry, an entry not yet ingested and an image that cannot be decoded, identically.
|
|
1589
|
+
* @summary Get a small WebP preview of an ingested NILV image
|
|
1590
|
+
* @param {string} assetId The id of a reference image or brand mark in the record.
|
|
1591
|
+
* @param {NilAssetThumbnailSize} [size]
|
|
1592
|
+
* @param {string} [v] Ignored by the server. Clients pass the asset\'s sha256 so a replaced file is not served from cache.
|
|
1593
|
+
* @param {*} [options] Override http request option.
|
|
1594
|
+
* @throws {RequiredError}
|
|
1595
|
+
*/
|
|
1596
|
+
getNilAssetThumbnail: async (assetId, size, v, options = {}) => {
|
|
1597
|
+
// verify required parameter 'assetId' is not null or undefined
|
|
1598
|
+
assertParamExists("getNilAssetThumbnail", "assetId", assetId);
|
|
1599
|
+
const localVarPath = `/v1/ai/artist/settings/assets/{assetId}/thumbnail`.replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
|
|
1600
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1601
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1602
|
+
let baseOptions;
|
|
1603
|
+
if (configuration) {
|
|
1604
|
+
baseOptions = configuration.baseOptions;
|
|
1605
|
+
}
|
|
1606
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options);
|
|
1607
|
+
const localVarHeaderParameter = {};
|
|
1608
|
+
const localVarQueryParameter = {};
|
|
1609
|
+
// authentication OAuth2 required
|
|
1610
|
+
// oauth required
|
|
1611
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
|
|
1612
|
+
if (size !== undefined) {
|
|
1613
|
+
for (const [key, value] of Object.entries(size)) {
|
|
1614
|
+
localVarQueryParameter[key] = value;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
if (v !== undefined) {
|
|
1618
|
+
localVarQueryParameter["v"] = v;
|
|
1619
|
+
}
|
|
1620
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1622
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1623
|
+
return {
|
|
1624
|
+
url: toPathString(localVarUrlObj),
|
|
1625
|
+
options: localVarRequestOptions,
|
|
1626
|
+
};
|
|
1627
|
+
},
|
|
1628
|
+
/**
|
|
1629
|
+
* Re-encoded on the server with metadata stripped; the original bytes and any URL to them never leave. 404 for an unknown id, a non-image entry, an entry not yet ingested and an image that cannot be decoded, identically.
|
|
1630
|
+
* @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
|
|
1631
|
+
* @param {string} username The artist whose settings are being addressed.
|
|
1632
|
+
* @param {string} assetId The id of a reference image or brand mark in the record.
|
|
1633
|
+
* @param {NilAssetThumbnailSize} [size]
|
|
1634
|
+
* @param {string} [v] Ignored by the server. Clients pass the asset\'s sha256 so a replaced file is not served from cache.
|
|
1635
|
+
* @param {*} [options] Override http request option.
|
|
1636
|
+
* @throws {RequiredError}
|
|
1637
|
+
*/
|
|
1638
|
+
getNilAssetThumbnailByUsername: async (username, assetId, size, v, options = {}) => {
|
|
1639
|
+
// verify required parameter 'username' is not null or undefined
|
|
1640
|
+
assertParamExists("getNilAssetThumbnailByUsername", "username", username);
|
|
1641
|
+
// verify required parameter 'assetId' is not null or undefined
|
|
1642
|
+
assertParamExists("getNilAssetThumbnailByUsername", "assetId", assetId);
|
|
1643
|
+
const localVarPath = `/v1/ai/artist/{username}/settings/assets/{assetId}/thumbnail`
|
|
1644
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
1645
|
+
.replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
|
|
1646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1647
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1648
|
+
let baseOptions;
|
|
1649
|
+
if (configuration) {
|
|
1650
|
+
baseOptions = configuration.baseOptions;
|
|
1651
|
+
}
|
|
1652
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options);
|
|
1653
|
+
const localVarHeaderParameter = {};
|
|
1654
|
+
const localVarQueryParameter = {};
|
|
1655
|
+
// authentication OAuth2 required
|
|
1656
|
+
// oauth required
|
|
1657
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
|
|
1658
|
+
if (size !== undefined) {
|
|
1659
|
+
for (const [key, value] of Object.entries(size)) {
|
|
1660
|
+
localVarQueryParameter[key] = value;
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
if (v !== undefined) {
|
|
1664
|
+
localVarQueryParameter["v"] = v;
|
|
1665
|
+
}
|
|
1666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1668
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1669
|
+
return {
|
|
1670
|
+
url: toPathString(localVarUrlObj),
|
|
1671
|
+
options: localVarRequestOptions,
|
|
1672
|
+
};
|
|
1673
|
+
},
|
|
1567
1674
|
/**
|
|
1568
1675
|
* Answers 404 for an unknown request and for one belonging to another artist, identically.
|
|
1569
1676
|
* @summary Check how ingestion of a settings submission\'s assets is going
|
|
@@ -1639,16 +1746,18 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1639
1746
|
* @param {string} includeArtworks
|
|
1640
1747
|
* @param {string} [includeOriginalSongs]
|
|
1641
1748
|
* @param {string} [includeFullResArtworks]
|
|
1642
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
1643
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
1749
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
1750
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
1644
1751
|
* @param {GetOwnCollectionsCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
|
|
1645
|
-
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
|
|
1646
|
-
* @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria.
|
|
1647
|
-
* @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order.
|
|
1752
|
+
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching. Answered by the search index, so the request is refused with 503 while that index is unavailable.
|
|
1753
|
+
* @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria. While the search index is unavailable, only release_date, collection_name and number_of_assets can be answered; the other fields are refused with 503.
|
|
1754
|
+
* @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
|
|
1755
|
+
* @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \'album,single\'). Valid values: album, single, compilation, audio collection, image collection, video collection. Only the values ingestion writes are stored on a record and can therefore be filtered on: album, single, compilation. The remaining values (\"audio collection\", \"image collection\", \"video collection\") are derived at read time from a collection\'s assets and are not filterable yet: asking for one matches nothing.
|
|
1756
|
+
* @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
|
|
1648
1757
|
* @param {*} [options] Override http request option.
|
|
1649
1758
|
* @throws {RequiredError}
|
|
1650
1759
|
*/
|
|
1651
|
-
getOwnCollections: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options = {}) => {
|
|
1760
|
+
getOwnCollections: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options = {}) => {
|
|
1652
1761
|
// verify required parameter 'includeArtworks' is not null or undefined
|
|
1653
1762
|
assertParamExists("getOwnCollections", "includeArtworks", includeArtworks);
|
|
1654
1763
|
const localVarPath = `/v1/ai/artist/collections`;
|
|
@@ -1695,6 +1804,12 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1695
1804
|
if (sortOrder !== undefined) {
|
|
1696
1805
|
localVarQueryParameter["sort_order"] = sortOrder;
|
|
1697
1806
|
}
|
|
1807
|
+
if (releaseType !== undefined) {
|
|
1808
|
+
localVarQueryParameter["release_type"] = releaseType;
|
|
1809
|
+
}
|
|
1810
|
+
if (useForTraining !== undefined) {
|
|
1811
|
+
localVarQueryParameter["use_for_training"] = useForTraining;
|
|
1812
|
+
}
|
|
1698
1813
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1699
1814
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1700
1815
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1792,6 +1907,51 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
1792
1907
|
options: localVarRequestOptions,
|
|
1793
1908
|
};
|
|
1794
1909
|
},
|
|
1910
|
+
/**
|
|
1911
|
+
* One roster artist as a roster page shows them, with the org\'s roster rows about them, so a record opened by link does not have to walk the roster to find its artist. Needs the X-Sureel-Org header and `roster:read` on that org, plus `identity:read` for `include_nilv` and `works:read` for `include_music_consent`. An artist the org does not hold answers 404, the same as one that does not exist.
|
|
1912
|
+
* @summary Get one artist on a label\'s roster
|
|
1913
|
+
* @param {string} labelName
|
|
1914
|
+
* @param {string} username
|
|
1915
|
+
* @param {boolean} [includeNilv] When true, the artist carries the same `nilv` summary a roster page gives each artist.
|
|
1916
|
+
* @param {boolean} [includeMusicConsent] When true, the artist carries the same `music_consent` summary a roster page gives each artist.
|
|
1917
|
+
* @param {*} [options] Override http request option.
|
|
1918
|
+
* @throws {RequiredError}
|
|
1919
|
+
*/
|
|
1920
|
+
getRosterArtist: async (labelName, username, includeNilv, includeMusicConsent, options = {}) => {
|
|
1921
|
+
// verify required parameter 'labelName' is not null or undefined
|
|
1922
|
+
assertParamExists("getRosterArtist", "labelName", labelName);
|
|
1923
|
+
// verify required parameter 'username' is not null or undefined
|
|
1924
|
+
assertParamExists("getRosterArtist", "username", username);
|
|
1925
|
+
const localVarPath = `/v1/ai/record-label/{labelName}/roster/{username}`
|
|
1926
|
+
.replace(`{${"labelName"}}`, encodeURIComponent(String(labelName)))
|
|
1927
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
1928
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1929
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1930
|
+
let baseOptions;
|
|
1931
|
+
if (configuration) {
|
|
1932
|
+
baseOptions = configuration.baseOptions;
|
|
1933
|
+
}
|
|
1934
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options);
|
|
1935
|
+
const localVarHeaderParameter = {};
|
|
1936
|
+
const localVarQueryParameter = {};
|
|
1937
|
+
// authentication OAuth2 required
|
|
1938
|
+
// oauth required
|
|
1939
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
|
|
1940
|
+
if (includeNilv !== undefined) {
|
|
1941
|
+
localVarQueryParameter["include_nilv"] = includeNilv;
|
|
1942
|
+
}
|
|
1943
|
+
if (includeMusicConsent !== undefined) {
|
|
1944
|
+
localVarQueryParameter["include_music_consent"] =
|
|
1945
|
+
includeMusicConsent;
|
|
1946
|
+
}
|
|
1947
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1948
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1949
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1950
|
+
return {
|
|
1951
|
+
url: toPathString(localVarUrlObj),
|
|
1952
|
+
options: localVarRequestOptions,
|
|
1953
|
+
};
|
|
1954
|
+
},
|
|
1795
1955
|
/**
|
|
1796
1956
|
* Get the style preset parameters for ldm.
|
|
1797
1957
|
* @summary Style presets for ldm
|
|
@@ -2766,46 +2926,6 @@ export const SureelApiAxiosParamCreator = function (configuration) {
|
|
|
2766
2926
|
options: localVarRequestOptions,
|
|
2767
2927
|
};
|
|
2768
2928
|
},
|
|
2769
|
-
/**
|
|
2770
|
-
* Upload audio, image, video, metadata, or archive files as form-data for use with other endpoints. Allowed file extensions: - Audio: .wav, .mp3, .m4a, .flac - Image: .jpeg, .jpg, .png, .tif - Video: .mp4 - Metadata: .json, .npy, .xml, .npz - Archive: .zip All uploads are securely stored on the server for a limited time. Maximum file size: 200MB. For files larger than 200MB (e.g. DDEX ZIPs), use `/files/generate-upload-urls` instead.
|
|
2771
|
-
* @summary Upload files as form-data
|
|
2772
|
-
* @param {UploadFilesContentTypeEnum} contentType
|
|
2773
|
-
* @param {string} contentType2
|
|
2774
|
-
* @param {*} [options] Override http request option.
|
|
2775
|
-
* @throws {RequiredError}
|
|
2776
|
-
*/
|
|
2777
|
-
uploadFiles: async (contentType, contentType2, options = {}) => {
|
|
2778
|
-
// verify required parameter 'contentType' is not null or undefined
|
|
2779
|
-
assertParamExists("uploadFiles", "contentType", contentType);
|
|
2780
|
-
// verify required parameter 'contentType2' is not null or undefined
|
|
2781
|
-
assertParamExists("uploadFiles", "contentType2", contentType2);
|
|
2782
|
-
const localVarPath = `/v1/ai/files/upload-files`;
|
|
2783
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2784
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2785
|
-
let baseOptions;
|
|
2786
|
-
if (configuration) {
|
|
2787
|
-
baseOptions = configuration.baseOptions;
|
|
2788
|
-
}
|
|
2789
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: "POST" }, baseOptions), options);
|
|
2790
|
-
const localVarHeaderParameter = {};
|
|
2791
|
-
const localVarQueryParameter = {};
|
|
2792
|
-
// authentication OAuth2 required
|
|
2793
|
-
// oauth required
|
|
2794
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
|
|
2795
|
-
if (contentType !== undefined) {
|
|
2796
|
-
localVarQueryParameter["contentType"] = contentType;
|
|
2797
|
-
}
|
|
2798
|
-
if (contentType2 != null) {
|
|
2799
|
-
localVarHeaderParameter["Content-Type"] = String(contentType2);
|
|
2800
|
-
}
|
|
2801
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2802
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2803
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2804
|
-
return {
|
|
2805
|
-
url: toPathString(localVarUrlObj),
|
|
2806
|
-
options: localVarRequestOptions,
|
|
2807
|
-
};
|
|
2808
|
-
},
|
|
2809
2929
|
/**
|
|
2810
2930
|
* Upscale a given image. The maximum allowed resolution for the content image is 1024x1024. By default, each user has a limit of 100 requests per minute.
|
|
2811
2931
|
* @summary Upscaling
|
|
@@ -3241,7 +3361,7 @@ export const SureelApiFp = function (configuration) {
|
|
|
3241
3361
|
},
|
|
3242
3362
|
/**
|
|
3243
3363
|
* Returns the signed url for the given filenames.
|
|
3244
|
-
* @summary Generate signed URLs to
|
|
3364
|
+
* @summary Generate signed URLs to upload files to cloud storage
|
|
3245
3365
|
* @param {GeneratePutUploadUrlsContentTypeEnum} contentType
|
|
3246
3366
|
* @param {UploadUrlRequest} uploadUrlRequest
|
|
3247
3367
|
* @param {*} [options] Override http request option.
|
|
@@ -3284,19 +3404,20 @@ export const SureelApiFp = function (configuration) {
|
|
|
3284
3404
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3285
3405
|
},
|
|
3286
3406
|
/**
|
|
3287
|
-
* Get a list of
|
|
3407
|
+
* Get a paginated list of artists on the public directory, including their published collections. Read a page at a time with `take` (default 20, at most 100) and resume the walk by passing the previous page\'s `lastEvaluatedKey` back as `cursor`. The body is an object, `{ artists, lastEvaluatedKey }`; `lastEvaluatedKey` is absent on the last page, and an empty directory is a 200 with an empty `artists` array. The optional `search` term matches an artist\'s username, a previous username, or their company name, and is served from the profile index alone: while that index is unavailable a searched read answers 503, an unsearched one starts again from DynamoDB, unordered, and a walk already resuming from an index cursor is refused rather than restarted. By default, each user has a limit of 60 requests per minute.
|
|
3288
3408
|
* @summary Get all artists
|
|
3289
3409
|
* @param {string} includeArtworks
|
|
3290
3410
|
* @param {string} [includeOriginalSongs]
|
|
3291
3411
|
* @param {string} [includeFullResArtworks]
|
|
3292
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
3293
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
3412
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
3413
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
3414
|
+
* @param {string} [search] Filter the directory to artists matching this term, on their username, a previous username, or their company name. Served from the profile index alone: while that index is unavailable a searched read answers 503, because DynamoDB cannot match a name without answering a different question. Omit the parameter to read the whole directory: an empty term is refused, because it would otherwise be answered as an unsearched read whose cursor format the next request cannot carry.
|
|
3294
3415
|
* @param {*} [options] Override http request option.
|
|
3295
3416
|
* @throws {RequiredError}
|
|
3296
3417
|
*/
|
|
3297
|
-
async getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
|
|
3418
|
+
async getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
|
|
3298
3419
|
var _a, _b, _c;
|
|
3299
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options);
|
|
3420
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options);
|
|
3300
3421
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3301
3422
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getAllArtists"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3302
3423
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3326,18 +3447,20 @@ export const SureelApiFp = function (configuration) {
|
|
|
3326
3447
|
* @param {string} username
|
|
3327
3448
|
* @param {string} [includeOriginalSongs]
|
|
3328
3449
|
* @param {string} [includeFullResArtworks]
|
|
3329
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
3330
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
3450
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
3451
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
3331
3452
|
* @param {GetArtistByUsernameCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
|
|
3332
|
-
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
|
|
3333
|
-
* @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria.
|
|
3334
|
-
* @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order.
|
|
3453
|
+
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching. Answered by the search index, so the request is refused with 503 while that index is unavailable.
|
|
3454
|
+
* @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria. While the search index is unavailable, only release_date, collection_name and number_of_assets can be answered; the other fields are refused with 503.
|
|
3455
|
+
* @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
|
|
3456
|
+
* @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \'album,single\'). Valid values: album, single, compilation, audio collection, image collection, video collection. Only the values ingestion writes are stored on a record and can therefore be filtered on: album, single, compilation. The remaining values (\"audio collection\", \"image collection\", \"video collection\") are derived at read time from a collection\'s assets and are not filterable yet: asking for one matches nothing.
|
|
3457
|
+
* @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
|
|
3335
3458
|
* @param {*} [options] Override http request option.
|
|
3336
3459
|
* @throws {RequiredError}
|
|
3337
3460
|
*/
|
|
3338
|
-
async getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
|
|
3461
|
+
async getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
|
|
3339
3462
|
var _a, _b, _c;
|
|
3340
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options);
|
|
3463
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options);
|
|
3341
3464
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3342
3465
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getArtistByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3343
3466
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3415,21 +3538,23 @@ export const SureelApiFp = function (configuration) {
|
|
|
3415
3538
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3416
3539
|
},
|
|
3417
3540
|
/**
|
|
3418
|
-
*
|
|
3541
|
+
* Get the label profile data and one page of the artists associated with the label. Read a page at a time with `take` (default 20, at most 100) and resume the walk by passing the previous page\'s `lastEvaluatedKey` back as `cursor`; `lastEvaluatedKey` is absent on the last page. The optional `search` term matches an artist\'s username, a previous username, or their company name, and is served from the profile index alone: while that index is unavailable a searched read answers 503, an unsearched one is read from DynamoDB. The optional `signed_label` narrows the roster to one of the company\'s labels, from the same index and with the same 503. A cursor may only be carried between requests that agree on whether `search` or `signed_label` is set, and one this service cannot decode is refused: both answer 400.
|
|
3419
3542
|
* @summary Get profile data by label name
|
|
3420
3543
|
* @param {string} labelName
|
|
3421
|
-
* @param {number} [take] The `take` parameter is the number of artists to return per page.
|
|
3422
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
|
|
3544
|
+
* @param {number} [take] The `take` parameter is the number of artists to return per page, at most 100. A searched page is read by key out of the profile table, which reads 100 keys per round trip.
|
|
3545
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page. A cursor belongs to the read that issued it: one issued by a searched page is refused on an unsearched read and the other way round, and one this service cannot decode is refused too, both with 400.
|
|
3546
|
+
* @param {string} [search] Filter the roster to parties matching this term, on their username, a previous username, or their company name. Served from the profile index alone: while that index is unavailable a searched read answers 503, because DynamoDB cannot match a name without answering a different question. The search issues a cursor format of its own, so a `cursor` may only be carried between requests that agree on whether `search` is set: mixing the two is refused. Omit the parameter to read the whole roster: an empty term is refused rather than read as no search at all.
|
|
3547
|
+
* @param {string} [signedLabel] Narrow the roster to parties signed to this label, matched exactly against their `signed_labels`; the company\'s `sub_labels` are the values it holds. Combines with `search`, `roles` and `include_hidden`, and never reaches past the company\'s own roster. Served from the profile index like `search`, with the same 503 while that index is unavailable and the same cursor format: a `cursor` may only be carried between requests that agree on whether either parameter is set.
|
|
3423
3548
|
* @param {boolean} [includeNilv] When true, each roster artist carries a `nilv` summary of their consent record: whether one exists, its version, when it changed and whether the artist or the label changed it. Only the label itself and users connected to it may ask for this. Requires an explicit `take` of at most 100, because the summary costs one read per artist.
|
|
3424
3549
|
* @param {boolean} [includeMusicConsent] When true, each roster artist carries a `music_consent` summary of their music consent record, the track-level twin of `nilv`. Same boundary and the same explicit `take` requirement, because the summary costs one read per artist.
|
|
3425
3550
|
* @param {boolean} [includeHidden] When true, roster artists that are not shown in the frontend are included, each carrying `show_in_frontend`. Only the label itself and users connected to it may ask for this; anyone else is refused.
|
|
3426
|
-
* @param {Set<RosterRoleFilter>} [roles] Which parties the roster returns: artists, songwriters, or both, in one page stream. Artists join through the company\'s customer_name, songwriters through its publisher_name;
|
|
3551
|
+
* @param {Set<RosterRoleFilter>} [roles] Which parties the roster returns: artists, songwriters, or both, in one page stream. Artists and singer-songwriters join through the company\'s customer_name, songwriters through its customer_name (roster invitees) and its publisher_name; every party appears once. Omitted, the roster behaves exactly as before this parameter existed. Only the company itself and users connected to it may filter by roles, and the cursor format differs from the default one, so do not mix cursors across the two modes.
|
|
3427
3552
|
* @param {*} [options] Override http request option.
|
|
3428
3553
|
* @throws {RequiredError}
|
|
3429
3554
|
*/
|
|
3430
|
-
async getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
|
|
3555
|
+
async getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
|
|
3431
3556
|
var _a, _b, _c;
|
|
3432
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options);
|
|
3557
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options);
|
|
3433
3558
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3434
3559
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getCustomerData"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3435
3560
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3463,6 +3588,39 @@ export const SureelApiFp = function (configuration) {
|
|
|
3463
3588
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getMusicConsentByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3464
3589
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3465
3590
|
},
|
|
3591
|
+
/**
|
|
3592
|
+
* Re-encoded on the server with metadata stripped; the original bytes and any URL to them never leave. 404 for an unknown id, a non-image entry, an entry not yet ingested and an image that cannot be decoded, identically.
|
|
3593
|
+
* @summary Get a small WebP preview of an ingested NILV image
|
|
3594
|
+
* @param {string} assetId The id of a reference image or brand mark in the record.
|
|
3595
|
+
* @param {NilAssetThumbnailSize} [size]
|
|
3596
|
+
* @param {string} [v] Ignored by the server. Clients pass the asset\'s sha256 so a replaced file is not served from cache.
|
|
3597
|
+
* @param {*} [options] Override http request option.
|
|
3598
|
+
* @throws {RequiredError}
|
|
3599
|
+
*/
|
|
3600
|
+
async getNilAssetThumbnail(assetId, size, v, options) {
|
|
3601
|
+
var _a, _b, _c;
|
|
3602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNilAssetThumbnail(assetId, size, v, options);
|
|
3603
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3604
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getNilAssetThumbnail"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3606
|
+
},
|
|
3607
|
+
/**
|
|
3608
|
+
* Re-encoded on the server with metadata stripped; the original bytes and any URL to them never leave. 404 for an unknown id, a non-image entry, an entry not yet ingested and an image that cannot be decoded, identically.
|
|
3609
|
+
* @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
|
|
3610
|
+
* @param {string} username The artist whose settings are being addressed.
|
|
3611
|
+
* @param {string} assetId The id of a reference image or brand mark in the record.
|
|
3612
|
+
* @param {NilAssetThumbnailSize} [size]
|
|
3613
|
+
* @param {string} [v] Ignored by the server. Clients pass the asset\'s sha256 so a replaced file is not served from cache.
|
|
3614
|
+
* @param {*} [options] Override http request option.
|
|
3615
|
+
* @throws {RequiredError}
|
|
3616
|
+
*/
|
|
3617
|
+
async getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
|
|
3618
|
+
var _a, _b, _c;
|
|
3619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNilAssetThumbnailByUsername(username, assetId, size, v, options);
|
|
3620
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3621
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getNilAssetThumbnailByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3622
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3623
|
+
},
|
|
3466
3624
|
/**
|
|
3467
3625
|
* Answers 404 for an unknown request and for one belonging to another artist, identically.
|
|
3468
3626
|
* @summary Check how ingestion of a settings submission\'s assets is going
|
|
@@ -3498,18 +3656,20 @@ export const SureelApiFp = function (configuration) {
|
|
|
3498
3656
|
* @param {string} includeArtworks
|
|
3499
3657
|
* @param {string} [includeOriginalSongs]
|
|
3500
3658
|
* @param {string} [includeFullResArtworks]
|
|
3501
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
3502
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
3659
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
3660
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
3503
3661
|
* @param {GetOwnCollectionsCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
|
|
3504
|
-
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
|
|
3505
|
-
* @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria.
|
|
3506
|
-
* @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order.
|
|
3662
|
+
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching. Answered by the search index, so the request is refused with 503 while that index is unavailable.
|
|
3663
|
+
* @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria. While the search index is unavailable, only release_date, collection_name and number_of_assets can be answered; the other fields are refused with 503.
|
|
3664
|
+
* @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
|
|
3665
|
+
* @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \'album,single\'). Valid values: album, single, compilation, audio collection, image collection, video collection. Only the values ingestion writes are stored on a record and can therefore be filtered on: album, single, compilation. The remaining values (\"audio collection\", \"image collection\", \"video collection\") are derived at read time from a collection\'s assets and are not filterable yet: asking for one matches nothing.
|
|
3666
|
+
* @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
|
|
3507
3667
|
* @param {*} [options] Override http request option.
|
|
3508
3668
|
* @throws {RequiredError}
|
|
3509
3669
|
*/
|
|
3510
|
-
async getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
|
|
3670
|
+
async getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
|
|
3511
3671
|
var _a, _b, _c;
|
|
3512
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options);
|
|
3672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options);
|
|
3513
3673
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3514
3674
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getOwnCollections"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3515
3675
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3547,6 +3707,23 @@ export const SureelApiFp = function (configuration) {
|
|
|
3547
3707
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getResultByRequestId"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3548
3708
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3549
3709
|
},
|
|
3710
|
+
/**
|
|
3711
|
+
* One roster artist as a roster page shows them, with the org\'s roster rows about them, so a record opened by link does not have to walk the roster to find its artist. Needs the X-Sureel-Org header and `roster:read` on that org, plus `identity:read` for `include_nilv` and `works:read` for `include_music_consent`. An artist the org does not hold answers 404, the same as one that does not exist.
|
|
3712
|
+
* @summary Get one artist on a label\'s roster
|
|
3713
|
+
* @param {string} labelName
|
|
3714
|
+
* @param {string} username
|
|
3715
|
+
* @param {boolean} [includeNilv] When true, the artist carries the same `nilv` summary a roster page gives each artist.
|
|
3716
|
+
* @param {boolean} [includeMusicConsent] When true, the artist carries the same `music_consent` summary a roster page gives each artist.
|
|
3717
|
+
* @param {*} [options] Override http request option.
|
|
3718
|
+
* @throws {RequiredError}
|
|
3719
|
+
*/
|
|
3720
|
+
async getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
|
|
3721
|
+
var _a, _b, _c;
|
|
3722
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options);
|
|
3723
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3724
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getRosterArtist"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3725
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3726
|
+
},
|
|
3550
3727
|
/**
|
|
3551
3728
|
* Get the style preset parameters for ldm.
|
|
3552
3729
|
* @summary Style presets for ldm
|
|
@@ -3925,21 +4102,6 @@ export const SureelApiFp = function (configuration) {
|
|
|
3925
4102
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.updateCollection"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3926
4103
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3927
4104
|
},
|
|
3928
|
-
/**
|
|
3929
|
-
* Upload audio, image, video, metadata, or archive files as form-data for use with other endpoints. Allowed file extensions: - Audio: .wav, .mp3, .m4a, .flac - Image: .jpeg, .jpg, .png, .tif - Video: .mp4 - Metadata: .json, .npy, .xml, .npz - Archive: .zip All uploads are securely stored on the server for a limited time. Maximum file size: 200MB. For files larger than 200MB (e.g. DDEX ZIPs), use `/files/generate-upload-urls` instead.
|
|
3930
|
-
* @summary Upload files as form-data
|
|
3931
|
-
* @param {UploadFilesContentTypeEnum} contentType
|
|
3932
|
-
* @param {string} contentType2
|
|
3933
|
-
* @param {*} [options] Override http request option.
|
|
3934
|
-
* @throws {RequiredError}
|
|
3935
|
-
*/
|
|
3936
|
-
async uploadFiles(contentType, contentType2, options) {
|
|
3937
|
-
var _a, _b, _c;
|
|
3938
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFiles(contentType, contentType2, options);
|
|
3939
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3940
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.uploadFiles"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3941
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3942
|
-
},
|
|
3943
4105
|
/**
|
|
3944
4106
|
* Upscale a given image. The maximum allowed resolution for the content image is 1024x1024. By default, each user has a limit of 100 requests per minute.
|
|
3945
4107
|
* @summary Upscaling
|
|
@@ -4299,7 +4461,7 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
|
|
|
4299
4461
|
},
|
|
4300
4462
|
/**
|
|
4301
4463
|
* Returns the signed url for the given filenames.
|
|
4302
|
-
* @summary Generate signed URLs to
|
|
4464
|
+
* @summary Generate signed URLs to upload files to cloud storage
|
|
4303
4465
|
* @param {GeneratePutUploadUrlsContentTypeEnum} contentType
|
|
4304
4466
|
* @param {UploadUrlRequest} uploadUrlRequest
|
|
4305
4467
|
* @param {*} [options] Override http request option.
|
|
@@ -4336,19 +4498,20 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
|
|
|
4336
4498
|
.then((request) => request(axios, basePath));
|
|
4337
4499
|
},
|
|
4338
4500
|
/**
|
|
4339
|
-
* Get a list of
|
|
4501
|
+
* Get a paginated list of artists on the public directory, including their published collections. Read a page at a time with `take` (default 20, at most 100) and resume the walk by passing the previous page\'s `lastEvaluatedKey` back as `cursor`. The body is an object, `{ artists, lastEvaluatedKey }`; `lastEvaluatedKey` is absent on the last page, and an empty directory is a 200 with an empty `artists` array. The optional `search` term matches an artist\'s username, a previous username, or their company name, and is served from the profile index alone: while that index is unavailable a searched read answers 503, an unsearched one starts again from DynamoDB, unordered, and a walk already resuming from an index cursor is refused rather than restarted. By default, each user has a limit of 60 requests per minute.
|
|
4340
4502
|
* @summary Get all artists
|
|
4341
4503
|
* @param {string} includeArtworks
|
|
4342
4504
|
* @param {string} [includeOriginalSongs]
|
|
4343
4505
|
* @param {string} [includeFullResArtworks]
|
|
4344
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
4345
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
4506
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
4507
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
4508
|
+
* @param {string} [search] Filter the directory to artists matching this term, on their username, a previous username, or their company name. Served from the profile index alone: while that index is unavailable a searched read answers 503, because DynamoDB cannot match a name without answering a different question. Omit the parameter to read the whole directory: an empty term is refused, because it would otherwise be answered as an unsearched read whose cursor format the next request cannot carry.
|
|
4346
4509
|
* @param {*} [options] Override http request option.
|
|
4347
4510
|
* @throws {RequiredError}
|
|
4348
4511
|
*/
|
|
4349
|
-
getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
|
|
4512
|
+
getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
|
|
4350
4513
|
return localVarFp
|
|
4351
|
-
.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
|
|
4514
|
+
.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options)
|
|
4352
4515
|
.then((request) => request(axios, basePath));
|
|
4353
4516
|
},
|
|
4354
4517
|
/**
|
|
@@ -4374,18 +4537,20 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
|
|
|
4374
4537
|
* @param {string} username
|
|
4375
4538
|
* @param {string} [includeOriginalSongs]
|
|
4376
4539
|
* @param {string} [includeFullResArtworks]
|
|
4377
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
4378
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
4540
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
4541
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
4379
4542
|
* @param {GetArtistByUsernameCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
|
|
4380
|
-
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
|
|
4381
|
-
* @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria.
|
|
4382
|
-
* @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order.
|
|
4543
|
+
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching. Answered by the search index, so the request is refused with 503 while that index is unavailable.
|
|
4544
|
+
* @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria. While the search index is unavailable, only release_date, collection_name and number_of_assets can be answered; the other fields are refused with 503.
|
|
4545
|
+
* @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
|
|
4546
|
+
* @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \'album,single\'). Valid values: album, single, compilation, audio collection, image collection, video collection. Only the values ingestion writes are stored on a record and can therefore be filtered on: album, single, compilation. The remaining values (\"audio collection\", \"image collection\", \"video collection\") are derived at read time from a collection\'s assets and are not filterable yet: asking for one matches nothing.
|
|
4547
|
+
* @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
|
|
4383
4548
|
* @param {*} [options] Override http request option.
|
|
4384
4549
|
* @throws {RequiredError}
|
|
4385
4550
|
*/
|
|
4386
|
-
getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
|
|
4551
|
+
getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
|
|
4387
4552
|
return localVarFp
|
|
4388
|
-
.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
|
|
4553
|
+
.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
|
|
4389
4554
|
.then((request) => request(axios, basePath));
|
|
4390
4555
|
},
|
|
4391
4556
|
/**
|
|
@@ -4451,21 +4616,23 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
|
|
|
4451
4616
|
.then((request) => request(axios, basePath));
|
|
4452
4617
|
},
|
|
4453
4618
|
/**
|
|
4454
|
-
*
|
|
4619
|
+
* Get the label profile data and one page of the artists associated with the label. Read a page at a time with `take` (default 20, at most 100) and resume the walk by passing the previous page\'s `lastEvaluatedKey` back as `cursor`; `lastEvaluatedKey` is absent on the last page. The optional `search` term matches an artist\'s username, a previous username, or their company name, and is served from the profile index alone: while that index is unavailable a searched read answers 503, an unsearched one is read from DynamoDB. The optional `signed_label` narrows the roster to one of the company\'s labels, from the same index and with the same 503. A cursor may only be carried between requests that agree on whether `search` or `signed_label` is set, and one this service cannot decode is refused: both answer 400.
|
|
4455
4620
|
* @summary Get profile data by label name
|
|
4456
4621
|
* @param {string} labelName
|
|
4457
|
-
* @param {number} [take] The `take` parameter is the number of artists to return per page.
|
|
4458
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
|
|
4622
|
+
* @param {number} [take] The `take` parameter is the number of artists to return per page, at most 100. A searched page is read by key out of the profile table, which reads 100 keys per round trip.
|
|
4623
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page. A cursor belongs to the read that issued it: one issued by a searched page is refused on an unsearched read and the other way round, and one this service cannot decode is refused too, both with 400.
|
|
4624
|
+
* @param {string} [search] Filter the roster to parties matching this term, on their username, a previous username, or their company name. Served from the profile index alone: while that index is unavailable a searched read answers 503, because DynamoDB cannot match a name without answering a different question. The search issues a cursor format of its own, so a `cursor` may only be carried between requests that agree on whether `search` is set: mixing the two is refused. Omit the parameter to read the whole roster: an empty term is refused rather than read as no search at all.
|
|
4625
|
+
* @param {string} [signedLabel] Narrow the roster to parties signed to this label, matched exactly against their `signed_labels`; the company\'s `sub_labels` are the values it holds. Combines with `search`, `roles` and `include_hidden`, and never reaches past the company\'s own roster. Served from the profile index like `search`, with the same 503 while that index is unavailable and the same cursor format: a `cursor` may only be carried between requests that agree on whether either parameter is set.
|
|
4459
4626
|
* @param {boolean} [includeNilv] When true, each roster artist carries a `nilv` summary of their consent record: whether one exists, its version, when it changed and whether the artist or the label changed it. Only the label itself and users connected to it may ask for this. Requires an explicit `take` of at most 100, because the summary costs one read per artist.
|
|
4460
4627
|
* @param {boolean} [includeMusicConsent] When true, each roster artist carries a `music_consent` summary of their music consent record, the track-level twin of `nilv`. Same boundary and the same explicit `take` requirement, because the summary costs one read per artist.
|
|
4461
4628
|
* @param {boolean} [includeHidden] When true, roster artists that are not shown in the frontend are included, each carrying `show_in_frontend`. Only the label itself and users connected to it may ask for this; anyone else is refused.
|
|
4462
|
-
* @param {Set<RosterRoleFilter>} [roles] Which parties the roster returns: artists, songwriters, or both, in one page stream. Artists join through the company\'s customer_name, songwriters through its publisher_name;
|
|
4629
|
+
* @param {Set<RosterRoleFilter>} [roles] Which parties the roster returns: artists, songwriters, or both, in one page stream. Artists and singer-songwriters join through the company\'s customer_name, songwriters through its customer_name (roster invitees) and its publisher_name; every party appears once. Omitted, the roster behaves exactly as before this parameter existed. Only the company itself and users connected to it may filter by roles, and the cursor format differs from the default one, so do not mix cursors across the two modes.
|
|
4463
4630
|
* @param {*} [options] Override http request option.
|
|
4464
4631
|
* @throws {RequiredError}
|
|
4465
4632
|
*/
|
|
4466
|
-
getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
|
|
4633
|
+
getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
|
|
4467
4634
|
return localVarFp
|
|
4468
|
-
.getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options)
|
|
4635
|
+
.getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options)
|
|
4469
4636
|
.then((request) => request(axios, basePath));
|
|
4470
4637
|
},
|
|
4471
4638
|
/**
|
|
@@ -4493,6 +4660,35 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
|
|
|
4493
4660
|
.getMusicConsentByUsername(username, version, options)
|
|
4494
4661
|
.then((request) => request(axios, basePath));
|
|
4495
4662
|
},
|
|
4663
|
+
/**
|
|
4664
|
+
* Re-encoded on the server with metadata stripped; the original bytes and any URL to them never leave. 404 for an unknown id, a non-image entry, an entry not yet ingested and an image that cannot be decoded, identically.
|
|
4665
|
+
* @summary Get a small WebP preview of an ingested NILV image
|
|
4666
|
+
* @param {string} assetId The id of a reference image or brand mark in the record.
|
|
4667
|
+
* @param {NilAssetThumbnailSize} [size]
|
|
4668
|
+
* @param {string} [v] Ignored by the server. Clients pass the asset\'s sha256 so a replaced file is not served from cache.
|
|
4669
|
+
* @param {*} [options] Override http request option.
|
|
4670
|
+
* @throws {RequiredError}
|
|
4671
|
+
*/
|
|
4672
|
+
getNilAssetThumbnail(assetId, size, v, options) {
|
|
4673
|
+
return localVarFp
|
|
4674
|
+
.getNilAssetThumbnail(assetId, size, v, options)
|
|
4675
|
+
.then((request) => request(axios, basePath));
|
|
4676
|
+
},
|
|
4677
|
+
/**
|
|
4678
|
+
* Re-encoded on the server with metadata stripped; the original bytes and any URL to them never leave. 404 for an unknown id, a non-image entry, an entry not yet ingested and an image that cannot be decoded, identically.
|
|
4679
|
+
* @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
|
|
4680
|
+
* @param {string} username The artist whose settings are being addressed.
|
|
4681
|
+
* @param {string} assetId The id of a reference image or brand mark in the record.
|
|
4682
|
+
* @param {NilAssetThumbnailSize} [size]
|
|
4683
|
+
* @param {string} [v] Ignored by the server. Clients pass the asset\'s sha256 so a replaced file is not served from cache.
|
|
4684
|
+
* @param {*} [options] Override http request option.
|
|
4685
|
+
* @throws {RequiredError}
|
|
4686
|
+
*/
|
|
4687
|
+
getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
|
|
4688
|
+
return localVarFp
|
|
4689
|
+
.getNilAssetThumbnailByUsername(username, assetId, size, v, options)
|
|
4690
|
+
.then((request) => request(axios, basePath));
|
|
4691
|
+
},
|
|
4496
4692
|
/**
|
|
4497
4693
|
* Answers 404 for an unknown request and for one belonging to another artist, identically.
|
|
4498
4694
|
* @summary Check how ingestion of a settings submission\'s assets is going
|
|
@@ -4524,18 +4720,20 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
|
|
|
4524
4720
|
* @param {string} includeArtworks
|
|
4525
4721
|
* @param {string} [includeOriginalSongs]
|
|
4526
4722
|
* @param {string} [includeFullResArtworks]
|
|
4527
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
4528
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
4723
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
4724
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
4529
4725
|
* @param {GetOwnCollectionsCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
|
|
4530
|
-
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
|
|
4531
|
-
* @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria.
|
|
4532
|
-
* @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order.
|
|
4726
|
+
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching. Answered by the search index, so the request is refused with 503 while that index is unavailable.
|
|
4727
|
+
* @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria. While the search index is unavailable, only release_date, collection_name and number_of_assets can be answered; the other fields are refused with 503.
|
|
4728
|
+
* @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
|
|
4729
|
+
* @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \'album,single\'). Valid values: album, single, compilation, audio collection, image collection, video collection. Only the values ingestion writes are stored on a record and can therefore be filtered on: album, single, compilation. The remaining values (\"audio collection\", \"image collection\", \"video collection\") are derived at read time from a collection\'s assets and are not filterable yet: asking for one matches nothing.
|
|
4730
|
+
* @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
|
|
4533
4731
|
* @param {*} [options] Override http request option.
|
|
4534
4732
|
* @throws {RequiredError}
|
|
4535
4733
|
*/
|
|
4536
|
-
getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
|
|
4734
|
+
getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
|
|
4537
4735
|
return localVarFp
|
|
4538
|
-
.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
|
|
4736
|
+
.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
|
|
4539
4737
|
.then((request) => request(axios, basePath));
|
|
4540
4738
|
},
|
|
4541
4739
|
/**
|
|
@@ -4567,6 +4765,21 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
|
|
|
4567
4765
|
.getResultByRequestId(requestId, topNAttributionResults, options)
|
|
4568
4766
|
.then((request) => request(axios, basePath));
|
|
4569
4767
|
},
|
|
4768
|
+
/**
|
|
4769
|
+
* One roster artist as a roster page shows them, with the org\'s roster rows about them, so a record opened by link does not have to walk the roster to find its artist. Needs the X-Sureel-Org header and `roster:read` on that org, plus `identity:read` for `include_nilv` and `works:read` for `include_music_consent`. An artist the org does not hold answers 404, the same as one that does not exist.
|
|
4770
|
+
* @summary Get one artist on a label\'s roster
|
|
4771
|
+
* @param {string} labelName
|
|
4772
|
+
* @param {string} username
|
|
4773
|
+
* @param {boolean} [includeNilv] When true, the artist carries the same `nilv` summary a roster page gives each artist.
|
|
4774
|
+
* @param {boolean} [includeMusicConsent] When true, the artist carries the same `music_consent` summary a roster page gives each artist.
|
|
4775
|
+
* @param {*} [options] Override http request option.
|
|
4776
|
+
* @throws {RequiredError}
|
|
4777
|
+
*/
|
|
4778
|
+
getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
|
|
4779
|
+
return localVarFp
|
|
4780
|
+
.getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options)
|
|
4781
|
+
.then((request) => request(axios, basePath));
|
|
4782
|
+
},
|
|
4570
4783
|
/**
|
|
4571
4784
|
* Get the style preset parameters for ldm.
|
|
4572
4785
|
* @summary Style presets for ldm
|
|
@@ -4895,19 +5108,6 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
|
|
|
4895
5108
|
.updateCollection(collectionUuid, contentType, updateCollectionRequest, options)
|
|
4896
5109
|
.then((request) => request(axios, basePath));
|
|
4897
5110
|
},
|
|
4898
|
-
/**
|
|
4899
|
-
* Upload audio, image, video, metadata, or archive files as form-data for use with other endpoints. Allowed file extensions: - Audio: .wav, .mp3, .m4a, .flac - Image: .jpeg, .jpg, .png, .tif - Video: .mp4 - Metadata: .json, .npy, .xml, .npz - Archive: .zip All uploads are securely stored on the server for a limited time. Maximum file size: 200MB. For files larger than 200MB (e.g. DDEX ZIPs), use `/files/generate-upload-urls` instead.
|
|
4900
|
-
* @summary Upload files as form-data
|
|
4901
|
-
* @param {UploadFilesContentTypeEnum} contentType
|
|
4902
|
-
* @param {string} contentType2
|
|
4903
|
-
* @param {*} [options] Override http request option.
|
|
4904
|
-
* @throws {RequiredError}
|
|
4905
|
-
*/
|
|
4906
|
-
uploadFiles(contentType, contentType2, options) {
|
|
4907
|
-
return localVarFp
|
|
4908
|
-
.uploadFiles(contentType, contentType2, options)
|
|
4909
|
-
.then((request) => request(axios, basePath));
|
|
4910
|
-
},
|
|
4911
5111
|
/**
|
|
4912
5112
|
* Upscale a given image. The maximum allowed resolution for the content image is 1024x1024. By default, each user has a limit of 100 requests per minute.
|
|
4913
5113
|
* @summary Upscaling
|
|
@@ -5291,7 +5491,7 @@ export class SureelApi extends BaseAPI {
|
|
|
5291
5491
|
}
|
|
5292
5492
|
/**
|
|
5293
5493
|
* Returns the signed url for the given filenames.
|
|
5294
|
-
* @summary Generate signed URLs to
|
|
5494
|
+
* @summary Generate signed URLs to upload files to cloud storage
|
|
5295
5495
|
* @param {GeneratePutUploadUrlsContentTypeEnum} contentType
|
|
5296
5496
|
* @param {UploadUrlRequest} uploadUrlRequest
|
|
5297
5497
|
* @param {*} [options] Override http request option.
|
|
@@ -5331,20 +5531,21 @@ export class SureelApi extends BaseAPI {
|
|
|
5331
5531
|
.then((request) => request(this.axios, this.basePath));
|
|
5332
5532
|
}
|
|
5333
5533
|
/**
|
|
5334
|
-
* Get a list of
|
|
5534
|
+
* Get a paginated list of artists on the public directory, including their published collections. Read a page at a time with `take` (default 20, at most 100) and resume the walk by passing the previous page\'s `lastEvaluatedKey` back as `cursor`. The body is an object, `{ artists, lastEvaluatedKey }`; `lastEvaluatedKey` is absent on the last page, and an empty directory is a 200 with an empty `artists` array. The optional `search` term matches an artist\'s username, a previous username, or their company name, and is served from the profile index alone: while that index is unavailable a searched read answers 503, an unsearched one starts again from DynamoDB, unordered, and a walk already resuming from an index cursor is refused rather than restarted. By default, each user has a limit of 60 requests per minute.
|
|
5335
5535
|
* @summary Get all artists
|
|
5336
5536
|
* @param {string} includeArtworks
|
|
5337
5537
|
* @param {string} [includeOriginalSongs]
|
|
5338
5538
|
* @param {string} [includeFullResArtworks]
|
|
5339
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
5340
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
5539
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
5540
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
5541
|
+
* @param {string} [search] Filter the directory to artists matching this term, on their username, a previous username, or their company name. Served from the profile index alone: while that index is unavailable a searched read answers 503, because DynamoDB cannot match a name without answering a different question. Omit the parameter to read the whole directory: an empty term is refused, because it would otherwise be answered as an unsearched read whose cursor format the next request cannot carry.
|
|
5341
5542
|
* @param {*} [options] Override http request option.
|
|
5342
5543
|
* @throws {RequiredError}
|
|
5343
5544
|
* @memberof SureelApi
|
|
5344
5545
|
*/
|
|
5345
|
-
getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
|
|
5546
|
+
getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
|
|
5346
5547
|
return SureelApiFp(this.configuration)
|
|
5347
|
-
.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
|
|
5548
|
+
.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options)
|
|
5348
5549
|
.then((request) => request(this.axios, this.basePath));
|
|
5349
5550
|
}
|
|
5350
5551
|
/**
|
|
@@ -5371,19 +5572,21 @@ export class SureelApi extends BaseAPI {
|
|
|
5371
5572
|
* @param {string} username
|
|
5372
5573
|
* @param {string} [includeOriginalSongs]
|
|
5373
5574
|
* @param {string} [includeFullResArtworks]
|
|
5374
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
5375
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
5575
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
5576
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
5376
5577
|
* @param {GetArtistByUsernameCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
|
|
5377
|
-
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
|
|
5378
|
-
* @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria.
|
|
5379
|
-
* @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order.
|
|
5578
|
+
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching. Answered by the search index, so the request is refused with 503 while that index is unavailable.
|
|
5579
|
+
* @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria. While the search index is unavailable, only release_date, collection_name and number_of_assets can be answered; the other fields are refused with 503.
|
|
5580
|
+
* @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
|
|
5581
|
+
* @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \'album,single\'). Valid values: album, single, compilation, audio collection, image collection, video collection. Only the values ingestion writes are stored on a record and can therefore be filtered on: album, single, compilation. The remaining values (\"audio collection\", \"image collection\", \"video collection\") are derived at read time from a collection\'s assets and are not filterable yet: asking for one matches nothing.
|
|
5582
|
+
* @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
|
|
5380
5583
|
* @param {*} [options] Override http request option.
|
|
5381
5584
|
* @throws {RequiredError}
|
|
5382
5585
|
* @memberof SureelApi
|
|
5383
5586
|
*/
|
|
5384
|
-
getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
|
|
5587
|
+
getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
|
|
5385
5588
|
return SureelApiFp(this.configuration)
|
|
5386
|
-
.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
|
|
5589
|
+
.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
|
|
5387
5590
|
.then((request) => request(this.axios, this.basePath));
|
|
5388
5591
|
}
|
|
5389
5592
|
/**
|
|
@@ -5454,22 +5657,24 @@ export class SureelApi extends BaseAPI {
|
|
|
5454
5657
|
.then((request) => request(this.axios, this.basePath));
|
|
5455
5658
|
}
|
|
5456
5659
|
/**
|
|
5457
|
-
*
|
|
5660
|
+
* Get the label profile data and one page of the artists associated with the label. Read a page at a time with `take` (default 20, at most 100) and resume the walk by passing the previous page\'s `lastEvaluatedKey` back as `cursor`; `lastEvaluatedKey` is absent on the last page. The optional `search` term matches an artist\'s username, a previous username, or their company name, and is served from the profile index alone: while that index is unavailable a searched read answers 503, an unsearched one is read from DynamoDB. The optional `signed_label` narrows the roster to one of the company\'s labels, from the same index and with the same 503. A cursor may only be carried between requests that agree on whether `search` or `signed_label` is set, and one this service cannot decode is refused: both answer 400.
|
|
5458
5661
|
* @summary Get profile data by label name
|
|
5459
5662
|
* @param {string} labelName
|
|
5460
|
-
* @param {number} [take] The `take` parameter is the number of artists to return per page.
|
|
5461
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
|
|
5663
|
+
* @param {number} [take] The `take` parameter is the number of artists to return per page, at most 100. A searched page is read by key out of the profile table, which reads 100 keys per round trip.
|
|
5664
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page. A cursor belongs to the read that issued it: one issued by a searched page is refused on an unsearched read and the other way round, and one this service cannot decode is refused too, both with 400.
|
|
5665
|
+
* @param {string} [search] Filter the roster to parties matching this term, on their username, a previous username, or their company name. Served from the profile index alone: while that index is unavailable a searched read answers 503, because DynamoDB cannot match a name without answering a different question. The search issues a cursor format of its own, so a `cursor` may only be carried between requests that agree on whether `search` is set: mixing the two is refused. Omit the parameter to read the whole roster: an empty term is refused rather than read as no search at all.
|
|
5666
|
+
* @param {string} [signedLabel] Narrow the roster to parties signed to this label, matched exactly against their `signed_labels`; the company\'s `sub_labels` are the values it holds. Combines with `search`, `roles` and `include_hidden`, and never reaches past the company\'s own roster. Served from the profile index like `search`, with the same 503 while that index is unavailable and the same cursor format: a `cursor` may only be carried between requests that agree on whether either parameter is set.
|
|
5462
5667
|
* @param {boolean} [includeNilv] When true, each roster artist carries a `nilv` summary of their consent record: whether one exists, its version, when it changed and whether the artist or the label changed it. Only the label itself and users connected to it may ask for this. Requires an explicit `take` of at most 100, because the summary costs one read per artist.
|
|
5463
5668
|
* @param {boolean} [includeMusicConsent] When true, each roster artist carries a `music_consent` summary of their music consent record, the track-level twin of `nilv`. Same boundary and the same explicit `take` requirement, because the summary costs one read per artist.
|
|
5464
5669
|
* @param {boolean} [includeHidden] When true, roster artists that are not shown in the frontend are included, each carrying `show_in_frontend`. Only the label itself and users connected to it may ask for this; anyone else is refused.
|
|
5465
|
-
* @param {Set<RosterRoleFilter>} [roles] Which parties the roster returns: artists, songwriters, or both, in one page stream. Artists join through the company\'s customer_name, songwriters through its publisher_name;
|
|
5670
|
+
* @param {Set<RosterRoleFilter>} [roles] Which parties the roster returns: artists, songwriters, or both, in one page stream. Artists and singer-songwriters join through the company\'s customer_name, songwriters through its customer_name (roster invitees) and its publisher_name; every party appears once. Omitted, the roster behaves exactly as before this parameter existed. Only the company itself and users connected to it may filter by roles, and the cursor format differs from the default one, so do not mix cursors across the two modes.
|
|
5466
5671
|
* @param {*} [options] Override http request option.
|
|
5467
5672
|
* @throws {RequiredError}
|
|
5468
5673
|
* @memberof SureelApi
|
|
5469
5674
|
*/
|
|
5470
|
-
getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
|
|
5675
|
+
getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
|
|
5471
5676
|
return SureelApiFp(this.configuration)
|
|
5472
|
-
.getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options)
|
|
5677
|
+
.getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options)
|
|
5473
5678
|
.then((request) => request(this.axios, this.basePath));
|
|
5474
5679
|
}
|
|
5475
5680
|
/**
|
|
@@ -5499,6 +5704,37 @@ export class SureelApi extends BaseAPI {
|
|
|
5499
5704
|
.getMusicConsentByUsername(username, version, options)
|
|
5500
5705
|
.then((request) => request(this.axios, this.basePath));
|
|
5501
5706
|
}
|
|
5707
|
+
/**
|
|
5708
|
+
* Re-encoded on the server with metadata stripped; the original bytes and any URL to them never leave. 404 for an unknown id, a non-image entry, an entry not yet ingested and an image that cannot be decoded, identically.
|
|
5709
|
+
* @summary Get a small WebP preview of an ingested NILV image
|
|
5710
|
+
* @param {string} assetId The id of a reference image or brand mark in the record.
|
|
5711
|
+
* @param {NilAssetThumbnailSize} [size]
|
|
5712
|
+
* @param {string} [v] Ignored by the server. Clients pass the asset\'s sha256 so a replaced file is not served from cache.
|
|
5713
|
+
* @param {*} [options] Override http request option.
|
|
5714
|
+
* @throws {RequiredError}
|
|
5715
|
+
* @memberof SureelApi
|
|
5716
|
+
*/
|
|
5717
|
+
getNilAssetThumbnail(assetId, size, v, options) {
|
|
5718
|
+
return SureelApiFp(this.configuration)
|
|
5719
|
+
.getNilAssetThumbnail(assetId, size, v, options)
|
|
5720
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5721
|
+
}
|
|
5722
|
+
/**
|
|
5723
|
+
* Re-encoded on the server with metadata stripped; the original bytes and any URL to them never leave. 404 for an unknown id, a non-image entry, an entry not yet ingested and an image that cannot be decoded, identically.
|
|
5724
|
+
* @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
|
|
5725
|
+
* @param {string} username The artist whose settings are being addressed.
|
|
5726
|
+
* @param {string} assetId The id of a reference image or brand mark in the record.
|
|
5727
|
+
* @param {NilAssetThumbnailSize} [size]
|
|
5728
|
+
* @param {string} [v] Ignored by the server. Clients pass the asset\'s sha256 so a replaced file is not served from cache.
|
|
5729
|
+
* @param {*} [options] Override http request option.
|
|
5730
|
+
* @throws {RequiredError}
|
|
5731
|
+
* @memberof SureelApi
|
|
5732
|
+
*/
|
|
5733
|
+
getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
|
|
5734
|
+
return SureelApiFp(this.configuration)
|
|
5735
|
+
.getNilAssetThumbnailByUsername(username, assetId, size, v, options)
|
|
5736
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5737
|
+
}
|
|
5502
5738
|
/**
|
|
5503
5739
|
* Answers 404 for an unknown request and for one belonging to another artist, identically.
|
|
5504
5740
|
* @summary Check how ingestion of a settings submission\'s assets is going
|
|
@@ -5532,19 +5768,21 @@ export class SureelApi extends BaseAPI {
|
|
|
5532
5768
|
* @param {string} includeArtworks
|
|
5533
5769
|
* @param {string} [includeOriginalSongs]
|
|
5534
5770
|
* @param {string} [includeFullResArtworks]
|
|
5535
|
-
* @param {number} [take] The `take` parameter is the number of
|
|
5536
|
-
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey`
|
|
5771
|
+
* @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
|
|
5772
|
+
* @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` from the previous page. Omit it to read the first page. A page in the middle of a walk can come back empty and still carry a cursor, so read on until a page comes back without one rather than stopping at the first empty page. A cursor belongs to the sort and the search it was issued under: handing it back with a different `sort_by`, `collection_search_value` or `search` is refused with 400.
|
|
5537
5773
|
* @param {GetOwnCollectionsCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
|
|
5538
|
-
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
|
|
5539
|
-
* @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria.
|
|
5540
|
-
* @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order.
|
|
5774
|
+
* @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching. Answered by the search index, so the request is refused with 503 while that index is unavailable.
|
|
5775
|
+
* @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria. While the search index is unavailable, only release_date, collection_name and number_of_assets can be answered; the other fields are refused with 503.
|
|
5776
|
+
* @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
|
|
5777
|
+
* @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \'album,single\'). Valid values: album, single, compilation, audio collection, image collection, video collection. Only the values ingestion writes are stored on a record and can therefore be filtered on: album, single, compilation. The remaining values (\"audio collection\", \"image collection\", \"video collection\") are derived at read time from a collection\'s assets and are not filterable yet: asking for one matches nothing.
|
|
5778
|
+
* @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
|
|
5541
5779
|
* @param {*} [options] Override http request option.
|
|
5542
5780
|
* @throws {RequiredError}
|
|
5543
5781
|
* @memberof SureelApi
|
|
5544
5782
|
*/
|
|
5545
|
-
getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
|
|
5783
|
+
getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
|
|
5546
5784
|
return SureelApiFp(this.configuration)
|
|
5547
|
-
.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
|
|
5785
|
+
.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
|
|
5548
5786
|
.then((request) => request(this.axios, this.basePath));
|
|
5549
5787
|
}
|
|
5550
5788
|
/**
|
|
@@ -5578,6 +5816,22 @@ export class SureelApi extends BaseAPI {
|
|
|
5578
5816
|
.getResultByRequestId(requestId, topNAttributionResults, options)
|
|
5579
5817
|
.then((request) => request(this.axios, this.basePath));
|
|
5580
5818
|
}
|
|
5819
|
+
/**
|
|
5820
|
+
* One roster artist as a roster page shows them, with the org\'s roster rows about them, so a record opened by link does not have to walk the roster to find its artist. Needs the X-Sureel-Org header and `roster:read` on that org, plus `identity:read` for `include_nilv` and `works:read` for `include_music_consent`. An artist the org does not hold answers 404, the same as one that does not exist.
|
|
5821
|
+
* @summary Get one artist on a label\'s roster
|
|
5822
|
+
* @param {string} labelName
|
|
5823
|
+
* @param {string} username
|
|
5824
|
+
* @param {boolean} [includeNilv] When true, the artist carries the same `nilv` summary a roster page gives each artist.
|
|
5825
|
+
* @param {boolean} [includeMusicConsent] When true, the artist carries the same `music_consent` summary a roster page gives each artist.
|
|
5826
|
+
* @param {*} [options] Override http request option.
|
|
5827
|
+
* @throws {RequiredError}
|
|
5828
|
+
* @memberof SureelApi
|
|
5829
|
+
*/
|
|
5830
|
+
getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
|
|
5831
|
+
return SureelApiFp(this.configuration)
|
|
5832
|
+
.getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options)
|
|
5833
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5834
|
+
}
|
|
5581
5835
|
/**
|
|
5582
5836
|
* Get the style preset parameters for ldm.
|
|
5583
5837
|
* @summary Style presets for ldm
|
|
@@ -5931,20 +6185,6 @@ export class SureelApi extends BaseAPI {
|
|
|
5931
6185
|
.updateCollection(collectionUuid, contentType, updateCollectionRequest, options)
|
|
5932
6186
|
.then((request) => request(this.axios, this.basePath));
|
|
5933
6187
|
}
|
|
5934
|
-
/**
|
|
5935
|
-
* Upload audio, image, video, metadata, or archive files as form-data for use with other endpoints. Allowed file extensions: - Audio: .wav, .mp3, .m4a, .flac - Image: .jpeg, .jpg, .png, .tif - Video: .mp4 - Metadata: .json, .npy, .xml, .npz - Archive: .zip All uploads are securely stored on the server for a limited time. Maximum file size: 200MB. For files larger than 200MB (e.g. DDEX ZIPs), use `/files/generate-upload-urls` instead.
|
|
5936
|
-
* @summary Upload files as form-data
|
|
5937
|
-
* @param {UploadFilesContentTypeEnum} contentType
|
|
5938
|
-
* @param {string} contentType2
|
|
5939
|
-
* @param {*} [options] Override http request option.
|
|
5940
|
-
* @throws {RequiredError}
|
|
5941
|
-
* @memberof SureelApi
|
|
5942
|
-
*/
|
|
5943
|
-
uploadFiles(contentType, contentType2, options) {
|
|
5944
|
-
return SureelApiFp(this.configuration)
|
|
5945
|
-
.uploadFiles(contentType, contentType2, options)
|
|
5946
|
-
.then((request) => request(this.axios, this.basePath));
|
|
5947
|
-
}
|
|
5948
6188
|
/**
|
|
5949
6189
|
* Upscale a given image. The maximum allowed resolution for the content image is 1024x1024. By default, each user has a limit of 100 requests per minute.
|
|
5950
6190
|
* @summary Upscaling
|
|
@@ -6087,6 +6327,13 @@ export const GetArtistByUsernameSortByEnum = {
|
|
|
6087
6327
|
ReleaseDate: "release_date",
|
|
6088
6328
|
CollectionName: "collection_name",
|
|
6089
6329
|
NumberOfAssets: "number_of_assets",
|
|
6330
|
+
CreatedAt: "created_at",
|
|
6331
|
+
UpdatedAt: "updated_at",
|
|
6332
|
+
Upc: "upc",
|
|
6333
|
+
Styles: "styles",
|
|
6334
|
+
AiCompanyNotificationsNotificationsStatus: "ai_company_notifications.notifications_status",
|
|
6335
|
+
AiCompanyNotificationsNumberOfContactedAiCompanies: "ai_company_notifications.number_of_contacted_ai_companies",
|
|
6336
|
+
UseForTrainingTimestamp: "use_for_training_timestamp",
|
|
6090
6337
|
};
|
|
6091
6338
|
/**
|
|
6092
6339
|
* @export
|
|
@@ -6095,6 +6342,13 @@ export const GetArtistByUsernameSortOrderEnum = {
|
|
|
6095
6342
|
Asc: "asc",
|
|
6096
6343
|
Desc: "desc",
|
|
6097
6344
|
};
|
|
6345
|
+
/**
|
|
6346
|
+
* @export
|
|
6347
|
+
*/
|
|
6348
|
+
export const GetArtistByUsernameUseForTrainingEnum = {
|
|
6349
|
+
True: "true",
|
|
6350
|
+
False: "false",
|
|
6351
|
+
};
|
|
6098
6352
|
/**
|
|
6099
6353
|
* @export
|
|
6100
6354
|
*/
|
|
@@ -6108,6 +6362,13 @@ export const GetOwnCollectionsSortByEnum = {
|
|
|
6108
6362
|
ReleaseDate: "release_date",
|
|
6109
6363
|
CollectionName: "collection_name",
|
|
6110
6364
|
NumberOfAssets: "number_of_assets",
|
|
6365
|
+
CreatedAt: "created_at",
|
|
6366
|
+
UpdatedAt: "updated_at",
|
|
6367
|
+
Upc: "upc",
|
|
6368
|
+
Styles: "styles",
|
|
6369
|
+
AiCompanyNotificationsNotificationsStatus: "ai_company_notifications.notifications_status",
|
|
6370
|
+
AiCompanyNotificationsNumberOfContactedAiCompanies: "ai_company_notifications.number_of_contacted_ai_companies",
|
|
6371
|
+
UseForTrainingTimestamp: "use_for_training_timestamp",
|
|
6111
6372
|
};
|
|
6112
6373
|
/**
|
|
6113
6374
|
* @export
|
|
@@ -6116,6 +6377,13 @@ export const GetOwnCollectionsSortOrderEnum = {
|
|
|
6116
6377
|
Asc: "asc",
|
|
6117
6378
|
Desc: "desc",
|
|
6118
6379
|
};
|
|
6380
|
+
/**
|
|
6381
|
+
* @export
|
|
6382
|
+
*/
|
|
6383
|
+
export const GetOwnCollectionsUseForTrainingEnum = {
|
|
6384
|
+
True: "true",
|
|
6385
|
+
False: "false",
|
|
6386
|
+
};
|
|
6119
6387
|
/**
|
|
6120
6388
|
* @export
|
|
6121
6389
|
*/
|
|
@@ -6218,16 +6486,6 @@ export const TrackTrainingArtifactsContentTypeEnum = {
|
|
|
6218
6486
|
export const UpdateCollectionContentTypeEnum = {
|
|
6219
6487
|
ApplicationJson: "application/json",
|
|
6220
6488
|
};
|
|
6221
|
-
/**
|
|
6222
|
-
* @export
|
|
6223
|
-
*/
|
|
6224
|
-
export const UploadFilesContentTypeEnum = {
|
|
6225
|
-
Audio: "audio",
|
|
6226
|
-
Image: "image",
|
|
6227
|
-
Video: "video",
|
|
6228
|
-
Metadata: "metadata",
|
|
6229
|
-
Archive: "archive",
|
|
6230
|
-
};
|
|
6231
6489
|
/**
|
|
6232
6490
|
* @export
|
|
6233
6491
|
*/
|