@vertexvis/api-client-node 0.30.3 → 0.32.0

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.
package/dist/esm/api.js CHANGED
@@ -60,6 +60,12 @@ export const ClearRepOpTypeEnum = {
60
60
  export const ClearTransformOpTypeEnum = {
61
61
  ClearTransform: 'clear-transform',
62
62
  };
63
+ export const CollaborationContextRelationshipDataTypeEnum = {
64
+ CollaborationContext: 'collaboration-context',
65
+ };
66
+ export const CreateCollaborationContextRequestDataTypeEnum = {
67
+ CollaborationContext: 'collaboration-context',
68
+ };
63
69
  export const CreateFileCollectionRequestDataTypeEnum = {
64
70
  FileCollection: 'file-collection',
65
71
  };
@@ -72,6 +78,9 @@ export const CreatePermissionGrantDataTypeEnum = {
72
78
  export const CreatePermissionGrantDataAttributesCapabilityEnum = {
73
79
  Read: 'read',
74
80
  };
81
+ export const CreateReplyRequestDataTypeEnum = {
82
+ Reply: 'reply',
83
+ };
75
84
  export const CreateSceneExpressionAlterationRequestDataTypeEnum = {
76
85
  SceneAlterationExpression: 'scene-alteration-expression',
77
86
  };
@@ -83,6 +92,15 @@ export const CreateSceneItemRequestDataAttributesResolutionRuleEnum = {
83
92
  export const CreateSearchSessionRequestDataTypeEnum = {
84
93
  SearchSession: 'search-session',
85
94
  };
95
+ export const CreateThreadRequestDataTypeEnum = {
96
+ Thread: 'thread',
97
+ };
98
+ export const CreateUserGroupRequestDataTypeEnum = {
99
+ UserGroup: 'user-group',
100
+ };
101
+ export const CreateUserRequestDataTypeEnum = {
102
+ User: 'user',
103
+ };
86
104
  export const DeselectOperationTypeEnum = {
87
105
  Deselect: 'deselect',
88
106
  };
@@ -181,6 +199,9 @@ export const QueryBySceneItemIdsTypeEnum = {
181
199
  export const QueryBySceneItemMetadataTypeEnum = {
182
200
  QueryByMetadata: 'query-by-metadata',
183
201
  };
202
+ export const ReplyDataTypeEnum = {
203
+ Reply: 'reply',
204
+ };
184
205
  export const SceneItemAndExpressionTypeEnum = {
185
206
  And: 'and',
186
207
  };
@@ -211,6 +232,30 @@ export const SelectFileBySuppliedIdTypeEnum = {
211
232
  export const SelectOpTypeEnum = {
212
233
  Select: 'select',
213
234
  };
235
+ export const ThreadDataTypeEnum = {
236
+ Thread: 'thread',
237
+ };
238
+ export const ThreadRelationshipDataTypeEnum = {
239
+ Thread: 'thread',
240
+ };
241
+ /**
242
+ *
243
+ * @export
244
+ * @enum {string}
245
+ */
246
+ export const ThreadStatus = {
247
+ Open: 'open',
248
+ Resolved: 'resolved',
249
+ };
250
+ /**
251
+ *
252
+ * @export
253
+ * @enum {string}
254
+ */
255
+ export const ThreadType = {
256
+ Comment: 'comment',
257
+ Issue: 'issue',
258
+ };
214
259
  export const UpdateAccountRequestDataAttributesStatusEnum = {
215
260
  Active: 'active',
216
261
  Disabled: 'disabled',
@@ -229,6 +274,15 @@ export const UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
229
274
  Active: 'active',
230
275
  Paused: 'paused',
231
276
  };
277
+ export const UserGroupIdTypeEnum = {
278
+ UserGroup: 'user-group',
279
+ };
280
+ export const UserIdTypeEnum = {
281
+ User: 'user',
282
+ };
283
+ export const UserRelationshipDataTypeEnum = {
284
+ User: 'user',
285
+ };
232
286
  export const ViewDefaultRenOpTypeEnum = {
233
287
  ViewDefaultRendition: 'view-default-rendition',
234
288
  };
@@ -1255,6 +1309,320 @@ export class BatchesApi extends BaseAPI {
1255
1309
  .then((request) => request(this.axios, this.basePath));
1256
1310
  }
1257
1311
  }
1312
+ /**
1313
+ * CollaborationContextsApi - axios parameter creator
1314
+ * @export
1315
+ */
1316
+ export const CollaborationContextsApiAxiosParamCreator = function (configuration) {
1317
+ return {
1318
+ /**
1319
+ * Create a `collaboration-context`.
1320
+ * @param {string} id The `collaboration-context` ID.
1321
+ * @param {UserGroupIdsList} userGroupIdsList
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ */
1325
+ addCollaborationContextUserGroups: (id, userGroupIdsList, options = {}) => __awaiter(this, void 0, void 0, function* () {
1326
+ var _a;
1327
+ // verify required parameter 'id' is not null or undefined
1328
+ assertParamExists('addCollaborationContextUserGroups', 'id', id);
1329
+ // verify required parameter 'userGroupIdsList' is not null or undefined
1330
+ assertParamExists('addCollaborationContextUserGroups', 'userGroupIdsList', userGroupIdsList);
1331
+ const localVarPath = `/collaboration-contexts/{id}/user-groups`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1332
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1333
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1334
+ let baseOptions;
1335
+ if (configuration) {
1336
+ baseOptions = configuration.baseOptions;
1337
+ }
1338
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1339
+ const localVarHeaderParameter = {};
1340
+ const localVarQueryParameter = {};
1341
+ // authentication OAuth2 required
1342
+ // oauth required
1343
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1344
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
1345
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1346
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
1347
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1348
+ localVarRequestOptions.data = serializeDataIfNeeded(userGroupIdsList, localVarRequestOptions, configuration);
1349
+ return {
1350
+ url: toPathString(localVarUrlObj),
1351
+ options: localVarRequestOptions,
1352
+ };
1353
+ }),
1354
+ /**
1355
+ * Create a `collaboration-context`.
1356
+ * @param {CreateCollaborationContextRequest} createCollaborationContextRequest
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ createCollaborationContext: (createCollaborationContextRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1361
+ var _b;
1362
+ // verify required parameter 'createCollaborationContextRequest' is not null or undefined
1363
+ assertParamExists('createCollaborationContext', 'createCollaborationContextRequest', createCollaborationContextRequest);
1364
+ const localVarPath = `/collaboration-contexts`;
1365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1366
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1367
+ let baseOptions;
1368
+ if (configuration) {
1369
+ baseOptions = configuration.baseOptions;
1370
+ }
1371
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1372
+ const localVarHeaderParameter = {};
1373
+ const localVarQueryParameter = {};
1374
+ // authentication OAuth2 required
1375
+ // oauth required
1376
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1377
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
1378
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1379
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
1380
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1381
+ localVarRequestOptions.data = serializeDataIfNeeded(createCollaborationContextRequest, localVarRequestOptions, configuration);
1382
+ return {
1383
+ url: toPathString(localVarUrlObj),
1384
+ options: localVarRequestOptions,
1385
+ };
1386
+ }),
1387
+ /**
1388
+ * Get a `collaboration-context` by ID.
1389
+ * @param {string} id The `collaboration-context` ID.
1390
+ * @param {*} [options] Override http request option.
1391
+ * @throws {RequiredError}
1392
+ */
1393
+ getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1394
+ var _c;
1395
+ // verify required parameter 'id' is not null or undefined
1396
+ assertParamExists('getCollaborationContext', 'id', id);
1397
+ const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1398
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1399
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1400
+ let baseOptions;
1401
+ if (configuration) {
1402
+ baseOptions = configuration.baseOptions;
1403
+ }
1404
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1405
+ const localVarHeaderParameter = {};
1406
+ const localVarQueryParameter = {};
1407
+ // authentication OAuth2 required
1408
+ // oauth required
1409
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1410
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1411
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
1412
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1413
+ return {
1414
+ url: toPathString(localVarUrlObj),
1415
+ options: localVarRequestOptions,
1416
+ };
1417
+ }),
1418
+ /**
1419
+ * List `collaboration-context`s
1420
+ * @param {string} [pageCursor] The cursor for the next page of items.
1421
+ * @param {number} [pageSize] The number of items to return.
1422
+ * @param {*} [options] Override http request option.
1423
+ * @throws {RequiredError}
1424
+ */
1425
+ listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
1426
+ var _d;
1427
+ const localVarPath = `/collaboration-contexts`;
1428
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1429
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1430
+ let baseOptions;
1431
+ if (configuration) {
1432
+ baseOptions = configuration.baseOptions;
1433
+ }
1434
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1435
+ const localVarHeaderParameter = {};
1436
+ const localVarQueryParameter = {};
1437
+ // authentication OAuth2 required
1438
+ // oauth required
1439
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1440
+ if (pageCursor !== undefined) {
1441
+ localVarQueryParameter['page[cursor]'] = pageCursor;
1442
+ }
1443
+ if (pageSize !== undefined) {
1444
+ localVarQueryParameter['page[size]'] = pageSize;
1445
+ }
1446
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1447
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
1448
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1449
+ return {
1450
+ url: toPathString(localVarUrlObj),
1451
+ options: localVarRequestOptions,
1452
+ };
1453
+ }),
1454
+ };
1455
+ };
1456
+ /**
1457
+ * CollaborationContextsApi - functional programming interface
1458
+ * @export
1459
+ */
1460
+ export const CollaborationContextsApiFp = function (configuration) {
1461
+ const localVarAxiosParamCreator = CollaborationContextsApiAxiosParamCreator(configuration);
1462
+ return {
1463
+ /**
1464
+ * Create a `collaboration-context`.
1465
+ * @param {string} id The `collaboration-context` ID.
1466
+ * @param {UserGroupIdsList} userGroupIdsList
1467
+ * @param {*} [options] Override http request option.
1468
+ * @throws {RequiredError}
1469
+ */
1470
+ addCollaborationContextUserGroups(id, userGroupIdsList, options) {
1471
+ return __awaiter(this, void 0, void 0, function* () {
1472
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addCollaborationContextUserGroups(id, userGroupIdsList, options);
1473
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1474
+ });
1475
+ },
1476
+ /**
1477
+ * Create a `collaboration-context`.
1478
+ * @param {CreateCollaborationContextRequest} createCollaborationContextRequest
1479
+ * @param {*} [options] Override http request option.
1480
+ * @throws {RequiredError}
1481
+ */
1482
+ createCollaborationContext(createCollaborationContextRequest, options) {
1483
+ return __awaiter(this, void 0, void 0, function* () {
1484
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCollaborationContext(createCollaborationContextRequest, options);
1485
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1486
+ });
1487
+ },
1488
+ /**
1489
+ * Get a `collaboration-context` by ID.
1490
+ * @param {string} id The `collaboration-context` ID.
1491
+ * @param {*} [options] Override http request option.
1492
+ * @throws {RequiredError}
1493
+ */
1494
+ getCollaborationContext(id, options) {
1495
+ return __awaiter(this, void 0, void 0, function* () {
1496
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollaborationContext(id, options);
1497
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1498
+ });
1499
+ },
1500
+ /**
1501
+ * List `collaboration-context`s
1502
+ * @param {string} [pageCursor] The cursor for the next page of items.
1503
+ * @param {number} [pageSize] The number of items to return.
1504
+ * @param {*} [options] Override http request option.
1505
+ * @throws {RequiredError}
1506
+ */
1507
+ listCollaborationContexts(pageCursor, pageSize, options) {
1508
+ return __awaiter(this, void 0, void 0, function* () {
1509
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCollaborationContexts(pageCursor, pageSize, options);
1510
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1511
+ });
1512
+ },
1513
+ };
1514
+ };
1515
+ /**
1516
+ * CollaborationContextsApi - factory interface
1517
+ * @export
1518
+ */
1519
+ export const CollaborationContextsApiFactory = function (configuration, basePath, axios) {
1520
+ const localVarFp = CollaborationContextsApiFp(configuration);
1521
+ return {
1522
+ /**
1523
+ * Create a `collaboration-context`.
1524
+ * @param {string} id The `collaboration-context` ID.
1525
+ * @param {UserGroupIdsList} userGroupIdsList
1526
+ * @param {*} [options] Override http request option.
1527
+ * @throws {RequiredError}
1528
+ */
1529
+ addCollaborationContextUserGroups(id, userGroupIdsList, options) {
1530
+ return localVarFp
1531
+ .addCollaborationContextUserGroups(id, userGroupIdsList, options)
1532
+ .then((request) => request(axios, basePath));
1533
+ },
1534
+ /**
1535
+ * Create a `collaboration-context`.
1536
+ * @param {CreateCollaborationContextRequest} createCollaborationContextRequest
1537
+ * @param {*} [options] Override http request option.
1538
+ * @throws {RequiredError}
1539
+ */
1540
+ createCollaborationContext(createCollaborationContextRequest, options) {
1541
+ return localVarFp
1542
+ .createCollaborationContext(createCollaborationContextRequest, options)
1543
+ .then((request) => request(axios, basePath));
1544
+ },
1545
+ /**
1546
+ * Get a `collaboration-context` by ID.
1547
+ * @param {string} id The `collaboration-context` ID.
1548
+ * @param {*} [options] Override http request option.
1549
+ * @throws {RequiredError}
1550
+ */
1551
+ getCollaborationContext(id, options) {
1552
+ return localVarFp
1553
+ .getCollaborationContext(id, options)
1554
+ .then((request) => request(axios, basePath));
1555
+ },
1556
+ /**
1557
+ * List `collaboration-context`s
1558
+ * @param {string} [pageCursor] The cursor for the next page of items.
1559
+ * @param {number} [pageSize] The number of items to return.
1560
+ * @param {*} [options] Override http request option.
1561
+ * @throws {RequiredError}
1562
+ */
1563
+ listCollaborationContexts(pageCursor, pageSize, options) {
1564
+ return localVarFp
1565
+ .listCollaborationContexts(pageCursor, pageSize, options)
1566
+ .then((request) => request(axios, basePath));
1567
+ },
1568
+ };
1569
+ };
1570
+ /**
1571
+ * CollaborationContextsApi - object-oriented interface
1572
+ * @export
1573
+ * @class CollaborationContextsApi
1574
+ * @extends {BaseAPI}
1575
+ */
1576
+ export class CollaborationContextsApi extends BaseAPI {
1577
+ /**
1578
+ * Create a `collaboration-context`.
1579
+ * @param {CollaborationContextsApiAddCollaborationContextUserGroupsRequest} requestParameters Request parameters.
1580
+ * @param {*} [options] Override http request option.
1581
+ * @throws {RequiredError}
1582
+ * @memberof CollaborationContextsApi
1583
+ */
1584
+ addCollaborationContextUserGroups(requestParameters, options) {
1585
+ return CollaborationContextsApiFp(this.configuration)
1586
+ .addCollaborationContextUserGroups(requestParameters.id, requestParameters.userGroupIdsList, options)
1587
+ .then((request) => request(this.axios, this.basePath));
1588
+ }
1589
+ /**
1590
+ * Create a `collaboration-context`.
1591
+ * @param {CollaborationContextsApiCreateCollaborationContextRequest} requestParameters Request parameters.
1592
+ * @param {*} [options] Override http request option.
1593
+ * @throws {RequiredError}
1594
+ * @memberof CollaborationContextsApi
1595
+ */
1596
+ createCollaborationContext(requestParameters, options) {
1597
+ return CollaborationContextsApiFp(this.configuration)
1598
+ .createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
1599
+ .then((request) => request(this.axios, this.basePath));
1600
+ }
1601
+ /**
1602
+ * Get a `collaboration-context` by ID.
1603
+ * @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
1604
+ * @param {*} [options] Override http request option.
1605
+ * @throws {RequiredError}
1606
+ * @memberof CollaborationContextsApi
1607
+ */
1608
+ getCollaborationContext(requestParameters, options) {
1609
+ return CollaborationContextsApiFp(this.configuration)
1610
+ .getCollaborationContext(requestParameters.id, options)
1611
+ .then((request) => request(this.axios, this.basePath));
1612
+ }
1613
+ /**
1614
+ * List `collaboration-context`s
1615
+ * @param {CollaborationContextsApiListCollaborationContextsRequest} requestParameters Request parameters.
1616
+ * @param {*} [options] Override http request option.
1617
+ * @throws {RequiredError}
1618
+ * @memberof CollaborationContextsApi
1619
+ */
1620
+ listCollaborationContexts(requestParameters = {}, options) {
1621
+ return CollaborationContextsApiFp(this.configuration)
1622
+ .listCollaborationContexts(requestParameters.pageCursor, requestParameters.pageSize, options)
1623
+ .then((request) => request(this.axios, this.basePath));
1624
+ }
1625
+ }
1258
1626
  /**
1259
1627
  * ExportsApi - axios parameter creator
1260
1628
  * @export
@@ -3599,11 +3967,13 @@ export const Oauth2ApiAxiosParamCreator = function (configuration) {
3599
3967
  * @param {string} [scope]
3600
3968
  * @param {string} [code]
3601
3969
  * @param {string} [redirectUri]
3970
+ * @param {string} [subjectTokenType]
3602
3971
  * @param {string} [refreshToken]
3972
+ * @param {string} [subjectToken]
3603
3973
  * @param {*} [options] Override http request option.
3604
3974
  * @throws {RequiredError}
3605
3975
  */
3606
- createToken: (grantType, scope, code, redirectUri, refreshToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
3976
+ createToken: (grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
3607
3977
  var _c;
3608
3978
  // verify required parameter 'grantType' is not null or undefined
3609
3979
  assertParamExists('createToken', 'grantType', grantType);
@@ -3633,9 +4003,15 @@ export const Oauth2ApiAxiosParamCreator = function (configuration) {
3633
4003
  if (grantType !== undefined) {
3634
4004
  localVarFormParams.set('grant_type', grantType);
3635
4005
  }
4006
+ if (subjectTokenType !== undefined) {
4007
+ localVarFormParams.set('subject_token_type', subjectTokenType);
4008
+ }
3636
4009
  if (refreshToken !== undefined) {
3637
4010
  localVarFormParams.set('refresh_token', refreshToken);
3638
4011
  }
4012
+ if (subjectToken !== undefined) {
4013
+ localVarFormParams.set('subject_token', subjectToken);
4014
+ }
3639
4015
  localVarHeaderParameter['Content-Type'] =
3640
4016
  'application/x-www-form-urlencoded';
3641
4017
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3721,13 +4097,15 @@ export const Oauth2ApiFp = function (configuration) {
3721
4097
  * @param {string} [scope]
3722
4098
  * @param {string} [code]
3723
4099
  * @param {string} [redirectUri]
4100
+ * @param {string} [subjectTokenType]
3724
4101
  * @param {string} [refreshToken]
4102
+ * @param {string} [subjectToken]
3725
4103
  * @param {*} [options] Override http request option.
3726
4104
  * @throws {RequiredError}
3727
4105
  */
3728
- createToken(grantType, scope, code, redirectUri, refreshToken, options) {
4106
+ createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options) {
3729
4107
  return __awaiter(this, void 0, void 0, function* () {
3730
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createToken(grantType, scope, code, redirectUri, refreshToken, options);
4108
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options);
3731
4109
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3732
4110
  });
3733
4111
  },
@@ -3782,13 +4160,15 @@ export const Oauth2ApiFactory = function (configuration, basePath, axios) {
3782
4160
  * @param {string} [scope]
3783
4161
  * @param {string} [code]
3784
4162
  * @param {string} [redirectUri]
4163
+ * @param {string} [subjectTokenType]
3785
4164
  * @param {string} [refreshToken]
4165
+ * @param {string} [subjectToken]
3786
4166
  * @param {*} [options] Override http request option.
3787
4167
  * @throws {RequiredError}
3788
4168
  */
3789
- createToken(grantType, scope, code, redirectUri, refreshToken, options) {
4169
+ createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options) {
3790
4170
  return localVarFp
3791
- .createToken(grantType, scope, code, redirectUri, refreshToken, options)
4171
+ .createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options)
3792
4172
  .then((request) => request(axios, basePath));
3793
4173
  },
3794
4174
  /**
@@ -3844,7 +4224,7 @@ export class Oauth2Api extends BaseAPI {
3844
4224
  */
3845
4225
  createToken(requestParameters, options) {
3846
4226
  return Oauth2ApiFp(this.configuration)
3847
- .createToken(requestParameters.grantType, requestParameters.scope, requestParameters.code, requestParameters.redirectUri, requestParameters.refreshToken, options)
4227
+ .createToken(requestParameters.grantType, requestParameters.scope, requestParameters.code, requestParameters.redirectUri, requestParameters.subjectTokenType, requestParameters.refreshToken, requestParameters.subjectToken, options)
3848
4228
  .then((request) => request(this.axios, this.basePath));
3849
4229
  }
3850
4230
  /**
@@ -5785,22 +6165,286 @@ export class PropertyEntriesApi extends BaseAPI {
5785
6165
  }
5786
6166
  }
5787
6167
  /**
5788
- * SceneAlterationsApi - axios parameter creator
6168
+ * RepliesApi - axios parameter creator
5789
6169
  * @export
5790
6170
  */
5791
- export const SceneAlterationsApiAxiosParamCreator = function (configuration) {
6171
+ export const RepliesApiAxiosParamCreator = function (configuration) {
5792
6172
  return {
5793
6173
  /**
5794
- * Create a `scene-alteration` for a `scene-view`.
5795
- * @param {string} id The `scene-view` ID.
5796
- * @param {CreateSceneAlterationRequest | CreateSceneExpressionAlterationRequest} createSceneAlterationRequestCreateSceneExpressionAlterationRequest
6174
+ * Create a `reply` belonging to a `thread`.
6175
+ * @param {string} id The `thread` ID.
6176
+ * @param {CreateReplyRequest} createReplyRequest
5797
6177
  * @param {*} [options] Override http request option.
5798
6178
  * @throws {RequiredError}
5799
6179
  */
5800
- createSceneAlteration: (id, createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
6180
+ createReply: (id, createReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
5801
6181
  var _a;
5802
6182
  // verify required parameter 'id' is not null or undefined
5803
- assertParamExists('createSceneAlteration', 'id', id);
6183
+ assertParamExists('createReply', 'id', id);
6184
+ // verify required parameter 'createReplyRequest' is not null or undefined
6185
+ assertParamExists('createReply', 'createReplyRequest', createReplyRequest);
6186
+ const localVarPath = `/threads/{id}/replies`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6187
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6188
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6189
+ let baseOptions;
6190
+ if (configuration) {
6191
+ baseOptions = configuration.baseOptions;
6192
+ }
6193
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6194
+ const localVarHeaderParameter = {};
6195
+ const localVarQueryParameter = {};
6196
+ // authentication OAuth2 required
6197
+ // oauth required
6198
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
6199
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
6200
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6201
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
6202
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6203
+ localVarRequestOptions.data = serializeDataIfNeeded(createReplyRequest, localVarRequestOptions, configuration);
6204
+ return {
6205
+ url: toPathString(localVarUrlObj),
6206
+ options: localVarRequestOptions,
6207
+ };
6208
+ }),
6209
+ /**
6210
+ * Get a `reply`.
6211
+ * @param {string} id The `thread` ID.
6212
+ * @param {string} [include] Comma-separated list of relationships to include in response.
6213
+ * @param {*} [options] Override http request option.
6214
+ * @throws {RequiredError}
6215
+ */
6216
+ getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
6217
+ var _b;
6218
+ // verify required parameter 'id' is not null or undefined
6219
+ assertParamExists('getReply', 'id', id);
6220
+ const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6222
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6223
+ let baseOptions;
6224
+ if (configuration) {
6225
+ baseOptions = configuration.baseOptions;
6226
+ }
6227
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6228
+ const localVarHeaderParameter = {};
6229
+ const localVarQueryParameter = {};
6230
+ // authentication OAuth2 required
6231
+ // oauth required
6232
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
6233
+ if (include !== undefined) {
6234
+ localVarQueryParameter['include'] = include;
6235
+ }
6236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6237
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
6238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6239
+ return {
6240
+ url: toPathString(localVarUrlObj),
6241
+ options: localVarRequestOptions,
6242
+ };
6243
+ }),
6244
+ /**
6245
+ * List `replies`
6246
+ * @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
6247
+ * @param {string} [pageCursor] The cursor for the next page of items.
6248
+ * @param {number} [pageSize] The number of items to return.
6249
+ * @param {string} [include] Comma-separated list of relationships to include in response.
6250
+ * @param {*} [options] Override http request option.
6251
+ * @throws {RequiredError}
6252
+ */
6253
+ listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
6254
+ var _c;
6255
+ const localVarPath = `/replies`;
6256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6257
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6258
+ let baseOptions;
6259
+ if (configuration) {
6260
+ baseOptions = configuration.baseOptions;
6261
+ }
6262
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6263
+ const localVarHeaderParameter = {};
6264
+ const localVarQueryParameter = {};
6265
+ // authentication OAuth2 required
6266
+ // oauth required
6267
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
6268
+ if (filterThreadId !== undefined) {
6269
+ localVarQueryParameter['filter[threadId]'] = filterThreadId;
6270
+ }
6271
+ if (pageCursor !== undefined) {
6272
+ localVarQueryParameter['page[cursor]'] = pageCursor;
6273
+ }
6274
+ if (pageSize !== undefined) {
6275
+ localVarQueryParameter['page[size]'] = pageSize;
6276
+ }
6277
+ if (include !== undefined) {
6278
+ localVarQueryParameter['include'] = include;
6279
+ }
6280
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6281
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
6282
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6283
+ return {
6284
+ url: toPathString(localVarUrlObj),
6285
+ options: localVarRequestOptions,
6286
+ };
6287
+ }),
6288
+ };
6289
+ };
6290
+ /**
6291
+ * RepliesApi - functional programming interface
6292
+ * @export
6293
+ */
6294
+ export const RepliesApiFp = function (configuration) {
6295
+ const localVarAxiosParamCreator = RepliesApiAxiosParamCreator(configuration);
6296
+ return {
6297
+ /**
6298
+ * Create a `reply` belonging to a `thread`.
6299
+ * @param {string} id The `thread` ID.
6300
+ * @param {CreateReplyRequest} createReplyRequest
6301
+ * @param {*} [options] Override http request option.
6302
+ * @throws {RequiredError}
6303
+ */
6304
+ createReply(id, createReplyRequest, options) {
6305
+ return __awaiter(this, void 0, void 0, function* () {
6306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createReply(id, createReplyRequest, options);
6307
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6308
+ });
6309
+ },
6310
+ /**
6311
+ * Get a `reply`.
6312
+ * @param {string} id The `thread` ID.
6313
+ * @param {string} [include] Comma-separated list of relationships to include in response.
6314
+ * @param {*} [options] Override http request option.
6315
+ * @throws {RequiredError}
6316
+ */
6317
+ getReply(id, include, options) {
6318
+ return __awaiter(this, void 0, void 0, function* () {
6319
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReply(id, include, options);
6320
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6321
+ });
6322
+ },
6323
+ /**
6324
+ * List `replies`
6325
+ * @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
6326
+ * @param {string} [pageCursor] The cursor for the next page of items.
6327
+ * @param {number} [pageSize] The number of items to return.
6328
+ * @param {string} [include] Comma-separated list of relationships to include in response.
6329
+ * @param {*} [options] Override http request option.
6330
+ * @throws {RequiredError}
6331
+ */
6332
+ listReplies(filterThreadId, pageCursor, pageSize, include, options) {
6333
+ return __awaiter(this, void 0, void 0, function* () {
6334
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listReplies(filterThreadId, pageCursor, pageSize, include, options);
6335
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6336
+ });
6337
+ },
6338
+ };
6339
+ };
6340
+ /**
6341
+ * RepliesApi - factory interface
6342
+ * @export
6343
+ */
6344
+ export const RepliesApiFactory = function (configuration, basePath, axios) {
6345
+ const localVarFp = RepliesApiFp(configuration);
6346
+ return {
6347
+ /**
6348
+ * Create a `reply` belonging to a `thread`.
6349
+ * @param {string} id The `thread` ID.
6350
+ * @param {CreateReplyRequest} createReplyRequest
6351
+ * @param {*} [options] Override http request option.
6352
+ * @throws {RequiredError}
6353
+ */
6354
+ createReply(id, createReplyRequest, options) {
6355
+ return localVarFp
6356
+ .createReply(id, createReplyRequest, options)
6357
+ .then((request) => request(axios, basePath));
6358
+ },
6359
+ /**
6360
+ * Get a `reply`.
6361
+ * @param {string} id The `thread` ID.
6362
+ * @param {string} [include] Comma-separated list of relationships to include in response.
6363
+ * @param {*} [options] Override http request option.
6364
+ * @throws {RequiredError}
6365
+ */
6366
+ getReply(id, include, options) {
6367
+ return localVarFp
6368
+ .getReply(id, include, options)
6369
+ .then((request) => request(axios, basePath));
6370
+ },
6371
+ /**
6372
+ * List `replies`
6373
+ * @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
6374
+ * @param {string} [pageCursor] The cursor for the next page of items.
6375
+ * @param {number} [pageSize] The number of items to return.
6376
+ * @param {string} [include] Comma-separated list of relationships to include in response.
6377
+ * @param {*} [options] Override http request option.
6378
+ * @throws {RequiredError}
6379
+ */
6380
+ listReplies(filterThreadId, pageCursor, pageSize, include, options) {
6381
+ return localVarFp
6382
+ .listReplies(filterThreadId, pageCursor, pageSize, include, options)
6383
+ .then((request) => request(axios, basePath));
6384
+ },
6385
+ };
6386
+ };
6387
+ /**
6388
+ * RepliesApi - object-oriented interface
6389
+ * @export
6390
+ * @class RepliesApi
6391
+ * @extends {BaseAPI}
6392
+ */
6393
+ export class RepliesApi extends BaseAPI {
6394
+ /**
6395
+ * Create a `reply` belonging to a `thread`.
6396
+ * @param {RepliesApiCreateReplyRequest} requestParameters Request parameters.
6397
+ * @param {*} [options] Override http request option.
6398
+ * @throws {RequiredError}
6399
+ * @memberof RepliesApi
6400
+ */
6401
+ createReply(requestParameters, options) {
6402
+ return RepliesApiFp(this.configuration)
6403
+ .createReply(requestParameters.id, requestParameters.createReplyRequest, options)
6404
+ .then((request) => request(this.axios, this.basePath));
6405
+ }
6406
+ /**
6407
+ * Get a `reply`.
6408
+ * @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
6409
+ * @param {*} [options] Override http request option.
6410
+ * @throws {RequiredError}
6411
+ * @memberof RepliesApi
6412
+ */
6413
+ getReply(requestParameters, options) {
6414
+ return RepliesApiFp(this.configuration)
6415
+ .getReply(requestParameters.id, requestParameters.include, options)
6416
+ .then((request) => request(this.axios, this.basePath));
6417
+ }
6418
+ /**
6419
+ * List `replies`
6420
+ * @param {RepliesApiListRepliesRequest} requestParameters Request parameters.
6421
+ * @param {*} [options] Override http request option.
6422
+ * @throws {RequiredError}
6423
+ * @memberof RepliesApi
6424
+ */
6425
+ listReplies(requestParameters = {}, options) {
6426
+ return RepliesApiFp(this.configuration)
6427
+ .listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
6428
+ .then((request) => request(this.axios, this.basePath));
6429
+ }
6430
+ }
6431
+ /**
6432
+ * SceneAlterationsApi - axios parameter creator
6433
+ * @export
6434
+ */
6435
+ export const SceneAlterationsApiAxiosParamCreator = function (configuration) {
6436
+ return {
6437
+ /**
6438
+ * Create a `scene-alteration` for a `scene-view`.
6439
+ * @param {string} id The `scene-view` ID.
6440
+ * @param {CreateSceneAlterationRequest | CreateSceneExpressionAlterationRequest} createSceneAlterationRequestCreateSceneExpressionAlterationRequest
6441
+ * @param {*} [options] Override http request option.
6442
+ * @throws {RequiredError}
6443
+ */
6444
+ createSceneAlteration: (id, createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
6445
+ var _a;
6446
+ // verify required parameter 'id' is not null or undefined
6447
+ assertParamExists('createSceneAlteration', 'id', id);
5804
6448
  // verify required parameter 'createSceneAlterationRequestCreateSceneExpressionAlterationRequest' is not null or undefined
5805
6449
  assertParamExists('createSceneAlteration', 'createSceneAlterationRequestCreateSceneExpressionAlterationRequest', createSceneAlterationRequestCreateSceneExpressionAlterationRequest);
5806
6450
  const localVarPath = `/scene-views/{id}/scene-alterations`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
@@ -7000,10 +7644,12 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
7000
7644
  * @param {string} [filterSource] Source ID to filter on.
7001
7645
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7002
7646
  * @param {string} [filterParent] Parent ID to filter on.
7647
+ * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7648
+ * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
7003
7649
  * @param {*} [options] Override http request option.
7004
7650
  * @throws {RequiredError}
7005
7651
  */
7006
- getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
7652
+ getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options = {}) => __awaiter(this, void 0, void 0, function* () {
7007
7653
  var _f;
7008
7654
  // verify required parameter 'id' is not null or undefined
7009
7655
  assertParamExists('getSceneItems', 'id', id);
@@ -7035,6 +7681,12 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
7035
7681
  if (filterParent !== undefined) {
7036
7682
  localVarQueryParameter['filter[parent]'] = filterParent;
7037
7683
  }
7684
+ if (filterHasChildren !== undefined) {
7685
+ localVarQueryParameter['filter[hasChildren]'] = filterHasChildren;
7686
+ }
7687
+ if (filterHasGeometrySet !== undefined) {
7688
+ localVarQueryParameter['filter[hasGeometrySet]'] = filterHasGeometrySet;
7689
+ }
7038
7690
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7039
7691
  let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
7040
7692
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7158,12 +7810,14 @@ export const SceneItemsApiFp = function (configuration) {
7158
7810
  * @param {string} [filterSource] Source ID to filter on.
7159
7811
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7160
7812
  * @param {string} [filterParent] Parent ID to filter on.
7813
+ * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7814
+ * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
7161
7815
  * @param {*} [options] Override http request option.
7162
7816
  * @throws {RequiredError}
7163
7817
  */
7164
- getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options) {
7818
+ getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
7165
7819
  return __awaiter(this, void 0, void 0, function* () {
7166
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options);
7820
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options);
7167
7821
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7168
7822
  });
7169
7823
  },
@@ -7254,12 +7908,14 @@ export const SceneItemsApiFactory = function (configuration, basePath, axios) {
7254
7908
  * @param {string} [filterSource] Source ID to filter on.
7255
7909
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7256
7910
  * @param {string} [filterParent] Parent ID to filter on.
7911
+ * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7912
+ * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
7257
7913
  * @param {*} [options] Override http request option.
7258
7914
  * @throws {RequiredError}
7259
7915
  */
7260
- getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options) {
7916
+ getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
7261
7917
  return localVarFp
7262
- .getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options)
7918
+ .getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options)
7263
7919
  .then((request) => request(axios, basePath));
7264
7920
  },
7265
7921
  /**
@@ -7352,7 +8008,7 @@ export class SceneItemsApi extends BaseAPI {
7352
8008
  */
7353
8009
  getSceneItems(requestParameters, options) {
7354
8010
  return SceneItemsApiFp(this.configuration)
7355
- .getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, options)
8011
+ .getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, requestParameters.filterHasChildren, requestParameters.filterHasGeometrySet, options)
7356
8012
  .then((request) => request(this.axios, this.basePath));
7357
8013
  }
7358
8014
  /**
@@ -9656,22 +10312,25 @@ export class StreamKeysApi extends BaseAPI {
9656
10312
  }
9657
10313
  }
9658
10314
  /**
9659
- * TranslationInspectionsApi - axios parameter creator
10315
+ * ThreadsApi - axios parameter creator
9660
10316
  * @export
9661
10317
  */
9662
- export const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
10318
+ export const ThreadsApiAxiosParamCreator = function (configuration) {
9663
10319
  return {
9664
10320
  /**
9665
- * Create a `translation-inspection`.
9666
- * @param {CreateTranslationInspectionRequest} createTranslationInspectionRequest
10321
+ * Create a `thread` belonging to a `collaboration-context`.
10322
+ * @param {string} id The `collaboration-context` ID.
10323
+ * @param {CreateThreadRequest} createThreadRequest
9667
10324
  * @param {*} [options] Override http request option.
9668
10325
  * @throws {RequiredError}
9669
10326
  */
9670
- createTranslationInspection: (createTranslationInspectionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
10327
+ createThread: (id, createThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
9671
10328
  var _a;
9672
- // verify required parameter 'createTranslationInspectionRequest' is not null or undefined
9673
- assertParamExists('createTranslationInspection', 'createTranslationInspectionRequest', createTranslationInspectionRequest);
9674
- const localVarPath = `/translation-inspections`;
10329
+ // verify required parameter 'id' is not null or undefined
10330
+ assertParamExists('createThread', 'id', id);
10331
+ // verify required parameter 'createThreadRequest' is not null or undefined
10332
+ assertParamExists('createThread', 'createThreadRequest', createThreadRequest);
10333
+ const localVarPath = `/collaboration-contexts/{id}/threads`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
9675
10334
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9676
10335
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9677
10336
  let baseOptions;
@@ -9688,23 +10347,25 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9688
10347
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9689
10348
  let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
9690
10349
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9691
- localVarRequestOptions.data = serializeDataIfNeeded(createTranslationInspectionRequest, localVarRequestOptions, configuration);
10350
+ localVarRequestOptions.data = serializeDataIfNeeded(createThreadRequest, localVarRequestOptions, configuration);
9692
10351
  return {
9693
10352
  url: toPathString(localVarUrlObj),
9694
10353
  options: localVarRequestOptions,
9695
10354
  };
9696
10355
  }),
9697
10356
  /**
9698
- * Get a `translation-inspection` by ID.
9699
- * @param {string} id The `translation-inspection` ID.
10357
+ * Get a `thread`.
10358
+ * @param {string} id The `thread` ID.
10359
+ * @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
10360
+ * @param {string} [include] Comma-separated list of relationships to include in response.
9700
10361
  * @param {*} [options] Override http request option.
9701
10362
  * @throws {RequiredError}
9702
10363
  */
9703
- getInspectionJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10364
+ getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
9704
10365
  var _b;
9705
10366
  // verify required parameter 'id' is not null or undefined
9706
- assertParamExists('getInspectionJob', 'id', id);
9707
- const localVarPath = `/translation-inspections/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10367
+ assertParamExists('getThread', 'id', id);
10368
+ const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
9708
10369
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9709
10370
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9710
10371
  let baseOptions;
@@ -9717,6 +10378,12 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9717
10378
  // authentication OAuth2 required
9718
10379
  // oauth required
9719
10380
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10381
+ if (fieldsThread !== undefined) {
10382
+ localVarQueryParameter['fields[thread]'] = fieldsThread;
10383
+ }
10384
+ if (include !== undefined) {
10385
+ localVarQueryParameter['include'] = include;
10386
+ }
9720
10387
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9721
10388
  let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
9722
10389
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9726,17 +10393,18 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9726
10393
  };
9727
10394
  }),
9728
10395
  /**
9729
- * This has been deprecated and replaced by **queued-translation-jobs/{id}** - Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
9730
- * @param {string} id The `queued-translation` ID.
10396
+ * Get a page of `thread`s.
10397
+ * @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
10398
+ * @param {string} [filterCollaborationContextId] A collaboration context to filter on.
10399
+ * @param {string} [pageCursor] The cursor for the next page of items.
10400
+ * @param {number} [pageSize] The number of items to return.
10401
+ * @param {string} [include] Comma-separated list of relationships to include in response.
9731
10402
  * @param {*} [options] Override http request option.
9732
- * @deprecated
9733
10403
  * @throws {RequiredError}
9734
10404
  */
9735
- getQueuedTranslation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10405
+ getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
9736
10406
  var _c;
9737
- // verify required parameter 'id' is not null or undefined
9738
- assertParamExists('getQueuedTranslation', 'id', id);
9739
- const localVarPath = `/queued-translations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10407
+ const localVarPath = `/threads`;
9740
10408
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9741
10409
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9742
10410
  let baseOptions;
@@ -9749,6 +10417,22 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9749
10417
  // authentication OAuth2 required
9750
10418
  // oauth required
9751
10419
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10420
+ if (fieldsThread !== undefined) {
10421
+ localVarQueryParameter['fields[thread]'] = fieldsThread;
10422
+ }
10423
+ if (filterCollaborationContextId !== undefined) {
10424
+ localVarQueryParameter['filter[collaborationContextId]'] =
10425
+ filterCollaborationContextId;
10426
+ }
10427
+ if (pageCursor !== undefined) {
10428
+ localVarQueryParameter['page[cursor]'] = pageCursor;
10429
+ }
10430
+ if (pageSize !== undefined) {
10431
+ localVarQueryParameter['page[size]'] = pageSize;
10432
+ }
10433
+ if (include !== undefined) {
10434
+ localVarQueryParameter['include'] = include;
10435
+ }
9752
10436
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9753
10437
  let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
9754
10438
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9757,21 +10441,270 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9757
10441
  options: localVarRequestOptions,
9758
10442
  };
9759
10443
  }),
10444
+ };
10445
+ };
10446
+ /**
10447
+ * ThreadsApi - functional programming interface
10448
+ * @export
10449
+ */
10450
+ export const ThreadsApiFp = function (configuration) {
10451
+ const localVarAxiosParamCreator = ThreadsApiAxiosParamCreator(configuration);
10452
+ return {
9760
10453
  /**
9761
- * Get a `queued-translation-job`. The response is either the status if `running` or `error` or, upon completion, the `part-revision` that was created. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
9762
- * @param {string} id The `queued-translation` ID.
10454
+ * Create a `thread` belonging to a `collaboration-context`.
10455
+ * @param {string} id The `collaboration-context` ID.
10456
+ * @param {CreateThreadRequest} createThreadRequest
9763
10457
  * @param {*} [options] Override http request option.
9764
10458
  * @throws {RequiredError}
9765
10459
  */
9766
- getQueuedTranslationJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
9767
- var _d;
9768
- // verify required parameter 'id' is not null or undefined
9769
- assertParamExists('getQueuedTranslationJob', 'id', id);
9770
- const localVarPath = `/queued-translation-jobs/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
9771
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9772
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9773
- let baseOptions;
9774
- if (configuration) {
10460
+ createThread(id, createThreadRequest, options) {
10461
+ return __awaiter(this, void 0, void 0, function* () {
10462
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createThread(id, createThreadRequest, options);
10463
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10464
+ });
10465
+ },
10466
+ /**
10467
+ * Get a `thread`.
10468
+ * @param {string} id The `thread` ID.
10469
+ * @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
10470
+ * @param {string} [include] Comma-separated list of relationships to include in response.
10471
+ * @param {*} [options] Override http request option.
10472
+ * @throws {RequiredError}
10473
+ */
10474
+ getThread(id, fieldsThread, include, options) {
10475
+ return __awaiter(this, void 0, void 0, function* () {
10476
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThread(id, fieldsThread, include, options);
10477
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10478
+ });
10479
+ },
10480
+ /**
10481
+ * Get a page of `thread`s.
10482
+ * @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
10483
+ * @param {string} [filterCollaborationContextId] A collaboration context to filter on.
10484
+ * @param {string} [pageCursor] The cursor for the next page of items.
10485
+ * @param {number} [pageSize] The number of items to return.
10486
+ * @param {string} [include] Comma-separated list of relationships to include in response.
10487
+ * @param {*} [options] Override http request option.
10488
+ * @throws {RequiredError}
10489
+ */
10490
+ getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
10491
+ return __awaiter(this, void 0, void 0, function* () {
10492
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options);
10493
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10494
+ });
10495
+ },
10496
+ };
10497
+ };
10498
+ /**
10499
+ * ThreadsApi - factory interface
10500
+ * @export
10501
+ */
10502
+ export const ThreadsApiFactory = function (configuration, basePath, axios) {
10503
+ const localVarFp = ThreadsApiFp(configuration);
10504
+ return {
10505
+ /**
10506
+ * Create a `thread` belonging to a `collaboration-context`.
10507
+ * @param {string} id The `collaboration-context` ID.
10508
+ * @param {CreateThreadRequest} createThreadRequest
10509
+ * @param {*} [options] Override http request option.
10510
+ * @throws {RequiredError}
10511
+ */
10512
+ createThread(id, createThreadRequest, options) {
10513
+ return localVarFp
10514
+ .createThread(id, createThreadRequest, options)
10515
+ .then((request) => request(axios, basePath));
10516
+ },
10517
+ /**
10518
+ * Get a `thread`.
10519
+ * @param {string} id The `thread` ID.
10520
+ * @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
10521
+ * @param {string} [include] Comma-separated list of relationships to include in response.
10522
+ * @param {*} [options] Override http request option.
10523
+ * @throws {RequiredError}
10524
+ */
10525
+ getThread(id, fieldsThread, include, options) {
10526
+ return localVarFp
10527
+ .getThread(id, fieldsThread, include, options)
10528
+ .then((request) => request(axios, basePath));
10529
+ },
10530
+ /**
10531
+ * Get a page of `thread`s.
10532
+ * @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
10533
+ * @param {string} [filterCollaborationContextId] A collaboration context to filter on.
10534
+ * @param {string} [pageCursor] The cursor for the next page of items.
10535
+ * @param {number} [pageSize] The number of items to return.
10536
+ * @param {string} [include] Comma-separated list of relationships to include in response.
10537
+ * @param {*} [options] Override http request option.
10538
+ * @throws {RequiredError}
10539
+ */
10540
+ getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
10541
+ return localVarFp
10542
+ .getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options)
10543
+ .then((request) => request(axios, basePath));
10544
+ },
10545
+ };
10546
+ };
10547
+ /**
10548
+ * ThreadsApi - object-oriented interface
10549
+ * @export
10550
+ * @class ThreadsApi
10551
+ * @extends {BaseAPI}
10552
+ */
10553
+ export class ThreadsApi extends BaseAPI {
10554
+ /**
10555
+ * Create a `thread` belonging to a `collaboration-context`.
10556
+ * @param {ThreadsApiCreateThreadRequest} requestParameters Request parameters.
10557
+ * @param {*} [options] Override http request option.
10558
+ * @throws {RequiredError}
10559
+ * @memberof ThreadsApi
10560
+ */
10561
+ createThread(requestParameters, options) {
10562
+ return ThreadsApiFp(this.configuration)
10563
+ .createThread(requestParameters.id, requestParameters.createThreadRequest, options)
10564
+ .then((request) => request(this.axios, this.basePath));
10565
+ }
10566
+ /**
10567
+ * Get a `thread`.
10568
+ * @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
10569
+ * @param {*} [options] Override http request option.
10570
+ * @throws {RequiredError}
10571
+ * @memberof ThreadsApi
10572
+ */
10573
+ getThread(requestParameters, options) {
10574
+ return ThreadsApiFp(this.configuration)
10575
+ .getThread(requestParameters.id, requestParameters.fieldsThread, requestParameters.include, options)
10576
+ .then((request) => request(this.axios, this.basePath));
10577
+ }
10578
+ /**
10579
+ * Get a page of `thread`s.
10580
+ * @param {ThreadsApiGetThreadsRequest} requestParameters Request parameters.
10581
+ * @param {*} [options] Override http request option.
10582
+ * @throws {RequiredError}
10583
+ * @memberof ThreadsApi
10584
+ */
10585
+ getThreads(requestParameters = {}, options) {
10586
+ return ThreadsApiFp(this.configuration)
10587
+ .getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
10588
+ .then((request) => request(this.axios, this.basePath));
10589
+ }
10590
+ }
10591
+ /**
10592
+ * TranslationInspectionsApi - axios parameter creator
10593
+ * @export
10594
+ */
10595
+ export const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
10596
+ return {
10597
+ /**
10598
+ * Create a `translation-inspection`.
10599
+ * @param {CreateTranslationInspectionRequest} createTranslationInspectionRequest
10600
+ * @param {*} [options] Override http request option.
10601
+ * @throws {RequiredError}
10602
+ */
10603
+ createTranslationInspection: (createTranslationInspectionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
10604
+ var _a;
10605
+ // verify required parameter 'createTranslationInspectionRequest' is not null or undefined
10606
+ assertParamExists('createTranslationInspection', 'createTranslationInspectionRequest', createTranslationInspectionRequest);
10607
+ const localVarPath = `/translation-inspections`;
10608
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10609
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10610
+ let baseOptions;
10611
+ if (configuration) {
10612
+ baseOptions = configuration.baseOptions;
10613
+ }
10614
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10615
+ const localVarHeaderParameter = {};
10616
+ const localVarQueryParameter = {};
10617
+ // authentication OAuth2 required
10618
+ // oauth required
10619
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10620
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
10621
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10622
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
10623
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10624
+ localVarRequestOptions.data = serializeDataIfNeeded(createTranslationInspectionRequest, localVarRequestOptions, configuration);
10625
+ return {
10626
+ url: toPathString(localVarUrlObj),
10627
+ options: localVarRequestOptions,
10628
+ };
10629
+ }),
10630
+ /**
10631
+ * Get a `translation-inspection` by ID.
10632
+ * @param {string} id The `translation-inspection` ID.
10633
+ * @param {*} [options] Override http request option.
10634
+ * @throws {RequiredError}
10635
+ */
10636
+ getInspectionJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10637
+ var _b;
10638
+ // verify required parameter 'id' is not null or undefined
10639
+ assertParamExists('getInspectionJob', 'id', id);
10640
+ const localVarPath = `/translation-inspections/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10641
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10642
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10643
+ let baseOptions;
10644
+ if (configuration) {
10645
+ baseOptions = configuration.baseOptions;
10646
+ }
10647
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10648
+ const localVarHeaderParameter = {};
10649
+ const localVarQueryParameter = {};
10650
+ // authentication OAuth2 required
10651
+ // oauth required
10652
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10653
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10654
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
10655
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10656
+ return {
10657
+ url: toPathString(localVarUrlObj),
10658
+ options: localVarRequestOptions,
10659
+ };
10660
+ }),
10661
+ /**
10662
+ * This has been deprecated and replaced by **queued-translation-jobs/{id}** - Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
10663
+ * @param {string} id The `queued-translation` ID.
10664
+ * @param {*} [options] Override http request option.
10665
+ * @deprecated
10666
+ * @throws {RequiredError}
10667
+ */
10668
+ getQueuedTranslation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10669
+ var _c;
10670
+ // verify required parameter 'id' is not null or undefined
10671
+ assertParamExists('getQueuedTranslation', 'id', id);
10672
+ const localVarPath = `/queued-translations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10673
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10674
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10675
+ let baseOptions;
10676
+ if (configuration) {
10677
+ baseOptions = configuration.baseOptions;
10678
+ }
10679
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10680
+ const localVarHeaderParameter = {};
10681
+ const localVarQueryParameter = {};
10682
+ // authentication OAuth2 required
10683
+ // oauth required
10684
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10686
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
10687
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10688
+ return {
10689
+ url: toPathString(localVarUrlObj),
10690
+ options: localVarRequestOptions,
10691
+ };
10692
+ }),
10693
+ /**
10694
+ * Get a `queued-translation-job`. The response is either the status if `running` or `error` or, upon completion, the `part-revision` that was created. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
10695
+ * @param {string} id The `queued-translation` ID.
10696
+ * @param {*} [options] Override http request option.
10697
+ * @throws {RequiredError}
10698
+ */
10699
+ getQueuedTranslationJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10700
+ var _d;
10701
+ // verify required parameter 'id' is not null or undefined
10702
+ assertParamExists('getQueuedTranslationJob', 'id', id);
10703
+ const localVarPath = `/queued-translation-jobs/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10706
+ let baseOptions;
10707
+ if (configuration) {
9775
10708
  baseOptions = configuration.baseOptions;
9776
10709
  }
9777
10710
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
@@ -10133,6 +11066,572 @@ export class TranslationInspectionsApi extends BaseAPI {
10133
11066
  .then((request) => request(this.axios, this.basePath));
10134
11067
  }
10135
11068
  }
11069
+ /**
11070
+ * UserGroupsApi - axios parameter creator
11071
+ * @export
11072
+ */
11073
+ export const UserGroupsApiAxiosParamCreator = function (configuration) {
11074
+ return {
11075
+ /**
11076
+ * Add a `user` to a `user-group`.
11077
+ * @param {string} id A `user-group` ID.
11078
+ * @param {UserIdList} userIdList
11079
+ * @param {*} [options] Override http request option.
11080
+ * @throws {RequiredError}
11081
+ */
11082
+ addUsersToUserGroup: (id, userIdList, options = {}) => __awaiter(this, void 0, void 0, function* () {
11083
+ var _a;
11084
+ // verify required parameter 'id' is not null or undefined
11085
+ assertParamExists('addUsersToUserGroup', 'id', id);
11086
+ // verify required parameter 'userIdList' is not null or undefined
11087
+ assertParamExists('addUsersToUserGroup', 'userIdList', userIdList);
11088
+ const localVarPath = `/user-groups/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
11089
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11090
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11091
+ let baseOptions;
11092
+ if (configuration) {
11093
+ baseOptions = configuration.baseOptions;
11094
+ }
11095
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11096
+ const localVarHeaderParameter = {};
11097
+ const localVarQueryParameter = {};
11098
+ // authentication OAuth2 required
11099
+ // oauth required
11100
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11101
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
11102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11103
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
11104
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11105
+ localVarRequestOptions.data = serializeDataIfNeeded(userIdList, localVarRequestOptions, configuration);
11106
+ return {
11107
+ url: toPathString(localVarUrlObj),
11108
+ options: localVarRequestOptions,
11109
+ };
11110
+ }),
11111
+ /**
11112
+ * Create a `user-group`
11113
+ * @param {CreateUserGroupRequest} createUserGroupRequest
11114
+ * @param {*} [options] Override http request option.
11115
+ * @throws {RequiredError}
11116
+ */
11117
+ createUserGroup: (createUserGroupRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
11118
+ var _b;
11119
+ // verify required parameter 'createUserGroupRequest' is not null or undefined
11120
+ assertParamExists('createUserGroup', 'createUserGroupRequest', createUserGroupRequest);
11121
+ const localVarPath = `/user-groups`;
11122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11124
+ let baseOptions;
11125
+ if (configuration) {
11126
+ baseOptions = configuration.baseOptions;
11127
+ }
11128
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11129
+ const localVarHeaderParameter = {};
11130
+ const localVarQueryParameter = {};
11131
+ // authentication OAuth2 required
11132
+ // oauth required
11133
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11134
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
11135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11136
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
11137
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11138
+ localVarRequestOptions.data = serializeDataIfNeeded(createUserGroupRequest, localVarRequestOptions, configuration);
11139
+ return {
11140
+ url: toPathString(localVarUrlObj),
11141
+ options: localVarRequestOptions,
11142
+ };
11143
+ }),
11144
+ /**
11145
+ * Get a `user-group`.
11146
+ * @param {string} id The `user-group` ID.
11147
+ * @param {*} [options] Override http request option.
11148
+ * @throws {RequiredError}
11149
+ */
11150
+ getUserGroup: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
11151
+ var _c;
11152
+ // verify required parameter 'id' is not null or undefined
11153
+ assertParamExists('getUserGroup', 'id', id);
11154
+ const localVarPath = `/user-groups/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
11155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11157
+ let baseOptions;
11158
+ if (configuration) {
11159
+ baseOptions = configuration.baseOptions;
11160
+ }
11161
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11162
+ const localVarHeaderParameter = {};
11163
+ const localVarQueryParameter = {};
11164
+ // authentication OAuth2 required
11165
+ // oauth required
11166
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11167
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11168
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
11169
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11170
+ return {
11171
+ url: toPathString(localVarUrlObj),
11172
+ options: localVarRequestOptions,
11173
+ };
11174
+ }),
11175
+ };
11176
+ };
11177
+ /**
11178
+ * UserGroupsApi - functional programming interface
11179
+ * @export
11180
+ */
11181
+ export const UserGroupsApiFp = function (configuration) {
11182
+ const localVarAxiosParamCreator = UserGroupsApiAxiosParamCreator(configuration);
11183
+ return {
11184
+ /**
11185
+ * Add a `user` to a `user-group`.
11186
+ * @param {string} id A `user-group` ID.
11187
+ * @param {UserIdList} userIdList
11188
+ * @param {*} [options] Override http request option.
11189
+ * @throws {RequiredError}
11190
+ */
11191
+ addUsersToUserGroup(id, userIdList, options) {
11192
+ return __awaiter(this, void 0, void 0, function* () {
11193
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addUsersToUserGroup(id, userIdList, options);
11194
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11195
+ });
11196
+ },
11197
+ /**
11198
+ * Create a `user-group`
11199
+ * @param {CreateUserGroupRequest} createUserGroupRequest
11200
+ * @param {*} [options] Override http request option.
11201
+ * @throws {RequiredError}
11202
+ */
11203
+ createUserGroup(createUserGroupRequest, options) {
11204
+ return __awaiter(this, void 0, void 0, function* () {
11205
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUserGroup(createUserGroupRequest, options);
11206
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11207
+ });
11208
+ },
11209
+ /**
11210
+ * Get a `user-group`.
11211
+ * @param {string} id The `user-group` ID.
11212
+ * @param {*} [options] Override http request option.
11213
+ * @throws {RequiredError}
11214
+ */
11215
+ getUserGroup(id, options) {
11216
+ return __awaiter(this, void 0, void 0, function* () {
11217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroup(id, options);
11218
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11219
+ });
11220
+ },
11221
+ };
11222
+ };
11223
+ /**
11224
+ * UserGroupsApi - factory interface
11225
+ * @export
11226
+ */
11227
+ export const UserGroupsApiFactory = function (configuration, basePath, axios) {
11228
+ const localVarFp = UserGroupsApiFp(configuration);
11229
+ return {
11230
+ /**
11231
+ * Add a `user` to a `user-group`.
11232
+ * @param {string} id A `user-group` ID.
11233
+ * @param {UserIdList} userIdList
11234
+ * @param {*} [options] Override http request option.
11235
+ * @throws {RequiredError}
11236
+ */
11237
+ addUsersToUserGroup(id, userIdList, options) {
11238
+ return localVarFp
11239
+ .addUsersToUserGroup(id, userIdList, options)
11240
+ .then((request) => request(axios, basePath));
11241
+ },
11242
+ /**
11243
+ * Create a `user-group`
11244
+ * @param {CreateUserGroupRequest} createUserGroupRequest
11245
+ * @param {*} [options] Override http request option.
11246
+ * @throws {RequiredError}
11247
+ */
11248
+ createUserGroup(createUserGroupRequest, options) {
11249
+ return localVarFp
11250
+ .createUserGroup(createUserGroupRequest, options)
11251
+ .then((request) => request(axios, basePath));
11252
+ },
11253
+ /**
11254
+ * Get a `user-group`.
11255
+ * @param {string} id The `user-group` ID.
11256
+ * @param {*} [options] Override http request option.
11257
+ * @throws {RequiredError}
11258
+ */
11259
+ getUserGroup(id, options) {
11260
+ return localVarFp
11261
+ .getUserGroup(id, options)
11262
+ .then((request) => request(axios, basePath));
11263
+ },
11264
+ };
11265
+ };
11266
+ /**
11267
+ * UserGroupsApi - object-oriented interface
11268
+ * @export
11269
+ * @class UserGroupsApi
11270
+ * @extends {BaseAPI}
11271
+ */
11272
+ export class UserGroupsApi extends BaseAPI {
11273
+ /**
11274
+ * Add a `user` to a `user-group`.
11275
+ * @param {UserGroupsApiAddUsersToUserGroupRequest} requestParameters Request parameters.
11276
+ * @param {*} [options] Override http request option.
11277
+ * @throws {RequiredError}
11278
+ * @memberof UserGroupsApi
11279
+ */
11280
+ addUsersToUserGroup(requestParameters, options) {
11281
+ return UserGroupsApiFp(this.configuration)
11282
+ .addUsersToUserGroup(requestParameters.id, requestParameters.userIdList, options)
11283
+ .then((request) => request(this.axios, this.basePath));
11284
+ }
11285
+ /**
11286
+ * Create a `user-group`
11287
+ * @param {UserGroupsApiCreateUserGroupRequest} requestParameters Request parameters.
11288
+ * @param {*} [options] Override http request option.
11289
+ * @throws {RequiredError}
11290
+ * @memberof UserGroupsApi
11291
+ */
11292
+ createUserGroup(requestParameters, options) {
11293
+ return UserGroupsApiFp(this.configuration)
11294
+ .createUserGroup(requestParameters.createUserGroupRequest, options)
11295
+ .then((request) => request(this.axios, this.basePath));
11296
+ }
11297
+ /**
11298
+ * Get a `user-group`.
11299
+ * @param {UserGroupsApiGetUserGroupRequest} requestParameters Request parameters.
11300
+ * @param {*} [options] Override http request option.
11301
+ * @throws {RequiredError}
11302
+ * @memberof UserGroupsApi
11303
+ */
11304
+ getUserGroup(requestParameters, options) {
11305
+ return UserGroupsApiFp(this.configuration)
11306
+ .getUserGroup(requestParameters.id, options)
11307
+ .then((request) => request(this.axios, this.basePath));
11308
+ }
11309
+ }
11310
+ /**
11311
+ * UsersApi - axios parameter creator
11312
+ * @export
11313
+ */
11314
+ export const UsersApiAxiosParamCreator = function (configuration) {
11315
+ return {
11316
+ /**
11317
+ * Create a `user`
11318
+ * @param {CreateUserRequest} createUserRequest
11319
+ * @param {*} [options] Override http request option.
11320
+ * @throws {RequiredError}
11321
+ */
11322
+ createUser: (createUserRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
11323
+ var _a;
11324
+ // verify required parameter 'createUserRequest' is not null or undefined
11325
+ assertParamExists('createUser', 'createUserRequest', createUserRequest);
11326
+ const localVarPath = `/users`;
11327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11328
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11329
+ let baseOptions;
11330
+ if (configuration) {
11331
+ baseOptions = configuration.baseOptions;
11332
+ }
11333
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11334
+ const localVarHeaderParameter = {};
11335
+ const localVarQueryParameter = {};
11336
+ // authentication OAuth2 required
11337
+ // oauth required
11338
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11339
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
11340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11341
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
11342
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11343
+ localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration);
11344
+ return {
11345
+ url: toPathString(localVarUrlObj),
11346
+ options: localVarRequestOptions,
11347
+ };
11348
+ }),
11349
+ /**
11350
+ * Get a `user`.
11351
+ * @param {string} id The `user` ID.
11352
+ * @param {*} [options] Override http request option.
11353
+ * @throws {RequiredError}
11354
+ */
11355
+ getUser: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
11356
+ var _b;
11357
+ // verify required parameter 'id' is not null or undefined
11358
+ assertParamExists('getUser', 'id', id);
11359
+ const localVarPath = `/users/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
11360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11361
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11362
+ let baseOptions;
11363
+ if (configuration) {
11364
+ baseOptions = configuration.baseOptions;
11365
+ }
11366
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11367
+ const localVarHeaderParameter = {};
11368
+ const localVarQueryParameter = {};
11369
+ // authentication OAuth2 required
11370
+ // oauth required
11371
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11373
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
11374
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11375
+ return {
11376
+ url: toPathString(localVarUrlObj),
11377
+ options: localVarRequestOptions,
11378
+ };
11379
+ }),
11380
+ /**
11381
+ * Get `user-group`s.
11382
+ * @param {string} id The `user` ID.
11383
+ * @param {string} [pageCursor] The cursor for the next page of items.
11384
+ * @param {number} [pageSize] The number of items to return.
11385
+ * @param {*} [options] Override http request option.
11386
+ * @throws {RequiredError}
11387
+ */
11388
+ getUserGroupsForUser: (id, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
11389
+ var _c;
11390
+ // verify required parameter 'id' is not null or undefined
11391
+ assertParamExists('getUserGroupsForUser', 'id', id);
11392
+ const localVarPath = `/users/{id}/user-groups`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
11393
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11394
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11395
+ let baseOptions;
11396
+ if (configuration) {
11397
+ baseOptions = configuration.baseOptions;
11398
+ }
11399
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11400
+ const localVarHeaderParameter = {};
11401
+ const localVarQueryParameter = {};
11402
+ // authentication OAuth2 required
11403
+ // oauth required
11404
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11405
+ if (pageCursor !== undefined) {
11406
+ localVarQueryParameter['page[cursor]'] = pageCursor;
11407
+ }
11408
+ if (pageSize !== undefined) {
11409
+ localVarQueryParameter['page[size]'] = pageSize;
11410
+ }
11411
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11412
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
11413
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11414
+ return {
11415
+ url: toPathString(localVarUrlObj),
11416
+ options: localVarRequestOptions,
11417
+ };
11418
+ }),
11419
+ /**
11420
+ * List `user`s.
11421
+ * @param {string} [filterIdpId] Id from the idpProvider.
11422
+ * @param {string} [pageCursor] The cursor for the next page of items.
11423
+ * @param {number} [pageSize] The number of items to return.
11424
+ * @param {*} [options] Override http request option.
11425
+ * @throws {RequiredError}
11426
+ */
11427
+ listUsers: (filterIdpId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
11428
+ var _d;
11429
+ const localVarPath = `/users`;
11430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11432
+ let baseOptions;
11433
+ if (configuration) {
11434
+ baseOptions = configuration.baseOptions;
11435
+ }
11436
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11437
+ const localVarHeaderParameter = {};
11438
+ const localVarQueryParameter = {};
11439
+ // authentication OAuth2 required
11440
+ // oauth required
11441
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11442
+ if (filterIdpId !== undefined) {
11443
+ localVarQueryParameter['filter[idpId]'] = filterIdpId;
11444
+ }
11445
+ if (pageCursor !== undefined) {
11446
+ localVarQueryParameter['page[cursor]'] = pageCursor;
11447
+ }
11448
+ if (pageSize !== undefined) {
11449
+ localVarQueryParameter['page[size]'] = pageSize;
11450
+ }
11451
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11452
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
11453
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11454
+ return {
11455
+ url: toPathString(localVarUrlObj),
11456
+ options: localVarRequestOptions,
11457
+ };
11458
+ }),
11459
+ };
11460
+ };
11461
+ /**
11462
+ * UsersApi - functional programming interface
11463
+ * @export
11464
+ */
11465
+ export const UsersApiFp = function (configuration) {
11466
+ const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
11467
+ return {
11468
+ /**
11469
+ * Create a `user`
11470
+ * @param {CreateUserRequest} createUserRequest
11471
+ * @param {*} [options] Override http request option.
11472
+ * @throws {RequiredError}
11473
+ */
11474
+ createUser(createUserRequest, options) {
11475
+ return __awaiter(this, void 0, void 0, function* () {
11476
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUser(createUserRequest, options);
11477
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11478
+ });
11479
+ },
11480
+ /**
11481
+ * Get a `user`.
11482
+ * @param {string} id The `user` ID.
11483
+ * @param {*} [options] Override http request option.
11484
+ * @throws {RequiredError}
11485
+ */
11486
+ getUser(id, options) {
11487
+ return __awaiter(this, void 0, void 0, function* () {
11488
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(id, options);
11489
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11490
+ });
11491
+ },
11492
+ /**
11493
+ * Get `user-group`s.
11494
+ * @param {string} id The `user` ID.
11495
+ * @param {string} [pageCursor] The cursor for the next page of items.
11496
+ * @param {number} [pageSize] The number of items to return.
11497
+ * @param {*} [options] Override http request option.
11498
+ * @throws {RequiredError}
11499
+ */
11500
+ getUserGroupsForUser(id, pageCursor, pageSize, options) {
11501
+ return __awaiter(this, void 0, void 0, function* () {
11502
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroupsForUser(id, pageCursor, pageSize, options);
11503
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11504
+ });
11505
+ },
11506
+ /**
11507
+ * List `user`s.
11508
+ * @param {string} [filterIdpId] Id from the idpProvider.
11509
+ * @param {string} [pageCursor] The cursor for the next page of items.
11510
+ * @param {number} [pageSize] The number of items to return.
11511
+ * @param {*} [options] Override http request option.
11512
+ * @throws {RequiredError}
11513
+ */
11514
+ listUsers(filterIdpId, pageCursor, pageSize, options) {
11515
+ return __awaiter(this, void 0, void 0, function* () {
11516
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(filterIdpId, pageCursor, pageSize, options);
11517
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11518
+ });
11519
+ },
11520
+ };
11521
+ };
11522
+ /**
11523
+ * UsersApi - factory interface
11524
+ * @export
11525
+ */
11526
+ export const UsersApiFactory = function (configuration, basePath, axios) {
11527
+ const localVarFp = UsersApiFp(configuration);
11528
+ return {
11529
+ /**
11530
+ * Create a `user`
11531
+ * @param {CreateUserRequest} createUserRequest
11532
+ * @param {*} [options] Override http request option.
11533
+ * @throws {RequiredError}
11534
+ */
11535
+ createUser(createUserRequest, options) {
11536
+ return localVarFp
11537
+ .createUser(createUserRequest, options)
11538
+ .then((request) => request(axios, basePath));
11539
+ },
11540
+ /**
11541
+ * Get a `user`.
11542
+ * @param {string} id The `user` ID.
11543
+ * @param {*} [options] Override http request option.
11544
+ * @throws {RequiredError}
11545
+ */
11546
+ getUser(id, options) {
11547
+ return localVarFp
11548
+ .getUser(id, options)
11549
+ .then((request) => request(axios, basePath));
11550
+ },
11551
+ /**
11552
+ * Get `user-group`s.
11553
+ * @param {string} id The `user` ID.
11554
+ * @param {string} [pageCursor] The cursor for the next page of items.
11555
+ * @param {number} [pageSize] The number of items to return.
11556
+ * @param {*} [options] Override http request option.
11557
+ * @throws {RequiredError}
11558
+ */
11559
+ getUserGroupsForUser(id, pageCursor, pageSize, options) {
11560
+ return localVarFp
11561
+ .getUserGroupsForUser(id, pageCursor, pageSize, options)
11562
+ .then((request) => request(axios, basePath));
11563
+ },
11564
+ /**
11565
+ * List `user`s.
11566
+ * @param {string} [filterIdpId] Id from the idpProvider.
11567
+ * @param {string} [pageCursor] The cursor for the next page of items.
11568
+ * @param {number} [pageSize] The number of items to return.
11569
+ * @param {*} [options] Override http request option.
11570
+ * @throws {RequiredError}
11571
+ */
11572
+ listUsers(filterIdpId, pageCursor, pageSize, options) {
11573
+ return localVarFp
11574
+ .listUsers(filterIdpId, pageCursor, pageSize, options)
11575
+ .then((request) => request(axios, basePath));
11576
+ },
11577
+ };
11578
+ };
11579
+ /**
11580
+ * UsersApi - object-oriented interface
11581
+ * @export
11582
+ * @class UsersApi
11583
+ * @extends {BaseAPI}
11584
+ */
11585
+ export class UsersApi extends BaseAPI {
11586
+ /**
11587
+ * Create a `user`
11588
+ * @param {UsersApiCreateUserRequest} requestParameters Request parameters.
11589
+ * @param {*} [options] Override http request option.
11590
+ * @throws {RequiredError}
11591
+ * @memberof UsersApi
11592
+ */
11593
+ createUser(requestParameters, options) {
11594
+ return UsersApiFp(this.configuration)
11595
+ .createUser(requestParameters.createUserRequest, options)
11596
+ .then((request) => request(this.axios, this.basePath));
11597
+ }
11598
+ /**
11599
+ * Get a `user`.
11600
+ * @param {UsersApiGetUserRequest} requestParameters Request parameters.
11601
+ * @param {*} [options] Override http request option.
11602
+ * @throws {RequiredError}
11603
+ * @memberof UsersApi
11604
+ */
11605
+ getUser(requestParameters, options) {
11606
+ return UsersApiFp(this.configuration)
11607
+ .getUser(requestParameters.id, options)
11608
+ .then((request) => request(this.axios, this.basePath));
11609
+ }
11610
+ /**
11611
+ * Get `user-group`s.
11612
+ * @param {UsersApiGetUserGroupsForUserRequest} requestParameters Request parameters.
11613
+ * @param {*} [options] Override http request option.
11614
+ * @throws {RequiredError}
11615
+ * @memberof UsersApi
11616
+ */
11617
+ getUserGroupsForUser(requestParameters, options) {
11618
+ return UsersApiFp(this.configuration)
11619
+ .getUserGroupsForUser(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, options)
11620
+ .then((request) => request(this.axios, this.basePath));
11621
+ }
11622
+ /**
11623
+ * List `user`s.
11624
+ * @param {UsersApiListUsersRequest} requestParameters Request parameters.
11625
+ * @param {*} [options] Override http request option.
11626
+ * @throws {RequiredError}
11627
+ * @memberof UsersApi
11628
+ */
11629
+ listUsers(requestParameters = {}, options) {
11630
+ return UsersApiFp(this.configuration)
11631
+ .listUsers(requestParameters.filterIdpId, requestParameters.pageCursor, requestParameters.pageSize, options)
11632
+ .then((request) => request(this.axios, this.basePath));
11633
+ }
11634
+ }
10136
11635
  /**
10137
11636
  * WebhookSubscriptionsApi - axios parameter creator
10138
11637
  * @export