@sureel/sdk 1.17.0-rc.7 → 1.17.4-rc.1

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.
Files changed (223) hide show
  1. package/api/sureel-api.d.ts +349 -115
  2. package/api/sureel-api.d.ts.map +1 -1
  3. package/api/sureel-api.js +455 -105
  4. package/api/sureel-api.js.map +1 -1
  5. package/esm/api/sureel-api.d.ts +349 -115
  6. package/esm/api/sureel-api.d.ts.map +1 -1
  7. package/esm/api/sureel-api.js +454 -104
  8. package/esm/api/sureel-api.js.map +1 -1
  9. package/esm/models/aidetection-result-per-stem-inner.d.ts +1 -1
  10. package/esm/models/artifacts-per-epoch-entry.d.ts +1 -1
  11. package/esm/models/artist-profile-data.d.ts +19 -0
  12. package/esm/models/artist-profile-data.d.ts.map +1 -1
  13. package/esm/models/artist-settings-duplicate-error.d.ts +24 -0
  14. package/esm/models/artist-settings-duplicate-error.d.ts.map +1 -1
  15. package/esm/models/artist-settings-error.d.ts +24 -0
  16. package/esm/models/artist-settings-error.d.ts.map +1 -1
  17. package/esm/models/bad-request-response.d.ts +44 -0
  18. package/esm/models/bad-request-response.d.ts.map +1 -0
  19. package/esm/models/bad-request-response.js +15 -0
  20. package/esm/models/bad-request-response.js.map +1 -0
  21. package/esm/models/create-collection-request.d.ts +1 -1
  22. package/esm/models/customer-profile-data.d.ts +13 -0
  23. package/esm/models/customer-profile-data.d.ts.map +1 -1
  24. package/esm/models/evaluate-artist-settings-body.d.ts +7 -0
  25. package/esm/models/evaluate-artist-settings-body.d.ts.map +1 -1
  26. package/esm/models/evaluate-music-consent-body.d.ts +7 -0
  27. package/esm/models/evaluate-music-consent-body.d.ts.map +1 -1
  28. package/esm/models/evaluate-music-use.d.ts +19 -0
  29. package/esm/models/evaluate-music-use.d.ts.map +1 -0
  30. package/esm/models/evaluate-music-use.js +15 -0
  31. package/esm/models/evaluate-music-use.js.map +1 -0
  32. package/esm/models/evaluate-nilv-use.d.ts +19 -0
  33. package/esm/models/evaluate-nilv-use.d.ts.map +1 -0
  34. package/esm/models/evaluate-nilv-use.js +15 -0
  35. package/esm/models/evaluate-nilv-use.js.map +1 -0
  36. package/esm/models/get-all-artists-response.d.ts +32 -0
  37. package/esm/models/get-all-artists-response.d.ts.map +1 -0
  38. package/esm/models/get-all-artists-response.js +15 -0
  39. package/esm/models/get-all-artists-response.js.map +1 -0
  40. package/esm/models/identical-matches.d.ts +4 -6
  41. package/esm/models/identical-matches.d.ts.map +1 -1
  42. package/esm/models/identical-matches1.d.ts +2 -3
  43. package/esm/models/identical-matches1.d.ts.map +1 -1
  44. package/esm/models/index.d.ts +15 -3
  45. package/esm/models/index.d.ts.map +1 -1
  46. package/esm/models/index.js +15 -3
  47. package/esm/models/index.js.map +1 -1
  48. package/esm/models/model-file.d.ts +1 -1
  49. package/esm/models/music-ai-use.d.ts +19 -0
  50. package/esm/models/music-ai-use.d.ts.map +1 -0
  51. package/esm/models/music-ai-use.js +15 -0
  52. package/esm/models/music-ai-use.js.map +1 -0
  53. package/esm/models/music-consent-error.d.ts +24 -0
  54. package/esm/models/music-consent-error.d.ts.map +1 -1
  55. package/esm/models/music-grant-input.d.ts +8 -1
  56. package/esm/models/music-grant-input.d.ts.map +1 -1
  57. package/esm/models/music-grant.d.ts +8 -1
  58. package/esm/models/music-grant.d.ts.map +1 -1
  59. package/esm/models/music-grant1.d.ts +8 -1
  60. package/esm/models/music-grant1.d.ts.map +1 -1
  61. package/esm/models/nil-asset-thumbnail-size.d.ts +19 -0
  62. package/esm/models/nil-asset-thumbnail-size.d.ts.map +1 -0
  63. package/esm/models/nil-asset-thumbnail-size.js +15 -0
  64. package/esm/models/nil-asset-thumbnail-size.js.map +1 -0
  65. package/esm/models/nilv-ai-use.d.ts +19 -0
  66. package/esm/models/nilv-ai-use.d.ts.map +1 -0
  67. package/esm/models/nilv-ai-use.js +15 -0
  68. package/esm/models/nilv-ai-use.js.map +1 -0
  69. package/esm/models/nilv-grant-input.d.ts +8 -1
  70. package/esm/models/nilv-grant-input.d.ts.map +1 -1
  71. package/esm/models/nilv-grant-response.d.ts +8 -1
  72. package/esm/models/nilv-grant-response.d.ts.map +1 -1
  73. package/esm/models/nilv-grant-response1.d.ts +8 -1
  74. package/esm/models/nilv-grant-response1.d.ts.map +1 -1
  75. package/esm/models/profile-picture-source.d.ts +19 -0
  76. package/esm/models/profile-picture-source.d.ts.map +1 -0
  77. package/esm/models/profile-picture-source.js +15 -0
  78. package/esm/models/profile-picture-source.js.map +1 -0
  79. package/esm/models/roster-artist-profile-data.d.ts +25 -0
  80. package/esm/models/roster-artist-profile-data.d.ts.map +1 -1
  81. package/esm/models/roster-artist-response.d.ts +33 -0
  82. package/esm/models/roster-artist-response.d.ts.map +1 -0
  83. package/esm/models/roster-artist-response.js +15 -0
  84. package/esm/models/roster-artist-response.js.map +1 -0
  85. package/esm/models/roster-invited-by-acting-as.d.ts +19 -0
  86. package/esm/models/roster-invited-by-acting-as.d.ts.map +1 -0
  87. package/esm/models/roster-invited-by-acting-as.js +15 -0
  88. package/esm/models/roster-invited-by-acting-as.js.map +1 -0
  89. package/esm/models/roster-invited-by.d.ts +44 -0
  90. package/esm/models/roster-invited-by.d.ts.map +1 -0
  91. package/esm/models/roster-invited-by.js +15 -0
  92. package/esm/models/roster-invited-by.js.map +1 -0
  93. package/esm/models/roster-party-org.d.ts +31 -0
  94. package/esm/models/roster-party-org.d.ts.map +1 -0
  95. package/esm/models/roster-party-org.js +15 -0
  96. package/esm/models/roster-party-org.js.map +1 -0
  97. package/esm/models/roster-party-status.d.ts +19 -0
  98. package/esm/models/roster-party-status.d.ts.map +1 -0
  99. package/esm/models/roster-party-status.js +15 -0
  100. package/esm/models/roster-party-status.js.map +1 -0
  101. package/esm/models/roster-party.d.ts +88 -0
  102. package/esm/models/roster-party.d.ts.map +1 -0
  103. package/esm/models/roster-party.js +15 -0
  104. package/esm/models/roster-party.js.map +1 -0
  105. package/esm/models/service-unavailable-response.d.ts +37 -0
  106. package/esm/models/service-unavailable-response.d.ts.map +1 -0
  107. package/esm/models/service-unavailable-response.js +15 -0
  108. package/esm/models/service-unavailable-response.js.map +1 -0
  109. package/esm/models/set-filepath-file.d.ts +1 -1
  110. package/esm/models/track-inference-artifacts-body.d.ts +5 -5
  111. package/esm/models/track-training-artifacts-body.d.ts +2 -2
  112. package/esm/models/training-artifact-entry.d.ts +2 -2
  113. package/esm/models/upload-url-request.d.ts +6 -0
  114. package/esm/models/upload-url-request.d.ts.map +1 -1
  115. package/esm/models/upload-url.d.ts +1 -1
  116. package/models/aidetection-result-per-stem-inner.d.ts +1 -1
  117. package/models/artifacts-per-epoch-entry.d.ts +1 -1
  118. package/models/artist-profile-data.d.ts +19 -0
  119. package/models/artist-profile-data.d.ts.map +1 -1
  120. package/models/artist-settings-duplicate-error.d.ts +24 -0
  121. package/models/artist-settings-duplicate-error.d.ts.map +1 -1
  122. package/models/artist-settings-error.d.ts +24 -0
  123. package/models/artist-settings-error.d.ts.map +1 -1
  124. package/models/bad-request-response.d.ts +44 -0
  125. package/models/bad-request-response.d.ts.map +1 -0
  126. package/models/bad-request-response.js +16 -0
  127. package/models/bad-request-response.js.map +1 -0
  128. package/models/create-collection-request.d.ts +1 -1
  129. package/models/customer-profile-data.d.ts +13 -0
  130. package/models/customer-profile-data.d.ts.map +1 -1
  131. package/models/evaluate-artist-settings-body.d.ts +7 -0
  132. package/models/evaluate-artist-settings-body.d.ts.map +1 -1
  133. package/models/evaluate-music-consent-body.d.ts +7 -0
  134. package/models/evaluate-music-consent-body.d.ts.map +1 -1
  135. package/models/evaluate-music-use.d.ts +19 -0
  136. package/models/evaluate-music-use.d.ts.map +1 -0
  137. package/models/evaluate-music-use.js +16 -0
  138. package/models/evaluate-music-use.js.map +1 -0
  139. package/models/evaluate-nilv-use.d.ts +19 -0
  140. package/models/evaluate-nilv-use.d.ts.map +1 -0
  141. package/models/evaluate-nilv-use.js +16 -0
  142. package/models/evaluate-nilv-use.js.map +1 -0
  143. package/models/get-all-artists-response.d.ts +32 -0
  144. package/models/get-all-artists-response.d.ts.map +1 -0
  145. package/models/get-all-artists-response.js +16 -0
  146. package/models/get-all-artists-response.js.map +1 -0
  147. package/models/identical-matches.d.ts +4 -6
  148. package/models/identical-matches.d.ts.map +1 -1
  149. package/models/identical-matches1.d.ts +2 -3
  150. package/models/identical-matches1.d.ts.map +1 -1
  151. package/models/index.d.ts +15 -3
  152. package/models/index.d.ts.map +1 -1
  153. package/models/index.js +15 -3
  154. package/models/index.js.map +1 -1
  155. package/models/model-file.d.ts +1 -1
  156. package/models/music-ai-use.d.ts +19 -0
  157. package/models/music-ai-use.d.ts.map +1 -0
  158. package/models/music-ai-use.js +16 -0
  159. package/models/music-ai-use.js.map +1 -0
  160. package/models/music-consent-error.d.ts +24 -0
  161. package/models/music-consent-error.d.ts.map +1 -1
  162. package/models/music-grant-input.d.ts +8 -1
  163. package/models/music-grant-input.d.ts.map +1 -1
  164. package/models/music-grant.d.ts +8 -1
  165. package/models/music-grant.d.ts.map +1 -1
  166. package/models/music-grant1.d.ts +8 -1
  167. package/models/music-grant1.d.ts.map +1 -1
  168. package/models/nil-asset-thumbnail-size.d.ts +19 -0
  169. package/models/nil-asset-thumbnail-size.d.ts.map +1 -0
  170. package/models/nil-asset-thumbnail-size.js +16 -0
  171. package/models/nil-asset-thumbnail-size.js.map +1 -0
  172. package/models/nilv-ai-use.d.ts +19 -0
  173. package/models/nilv-ai-use.d.ts.map +1 -0
  174. package/models/nilv-ai-use.js +16 -0
  175. package/models/nilv-ai-use.js.map +1 -0
  176. package/models/nilv-grant-input.d.ts +8 -1
  177. package/models/nilv-grant-input.d.ts.map +1 -1
  178. package/models/nilv-grant-response.d.ts +8 -1
  179. package/models/nilv-grant-response.d.ts.map +1 -1
  180. package/models/nilv-grant-response1.d.ts +8 -1
  181. package/models/nilv-grant-response1.d.ts.map +1 -1
  182. package/models/profile-picture-source.d.ts +19 -0
  183. package/models/profile-picture-source.d.ts.map +1 -0
  184. package/models/profile-picture-source.js +16 -0
  185. package/models/profile-picture-source.js.map +1 -0
  186. package/models/roster-artist-profile-data.d.ts +25 -0
  187. package/models/roster-artist-profile-data.d.ts.map +1 -1
  188. package/models/roster-artist-response.d.ts +33 -0
  189. package/models/roster-artist-response.d.ts.map +1 -0
  190. package/models/roster-artist-response.js +16 -0
  191. package/models/roster-artist-response.js.map +1 -0
  192. package/models/roster-invited-by-acting-as.d.ts +19 -0
  193. package/models/roster-invited-by-acting-as.d.ts.map +1 -0
  194. package/models/roster-invited-by-acting-as.js +16 -0
  195. package/models/roster-invited-by-acting-as.js.map +1 -0
  196. package/models/roster-invited-by.d.ts +44 -0
  197. package/models/roster-invited-by.d.ts.map +1 -0
  198. package/models/roster-invited-by.js +16 -0
  199. package/models/roster-invited-by.js.map +1 -0
  200. package/models/roster-party-org.d.ts +31 -0
  201. package/models/roster-party-org.d.ts.map +1 -0
  202. package/models/roster-party-org.js +16 -0
  203. package/models/roster-party-org.js.map +1 -0
  204. package/models/roster-party-status.d.ts +19 -0
  205. package/models/roster-party-status.d.ts.map +1 -0
  206. package/models/roster-party-status.js +16 -0
  207. package/models/roster-party-status.js.map +1 -0
  208. package/models/roster-party.d.ts +88 -0
  209. package/models/roster-party.d.ts.map +1 -0
  210. package/models/roster-party.js +16 -0
  211. package/models/roster-party.js.map +1 -0
  212. package/models/service-unavailable-response.d.ts +37 -0
  213. package/models/service-unavailable-response.d.ts.map +1 -0
  214. package/models/service-unavailable-response.js +16 -0
  215. package/models/service-unavailable-response.js.map +1 -0
  216. package/models/set-filepath-file.d.ts +1 -1
  217. package/models/track-inference-artifacts-body.d.ts +5 -5
  218. package/models/track-training-artifacts-body.d.ts +2 -2
  219. package/models/training-artifact-entry.d.ts +2 -2
  220. package/models/upload-url-request.d.ts +6 -0
  221. package/models/upload-url-request.d.ts.map +1 -1
  222. package/models/upload-url.d.ts +1 -1
  223. package/package.json +1 -1
@@ -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 put files to S3
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 all artists including their published collections. By default, each user has a limit of 60 requests per minute.
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 collections to return per page.
1111
- * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
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 collections to return per page.
1214
- * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
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
- * This endpoint returns the label profile data and the artist profile data for all artists that are associated with the label.
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\&#39;s customer_name, songwriters through its publisher_name; singer-songwriters appear 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.
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\&#39;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\&#39;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\&#39;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 &#x60;take&#x60; parameter is the number of collections to return per page.
1643
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
1749
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
1750
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; 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. \&#39;album,single\&#39;). 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 (\&quot;audio collection\&quot;, \&quot;image collection\&quot;, \&quot;video collection\&quot;) are derived at read time from a collection\&#39;s assets and are not filterable yet: asking for one matches nothing.
1756
+ * @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; 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 &#x60;nilv&#x60; summary a roster page gives each artist.
1916
+ * @param {boolean} [includeMusicConsent] When true, the artist carries the same &#x60;music_consent&#x60; 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
@@ -2767,7 +2927,7 @@ export const SureelApiAxiosParamCreator = function (configuration) {
2767
2927
  };
2768
2928
  },
2769
2929
  /**
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.
2930
+ * Upload audio, image, video, metadata, or archive files as form-data for use with other endpoints. Allowed file extensions: - Audio: .wav, .mp3, .m4a, .flac, .aiff, .aif, .wma - 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
2931
  * @summary Upload files as form-data
2772
2932
  * @param {UploadFilesContentTypeEnum} contentType
2773
2933
  * @param {string} contentType2
@@ -3241,7 +3401,7 @@ export const SureelApiFp = function (configuration) {
3241
3401
  },
3242
3402
  /**
3243
3403
  * Returns the signed url for the given filenames.
3244
- * @summary Generate signed URLs to put files to S3
3404
+ * @summary Generate signed URLs to upload files to cloud storage
3245
3405
  * @param {GeneratePutUploadUrlsContentTypeEnum} contentType
3246
3406
  * @param {UploadUrlRequest} uploadUrlRequest
3247
3407
  * @param {*} [options] Override http request option.
@@ -3284,19 +3444,20 @@ export const SureelApiFp = function (configuration) {
3284
3444
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3285
3445
  },
3286
3446
  /**
3287
- * Get a list of all artists including their published collections. By default, each user has a limit of 60 requests per minute.
3447
+ * 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
3448
  * @summary Get all artists
3289
3449
  * @param {string} includeArtworks
3290
3450
  * @param {string} [includeOriginalSongs]
3291
3451
  * @param {string} [includeFullResArtworks]
3292
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
3293
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
3452
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
3453
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
3454
+ * @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
3455
  * @param {*} [options] Override http request option.
3295
3456
  * @throws {RequiredError}
3296
3457
  */
3297
- async getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
3458
+ async getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
3298
3459
  var _a, _b, _c;
3299
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options);
3460
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options);
3300
3461
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3301
3462
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getAllArtists"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3302
3463
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3326,18 +3487,20 @@ export const SureelApiFp = function (configuration) {
3326
3487
  * @param {string} username
3327
3488
  * @param {string} [includeOriginalSongs]
3328
3489
  * @param {string} [includeFullResArtworks]
3329
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
3330
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
3490
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
3491
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
3331
3492
  * @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.
3493
+ * @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.
3494
+ * @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.
3495
+ * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
3496
+ * @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \&#39;album,single\&#39;). 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 (\&quot;audio collection\&quot;, \&quot;image collection\&quot;, \&quot;video collection\&quot;) are derived at read time from a collection\&#39;s assets and are not filterable yet: asking for one matches nothing.
3497
+ * @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
3335
3498
  * @param {*} [options] Override http request option.
3336
3499
  * @throws {RequiredError}
3337
3500
  */
3338
- async getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
3501
+ async getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
3339
3502
  var _a, _b, _c;
3340
- const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options);
3503
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options);
3341
3504
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3342
3505
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getArtistByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3343
3506
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3415,21 +3578,23 @@ export const SureelApiFp = function (configuration) {
3415
3578
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3416
3579
  },
3417
3580
  /**
3418
- * This endpoint returns the label profile data and the artist profile data for all artists that are associated with the label.
3581
+ * 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
3582
  * @summary Get profile data by label name
3420
3583
  * @param {string} labelName
3421
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of artists to return per page.
3422
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
3584
+ * @param {number} [take] The &#x60;take&#x60; 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.
3585
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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.
3586
+ * @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 &#x60;cursor&#x60; may only be carried between requests that agree on whether &#x60;search&#x60; 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.
3587
+ * @param {string} [signedLabel] Narrow the roster to parties signed to this label, matched exactly against their &#x60;signed_labels&#x60;; the company\&#39;s &#x60;sub_labels&#x60; are the values it holds. Combines with &#x60;search&#x60;, &#x60;roles&#x60; and &#x60;include_hidden&#x60;, and never reaches past the company\&#39;s own roster. Served from the profile index like &#x60;search&#x60;, with the same 503 while that index is unavailable and the same cursor format: a &#x60;cursor&#x60; may only be carried between requests that agree on whether either parameter is set.
3423
3588
  * @param {boolean} [includeNilv] When true, each roster artist carries a &#x60;nilv&#x60; 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 &#x60;take&#x60; of at most 100, because the summary costs one read per artist.
3424
3589
  * @param {boolean} [includeMusicConsent] When true, each roster artist carries a &#x60;music_consent&#x60; summary of their music consent record, the track-level twin of &#x60;nilv&#x60;. Same boundary and the same explicit &#x60;take&#x60; requirement, because the summary costs one read per artist.
3425
3590
  * @param {boolean} [includeHidden] When true, roster artists that are not shown in the frontend are included, each carrying &#x60;show_in_frontend&#x60;. 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\&#39;s customer_name, songwriters through its publisher_name; singer-songwriters appear 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.
3591
+ * @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\&#39;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
3592
  * @param {*} [options] Override http request option.
3428
3593
  * @throws {RequiredError}
3429
3594
  */
3430
- async getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
3595
+ async getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
3431
3596
  var _a, _b, _c;
3432
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options);
3597
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options);
3433
3598
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3434
3599
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getCustomerData"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3435
3600
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3463,6 +3628,39 @@ export const SureelApiFp = function (configuration) {
3463
3628
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getMusicConsentByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3464
3629
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3465
3630
  },
3631
+ /**
3632
+ * 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.
3633
+ * @summary Get a small WebP preview of an ingested NILV image
3634
+ * @param {string} assetId The id of a reference image or brand mark in the record.
3635
+ * @param {NilAssetThumbnailSize} [size]
3636
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
3637
+ * @param {*} [options] Override http request option.
3638
+ * @throws {RequiredError}
3639
+ */
3640
+ async getNilAssetThumbnail(assetId, size, v, options) {
3641
+ var _a, _b, _c;
3642
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNilAssetThumbnail(assetId, size, v, options);
3643
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3644
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getNilAssetThumbnail"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3645
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3646
+ },
3647
+ /**
3648
+ * 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.
3649
+ * @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
3650
+ * @param {string} username The artist whose settings are being addressed.
3651
+ * @param {string} assetId The id of a reference image or brand mark in the record.
3652
+ * @param {NilAssetThumbnailSize} [size]
3653
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
3654
+ * @param {*} [options] Override http request option.
3655
+ * @throws {RequiredError}
3656
+ */
3657
+ async getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
3658
+ var _a, _b, _c;
3659
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNilAssetThumbnailByUsername(username, assetId, size, v, options);
3660
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3661
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getNilAssetThumbnailByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3663
+ },
3466
3664
  /**
3467
3665
  * Answers 404 for an unknown request and for one belonging to another artist, identically.
3468
3666
  * @summary Check how ingestion of a settings submission\'s assets is going
@@ -3498,18 +3696,20 @@ export const SureelApiFp = function (configuration) {
3498
3696
  * @param {string} includeArtworks
3499
3697
  * @param {string} [includeOriginalSongs]
3500
3698
  * @param {string} [includeFullResArtworks]
3501
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
3502
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
3699
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
3700
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
3503
3701
  * @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.
3702
+ * @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.
3703
+ * @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.
3704
+ * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
3705
+ * @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \&#39;album,single\&#39;). 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 (\&quot;audio collection\&quot;, \&quot;image collection\&quot;, \&quot;video collection\&quot;) are derived at read time from a collection\&#39;s assets and are not filterable yet: asking for one matches nothing.
3706
+ * @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
3507
3707
  * @param {*} [options] Override http request option.
3508
3708
  * @throws {RequiredError}
3509
3709
  */
3510
- async getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
3710
+ async getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
3511
3711
  var _a, _b, _c;
3512
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options);
3712
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options);
3513
3713
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3514
3714
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getOwnCollections"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3515
3715
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3547,6 +3747,23 @@ export const SureelApiFp = function (configuration) {
3547
3747
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getResultByRequestId"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3548
3748
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3549
3749
  },
3750
+ /**
3751
+ * 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.
3752
+ * @summary Get one artist on a label\'s roster
3753
+ * @param {string} labelName
3754
+ * @param {string} username
3755
+ * @param {boolean} [includeNilv] When true, the artist carries the same &#x60;nilv&#x60; summary a roster page gives each artist.
3756
+ * @param {boolean} [includeMusicConsent] When true, the artist carries the same &#x60;music_consent&#x60; summary a roster page gives each artist.
3757
+ * @param {*} [options] Override http request option.
3758
+ * @throws {RequiredError}
3759
+ */
3760
+ async getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
3761
+ var _a, _b, _c;
3762
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options);
3763
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3764
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getRosterArtist"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3765
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3766
+ },
3550
3767
  /**
3551
3768
  * Get the style preset parameters for ldm.
3552
3769
  * @summary Style presets for ldm
@@ -3926,7 +4143,7 @@ export const SureelApiFp = function (configuration) {
3926
4143
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3927
4144
  },
3928
4145
  /**
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.
4146
+ * Upload audio, image, video, metadata, or archive files as form-data for use with other endpoints. Allowed file extensions: - Audio: .wav, .mp3, .m4a, .flac, .aiff, .aif, .wma - 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
4147
  * @summary Upload files as form-data
3931
4148
  * @param {UploadFilesContentTypeEnum} contentType
3932
4149
  * @param {string} contentType2
@@ -4299,7 +4516,7 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4299
4516
  },
4300
4517
  /**
4301
4518
  * Returns the signed url for the given filenames.
4302
- * @summary Generate signed URLs to put files to S3
4519
+ * @summary Generate signed URLs to upload files to cloud storage
4303
4520
  * @param {GeneratePutUploadUrlsContentTypeEnum} contentType
4304
4521
  * @param {UploadUrlRequest} uploadUrlRequest
4305
4522
  * @param {*} [options] Override http request option.
@@ -4336,19 +4553,20 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4336
4553
  .then((request) => request(axios, basePath));
4337
4554
  },
4338
4555
  /**
4339
- * Get a list of all artists including their published collections. By default, each user has a limit of 60 requests per minute.
4556
+ * 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
4557
  * @summary Get all artists
4341
4558
  * @param {string} includeArtworks
4342
4559
  * @param {string} [includeOriginalSongs]
4343
4560
  * @param {string} [includeFullResArtworks]
4344
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
4345
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
4561
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
4562
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
4563
+ * @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
4564
  * @param {*} [options] Override http request option.
4347
4565
  * @throws {RequiredError}
4348
4566
  */
4349
- getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
4567
+ getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
4350
4568
  return localVarFp
4351
- .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
4569
+ .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options)
4352
4570
  .then((request) => request(axios, basePath));
4353
4571
  },
4354
4572
  /**
@@ -4374,18 +4592,20 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4374
4592
  * @param {string} username
4375
4593
  * @param {string} [includeOriginalSongs]
4376
4594
  * @param {string} [includeFullResArtworks]
4377
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
4378
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
4595
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
4596
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
4379
4597
  * @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.
4598
+ * @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.
4599
+ * @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.
4600
+ * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
4601
+ * @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \&#39;album,single\&#39;). 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 (\&quot;audio collection\&quot;, \&quot;image collection\&quot;, \&quot;video collection\&quot;) are derived at read time from a collection\&#39;s assets and are not filterable yet: asking for one matches nothing.
4602
+ * @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
4383
4603
  * @param {*} [options] Override http request option.
4384
4604
  * @throws {RequiredError}
4385
4605
  */
4386
- getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
4606
+ getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
4387
4607
  return localVarFp
4388
- .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
4608
+ .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
4389
4609
  .then((request) => request(axios, basePath));
4390
4610
  },
4391
4611
  /**
@@ -4451,21 +4671,23 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4451
4671
  .then((request) => request(axios, basePath));
4452
4672
  },
4453
4673
  /**
4454
- * This endpoint returns the label profile data and the artist profile data for all artists that are associated with the label.
4674
+ * 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
4675
  * @summary Get profile data by label name
4456
4676
  * @param {string} labelName
4457
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of artists to return per page.
4458
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
4677
+ * @param {number} [take] The &#x60;take&#x60; 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.
4678
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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.
4679
+ * @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 &#x60;cursor&#x60; may only be carried between requests that agree on whether &#x60;search&#x60; 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.
4680
+ * @param {string} [signedLabel] Narrow the roster to parties signed to this label, matched exactly against their &#x60;signed_labels&#x60;; the company\&#39;s &#x60;sub_labels&#x60; are the values it holds. Combines with &#x60;search&#x60;, &#x60;roles&#x60; and &#x60;include_hidden&#x60;, and never reaches past the company\&#39;s own roster. Served from the profile index like &#x60;search&#x60;, with the same 503 while that index is unavailable and the same cursor format: a &#x60;cursor&#x60; may only be carried between requests that agree on whether either parameter is set.
4459
4681
  * @param {boolean} [includeNilv] When true, each roster artist carries a &#x60;nilv&#x60; 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 &#x60;take&#x60; of at most 100, because the summary costs one read per artist.
4460
4682
  * @param {boolean} [includeMusicConsent] When true, each roster artist carries a &#x60;music_consent&#x60; summary of their music consent record, the track-level twin of &#x60;nilv&#x60;. Same boundary and the same explicit &#x60;take&#x60; requirement, because the summary costs one read per artist.
4461
4683
  * @param {boolean} [includeHidden] When true, roster artists that are not shown in the frontend are included, each carrying &#x60;show_in_frontend&#x60;. 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\&#39;s customer_name, songwriters through its publisher_name; singer-songwriters appear 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.
4684
+ * @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\&#39;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
4685
  * @param {*} [options] Override http request option.
4464
4686
  * @throws {RequiredError}
4465
4687
  */
4466
- getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
4688
+ getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
4467
4689
  return localVarFp
4468
- .getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options)
4690
+ .getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options)
4469
4691
  .then((request) => request(axios, basePath));
4470
4692
  },
4471
4693
  /**
@@ -4493,6 +4715,35 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4493
4715
  .getMusicConsentByUsername(username, version, options)
4494
4716
  .then((request) => request(axios, basePath));
4495
4717
  },
4718
+ /**
4719
+ * 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.
4720
+ * @summary Get a small WebP preview of an ingested NILV image
4721
+ * @param {string} assetId The id of a reference image or brand mark in the record.
4722
+ * @param {NilAssetThumbnailSize} [size]
4723
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
4724
+ * @param {*} [options] Override http request option.
4725
+ * @throws {RequiredError}
4726
+ */
4727
+ getNilAssetThumbnail(assetId, size, v, options) {
4728
+ return localVarFp
4729
+ .getNilAssetThumbnail(assetId, size, v, options)
4730
+ .then((request) => request(axios, basePath));
4731
+ },
4732
+ /**
4733
+ * 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.
4734
+ * @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
4735
+ * @param {string} username The artist whose settings are being addressed.
4736
+ * @param {string} assetId The id of a reference image or brand mark in the record.
4737
+ * @param {NilAssetThumbnailSize} [size]
4738
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
4739
+ * @param {*} [options] Override http request option.
4740
+ * @throws {RequiredError}
4741
+ */
4742
+ getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
4743
+ return localVarFp
4744
+ .getNilAssetThumbnailByUsername(username, assetId, size, v, options)
4745
+ .then((request) => request(axios, basePath));
4746
+ },
4496
4747
  /**
4497
4748
  * Answers 404 for an unknown request and for one belonging to another artist, identically.
4498
4749
  * @summary Check how ingestion of a settings submission\'s assets is going
@@ -4524,18 +4775,20 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4524
4775
  * @param {string} includeArtworks
4525
4776
  * @param {string} [includeOriginalSongs]
4526
4777
  * @param {string} [includeFullResArtworks]
4527
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
4528
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
4778
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
4779
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
4529
4780
  * @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.
4781
+ * @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.
4782
+ * @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.
4783
+ * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
4784
+ * @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \&#39;album,single\&#39;). 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 (\&quot;audio collection\&quot;, \&quot;image collection\&quot;, \&quot;video collection\&quot;) are derived at read time from a collection\&#39;s assets and are not filterable yet: asking for one matches nothing.
4785
+ * @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
4533
4786
  * @param {*} [options] Override http request option.
4534
4787
  * @throws {RequiredError}
4535
4788
  */
4536
- getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
4789
+ getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
4537
4790
  return localVarFp
4538
- .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
4791
+ .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
4539
4792
  .then((request) => request(axios, basePath));
4540
4793
  },
4541
4794
  /**
@@ -4567,6 +4820,21 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4567
4820
  .getResultByRequestId(requestId, topNAttributionResults, options)
4568
4821
  .then((request) => request(axios, basePath));
4569
4822
  },
4823
+ /**
4824
+ * 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.
4825
+ * @summary Get one artist on a label\'s roster
4826
+ * @param {string} labelName
4827
+ * @param {string} username
4828
+ * @param {boolean} [includeNilv] When true, the artist carries the same &#x60;nilv&#x60; summary a roster page gives each artist.
4829
+ * @param {boolean} [includeMusicConsent] When true, the artist carries the same &#x60;music_consent&#x60; summary a roster page gives each artist.
4830
+ * @param {*} [options] Override http request option.
4831
+ * @throws {RequiredError}
4832
+ */
4833
+ getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
4834
+ return localVarFp
4835
+ .getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options)
4836
+ .then((request) => request(axios, basePath));
4837
+ },
4570
4838
  /**
4571
4839
  * Get the style preset parameters for ldm.
4572
4840
  * @summary Style presets for ldm
@@ -4896,7 +5164,7 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4896
5164
  .then((request) => request(axios, basePath));
4897
5165
  },
4898
5166
  /**
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.
5167
+ * Upload audio, image, video, metadata, or archive files as form-data for use with other endpoints. Allowed file extensions: - Audio: .wav, .mp3, .m4a, .flac, .aiff, .aif, .wma - 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
5168
  * @summary Upload files as form-data
4901
5169
  * @param {UploadFilesContentTypeEnum} contentType
4902
5170
  * @param {string} contentType2
@@ -5291,7 +5559,7 @@ export class SureelApi extends BaseAPI {
5291
5559
  }
5292
5560
  /**
5293
5561
  * Returns the signed url for the given filenames.
5294
- * @summary Generate signed URLs to put files to S3
5562
+ * @summary Generate signed URLs to upload files to cloud storage
5295
5563
  * @param {GeneratePutUploadUrlsContentTypeEnum} contentType
5296
5564
  * @param {UploadUrlRequest} uploadUrlRequest
5297
5565
  * @param {*} [options] Override http request option.
@@ -5331,20 +5599,21 @@ export class SureelApi extends BaseAPI {
5331
5599
  .then((request) => request(this.axios, this.basePath));
5332
5600
  }
5333
5601
  /**
5334
- * Get a list of all artists including their published collections. By default, each user has a limit of 60 requests per minute.
5602
+ * 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
5603
  * @summary Get all artists
5336
5604
  * @param {string} includeArtworks
5337
5605
  * @param {string} [includeOriginalSongs]
5338
5606
  * @param {string} [includeFullResArtworks]
5339
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
5340
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
5607
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
5608
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
5609
+ * @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
5610
  * @param {*} [options] Override http request option.
5342
5611
  * @throws {RequiredError}
5343
5612
  * @memberof SureelApi
5344
5613
  */
5345
- getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
5614
+ getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
5346
5615
  return SureelApiFp(this.configuration)
5347
- .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
5616
+ .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options)
5348
5617
  .then((request) => request(this.axios, this.basePath));
5349
5618
  }
5350
5619
  /**
@@ -5371,19 +5640,21 @@ export class SureelApi extends BaseAPI {
5371
5640
  * @param {string} username
5372
5641
  * @param {string} [includeOriginalSongs]
5373
5642
  * @param {string} [includeFullResArtworks]
5374
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
5375
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
5643
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
5644
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
5376
5645
  * @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.
5646
+ * @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.
5647
+ * @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.
5648
+ * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
5649
+ * @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \&#39;album,single\&#39;). 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 (\&quot;audio collection\&quot;, \&quot;image collection\&quot;, \&quot;video collection\&quot;) are derived at read time from a collection\&#39;s assets and are not filterable yet: asking for one matches nothing.
5650
+ * @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
5380
5651
  * @param {*} [options] Override http request option.
5381
5652
  * @throws {RequiredError}
5382
5653
  * @memberof SureelApi
5383
5654
  */
5384
- getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
5655
+ getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
5385
5656
  return SureelApiFp(this.configuration)
5386
- .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
5657
+ .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
5387
5658
  .then((request) => request(this.axios, this.basePath));
5388
5659
  }
5389
5660
  /**
@@ -5454,22 +5725,24 @@ export class SureelApi extends BaseAPI {
5454
5725
  .then((request) => request(this.axios, this.basePath));
5455
5726
  }
5456
5727
  /**
5457
- * This endpoint returns the label profile data and the artist profile data for all artists that are associated with the label.
5728
+ * 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
5729
  * @summary Get profile data by label name
5459
5730
  * @param {string} labelName
5460
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of artists to return per page.
5461
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
5731
+ * @param {number} [take] The &#x60;take&#x60; 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.
5732
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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.
5733
+ * @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 &#x60;cursor&#x60; may only be carried between requests that agree on whether &#x60;search&#x60; 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.
5734
+ * @param {string} [signedLabel] Narrow the roster to parties signed to this label, matched exactly against their &#x60;signed_labels&#x60;; the company\&#39;s &#x60;sub_labels&#x60; are the values it holds. Combines with &#x60;search&#x60;, &#x60;roles&#x60; and &#x60;include_hidden&#x60;, and never reaches past the company\&#39;s own roster. Served from the profile index like &#x60;search&#x60;, with the same 503 while that index is unavailable and the same cursor format: a &#x60;cursor&#x60; may only be carried between requests that agree on whether either parameter is set.
5462
5735
  * @param {boolean} [includeNilv] When true, each roster artist carries a &#x60;nilv&#x60; 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 &#x60;take&#x60; of at most 100, because the summary costs one read per artist.
5463
5736
  * @param {boolean} [includeMusicConsent] When true, each roster artist carries a &#x60;music_consent&#x60; summary of their music consent record, the track-level twin of &#x60;nilv&#x60;. Same boundary and the same explicit &#x60;take&#x60; requirement, because the summary costs one read per artist.
5464
5737
  * @param {boolean} [includeHidden] When true, roster artists that are not shown in the frontend are included, each carrying &#x60;show_in_frontend&#x60;. 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\&#39;s customer_name, songwriters through its publisher_name; singer-songwriters appear 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.
5738
+ * @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\&#39;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
5739
  * @param {*} [options] Override http request option.
5467
5740
  * @throws {RequiredError}
5468
5741
  * @memberof SureelApi
5469
5742
  */
5470
- getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
5743
+ getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
5471
5744
  return SureelApiFp(this.configuration)
5472
- .getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options)
5745
+ .getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options)
5473
5746
  .then((request) => request(this.axios, this.basePath));
5474
5747
  }
5475
5748
  /**
@@ -5499,6 +5772,37 @@ export class SureelApi extends BaseAPI {
5499
5772
  .getMusicConsentByUsername(username, version, options)
5500
5773
  .then((request) => request(this.axios, this.basePath));
5501
5774
  }
5775
+ /**
5776
+ * 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.
5777
+ * @summary Get a small WebP preview of an ingested NILV image
5778
+ * @param {string} assetId The id of a reference image or brand mark in the record.
5779
+ * @param {NilAssetThumbnailSize} [size]
5780
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
5781
+ * @param {*} [options] Override http request option.
5782
+ * @throws {RequiredError}
5783
+ * @memberof SureelApi
5784
+ */
5785
+ getNilAssetThumbnail(assetId, size, v, options) {
5786
+ return SureelApiFp(this.configuration)
5787
+ .getNilAssetThumbnail(assetId, size, v, options)
5788
+ .then((request) => request(this.axios, this.basePath));
5789
+ }
5790
+ /**
5791
+ * 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.
5792
+ * @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
5793
+ * @param {string} username The artist whose settings are being addressed.
5794
+ * @param {string} assetId The id of a reference image or brand mark in the record.
5795
+ * @param {NilAssetThumbnailSize} [size]
5796
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
5797
+ * @param {*} [options] Override http request option.
5798
+ * @throws {RequiredError}
5799
+ * @memberof SureelApi
5800
+ */
5801
+ getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
5802
+ return SureelApiFp(this.configuration)
5803
+ .getNilAssetThumbnailByUsername(username, assetId, size, v, options)
5804
+ .then((request) => request(this.axios, this.basePath));
5805
+ }
5502
5806
  /**
5503
5807
  * Answers 404 for an unknown request and for one belonging to another artist, identically.
5504
5808
  * @summary Check how ingestion of a settings submission\'s assets is going
@@ -5532,19 +5836,21 @@ export class SureelApi extends BaseAPI {
5532
5836
  * @param {string} includeArtworks
5533
5837
  * @param {string} [includeOriginalSongs]
5534
5838
  * @param {string} [includeFullResArtworks]
5535
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
5536
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
5839
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
5840
+ * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; 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 &#x60;sort_by&#x60;, &#x60;collection_search_value&#x60; or &#x60;search&#x60; is refused with 400.
5537
5841
  * @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.
5842
+ * @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.
5843
+ * @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.
5844
+ * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
5845
+ * @param {string} [releaseType] Filter collections by release type. Supports comma-separated values for multiple types (e.g. \&#39;album,single\&#39;). 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 (\&quot;audio collection\&quot;, \&quot;image collection\&quot;, \&quot;video collection\&quot;) are derived at read time from a collection\&#39;s assets and are not filterable yet: asking for one matches nothing.
5846
+ * @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
5541
5847
  * @param {*} [options] Override http request option.
5542
5848
  * @throws {RequiredError}
5543
5849
  * @memberof SureelApi
5544
5850
  */
5545
- getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
5851
+ getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
5546
5852
  return SureelApiFp(this.configuration)
5547
- .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
5853
+ .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
5548
5854
  .then((request) => request(this.axios, this.basePath));
5549
5855
  }
5550
5856
  /**
@@ -5578,6 +5884,22 @@ export class SureelApi extends BaseAPI {
5578
5884
  .getResultByRequestId(requestId, topNAttributionResults, options)
5579
5885
  .then((request) => request(this.axios, this.basePath));
5580
5886
  }
5887
+ /**
5888
+ * 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.
5889
+ * @summary Get one artist on a label\'s roster
5890
+ * @param {string} labelName
5891
+ * @param {string} username
5892
+ * @param {boolean} [includeNilv] When true, the artist carries the same &#x60;nilv&#x60; summary a roster page gives each artist.
5893
+ * @param {boolean} [includeMusicConsent] When true, the artist carries the same &#x60;music_consent&#x60; summary a roster page gives each artist.
5894
+ * @param {*} [options] Override http request option.
5895
+ * @throws {RequiredError}
5896
+ * @memberof SureelApi
5897
+ */
5898
+ getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
5899
+ return SureelApiFp(this.configuration)
5900
+ .getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options)
5901
+ .then((request) => request(this.axios, this.basePath));
5902
+ }
5581
5903
  /**
5582
5904
  * Get the style preset parameters for ldm.
5583
5905
  * @summary Style presets for ldm
@@ -5932,7 +6254,7 @@ export class SureelApi extends BaseAPI {
5932
6254
  .then((request) => request(this.axios, this.basePath));
5933
6255
  }
5934
6256
  /**
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.
6257
+ * Upload audio, image, video, metadata, or archive files as form-data for use with other endpoints. Allowed file extensions: - Audio: .wav, .mp3, .m4a, .flac, .aiff, .aif, .wma - 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
6258
  * @summary Upload files as form-data
5937
6259
  * @param {UploadFilesContentTypeEnum} contentType
5938
6260
  * @param {string} contentType2
@@ -6087,6 +6409,13 @@ export const GetArtistByUsernameSortByEnum = {
6087
6409
  ReleaseDate: "release_date",
6088
6410
  CollectionName: "collection_name",
6089
6411
  NumberOfAssets: "number_of_assets",
6412
+ CreatedAt: "created_at",
6413
+ UpdatedAt: "updated_at",
6414
+ Upc: "upc",
6415
+ Styles: "styles",
6416
+ AiCompanyNotificationsNotificationsStatus: "ai_company_notifications.notifications_status",
6417
+ AiCompanyNotificationsNumberOfContactedAiCompanies: "ai_company_notifications.number_of_contacted_ai_companies",
6418
+ UseForTrainingTimestamp: "use_for_training_timestamp",
6090
6419
  };
6091
6420
  /**
6092
6421
  * @export
@@ -6095,6 +6424,13 @@ export const GetArtistByUsernameSortOrderEnum = {
6095
6424
  Asc: "asc",
6096
6425
  Desc: "desc",
6097
6426
  };
6427
+ /**
6428
+ * @export
6429
+ */
6430
+ export const GetArtistByUsernameUseForTrainingEnum = {
6431
+ True: "true",
6432
+ False: "false",
6433
+ };
6098
6434
  /**
6099
6435
  * @export
6100
6436
  */
@@ -6108,6 +6444,13 @@ export const GetOwnCollectionsSortByEnum = {
6108
6444
  ReleaseDate: "release_date",
6109
6445
  CollectionName: "collection_name",
6110
6446
  NumberOfAssets: "number_of_assets",
6447
+ CreatedAt: "created_at",
6448
+ UpdatedAt: "updated_at",
6449
+ Upc: "upc",
6450
+ Styles: "styles",
6451
+ AiCompanyNotificationsNotificationsStatus: "ai_company_notifications.notifications_status",
6452
+ AiCompanyNotificationsNumberOfContactedAiCompanies: "ai_company_notifications.number_of_contacted_ai_companies",
6453
+ UseForTrainingTimestamp: "use_for_training_timestamp",
6111
6454
  };
6112
6455
  /**
6113
6456
  * @export
@@ -6116,6 +6459,13 @@ export const GetOwnCollectionsSortOrderEnum = {
6116
6459
  Asc: "asc",
6117
6460
  Desc: "desc",
6118
6461
  };
6462
+ /**
6463
+ * @export
6464
+ */
6465
+ export const GetOwnCollectionsUseForTrainingEnum = {
6466
+ True: "true",
6467
+ False: "false",
6468
+ };
6119
6469
  /**
6120
6470
  * @export
6121
6471
  */