@sureel/sdk 1.17.0 → 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
package/api/sureel-api.js CHANGED
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.UpscaleImageContentTypeEnum = exports.UploadFilesContentTypeEnum = exports.UpdateCollectionContentTypeEnum = exports.TrackTrainingArtifactsContentTypeEnum = exports.TrackInferenceArtifactsContentTypeEnum = exports.TextToAudioContentTypeEnum = exports.TextToArtistAudioContentTypeEnum = exports.StyleTransferContentTypeEnum = exports.StemSplitContentTypeEnum = exports.SongAnalysisContentTypeEnum = exports.SimilarSongFinderContentTypeEnum = exports.SetFilepathsContentTypeEnum = exports.RemoveBackgroundContentTypeEnum = exports.ReimagineContentTypeEnum = exports.OptOutAnalysisContentTypeEnum = exports.LyricsAnalysisContentTypeEnum = exports.InpaintContentTypeEnum = exports.ImageBlendingContentTypeEnum = exports.ImageAttributionAnalysisContentTypeEnum = exports.GetOwnCollectionsSortOrderEnum = exports.GetOwnCollectionsSortByEnum = exports.GetOwnCollectionsCollectionSearchFieldEnum = exports.GetArtistByUsernameSortOrderEnum = exports.GetArtistByUsernameSortByEnum = exports.GetArtistByUsernameCollectionSearchFieldEnum = exports.GeneratePutUploadUrlsContentTypeEnum = exports.GeneratePreviewContentTypeEnum = exports.FinetuneModelContentTypeEnum = exports.FaceSwapContentTypeEnum = exports.CreateCoverArtContentTypeEnum = exports.CreateCollectionFromDdexContentTypeEnum = exports.CreateCollectionContentTypeEnum = exports.ControlNetContentTypeEnum = exports.CalculateAttributionContentTypeEnum = exports.AvatarImageBlendingContentTypeEnum = exports.AudioToAudioContentTypeEnum = exports.AudioMetadataExtractionContentTypeEnum = exports.AudioAttributionSetupContentTypeEnum = exports.AudioAttributionAnalysisContentTypeEnum = exports.AttributionSetupContentTypeEnum = exports.AttributionCalculationContentTypeEnum = exports.ApplyWatermarkContentTypeEnum = exports.AiDetectionContentTypeEnum = exports.AccidentalInfringementCheckContentTypeEnum = exports.SureelApi = exports.SureelApiFactory = exports.SureelApiFp = exports.SureelApiAxiosParamCreator = void 0;
19
+ exports.UpscaleImageContentTypeEnum = exports.UploadFilesContentTypeEnum = exports.UpdateCollectionContentTypeEnum = exports.TrackTrainingArtifactsContentTypeEnum = exports.TrackInferenceArtifactsContentTypeEnum = exports.TextToAudioContentTypeEnum = exports.TextToArtistAudioContentTypeEnum = exports.StyleTransferContentTypeEnum = exports.StemSplitContentTypeEnum = exports.SongAnalysisContentTypeEnum = exports.SimilarSongFinderContentTypeEnum = exports.SetFilepathsContentTypeEnum = exports.RemoveBackgroundContentTypeEnum = exports.ReimagineContentTypeEnum = exports.OptOutAnalysisContentTypeEnum = exports.LyricsAnalysisContentTypeEnum = exports.InpaintContentTypeEnum = exports.ImageBlendingContentTypeEnum = exports.ImageAttributionAnalysisContentTypeEnum = exports.GetOwnCollectionsUseForTrainingEnum = exports.GetOwnCollectionsSortOrderEnum = exports.GetOwnCollectionsSortByEnum = exports.GetOwnCollectionsCollectionSearchFieldEnum = exports.GetArtistByUsernameUseForTrainingEnum = exports.GetArtistByUsernameSortOrderEnum = exports.GetArtistByUsernameSortByEnum = exports.GetArtistByUsernameCollectionSearchFieldEnum = exports.GeneratePutUploadUrlsContentTypeEnum = exports.GeneratePreviewContentTypeEnum = exports.FinetuneModelContentTypeEnum = exports.FaceSwapContentTypeEnum = exports.CreateCoverArtContentTypeEnum = exports.CreateCollectionFromDdexContentTypeEnum = exports.CreateCollectionContentTypeEnum = exports.ControlNetContentTypeEnum = exports.CalculateAttributionContentTypeEnum = exports.AvatarImageBlendingContentTypeEnum = exports.AudioToAudioContentTypeEnum = exports.AudioMetadataExtractionContentTypeEnum = exports.AudioAttributionSetupContentTypeEnum = exports.AudioAttributionAnalysisContentTypeEnum = exports.AttributionSetupContentTypeEnum = exports.AttributionCalculationContentTypeEnum = exports.ApplyWatermarkContentTypeEnum = exports.AiDetectionContentTypeEnum = exports.AccidentalInfringementCheckContentTypeEnum = exports.SureelApi = exports.SureelApiFactory = exports.SureelApiFp = exports.SureelApiAxiosParamCreator = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  // Some imports not used depending on template conditions
22
22
  // @ts-ignore
@@ -1002,7 +1002,7 @@ const SureelApiAxiosParamCreator = function (configuration) {
1002
1002
  },
1003
1003
  /**
1004
1004
  * Returns the signed url for the given filenames.
1005
- * @summary Generate signed URLs to put files to S3
1005
+ * @summary Generate signed URLs to upload files to cloud storage
1006
1006
  * @param {GeneratePutUploadUrlsContentTypeEnum} contentType
1007
1007
  * @param {UploadUrlRequest} uploadUrlRequest
1008
1008
  * @param {*} [options] Override http request option.
@@ -1108,17 +1108,18 @@ const SureelApiAxiosParamCreator = function (configuration) {
1108
1108
  };
1109
1109
  },
1110
1110
  /**
1111
- * Get a list of all artists including their published collections. By default, each user has a limit of 60 requests per minute.
1111
+ * 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.
1112
1112
  * @summary Get all artists
1113
1113
  * @param {string} includeArtworks
1114
1114
  * @param {string} [includeOriginalSongs]
1115
1115
  * @param {string} [includeFullResArtworks]
1116
- * @param {number} [take] The `take` parameter is the number of collections to return per page.
1117
- * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
1116
+ * @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
1117
+ * @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.
1118
+ * @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.
1118
1119
  * @param {*} [options] Override http request option.
1119
1120
  * @throws {RequiredError}
1120
1121
  */
1121
- getAllArtists: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options = {}) => {
1122
+ getAllArtists: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options = {}) => {
1122
1123
  // verify required parameter 'includeArtworks' is not null or undefined
1123
1124
  (0, common_1.assertParamExists)("getAllArtists", "includeArtworks", includeArtworks);
1124
1125
  const localVarPath = `/v1/ai/artist/`;
@@ -1148,6 +1149,9 @@ const SureelApiAxiosParamCreator = function (configuration) {
1148
1149
  if (cursor !== undefined) {
1149
1150
  localVarQueryParameter["cursor"] = cursor;
1150
1151
  }
1152
+ if (search !== undefined) {
1153
+ localVarQueryParameter["search"] = search;
1154
+ }
1151
1155
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1152
1156
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1153
1157
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1216,16 +1220,18 @@ const SureelApiAxiosParamCreator = function (configuration) {
1216
1220
  * @param {string} username
1217
1221
  * @param {string} [includeOriginalSongs]
1218
1222
  * @param {string} [includeFullResArtworks]
1219
- * @param {number} [take] The `take` parameter is the number of collections to return per page.
1220
- * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
1223
+ * @param {number} [take] The `take` parameter is the number of items to return per page. Defaults to 20, at most 100.
1224
+ * @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.
1221
1225
  * @param {GetArtistByUsernameCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
1222
- * @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
1223
- * @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria.
1224
- * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order.
1226
+ * @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.
1227
+ * @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.
1228
+ * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
1229
+ * @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.
1230
+ * @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their `use_for_training` flag.
1225
1231
  * @param {*} [options] Override http request option.
1226
1232
  * @throws {RequiredError}
1227
1233
  */
1228
- getArtistByUsername: async (includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options = {}) => {
1234
+ getArtistByUsername: async (includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options = {}) => {
1229
1235
  // verify required parameter 'includeArtworks' is not null or undefined
1230
1236
  (0, common_1.assertParamExists)("getArtistByUsername", "includeArtworks", includeArtworks);
1231
1237
  // verify required parameter 'username' is not null or undefined
@@ -1271,6 +1277,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
1271
1277
  if (sortOrder !== undefined) {
1272
1278
  localVarQueryParameter["sort_order"] = sortOrder;
1273
1279
  }
1280
+ if (releaseType !== undefined) {
1281
+ localVarQueryParameter["release_type"] = releaseType;
1282
+ }
1283
+ if (useForTraining !== undefined) {
1284
+ localVarQueryParameter["use_for_training"] = useForTraining;
1285
+ }
1274
1286
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1275
1287
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1276
1288
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1448,19 +1460,21 @@ const SureelApiAxiosParamCreator = function (configuration) {
1448
1460
  };
1449
1461
  },
1450
1462
  /**
1451
- * This endpoint returns the label profile data and the artist profile data for all artists that are associated with the label.
1463
+ * 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.
1452
1464
  * @summary Get profile data by label name
1453
1465
  * @param {string} labelName
1454
- * @param {number} [take] The `take` parameter is the number of artists to return per page.
1455
- * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
1466
+ * @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.
1467
+ * @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.
1468
+ * @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.
1469
+ * @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.
1456
1470
  * @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.
1457
1471
  * @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.
1458
1472
  * @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.
1459
- * @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.
1473
+ * @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.
1460
1474
  * @param {*} [options] Override http request option.
1461
1475
  * @throws {RequiredError}
1462
1476
  */
1463
- getCustomerData: async (labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options = {}) => {
1477
+ getCustomerData: async (labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options = {}) => {
1464
1478
  // verify required parameter 'labelName' is not null or undefined
1465
1479
  (0, common_1.assertParamExists)("getCustomerData", "labelName", labelName);
1466
1480
  const localVarPath = `/v1/ai/record-label/{labelName}`.replace(`{${"labelName"}}`, encodeURIComponent(String(labelName)));
@@ -1482,6 +1496,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
1482
1496
  if (cursor !== undefined) {
1483
1497
  localVarQueryParameter["cursor"] = cursor;
1484
1498
  }
1499
+ if (search !== undefined) {
1500
+ localVarQueryParameter["search"] = search;
1501
+ }
1502
+ if (signedLabel !== undefined) {
1503
+ localVarQueryParameter["signed_label"] = signedLabel;
1504
+ }
1485
1505
  if (includeNilv !== undefined) {
1486
1506
  localVarQueryParameter["include_nilv"] = includeNilv;
1487
1507
  }
@@ -1570,6 +1590,93 @@ const SureelApiAxiosParamCreator = function (configuration) {
1570
1590
  options: localVarRequestOptions,
1571
1591
  };
1572
1592
  },
1593
+ /**
1594
+ * 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.
1595
+ * @summary Get a small WebP preview of an ingested NILV image
1596
+ * @param {string} assetId The id of a reference image or brand mark in the record.
1597
+ * @param {NilAssetThumbnailSize} [size]
1598
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
1599
+ * @param {*} [options] Override http request option.
1600
+ * @throws {RequiredError}
1601
+ */
1602
+ getNilAssetThumbnail: async (assetId, size, v, options = {}) => {
1603
+ // verify required parameter 'assetId' is not null or undefined
1604
+ (0, common_1.assertParamExists)("getNilAssetThumbnail", "assetId", assetId);
1605
+ const localVarPath = `/v1/ai/artist/settings/assets/{assetId}/thumbnail`.replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
1606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1607
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1608
+ let baseOptions;
1609
+ if (configuration) {
1610
+ baseOptions = configuration.baseOptions;
1611
+ }
1612
+ const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options);
1613
+ const localVarHeaderParameter = {};
1614
+ const localVarQueryParameter = {};
1615
+ // authentication OAuth2 required
1616
+ // oauth required
1617
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
1618
+ if (size !== undefined) {
1619
+ for (const [key, value] of Object.entries(size)) {
1620
+ localVarQueryParameter[key] = value;
1621
+ }
1622
+ }
1623
+ if (v !== undefined) {
1624
+ localVarQueryParameter["v"] = v;
1625
+ }
1626
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1627
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1628
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1629
+ return {
1630
+ url: (0, common_1.toPathString)(localVarUrlObj),
1631
+ options: localVarRequestOptions,
1632
+ };
1633
+ },
1634
+ /**
1635
+ * 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.
1636
+ * @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
1637
+ * @param {string} username The artist whose settings are being addressed.
1638
+ * @param {string} assetId The id of a reference image or brand mark in the record.
1639
+ * @param {NilAssetThumbnailSize} [size]
1640
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
1641
+ * @param {*} [options] Override http request option.
1642
+ * @throws {RequiredError}
1643
+ */
1644
+ getNilAssetThumbnailByUsername: async (username, assetId, size, v, options = {}) => {
1645
+ // verify required parameter 'username' is not null or undefined
1646
+ (0, common_1.assertParamExists)("getNilAssetThumbnailByUsername", "username", username);
1647
+ // verify required parameter 'assetId' is not null or undefined
1648
+ (0, common_1.assertParamExists)("getNilAssetThumbnailByUsername", "assetId", assetId);
1649
+ const localVarPath = `/v1/ai/artist/{username}/settings/assets/{assetId}/thumbnail`
1650
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
1651
+ .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
1652
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1653
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1654
+ let baseOptions;
1655
+ if (configuration) {
1656
+ baseOptions = configuration.baseOptions;
1657
+ }
1658
+ const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options);
1659
+ const localVarHeaderParameter = {};
1660
+ const localVarQueryParameter = {};
1661
+ // authentication OAuth2 required
1662
+ // oauth required
1663
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
1664
+ if (size !== undefined) {
1665
+ for (const [key, value] of Object.entries(size)) {
1666
+ localVarQueryParameter[key] = value;
1667
+ }
1668
+ }
1669
+ if (v !== undefined) {
1670
+ localVarQueryParameter["v"] = v;
1671
+ }
1672
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1673
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1674
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1675
+ return {
1676
+ url: (0, common_1.toPathString)(localVarUrlObj),
1677
+ options: localVarRequestOptions,
1678
+ };
1679
+ },
1573
1680
  /**
1574
1681
  * Answers 404 for an unknown request and for one belonging to another artist, identically.
1575
1682
  * @summary Check how ingestion of a settings submission\'s assets is going
@@ -1645,16 +1752,18 @@ const SureelApiAxiosParamCreator = function (configuration) {
1645
1752
  * @param {string} includeArtworks
1646
1753
  * @param {string} [includeOriginalSongs]
1647
1754
  * @param {string} [includeFullResArtworks]
1648
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
1649
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
1755
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
1756
+ * @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.
1650
1757
  * @param {GetOwnCollectionsCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
1651
- * @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
1652
- * @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria.
1653
- * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order.
1758
+ * @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.
1759
+ * @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.
1760
+ * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
1761
+ * @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.
1762
+ * @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
1654
1763
  * @param {*} [options] Override http request option.
1655
1764
  * @throws {RequiredError}
1656
1765
  */
1657
- getOwnCollections: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options = {}) => {
1766
+ getOwnCollections: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options = {}) => {
1658
1767
  // verify required parameter 'includeArtworks' is not null or undefined
1659
1768
  (0, common_1.assertParamExists)("getOwnCollections", "includeArtworks", includeArtworks);
1660
1769
  const localVarPath = `/v1/ai/artist/collections`;
@@ -1701,6 +1810,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
1701
1810
  if (sortOrder !== undefined) {
1702
1811
  localVarQueryParameter["sort_order"] = sortOrder;
1703
1812
  }
1813
+ if (releaseType !== undefined) {
1814
+ localVarQueryParameter["release_type"] = releaseType;
1815
+ }
1816
+ if (useForTraining !== undefined) {
1817
+ localVarQueryParameter["use_for_training"] = useForTraining;
1818
+ }
1704
1819
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1705
1820
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1706
1821
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1798,6 +1913,51 @@ const SureelApiAxiosParamCreator = function (configuration) {
1798
1913
  options: localVarRequestOptions,
1799
1914
  };
1800
1915
  },
1916
+ /**
1917
+ * 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.
1918
+ * @summary Get one artist on a label\'s roster
1919
+ * @param {string} labelName
1920
+ * @param {string} username
1921
+ * @param {boolean} [includeNilv] When true, the artist carries the same &#x60;nilv&#x60; summary a roster page gives each artist.
1922
+ * @param {boolean} [includeMusicConsent] When true, the artist carries the same &#x60;music_consent&#x60; summary a roster page gives each artist.
1923
+ * @param {*} [options] Override http request option.
1924
+ * @throws {RequiredError}
1925
+ */
1926
+ getRosterArtist: async (labelName, username, includeNilv, includeMusicConsent, options = {}) => {
1927
+ // verify required parameter 'labelName' is not null or undefined
1928
+ (0, common_1.assertParamExists)("getRosterArtist", "labelName", labelName);
1929
+ // verify required parameter 'username' is not null or undefined
1930
+ (0, common_1.assertParamExists)("getRosterArtist", "username", username);
1931
+ const localVarPath = `/v1/ai/record-label/{labelName}/roster/{username}`
1932
+ .replace(`{${"labelName"}}`, encodeURIComponent(String(labelName)))
1933
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
1934
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1935
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1936
+ let baseOptions;
1937
+ if (configuration) {
1938
+ baseOptions = configuration.baseOptions;
1939
+ }
1940
+ const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options);
1941
+ const localVarHeaderParameter = {};
1942
+ const localVarQueryParameter = {};
1943
+ // authentication OAuth2 required
1944
+ // oauth required
1945
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
1946
+ if (includeNilv !== undefined) {
1947
+ localVarQueryParameter["include_nilv"] = includeNilv;
1948
+ }
1949
+ if (includeMusicConsent !== undefined) {
1950
+ localVarQueryParameter["include_music_consent"] =
1951
+ includeMusicConsent;
1952
+ }
1953
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1955
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1956
+ return {
1957
+ url: (0, common_1.toPathString)(localVarUrlObj),
1958
+ options: localVarRequestOptions,
1959
+ };
1960
+ },
1801
1961
  /**
1802
1962
  * Get the style preset parameters for ldm.
1803
1963
  * @summary Style presets for ldm
@@ -2773,7 +2933,7 @@ const SureelApiAxiosParamCreator = function (configuration) {
2773
2933
  };
2774
2934
  },
2775
2935
  /**
2776
- * 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.
2936
+ * 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.
2777
2937
  * @summary Upload files as form-data
2778
2938
  * @param {UploadFilesContentTypeEnum} contentType
2779
2939
  * @param {string} contentType2
@@ -3248,7 +3408,7 @@ const SureelApiFp = function (configuration) {
3248
3408
  },
3249
3409
  /**
3250
3410
  * Returns the signed url for the given filenames.
3251
- * @summary Generate signed URLs to put files to S3
3411
+ * @summary Generate signed URLs to upload files to cloud storage
3252
3412
  * @param {GeneratePutUploadUrlsContentTypeEnum} contentType
3253
3413
  * @param {UploadUrlRequest} uploadUrlRequest
3254
3414
  * @param {*} [options] Override http request option.
@@ -3291,19 +3451,20 @@ const SureelApiFp = function (configuration) {
3291
3451
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3292
3452
  },
3293
3453
  /**
3294
- * Get a list of all artists including their published collections. By default, each user has a limit of 60 requests per minute.
3454
+ * 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.
3295
3455
  * @summary Get all artists
3296
3456
  * @param {string} includeArtworks
3297
3457
  * @param {string} [includeOriginalSongs]
3298
3458
  * @param {string} [includeFullResArtworks]
3299
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
3300
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
3459
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
3460
+ * @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.
3461
+ * @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.
3301
3462
  * @param {*} [options] Override http request option.
3302
3463
  * @throws {RequiredError}
3303
3464
  */
3304
- async getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
3465
+ async getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
3305
3466
  var _a, _b, _c;
3306
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options);
3467
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options);
3307
3468
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3308
3469
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getAllArtists"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3309
3470
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3333,18 +3494,20 @@ const SureelApiFp = function (configuration) {
3333
3494
  * @param {string} username
3334
3495
  * @param {string} [includeOriginalSongs]
3335
3496
  * @param {string} [includeFullResArtworks]
3336
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
3337
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
3497
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
3498
+ * @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.
3338
3499
  * @param {GetArtistByUsernameCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
3339
- * @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
3340
- * @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria.
3341
- * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order.
3500
+ * @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.
3501
+ * @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.
3502
+ * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
3503
+ * @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.
3504
+ * @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
3342
3505
  * @param {*} [options] Override http request option.
3343
3506
  * @throws {RequiredError}
3344
3507
  */
3345
- async getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
3508
+ async getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
3346
3509
  var _a, _b, _c;
3347
- const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options);
3510
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options);
3348
3511
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3349
3512
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getArtistByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3350
3513
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3422,21 +3585,23 @@ const SureelApiFp = function (configuration) {
3422
3585
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3423
3586
  },
3424
3587
  /**
3425
- * This endpoint returns the label profile data and the artist profile data for all artists that are associated with the label.
3588
+ * 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.
3426
3589
  * @summary Get profile data by label name
3427
3590
  * @param {string} labelName
3428
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of artists to return per page.
3429
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
3591
+ * @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.
3592
+ * @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.
3593
+ * @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.
3594
+ * @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.
3430
3595
  * @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.
3431
3596
  * @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.
3432
3597
  * @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.
3433
- * @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.
3598
+ * @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.
3434
3599
  * @param {*} [options] Override http request option.
3435
3600
  * @throws {RequiredError}
3436
3601
  */
3437
- async getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
3602
+ async getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
3438
3603
  var _a, _b, _c;
3439
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options);
3604
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options);
3440
3605
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3441
3606
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getCustomerData"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3442
3607
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3470,6 +3635,39 @@ const SureelApiFp = function (configuration) {
3470
3635
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getMusicConsentByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3471
3636
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3472
3637
  },
3638
+ /**
3639
+ * 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.
3640
+ * @summary Get a small WebP preview of an ingested NILV image
3641
+ * @param {string} assetId The id of a reference image or brand mark in the record.
3642
+ * @param {NilAssetThumbnailSize} [size]
3643
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
3644
+ * @param {*} [options] Override http request option.
3645
+ * @throws {RequiredError}
3646
+ */
3647
+ async getNilAssetThumbnail(assetId, size, v, options) {
3648
+ var _a, _b, _c;
3649
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNilAssetThumbnail(assetId, size, v, options);
3650
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3651
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getNilAssetThumbnail"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3652
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3653
+ },
3654
+ /**
3655
+ * 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.
3656
+ * @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
3657
+ * @param {string} username The artist whose settings are being addressed.
3658
+ * @param {string} assetId The id of a reference image or brand mark in the record.
3659
+ * @param {NilAssetThumbnailSize} [size]
3660
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
3661
+ * @param {*} [options] Override http request option.
3662
+ * @throws {RequiredError}
3663
+ */
3664
+ async getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
3665
+ var _a, _b, _c;
3666
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNilAssetThumbnailByUsername(username, assetId, size, v, options);
3667
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3668
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getNilAssetThumbnailByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3669
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3670
+ },
3473
3671
  /**
3474
3672
  * Answers 404 for an unknown request and for one belonging to another artist, identically.
3475
3673
  * @summary Check how ingestion of a settings submission\'s assets is going
@@ -3505,18 +3703,20 @@ const SureelApiFp = function (configuration) {
3505
3703
  * @param {string} includeArtworks
3506
3704
  * @param {string} [includeOriginalSongs]
3507
3705
  * @param {string} [includeFullResArtworks]
3508
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
3509
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
3706
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
3707
+ * @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.
3510
3708
  * @param {GetOwnCollectionsCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
3511
- * @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
3512
- * @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria.
3513
- * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order.
3709
+ * @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.
3710
+ * @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.
3711
+ * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
3712
+ * @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.
3713
+ * @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
3514
3714
  * @param {*} [options] Override http request option.
3515
3715
  * @throws {RequiredError}
3516
3716
  */
3517
- async getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
3717
+ async getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
3518
3718
  var _a, _b, _c;
3519
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options);
3719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options);
3520
3720
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3521
3721
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getOwnCollections"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3522
3722
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3554,6 +3754,23 @@ const SureelApiFp = function (configuration) {
3554
3754
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getResultByRequestId"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3555
3755
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3556
3756
  },
3757
+ /**
3758
+ * 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.
3759
+ * @summary Get one artist on a label\'s roster
3760
+ * @param {string} labelName
3761
+ * @param {string} username
3762
+ * @param {boolean} [includeNilv] When true, the artist carries the same &#x60;nilv&#x60; summary a roster page gives each artist.
3763
+ * @param {boolean} [includeMusicConsent] When true, the artist carries the same &#x60;music_consent&#x60; summary a roster page gives each artist.
3764
+ * @param {*} [options] Override http request option.
3765
+ * @throws {RequiredError}
3766
+ */
3767
+ async getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
3768
+ var _a, _b, _c;
3769
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options);
3770
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3771
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap["SureelApi.getRosterArtist"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3772
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3773
+ },
3557
3774
  /**
3558
3775
  * Get the style preset parameters for ldm.
3559
3776
  * @summary Style presets for ldm
@@ -3933,7 +4150,7 @@ const SureelApiFp = function (configuration) {
3933
4150
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3934
4151
  },
3935
4152
  /**
3936
- * 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.
4153
+ * 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.
3937
4154
  * @summary Upload files as form-data
3938
4155
  * @param {UploadFilesContentTypeEnum} contentType
3939
4156
  * @param {string} contentType2
@@ -4307,7 +4524,7 @@ const SureelApiFactory = function (configuration, basePath, axios) {
4307
4524
  },
4308
4525
  /**
4309
4526
  * Returns the signed url for the given filenames.
4310
- * @summary Generate signed URLs to put files to S3
4527
+ * @summary Generate signed URLs to upload files to cloud storage
4311
4528
  * @param {GeneratePutUploadUrlsContentTypeEnum} contentType
4312
4529
  * @param {UploadUrlRequest} uploadUrlRequest
4313
4530
  * @param {*} [options] Override http request option.
@@ -4344,19 +4561,20 @@ const SureelApiFactory = function (configuration, basePath, axios) {
4344
4561
  .then((request) => request(axios, basePath));
4345
4562
  },
4346
4563
  /**
4347
- * Get a list of all artists including their published collections. By default, each user has a limit of 60 requests per minute.
4564
+ * 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.
4348
4565
  * @summary Get all artists
4349
4566
  * @param {string} includeArtworks
4350
4567
  * @param {string} [includeOriginalSongs]
4351
4568
  * @param {string} [includeFullResArtworks]
4352
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
4353
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
4569
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
4570
+ * @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.
4571
+ * @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.
4354
4572
  * @param {*} [options] Override http request option.
4355
4573
  * @throws {RequiredError}
4356
4574
  */
4357
- getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
4575
+ getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
4358
4576
  return localVarFp
4359
- .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
4577
+ .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options)
4360
4578
  .then((request) => request(axios, basePath));
4361
4579
  },
4362
4580
  /**
@@ -4382,18 +4600,20 @@ const SureelApiFactory = function (configuration, basePath, axios) {
4382
4600
  * @param {string} username
4383
4601
  * @param {string} [includeOriginalSongs]
4384
4602
  * @param {string} [includeFullResArtworks]
4385
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
4386
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
4603
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
4604
+ * @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.
4387
4605
  * @param {GetArtistByUsernameCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
4388
- * @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
4389
- * @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria.
4390
- * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order.
4606
+ * @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.
4607
+ * @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.
4608
+ * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
4609
+ * @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.
4610
+ * @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
4391
4611
  * @param {*} [options] Override http request option.
4392
4612
  * @throws {RequiredError}
4393
4613
  */
4394
- getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
4614
+ getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
4395
4615
  return localVarFp
4396
- .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
4616
+ .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
4397
4617
  .then((request) => request(axios, basePath));
4398
4618
  },
4399
4619
  /**
@@ -4459,21 +4679,23 @@ const SureelApiFactory = function (configuration, basePath, axios) {
4459
4679
  .then((request) => request(axios, basePath));
4460
4680
  },
4461
4681
  /**
4462
- * This endpoint returns the label profile data and the artist profile data for all artists that are associated with the label.
4682
+ * 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.
4463
4683
  * @summary Get profile data by label name
4464
4684
  * @param {string} labelName
4465
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of artists to return per page.
4466
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
4685
+ * @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.
4686
+ * @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.
4687
+ * @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.
4688
+ * @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.
4467
4689
  * @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.
4468
4690
  * @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.
4469
4691
  * @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.
4470
- * @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.
4692
+ * @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.
4471
4693
  * @param {*} [options] Override http request option.
4472
4694
  * @throws {RequiredError}
4473
4695
  */
4474
- getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
4696
+ getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
4475
4697
  return localVarFp
4476
- .getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options)
4698
+ .getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options)
4477
4699
  .then((request) => request(axios, basePath));
4478
4700
  },
4479
4701
  /**
@@ -4501,6 +4723,35 @@ const SureelApiFactory = function (configuration, basePath, axios) {
4501
4723
  .getMusicConsentByUsername(username, version, options)
4502
4724
  .then((request) => request(axios, basePath));
4503
4725
  },
4726
+ /**
4727
+ * 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.
4728
+ * @summary Get a small WebP preview of an ingested NILV image
4729
+ * @param {string} assetId The id of a reference image or brand mark in the record.
4730
+ * @param {NilAssetThumbnailSize} [size]
4731
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
4732
+ * @param {*} [options] Override http request option.
4733
+ * @throws {RequiredError}
4734
+ */
4735
+ getNilAssetThumbnail(assetId, size, v, options) {
4736
+ return localVarFp
4737
+ .getNilAssetThumbnail(assetId, size, v, options)
4738
+ .then((request) => request(axios, basePath));
4739
+ },
4740
+ /**
4741
+ * 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.
4742
+ * @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
4743
+ * @param {string} username The artist whose settings are being addressed.
4744
+ * @param {string} assetId The id of a reference image or brand mark in the record.
4745
+ * @param {NilAssetThumbnailSize} [size]
4746
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
4747
+ * @param {*} [options] Override http request option.
4748
+ * @throws {RequiredError}
4749
+ */
4750
+ getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
4751
+ return localVarFp
4752
+ .getNilAssetThumbnailByUsername(username, assetId, size, v, options)
4753
+ .then((request) => request(axios, basePath));
4754
+ },
4504
4755
  /**
4505
4756
  * Answers 404 for an unknown request and for one belonging to another artist, identically.
4506
4757
  * @summary Check how ingestion of a settings submission\'s assets is going
@@ -4532,18 +4783,20 @@ const SureelApiFactory = function (configuration, basePath, axios) {
4532
4783
  * @param {string} includeArtworks
4533
4784
  * @param {string} [includeOriginalSongs]
4534
4785
  * @param {string} [includeFullResArtworks]
4535
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
4536
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
4786
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
4787
+ * @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.
4537
4788
  * @param {GetOwnCollectionsCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
4538
- * @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
4539
- * @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria.
4540
- * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order.
4789
+ * @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.
4790
+ * @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.
4791
+ * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
4792
+ * @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.
4793
+ * @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
4541
4794
  * @param {*} [options] Override http request option.
4542
4795
  * @throws {RequiredError}
4543
4796
  */
4544
- getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
4797
+ getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
4545
4798
  return localVarFp
4546
- .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
4799
+ .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
4547
4800
  .then((request) => request(axios, basePath));
4548
4801
  },
4549
4802
  /**
@@ -4575,6 +4828,21 @@ const SureelApiFactory = function (configuration, basePath, axios) {
4575
4828
  .getResultByRequestId(requestId, topNAttributionResults, options)
4576
4829
  .then((request) => request(axios, basePath));
4577
4830
  },
4831
+ /**
4832
+ * 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.
4833
+ * @summary Get one artist on a label\'s roster
4834
+ * @param {string} labelName
4835
+ * @param {string} username
4836
+ * @param {boolean} [includeNilv] When true, the artist carries the same &#x60;nilv&#x60; summary a roster page gives each artist.
4837
+ * @param {boolean} [includeMusicConsent] When true, the artist carries the same &#x60;music_consent&#x60; summary a roster page gives each artist.
4838
+ * @param {*} [options] Override http request option.
4839
+ * @throws {RequiredError}
4840
+ */
4841
+ getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
4842
+ return localVarFp
4843
+ .getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options)
4844
+ .then((request) => request(axios, basePath));
4845
+ },
4578
4846
  /**
4579
4847
  * Get the style preset parameters for ldm.
4580
4848
  * @summary Style presets for ldm
@@ -4904,7 +5172,7 @@ const SureelApiFactory = function (configuration, basePath, axios) {
4904
5172
  .then((request) => request(axios, basePath));
4905
5173
  },
4906
5174
  /**
4907
- * 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.
5175
+ * 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.
4908
5176
  * @summary Upload files as form-data
4909
5177
  * @param {UploadFilesContentTypeEnum} contentType
4910
5178
  * @param {string} contentType2
@@ -5300,7 +5568,7 @@ class SureelApi extends base_1.BaseAPI {
5300
5568
  }
5301
5569
  /**
5302
5570
  * Returns the signed url for the given filenames.
5303
- * @summary Generate signed URLs to put files to S3
5571
+ * @summary Generate signed URLs to upload files to cloud storage
5304
5572
  * @param {GeneratePutUploadUrlsContentTypeEnum} contentType
5305
5573
  * @param {UploadUrlRequest} uploadUrlRequest
5306
5574
  * @param {*} [options] Override http request option.
@@ -5340,20 +5608,21 @@ class SureelApi extends base_1.BaseAPI {
5340
5608
  .then((request) => request(this.axios, this.basePath));
5341
5609
  }
5342
5610
  /**
5343
- * Get a list of all artists including their published collections. By default, each user has a limit of 60 requests per minute.
5611
+ * 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.
5344
5612
  * @summary Get all artists
5345
5613
  * @param {string} includeArtworks
5346
5614
  * @param {string} [includeOriginalSongs]
5347
5615
  * @param {string} [includeFullResArtworks]
5348
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
5349
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
5616
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
5617
+ * @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.
5618
+ * @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.
5350
5619
  * @param {*} [options] Override http request option.
5351
5620
  * @throws {RequiredError}
5352
5621
  * @memberof SureelApi
5353
5622
  */
5354
- getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
5623
+ getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options) {
5355
5624
  return (0, exports.SureelApiFp)(this.configuration)
5356
- .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
5625
+ .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, search, options)
5357
5626
  .then((request) => request(this.axios, this.basePath));
5358
5627
  }
5359
5628
  /**
@@ -5380,19 +5649,21 @@ class SureelApi extends base_1.BaseAPI {
5380
5649
  * @param {string} username
5381
5650
  * @param {string} [includeOriginalSongs]
5382
5651
  * @param {string} [includeFullResArtworks]
5383
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
5384
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
5652
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
5653
+ * @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.
5385
5654
  * @param {GetArtistByUsernameCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
5386
- * @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
5387
- * @param {GetArtistByUsernameSortByEnum} [sortBy] Specifies the sorting criteria.
5388
- * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order.
5655
+ * @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.
5656
+ * @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.
5657
+ * @param {GetArtistByUsernameSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
5658
+ * @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.
5659
+ * @param {GetArtistByUsernameUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
5389
5660
  * @param {*} [options] Override http request option.
5390
5661
  * @throws {RequiredError}
5391
5662
  * @memberof SureelApi
5392
5663
  */
5393
- getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
5664
+ getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
5394
5665
  return (0, exports.SureelApiFp)(this.configuration)
5395
- .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
5666
+ .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
5396
5667
  .then((request) => request(this.axios, this.basePath));
5397
5668
  }
5398
5669
  /**
@@ -5463,22 +5734,24 @@ class SureelApi extends base_1.BaseAPI {
5463
5734
  .then((request) => request(this.axios, this.basePath));
5464
5735
  }
5465
5736
  /**
5466
- * This endpoint returns the label profile data and the artist profile data for all artists that are associated with the label.
5737
+ * 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.
5467
5738
  * @summary Get profile data by label name
5468
5739
  * @param {string} labelName
5469
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of artists to return per page.
5470
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
5740
+ * @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.
5741
+ * @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.
5742
+ * @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.
5743
+ * @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.
5471
5744
  * @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.
5472
5745
  * @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.
5473
5746
  * @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.
5474
- * @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.
5747
+ * @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.
5475
5748
  * @param {*} [options] Override http request option.
5476
5749
  * @throws {RequiredError}
5477
5750
  * @memberof SureelApi
5478
5751
  */
5479
- getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options) {
5752
+ getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options) {
5480
5753
  return (0, exports.SureelApiFp)(this.configuration)
5481
- .getCustomerData(labelName, take, cursor, includeNilv, includeMusicConsent, includeHidden, roles, options)
5754
+ .getCustomerData(labelName, take, cursor, search, signedLabel, includeNilv, includeMusicConsent, includeHidden, roles, options)
5482
5755
  .then((request) => request(this.axios, this.basePath));
5483
5756
  }
5484
5757
  /**
@@ -5508,6 +5781,37 @@ class SureelApi extends base_1.BaseAPI {
5508
5781
  .getMusicConsentByUsername(username, version, options)
5509
5782
  .then((request) => request(this.axios, this.basePath));
5510
5783
  }
5784
+ /**
5785
+ * 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.
5786
+ * @summary Get a small WebP preview of an ingested NILV image
5787
+ * @param {string} assetId The id of a reference image or brand mark in the record.
5788
+ * @param {NilAssetThumbnailSize} [size]
5789
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
5790
+ * @param {*} [options] Override http request option.
5791
+ * @throws {RequiredError}
5792
+ * @memberof SureelApi
5793
+ */
5794
+ getNilAssetThumbnail(assetId, size, v, options) {
5795
+ return (0, exports.SureelApiFp)(this.configuration)
5796
+ .getNilAssetThumbnail(assetId, size, v, options)
5797
+ .then((request) => request(this.axios, this.basePath));
5798
+ }
5799
+ /**
5800
+ * 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.
5801
+ * @summary Get a preview of a roster artist\'s NILV image, for a label acting on their behalf
5802
+ * @param {string} username The artist whose settings are being addressed.
5803
+ * @param {string} assetId The id of a reference image or brand mark in the record.
5804
+ * @param {NilAssetThumbnailSize} [size]
5805
+ * @param {string} [v] Ignored by the server. Clients pass the asset\&#39;s sha256 so a replaced file is not served from cache.
5806
+ * @param {*} [options] Override http request option.
5807
+ * @throws {RequiredError}
5808
+ * @memberof SureelApi
5809
+ */
5810
+ getNilAssetThumbnailByUsername(username, assetId, size, v, options) {
5811
+ return (0, exports.SureelApiFp)(this.configuration)
5812
+ .getNilAssetThumbnailByUsername(username, assetId, size, v, options)
5813
+ .then((request) => request(this.axios, this.basePath));
5814
+ }
5511
5815
  /**
5512
5816
  * Answers 404 for an unknown request and for one belonging to another artist, identically.
5513
5817
  * @summary Check how ingestion of a settings submission\'s assets is going
@@ -5541,19 +5845,21 @@ class SureelApi extends base_1.BaseAPI {
5541
5845
  * @param {string} includeArtworks
5542
5846
  * @param {string} [includeOriginalSongs]
5543
5847
  * @param {string} [includeFullResArtworks]
5544
- * @param {number} [take] The &#x60;take&#x60; parameter is the number of collections to return per page.
5545
- * @param {string} [cursor] The optional &#x60;cursor&#x60; parameter is the &#x60;lastEvaluatedKey&#x60; in the previous page.
5848
+ * @param {number} [take] The &#x60;take&#x60; parameter is the number of items to return per page. Defaults to 20, at most 100.
5849
+ * @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.
5546
5850
  * @param {GetOwnCollectionsCollectionSearchFieldEnum} [collectionSearchField] Field to search collections by.
5547
- * @param {string} [collectionSearchValue] Value to match against the specified collection search field. Supports case-insensitive partial matching.
5548
- * @param {GetOwnCollectionsSortByEnum} [sortBy] Specifies the sorting criteria.
5549
- * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order.
5851
+ * @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.
5852
+ * @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.
5853
+ * @param {GetOwnCollectionsSortOrderEnum} [sortOrder] Specifies the sorting order, defaults to desc.
5854
+ * @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.
5855
+ * @param {GetOwnCollectionsUseForTrainingEnum} [useForTraining] Filter collections by their &#x60;use_for_training&#x60; flag.
5550
5856
  * @param {*} [options] Override http request option.
5551
5857
  * @throws {RequiredError}
5552
5858
  * @memberof SureelApi
5553
5859
  */
5554
- getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options) {
5860
+ getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options) {
5555
5861
  return (0, exports.SureelApiFp)(this.configuration)
5556
- .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, options)
5862
+ .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
5557
5863
  .then((request) => request(this.axios, this.basePath));
5558
5864
  }
5559
5865
  /**
@@ -5587,6 +5893,22 @@ class SureelApi extends base_1.BaseAPI {
5587
5893
  .getResultByRequestId(requestId, topNAttributionResults, options)
5588
5894
  .then((request) => request(this.axios, this.basePath));
5589
5895
  }
5896
+ /**
5897
+ * 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.
5898
+ * @summary Get one artist on a label\'s roster
5899
+ * @param {string} labelName
5900
+ * @param {string} username
5901
+ * @param {boolean} [includeNilv] When true, the artist carries the same &#x60;nilv&#x60; summary a roster page gives each artist.
5902
+ * @param {boolean} [includeMusicConsent] When true, the artist carries the same &#x60;music_consent&#x60; summary a roster page gives each artist.
5903
+ * @param {*} [options] Override http request option.
5904
+ * @throws {RequiredError}
5905
+ * @memberof SureelApi
5906
+ */
5907
+ getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options) {
5908
+ return (0, exports.SureelApiFp)(this.configuration)
5909
+ .getRosterArtist(labelName, username, includeNilv, includeMusicConsent, options)
5910
+ .then((request) => request(this.axios, this.basePath));
5911
+ }
5590
5912
  /**
5591
5913
  * Get the style preset parameters for ldm.
5592
5914
  * @summary Style presets for ldm
@@ -5941,7 +6263,7 @@ class SureelApi extends base_1.BaseAPI {
5941
6263
  .then((request) => request(this.axios, this.basePath));
5942
6264
  }
5943
6265
  /**
5944
- * 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.
6266
+ * 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.
5945
6267
  * @summary Upload files as form-data
5946
6268
  * @param {UploadFilesContentTypeEnum} contentType
5947
6269
  * @param {string} contentType2
@@ -6097,6 +6419,13 @@ exports.GetArtistByUsernameSortByEnum = {
6097
6419
  ReleaseDate: "release_date",
6098
6420
  CollectionName: "collection_name",
6099
6421
  NumberOfAssets: "number_of_assets",
6422
+ CreatedAt: "created_at",
6423
+ UpdatedAt: "updated_at",
6424
+ Upc: "upc",
6425
+ Styles: "styles",
6426
+ AiCompanyNotificationsNotificationsStatus: "ai_company_notifications.notifications_status",
6427
+ AiCompanyNotificationsNumberOfContactedAiCompanies: "ai_company_notifications.number_of_contacted_ai_companies",
6428
+ UseForTrainingTimestamp: "use_for_training_timestamp",
6100
6429
  };
6101
6430
  /**
6102
6431
  * @export
@@ -6105,6 +6434,13 @@ exports.GetArtistByUsernameSortOrderEnum = {
6105
6434
  Asc: "asc",
6106
6435
  Desc: "desc",
6107
6436
  };
6437
+ /**
6438
+ * @export
6439
+ */
6440
+ exports.GetArtistByUsernameUseForTrainingEnum = {
6441
+ True: "true",
6442
+ False: "false",
6443
+ };
6108
6444
  /**
6109
6445
  * @export
6110
6446
  */
@@ -6118,6 +6454,13 @@ exports.GetOwnCollectionsSortByEnum = {
6118
6454
  ReleaseDate: "release_date",
6119
6455
  CollectionName: "collection_name",
6120
6456
  NumberOfAssets: "number_of_assets",
6457
+ CreatedAt: "created_at",
6458
+ UpdatedAt: "updated_at",
6459
+ Upc: "upc",
6460
+ Styles: "styles",
6461
+ AiCompanyNotificationsNotificationsStatus: "ai_company_notifications.notifications_status",
6462
+ AiCompanyNotificationsNumberOfContactedAiCompanies: "ai_company_notifications.number_of_contacted_ai_companies",
6463
+ UseForTrainingTimestamp: "use_for_training_timestamp",
6121
6464
  };
6122
6465
  /**
6123
6466
  * @export
@@ -6126,6 +6469,13 @@ exports.GetOwnCollectionsSortOrderEnum = {
6126
6469
  Asc: "asc",
6127
6470
  Desc: "desc",
6128
6471
  };
6472
+ /**
6473
+ * @export
6474
+ */
6475
+ exports.GetOwnCollectionsUseForTrainingEnum = {
6476
+ True: "true",
6477
+ False: "false",
6478
+ };
6129
6479
  /**
6130
6480
  * @export
6131
6481
  */