files.com 1.2.249 → 1.2.251

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 (90) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/User.md +4 -1
  3. package/lib/Api.js +72 -71
  4. package/lib/Files.js +1 -1
  5. package/lib/isomorphic/File.node.js +5 -5
  6. package/lib/models/ActionNotificationExport.js +38 -38
  7. package/lib/models/ActionNotificationExportResult.js +14 -14
  8. package/lib/models/ApiKey.js +100 -100
  9. package/lib/models/ApiRequestLog.js +8 -8
  10. package/lib/models/App.js +8 -8
  11. package/lib/models/As2IncomingMessage.js +10 -10
  12. package/lib/models/As2OutgoingMessage.js +10 -10
  13. package/lib/models/As2Partner.js +101 -101
  14. package/lib/models/As2Station.js +81 -81
  15. package/lib/models/Automation.js +167 -167
  16. package/lib/models/AutomationLog.js +8 -8
  17. package/lib/models/AutomationRun.js +24 -24
  18. package/lib/models/BandwidthSnapshot.js +8 -8
  19. package/lib/models/Behavior.js +106 -106
  20. package/lib/models/Bundle.js +143 -143
  21. package/lib/models/BundleAction.js +10 -10
  22. package/lib/models/BundleDownload.js +12 -12
  23. package/lib/models/BundleNotification.js +69 -69
  24. package/lib/models/BundleRecipient.js +40 -40
  25. package/lib/models/BundleRegistration.js +12 -12
  26. package/lib/models/Clickwrap.js +79 -79
  27. package/lib/models/DnsRecord.js +8 -8
  28. package/lib/models/EmailIncomingMessage.js +8 -8
  29. package/lib/models/EmailLog.js +8 -8
  30. package/lib/models/ExavaultApiRequestLog.js +8 -8
  31. package/lib/models/ExternalEvent.js +36 -36
  32. package/lib/models/File.js +269 -269
  33. package/lib/models/FileComment.js +70 -70
  34. package/lib/models/FileCommentReaction.js +34 -34
  35. package/lib/models/FileMigration.js +10 -10
  36. package/lib/models/FileMigrationLog.js +8 -8
  37. package/lib/models/Folder.js +36 -36
  38. package/lib/models/FormFieldSet.js +71 -71
  39. package/lib/models/FtpActionLog.js +8 -8
  40. package/lib/models/GpgKey.js +81 -81
  41. package/lib/models/Group.js +83 -83
  42. package/lib/models/GroupUser.js +89 -89
  43. package/lib/models/History.js +88 -88
  44. package/lib/models/HistoryExport.js +64 -64
  45. package/lib/models/HistoryExportResult.js +14 -14
  46. package/lib/models/InboxRecipient.js +36 -36
  47. package/lib/models/InboxRegistration.js +10 -10
  48. package/lib/models/InboxUpload.js +8 -8
  49. package/lib/models/Invoice.js +18 -18
  50. package/lib/models/IpAddress.js +32 -32
  51. package/lib/models/Lock.js +51 -51
  52. package/lib/models/Message.js +100 -100
  53. package/lib/models/MessageComment.js +78 -78
  54. package/lib/models/MessageCommentReaction.js +54 -54
  55. package/lib/models/MessageReaction.js +54 -54
  56. package/lib/models/Notification.js +91 -91
  57. package/lib/models/OutboundConnectionLog.js +8 -8
  58. package/lib/models/Payment.js +18 -18
  59. package/lib/models/Permission.js +54 -54
  60. package/lib/models/Priority.js +14 -14
  61. package/lib/models/Project.js +70 -70
  62. package/lib/models/PublicHostingRequestLog.js +8 -8
  63. package/lib/models/PublicKey.js +78 -78
  64. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  65. package/lib/models/RemoteServer.js +362 -362
  66. package/lib/models/Request.js +60 -60
  67. package/lib/models/Restore.js +24 -24
  68. package/lib/models/Session.js +21 -21
  69. package/lib/models/SettingsChange.js +8 -8
  70. package/lib/models/SftpActionLog.js +8 -8
  71. package/lib/models/SftpHostKey.js +67 -67
  72. package/lib/models/ShareGroup.js +79 -79
  73. package/lib/models/SiemHttpDestination.js +158 -158
  74. package/lib/models/Site.js +150 -150
  75. package/lib/models/Snapshot.js +85 -85
  76. package/lib/models/SsoStrategy.js +32 -32
  77. package/lib/models/Style.js +48 -48
  78. package/lib/models/SyncLog.js +8 -8
  79. package/lib/models/UsageDailySnapshot.js +8 -8
  80. package/lib/models/UsageSnapshot.js +8 -8
  81. package/lib/models/User.js +223 -215
  82. package/lib/models/UserCipherUse.js +10 -10
  83. package/lib/models/UserLifecycleRule.js +92 -92
  84. package/lib/models/UserRequest.js +56 -56
  85. package/lib/models/UserSftpClientUse.js +10 -10
  86. package/lib/models/WebDavActionLog.js +8 -8
  87. package/lib/models/WebhookTest.js +24 -24
  88. package/package.json +1 -1
  89. package/src/Files.js +1 -1
  90. package/src/models/User.js +6 -0
@@ -85,46 +85,46 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
85
85
  (0, _defineProperty2.default)(this, "finalize", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
86
86
  var params,
87
87
  _args = arguments;
88
- return _regenerator.default.wrap(function _callee$(_context) {
88
+ return _regenerator.default.wrap(function (_context) {
89
89
  while (1) switch (_context.prev = _context.next) {
90
90
  case 0:
91
91
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
92
92
  if (_this.attributes.id) {
93
- _context.next = 3;
93
+ _context.next = 1;
94
94
  break;
95
95
  }
96
96
  throw new errors.EmptyPropertyError('Current object has no id');
97
- case 3:
97
+ case 1:
98
98
  if ((0, _utils.isObject)(params)) {
99
- _context.next = 5;
99
+ _context.next = 2;
100
100
  break;
101
101
  }
102
102
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
103
- case 5:
103
+ case 2:
104
104
  params.id = _this.attributes.id;
105
105
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
106
- _context.next = 8;
106
+ _context.next = 3;
107
107
  break;
108
108
  }
109
109
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
110
- case 8:
110
+ case 3:
111
111
  if (params.id) {
112
- _context.next = 14;
112
+ _context.next = 5;
113
113
  break;
114
114
  }
115
115
  if (!_this.attributes.id) {
116
- _context.next = 13;
116
+ _context.next = 4;
117
117
  break;
118
118
  }
119
119
  params.id = _this.id;
120
- _context.next = 14;
120
+ _context.next = 5;
121
121
  break;
122
- case 13:
122
+ case 4:
123
123
  throw new errors.MissingParameterError('Parameter missing: id');
124
- case 14:
125
- _context.next = 16;
124
+ case 5:
125
+ _context.next = 6;
126
126
  return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params.id), "/finalize"), 'POST', params, _this.options);
127
- case 16:
127
+ case 6:
128
128
  case "end":
129
129
  return _context.stop();
130
130
  }
@@ -138,67 +138,67 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
138
138
  var params,
139
139
  response,
140
140
  _args2 = arguments;
141
- return _regenerator.default.wrap(function _callee2$(_context2) {
141
+ return _regenerator.default.wrap(function (_context2) {
142
142
  while (1) switch (_context2.prev = _context2.next) {
143
143
  case 0:
144
144
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
145
145
  if (_this.attributes.id) {
146
- _context2.next = 3;
146
+ _context2.next = 1;
147
147
  break;
148
148
  }
149
149
  throw new errors.EmptyPropertyError('Current object has no id');
150
- case 3:
150
+ case 1:
151
151
  if ((0, _utils.isObject)(params)) {
152
- _context2.next = 5;
152
+ _context2.next = 2;
153
153
  break;
154
154
  }
155
155
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
156
- case 5:
156
+ case 2:
157
157
  params.id = _this.attributes.id;
158
158
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
159
- _context2.next = 8;
159
+ _context2.next = 3;
160
160
  break;
161
161
  }
162
162
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
163
- case 8:
163
+ case 3:
164
164
  if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
165
- _context2.next = 10;
165
+ _context2.next = 4;
166
166
  break;
167
167
  }
168
168
  throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
169
- case 10:
169
+ case 4:
170
170
  if (!(params.name && !(0, _utils.isString)(params.name))) {
171
- _context2.next = 12;
171
+ _context2.next = 5;
172
172
  break;
173
173
  }
174
174
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
175
- case 12:
175
+ case 5:
176
176
  if (!(params.paths && !(0, _utils.isArray)(params.paths))) {
177
- _context2.next = 14;
177
+ _context2.next = 6;
178
178
  break;
179
179
  }
180
180
  throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params.paths)));
181
- case 14:
181
+ case 6:
182
182
  if (params.id) {
183
- _context2.next = 20;
183
+ _context2.next = 8;
184
184
  break;
185
185
  }
186
186
  if (!_this.attributes.id) {
187
- _context2.next = 19;
187
+ _context2.next = 7;
188
188
  break;
189
189
  }
190
190
  params.id = _this.id;
191
- _context2.next = 20;
191
+ _context2.next = 8;
192
192
  break;
193
- case 19:
193
+ case 7:
194
194
  throw new errors.MissingParameterError('Parameter missing: id');
195
- case 20:
196
- _context2.next = 22;
195
+ case 8:
196
+ _context2.next = 9;
197
197
  return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
198
- case 22:
198
+ case 9:
199
199
  response = _context2.sent;
200
200
  return _context2.abrupt("return", new Snapshot(response === null || response === void 0 ? void 0 : response.data, _this.options));
201
- case 24:
201
+ case 10:
202
202
  case "end":
203
203
  return _context2.stop();
204
204
  }
@@ -207,46 +207,46 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
207
207
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
208
208
  var params,
209
209
  _args3 = arguments;
210
- return _regenerator.default.wrap(function _callee3$(_context3) {
210
+ return _regenerator.default.wrap(function (_context3) {
211
211
  while (1) switch (_context3.prev = _context3.next) {
212
212
  case 0:
213
213
  params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
214
214
  if (_this.attributes.id) {
215
- _context3.next = 3;
215
+ _context3.next = 1;
216
216
  break;
217
217
  }
218
218
  throw new errors.EmptyPropertyError('Current object has no id');
219
- case 3:
219
+ case 1:
220
220
  if ((0, _utils.isObject)(params)) {
221
- _context3.next = 5;
221
+ _context3.next = 2;
222
222
  break;
223
223
  }
224
224
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
225
- case 5:
225
+ case 2:
226
226
  params.id = _this.attributes.id;
227
227
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
228
- _context3.next = 8;
228
+ _context3.next = 3;
229
229
  break;
230
230
  }
231
231
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
232
- case 8:
232
+ case 3:
233
233
  if (params.id) {
234
- _context3.next = 14;
234
+ _context3.next = 5;
235
235
  break;
236
236
  }
237
237
  if (!_this.attributes.id) {
238
- _context3.next = 13;
238
+ _context3.next = 4;
239
239
  break;
240
240
  }
241
241
  params.id = _this.id;
242
- _context3.next = 14;
242
+ _context3.next = 5;
243
243
  break;
244
- case 13:
244
+ case 4:
245
245
  throw new errors.MissingParameterError('Parameter missing: id');
246
- case 14:
247
- _context3.next = 16;
246
+ case 5:
247
+ _context3.next = 6;
248
248
  return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
249
- case 16:
249
+ case 6:
250
250
  case "end":
251
251
  return _context3.stop();
252
252
  }
@@ -258,27 +258,27 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
258
258
  });
259
259
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
260
260
  var _newObject, newObject;
261
- return _regenerator.default.wrap(function _callee4$(_context4) {
261
+ return _regenerator.default.wrap(function (_context4) {
262
262
  while (1) switch (_context4.prev = _context4.next) {
263
263
  case 0:
264
264
  if (!_this.attributes.id) {
265
- _context4.next = 6;
265
+ _context4.next = 2;
266
266
  break;
267
267
  }
268
- _context4.next = 3;
268
+ _context4.next = 1;
269
269
  return _this.update(_this.attributes);
270
- case 3:
270
+ case 1:
271
271
  _newObject = _context4.sent;
272
272
  _this.attributes = _objectSpread({}, _newObject.attributes);
273
273
  return _context4.abrupt("return", true);
274
- case 6:
275
- _context4.next = 8;
274
+ case 2:
275
+ _context4.next = 3;
276
276
  return Snapshot.create(_this.attributes, _this.options);
277
- case 8:
277
+ case 3:
278
278
  newObject = _context4.sent;
279
279
  _this.attributes = _objectSpread({}, newObject.attributes);
280
280
  return _context4.abrupt("return", true);
281
- case 11:
281
+ case 4:
282
282
  case "end":
283
283
  return _context4.stop();
284
284
  }
@@ -307,31 +307,31 @@ _Snapshot = Snapshot;
307
307
  options,
308
308
  response,
309
309
  _args5 = arguments;
310
- return _regenerator.default.wrap(function _callee5$(_context5) {
310
+ return _regenerator.default.wrap(function (_context5) {
311
311
  while (1) switch (_context5.prev = _context5.next) {
312
312
  case 0:
313
313
  params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
314
314
  options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
315
315
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
316
- _context5.next = 4;
316
+ _context5.next = 1;
317
317
  break;
318
318
  }
319
319
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
320
- case 4:
320
+ case 1:
321
321
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
322
- _context5.next = 6;
322
+ _context5.next = 2;
323
323
  break;
324
324
  }
325
325
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
326
- case 6:
327
- _context5.next = 8;
326
+ case 2:
327
+ _context5.next = 3;
328
328
  return _Api.default.sendRequest('/snapshots', 'GET', params, options);
329
- case 8:
329
+ case 3:
330
330
  response = _context5.sent;
331
331
  return _context5.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
332
332
  return new _Snapshot(obj, options);
333
333
  })) || []);
334
- case 10:
334
+ case 4:
335
335
  case "end":
336
336
  return _context5.stop();
337
337
  }
@@ -350,36 +350,36 @@ _Snapshot = Snapshot;
350
350
  options,
351
351
  response,
352
352
  _args6 = arguments;
353
- return _regenerator.default.wrap(function _callee6$(_context6) {
353
+ return _regenerator.default.wrap(function (_context6) {
354
354
  while (1) switch (_context6.prev = _context6.next) {
355
355
  case 0:
356
356
  params = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
357
357
  options = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : {};
358
358
  if ((0, _utils.isObject)(params)) {
359
- _context6.next = 4;
359
+ _context6.next = 1;
360
360
  break;
361
361
  }
362
362
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
363
- case 4:
363
+ case 1:
364
364
  params.id = id;
365
365
  if (params.id) {
366
- _context6.next = 7;
366
+ _context6.next = 2;
367
367
  break;
368
368
  }
369
369
  throw new errors.MissingParameterError('Parameter missing: id');
370
- case 7:
370
+ case 2:
371
371
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
372
- _context6.next = 9;
372
+ _context6.next = 3;
373
373
  break;
374
374
  }
375
375
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
376
- case 9:
377
- _context6.next = 11;
376
+ case 3:
377
+ _context6.next = 4;
378
378
  return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params.id)), 'GET', params, options);
379
- case 11:
379
+ case 4:
380
380
  response = _context6.sent;
381
381
  return _context6.abrupt("return", new _Snapshot(response === null || response === void 0 ? void 0 : response.data, options));
382
- case 13:
382
+ case 5:
383
383
  case "end":
384
384
  return _context6.stop();
385
385
  }
@@ -403,35 +403,35 @@ _Snapshot = Snapshot;
403
403
  options,
404
404
  response,
405
405
  _args7 = arguments;
406
- return _regenerator.default.wrap(function _callee7$(_context7) {
406
+ return _regenerator.default.wrap(function (_context7) {
407
407
  while (1) switch (_context7.prev = _context7.next) {
408
408
  case 0:
409
409
  params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
410
410
  options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
411
411
  if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
412
- _context7.next = 4;
412
+ _context7.next = 1;
413
413
  break;
414
414
  }
415
415
  throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
416
- case 4:
416
+ case 1:
417
417
  if (!(params.name && !(0, _utils.isString)(params.name))) {
418
- _context7.next = 6;
418
+ _context7.next = 2;
419
419
  break;
420
420
  }
421
421
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
422
- case 6:
422
+ case 2:
423
423
  if (!(params.paths && !(0, _utils.isArray)(params.paths))) {
424
- _context7.next = 8;
424
+ _context7.next = 3;
425
425
  break;
426
426
  }
427
427
  throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params.paths)));
428
- case 8:
429
- _context7.next = 10;
428
+ case 3:
429
+ _context7.next = 4;
430
430
  return _Api.default.sendRequest('/snapshots', 'POST', params, options);
431
- case 10:
431
+ case 4:
432
432
  response = _context7.sent;
433
433
  return _context7.abrupt("return", new _Snapshot(response === null || response === void 0 ? void 0 : response.data, options));
434
- case 12:
434
+ case 5:
435
435
  case "end":
436
436
  return _context7.stop();
437
437
  }
@@ -228,46 +228,46 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
228
228
  (0, _defineProperty2.default)(this, "sync", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
229
229
  var params,
230
230
  _args = arguments;
231
- return _regenerator.default.wrap(function _callee$(_context) {
231
+ return _regenerator.default.wrap(function (_context) {
232
232
  while (1) switch (_context.prev = _context.next) {
233
233
  case 0:
234
234
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
235
235
  if (_this.attributes.id) {
236
- _context.next = 3;
236
+ _context.next = 1;
237
237
  break;
238
238
  }
239
239
  throw new errors.EmptyPropertyError('Current object has no id');
240
- case 3:
240
+ case 1:
241
241
  if ((0, _utils.isObject)(params)) {
242
- _context.next = 5;
242
+ _context.next = 2;
243
243
  break;
244
244
  }
245
245
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
246
- case 5:
246
+ case 2:
247
247
  params.id = _this.attributes.id;
248
248
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
249
- _context.next = 8;
249
+ _context.next = 3;
250
250
  break;
251
251
  }
252
252
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
253
- case 8:
253
+ case 3:
254
254
  if (params.id) {
255
- _context.next = 14;
255
+ _context.next = 5;
256
256
  break;
257
257
  }
258
258
  if (!_this.attributes.id) {
259
- _context.next = 13;
259
+ _context.next = 4;
260
260
  break;
261
261
  }
262
262
  params.id = _this.id;
263
- _context.next = 14;
263
+ _context.next = 5;
264
264
  break;
265
- case 13:
265
+ case 4:
266
266
  throw new errors.MissingParameterError('Parameter missing: id');
267
- case 14:
268
- _context.next = 16;
267
+ case 5:
268
+ _context.next = 6;
269
269
  return _Api.default.sendRequest("/sso_strategies/".concat(encodeURIComponent(params.id), "/sync"), 'POST', params, _this.options);
270
- case 16:
270
+ case 6:
271
271
  case "end":
272
272
  return _context.stop();
273
273
  }
@@ -297,31 +297,31 @@ _SsoStrategy = SsoStrategy;
297
297
  options,
298
298
  response,
299
299
  _args2 = arguments;
300
- return _regenerator.default.wrap(function _callee2$(_context2) {
300
+ return _regenerator.default.wrap(function (_context2) {
301
301
  while (1) switch (_context2.prev = _context2.next) {
302
302
  case 0:
303
303
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
304
304
  options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
305
305
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
306
- _context2.next = 4;
306
+ _context2.next = 1;
307
307
  break;
308
308
  }
309
309
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
310
- case 4:
310
+ case 1:
311
311
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
312
- _context2.next = 6;
312
+ _context2.next = 2;
313
313
  break;
314
314
  }
315
315
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
316
- case 6:
317
- _context2.next = 8;
316
+ case 2:
317
+ _context2.next = 3;
318
318
  return _Api.default.sendRequest('/sso_strategies', 'GET', params, options);
319
- case 8:
319
+ case 3:
320
320
  response = _context2.sent;
321
321
  return _context2.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
322
322
  return new _SsoStrategy(obj, options);
323
323
  })) || []);
324
- case 10:
324
+ case 4:
325
325
  case "end":
326
326
  return _context2.stop();
327
327
  }
@@ -340,36 +340,36 @@ _SsoStrategy = SsoStrategy;
340
340
  options,
341
341
  response,
342
342
  _args3 = arguments;
343
- return _regenerator.default.wrap(function _callee3$(_context3) {
343
+ return _regenerator.default.wrap(function (_context3) {
344
344
  while (1) switch (_context3.prev = _context3.next) {
345
345
  case 0:
346
346
  params = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
347
347
  options = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : {};
348
348
  if ((0, _utils.isObject)(params)) {
349
- _context3.next = 4;
349
+ _context3.next = 1;
350
350
  break;
351
351
  }
352
352
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
353
- case 4:
353
+ case 1:
354
354
  params.id = id;
355
355
  if (params.id) {
356
- _context3.next = 7;
356
+ _context3.next = 2;
357
357
  break;
358
358
  }
359
359
  throw new errors.MissingParameterError('Parameter missing: id');
360
- case 7:
360
+ case 2:
361
361
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
362
- _context3.next = 9;
362
+ _context3.next = 3;
363
363
  break;
364
364
  }
365
365
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
366
- case 9:
367
- _context3.next = 11;
366
+ case 3:
367
+ _context3.next = 4;
368
368
  return _Api.default.sendRequest("/sso_strategies/".concat(encodeURIComponent(params.id)), 'GET', params, options);
369
- case 11:
369
+ case 4:
370
370
  response = _context3.sent;
371
371
  return _context3.abrupt("return", new _SsoStrategy(response === null || response === void 0 ? void 0 : response.data, options));
372
- case 13:
372
+ case 5:
373
373
  case "end":
374
374
  return _context3.stop();
375
375
  }