@sureel/sdk 1.10.3-rc.3 → 1.10.3-rc.4

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 (41) hide show
  1. package/api/sureel-api.d.ts +45 -15
  2. package/api/sureel-api.d.ts.map +1 -1
  3. package/api/sureel-api.js +63 -21
  4. package/api/sureel-api.js.map +1 -1
  5. package/esm/api/sureel-api.d.ts +45 -15
  6. package/esm/api/sureel-api.d.ts.map +1 -1
  7. package/esm/api/sureel-api.js +63 -21
  8. package/esm/api/sureel-api.js.map +1 -1
  9. package/esm/models/analysis-history-entry.d.ts +3 -3
  10. package/esm/models/analysis-history-entry.d.ts.map +1 -1
  11. package/esm/models/artist-collections-inner.d.ts +3 -3
  12. package/esm/models/artist-collections-inner.d.ts.map +1 -1
  13. package/esm/models/get-own-collections200-response.d.ts +6 -0
  14. package/esm/models/get-own-collections200-response.d.ts.map +1 -1
  15. package/esm/models/index.d.ts +2 -2
  16. package/esm/models/index.d.ts.map +1 -1
  17. package/esm/models/index.js +2 -2
  18. package/esm/models/index.js.map +1 -1
  19. package/esm/models/prompt-history-entry.d.ts +3 -3
  20. package/esm/models/prompt-history-entry.d.ts.map +1 -1
  21. package/esm/models/v1-ai-artist-collection-collection-uuid-get200-response.d.ts +3 -3
  22. package/esm/models/v1-ai-artist-collection-collection-uuid-get200-response.d.ts.map +1 -1
  23. package/esm/models/v1-ai-audio-ldm-request-id-get200-response.d.ts +3 -3
  24. package/esm/models/v1-ai-audio-ldm-request-id-get200-response.d.ts.map +1 -1
  25. package/models/analysis-history-entry.d.ts +3 -3
  26. package/models/analysis-history-entry.d.ts.map +1 -1
  27. package/models/artist-collections-inner.d.ts +3 -3
  28. package/models/artist-collections-inner.d.ts.map +1 -1
  29. package/models/get-own-collections200-response.d.ts +6 -0
  30. package/models/get-own-collections200-response.d.ts.map +1 -1
  31. package/models/index.d.ts +2 -2
  32. package/models/index.d.ts.map +1 -1
  33. package/models/index.js +2 -2
  34. package/models/index.js.map +1 -1
  35. package/models/prompt-history-entry.d.ts +3 -3
  36. package/models/prompt-history-entry.d.ts.map +1 -1
  37. package/models/v1-ai-artist-collection-collection-uuid-get200-response.d.ts +3 -3
  38. package/models/v1-ai-artist-collection-collection-uuid-get200-response.d.ts.map +1 -1
  39. package/models/v1-ai-audio-ldm-request-id-get200-response.d.ts +3 -3
  40. package/models/v1-ai-audio-ldm-request-id-get200-response.d.ts.map +1 -1
  41. package/package.json +1 -1
package/api/sureel-api.js CHANGED
@@ -448,10 +448,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
448
448
  * @param {string} includeArtworks
449
449
  * @param {string} [includeOriginalSongs]
450
450
  * @param {string} [includeFullResArtworks]
451
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
452
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
451
453
  * @param {*} [options] Override http request option.
452
454
  * @throws {RequiredError}
453
455
  */
454
- getAllArtists: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, options = {}) => {
456
+ getAllArtists: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options = {}) => {
455
457
  // verify required parameter 'includeArtworks' is not null or undefined
456
458
  (0, common_1.assertParamExists)("getAllArtists", "includeArtworks", includeArtworks);
457
459
  const localVarPath = `/v1/ai/artist/`;
@@ -475,6 +477,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
475
477
  localVarQueryParameter["include_full_res_artworks"] =
476
478
  includeFullResArtworks;
477
479
  }
480
+ if (take !== undefined) {
481
+ localVarQueryParameter["take"] = take;
482
+ }
483
+ if (cursor !== undefined) {
484
+ localVarQueryParameter["cursor"] = cursor;
485
+ }
478
486
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
479
487
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
480
488
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -543,10 +551,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
543
551
  * @param {string} username
544
552
  * @param {string} [includeOriginalSongs]
545
553
  * @param {string} [includeFullResArtworks]
554
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
555
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
546
556
  * @param {*} [options] Override http request option.
547
557
  * @throws {RequiredError}
548
558
  */
549
- getArtistByUsername: async (includeArtworks, username, includeOriginalSongs, includeFullResArtworks, options = {}) => {
559
+ getArtistByUsername: async (includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, options = {}) => {
550
560
  // verify required parameter 'includeArtworks' is not null or undefined
551
561
  (0, common_1.assertParamExists)("getArtistByUsername", "includeArtworks", includeArtworks);
552
562
  // verify required parameter 'username' is not null or undefined
@@ -572,6 +582,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
572
582
  localVarQueryParameter["include_full_res_artworks"] =
573
583
  includeFullResArtworks;
574
584
  }
585
+ if (take !== undefined) {
586
+ localVarQueryParameter["take"] = take;
587
+ }
588
+ if (cursor !== undefined) {
589
+ localVarQueryParameter["cursor"] = cursor;
590
+ }
575
591
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
576
592
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
577
593
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -658,10 +674,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
658
674
  * @param {string} includeArtworks
659
675
  * @param {string} [includeOriginalSongs]
660
676
  * @param {string} [includeFullResArtworks]
677
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
678
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
661
679
  * @param {*} [options] Override http request option.
662
680
  * @throws {RequiredError}
663
681
  */
664
- getOwnCollections: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, options = {}) => {
682
+ getOwnCollections: async (includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options = {}) => {
665
683
  // verify required parameter 'includeArtworks' is not null or undefined
666
684
  (0, common_1.assertParamExists)("getOwnCollections", "includeArtworks", includeArtworks);
667
685
  const localVarPath = `/v1/ai/artist/collections`;
@@ -688,6 +706,12 @@ const SureelApiAxiosParamCreator = function (configuration) {
688
706
  localVarQueryParameter["include_full_res_artworks"] =
689
707
  includeFullResArtworks;
690
708
  }
709
+ if (take !== undefined) {
710
+ localVarQueryParameter["take"] = take;
711
+ }
712
+ if (cursor !== undefined) {
713
+ localVarQueryParameter["cursor"] = cursor;
714
+ }
691
715
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
692
716
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
693
717
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2289,12 +2313,14 @@ const SureelApiFp = function (configuration) {
2289
2313
  * @param {string} includeArtworks
2290
2314
  * @param {string} [includeOriginalSongs]
2291
2315
  * @param {string} [includeFullResArtworks]
2316
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
2317
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
2292
2318
  * @param {*} [options] Override http request option.
2293
2319
  * @throws {RequiredError}
2294
2320
  */
2295
- async getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, options) {
2321
+ async getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
2296
2322
  var _a, _b, _c;
2297
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, options);
2323
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options);
2298
2324
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2299
2325
  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;
2300
2326
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2324,12 +2350,14 @@ const SureelApiFp = function (configuration) {
2324
2350
  * @param {string} username
2325
2351
  * @param {string} [includeOriginalSongs]
2326
2352
  * @param {string} [includeFullResArtworks]
2353
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
2354
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
2327
2355
  * @param {*} [options] Override http request option.
2328
2356
  * @throws {RequiredError}
2329
2357
  */
2330
- async getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, options) {
2358
+ async getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
2331
2359
  var _a, _b, _c;
2332
- const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, options);
2360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, options);
2333
2361
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2334
2362
  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;
2335
2363
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2369,12 +2397,14 @@ const SureelApiFp = function (configuration) {
2369
2397
  * @param {string} includeArtworks
2370
2398
  * @param {string} [includeOriginalSongs]
2371
2399
  * @param {string} [includeFullResArtworks]
2400
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
2401
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
2372
2402
  * @param {*} [options] Override http request option.
2373
2403
  * @throws {RequiredError}
2374
2404
  */
2375
- async getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, options) {
2405
+ async getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
2376
2406
  var _a, _b, _c;
2377
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, options);
2407
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options);
2378
2408
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2379
2409
  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;
2380
2410
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3089,12 +3119,14 @@ const SureelApiFactory = function (configuration, basePath, axios) {
3089
3119
  * @param {string} includeArtworks
3090
3120
  * @param {string} [includeOriginalSongs]
3091
3121
  * @param {string} [includeFullResArtworks]
3122
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
3123
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
3092
3124
  * @param {*} [options] Override http request option.
3093
3125
  * @throws {RequiredError}
3094
3126
  */
3095
- getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, options) {
3127
+ getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
3096
3128
  return localVarFp
3097
- .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, options)
3129
+ .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
3098
3130
  .then((request) => request(axios, basePath));
3099
3131
  },
3100
3132
  /**
@@ -3120,12 +3152,14 @@ const SureelApiFactory = function (configuration, basePath, axios) {
3120
3152
  * @param {string} username
3121
3153
  * @param {string} [includeOriginalSongs]
3122
3154
  * @param {string} [includeFullResArtworks]
3155
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
3156
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
3123
3157
  * @param {*} [options] Override http request option.
3124
3158
  * @throws {RequiredError}
3125
3159
  */
3126
- getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, options) {
3160
+ getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
3127
3161
  return localVarFp
3128
- .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, options)
3162
+ .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
3129
3163
  .then((request) => request(axios, basePath));
3130
3164
  },
3131
3165
  /**
@@ -3159,12 +3193,14 @@ const SureelApiFactory = function (configuration, basePath, axios) {
3159
3193
  * @param {string} includeArtworks
3160
3194
  * @param {string} [includeOriginalSongs]
3161
3195
  * @param {string} [includeFullResArtworks]
3196
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
3197
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
3162
3198
  * @param {*} [options] Override http request option.
3163
3199
  * @throws {RequiredError}
3164
3200
  */
3165
- getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, options) {
3201
+ getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
3166
3202
  return localVarFp
3167
- .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, options)
3203
+ .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
3168
3204
  .then((request) => request(axios, basePath));
3169
3205
  },
3170
3206
  /**
@@ -3814,13 +3850,15 @@ class SureelApi extends base_1.BaseAPI {
3814
3850
  * @param {string} includeArtworks
3815
3851
  * @param {string} [includeOriginalSongs]
3816
3852
  * @param {string} [includeFullResArtworks]
3853
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
3854
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
3817
3855
  * @param {*} [options] Override http request option.
3818
3856
  * @throws {RequiredError}
3819
3857
  * @memberof SureelApi
3820
3858
  */
3821
- getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, options) {
3859
+ getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
3822
3860
  return (0, exports.SureelApiFp)(this.configuration)
3823
- .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, options)
3861
+ .getAllArtists(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
3824
3862
  .then((request) => request(this.axios, this.basePath));
3825
3863
  }
3826
3864
  /**
@@ -3847,13 +3885,15 @@ class SureelApi extends base_1.BaseAPI {
3847
3885
  * @param {string} username
3848
3886
  * @param {string} [includeOriginalSongs]
3849
3887
  * @param {string} [includeFullResArtworks]
3888
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
3889
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
3850
3890
  * @param {*} [options] Override http request option.
3851
3891
  * @throws {RequiredError}
3852
3892
  * @memberof SureelApi
3853
3893
  */
3854
- getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, options) {
3894
+ getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
3855
3895
  return (0, exports.SureelApiFp)(this.configuration)
3856
- .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, options)
3896
+ .getArtistByUsername(includeArtworks, username, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
3857
3897
  .then((request) => request(this.axios, this.basePath));
3858
3898
  }
3859
3899
  /**
@@ -3889,13 +3929,15 @@ class SureelApi extends base_1.BaseAPI {
3889
3929
  * @param {string} includeArtworks
3890
3930
  * @param {string} [includeOriginalSongs]
3891
3931
  * @param {string} [includeFullResArtworks]
3932
+ * @param {number} [take] The \'take\' parameter is the number of items to be returned per page.
3933
+ * @param {string} [cursor] The optional `cursor` parameter is the `lastEvaluatedKey` in the previous page.
3892
3934
  * @param {*} [options] Override http request option.
3893
3935
  * @throws {RequiredError}
3894
3936
  * @memberof SureelApi
3895
3937
  */
3896
- getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, options) {
3938
+ getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options) {
3897
3939
  return (0, exports.SureelApiFp)(this.configuration)
3898
- .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, options)
3940
+ .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, options)
3899
3941
  .then((request) => request(this.axios, this.basePath));
3900
3942
  }
3901
3943
  /**