@vertexvis/api-client-node 0.30.3 → 0.31.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
  };
@@ -83,6 +89,15 @@ export const CreateSceneItemRequestDataAttributesResolutionRuleEnum = {
83
89
  export const CreateSearchSessionRequestDataTypeEnum = {
84
90
  SearchSession: 'search-session',
85
91
  };
92
+ export const CreateThreadRequestDataTypeEnum = {
93
+ Thread: 'thread',
94
+ };
95
+ export const CreateUserGroupRequestDataTypeEnum = {
96
+ UserGroup: 'user-group',
97
+ };
98
+ export const CreateUserRequestDataTypeEnum = {
99
+ User: 'user',
100
+ };
86
101
  export const DeselectOperationTypeEnum = {
87
102
  Deselect: 'deselect',
88
103
  };
@@ -211,6 +226,27 @@ export const SelectFileBySuppliedIdTypeEnum = {
211
226
  export const SelectOpTypeEnum = {
212
227
  Select: 'select',
213
228
  };
229
+ export const ThreadDataTypeEnum = {
230
+ Thread: 'thread',
231
+ };
232
+ /**
233
+ *
234
+ * @export
235
+ * @enum {string}
236
+ */
237
+ export const ThreadStatus = {
238
+ Open: 'open',
239
+ Resolved: 'resolved',
240
+ };
241
+ /**
242
+ *
243
+ * @export
244
+ * @enum {string}
245
+ */
246
+ export const ThreadType = {
247
+ Comment: 'comment',
248
+ Issue: 'issue',
249
+ };
214
250
  export const UpdateAccountRequestDataAttributesStatusEnum = {
215
251
  Active: 'active',
216
252
  Disabled: 'disabled',
@@ -229,6 +265,12 @@ export const UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
229
265
  Active: 'active',
230
266
  Paused: 'paused',
231
267
  };
268
+ export const UserGroupIdTypeEnum = {
269
+ UserGroup: 'user-group',
270
+ };
271
+ export const UserRelationshipDataTypeEnum = {
272
+ User: 'user',
273
+ };
232
274
  export const ViewDefaultRenOpTypeEnum = {
233
275
  ViewDefaultRendition: 'view-default-rendition',
234
276
  };
@@ -1255,6 +1297,247 @@ export class BatchesApi extends BaseAPI {
1255
1297
  .then((request) => request(this.axios, this.basePath));
1256
1298
  }
1257
1299
  }
1300
+ /**
1301
+ * CollaborationContextsApi - axios parameter creator
1302
+ * @export
1303
+ */
1304
+ export const CollaborationContextsApiAxiosParamCreator = function (configuration) {
1305
+ return {
1306
+ /**
1307
+ * Create a `collaboration-context`.
1308
+ * @param {string} id The `collaboration-context` ID.
1309
+ * @param {UserGroupIdsList} userGroupIdsList
1310
+ * @param {*} [options] Override http request option.
1311
+ * @throws {RequiredError}
1312
+ */
1313
+ addCollaborationContextUserGroups: (id, userGroupIdsList, options = {}) => __awaiter(this, void 0, void 0, function* () {
1314
+ var _a;
1315
+ // verify required parameter 'id' is not null or undefined
1316
+ assertParamExists('addCollaborationContextUserGroups', 'id', id);
1317
+ // verify required parameter 'userGroupIdsList' is not null or undefined
1318
+ assertParamExists('addCollaborationContextUserGroups', 'userGroupIdsList', userGroupIdsList);
1319
+ const localVarPath = `/collaboration-contexts/{id}/user-groups`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1320
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1321
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1322
+ let baseOptions;
1323
+ if (configuration) {
1324
+ baseOptions = configuration.baseOptions;
1325
+ }
1326
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1327
+ const localVarHeaderParameter = {};
1328
+ const localVarQueryParameter = {};
1329
+ // authentication OAuth2 required
1330
+ // oauth required
1331
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1332
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
1333
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1334
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
1335
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1336
+ localVarRequestOptions.data = serializeDataIfNeeded(userGroupIdsList, localVarRequestOptions, configuration);
1337
+ return {
1338
+ url: toPathString(localVarUrlObj),
1339
+ options: localVarRequestOptions,
1340
+ };
1341
+ }),
1342
+ /**
1343
+ * Create a `collaboration-context`.
1344
+ * @param {CreateCollaborationContextRequest} createCollaborationContextRequest
1345
+ * @param {*} [options] Override http request option.
1346
+ * @throws {RequiredError}
1347
+ */
1348
+ createCollaborationContext: (createCollaborationContextRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1349
+ var _b;
1350
+ // verify required parameter 'createCollaborationContextRequest' is not null or undefined
1351
+ assertParamExists('createCollaborationContext', 'createCollaborationContextRequest', createCollaborationContextRequest);
1352
+ const localVarPath = `/collaboration-contexts`;
1353
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1354
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1355
+ let baseOptions;
1356
+ if (configuration) {
1357
+ baseOptions = configuration.baseOptions;
1358
+ }
1359
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1360
+ const localVarHeaderParameter = {};
1361
+ const localVarQueryParameter = {};
1362
+ // authentication OAuth2 required
1363
+ // oauth required
1364
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1365
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
1366
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1367
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
1368
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1369
+ localVarRequestOptions.data = serializeDataIfNeeded(createCollaborationContextRequest, localVarRequestOptions, configuration);
1370
+ return {
1371
+ url: toPathString(localVarUrlObj),
1372
+ options: localVarRequestOptions,
1373
+ };
1374
+ }),
1375
+ /**
1376
+ * Get a `collaboration-context` by ID.
1377
+ * @param {string} id The `collaboration-context` ID.
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ */
1381
+ getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1382
+ var _c;
1383
+ // verify required parameter 'id' is not null or undefined
1384
+ assertParamExists('getCollaborationContext', 'id', id);
1385
+ const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1386
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1387
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1388
+ let baseOptions;
1389
+ if (configuration) {
1390
+ baseOptions = configuration.baseOptions;
1391
+ }
1392
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1393
+ const localVarHeaderParameter = {};
1394
+ const localVarQueryParameter = {};
1395
+ // authentication OAuth2 required
1396
+ // oauth required
1397
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1398
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1399
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
1400
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1401
+ return {
1402
+ url: toPathString(localVarUrlObj),
1403
+ options: localVarRequestOptions,
1404
+ };
1405
+ }),
1406
+ };
1407
+ };
1408
+ /**
1409
+ * CollaborationContextsApi - functional programming interface
1410
+ * @export
1411
+ */
1412
+ export const CollaborationContextsApiFp = function (configuration) {
1413
+ const localVarAxiosParamCreator = CollaborationContextsApiAxiosParamCreator(configuration);
1414
+ return {
1415
+ /**
1416
+ * Create a `collaboration-context`.
1417
+ * @param {string} id The `collaboration-context` ID.
1418
+ * @param {UserGroupIdsList} userGroupIdsList
1419
+ * @param {*} [options] Override http request option.
1420
+ * @throws {RequiredError}
1421
+ */
1422
+ addCollaborationContextUserGroups(id, userGroupIdsList, options) {
1423
+ return __awaiter(this, void 0, void 0, function* () {
1424
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addCollaborationContextUserGroups(id, userGroupIdsList, options);
1425
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1426
+ });
1427
+ },
1428
+ /**
1429
+ * Create a `collaboration-context`.
1430
+ * @param {CreateCollaborationContextRequest} createCollaborationContextRequest
1431
+ * @param {*} [options] Override http request option.
1432
+ * @throws {RequiredError}
1433
+ */
1434
+ createCollaborationContext(createCollaborationContextRequest, options) {
1435
+ return __awaiter(this, void 0, void 0, function* () {
1436
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCollaborationContext(createCollaborationContextRequest, options);
1437
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1438
+ });
1439
+ },
1440
+ /**
1441
+ * Get a `collaboration-context` by ID.
1442
+ * @param {string} id The `collaboration-context` ID.
1443
+ * @param {*} [options] Override http request option.
1444
+ * @throws {RequiredError}
1445
+ */
1446
+ getCollaborationContext(id, options) {
1447
+ return __awaiter(this, void 0, void 0, function* () {
1448
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollaborationContext(id, options);
1449
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1450
+ });
1451
+ },
1452
+ };
1453
+ };
1454
+ /**
1455
+ * CollaborationContextsApi - factory interface
1456
+ * @export
1457
+ */
1458
+ export const CollaborationContextsApiFactory = function (configuration, basePath, axios) {
1459
+ const localVarFp = CollaborationContextsApiFp(configuration);
1460
+ return {
1461
+ /**
1462
+ * Create a `collaboration-context`.
1463
+ * @param {string} id The `collaboration-context` ID.
1464
+ * @param {UserGroupIdsList} userGroupIdsList
1465
+ * @param {*} [options] Override http request option.
1466
+ * @throws {RequiredError}
1467
+ */
1468
+ addCollaborationContextUserGroups(id, userGroupIdsList, options) {
1469
+ return localVarFp
1470
+ .addCollaborationContextUserGroups(id, userGroupIdsList, options)
1471
+ .then((request) => request(axios, basePath));
1472
+ },
1473
+ /**
1474
+ * Create a `collaboration-context`.
1475
+ * @param {CreateCollaborationContextRequest} createCollaborationContextRequest
1476
+ * @param {*} [options] Override http request option.
1477
+ * @throws {RequiredError}
1478
+ */
1479
+ createCollaborationContext(createCollaborationContextRequest, options) {
1480
+ return localVarFp
1481
+ .createCollaborationContext(createCollaborationContextRequest, options)
1482
+ .then((request) => request(axios, basePath));
1483
+ },
1484
+ /**
1485
+ * Get a `collaboration-context` by ID.
1486
+ * @param {string} id The `collaboration-context` ID.
1487
+ * @param {*} [options] Override http request option.
1488
+ * @throws {RequiredError}
1489
+ */
1490
+ getCollaborationContext(id, options) {
1491
+ return localVarFp
1492
+ .getCollaborationContext(id, options)
1493
+ .then((request) => request(axios, basePath));
1494
+ },
1495
+ };
1496
+ };
1497
+ /**
1498
+ * CollaborationContextsApi - object-oriented interface
1499
+ * @export
1500
+ * @class CollaborationContextsApi
1501
+ * @extends {BaseAPI}
1502
+ */
1503
+ export class CollaborationContextsApi extends BaseAPI {
1504
+ /**
1505
+ * Create a `collaboration-context`.
1506
+ * @param {CollaborationContextsApiAddCollaborationContextUserGroupsRequest} requestParameters Request parameters.
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ * @memberof CollaborationContextsApi
1510
+ */
1511
+ addCollaborationContextUserGroups(requestParameters, options) {
1512
+ return CollaborationContextsApiFp(this.configuration)
1513
+ .addCollaborationContextUserGroups(requestParameters.id, requestParameters.userGroupIdsList, options)
1514
+ .then((request) => request(this.axios, this.basePath));
1515
+ }
1516
+ /**
1517
+ * Create a `collaboration-context`.
1518
+ * @param {CollaborationContextsApiCreateCollaborationContextRequest} requestParameters Request parameters.
1519
+ * @param {*} [options] Override http request option.
1520
+ * @throws {RequiredError}
1521
+ * @memberof CollaborationContextsApi
1522
+ */
1523
+ createCollaborationContext(requestParameters, options) {
1524
+ return CollaborationContextsApiFp(this.configuration)
1525
+ .createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
1526
+ .then((request) => request(this.axios, this.basePath));
1527
+ }
1528
+ /**
1529
+ * Get a `collaboration-context` by ID.
1530
+ * @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
1531
+ * @param {*} [options] Override http request option.
1532
+ * @throws {RequiredError}
1533
+ * @memberof CollaborationContextsApi
1534
+ */
1535
+ getCollaborationContext(requestParameters, options) {
1536
+ return CollaborationContextsApiFp(this.configuration)
1537
+ .getCollaborationContext(requestParameters.id, options)
1538
+ .then((request) => request(this.axios, this.basePath));
1539
+ }
1540
+ }
1258
1541
  /**
1259
1542
  * ExportsApi - axios parameter creator
1260
1543
  * @export
@@ -7000,10 +7283,12 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
7000
7283
  * @param {string} [filterSource] Source ID to filter on.
7001
7284
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7002
7285
  * @param {string} [filterParent] Parent ID to filter on.
7286
+ * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7287
+ * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
7003
7288
  * @param {*} [options] Override http request option.
7004
7289
  * @throws {RequiredError}
7005
7290
  */
7006
- getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
7291
+ getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options = {}) => __awaiter(this, void 0, void 0, function* () {
7007
7292
  var _f;
7008
7293
  // verify required parameter 'id' is not null or undefined
7009
7294
  assertParamExists('getSceneItems', 'id', id);
@@ -7035,6 +7320,12 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
7035
7320
  if (filterParent !== undefined) {
7036
7321
  localVarQueryParameter['filter[parent]'] = filterParent;
7037
7322
  }
7323
+ if (filterHasChildren !== undefined) {
7324
+ localVarQueryParameter['filter[hasChildren]'] = filterHasChildren;
7325
+ }
7326
+ if (filterHasGeometrySet !== undefined) {
7327
+ localVarQueryParameter['filter[hasGeometrySet]'] = filterHasGeometrySet;
7328
+ }
7038
7329
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7039
7330
  let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
7040
7331
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7158,12 +7449,14 @@ export const SceneItemsApiFp = function (configuration) {
7158
7449
  * @param {string} [filterSource] Source ID to filter on.
7159
7450
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7160
7451
  * @param {string} [filterParent] Parent ID to filter on.
7452
+ * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7453
+ * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
7161
7454
  * @param {*} [options] Override http request option.
7162
7455
  * @throws {RequiredError}
7163
7456
  */
7164
- getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options) {
7457
+ getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
7165
7458
  return __awaiter(this, void 0, void 0, function* () {
7166
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options);
7459
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options);
7167
7460
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7168
7461
  });
7169
7462
  },
@@ -7254,12 +7547,14 @@ export const SceneItemsApiFactory = function (configuration, basePath, axios) {
7254
7547
  * @param {string} [filterSource] Source ID to filter on.
7255
7548
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7256
7549
  * @param {string} [filterParent] Parent ID to filter on.
7550
+ * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7551
+ * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
7257
7552
  * @param {*} [options] Override http request option.
7258
7553
  * @throws {RequiredError}
7259
7554
  */
7260
- getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options) {
7555
+ getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
7261
7556
  return localVarFp
7262
- .getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options)
7557
+ .getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options)
7263
7558
  .then((request) => request(axios, basePath));
7264
7559
  },
7265
7560
  /**
@@ -7352,7 +7647,7 @@ export class SceneItemsApi extends BaseAPI {
7352
7647
  */
7353
7648
  getSceneItems(requestParameters, options) {
7354
7649
  return SceneItemsApiFp(this.configuration)
7355
- .getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, options)
7650
+ .getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, requestParameters.filterHasChildren, requestParameters.filterHasGeometrySet, options)
7356
7651
  .then((request) => request(this.axios, this.basePath));
7357
7652
  }
7358
7653
  /**
@@ -9656,22 +9951,25 @@ export class StreamKeysApi extends BaseAPI {
9656
9951
  }
9657
9952
  }
9658
9953
  /**
9659
- * TranslationInspectionsApi - axios parameter creator
9954
+ * ThreadsApi - axios parameter creator
9660
9955
  * @export
9661
9956
  */
9662
- export const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
9957
+ export const ThreadsApiAxiosParamCreator = function (configuration) {
9663
9958
  return {
9664
9959
  /**
9665
- * Create a `translation-inspection`.
9666
- * @param {CreateTranslationInspectionRequest} createTranslationInspectionRequest
9960
+ * Create a `thread` belonging to a `collaboration-context`.
9961
+ * @param {string} id The `collaboration-context` ID.
9962
+ * @param {CreateThreadRequest} createThreadRequest
9667
9963
  * @param {*} [options] Override http request option.
9668
9964
  * @throws {RequiredError}
9669
9965
  */
9670
- createTranslationInspection: (createTranslationInspectionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
9966
+ createThread: (id, createThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
9671
9967
  var _a;
9672
- // verify required parameter 'createTranslationInspectionRequest' is not null or undefined
9673
- assertParamExists('createTranslationInspection', 'createTranslationInspectionRequest', createTranslationInspectionRequest);
9674
- const localVarPath = `/translation-inspections`;
9968
+ // verify required parameter 'id' is not null or undefined
9969
+ assertParamExists('createThread', 'id', id);
9970
+ // verify required parameter 'createThreadRequest' is not null or undefined
9971
+ assertParamExists('createThread', 'createThreadRequest', createThreadRequest);
9972
+ const localVarPath = `/collaboration-contexts/{id}/threads`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
9675
9973
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9676
9974
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9677
9975
  let baseOptions;
@@ -9688,23 +9986,23 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9688
9986
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9689
9987
  let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
9690
9988
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9691
- localVarRequestOptions.data = serializeDataIfNeeded(createTranslationInspectionRequest, localVarRequestOptions, configuration);
9989
+ localVarRequestOptions.data = serializeDataIfNeeded(createThreadRequest, localVarRequestOptions, configuration);
9692
9990
  return {
9693
9991
  url: toPathString(localVarUrlObj),
9694
9992
  options: localVarRequestOptions,
9695
9993
  };
9696
9994
  }),
9697
9995
  /**
9698
- * Get a `translation-inspection` by ID.
9699
- * @param {string} id The `translation-inspection` ID.
9996
+ * Get a `thread`.
9997
+ * @param {string} id The `thread` ID.
9700
9998
  * @param {*} [options] Override http request option.
9701
9999
  * @throws {RequiredError}
9702
10000
  */
9703
- getInspectionJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10001
+ getThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
9704
10002
  var _b;
9705
10003
  // 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)));
10004
+ assertParamExists('getThread', 'id', id);
10005
+ const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
9708
10006
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9709
10007
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9710
10008
  let baseOptions;
@@ -9726,17 +10024,16 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9726
10024
  };
9727
10025
  }),
9728
10026
  /**
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.
10027
+ * Get a page of `thread`s.
10028
+ * @param {string} [filterCollaborationContextId] A collaboration context to filter on.
10029
+ * @param {string} [pageCursor] The cursor for the next page of items.
10030
+ * @param {number} [pageSize] The number of items to return.
9731
10031
  * @param {*} [options] Override http request option.
9732
- * @deprecated
9733
10032
  * @throws {RequiredError}
9734
10033
  */
9735
- getQueuedTranslation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10034
+ getThreads: (filterCollaborationContextId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
9736
10035
  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)));
10036
+ const localVarPath = `/threads`;
9740
10037
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9741
10038
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9742
10039
  let baseOptions;
@@ -9749,6 +10046,16 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9749
10046
  // authentication OAuth2 required
9750
10047
  // oauth required
9751
10048
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10049
+ if (filterCollaborationContextId !== undefined) {
10050
+ localVarQueryParameter['filter[collaborationContextId]'] =
10051
+ filterCollaborationContextId;
10052
+ }
10053
+ if (pageCursor !== undefined) {
10054
+ localVarQueryParameter['page[cursor]'] = pageCursor;
10055
+ }
10056
+ if (pageSize !== undefined) {
10057
+ localVarQueryParameter['page[size]'] = pageSize;
10058
+ }
9752
10059
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9753
10060
  let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
9754
10061
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9757,39 +10064,280 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
9757
10064
  options: localVarRequestOptions,
9758
10065
  };
9759
10066
  }),
10067
+ };
10068
+ };
10069
+ /**
10070
+ * ThreadsApi - functional programming interface
10071
+ * @export
10072
+ */
10073
+ export const ThreadsApiFp = function (configuration) {
10074
+ const localVarAxiosParamCreator = ThreadsApiAxiosParamCreator(configuration);
10075
+ return {
9760
10076
  /**
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.
10077
+ * Create a `thread` belonging to a `collaboration-context`.
10078
+ * @param {string} id The `collaboration-context` ID.
10079
+ * @param {CreateThreadRequest} createThreadRequest
9763
10080
  * @param {*} [options] Override http request option.
9764
10081
  * @throws {RequiredError}
9765
10082
  */
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) {
9775
- baseOptions = configuration.baseOptions;
9776
- }
9777
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9778
- const localVarHeaderParameter = {};
9779
- const localVarQueryParameter = {};
9780
- // authentication OAuth2 required
9781
- // oauth required
9782
- yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
9783
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9784
- let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
9785
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9786
- return {
9787
- url: toPathString(localVarUrlObj),
9788
- options: localVarRequestOptions,
9789
- };
9790
- }),
10083
+ createThread(id, createThreadRequest, options) {
10084
+ return __awaiter(this, void 0, void 0, function* () {
10085
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createThread(id, createThreadRequest, options);
10086
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10087
+ });
10088
+ },
9791
10089
  /**
9792
- * Get all current translation jobs in progress.
10090
+ * Get a `thread`.
10091
+ * @param {string} id The `thread` ID.
10092
+ * @param {*} [options] Override http request option.
10093
+ * @throws {RequiredError}
10094
+ */
10095
+ getThread(id, options) {
10096
+ return __awaiter(this, void 0, void 0, function* () {
10097
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThread(id, options);
10098
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10099
+ });
10100
+ },
10101
+ /**
10102
+ * Get a page of `thread`s.
10103
+ * @param {string} [filterCollaborationContextId] A collaboration context to filter on.
10104
+ * @param {string} [pageCursor] The cursor for the next page of items.
10105
+ * @param {number} [pageSize] The number of items to return.
10106
+ * @param {*} [options] Override http request option.
10107
+ * @throws {RequiredError}
10108
+ */
10109
+ getThreads(filterCollaborationContextId, pageCursor, pageSize, options) {
10110
+ return __awaiter(this, void 0, void 0, function* () {
10111
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(filterCollaborationContextId, pageCursor, pageSize, options);
10112
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10113
+ });
10114
+ },
10115
+ };
10116
+ };
10117
+ /**
10118
+ * ThreadsApi - factory interface
10119
+ * @export
10120
+ */
10121
+ export const ThreadsApiFactory = function (configuration, basePath, axios) {
10122
+ const localVarFp = ThreadsApiFp(configuration);
10123
+ return {
10124
+ /**
10125
+ * Create a `thread` belonging to a `collaboration-context`.
10126
+ * @param {string} id The `collaboration-context` ID.
10127
+ * @param {CreateThreadRequest} createThreadRequest
10128
+ * @param {*} [options] Override http request option.
10129
+ * @throws {RequiredError}
10130
+ */
10131
+ createThread(id, createThreadRequest, options) {
10132
+ return localVarFp
10133
+ .createThread(id, createThreadRequest, options)
10134
+ .then((request) => request(axios, basePath));
10135
+ },
10136
+ /**
10137
+ * Get a `thread`.
10138
+ * @param {string} id The `thread` ID.
10139
+ * @param {*} [options] Override http request option.
10140
+ * @throws {RequiredError}
10141
+ */
10142
+ getThread(id, options) {
10143
+ return localVarFp
10144
+ .getThread(id, options)
10145
+ .then((request) => request(axios, basePath));
10146
+ },
10147
+ /**
10148
+ * Get a page of `thread`s.
10149
+ * @param {string} [filterCollaborationContextId] A collaboration context to filter on.
10150
+ * @param {string} [pageCursor] The cursor for the next page of items.
10151
+ * @param {number} [pageSize] The number of items to return.
10152
+ * @param {*} [options] Override http request option.
10153
+ * @throws {RequiredError}
10154
+ */
10155
+ getThreads(filterCollaborationContextId, pageCursor, pageSize, options) {
10156
+ return localVarFp
10157
+ .getThreads(filterCollaborationContextId, pageCursor, pageSize, options)
10158
+ .then((request) => request(axios, basePath));
10159
+ },
10160
+ };
10161
+ };
10162
+ /**
10163
+ * ThreadsApi - object-oriented interface
10164
+ * @export
10165
+ * @class ThreadsApi
10166
+ * @extends {BaseAPI}
10167
+ */
10168
+ export class ThreadsApi extends BaseAPI {
10169
+ /**
10170
+ * Create a `thread` belonging to a `collaboration-context`.
10171
+ * @param {ThreadsApiCreateThreadRequest} requestParameters Request parameters.
10172
+ * @param {*} [options] Override http request option.
10173
+ * @throws {RequiredError}
10174
+ * @memberof ThreadsApi
10175
+ */
10176
+ createThread(requestParameters, options) {
10177
+ return ThreadsApiFp(this.configuration)
10178
+ .createThread(requestParameters.id, requestParameters.createThreadRequest, options)
10179
+ .then((request) => request(this.axios, this.basePath));
10180
+ }
10181
+ /**
10182
+ * Get a `thread`.
10183
+ * @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
10184
+ * @param {*} [options] Override http request option.
10185
+ * @throws {RequiredError}
10186
+ * @memberof ThreadsApi
10187
+ */
10188
+ getThread(requestParameters, options) {
10189
+ return ThreadsApiFp(this.configuration)
10190
+ .getThread(requestParameters.id, options)
10191
+ .then((request) => request(this.axios, this.basePath));
10192
+ }
10193
+ /**
10194
+ * Get a page of `thread`s.
10195
+ * @param {ThreadsApiGetThreadsRequest} requestParameters Request parameters.
10196
+ * @param {*} [options] Override http request option.
10197
+ * @throws {RequiredError}
10198
+ * @memberof ThreadsApi
10199
+ */
10200
+ getThreads(requestParameters = {}, options) {
10201
+ return ThreadsApiFp(this.configuration)
10202
+ .getThreads(requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, options)
10203
+ .then((request) => request(this.axios, this.basePath));
10204
+ }
10205
+ }
10206
+ /**
10207
+ * TranslationInspectionsApi - axios parameter creator
10208
+ * @export
10209
+ */
10210
+ export const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
10211
+ return {
10212
+ /**
10213
+ * Create a `translation-inspection`.
10214
+ * @param {CreateTranslationInspectionRequest} createTranslationInspectionRequest
10215
+ * @param {*} [options] Override http request option.
10216
+ * @throws {RequiredError}
10217
+ */
10218
+ createTranslationInspection: (createTranslationInspectionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
10219
+ var _a;
10220
+ // verify required parameter 'createTranslationInspectionRequest' is not null or undefined
10221
+ assertParamExists('createTranslationInspection', 'createTranslationInspectionRequest', createTranslationInspectionRequest);
10222
+ const localVarPath = `/translation-inspections`;
10223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10224
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10225
+ let baseOptions;
10226
+ if (configuration) {
10227
+ baseOptions = configuration.baseOptions;
10228
+ }
10229
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10230
+ const localVarHeaderParameter = {};
10231
+ const localVarQueryParameter = {};
10232
+ // authentication OAuth2 required
10233
+ // oauth required
10234
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10235
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
10236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10237
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
10238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10239
+ localVarRequestOptions.data = serializeDataIfNeeded(createTranslationInspectionRequest, localVarRequestOptions, configuration);
10240
+ return {
10241
+ url: toPathString(localVarUrlObj),
10242
+ options: localVarRequestOptions,
10243
+ };
10244
+ }),
10245
+ /**
10246
+ * Get a `translation-inspection` by ID.
10247
+ * @param {string} id The `translation-inspection` ID.
10248
+ * @param {*} [options] Override http request option.
10249
+ * @throws {RequiredError}
10250
+ */
10251
+ getInspectionJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10252
+ var _b;
10253
+ // verify required parameter 'id' is not null or undefined
10254
+ assertParamExists('getInspectionJob', 'id', id);
10255
+ const localVarPath = `/translation-inspections/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10257
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10258
+ let baseOptions;
10259
+ if (configuration) {
10260
+ baseOptions = configuration.baseOptions;
10261
+ }
10262
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10263
+ const localVarHeaderParameter = {};
10264
+ const localVarQueryParameter = {};
10265
+ // authentication OAuth2 required
10266
+ // oauth required
10267
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10268
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10269
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
10270
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10271
+ return {
10272
+ url: toPathString(localVarUrlObj),
10273
+ options: localVarRequestOptions,
10274
+ };
10275
+ }),
10276
+ /**
10277
+ * 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.
10278
+ * @param {string} id The `queued-translation` ID.
10279
+ * @param {*} [options] Override http request option.
10280
+ * @deprecated
10281
+ * @throws {RequiredError}
10282
+ */
10283
+ getQueuedTranslation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10284
+ var _c;
10285
+ // verify required parameter 'id' is not null or undefined
10286
+ assertParamExists('getQueuedTranslation', 'id', id);
10287
+ const localVarPath = `/queued-translations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10288
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10289
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10290
+ let baseOptions;
10291
+ if (configuration) {
10292
+ baseOptions = configuration.baseOptions;
10293
+ }
10294
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10295
+ const localVarHeaderParameter = {};
10296
+ const localVarQueryParameter = {};
10297
+ // authentication OAuth2 required
10298
+ // oauth required
10299
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10300
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10301
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
10302
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10303
+ return {
10304
+ url: toPathString(localVarUrlObj),
10305
+ options: localVarRequestOptions,
10306
+ };
10307
+ }),
10308
+ /**
10309
+ * 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.
10310
+ * @param {string} id The `queued-translation` ID.
10311
+ * @param {*} [options] Override http request option.
10312
+ * @throws {RequiredError}
10313
+ */
10314
+ getQueuedTranslationJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10315
+ var _d;
10316
+ // verify required parameter 'id' is not null or undefined
10317
+ assertParamExists('getQueuedTranslationJob', 'id', id);
10318
+ const localVarPath = `/queued-translation-jobs/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10320
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10321
+ let baseOptions;
10322
+ if (configuration) {
10323
+ baseOptions = configuration.baseOptions;
10324
+ }
10325
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10326
+ const localVarHeaderParameter = {};
10327
+ const localVarQueryParameter = {};
10328
+ // authentication OAuth2 required
10329
+ // oauth required
10330
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10331
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10332
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
10333
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10334
+ return {
10335
+ url: toPathString(localVarUrlObj),
10336
+ options: localVarRequestOptions,
10337
+ };
10338
+ }),
10339
+ /**
10340
+ * Get all current translation jobs in progress.
9793
10341
  * @param {string} [pageCursor] The cursor for the next page of items.
9794
10342
  * @param {number} [pageSize] The number of items to return.
9795
10343
  * @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
@@ -10133,6 +10681,499 @@ export class TranslationInspectionsApi extends BaseAPI {
10133
10681
  .then((request) => request(this.axios, this.basePath));
10134
10682
  }
10135
10683
  }
10684
+ /**
10685
+ * UserGroupsApi - axios parameter creator
10686
+ * @export
10687
+ */
10688
+ export const UserGroupsApiAxiosParamCreator = function (configuration) {
10689
+ return {
10690
+ /**
10691
+ * Create a `user-group`
10692
+ * @param {CreateUserGroupRequest} createUserGroupRequest
10693
+ * @param {*} [options] Override http request option.
10694
+ * @throws {RequiredError}
10695
+ */
10696
+ createUserGroup: (createUserGroupRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
10697
+ var _a;
10698
+ // verify required parameter 'createUserGroupRequest' is not null or undefined
10699
+ assertParamExists('createUserGroup', 'createUserGroupRequest', createUserGroupRequest);
10700
+ const localVarPath = `/user-groups`;
10701
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10702
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10703
+ let baseOptions;
10704
+ if (configuration) {
10705
+ baseOptions = configuration.baseOptions;
10706
+ }
10707
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10708
+ const localVarHeaderParameter = {};
10709
+ const localVarQueryParameter = {};
10710
+ // authentication OAuth2 required
10711
+ // oauth required
10712
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10713
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
10714
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10715
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
10716
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10717
+ localVarRequestOptions.data = serializeDataIfNeeded(createUserGroupRequest, localVarRequestOptions, configuration);
10718
+ return {
10719
+ url: toPathString(localVarUrlObj),
10720
+ options: localVarRequestOptions,
10721
+ };
10722
+ }),
10723
+ /**
10724
+ * Get a `user-group`.
10725
+ * @param {string} id The `user-group` ID.
10726
+ * @param {*} [options] Override http request option.
10727
+ * @throws {RequiredError}
10728
+ */
10729
+ getUserGroup: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10730
+ var _b;
10731
+ // verify required parameter 'id' is not null or undefined
10732
+ assertParamExists('getUserGroup', 'id', id);
10733
+ const localVarPath = `/user-groups/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10734
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10735
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10736
+ let baseOptions;
10737
+ if (configuration) {
10738
+ baseOptions = configuration.baseOptions;
10739
+ }
10740
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10741
+ const localVarHeaderParameter = {};
10742
+ const localVarQueryParameter = {};
10743
+ // authentication OAuth2 required
10744
+ // oauth required
10745
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10746
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10747
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
10748
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10749
+ return {
10750
+ url: toPathString(localVarUrlObj),
10751
+ options: localVarRequestOptions,
10752
+ };
10753
+ }),
10754
+ };
10755
+ };
10756
+ /**
10757
+ * UserGroupsApi - functional programming interface
10758
+ * @export
10759
+ */
10760
+ export const UserGroupsApiFp = function (configuration) {
10761
+ const localVarAxiosParamCreator = UserGroupsApiAxiosParamCreator(configuration);
10762
+ return {
10763
+ /**
10764
+ * Create a `user-group`
10765
+ * @param {CreateUserGroupRequest} createUserGroupRequest
10766
+ * @param {*} [options] Override http request option.
10767
+ * @throws {RequiredError}
10768
+ */
10769
+ createUserGroup(createUserGroupRequest, options) {
10770
+ return __awaiter(this, void 0, void 0, function* () {
10771
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUserGroup(createUserGroupRequest, options);
10772
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10773
+ });
10774
+ },
10775
+ /**
10776
+ * Get a `user-group`.
10777
+ * @param {string} id The `user-group` ID.
10778
+ * @param {*} [options] Override http request option.
10779
+ * @throws {RequiredError}
10780
+ */
10781
+ getUserGroup(id, options) {
10782
+ return __awaiter(this, void 0, void 0, function* () {
10783
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroup(id, options);
10784
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10785
+ });
10786
+ },
10787
+ };
10788
+ };
10789
+ /**
10790
+ * UserGroupsApi - factory interface
10791
+ * @export
10792
+ */
10793
+ export const UserGroupsApiFactory = function (configuration, basePath, axios) {
10794
+ const localVarFp = UserGroupsApiFp(configuration);
10795
+ return {
10796
+ /**
10797
+ * Create a `user-group`
10798
+ * @param {CreateUserGroupRequest} createUserGroupRequest
10799
+ * @param {*} [options] Override http request option.
10800
+ * @throws {RequiredError}
10801
+ */
10802
+ createUserGroup(createUserGroupRequest, options) {
10803
+ return localVarFp
10804
+ .createUserGroup(createUserGroupRequest, options)
10805
+ .then((request) => request(axios, basePath));
10806
+ },
10807
+ /**
10808
+ * Get a `user-group`.
10809
+ * @param {string} id The `user-group` ID.
10810
+ * @param {*} [options] Override http request option.
10811
+ * @throws {RequiredError}
10812
+ */
10813
+ getUserGroup(id, options) {
10814
+ return localVarFp
10815
+ .getUserGroup(id, options)
10816
+ .then((request) => request(axios, basePath));
10817
+ },
10818
+ };
10819
+ };
10820
+ /**
10821
+ * UserGroupsApi - object-oriented interface
10822
+ * @export
10823
+ * @class UserGroupsApi
10824
+ * @extends {BaseAPI}
10825
+ */
10826
+ export class UserGroupsApi extends BaseAPI {
10827
+ /**
10828
+ * Create a `user-group`
10829
+ * @param {UserGroupsApiCreateUserGroupRequest} requestParameters Request parameters.
10830
+ * @param {*} [options] Override http request option.
10831
+ * @throws {RequiredError}
10832
+ * @memberof UserGroupsApi
10833
+ */
10834
+ createUserGroup(requestParameters, options) {
10835
+ return UserGroupsApiFp(this.configuration)
10836
+ .createUserGroup(requestParameters.createUserGroupRequest, options)
10837
+ .then((request) => request(this.axios, this.basePath));
10838
+ }
10839
+ /**
10840
+ * Get a `user-group`.
10841
+ * @param {UserGroupsApiGetUserGroupRequest} requestParameters Request parameters.
10842
+ * @param {*} [options] Override http request option.
10843
+ * @throws {RequiredError}
10844
+ * @memberof UserGroupsApi
10845
+ */
10846
+ getUserGroup(requestParameters, options) {
10847
+ return UserGroupsApiFp(this.configuration)
10848
+ .getUserGroup(requestParameters.id, options)
10849
+ .then((request) => request(this.axios, this.basePath));
10850
+ }
10851
+ }
10852
+ /**
10853
+ * UsersApi - axios parameter creator
10854
+ * @export
10855
+ */
10856
+ export const UsersApiAxiosParamCreator = function (configuration) {
10857
+ return {
10858
+ /**
10859
+ * Create a `user`
10860
+ * @param {CreateUserRequest} createUserRequest
10861
+ * @param {*} [options] Override http request option.
10862
+ * @throws {RequiredError}
10863
+ */
10864
+ createUser: (createUserRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
10865
+ var _a;
10866
+ // verify required parameter 'createUserRequest' is not null or undefined
10867
+ assertParamExists('createUser', 'createUserRequest', createUserRequest);
10868
+ const localVarPath = `/users`;
10869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10870
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10871
+ let baseOptions;
10872
+ if (configuration) {
10873
+ baseOptions = configuration.baseOptions;
10874
+ }
10875
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10876
+ const localVarHeaderParameter = {};
10877
+ const localVarQueryParameter = {};
10878
+ // authentication OAuth2 required
10879
+ // oauth required
10880
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10881
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
10882
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10883
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
10884
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10885
+ localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration);
10886
+ return {
10887
+ url: toPathString(localVarUrlObj),
10888
+ options: localVarRequestOptions,
10889
+ };
10890
+ }),
10891
+ /**
10892
+ * Get a `user`.
10893
+ * @param {string} id The `user` ID.
10894
+ * @param {*} [options] Override http request option.
10895
+ * @throws {RequiredError}
10896
+ */
10897
+ getUser: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10898
+ var _b;
10899
+ // verify required parameter 'id' is not null or undefined
10900
+ assertParamExists('getUser', 'id', id);
10901
+ const localVarPath = `/users/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10903
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10904
+ let baseOptions;
10905
+ if (configuration) {
10906
+ baseOptions = configuration.baseOptions;
10907
+ }
10908
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10909
+ const localVarHeaderParameter = {};
10910
+ const localVarQueryParameter = {};
10911
+ // authentication OAuth2 required
10912
+ // oauth required
10913
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10914
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10915
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
10916
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10917
+ return {
10918
+ url: toPathString(localVarUrlObj),
10919
+ options: localVarRequestOptions,
10920
+ };
10921
+ }),
10922
+ /**
10923
+ * Get `user-group`s.
10924
+ * @param {string} id The `user` ID.
10925
+ * @param {string} [pageCursor] The cursor for the next page of items.
10926
+ * @param {number} [pageSize] The number of items to return.
10927
+ * @param {*} [options] Override http request option.
10928
+ * @throws {RequiredError}
10929
+ */
10930
+ getUserGroupsForUser: (id, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
10931
+ var _c;
10932
+ // verify required parameter 'id' is not null or undefined
10933
+ assertParamExists('getUserGroupsForUser', 'id', id);
10934
+ const localVarPath = `/users/{id}/user-groups`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10935
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10936
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10937
+ let baseOptions;
10938
+ if (configuration) {
10939
+ baseOptions = configuration.baseOptions;
10940
+ }
10941
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10942
+ const localVarHeaderParameter = {};
10943
+ const localVarQueryParameter = {};
10944
+ // authentication OAuth2 required
10945
+ // oauth required
10946
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10947
+ if (pageCursor !== undefined) {
10948
+ localVarQueryParameter['page[cursor]'] = pageCursor;
10949
+ }
10950
+ if (pageSize !== undefined) {
10951
+ localVarQueryParameter['page[size]'] = pageSize;
10952
+ }
10953
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10954
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
10955
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10956
+ return {
10957
+ url: toPathString(localVarUrlObj),
10958
+ options: localVarRequestOptions,
10959
+ };
10960
+ }),
10961
+ /**
10962
+ * List `user`s.
10963
+ * @param {string} [filterClientId] Comma-separated list of client IDs to filter on.
10964
+ * @param {string} [pageCursor] The cursor for the next page of items.
10965
+ * @param {number} [pageSize] The number of items to return.
10966
+ * @param {*} [options] Override http request option.
10967
+ * @throws {RequiredError}
10968
+ */
10969
+ listUsers: (filterClientId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
10970
+ var _d;
10971
+ const localVarPath = `/users`;
10972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10973
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10974
+ let baseOptions;
10975
+ if (configuration) {
10976
+ baseOptions = configuration.baseOptions;
10977
+ }
10978
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10979
+ const localVarHeaderParameter = {};
10980
+ const localVarQueryParameter = {};
10981
+ // authentication OAuth2 required
10982
+ // oauth required
10983
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10984
+ if (filterClientId !== undefined) {
10985
+ localVarQueryParameter['filter[clientId]'] = filterClientId;
10986
+ }
10987
+ if (pageCursor !== undefined) {
10988
+ localVarQueryParameter['page[cursor]'] = pageCursor;
10989
+ }
10990
+ if (pageSize !== undefined) {
10991
+ localVarQueryParameter['page[size]'] = pageSize;
10992
+ }
10993
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10994
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
10995
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10996
+ return {
10997
+ url: toPathString(localVarUrlObj),
10998
+ options: localVarRequestOptions,
10999
+ };
11000
+ }),
11001
+ };
11002
+ };
11003
+ /**
11004
+ * UsersApi - functional programming interface
11005
+ * @export
11006
+ */
11007
+ export const UsersApiFp = function (configuration) {
11008
+ const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
11009
+ return {
11010
+ /**
11011
+ * Create a `user`
11012
+ * @param {CreateUserRequest} createUserRequest
11013
+ * @param {*} [options] Override http request option.
11014
+ * @throws {RequiredError}
11015
+ */
11016
+ createUser(createUserRequest, options) {
11017
+ return __awaiter(this, void 0, void 0, function* () {
11018
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUser(createUserRequest, options);
11019
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11020
+ });
11021
+ },
11022
+ /**
11023
+ * Get a `user`.
11024
+ * @param {string} id The `user` ID.
11025
+ * @param {*} [options] Override http request option.
11026
+ * @throws {RequiredError}
11027
+ */
11028
+ getUser(id, options) {
11029
+ return __awaiter(this, void 0, void 0, function* () {
11030
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(id, options);
11031
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11032
+ });
11033
+ },
11034
+ /**
11035
+ * Get `user-group`s.
11036
+ * @param {string} id The `user` ID.
11037
+ * @param {string} [pageCursor] The cursor for the next page of items.
11038
+ * @param {number} [pageSize] The number of items to return.
11039
+ * @param {*} [options] Override http request option.
11040
+ * @throws {RequiredError}
11041
+ */
11042
+ getUserGroupsForUser(id, pageCursor, pageSize, options) {
11043
+ return __awaiter(this, void 0, void 0, function* () {
11044
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroupsForUser(id, pageCursor, pageSize, options);
11045
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11046
+ });
11047
+ },
11048
+ /**
11049
+ * List `user`s.
11050
+ * @param {string} [filterClientId] Comma-separated list of client IDs to filter on.
11051
+ * @param {string} [pageCursor] The cursor for the next page of items.
11052
+ * @param {number} [pageSize] The number of items to return.
11053
+ * @param {*} [options] Override http request option.
11054
+ * @throws {RequiredError}
11055
+ */
11056
+ listUsers(filterClientId, pageCursor, pageSize, options) {
11057
+ return __awaiter(this, void 0, void 0, function* () {
11058
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(filterClientId, pageCursor, pageSize, options);
11059
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11060
+ });
11061
+ },
11062
+ };
11063
+ };
11064
+ /**
11065
+ * UsersApi - factory interface
11066
+ * @export
11067
+ */
11068
+ export const UsersApiFactory = function (configuration, basePath, axios) {
11069
+ const localVarFp = UsersApiFp(configuration);
11070
+ return {
11071
+ /**
11072
+ * Create a `user`
11073
+ * @param {CreateUserRequest} createUserRequest
11074
+ * @param {*} [options] Override http request option.
11075
+ * @throws {RequiredError}
11076
+ */
11077
+ createUser(createUserRequest, options) {
11078
+ return localVarFp
11079
+ .createUser(createUserRequest, options)
11080
+ .then((request) => request(axios, basePath));
11081
+ },
11082
+ /**
11083
+ * Get a `user`.
11084
+ * @param {string} id The `user` ID.
11085
+ * @param {*} [options] Override http request option.
11086
+ * @throws {RequiredError}
11087
+ */
11088
+ getUser(id, options) {
11089
+ return localVarFp
11090
+ .getUser(id, options)
11091
+ .then((request) => request(axios, basePath));
11092
+ },
11093
+ /**
11094
+ * Get `user-group`s.
11095
+ * @param {string} id The `user` ID.
11096
+ * @param {string} [pageCursor] The cursor for the next page of items.
11097
+ * @param {number} [pageSize] The number of items to return.
11098
+ * @param {*} [options] Override http request option.
11099
+ * @throws {RequiredError}
11100
+ */
11101
+ getUserGroupsForUser(id, pageCursor, pageSize, options) {
11102
+ return localVarFp
11103
+ .getUserGroupsForUser(id, pageCursor, pageSize, options)
11104
+ .then((request) => request(axios, basePath));
11105
+ },
11106
+ /**
11107
+ * List `user`s.
11108
+ * @param {string} [filterClientId] Comma-separated list of client IDs to filter on.
11109
+ * @param {string} [pageCursor] The cursor for the next page of items.
11110
+ * @param {number} [pageSize] The number of items to return.
11111
+ * @param {*} [options] Override http request option.
11112
+ * @throws {RequiredError}
11113
+ */
11114
+ listUsers(filterClientId, pageCursor, pageSize, options) {
11115
+ return localVarFp
11116
+ .listUsers(filterClientId, pageCursor, pageSize, options)
11117
+ .then((request) => request(axios, basePath));
11118
+ },
11119
+ };
11120
+ };
11121
+ /**
11122
+ * UsersApi - object-oriented interface
11123
+ * @export
11124
+ * @class UsersApi
11125
+ * @extends {BaseAPI}
11126
+ */
11127
+ export class UsersApi extends BaseAPI {
11128
+ /**
11129
+ * Create a `user`
11130
+ * @param {UsersApiCreateUserRequest} requestParameters Request parameters.
11131
+ * @param {*} [options] Override http request option.
11132
+ * @throws {RequiredError}
11133
+ * @memberof UsersApi
11134
+ */
11135
+ createUser(requestParameters, options) {
11136
+ return UsersApiFp(this.configuration)
11137
+ .createUser(requestParameters.createUserRequest, options)
11138
+ .then((request) => request(this.axios, this.basePath));
11139
+ }
11140
+ /**
11141
+ * Get a `user`.
11142
+ * @param {UsersApiGetUserRequest} requestParameters Request parameters.
11143
+ * @param {*} [options] Override http request option.
11144
+ * @throws {RequiredError}
11145
+ * @memberof UsersApi
11146
+ */
11147
+ getUser(requestParameters, options) {
11148
+ return UsersApiFp(this.configuration)
11149
+ .getUser(requestParameters.id, options)
11150
+ .then((request) => request(this.axios, this.basePath));
11151
+ }
11152
+ /**
11153
+ * Get `user-group`s.
11154
+ * @param {UsersApiGetUserGroupsForUserRequest} requestParameters Request parameters.
11155
+ * @param {*} [options] Override http request option.
11156
+ * @throws {RequiredError}
11157
+ * @memberof UsersApi
11158
+ */
11159
+ getUserGroupsForUser(requestParameters, options) {
11160
+ return UsersApiFp(this.configuration)
11161
+ .getUserGroupsForUser(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, options)
11162
+ .then((request) => request(this.axios, this.basePath));
11163
+ }
11164
+ /**
11165
+ * List `user`s.
11166
+ * @param {UsersApiListUsersRequest} requestParameters Request parameters.
11167
+ * @param {*} [options] Override http request option.
11168
+ * @throws {RequiredError}
11169
+ * @memberof UsersApi
11170
+ */
11171
+ listUsers(requestParameters = {}, options) {
11172
+ return UsersApiFp(this.configuration)
11173
+ .listUsers(requestParameters.filterClientId, requestParameters.pageCursor, requestParameters.pageSize, options)
11174
+ .then((request) => request(this.axios, this.basePath));
11175
+ }
11176
+ }
10136
11177
  /**
10137
11178
  * WebhookSubscriptionsApi - axios parameter creator
10138
11179
  * @export