@vertexvis/api-client-node 0.33.2 → 0.35.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
@@ -25,12 +25,13 @@ import globalAxios from 'axios';
25
25
  // @ts-ignore
26
26
  import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from './common';
27
27
  // @ts-ignore
28
- import { BASE_PATH, BaseAPI } from './base';
28
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from './base';
29
29
  export const AccountRelationshipDataTypeEnum = {
30
30
  Account: 'account',
31
31
  };
32
32
  export const BatchOperationOpEnum = {
33
33
  Add: 'add',
34
+ Remove: 'remove',
34
35
  };
35
36
  export const BatchOperationRefTypeEnum = {
36
37
  Scene: 'scene',
@@ -63,6 +64,9 @@ export const ClearTransformOpTypeEnum = {
63
64
  export const CollaborationContextRelationshipDataTypeEnum = {
64
65
  CollaborationContext: 'collaboration-context',
65
66
  };
67
+ export const CreateAttachmentRequestDataTypeEnum = {
68
+ Attachment: 'attachment',
69
+ };
66
70
  export const CreateCollaborationContextRequestDataTypeEnum = {
67
71
  CollaborationContext: 'collaboration-context',
68
72
  };
@@ -113,6 +117,9 @@ export const ExportRelationshipDataTypeEnum = {
113
117
  export const ExportStateRelationshipDataTypeEnum = {
114
118
  SceneViewState: 'scene-view-state',
115
119
  };
120
+ export const FileAttachmentTypeEnum = {
121
+ File: 'file',
122
+ };
116
123
  export const FileCollectionMetadataDataTypeEnum = {
117
124
  FileCollection: 'file-collection',
118
125
  };
@@ -134,6 +141,9 @@ export const PartDataRelationshipsPartRevisionsTypeEnum = {
134
141
  export const PartInstanceRelationshipDataTypeEnum = {
135
142
  PartInstance: 'part-instance',
136
143
  };
144
+ export const PartInstancesRelationshipDataTypeEnum = {
145
+ PartRevisionInstance: 'part-revision-instance',
146
+ };
137
147
  export const PartRelationshipDataTypeEnum = {
138
148
  Part: 'part',
139
149
  };
@@ -226,6 +236,9 @@ export const SceneRelationshipDataTypeEnum = {
226
236
  export const SceneViewRelationshipDataTypeEnum = {
227
237
  SceneView: 'scene-view',
228
238
  };
239
+ export const SceneViewStateAttachmentTypeEnum = {
240
+ SceneViewState: 'scene-view-state',
241
+ };
229
242
  export const SceneViewStateRelationshipDataTypeEnum = {
230
243
  SceneViewState: 'scene-view-state',
231
244
  };
@@ -315,12 +328,24 @@ export const WebhookSubscriptionDataAttributesStatusEnum = {
315
328
  Active: 'active',
316
329
  Paused: 'paused',
317
330
  };
331
+ export const WithFileContentTypeEnum = {
332
+ FileContent: 'file-content',
333
+ };
334
+ export const WithReplyTypeEnum = {
335
+ Reply: 'reply',
336
+ };
318
337
  export const WithSceneViewIdTypeEnum = {
319
338
  SceneViewId: 'scene-view-id',
320
339
  };
340
+ export const WithSceneViewStateContentTypeEnum = {
341
+ SceneViewStateContent: 'scene-view-state-content',
342
+ };
321
343
  export const WithSceneViewStateIdTypeEnum = {
322
344
  SceneViewStateId: 'scene-view-state-id',
323
345
  };
346
+ export const WithThreadTypeEnum = {
347
+ Thread: 'thread',
348
+ };
324
349
  /**
325
350
  * AccountsApi - axios parameter creator
326
351
  * @export
@@ -1087,6 +1112,198 @@ export class ApplicationsApi extends BaseAPI {
1087
1112
  .then((request) => request(this.axios, this.basePath));
1088
1113
  }
1089
1114
  }
1115
+ /**
1116
+ * AttachmentsApi - axios parameter creator
1117
+ * @export
1118
+ */
1119
+ export const AttachmentsApiAxiosParamCreator = function (configuration) {
1120
+ return {
1121
+ /**
1122
+ * Create an `attachment` for a thread or a reply relationship. The content of the attachment can be a scene-view-state (created or provided), or a file. A file attachment requires the caller to upload the file after the attachment creation using a provided upload url. **Preview:** This is a preview API and is subject to change.
1123
+ * @param {CreateAttachmentRequest} createAttachmentRequest
1124
+ * @param {*} [options] Override http request option.
1125
+ * @throws {RequiredError}
1126
+ */
1127
+ createAttachment: (createAttachmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1128
+ var _a;
1129
+ // verify required parameter 'createAttachmentRequest' is not null or undefined
1130
+ assertParamExists('createAttachment', 'createAttachmentRequest', createAttachmentRequest);
1131
+ const localVarPath = `/attachments`;
1132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1133
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1134
+ let baseOptions;
1135
+ if (configuration) {
1136
+ baseOptions = configuration.baseOptions;
1137
+ }
1138
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1139
+ const localVarHeaderParameter = {};
1140
+ const localVarQueryParameter = {};
1141
+ // authentication OAuth2 required
1142
+ // oauth required
1143
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1144
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
1145
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1146
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
1147
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1148
+ localVarRequestOptions.data = serializeDataIfNeeded(createAttachmentRequest, localVarRequestOptions, configuration);
1149
+ return {
1150
+ url: toPathString(localVarUrlObj),
1151
+ options: localVarRequestOptions,
1152
+ };
1153
+ }),
1154
+ /**
1155
+ * List attachments **Preview:** This is a preview API and is subject to change.
1156
+ * @param {string} filterRelationshipId A relationship id to filter attachments for
1157
+ * @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
1158
+ * @param {string} [pageCursor] The cursor for the next page of items.
1159
+ * @param {number} [pageSize] The number of items to return.
1160
+ * @param {*} [options] Override http request option.
1161
+ * @throws {RequiredError}
1162
+ */
1163
+ listAttachments: (filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
1164
+ var _b;
1165
+ // verify required parameter 'filterRelationshipId' is not null or undefined
1166
+ assertParamExists('listAttachments', 'filterRelationshipId', filterRelationshipId);
1167
+ // verify required parameter 'filterRelationshipType' is not null or undefined
1168
+ assertParamExists('listAttachments', 'filterRelationshipType', filterRelationshipType);
1169
+ const localVarPath = `/attachments`;
1170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1171
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1172
+ let baseOptions;
1173
+ if (configuration) {
1174
+ baseOptions = configuration.baseOptions;
1175
+ }
1176
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1177
+ const localVarHeaderParameter = {};
1178
+ const localVarQueryParameter = {};
1179
+ // authentication OAuth2 required
1180
+ // oauth required
1181
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1182
+ if (filterRelationshipId !== undefined) {
1183
+ localVarQueryParameter['filter[relationshipId]'] = filterRelationshipId;
1184
+ }
1185
+ if (filterRelationshipType !== undefined) {
1186
+ localVarQueryParameter['filter[relationshipType]'] =
1187
+ filterRelationshipType;
1188
+ }
1189
+ if (pageCursor !== undefined) {
1190
+ localVarQueryParameter['page[cursor]'] = pageCursor;
1191
+ }
1192
+ if (pageSize !== undefined) {
1193
+ localVarQueryParameter['page[size]'] = pageSize;
1194
+ }
1195
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1196
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
1197
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1198
+ return {
1199
+ url: toPathString(localVarUrlObj),
1200
+ options: localVarRequestOptions,
1201
+ };
1202
+ }),
1203
+ };
1204
+ };
1205
+ /**
1206
+ * AttachmentsApi - functional programming interface
1207
+ * @export
1208
+ */
1209
+ export const AttachmentsApiFp = function (configuration) {
1210
+ const localVarAxiosParamCreator = AttachmentsApiAxiosParamCreator(configuration);
1211
+ return {
1212
+ /**
1213
+ * Create an `attachment` for a thread or a reply relationship. The content of the attachment can be a scene-view-state (created or provided), or a file. A file attachment requires the caller to upload the file after the attachment creation using a provided upload url. **Preview:** This is a preview API and is subject to change.
1214
+ * @param {CreateAttachmentRequest} createAttachmentRequest
1215
+ * @param {*} [options] Override http request option.
1216
+ * @throws {RequiredError}
1217
+ */
1218
+ createAttachment(createAttachmentRequest, options) {
1219
+ return __awaiter(this, void 0, void 0, function* () {
1220
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachment(createAttachmentRequest, options);
1221
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1222
+ });
1223
+ },
1224
+ /**
1225
+ * List attachments **Preview:** This is a preview API and is subject to change.
1226
+ * @param {string} filterRelationshipId A relationship id to filter attachments for
1227
+ * @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
1228
+ * @param {string} [pageCursor] The cursor for the next page of items.
1229
+ * @param {number} [pageSize] The number of items to return.
1230
+ * @param {*} [options] Override http request option.
1231
+ * @throws {RequiredError}
1232
+ */
1233
+ listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
1234
+ return __awaiter(this, void 0, void 0, function* () {
1235
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options);
1236
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1237
+ });
1238
+ },
1239
+ };
1240
+ };
1241
+ /**
1242
+ * AttachmentsApi - factory interface
1243
+ * @export
1244
+ */
1245
+ export const AttachmentsApiFactory = function (configuration, basePath, axios) {
1246
+ const localVarFp = AttachmentsApiFp(configuration);
1247
+ return {
1248
+ /**
1249
+ * Create an `attachment` for a thread or a reply relationship. The content of the attachment can be a scene-view-state (created or provided), or a file. A file attachment requires the caller to upload the file after the attachment creation using a provided upload url. **Preview:** This is a preview API and is subject to change.
1250
+ * @param {CreateAttachmentRequest} createAttachmentRequest
1251
+ * @param {*} [options] Override http request option.
1252
+ * @throws {RequiredError}
1253
+ */
1254
+ createAttachment(createAttachmentRequest, options) {
1255
+ return localVarFp
1256
+ .createAttachment(createAttachmentRequest, options)
1257
+ .then((request) => request(axios, basePath));
1258
+ },
1259
+ /**
1260
+ * List attachments **Preview:** This is a preview API and is subject to change.
1261
+ * @param {string} filterRelationshipId A relationship id to filter attachments for
1262
+ * @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
1263
+ * @param {string} [pageCursor] The cursor for the next page of items.
1264
+ * @param {number} [pageSize] The number of items to return.
1265
+ * @param {*} [options] Override http request option.
1266
+ * @throws {RequiredError}
1267
+ */
1268
+ listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
1269
+ return localVarFp
1270
+ .listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options)
1271
+ .then((request) => request(axios, basePath));
1272
+ },
1273
+ };
1274
+ };
1275
+ /**
1276
+ * AttachmentsApi - object-oriented interface
1277
+ * @export
1278
+ * @class AttachmentsApi
1279
+ * @extends {BaseAPI}
1280
+ */
1281
+ export class AttachmentsApi extends BaseAPI {
1282
+ /**
1283
+ * Create an `attachment` for a thread or a reply relationship. The content of the attachment can be a scene-view-state (created or provided), or a file. A file attachment requires the caller to upload the file after the attachment creation using a provided upload url. **Preview:** This is a preview API and is subject to change.
1284
+ * @param {AttachmentsApiCreateAttachmentRequest} requestParameters Request parameters.
1285
+ * @param {*} [options] Override http request option.
1286
+ * @throws {RequiredError}
1287
+ * @memberof AttachmentsApi
1288
+ */
1289
+ createAttachment(requestParameters, options) {
1290
+ return AttachmentsApiFp(this.configuration)
1291
+ .createAttachment(requestParameters.createAttachmentRequest, options)
1292
+ .then((request) => request(this.axios, this.basePath));
1293
+ }
1294
+ /**
1295
+ * List attachments **Preview:** This is a preview API and is subject to change.
1296
+ * @param {AttachmentsApiListAttachmentsRequest} requestParameters Request parameters.
1297
+ * @param {*} [options] Override http request option.
1298
+ * @throws {RequiredError}
1299
+ * @memberof AttachmentsApi
1300
+ */
1301
+ listAttachments(requestParameters, options) {
1302
+ return AttachmentsApiFp(this.configuration)
1303
+ .listAttachments(requestParameters.filterRelationshipId, requestParameters.filterRelationshipType, requestParameters.pageCursor, requestParameters.pageSize, options)
1304
+ .then((request) => request(this.axios, this.basePath));
1305
+ }
1306
+ }
1090
1307
  /**
1091
1308
  * BatchesApi - axios parameter creator
1092
1309
  * @export
@@ -1396,6 +1613,37 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
1396
1613
  options: localVarRequestOptions,
1397
1614
  };
1398
1615
  }),
1616
+ /**
1617
+ * Remove a collaboration context along with all of its data
1618
+ * @param {string} id The `collaboration-context` ID.
1619
+ * @param {*} [options] Override http request option.
1620
+ * @throws {RequiredError}
1621
+ */
1622
+ deleteCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1623
+ var _c;
1624
+ // verify required parameter 'id' is not null or undefined
1625
+ assertParamExists('deleteCollaborationContext', 'id', id);
1626
+ const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1627
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1628
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1629
+ let baseOptions;
1630
+ if (configuration) {
1631
+ baseOptions = configuration.baseOptions;
1632
+ }
1633
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1634
+ const localVarHeaderParameter = {};
1635
+ const localVarQueryParameter = {};
1636
+ // authentication OAuth2 required
1637
+ // oauth required
1638
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1639
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1640
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
1641
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1642
+ return {
1643
+ url: toPathString(localVarUrlObj),
1644
+ options: localVarRequestOptions,
1645
+ };
1646
+ }),
1399
1647
  /**
1400
1648
  * Get a `collaboration-context` by ID.
1401
1649
  * @param {string} id The `collaboration-context` ID.
@@ -1403,7 +1651,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
1403
1651
  * @throws {RequiredError}
1404
1652
  */
1405
1653
  getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1406
- var _c;
1654
+ var _d;
1407
1655
  // verify required parameter 'id' is not null or undefined
1408
1656
  assertParamExists('getCollaborationContext', 'id', id);
1409
1657
  const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
@@ -1420,7 +1668,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
1420
1668
  // oauth required
1421
1669
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
1422
1670
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1423
- let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
1671
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
1424
1672
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1425
1673
  return {
1426
1674
  url: toPathString(localVarUrlObj),
@@ -1435,7 +1683,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
1435
1683
  * @throws {RequiredError}
1436
1684
  */
1437
1685
  listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
1438
- var _d;
1686
+ var _e;
1439
1687
  const localVarPath = `/collaboration-contexts`;
1440
1688
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1441
1689
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1456,7 +1704,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
1456
1704
  localVarQueryParameter['page[size]'] = pageSize;
1457
1705
  }
1458
1706
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1459
- let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
1707
+ let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
1460
1708
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1461
1709
  return {
1462
1710
  url: toPathString(localVarUrlObj),
@@ -1497,6 +1745,18 @@ export const CollaborationContextsApiFp = function (configuration) {
1497
1745
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1498
1746
  });
1499
1747
  },
1748
+ /**
1749
+ * Remove a collaboration context along with all of its data
1750
+ * @param {string} id The `collaboration-context` ID.
1751
+ * @param {*} [options] Override http request option.
1752
+ * @throws {RequiredError}
1753
+ */
1754
+ deleteCollaborationContext(id, options) {
1755
+ return __awaiter(this, void 0, void 0, function* () {
1756
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCollaborationContext(id, options);
1757
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1758
+ });
1759
+ },
1500
1760
  /**
1501
1761
  * Get a `collaboration-context` by ID.
1502
1762
  * @param {string} id The `collaboration-context` ID.
@@ -1554,6 +1814,17 @@ export const CollaborationContextsApiFactory = function (configuration, basePath
1554
1814
  .createCollaborationContext(createCollaborationContextRequest, options)
1555
1815
  .then((request) => request(axios, basePath));
1556
1816
  },
1817
+ /**
1818
+ * Remove a collaboration context along with all of its data
1819
+ * @param {string} id The `collaboration-context` ID.
1820
+ * @param {*} [options] Override http request option.
1821
+ * @throws {RequiredError}
1822
+ */
1823
+ deleteCollaborationContext(id, options) {
1824
+ return localVarFp
1825
+ .deleteCollaborationContext(id, options)
1826
+ .then((request) => request(axios, basePath));
1827
+ },
1557
1828
  /**
1558
1829
  * Get a `collaboration-context` by ID.
1559
1830
  * @param {string} id The `collaboration-context` ID.
@@ -1610,6 +1881,18 @@ export class CollaborationContextsApi extends BaseAPI {
1610
1881
  .createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
1611
1882
  .then((request) => request(this.axios, this.basePath));
1612
1883
  }
1884
+ /**
1885
+ * Remove a collaboration context along with all of its data
1886
+ * @param {CollaborationContextsApiDeleteCollaborationContextRequest} requestParameters Request parameters.
1887
+ * @param {*} [options] Override http request option.
1888
+ * @throws {RequiredError}
1889
+ * @memberof CollaborationContextsApi
1890
+ */
1891
+ deleteCollaborationContext(requestParameters, options) {
1892
+ return CollaborationContextsApiFp(this.configuration)
1893
+ .deleteCollaborationContext(requestParameters.id, options)
1894
+ .then((request) => request(this.axios, this.basePath));
1895
+ }
1613
1896
  /**
1614
1897
  * Get a `collaboration-context` by ID.
1615
1898
  * @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
@@ -2721,6 +3004,42 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2721
3004
  options: localVarRequestOptions,
2722
3005
  };
2723
3006
  }),
3007
+ /**
3008
+ * Create an upload uri for a `file` by ID.
3009
+ * @param {string} id The `file` ID.
3010
+ * @param {CreateUploadRequest} createUploadRequest
3011
+ * @param {*} [options] Override http request option.
3012
+ * @throws {RequiredError}
3013
+ */
3014
+ createUploadUrl: (id, createUploadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
3015
+ var _c;
3016
+ // verify required parameter 'id' is not null or undefined
3017
+ assertParamExists('createUploadUrl', 'id', id);
3018
+ // verify required parameter 'createUploadRequest' is not null or undefined
3019
+ assertParamExists('createUploadUrl', 'createUploadRequest', createUploadRequest);
3020
+ const localVarPath = `/files/{id}/upload-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3021
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3022
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3023
+ let baseOptions;
3024
+ if (configuration) {
3025
+ baseOptions = configuration.baseOptions;
3026
+ }
3027
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3028
+ const localVarHeaderParameter = {};
3029
+ const localVarQueryParameter = {};
3030
+ // authentication OAuth2 required
3031
+ // oauth required
3032
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
3033
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
3034
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3035
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
3036
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3037
+ localVarRequestOptions.data = serializeDataIfNeeded(createUploadRequest, localVarRequestOptions, configuration);
3038
+ return {
3039
+ url: toPathString(localVarUrlObj),
3040
+ options: localVarRequestOptions,
3041
+ };
3042
+ }),
2724
3043
  /**
2725
3044
  * Delete a `file`.
2726
3045
  * @param {string} id The `file` ID.
@@ -2728,7 +3047,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2728
3047
  * @throws {RequiredError}
2729
3048
  */
2730
3049
  deleteFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
2731
- var _c;
3050
+ var _d;
2732
3051
  // verify required parameter 'id' is not null or undefined
2733
3052
  assertParamExists('deleteFile', 'id', id);
2734
3053
  const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
@@ -2745,7 +3064,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2745
3064
  // oauth required
2746
3065
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
2747
3066
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2748
- let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
3067
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
2749
3068
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2750
3069
  return {
2751
3070
  url: toPathString(localVarUrlObj),
@@ -2759,7 +3078,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2759
3078
  * @throws {RequiredError}
2760
3079
  */
2761
3080
  getFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
2762
- var _d;
3081
+ var _e;
2763
3082
  // verify required parameter 'id' is not null or undefined
2764
3083
  assertParamExists('getFile', 'id', id);
2765
3084
  const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
@@ -2776,7 +3095,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2776
3095
  // oauth required
2777
3096
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
2778
3097
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2779
- let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
3098
+ let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
2780
3099
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2781
3100
  return {
2782
3101
  url: toPathString(localVarUrlObj),
@@ -2792,7 +3111,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2792
3111
  * @throws {RequiredError}
2793
3112
  */
2794
3113
  getFiles: (pageCursor, pageSize, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2795
- var _e;
3114
+ var _f;
2796
3115
  const localVarPath = `/files`;
2797
3116
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2798
3117
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2816,7 +3135,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2816
3135
  localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
2817
3136
  }
2818
3137
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2819
- let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
3138
+ let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
2820
3139
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2821
3140
  return {
2822
3141
  url: toPathString(localVarUrlObj),
@@ -2831,7 +3150,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2831
3150
  * @throws {RequiredError}
2832
3151
  */
2833
3152
  updateFile: (id, updateFileRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2834
- var _f;
3153
+ var _g;
2835
3154
  // verify required parameter 'id' is not null or undefined
2836
3155
  assertParamExists('updateFile', 'id', id);
2837
3156
  // verify required parameter 'updateFileRequest' is not null or undefined
@@ -2851,7 +3170,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2851
3170
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
2852
3171
  localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
2853
3172
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2854
- let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
3173
+ let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
2855
3174
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2856
3175
  localVarRequestOptions.data = serializeDataIfNeeded(updateFileRequest, localVarRequestOptions, configuration);
2857
3176
  return {
@@ -2867,7 +3186,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2867
3186
  * @throws {RequiredError}
2868
3187
  */
2869
3188
  uploadFile: (id, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
2870
- var _g;
3189
+ var _h;
2871
3190
  // verify required parameter 'id' is not null or undefined
2872
3191
  assertParamExists('uploadFile', 'id', id);
2873
3192
  // verify required parameter 'body' is not null or undefined
@@ -2887,7 +3206,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
2887
3206
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
2888
3207
  localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
2889
3208
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2890
- let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
3209
+ let headersFromBaseOptions = (_h = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _h !== void 0 ? _h : {};
2891
3210
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2892
3211
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
2893
3212
  return {
@@ -2929,6 +3248,19 @@ export const FilesApiFp = function (configuration) {
2929
3248
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2930
3249
  });
2931
3250
  },
3251
+ /**
3252
+ * Create an upload uri for a `file` by ID.
3253
+ * @param {string} id The `file` ID.
3254
+ * @param {CreateUploadRequest} createUploadRequest
3255
+ * @param {*} [options] Override http request option.
3256
+ * @throws {RequiredError}
3257
+ */
3258
+ createUploadUrl(id, createUploadRequest, options) {
3259
+ return __awaiter(this, void 0, void 0, function* () {
3260
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadUrl(id, createUploadRequest, options);
3261
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3262
+ });
3263
+ },
2932
3264
  /**
2933
3265
  * Delete a `file`.
2934
3266
  * @param {string} id The `file` ID.
@@ -3025,6 +3357,18 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
3025
3357
  .createFile(createFileRequest, options)
3026
3358
  .then((request) => request(axios, basePath));
3027
3359
  },
3360
+ /**
3361
+ * Create an upload uri for a `file` by ID.
3362
+ * @param {string} id The `file` ID.
3363
+ * @param {CreateUploadRequest} createUploadRequest
3364
+ * @param {*} [options] Override http request option.
3365
+ * @throws {RequiredError}
3366
+ */
3367
+ createUploadUrl(id, createUploadRequest, options) {
3368
+ return localVarFp
3369
+ .createUploadUrl(id, createUploadRequest, options)
3370
+ .then((request) => request(axios, basePath));
3371
+ },
3028
3372
  /**
3029
3373
  * Delete a `file`.
3030
3374
  * @param {string} id The `file` ID.
@@ -3117,6 +3461,18 @@ export class FilesApi extends BaseAPI {
3117
3461
  .createFile(requestParameters.createFileRequest, options)
3118
3462
  .then((request) => request(this.axios, this.basePath));
3119
3463
  }
3464
+ /**
3465
+ * Create an upload uri for a `file` by ID.
3466
+ * @param {FilesApiCreateUploadUrlRequest} requestParameters Request parameters.
3467
+ * @param {*} [options] Override http request option.
3468
+ * @throws {RequiredError}
3469
+ * @memberof FilesApi
3470
+ */
3471
+ createUploadUrl(requestParameters, options) {
3472
+ return FilesApiFp(this.configuration)
3473
+ .createUploadUrl(requestParameters.id, requestParameters.createUploadRequest, options)
3474
+ .then((request) => request(this.axios, this.basePath));
3475
+ }
3120
3476
  /**
3121
3477
  * Delete a `file`.
3122
3478
  * @param {FilesApiDeleteFileRequest} requestParameters Request parameters.
@@ -4518,7 +4874,7 @@ export const PartRevisionInstancesApiAxiosParamCreator = function (configuration
4518
4874
  return {
4519
4875
  /**
4520
4876
  * Gets a page of \'part-revision\' instances. An instance is an occurrence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
4521
- * @param {string} [filterParent] Parent ID to filter on.
4877
+ * @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
4522
4878
  * @param {string} [pageCursor] The cursor for the next page of items.
4523
4879
  * @param {number} [pageSize] The number of items to return.
4524
4880
  * @param {*} [options] Override http request option.
@@ -4567,7 +4923,7 @@ export const PartRevisionInstancesApiFp = function (configuration) {
4567
4923
  return {
4568
4924
  /**
4569
4925
  * Gets a page of \'part-revision\' instances. An instance is an occurrence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
4570
- * @param {string} [filterParent] Parent ID to filter on.
4926
+ * @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
4571
4927
  * @param {string} [pageCursor] The cursor for the next page of items.
4572
4928
  * @param {number} [pageSize] The number of items to return.
4573
4929
  * @param {*} [options] Override http request option.
@@ -4590,7 +4946,7 @@ export const PartRevisionInstancesApiFactory = function (configuration, basePath
4590
4946
  return {
4591
4947
  /**
4592
4948
  * Gets a page of \'part-revision\' instances. An instance is an occurrence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
4593
- * @param {string} [filterParent] Parent ID to filter on.
4949
+ * @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
4594
4950
  * @param {string} [pageCursor] The cursor for the next page of items.
4595
4951
  * @param {number} [pageSize] The number of items to return.
4596
4952
  * @param {*} [options] Override http request option.
@@ -6291,6 +6647,37 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
6291
6647
  options: localVarRequestOptions,
6292
6648
  };
6293
6649
  }),
6650
+ /**
6651
+ * Remove a reply.
6652
+ * @param {string} id The `thread` ID.
6653
+ * @param {*} [options] Override http request option.
6654
+ * @throws {RequiredError}
6655
+ */
6656
+ deleteReply: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
6657
+ var _b;
6658
+ // verify required parameter 'id' is not null or undefined
6659
+ assertParamExists('deleteReply', 'id', id);
6660
+ const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6661
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6662
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6663
+ let baseOptions;
6664
+ if (configuration) {
6665
+ baseOptions = configuration.baseOptions;
6666
+ }
6667
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
6668
+ const localVarHeaderParameter = {};
6669
+ const localVarQueryParameter = {};
6670
+ // authentication OAuth2 required
6671
+ // oauth required
6672
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
6673
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6674
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
6675
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6676
+ return {
6677
+ url: toPathString(localVarUrlObj),
6678
+ options: localVarRequestOptions,
6679
+ };
6680
+ }),
6294
6681
  /**
6295
6682
  * Get a `reply`.
6296
6683
  * @param {string} id The `thread` ID.
@@ -6299,7 +6686,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
6299
6686
  * @throws {RequiredError}
6300
6687
  */
6301
6688
  getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
6302
- var _b;
6689
+ var _c;
6303
6690
  // verify required parameter 'id' is not null or undefined
6304
6691
  assertParamExists('getReply', 'id', id);
6305
6692
  const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
@@ -6319,7 +6706,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
6319
6706
  localVarQueryParameter['include'] = include;
6320
6707
  }
6321
6708
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6322
- let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
6709
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
6323
6710
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6324
6711
  return {
6325
6712
  url: toPathString(localVarUrlObj),
@@ -6336,7 +6723,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
6336
6723
  * @throws {RequiredError}
6337
6724
  */
6338
6725
  listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
6339
- var _c;
6726
+ var _d;
6340
6727
  const localVarPath = `/replies`;
6341
6728
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6342
6729
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6363,8 +6750,44 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
6363
6750
  localVarQueryParameter['include'] = include;
6364
6751
  }
6365
6752
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6366
- let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
6753
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
6754
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6755
+ return {
6756
+ url: toPathString(localVarUrlObj),
6757
+ options: localVarRequestOptions,
6758
+ };
6759
+ }),
6760
+ /**
6761
+ * Update a `reply`.
6762
+ * @param {string} id The `thread` ID.
6763
+ * @param {UpdateReplyRequest} updateReplyRequest
6764
+ * @param {*} [options] Override http request option.
6765
+ * @throws {RequiredError}
6766
+ */
6767
+ updateReply: (id, updateReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
6768
+ var _e;
6769
+ // verify required parameter 'id' is not null or undefined
6770
+ assertParamExists('updateReply', 'id', id);
6771
+ // verify required parameter 'updateReplyRequest' is not null or undefined
6772
+ assertParamExists('updateReply', 'updateReplyRequest', updateReplyRequest);
6773
+ const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6774
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6775
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6776
+ let baseOptions;
6777
+ if (configuration) {
6778
+ baseOptions = configuration.baseOptions;
6779
+ }
6780
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6781
+ const localVarHeaderParameter = {};
6782
+ const localVarQueryParameter = {};
6783
+ // authentication OAuth2 required
6784
+ // oauth required
6785
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
6786
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
6787
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6788
+ let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
6367
6789
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6790
+ localVarRequestOptions.data = serializeDataIfNeeded(updateReplyRequest, localVarRequestOptions, configuration);
6368
6791
  return {
6369
6792
  url: toPathString(localVarUrlObj),
6370
6793
  options: localVarRequestOptions,
@@ -6392,6 +6815,18 @@ export const RepliesApiFp = function (configuration) {
6392
6815
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6393
6816
  });
6394
6817
  },
6818
+ /**
6819
+ * Remove a reply.
6820
+ * @param {string} id The `thread` ID.
6821
+ * @param {*} [options] Override http request option.
6822
+ * @throws {RequiredError}
6823
+ */
6824
+ deleteReply(id, options) {
6825
+ return __awaiter(this, void 0, void 0, function* () {
6826
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteReply(id, options);
6827
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6828
+ });
6829
+ },
6395
6830
  /**
6396
6831
  * Get a `reply`.
6397
6832
  * @param {string} id The `thread` ID.
@@ -6420,6 +6855,19 @@ export const RepliesApiFp = function (configuration) {
6420
6855
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6421
6856
  });
6422
6857
  },
6858
+ /**
6859
+ * Update a `reply`.
6860
+ * @param {string} id The `thread` ID.
6861
+ * @param {UpdateReplyRequest} updateReplyRequest
6862
+ * @param {*} [options] Override http request option.
6863
+ * @throws {RequiredError}
6864
+ */
6865
+ updateReply(id, updateReplyRequest, options) {
6866
+ return __awaiter(this, void 0, void 0, function* () {
6867
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReply(id, updateReplyRequest, options);
6868
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6869
+ });
6870
+ },
6423
6871
  };
6424
6872
  };
6425
6873
  /**
@@ -6441,6 +6889,17 @@ export const RepliesApiFactory = function (configuration, basePath, axios) {
6441
6889
  .createReply(id, createReplyRequest, options)
6442
6890
  .then((request) => request(axios, basePath));
6443
6891
  },
6892
+ /**
6893
+ * Remove a reply.
6894
+ * @param {string} id The `thread` ID.
6895
+ * @param {*} [options] Override http request option.
6896
+ * @throws {RequiredError}
6897
+ */
6898
+ deleteReply(id, options) {
6899
+ return localVarFp
6900
+ .deleteReply(id, options)
6901
+ .then((request) => request(axios, basePath));
6902
+ },
6444
6903
  /**
6445
6904
  * Get a `reply`.
6446
6905
  * @param {string} id The `thread` ID.
@@ -6467,6 +6926,18 @@ export const RepliesApiFactory = function (configuration, basePath, axios) {
6467
6926
  .listReplies(filterThreadId, pageCursor, pageSize, include, options)
6468
6927
  .then((request) => request(axios, basePath));
6469
6928
  },
6929
+ /**
6930
+ * Update a `reply`.
6931
+ * @param {string} id The `thread` ID.
6932
+ * @param {UpdateReplyRequest} updateReplyRequest
6933
+ * @param {*} [options] Override http request option.
6934
+ * @throws {RequiredError}
6935
+ */
6936
+ updateReply(id, updateReplyRequest, options) {
6937
+ return localVarFp
6938
+ .updateReply(id, updateReplyRequest, options)
6939
+ .then((request) => request(axios, basePath));
6940
+ },
6470
6941
  };
6471
6942
  };
6472
6943
  /**
@@ -6488,6 +6959,18 @@ export class RepliesApi extends BaseAPI {
6488
6959
  .createReply(requestParameters.id, requestParameters.createReplyRequest, options)
6489
6960
  .then((request) => request(this.axios, this.basePath));
6490
6961
  }
6962
+ /**
6963
+ * Remove a reply.
6964
+ * @param {RepliesApiDeleteReplyRequest} requestParameters Request parameters.
6965
+ * @param {*} [options] Override http request option.
6966
+ * @throws {RequiredError}
6967
+ * @memberof RepliesApi
6968
+ */
6969
+ deleteReply(requestParameters, options) {
6970
+ return RepliesApiFp(this.configuration)
6971
+ .deleteReply(requestParameters.id, options)
6972
+ .then((request) => request(this.axios, this.basePath));
6973
+ }
6491
6974
  /**
6492
6975
  * Get a `reply`.
6493
6976
  * @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
@@ -6512,6 +6995,18 @@ export class RepliesApi extends BaseAPI {
6512
6995
  .listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
6513
6996
  .then((request) => request(this.axios, this.basePath));
6514
6997
  }
6998
+ /**
6999
+ * Update a `reply`.
7000
+ * @param {RepliesApiUpdateReplyRequest} requestParameters Request parameters.
7001
+ * @param {*} [options] Override http request option.
7002
+ * @throws {RequiredError}
7003
+ * @memberof RepliesApi
7004
+ */
7005
+ updateReply(requestParameters, options) {
7006
+ return RepliesApiFp(this.configuration)
7007
+ .updateReply(requestParameters.id, requestParameters.updateReplyRequest, options)
7008
+ .then((request) => request(this.axios, this.basePath));
7009
+ }
6515
7010
  }
6516
7011
  /**
6517
7012
  * SceneAlterationsApi - axios parameter creator
@@ -7728,13 +8223,14 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
7728
8223
  * @param {number} [pageSize] The number of items to return.
7729
8224
  * @param {string} [filterSource] Source ID to filter on.
7730
8225
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7731
- * @param {string} [filterParent] Parent ID to filter on.
8226
+ * @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
7732
8227
  * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7733
8228
  * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
8229
+ * @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
7734
8230
  * @param {*} [options] Override http request option.
7735
8231
  * @throws {RequiredError}
7736
8232
  */
7737
- getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options = {}) => __awaiter(this, void 0, void 0, function* () {
8233
+ getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
7738
8234
  var _f;
7739
8235
  // verify required parameter 'id' is not null or undefined
7740
8236
  assertParamExists('getSceneItems', 'id', id);
@@ -7772,6 +8268,9 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
7772
8268
  if (filterHasGeometrySet !== undefined) {
7773
8269
  localVarQueryParameter['filter[hasGeometrySet]'] = filterHasGeometrySet;
7774
8270
  }
8271
+ if (sort !== undefined) {
8272
+ localVarQueryParameter['sort'] = sort;
8273
+ }
7775
8274
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7776
8275
  let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
7777
8276
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7894,15 +8393,16 @@ export const SceneItemsApiFp = function (configuration) {
7894
8393
  * @param {number} [pageSize] The number of items to return.
7895
8394
  * @param {string} [filterSource] Source ID to filter on.
7896
8395
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7897
- * @param {string} [filterParent] Parent ID to filter on.
8396
+ * @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
7898
8397
  * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7899
8398
  * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
8399
+ * @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
7900
8400
  * @param {*} [options] Override http request option.
7901
8401
  * @throws {RequiredError}
7902
8402
  */
7903
- getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
8403
+ getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options) {
7904
8404
  return __awaiter(this, void 0, void 0, function* () {
7905
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options);
8405
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options);
7906
8406
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7907
8407
  });
7908
8408
  },
@@ -7992,15 +8492,16 @@ export const SceneItemsApiFactory = function (configuration, basePath, axios) {
7992
8492
  * @param {number} [pageSize] The number of items to return.
7993
8493
  * @param {string} [filterSource] Source ID to filter on.
7994
8494
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
7995
- * @param {string} [filterParent] Parent ID to filter on.
8495
+ * @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
7996
8496
  * @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
7997
8497
  * @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
8498
+ * @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
7998
8499
  * @param {*} [options] Override http request option.
7999
8500
  * @throws {RequiredError}
8000
8501
  */
8001
- getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
8502
+ getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options) {
8002
8503
  return localVarFp
8003
- .getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options)
8504
+ .getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options)
8004
8505
  .then((request) => request(axios, basePath));
8005
8506
  },
8006
8507
  /**
@@ -8093,7 +8594,7 @@ export class SceneItemsApi extends BaseAPI {
8093
8594
  */
8094
8595
  getSceneItems(requestParameters, options) {
8095
8596
  return SceneItemsApiFp(this.configuration)
8096
- .getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, requestParameters.filterHasChildren, requestParameters.filterHasGeometrySet, options)
8597
+ .getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, requestParameters.filterHasChildren, requestParameters.filterHasGeometrySet, requestParameters.sort, options)
8097
8598
  .then((request) => request(this.axios, this.basePath));
8098
8599
  }
8099
8600
  /**
@@ -10438,6 +10939,37 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
10438
10939
  options: localVarRequestOptions,
10439
10940
  };
10440
10941
  }),
10942
+ /**
10943
+ * Remove a thread.
10944
+ * @param {string} id The `thread` ID.
10945
+ * @param {*} [options] Override http request option.
10946
+ * @throws {RequiredError}
10947
+ */
10948
+ deleteThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10949
+ var _b;
10950
+ // verify required parameter 'id' is not null or undefined
10951
+ assertParamExists('deleteThread', 'id', id);
10952
+ const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10953
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10954
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10955
+ let baseOptions;
10956
+ if (configuration) {
10957
+ baseOptions = configuration.baseOptions;
10958
+ }
10959
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
10960
+ const localVarHeaderParameter = {};
10961
+ const localVarQueryParameter = {};
10962
+ // authentication OAuth2 required
10963
+ // oauth required
10964
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10965
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10966
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
10967
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10968
+ return {
10969
+ url: toPathString(localVarUrlObj),
10970
+ options: localVarRequestOptions,
10971
+ };
10972
+ }),
10441
10973
  /**
10442
10974
  * Get a `thread`.
10443
10975
  * @param {string} id The `thread` ID.
@@ -10447,7 +10979,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
10447
10979
  * @throws {RequiredError}
10448
10980
  */
10449
10981
  getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
10450
- var _b;
10982
+ var _c;
10451
10983
  // verify required parameter 'id' is not null or undefined
10452
10984
  assertParamExists('getThread', 'id', id);
10453
10985
  const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
@@ -10470,7 +11002,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
10470
11002
  localVarQueryParameter['include'] = include;
10471
11003
  }
10472
11004
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10473
- let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
11005
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
10474
11006
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10475
11007
  return {
10476
11008
  url: toPathString(localVarUrlObj),
@@ -10484,7 +11016,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
10484
11016
  * @throws {RequiredError}
10485
11017
  */
10486
11018
  getThreadParticipants: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
10487
- var _c;
11019
+ var _d;
10488
11020
  // verify required parameter 'id' is not null or undefined
10489
11021
  assertParamExists('getThreadParticipants', 'id', id);
10490
11022
  const localVarPath = `/threads/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
@@ -10501,7 +11033,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
10501
11033
  // oauth required
10502
11034
  yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
10503
11035
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10504
- let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
11036
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
10505
11037
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10506
11038
  return {
10507
11039
  url: toPathString(localVarUrlObj),
@@ -10515,11 +11047,12 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
10515
11047
  * @param {string} [pageCursor] The cursor for the next page of items.
10516
11048
  * @param {number} [pageSize] The number of items to return.
10517
11049
  * @param {string} [include] Comma-separated list of relationships to include in response.
11050
+ * @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
10518
11051
  * @param {*} [options] Override http request option.
10519
11052
  * @throws {RequiredError}
10520
11053
  */
10521
- getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
10522
- var _d;
11054
+ getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
11055
+ var _e;
10523
11056
  const localVarPath = `/threads`;
10524
11057
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10525
11058
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10549,14 +11082,54 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
10549
11082
  if (include !== undefined) {
10550
11083
  localVarQueryParameter['include'] = include;
10551
11084
  }
11085
+ if (filterThreadStatus) {
11086
+ localVarQueryParameter['filter[threadStatus]'] =
11087
+ filterThreadStatus.join(COLLECTION_FORMATS.csv);
11088
+ }
10552
11089
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10553
- let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
11090
+ let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
10554
11091
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10555
11092
  return {
10556
11093
  url: toPathString(localVarUrlObj),
10557
11094
  options: localVarRequestOptions,
10558
11095
  };
10559
11096
  }),
11097
+ /**
11098
+ * Update a `thread`.
11099
+ * @param {string} id The &#x60;thread&#x60; ID.
11100
+ * @param {UpdateThreadRequest} updateThreadRequest
11101
+ * @param {*} [options] Override http request option.
11102
+ * @throws {RequiredError}
11103
+ */
11104
+ updateThread: (id, updateThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
11105
+ var _f;
11106
+ // verify required parameter 'id' is not null or undefined
11107
+ assertParamExists('updateThread', 'id', id);
11108
+ // verify required parameter 'updateThreadRequest' is not null or undefined
11109
+ assertParamExists('updateThread', 'updateThreadRequest', updateThreadRequest);
11110
+ const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
11111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11113
+ let baseOptions;
11114
+ if (configuration) {
11115
+ baseOptions = configuration.baseOptions;
11116
+ }
11117
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
11118
+ const localVarHeaderParameter = {};
11119
+ const localVarQueryParameter = {};
11120
+ // authentication OAuth2 required
11121
+ // oauth required
11122
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11123
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
11124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11125
+ let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
11126
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11127
+ localVarRequestOptions.data = serializeDataIfNeeded(updateThreadRequest, localVarRequestOptions, configuration);
11128
+ return {
11129
+ url: toPathString(localVarUrlObj),
11130
+ options: localVarRequestOptions,
11131
+ };
11132
+ }),
10560
11133
  };
10561
11134
  };
10562
11135
  /**
@@ -10579,6 +11152,18 @@ export const ThreadsApiFp = function (configuration) {
10579
11152
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10580
11153
  });
10581
11154
  },
11155
+ /**
11156
+ * Remove a thread.
11157
+ * @param {string} id The &#x60;thread&#x60; ID.
11158
+ * @param {*} [options] Override http request option.
11159
+ * @throws {RequiredError}
11160
+ */
11161
+ deleteThread(id, options) {
11162
+ return __awaiter(this, void 0, void 0, function* () {
11163
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteThread(id, options);
11164
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11165
+ });
11166
+ },
10582
11167
  /**
10583
11168
  * Get a `thread`.
10584
11169
  * @param {string} id The &#x60;thread&#x60; ID.
@@ -10612,12 +11197,26 @@ export const ThreadsApiFp = function (configuration) {
10612
11197
  * @param {string} [pageCursor] The cursor for the next page of items.
10613
11198
  * @param {number} [pageSize] The number of items to return.
10614
11199
  * @param {string} [include] Comma-separated list of relationships to include in response.
11200
+ * @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
11201
+ * @param {*} [options] Override http request option.
11202
+ * @throws {RequiredError}
11203
+ */
11204
+ getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
11205
+ return __awaiter(this, void 0, void 0, function* () {
11206
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options);
11207
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11208
+ });
11209
+ },
11210
+ /**
11211
+ * Update a `thread`.
11212
+ * @param {string} id The &#x60;thread&#x60; ID.
11213
+ * @param {UpdateThreadRequest} updateThreadRequest
10615
11214
  * @param {*} [options] Override http request option.
10616
11215
  * @throws {RequiredError}
10617
11216
  */
10618
- getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
11217
+ updateThread(id, updateThreadRequest, options) {
10619
11218
  return __awaiter(this, void 0, void 0, function* () {
10620
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options);
11219
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateThread(id, updateThreadRequest, options);
10621
11220
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10622
11221
  });
10623
11222
  },
@@ -10642,6 +11241,17 @@ export const ThreadsApiFactory = function (configuration, basePath, axios) {
10642
11241
  .createThread(id, createThreadRequest, options)
10643
11242
  .then((request) => request(axios, basePath));
10644
11243
  },
11244
+ /**
11245
+ * Remove a thread.
11246
+ * @param {string} id The &#x60;thread&#x60; ID.
11247
+ * @param {*} [options] Override http request option.
11248
+ * @throws {RequiredError}
11249
+ */
11250
+ deleteThread(id, options) {
11251
+ return localVarFp
11252
+ .deleteThread(id, options)
11253
+ .then((request) => request(axios, basePath));
11254
+ },
10645
11255
  /**
10646
11256
  * Get a `thread`.
10647
11257
  * @param {string} id The &#x60;thread&#x60; ID.
@@ -10673,12 +11283,25 @@ export const ThreadsApiFactory = function (configuration, basePath, axios) {
10673
11283
  * @param {string} [pageCursor] The cursor for the next page of items.
10674
11284
  * @param {number} [pageSize] The number of items to return.
10675
11285
  * @param {string} [include] Comma-separated list of relationships to include in response.
11286
+ * @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
11287
+ * @param {*} [options] Override http request option.
11288
+ * @throws {RequiredError}
11289
+ */
11290
+ getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
11291
+ return localVarFp
11292
+ .getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options)
11293
+ .then((request) => request(axios, basePath));
11294
+ },
11295
+ /**
11296
+ * Update a `thread`.
11297
+ * @param {string} id The &#x60;thread&#x60; ID.
11298
+ * @param {UpdateThreadRequest} updateThreadRequest
10676
11299
  * @param {*} [options] Override http request option.
10677
11300
  * @throws {RequiredError}
10678
11301
  */
10679
- getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
11302
+ updateThread(id, updateThreadRequest, options) {
10680
11303
  return localVarFp
10681
- .getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options)
11304
+ .updateThread(id, updateThreadRequest, options)
10682
11305
  .then((request) => request(axios, basePath));
10683
11306
  },
10684
11307
  };
@@ -10702,6 +11325,18 @@ export class ThreadsApi extends BaseAPI {
10702
11325
  .createThread(requestParameters.id, requestParameters.createThreadRequest, options)
10703
11326
  .then((request) => request(this.axios, this.basePath));
10704
11327
  }
11328
+ /**
11329
+ * Remove a thread.
11330
+ * @param {ThreadsApiDeleteThreadRequest} requestParameters Request parameters.
11331
+ * @param {*} [options] Override http request option.
11332
+ * @throws {RequiredError}
11333
+ * @memberof ThreadsApi
11334
+ */
11335
+ deleteThread(requestParameters, options) {
11336
+ return ThreadsApiFp(this.configuration)
11337
+ .deleteThread(requestParameters.id, options)
11338
+ .then((request) => request(this.axios, this.basePath));
11339
+ }
10705
11340
  /**
10706
11341
  * Get a `thread`.
10707
11342
  * @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
@@ -10735,7 +11370,19 @@ export class ThreadsApi extends BaseAPI {
10735
11370
  */
10736
11371
  getThreads(requestParameters = {}, options) {
10737
11372
  return ThreadsApiFp(this.configuration)
10738
- .getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
11373
+ .getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, requestParameters.filterThreadStatus, options)
11374
+ .then((request) => request(this.axios, this.basePath));
11375
+ }
11376
+ /**
11377
+ * Update a `thread`.
11378
+ * @param {ThreadsApiUpdateThreadRequest} requestParameters Request parameters.
11379
+ * @param {*} [options] Override http request option.
11380
+ * @throws {RequiredError}
11381
+ * @memberof ThreadsApi
11382
+ */
11383
+ updateThread(requestParameters, options) {
11384
+ return ThreadsApiFp(this.configuration)
11385
+ .updateThread(requestParameters.id, requestParameters.updateThreadRequest, options)
10739
11386
  .then((request) => request(this.axios, this.basePath));
10740
11387
  }
10741
11388
  }
@@ -10961,6 +11608,39 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
10961
11608
  options: localVarRequestOptions,
10962
11609
  };
10963
11610
  }),
11611
+ /**
11612
+ * Get all the specified translation jobs.
11613
+ * @param {QueryTranslationJobs} queryTranslationJobs
11614
+ * @param {*} [options] Override http request option.
11615
+ * @throws {RequiredError}
11616
+ */
11617
+ postQueryTranslationJobs: (queryTranslationJobs, options = {}) => __awaiter(this, void 0, void 0, function* () {
11618
+ var _g;
11619
+ // verify required parameter 'queryTranslationJobs' is not null or undefined
11620
+ assertParamExists('postQueryTranslationJobs', 'queryTranslationJobs', queryTranslationJobs);
11621
+ const localVarPath = `/query-translation-jobs`;
11622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11623
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11624
+ let baseOptions;
11625
+ if (configuration) {
11626
+ baseOptions = configuration.baseOptions;
11627
+ }
11628
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11629
+ const localVarHeaderParameter = {};
11630
+ const localVarQueryParameter = {};
11631
+ // authentication OAuth2 required
11632
+ // oauth required
11633
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
11634
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
11635
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11636
+ let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
11637
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11638
+ localVarRequestOptions.data = serializeDataIfNeeded(queryTranslationJobs, localVarRequestOptions, configuration);
11639
+ return {
11640
+ url: toPathString(localVarUrlObj),
11641
+ options: localVarRequestOptions,
11642
+ };
11643
+ }),
10964
11644
  };
10965
11645
  };
10966
11646
  /**
@@ -11050,6 +11730,18 @@ export const TranslationInspectionsApiFp = function (configuration) {
11050
11730
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11051
11731
  });
11052
11732
  },
11733
+ /**
11734
+ * Get all the specified translation jobs.
11735
+ * @param {QueryTranslationJobs} queryTranslationJobs
11736
+ * @param {*} [options] Override http request option.
11737
+ * @throws {RequiredError}
11738
+ */
11739
+ postQueryTranslationJobs(queryTranslationJobs, options) {
11740
+ return __awaiter(this, void 0, void 0, function* () {
11741
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postQueryTranslationJobs(queryTranslationJobs, options);
11742
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11743
+ });
11744
+ },
11053
11745
  };
11054
11746
  };
11055
11747
  /**
@@ -11133,6 +11825,17 @@ export const TranslationInspectionsApiFactory = function (configuration, basePat
11133
11825
  .getQueuedTranslations(pageCursor, pageSize, filterStatus, options)
11134
11826
  .then((request) => request(axios, basePath));
11135
11827
  },
11828
+ /**
11829
+ * Get all the specified translation jobs.
11830
+ * @param {QueryTranslationJobs} queryTranslationJobs
11831
+ * @param {*} [options] Override http request option.
11832
+ * @throws {RequiredError}
11833
+ */
11834
+ postQueryTranslationJobs(queryTranslationJobs, options) {
11835
+ return localVarFp
11836
+ .postQueryTranslationJobs(queryTranslationJobs, options)
11837
+ .then((request) => request(axios, basePath));
11838
+ },
11136
11839
  };
11137
11840
  };
11138
11841
  /**
@@ -11216,6 +11919,18 @@ export class TranslationInspectionsApi extends BaseAPI {
11216
11919
  .getQueuedTranslations(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterStatus, options)
11217
11920
  .then((request) => request(this.axios, this.basePath));
11218
11921
  }
11922
+ /**
11923
+ * Get all the specified translation jobs.
11924
+ * @param {TranslationInspectionsApiPostQueryTranslationJobsRequest} requestParameters Request parameters.
11925
+ * @param {*} [options] Override http request option.
11926
+ * @throws {RequiredError}
11927
+ * @memberof TranslationInspectionsApi
11928
+ */
11929
+ postQueryTranslationJobs(requestParameters, options) {
11930
+ return TranslationInspectionsApiFp(this.configuration)
11931
+ .postQueryTranslationJobs(requestParameters.queryTranslationJobs, options)
11932
+ .then((request) => request(this.axios, this.basePath));
11933
+ }
11219
11934
  }
11220
11935
  /**
11221
11936
  * UserGroupsApi - axios parameter creator