@leonardo-ai/sdk 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/README.md +11 -14
  2. package/dist/sdk/dataset.js +25 -25
  3. package/dist/sdk/element.js +5 -5
  4. package/dist/sdk/generation.js +30 -30
  5. package/dist/sdk/initimage.js +15 -15
  6. package/dist/sdk/model.js +30 -30
  7. package/dist/sdk/sdk.js +3 -3
  8. package/dist/sdk/user.js +5 -5
  9. package/dist/sdk/variation.js +20 -20
  10. package/docs/sdk/models/operations/createdatasetrequestbody.md +0 -0
  11. package/docs/sdk/models/operations/createdatasetresponse.md +0 -0
  12. package/docs/sdk/models/operations/createdatasetresponsebody.md +0 -0
  13. package/docs/sdk/models/operations/creategenerationrequestbody.md +0 -0
  14. package/docs/sdk/models/operations/creategenerationresponse.md +0 -0
  15. package/docs/sdk/models/operations/creategenerationresponsebody.md +0 -0
  16. package/docs/sdk/models/operations/createmodelrequestbody.md +0 -0
  17. package/docs/sdk/models/operations/createmodelresponse.md +0 -0
  18. package/docs/sdk/models/operations/createmodelresponsebody.md +0 -0
  19. package/docs/sdk/models/operations/createvariationnobgrequestbody.md +0 -0
  20. package/docs/sdk/models/operations/createvariationnobgresponse.md +0 -0
  21. package/docs/sdk/models/operations/createvariationnobgresponsebody.md +0 -0
  22. package/docs/sdk/models/operations/createvariationupscalerequestbody.md +0 -0
  23. package/docs/sdk/models/operations/createvariationupscaleresponse.md +0 -0
  24. package/docs/sdk/models/operations/createvariationupscaleresponsebody.md +0 -0
  25. package/docs/sdk/models/operations/createvariationupscalesdupscalejoboutput.md +0 -0
  26. package/docs/sdk/models/operations/custommodels.md +0 -0
  27. package/docs/sdk/models/operations/datasetgenuploadoutput.md +0 -0
  28. package/docs/sdk/models/operations/datasetimages.md +0 -0
  29. package/docs/sdk/models/operations/datasets.md +0 -0
  30. package/docs/sdk/models/operations/datasetuploadoutput.md +0 -0
  31. package/docs/sdk/models/operations/deletedatasetbyiddatasets.md +0 -0
  32. package/docs/sdk/models/operations/deletedatasetbyidrequest.md +0 -0
  33. package/docs/sdk/models/operations/deletedatasetbyidresponse.md +0 -0
  34. package/docs/sdk/models/operations/deletedatasetbyidresponsebody.md +0 -0
  35. package/docs/sdk/models/operations/deletegenerationbyidrequest.md +0 -0
  36. package/docs/sdk/models/operations/deletegenerationbyidresponse.md +0 -0
  37. package/docs/sdk/models/operations/deletegenerationbyidresponsebody.md +0 -0
  38. package/docs/sdk/models/operations/deletegenerationstextureidrequest.md +0 -0
  39. package/docs/sdk/models/operations/deletegenerationstextureidrequestbody.md +0 -0
  40. package/docs/sdk/models/operations/deletegenerationstextureidresponse.md +0 -0
  41. package/docs/sdk/models/operations/deletegenerationstextureidresponsebody.md +0 -0
  42. package/docs/sdk/models/operations/deleteinitimagebyidrequest.md +0 -0
  43. package/docs/sdk/models/operations/deleteinitimagebyidresponse.md +0 -0
  44. package/docs/sdk/models/operations/deleteinitimagebyidresponsebody.md +0 -0
  45. package/docs/sdk/models/operations/deletemodelbyidrequest.md +0 -0
  46. package/docs/sdk/models/operations/deletemodelbyidresponse.md +0 -0
  47. package/docs/sdk/models/operations/deletemodelbyidresponsebody.md +0 -0
  48. package/docs/sdk/models/operations/deletemodels3didrequest.md +0 -0
  49. package/docs/sdk/models/operations/deletemodels3didrequestbody.md +0 -0
  50. package/docs/sdk/models/operations/deletemodels3didresponse.md +0 -0
  51. package/docs/sdk/models/operations/deletemodels3didresponsebody.md +0 -0
  52. package/docs/sdk/models/operations/elements.md +0 -0
  53. package/docs/sdk/models/operations/generatedimages.md +0 -0
  54. package/docs/sdk/models/operations/generatedimagevariationgeneric.md +0 -0
  55. package/docs/sdk/models/operations/generationelements.md +0 -0
  56. package/docs/sdk/models/operations/generations.md +0 -0
  57. package/docs/sdk/models/operations/getdatasetbyiddatasets.md +0 -0
  58. package/docs/sdk/models/operations/getdatasetbyidrequest.md +0 -0
  59. package/docs/sdk/models/operations/getdatasetbyidresponse.md +0 -0
  60. package/docs/sdk/models/operations/getdatasetbyidresponsebody.md +0 -0
  61. package/docs/sdk/models/operations/getelementsresponse.md +0 -0
  62. package/docs/sdk/models/operations/getelementsresponsebody.md +0 -0
  63. package/docs/sdk/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md +0 -0
  64. package/docs/sdk/models/operations/getgenerationbyidgenerations.md +0 -0
  65. package/docs/sdk/models/operations/getgenerationbyidloras.md +0 -0
  66. package/docs/sdk/models/operations/getgenerationbyidrequest.md +0 -0
  67. package/docs/sdk/models/operations/getgenerationbyidresponse.md +0 -0
  68. package/docs/sdk/models/operations/getgenerationbyidresponsebody.md +0 -0
  69. package/docs/sdk/models/operations/getgenerationsbyuseridgeneratedimages.md +0 -0
  70. package/docs/sdk/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md +0 -0
  71. package/docs/sdk/models/operations/getgenerationsbyuseridgenerationelements.md +0 -0
  72. package/docs/sdk/models/operations/getgenerationsbyuseridgenerations.md +0 -0
  73. package/docs/sdk/models/operations/getgenerationsbyuseridrequest.md +0 -0
  74. package/docs/sdk/models/operations/getgenerationsbyuseridresponse.md +0 -0
  75. package/docs/sdk/models/operations/getgenerationsbyuseridresponsebody.md +0 -0
  76. package/docs/sdk/models/operations/getinitimagebyidinitimages.md +0 -0
  77. package/docs/sdk/models/operations/getinitimagebyidrequest.md +0 -0
  78. package/docs/sdk/models/operations/getinitimagebyidresponse.md +0 -0
  79. package/docs/sdk/models/operations/getinitimagebyidresponsebody.md +0 -0
  80. package/docs/sdk/models/operations/getmodelbyidcustommodels.md +0 -0
  81. package/docs/sdk/models/operations/getmodelbyidrequest.md +0 -0
  82. package/docs/sdk/models/operations/getmodelbyidresponse.md +0 -0
  83. package/docs/sdk/models/operations/getmodelbyidresponsebody.md +0 -0
  84. package/docs/sdk/models/operations/getplatformmodelscustommodels.md +0 -0
  85. package/docs/sdk/models/operations/getplatformmodelsgeneratedimages.md +0 -0
  86. package/docs/sdk/models/operations/getplatformmodelsrequest.md +0 -0
  87. package/docs/sdk/models/operations/getplatformmodelsresponse.md +0 -0
  88. package/docs/sdk/models/operations/getplatformmodelsresponsebody.md +0 -0
  89. package/docs/sdk/models/operations/getuserselfresponse.md +0 -0
  90. package/docs/sdk/models/operations/getuserselfresponsebody.md +0 -0
  91. package/docs/sdk/models/operations/getvariationbyidrequest.md +0 -0
  92. package/docs/sdk/models/operations/getvariationbyidresponse.md +0 -0
  93. package/docs/sdk/models/operations/getvariationbyidresponsebody.md +0 -0
  94. package/docs/sdk/models/operations/initimages.md +0 -0
  95. package/docs/sdk/models/operations/initimageuploadoutput.md +0 -0
  96. package/docs/sdk/models/operations/loras.md +0 -0
  97. package/docs/sdk/models/operations/modelassets.md +0 -0
  98. package/docs/sdk/models/operations/modelassettexturegenerations.md +0 -0
  99. package/docs/sdk/models/operations/modelassetuploadoutput.md +0 -0
  100. package/docs/sdk/models/operations/postgenerationstexturerequestbody.md +0 -0
  101. package/docs/sdk/models/operations/postgenerationstextureresponse.md +0 -0
  102. package/docs/sdk/models/operations/postgenerationstextureresponsebody.md +0 -0
  103. package/docs/sdk/models/operations/postmodels3duploadrequestbody.md +0 -0
  104. package/docs/sdk/models/operations/postmodels3duploadresponse.md +0 -0
  105. package/docs/sdk/models/operations/postmodels3duploadresponsebody.md +0 -0
  106. package/docs/sdk/models/operations/postvariationsunzoomrequestbody.md +0 -0
  107. package/docs/sdk/models/operations/postvariationsunzoomresponse.md +0 -0
  108. package/docs/sdk/models/operations/postvariationsunzoomresponsebody.md +0 -0
  109. package/docs/sdk/models/operations/sdgenerationoutput.md +0 -0
  110. package/docs/sdk/models/operations/sdtrainingoutput.md +0 -0
  111. package/docs/sdk/models/operations/sdunzoomoutput.md +0 -0
  112. package/docs/sdk/models/operations/sdupscalejoboutput.md +0 -0
  113. package/docs/sdk/models/operations/texturegenerationjoboutput.md +0 -0
  114. package/docs/sdk/models/operations/uploaddatasetimagefromgenrequest.md +0 -0
  115. package/docs/sdk/models/operations/uploaddatasetimagefromgenrequestbody.md +0 -0
  116. package/docs/sdk/models/operations/uploaddatasetimagefromgenresponse.md +0 -0
  117. package/docs/sdk/models/operations/uploaddatasetimagefromgenresponsebody.md +0 -0
  118. package/docs/sdk/models/operations/uploaddatasetimagerequest.md +0 -0
  119. package/docs/sdk/models/operations/uploaddatasetimagerequestbody.md +0 -0
  120. package/docs/sdk/models/operations/uploaddatasetimageresponse.md +0 -0
  121. package/docs/sdk/models/operations/uploaddatasetimageresponsebody.md +0 -0
  122. package/docs/sdk/models/operations/uploadinitimagerequestbody.md +0 -0
  123. package/docs/sdk/models/operations/uploadinitimageresponse.md +0 -0
  124. package/docs/sdk/models/operations/uploadinitimageresponsebody.md +0 -0
  125. package/docs/sdk/models/operations/userdetails.md +0 -0
  126. package/docs/sdk/models/operations/users.md +0 -0
  127. package/docs/sdk/models/shared/controlnettype.md +0 -0
  128. package/docs/sdk/models/shared/custommodeltype.md +0 -0
  129. package/docs/sdk/models/shared/elementinput.md +0 -0
  130. package/docs/sdk/models/shared/jobstatus.md +0 -0
  131. package/docs/sdk/models/shared/sdgenerationschedulers.md +0 -0
  132. package/docs/sdk/models/shared/sdgenerationstyle.md +0 -0
  133. package/docs/sdk/models/shared/sdversions.md +0 -0
  134. package/docs/sdk/models/shared/security.md +0 -0
  135. package/docs/sdk/models/shared/strength.md +0 -0
  136. package/docs/sdk/models/shared/variationtype.md +0 -0
  137. package/docs/sdks/dataset/README.md +0 -0
  138. package/docs/sdks/element/README.md +0 -0
  139. package/docs/sdks/generation/README.md +0 -0
  140. package/docs/sdks/initimage/README.md +0 -0
  141. package/docs/sdks/leonardo/README.md +0 -0
  142. package/docs/sdks/model/README.md +0 -0
  143. package/docs/sdks/user/README.md +0 -0
  144. package/docs/sdks/variation/README.md +0 -0
  145. package/package.json +1 -1
@@ -107,7 +107,7 @@ var InitImage = /** @class */ (function () {
107
107
  InitImage.prototype.deleteInitImageById = function (id, config) {
108
108
  var _a, _b;
109
109
  return __awaiter(this, void 0, void 0, function () {
110
- var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
110
+ var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
111
111
  return __generator(this, function (_c) {
112
112
  switch (_c.label) {
113
113
  case 0:
@@ -134,23 +134,23 @@ var InitImage = /** @class */ (function () {
134
134
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
135
135
  case 3:
136
136
  httpRes = _c.sent();
137
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
137
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
138
138
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
139
139
  throw new Error("status code not found in response: ".concat(httpRes));
140
140
  }
141
141
  res = new operations.DeleteInitImageByIdResponse({
142
142
  statusCode: httpRes.status,
143
- contentType: contentType,
143
+ contentType: responseContentType,
144
144
  rawResponse: httpRes,
145
145
  });
146
146
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
147
147
  switch (true) {
148
148
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
149
- if (utils.matchContentType(contentType, "application/json")) {
149
+ if (utils.matchContentType(responseContentType, "application/json")) {
150
150
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteInitImageByIdResponseBody);
151
151
  }
152
152
  else {
153
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
153
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
154
154
  }
155
155
  break;
156
156
  }
@@ -168,7 +168,7 @@ var InitImage = /** @class */ (function () {
168
168
  InitImage.prototype.getInitImageById = function (id, config) {
169
169
  var _a, _b;
170
170
  return __awaiter(this, void 0, void 0, function () {
171
- var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
171
+ var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
172
172
  return __generator(this, function (_c) {
173
173
  switch (_c.label) {
174
174
  case 0:
@@ -195,23 +195,23 @@ var InitImage = /** @class */ (function () {
195
195
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
196
196
  case 3:
197
197
  httpRes = _c.sent();
198
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
198
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
199
199
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
200
200
  throw new Error("status code not found in response: ".concat(httpRes));
201
201
  }
202
202
  res = new operations.GetInitImageByIdResponse({
203
203
  statusCode: httpRes.status,
204
- contentType: contentType,
204
+ contentType: responseContentType,
205
205
  rawResponse: httpRes,
206
206
  });
207
207
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
208
208
  switch (true) {
209
209
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
210
- if (utils.matchContentType(contentType, "application/json")) {
210
+ if (utils.matchContentType(responseContentType, "application/json")) {
211
211
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetInitImageByIdResponseBody);
212
212
  }
213
213
  else {
214
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
214
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
215
215
  }
216
216
  break;
217
217
  }
@@ -229,7 +229,7 @@ var InitImage = /** @class */ (function () {
229
229
  InitImage.prototype.uploadInitImage = function (req, config) {
230
230
  var _a, _b;
231
231
  return __awaiter(this, void 0, void 0, function () {
232
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
232
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
233
233
  var _d;
234
234
  return __generator(this, function (_e) {
235
235
  switch (_e.label) {
@@ -268,23 +268,23 @@ var InitImage = /** @class */ (function () {
268
268
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
269
269
  case 3:
270
270
  httpRes = _e.sent();
271
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
271
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
272
272
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
273
273
  throw new Error("status code not found in response: ".concat(httpRes));
274
274
  }
275
275
  res = new operations.UploadInitImageResponse({
276
276
  statusCode: httpRes.status,
277
- contentType: contentType,
277
+ contentType: responseContentType,
278
278
  rawResponse: httpRes,
279
279
  });
280
280
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
281
281
  switch (true) {
282
282
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
283
- if (utils.matchContentType(contentType, "application/json")) {
283
+ if (utils.matchContentType(responseContentType, "application/json")) {
284
284
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.UploadInitImageResponseBody);
285
285
  }
286
286
  else {
287
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
287
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
288
288
  }
289
289
  break;
290
290
  }
package/dist/sdk/model.js CHANGED
@@ -107,7 +107,7 @@ var Model = /** @class */ (function () {
107
107
  Model.prototype.createModel = function (req, config) {
108
108
  var _a, _b;
109
109
  return __awaiter(this, void 0, void 0, function () {
110
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
110
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
111
111
  var _d;
112
112
  return __generator(this, function (_e) {
113
113
  switch (_e.label) {
@@ -146,23 +146,23 @@ var Model = /** @class */ (function () {
146
146
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
147
147
  case 3:
148
148
  httpRes = _e.sent();
149
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
149
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
150
150
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
151
151
  throw new Error("status code not found in response: ".concat(httpRes));
152
152
  }
153
153
  res = new operations.CreateModelResponse({
154
154
  statusCode: httpRes.status,
155
- contentType: contentType,
155
+ contentType: responseContentType,
156
156
  rawResponse: httpRes,
157
157
  });
158
158
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
159
159
  switch (true) {
160
160
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
161
- if (utils.matchContentType(contentType, "application/json")) {
161
+ if (utils.matchContentType(responseContentType, "application/json")) {
162
162
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateModelResponseBody);
163
163
  }
164
164
  else {
165
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
165
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
166
166
  }
167
167
  break;
168
168
  }
@@ -180,7 +180,7 @@ var Model = /** @class */ (function () {
180
180
  Model.prototype.deleteModelById = function (id, config) {
181
181
  var _a, _b;
182
182
  return __awaiter(this, void 0, void 0, function () {
183
- var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
183
+ var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
184
184
  return __generator(this, function (_c) {
185
185
  switch (_c.label) {
186
186
  case 0:
@@ -207,23 +207,23 @@ var Model = /** @class */ (function () {
207
207
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
208
208
  case 3:
209
209
  httpRes = _c.sent();
210
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
210
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
211
211
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
212
212
  throw new Error("status code not found in response: ".concat(httpRes));
213
213
  }
214
214
  res = new operations.DeleteModelByIdResponse({
215
215
  statusCode: httpRes.status,
216
- contentType: contentType,
216
+ contentType: responseContentType,
217
217
  rawResponse: httpRes,
218
218
  });
219
219
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
220
220
  switch (true) {
221
221
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
222
- if (utils.matchContentType(contentType, "application/json")) {
222
+ if (utils.matchContentType(responseContentType, "application/json")) {
223
223
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteModelByIdResponseBody);
224
224
  }
225
225
  else {
226
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
226
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
227
227
  }
228
228
  break;
229
229
  }
@@ -241,7 +241,7 @@ var Model = /** @class */ (function () {
241
241
  Model.prototype.deleteModels3dId = function (id, requestBody, config) {
242
242
  var _a, _b;
243
243
  return __awaiter(this, void 0, void 0, function () {
244
- var req, baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
244
+ var req, baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
245
245
  var _d;
246
246
  return __generator(this, function (_e) {
247
247
  switch (_e.label) {
@@ -279,23 +279,23 @@ var Model = /** @class */ (function () {
279
279
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
280
280
  case 3:
281
281
  httpRes = _e.sent();
282
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
282
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
283
283
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
284
284
  throw new Error("status code not found in response: ".concat(httpRes));
285
285
  }
286
286
  res = new operations.DeleteModels3dIdResponse({
287
287
  statusCode: httpRes.status,
288
- contentType: contentType,
288
+ contentType: responseContentType,
289
289
  rawResponse: httpRes,
290
290
  });
291
291
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
292
292
  switch (true) {
293
293
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
294
- if (utils.matchContentType(contentType, "application/json")) {
294
+ if (utils.matchContentType(responseContentType, "application/json")) {
295
295
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteModels3dIdResponseBody);
296
296
  }
297
297
  else {
298
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
298
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
299
299
  }
300
300
  break;
301
301
  }
@@ -313,7 +313,7 @@ var Model = /** @class */ (function () {
313
313
  Model.prototype.getModelById = function (id, config) {
314
314
  var _a, _b;
315
315
  return __awaiter(this, void 0, void 0, function () {
316
- var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
316
+ var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
317
317
  return __generator(this, function (_c) {
318
318
  switch (_c.label) {
319
319
  case 0:
@@ -340,23 +340,23 @@ var Model = /** @class */ (function () {
340
340
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
341
341
  case 3:
342
342
  httpRes = _c.sent();
343
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
343
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
344
344
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
345
345
  throw new Error("status code not found in response: ".concat(httpRes));
346
346
  }
347
347
  res = new operations.GetModelByIdResponse({
348
348
  statusCode: httpRes.status,
349
- contentType: contentType,
349
+ contentType: responseContentType,
350
350
  rawResponse: httpRes,
351
351
  });
352
352
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
353
353
  switch (true) {
354
354
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
355
- if (utils.matchContentType(contentType, "application/json")) {
355
+ if (utils.matchContentType(responseContentType, "application/json")) {
356
356
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetModelByIdResponseBody);
357
357
  }
358
358
  else {
359
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
359
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
360
360
  }
361
361
  break;
362
362
  }
@@ -374,7 +374,7 @@ var Model = /** @class */ (function () {
374
374
  Model.prototype.getPlatformModels = function (limit, offset, config) {
375
375
  var _a, _b;
376
376
  return __awaiter(this, void 0, void 0, function () {
377
- var req, baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, contentType, res, decodedRes;
377
+ var req, baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
378
378
  return __generator(this, function (_c) {
379
379
  switch (_c.label) {
380
380
  case 0:
@@ -403,23 +403,23 @@ var Model = /** @class */ (function () {
403
403
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
404
404
  case 3:
405
405
  httpRes = _c.sent();
406
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
406
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
407
407
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
408
408
  throw new Error("status code not found in response: ".concat(httpRes));
409
409
  }
410
410
  res = new operations.GetPlatformModelsResponse({
411
411
  statusCode: httpRes.status,
412
- contentType: contentType,
412
+ contentType: responseContentType,
413
413
  rawResponse: httpRes,
414
414
  });
415
415
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
416
416
  switch (true) {
417
417
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
418
- if (utils.matchContentType(contentType, "application/json")) {
418
+ if (utils.matchContentType(responseContentType, "application/json")) {
419
419
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetPlatformModelsResponseBody);
420
420
  }
421
421
  else {
422
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
422
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
423
423
  }
424
424
  break;
425
425
  }
@@ -437,7 +437,7 @@ var Model = /** @class */ (function () {
437
437
  Model.prototype.postModels3dUpload = function (req, config) {
438
438
  var _a, _b;
439
439
  return __awaiter(this, void 0, void 0, function () {
440
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
440
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
441
441
  var _d;
442
442
  return __generator(this, function (_e) {
443
443
  switch (_e.label) {
@@ -474,23 +474,23 @@ var Model = /** @class */ (function () {
474
474
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
475
475
  case 3:
476
476
  httpRes = _e.sent();
477
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
477
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
478
478
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
479
479
  throw new Error("status code not found in response: ".concat(httpRes));
480
480
  }
481
481
  res = new operations.PostModels3dUploadResponse({
482
482
  statusCode: httpRes.status,
483
- contentType: contentType,
483
+ contentType: responseContentType,
484
484
  rawResponse: httpRes,
485
485
  });
486
486
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
487
487
  switch (true) {
488
488
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
489
- if (utils.matchContentType(contentType, "application/json")) {
489
+ if (utils.matchContentType(responseContentType, "application/json")) {
490
490
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.PostModels3dUploadResponseBody);
491
491
  }
492
492
  else {
493
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
493
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
494
494
  }
495
495
  break;
496
496
  }
package/dist/sdk/sdk.js CHANGED
@@ -52,9 +52,9 @@ var SDKConfiguration = /** @class */ (function () {
52
52
  function SDKConfiguration(init) {
53
53
  this.language = "typescript";
54
54
  this.openapiDocVersion = "v1.0.0";
55
- this.sdkVersion = "2.1.1";
56
- this.genVersion = "2.185.0";
57
- this.userAgent = "speakeasy-sdk/typescript 2.1.1 2.185.0 v1.0.0 @leonardo-ai/sdk";
55
+ this.sdkVersion = "2.1.2";
56
+ this.genVersion = "2.187.2";
57
+ this.userAgent = "speakeasy-sdk/typescript 2.1.2 2.187.2 v1.0.0 @leonardo-ai/sdk";
58
58
  Object.assign(this, init);
59
59
  }
60
60
  return SDKConfiguration;
package/dist/sdk/user.js CHANGED
@@ -91,7 +91,7 @@ var User = /** @class */ (function () {
91
91
  User.prototype.getUserSelf = function (config) {
92
92
  var _a, _b;
93
93
  return __awaiter(this, void 0, void 0, function () {
94
- var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
94
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
95
95
  return __generator(this, function (_c) {
96
96
  switch (_c.label) {
97
97
  case 0:
@@ -115,23 +115,23 @@ var User = /** @class */ (function () {
115
115
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
116
116
  case 3:
117
117
  httpRes = _c.sent();
118
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
118
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
119
119
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
120
120
  throw new Error("status code not found in response: ".concat(httpRes));
121
121
  }
122
122
  res = new operations.GetUserSelfResponse({
123
123
  statusCode: httpRes.status,
124
- contentType: contentType,
124
+ contentType: responseContentType,
125
125
  rawResponse: httpRes,
126
126
  });
127
127
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
128
128
  switch (true) {
129
129
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
130
- if (utils.matchContentType(contentType, "application/json")) {
130
+ if (utils.matchContentType(responseContentType, "application/json")) {
131
131
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetUserSelfResponseBody);
132
132
  }
133
133
  else {
134
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
134
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
135
135
  }
136
136
  break;
137
137
  }
@@ -107,7 +107,7 @@ var Variation = /** @class */ (function () {
107
107
  Variation.prototype.createVariationNoBG = function (req, config) {
108
108
  var _a, _b;
109
109
  return __awaiter(this, void 0, void 0, function () {
110
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
110
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
111
111
  var _d;
112
112
  return __generator(this, function (_e) {
113
113
  switch (_e.label) {
@@ -146,23 +146,23 @@ var Variation = /** @class */ (function () {
146
146
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
147
147
  case 3:
148
148
  httpRes = _e.sent();
149
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
149
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
150
150
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
151
151
  throw new Error("status code not found in response: ".concat(httpRes));
152
152
  }
153
153
  res = new operations.CreateVariationNoBGResponse({
154
154
  statusCode: httpRes.status,
155
- contentType: contentType,
155
+ contentType: responseContentType,
156
156
  rawResponse: httpRes,
157
157
  });
158
158
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
159
159
  switch (true) {
160
160
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
161
- if (utils.matchContentType(contentType, "application/json")) {
161
+ if (utils.matchContentType(responseContentType, "application/json")) {
162
162
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateVariationNoBGResponseBody);
163
163
  }
164
164
  else {
165
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
165
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
166
166
  }
167
167
  break;
168
168
  }
@@ -180,7 +180,7 @@ var Variation = /** @class */ (function () {
180
180
  Variation.prototype.createVariationUpscale = function (req, config) {
181
181
  var _a, _b;
182
182
  return __awaiter(this, void 0, void 0, function () {
183
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
183
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
184
184
  var _d;
185
185
  return __generator(this, function (_e) {
186
186
  switch (_e.label) {
@@ -217,23 +217,23 @@ var Variation = /** @class */ (function () {
217
217
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
218
218
  case 3:
219
219
  httpRes = _e.sent();
220
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
220
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
221
221
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
222
222
  throw new Error("status code not found in response: ".concat(httpRes));
223
223
  }
224
224
  res = new operations.CreateVariationUpscaleResponse({
225
225
  statusCode: httpRes.status,
226
- contentType: contentType,
226
+ contentType: responseContentType,
227
227
  rawResponse: httpRes,
228
228
  });
229
229
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
230
230
  switch (true) {
231
231
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
232
- if (utils.matchContentType(contentType, "application/json")) {
232
+ if (utils.matchContentType(responseContentType, "application/json")) {
233
233
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateVariationUpscaleResponseBody);
234
234
  }
235
235
  else {
236
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
236
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
237
237
  }
238
238
  break;
239
239
  }
@@ -251,7 +251,7 @@ var Variation = /** @class */ (function () {
251
251
  Variation.prototype.getVariationById = function (id, config) {
252
252
  var _a, _b;
253
253
  return __awaiter(this, void 0, void 0, function () {
254
- var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
254
+ var req, baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
255
255
  return __generator(this, function (_c) {
256
256
  switch (_c.label) {
257
257
  case 0:
@@ -278,23 +278,23 @@ var Variation = /** @class */ (function () {
278
278
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
279
279
  case 3:
280
280
  httpRes = _c.sent();
281
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
281
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
282
282
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
283
283
  throw new Error("status code not found in response: ".concat(httpRes));
284
284
  }
285
285
  res = new operations.GetVariationByIdResponse({
286
286
  statusCode: httpRes.status,
287
- contentType: contentType,
287
+ contentType: responseContentType,
288
288
  rawResponse: httpRes,
289
289
  });
290
290
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
291
291
  switch (true) {
292
292
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
293
- if (utils.matchContentType(contentType, "application/json")) {
293
+ if (utils.matchContentType(responseContentType, "application/json")) {
294
294
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetVariationByIdResponseBody);
295
295
  }
296
296
  else {
297
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
297
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
298
298
  }
299
299
  break;
300
300
  }
@@ -312,7 +312,7 @@ var Variation = /** @class */ (function () {
312
312
  Variation.prototype.postVariationsUnzoom = function (req, config) {
313
313
  var _a, _b;
314
314
  return __awaiter(this, void 0, void 0, function () {
315
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, contentType, res, decodedRes;
315
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
316
316
  var _d;
317
317
  return __generator(this, function (_e) {
318
318
  switch (_e.label) {
@@ -349,23 +349,23 @@ var Variation = /** @class */ (function () {
349
349
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
350
350
  case 3:
351
351
  httpRes = _e.sent();
352
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
352
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
353
353
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
354
354
  throw new Error("status code not found in response: ".concat(httpRes));
355
355
  }
356
356
  res = new operations.PostVariationsUnzoomResponse({
357
357
  statusCode: httpRes.status,
358
- contentType: contentType,
358
+ contentType: responseContentType,
359
359
  rawResponse: httpRes,
360
360
  });
361
361
  decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
362
362
  switch (true) {
363
363
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
364
- if (utils.matchContentType(contentType, "application/json")) {
364
+ if (utils.matchContentType(responseContentType, "application/json")) {
365
365
  res.object = utils.objectToClass(JSON.parse(decodedRes), operations.PostVariationsUnzoomResponseBody);
366
366
  }
367
367
  else {
368
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
368
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
369
369
  }
370
370
  break;
371
371
  }
File without changes
File without changes
File without changes
File without changes
File without changes