@sureel/sdk 1.17.5-rc.2 → 1.17.5-rc.3

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 (45) hide show
  1. package/api/sureel-api.d.ts +170 -0
  2. package/api/sureel-api.d.ts.map +1 -1
  3. package/api/sureel-api.js +284 -0
  4. package/api/sureel-api.js.map +1 -1
  5. package/esm/api/sureel-api.d.ts +170 -0
  6. package/esm/api/sureel-api.d.ts.map +1 -1
  7. package/esm/api/sureel-api.js +284 -0
  8. package/esm/api/sureel-api.js.map +1 -1
  9. package/esm/models/index.d.ts +3 -0
  10. package/esm/models/index.d.ts.map +1 -1
  11. package/esm/models/index.js +3 -0
  12. package/esm/models/index.js.map +1 -1
  13. package/esm/models/permission-notify-body.d.ts +25 -0
  14. package/esm/models/permission-notify-body.d.ts.map +1 -0
  15. package/esm/models/permission-notify-body.js +15 -0
  16. package/esm/models/permission-notify-body.js.map +1 -0
  17. package/esm/models/permission-notify-error.d.ts +38 -0
  18. package/esm/models/permission-notify-error.d.ts.map +1 -0
  19. package/esm/models/permission-notify-error.js +15 -0
  20. package/esm/models/permission-notify-error.js.map +1 -0
  21. package/esm/models/permission-notify-response.d.ts +25 -0
  22. package/esm/models/permission-notify-response.d.ts.map +1 -0
  23. package/esm/models/permission-notify-response.js +15 -0
  24. package/esm/models/permission-notify-response.js.map +1 -0
  25. package/esm/models/roster-party.d.ts +6 -0
  26. package/esm/models/roster-party.d.ts.map +1 -1
  27. package/models/index.d.ts +3 -0
  28. package/models/index.d.ts.map +1 -1
  29. package/models/index.js +3 -0
  30. package/models/index.js.map +1 -1
  31. package/models/permission-notify-body.d.ts +25 -0
  32. package/models/permission-notify-body.d.ts.map +1 -0
  33. package/models/permission-notify-body.js +16 -0
  34. package/models/permission-notify-body.js.map +1 -0
  35. package/models/permission-notify-error.d.ts +38 -0
  36. package/models/permission-notify-error.d.ts.map +1 -0
  37. package/models/permission-notify-error.js +16 -0
  38. package/models/permission-notify-error.js.map +1 -0
  39. package/models/permission-notify-response.d.ts +25 -0
  40. package/models/permission-notify-response.d.ts.map +1 -0
  41. package/models/permission-notify-response.js +16 -0
  42. package/models/permission-notify-response.js.map +1 -0
  43. package/models/roster-party.d.ts +6 -0
  44. package/models/roster-party.d.ts.map +1 -1
  45. package/package.json +1 -1
@@ -1818,6 +1818,65 @@ export const SureelApiAxiosParamCreator = function (configuration) {
1818
1818
  options: localVarRequestOptions,
1819
1819
  };
1820
1820
  },
1821
+ /**
1822
+ *
1823
+ * @summary Whether the caller is emailed when permissions change on this account
1824
+ * @param {*} [options] Override http request option.
1825
+ * @throws {RequiredError}
1826
+ */
1827
+ getPermissionNotify: async (options = {}) => {
1828
+ const localVarPath = `/v1/ai/artist/settings/notify`;
1829
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1830
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1831
+ let baseOptions;
1832
+ if (configuration) {
1833
+ baseOptions = configuration.baseOptions;
1834
+ }
1835
+ const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options);
1836
+ const localVarHeaderParameter = {};
1837
+ const localVarQueryParameter = {};
1838
+ // authentication OAuth2 required
1839
+ // oauth required
1840
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
1841
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1843
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1844
+ return {
1845
+ url: toPathString(localVarUrlObj),
1846
+ options: localVarRequestOptions,
1847
+ };
1848
+ },
1849
+ /**
1850
+ *
1851
+ * @summary Whether the caller is emailed when permissions change on this roster party\'s account
1852
+ * @param {string} username
1853
+ * @param {*} [options] Override http request option.
1854
+ * @throws {RequiredError}
1855
+ */
1856
+ getPermissionNotifyByUsername: async (username, options = {}) => {
1857
+ // verify required parameter 'username' is not null or undefined
1858
+ assertParamExists("getPermissionNotifyByUsername", "username", username);
1859
+ const localVarPath = `/v1/ai/artist/{username}/settings/notify`.replace(`{${"username"}}`, encodeURIComponent(String(username)));
1860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1862
+ let baseOptions;
1863
+ if (configuration) {
1864
+ baseOptions = configuration.baseOptions;
1865
+ }
1866
+ const localVarRequestOptions = Object.assign(Object.assign({ method: "GET" }, baseOptions), options);
1867
+ const localVarHeaderParameter = {};
1868
+ const localVarQueryParameter = {};
1869
+ // authentication OAuth2 required
1870
+ // oauth required
1871
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
1872
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1873
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1874
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1875
+ return {
1876
+ url: toPathString(localVarUrlObj),
1877
+ options: localVarRequestOptions,
1878
+ };
1879
+ },
1821
1880
  /**
1822
1881
  * Retrieve the history of previous synthesis requests (like text-to-audio) by using cursor-based pagination.
1823
1882
  * @summary Prompt history
@@ -2209,6 +2268,75 @@ export const SureelApiAxiosParamCreator = function (configuration) {
2209
2268
  options: localVarRequestOptions,
2210
2269
  };
2211
2270
  },
2271
+ /**
2272
+ *
2273
+ * @summary Turn email on or off for permission changes on this account. Off is the default, and a user who is off is not emailed.
2274
+ * @param {PermissionNotifyBody} permissionNotifyBody
2275
+ * @param {*} [options] Override http request option.
2276
+ * @throws {RequiredError}
2277
+ */
2278
+ putPermissionNotify: async (permissionNotifyBody, options = {}) => {
2279
+ // verify required parameter 'permissionNotifyBody' is not null or undefined
2280
+ assertParamExists("putPermissionNotify", "permissionNotifyBody", permissionNotifyBody);
2281
+ const localVarPath = `/v1/ai/artist/settings/notify`;
2282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2284
+ let baseOptions;
2285
+ if (configuration) {
2286
+ baseOptions = configuration.baseOptions;
2287
+ }
2288
+ const localVarRequestOptions = Object.assign(Object.assign({ method: "PUT" }, baseOptions), options);
2289
+ const localVarHeaderParameter = {};
2290
+ const localVarQueryParameter = {};
2291
+ // authentication OAuth2 required
2292
+ // oauth required
2293
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
2294
+ localVarHeaderParameter["Content-Type"] = "application/json";
2295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2297
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2298
+ localVarRequestOptions.data = serializeDataIfNeeded(permissionNotifyBody, localVarRequestOptions, configuration);
2299
+ return {
2300
+ url: toPathString(localVarUrlObj),
2301
+ options: localVarRequestOptions,
2302
+ };
2303
+ },
2304
+ /**
2305
+ *
2306
+ * @summary Turn email on or off for permission changes on this roster party\'s account
2307
+ * @param {string} username
2308
+ * @param {PermissionNotifyBody} permissionNotifyBody
2309
+ * @param {*} [options] Override http request option.
2310
+ * @throws {RequiredError}
2311
+ */
2312
+ putPermissionNotifyByUsername: async (username, permissionNotifyBody, options = {}) => {
2313
+ // verify required parameter 'username' is not null or undefined
2314
+ assertParamExists("putPermissionNotifyByUsername", "username", username);
2315
+ // verify required parameter 'permissionNotifyBody' is not null or undefined
2316
+ assertParamExists("putPermissionNotifyByUsername", "permissionNotifyBody", permissionNotifyBody);
2317
+ const localVarPath = `/v1/ai/artist/{username}/settings/notify`.replace(`{${"username"}}`, encodeURIComponent(String(username)));
2318
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2319
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2320
+ let baseOptions;
2321
+ if (configuration) {
2322
+ baseOptions = configuration.baseOptions;
2323
+ }
2324
+ const localVarRequestOptions = Object.assign(Object.assign({ method: "PUT" }, baseOptions), options);
2325
+ const localVarHeaderParameter = {};
2326
+ const localVarQueryParameter = {};
2327
+ // authentication OAuth2 required
2328
+ // oauth required
2329
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2", ["read:ldm"], configuration);
2330
+ localVarHeaderParameter["Content-Type"] = "application/json";
2331
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2332
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2333
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2334
+ localVarRequestOptions.data = serializeDataIfNeeded(permissionNotifyBody, localVarRequestOptions, configuration);
2335
+ return {
2336
+ url: toPathString(localVarUrlObj),
2337
+ options: localVarRequestOptions,
2338
+ };
2339
+ },
2212
2340
  /**
2213
2341
  * Prompt-guided image-to-image synthesis. Use the reimagine endpoint when aiming to adjust an image based on the prompt. By default, each user has a limit of 100 requests per minute.
2214
2342
  * @summary Reimagine image
@@ -3674,6 +3802,33 @@ export const SureelApiFp = function (configuration) {
3674
3802
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getOwnCollections"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3675
3803
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3676
3804
  },
3805
+ /**
3806
+ *
3807
+ * @summary Whether the caller is emailed when permissions change on this account
3808
+ * @param {*} [options] Override http request option.
3809
+ * @throws {RequiredError}
3810
+ */
3811
+ async getPermissionNotify(options) {
3812
+ var _a, _b, _c;
3813
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissionNotify(options);
3814
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3815
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getPermissionNotify"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3816
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3817
+ },
3818
+ /**
3819
+ *
3820
+ * @summary Whether the caller is emailed when permissions change on this roster party\'s account
3821
+ * @param {string} username
3822
+ * @param {*} [options] Override http request option.
3823
+ * @throws {RequiredError}
3824
+ */
3825
+ async getPermissionNotifyByUsername(username, options) {
3826
+ var _a, _b, _c;
3827
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissionNotifyByUsername(username, options);
3828
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3829
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.getPermissionNotifyByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3830
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3831
+ },
3677
3832
  /**
3678
3833
  * Retrieve the history of previous synthesis requests (like text-to-audio) by using cursor-based pagination.
3679
3834
  * @summary Prompt history
@@ -3826,6 +3981,35 @@ export const SureelApiFp = function (configuration) {
3826
3981
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.optOutAnalysis"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3827
3982
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3828
3983
  },
3984
+ /**
3985
+ *
3986
+ * @summary Turn email on or off for permission changes on this account. Off is the default, and a user who is off is not emailed.
3987
+ * @param {PermissionNotifyBody} permissionNotifyBody
3988
+ * @param {*} [options] Override http request option.
3989
+ * @throws {RequiredError}
3990
+ */
3991
+ async putPermissionNotify(permissionNotifyBody, options) {
3992
+ var _a, _b, _c;
3993
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putPermissionNotify(permissionNotifyBody, options);
3994
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3995
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.putPermissionNotify"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3996
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3997
+ },
3998
+ /**
3999
+ *
4000
+ * @summary Turn email on or off for permission changes on this roster party\'s account
4001
+ * @param {string} username
4002
+ * @param {PermissionNotifyBody} permissionNotifyBody
4003
+ * @param {*} [options] Override http request option.
4004
+ * @throws {RequiredError}
4005
+ */
4006
+ async putPermissionNotifyByUsername(username, permissionNotifyBody, options) {
4007
+ var _a, _b, _c;
4008
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putPermissionNotifyByUsername(username, permissionNotifyBody, options);
4009
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4010
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SureelApi.putPermissionNotifyByUsername"]) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4011
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4012
+ },
3829
4013
  /**
3830
4014
  * Prompt-guided image-to-image synthesis. Use the reimagine endpoint when aiming to adjust an image based on the prompt. By default, each user has a limit of 100 requests per minute.
3831
4015
  * @summary Reimagine image
@@ -4736,6 +4920,29 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4736
4920
  .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
4737
4921
  .then((request) => request(axios, basePath));
4738
4922
  },
4923
+ /**
4924
+ *
4925
+ * @summary Whether the caller is emailed when permissions change on this account
4926
+ * @param {*} [options] Override http request option.
4927
+ * @throws {RequiredError}
4928
+ */
4929
+ getPermissionNotify(options) {
4930
+ return localVarFp
4931
+ .getPermissionNotify(options)
4932
+ .then((request) => request(axios, basePath));
4933
+ },
4934
+ /**
4935
+ *
4936
+ * @summary Whether the caller is emailed when permissions change on this roster party\'s account
4937
+ * @param {string} username
4938
+ * @param {*} [options] Override http request option.
4939
+ * @throws {RequiredError}
4940
+ */
4941
+ getPermissionNotifyByUsername(username, options) {
4942
+ return localVarFp
4943
+ .getPermissionNotifyByUsername(username, options)
4944
+ .then((request) => request(axios, basePath));
4945
+ },
4739
4946
  /**
4740
4947
  * Retrieve the history of previous synthesis requests (like text-to-audio) by using cursor-based pagination.
4741
4948
  * @summary Prompt history
@@ -4868,6 +5075,31 @@ export const SureelApiFactory = function (configuration, basePath, axios) {
4868
5075
  .optOutAnalysis(contentType, postOptOutAnalysisBody, options)
4869
5076
  .then((request) => request(axios, basePath));
4870
5077
  },
5078
+ /**
5079
+ *
5080
+ * @summary Turn email on or off for permission changes on this account. Off is the default, and a user who is off is not emailed.
5081
+ * @param {PermissionNotifyBody} permissionNotifyBody
5082
+ * @param {*} [options] Override http request option.
5083
+ * @throws {RequiredError}
5084
+ */
5085
+ putPermissionNotify(permissionNotifyBody, options) {
5086
+ return localVarFp
5087
+ .putPermissionNotify(permissionNotifyBody, options)
5088
+ .then((request) => request(axios, basePath));
5089
+ },
5090
+ /**
5091
+ *
5092
+ * @summary Turn email on or off for permission changes on this roster party\'s account
5093
+ * @param {string} username
5094
+ * @param {PermissionNotifyBody} permissionNotifyBody
5095
+ * @param {*} [options] Override http request option.
5096
+ * @throws {RequiredError}
5097
+ */
5098
+ putPermissionNotifyByUsername(username, permissionNotifyBody, options) {
5099
+ return localVarFp
5100
+ .putPermissionNotifyByUsername(username, permissionNotifyBody, options)
5101
+ .then((request) => request(axios, basePath));
5102
+ },
4871
5103
  /**
4872
5104
  * Prompt-guided image-to-image synthesis. Use the reimagine endpoint when aiming to adjust an image based on the prompt. By default, each user has a limit of 100 requests per minute.
4873
5105
  * @summary Reimagine image
@@ -5785,6 +6017,31 @@ export class SureelApi extends BaseAPI {
5785
6017
  .getOwnCollections(includeArtworks, includeOriginalSongs, includeFullResArtworks, take, cursor, collectionSearchField, collectionSearchValue, sortBy, sortOrder, releaseType, useForTraining, options)
5786
6018
  .then((request) => request(this.axios, this.basePath));
5787
6019
  }
6020
+ /**
6021
+ *
6022
+ * @summary Whether the caller is emailed when permissions change on this account
6023
+ * @param {*} [options] Override http request option.
6024
+ * @throws {RequiredError}
6025
+ * @memberof SureelApi
6026
+ */
6027
+ getPermissionNotify(options) {
6028
+ return SureelApiFp(this.configuration)
6029
+ .getPermissionNotify(options)
6030
+ .then((request) => request(this.axios, this.basePath));
6031
+ }
6032
+ /**
6033
+ *
6034
+ * @summary Whether the caller is emailed when permissions change on this roster party\'s account
6035
+ * @param {string} username
6036
+ * @param {*} [options] Override http request option.
6037
+ * @throws {RequiredError}
6038
+ * @memberof SureelApi
6039
+ */
6040
+ getPermissionNotifyByUsername(username, options) {
6041
+ return SureelApiFp(this.configuration)
6042
+ .getPermissionNotifyByUsername(username, options)
6043
+ .then((request) => request(this.axios, this.basePath));
6044
+ }
5788
6045
  /**
5789
6046
  * Retrieve the history of previous synthesis requests (like text-to-audio) by using cursor-based pagination.
5790
6047
  * @summary Prompt history
@@ -5927,6 +6184,33 @@ export class SureelApi extends BaseAPI {
5927
6184
  .optOutAnalysis(contentType, postOptOutAnalysisBody, options)
5928
6185
  .then((request) => request(this.axios, this.basePath));
5929
6186
  }
6187
+ /**
6188
+ *
6189
+ * @summary Turn email on or off for permission changes on this account. Off is the default, and a user who is off is not emailed.
6190
+ * @param {PermissionNotifyBody} permissionNotifyBody
6191
+ * @param {*} [options] Override http request option.
6192
+ * @throws {RequiredError}
6193
+ * @memberof SureelApi
6194
+ */
6195
+ putPermissionNotify(permissionNotifyBody, options) {
6196
+ return SureelApiFp(this.configuration)
6197
+ .putPermissionNotify(permissionNotifyBody, options)
6198
+ .then((request) => request(this.axios, this.basePath));
6199
+ }
6200
+ /**
6201
+ *
6202
+ * @summary Turn email on or off for permission changes on this roster party\'s account
6203
+ * @param {string} username
6204
+ * @param {PermissionNotifyBody} permissionNotifyBody
6205
+ * @param {*} [options] Override http request option.
6206
+ * @throws {RequiredError}
6207
+ * @memberof SureelApi
6208
+ */
6209
+ putPermissionNotifyByUsername(username, permissionNotifyBody, options) {
6210
+ return SureelApiFp(this.configuration)
6211
+ .putPermissionNotifyByUsername(username, permissionNotifyBody, options)
6212
+ .then((request) => request(this.axios, this.basePath));
6213
+ }
5930
6214
  /**
5931
6215
  * Prompt-guided image-to-image synthesis. Use the reimagine endpoint when aiming to adjust an image based on the prompt. By default, each user has a limit of 100 requests per minute.
5932
6216
  * @summary Reimagine image