@inweb/client 25.9.5 → 25.9.7

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/client.js CHANGED
@@ -144,8 +144,9 @@
144
144
  // acknowledge and accept the above terms.
145
145
  ///////////////////////////////////////////////////////////////////////////////
146
146
  /**
147
- * Provides properties and methods for working with view of the file or assembly. For example,
148
- * for `dwg` it is a `Model` space or layout, and for `rvt` files it is a `3D` view.
147
+ * Provides properties and methods for working with view of the {@link File | file} or
148
+ * {@link Assembly| assembly}. For example, for `dwg` it is a `Model` space or layout, and for
149
+ * `rvt` files it is a `3D` view.
149
150
  */
150
151
  class Model {
151
152
  /**
@@ -283,7 +284,7 @@
283
284
  * Saves a new model owner file/assembly viewpoint to the server. To create a new viewpoint
284
285
  * use `Viewer.createViewpoint()`.
285
286
  *
286
- * @param viewpoint - Viewpoint.
287
+ * @param viewpoint - Viewpoint object.
287
288
  */
288
289
  saveViewpoint(viewpoint) {
289
290
  return this._file.saveViewpoint({
@@ -509,7 +510,8 @@
509
510
  */
510
511
  class ClashTest {
511
512
  /**
512
- * @param data - Raw test data received from the server.
513
+ * @param data - Raw test data received from the server. For more information, see
514
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
513
515
  * @param basePath - The clash test API base path of the file/assembly that owns the test.
514
516
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
515
517
  */
@@ -550,7 +552,8 @@
550
552
  return this.data.createdAt;
551
553
  }
552
554
  /**
553
- * Raw test data received from the server.
555
+ * Raw test data received from the server. For more information, see
556
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
554
557
  *
555
558
  * @readonly
556
559
  */
@@ -668,7 +671,8 @@
668
671
  /**
669
672
  * Updates test data on the server.
670
673
  *
671
- * @param data - Raw test data.
674
+ * @param data - Raw test data. For more information, see
675
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
672
676
  */
673
677
  async update(data) {
674
678
  const response = await this.internalPut("", data);
@@ -678,7 +682,8 @@
678
682
  /**
679
683
  * Deletes a test and its results report from the server.
680
684
  *
681
- * @returns Returns the raw data of a deleted test.
685
+ * @returns Returns the raw data of a deleted test. For more information, see
686
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
682
687
  */
683
688
  delete() {
684
689
  return this.internalDelete("").then((response) => response.json());
@@ -713,7 +718,7 @@
713
718
  return waitFor(checkDone, params).then(() => this);
714
719
  }
715
720
  /**
716
- * Returns a report with the clash detection results for this test.
721
+ * Returns a list of detected clashes for this test.
717
722
  */
718
723
  getReport() {
719
724
  return this.internalGet("/report").then((response) => response.json());
@@ -748,8 +753,9 @@
748
753
  */
749
754
  class Assembly {
750
755
  /**
751
- * @param data - Raw assembly data received from the server.
752
- * @param httpClient - HTTP client instance used to send requests to the REST API server..
756
+ * @param data - Raw assembly data received from the server. For more information, see
757
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
758
+ * @param httpClient - HTTP client instance used to send requests to the REST API server.
753
759
  */
754
760
  constructor(data, httpClient) {
755
761
  this.path = `/assemblies/${data.id}`;
@@ -800,9 +806,8 @@
800
806
  return this.data.created;
801
807
  }
802
808
  /**
803
- * Raw assembly data received from the server.
804
- *
805
- * @readonly
809
+ * Returns the raw assembly data received from the server. For more information, see
810
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
806
811
  */
807
812
  get data() {
808
813
  return this._data;
@@ -913,7 +918,8 @@
913
918
  /**
914
919
  * Updates assembly data on the server.
915
920
  *
916
- * @param data - Raw assembly data.
921
+ * @param data - Raw assembly data. For more information, see
922
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
917
923
  */
918
924
  async update(data) {
919
925
  const response = await this.internalPut("", data);
@@ -923,7 +929,8 @@
923
929
  /**
924
930
  * Deletes an assembly from the server.
925
931
  *
926
- * @returns Returns the raw data of a deleted assembly.
932
+ * @returns Returns the raw data of a deleted assembly. For more information, see
933
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
927
934
  */
928
935
  delete() {
929
936
  return this.internalDelete("").then((response) => response.json());
@@ -971,12 +978,18 @@
971
978
  obj[handle] = transform;
972
979
  return this.update({ transform: obj });
973
980
  }
981
+ /**
982
+ * Object properties.
983
+ *
984
+ * @typedef {any} Properties
985
+ * @property {string} handle - Object original handle.
986
+ * @property {string | any} * - Object property. Can be `any` for nested properties.
987
+ */
974
988
  /**
975
989
  * Returns the properties for an objects in the assembly.
976
990
  *
977
991
  * @param handles - Object original handle or handles array. Specify `undefined` to get
978
992
  * properties for all objects in the assembly.
979
- * @returns {Promise<any>}
980
993
  */
981
994
  getProperties(handles) {
982
995
  const relativePath = handles !== undefined ? `/properties?handles=${handles}` : "/properties";
@@ -1017,7 +1030,8 @@
1017
1030
  return this.internalGet(`/properties/tree`).then((response) => response.json());
1018
1031
  }
1019
1032
  /**
1020
- * Returns a list of assembly viewpoints.
1033
+ * Returns a list of assembly viewpoints. For more information, see
1034
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#AssemblyViewpoints | Open Cloud Assembly Viewpoints API}.
1021
1035
  */
1022
1036
  getViewpoints() {
1023
1037
  return this.internalGet("/viewpoints")
@@ -1027,7 +1041,8 @@
1027
1041
  /**
1028
1042
  * Saves a new assembly viewpoint to the server. To create a viewpoint use `Viewer.createViewpoint()`.
1029
1043
  *
1030
- * @param viewpoint - Viewpoint.
1044
+ * @param viewpoint - Viewpoint object. For more information, see
1045
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#AssemblyViewpoints | Open Cloud Assembly Viewpoints API}.
1031
1046
  */
1032
1047
  saveViewpoint(viewpoint) {
1033
1048
  return this.internalPost("/viewpoints", viewpoint).then((response) => response.json());
@@ -1036,13 +1051,14 @@
1036
1051
  * Deletes the specified assembly viewpoint.
1037
1052
  *
1038
1053
  * @param guid - Viewpoint GUID.
1039
- * @returns Returns the raw data of a deleted viewpoint.
1054
+ * @returns Returns a deleted viewpoint. For more information, see
1055
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#AssemblyViewpoints | Open Cloud Assembly Viewpoints API}.
1040
1056
  */
1041
1057
  deleteViewpoint(guid) {
1042
1058
  return this.internalDelete(`/viewpoints/${guid}`).then((response) => response.json());
1043
1059
  }
1044
1060
  /**
1045
- * Returns viewpoint snapshot as base64-encoded
1061
+ * Returns the viewpoint snapshot as base64-encoded
1046
1062
  * {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | Data URL}.
1047
1063
  *
1048
1064
  * @param guid - Viewpoint GUID.
@@ -1051,7 +1067,7 @@
1051
1067
  return this.internalGet(`/viewpoints/${guid}/snapshot`).then((response) => response.text());
1052
1068
  }
1053
1069
  /**
1054
- * Returns viewpoint snapshot data.
1070
+ * Returns the viewpoint snapshot data.
1055
1071
  *
1056
1072
  * @param guid - Viewpoint GUID.
1057
1073
  * @param bitmapGuid - Bitmap GUID.
@@ -1108,9 +1124,24 @@
1108
1124
  async downloadFileRange(requestId, records, dataId, onProgress, signal) {
1109
1125
  await this.downloadResourceRange(dataId, requestId, records, onProgress, signal);
1110
1126
  }
1111
- // Reserved for future use
1112
- getReferences(signal) {
1113
- return Promise.resolve({ fileId: "", references: [] });
1127
+ /**
1128
+ * Returns a list of assembly references containing references from all the files from which
1129
+ * the assembly was created.
1130
+ *
1131
+ * References are images, fonts, or any other files to correct rendering of the assembly.
1132
+ *
1133
+ * @param signal - An
1134
+ * {@link https://developer.mozilla.org/docs/Web/API/AbortController | AbortController}
1135
+ * signal, which can be used to abort waiting as desired.
1136
+ */
1137
+ async getReferences(signal) {
1138
+ const references = await Promise.all(this.associatedFiles
1139
+ .map((file) => `/files/${file.fileId}/references`)
1140
+ .map((link) => this.httpClient.get(link, signal).then((response) => response.json())))
1141
+ .then((references) => references.map((x) => x.references))
1142
+ .then((references) => references.reduce((x, v) => [...v, ...x], []))
1143
+ .then((references) => [...new Set(references.map(JSON.stringify))].map((x) => JSON.parse(x)));
1144
+ return { id: "", references };
1114
1145
  }
1115
1146
  /**
1116
1147
  * Waits for assembly to be created. Assembly is created when it changes to `done` or `failed` status.
@@ -1253,7 +1284,8 @@
1253
1284
  * Deletes the specified assembly clash test.
1254
1285
  *
1255
1286
  * @param testId - Test ID.
1256
- * @returns Returns the raw data of a deleted test.
1287
+ * @returns Returns the raw data of a deleted test. For more information, see
1288
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
1257
1289
  */
1258
1290
  deleteClashTest(testId) {
1259
1291
  return this.internalDelete(`/clashes/${testId}`).then((response) => response.json());
@@ -1621,11 +1653,12 @@
1621
1653
  ///////////////////////////////////////////////////////////////////////////////
1622
1654
  /**
1623
1655
  * Provides properties and methods for obtaining information about {@link File | file} actions
1624
- * granted to a specific {@link User | users}, or project {@link Member | member}.
1656
+ * granted to a specific user, project, or group.
1625
1657
  */
1626
1658
  class Permission {
1627
1659
  /**
1628
- * @param data - Raw permission data received from the server.
1660
+ * @param data - Raw permission data received from the server. For more information, see
1661
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud Permissions API}.
1629
1662
  * @param fileId - Owner file ID.
1630
1663
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
1631
1664
  */
@@ -1651,6 +1684,20 @@
1651
1684
  * - `write` - The ability to modify file name, description and references.
1652
1685
  * - `readViewpoint` - The ability to read file viewpoints.
1653
1686
  * - `createViewpoint` - The ability to create file viewpoints.
1687
+ *
1688
+ * @example <caption>Change file permissions for the the specified project.</caption>
1689
+ * const myFile = client.getFile(myFileId);
1690
+ * const permissions = await myFile.getPermissions();
1691
+ * const projectPermissions = permissions.filter((permission) =>
1692
+ * permission.grantedTo.some((x) => x.project?.id === myProjectId)
1693
+ * );
1694
+ * const newActions = ["read", "readSourceFile", "update"];
1695
+ * await Promise.all(
1696
+ * projectPermissions.map((permission) => {
1697
+ * permission.actions = newActions;
1698
+ * return permission.save();
1699
+ * })
1700
+ * );
1654
1701
  */
1655
1702
  get actions() {
1656
1703
  return this.data.actions;
@@ -1659,7 +1706,8 @@
1659
1706
  this._data.actions = value;
1660
1707
  }
1661
1708
  /**
1662
- * Raw permission data received from the server.
1709
+ * Raw permission data received from the server. For more information, see
1710
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud Permissions API}.
1663
1711
  *
1664
1712
  * @readonly
1665
1713
  */
@@ -1678,7 +1726,7 @@
1678
1726
  return this.data.id;
1679
1727
  }
1680
1728
  /**
1681
- * A list of entities that will get access to the file.
1729
+ * A list of users, projects, or groups that will get access to the file.
1682
1730
  */
1683
1731
  get grantedTo() {
1684
1732
  return this.data.grantedTo;
@@ -1706,18 +1754,8 @@
1706
1754
  /**
1707
1755
  * Updates permission data on the server.
1708
1756
  *
1709
- * @example <caption>Update file permissions for the the specified project.</caption>
1710
- * const myFile = client.getFile(myFileId);
1711
- * const permissions = await myFile.getPermissions();
1712
- * const projectPermissions = permissions.filter((permission) =>
1713
- * permission.grantedTo.some((x) => x.project?.id === myProjectId)
1714
- * );
1715
- * const newActions = ["read", "readSourceFile", "update"];
1716
- * await Promise.allSettled(
1717
- * projectPermissions.map((permission) => permission.update({ newActions }))
1718
- * );
1719
- *
1720
- * @param data - Raw permission data.
1757
+ * @param data - Raw permission data. For more information, see
1758
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud Permissions API}.
1721
1759
  */
1722
1760
  async update(data) {
1723
1761
  const response = await this.internalPut(data);
@@ -1727,7 +1765,8 @@
1727
1765
  /**
1728
1766
  * Removes a permission from the file.
1729
1767
  *
1730
- * @returns Returns the raw data of a deleted permission.
1768
+ * @returns Returns the raw data of a deleted permission. For more information, see
1769
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud Permissions API}.
1731
1770
  */
1732
1771
  delete() {
1733
1772
  return this.internalDelete().then((response) => response.json());
@@ -1768,7 +1807,8 @@
1768
1807
  */
1769
1808
  class Job {
1770
1809
  /**
1771
- * @param data - Raw job data received from the server.
1810
+ * @param data - Raw job data received from the server. For more information, see
1811
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
1772
1812
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
1773
1813
  */
1774
1814
  constructor(data, httpClient) {
@@ -1810,7 +1850,8 @@
1810
1850
  return this.data.createdAt;
1811
1851
  }
1812
1852
  /**
1813
- * Raw job data received from the server.
1853
+ * Raw job data received from the server. For more information, see
1854
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
1814
1855
  *
1815
1856
  * @readonly
1816
1857
  */
@@ -1863,7 +1904,8 @@
1863
1904
  return this.data.outputFormat;
1864
1905
  }
1865
1906
  /**
1866
- * Parameters for the job runner.
1907
+ * Parameters with which the job runner was started. For more information, see
1908
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
1867
1909
  *
1868
1910
  * @readonly
1869
1911
  */
@@ -1909,7 +1951,8 @@
1909
1951
  * Only administrators can update job data. If the current logged in user is not an
1910
1952
  * administrator, an exception will be thrown.
1911
1953
  *
1912
- * @param data - Raw job data.
1954
+ * @param data - Raw job data. For more information, see
1955
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
1913
1956
  */
1914
1957
  async update(data) {
1915
1958
  const response = await this.internalPut(data);
@@ -1920,7 +1963,8 @@
1920
1963
  * Deletes a job from the server job list. Jobs that are in progress or have already been
1921
1964
  * completed cannot be deleted.
1922
1965
  *
1923
- * @returns Returns the raw data of a deleted job.
1966
+ * @returns Returns the raw data of a deleted job. For more information, see
1967
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
1924
1968
  */
1925
1969
  delete() {
1926
1970
  return this.internalDelete().then((response) => response.json());
@@ -1984,7 +2028,8 @@
1984
2028
  */
1985
2029
  class File {
1986
2030
  /**
1987
- * @param data - Raw file data received from the server.
2031
+ * @param data - Raw file data received from the server. For more information, see
2032
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
1988
2033
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
1989
2034
  */
1990
2035
  constructor(data, httpClient) {
@@ -2043,7 +2088,8 @@
2043
2088
  this.data.customFields = value;
2044
2089
  }
2045
2090
  /**
2046
- * Raw file data received from the server.
2091
+ * Raw file data received from the server. For more information, see
2092
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
2047
2093
  *
2048
2094
  * @readonly
2049
2095
  */
@@ -2247,7 +2293,8 @@
2247
2293
  /**
2248
2294
  * Updates file data on the server.
2249
2295
  *
2250
- * @param data - Raw file data.
2296
+ * @param data - Raw file data. For more information, see
2297
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
2251
2298
  */
2252
2299
  async update(data) {
2253
2300
  const response = await this.internalPut("", data);
@@ -2260,7 +2307,8 @@
2260
2307
  * You cannot delete a version file using `delete()`, only the original file. To delete a
2261
2308
  * version file use {@link deleteVersion | deleteVersion()}.
2262
2309
  *
2263
- * @returns Returns the raw data of a deleted file.
2310
+ * @returns Returns the raw data of a deleted file. For more information, see
2311
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
2264
2312
  */
2265
2313
  delete() {
2266
2314
  return this.internalDelete("").then((response) => response.json());
@@ -2322,7 +2370,7 @@
2322
2370
  *
2323
2371
  * @typedef {any} Properties
2324
2372
  * @property {string} handle - Object original handle.
2325
- * @property {string | any} * - Object property. Can be `any` for nested properties.
2373
+ * @property {string | any} - Object property. Can be `any` for nested properties.
2326
2374
  */
2327
2375
  /**
2328
2376
  * Returns the properties for an objects in the active version of the file.
@@ -2385,7 +2433,8 @@
2385
2433
  return this.internalGet(`/properties/tree`).then((response) => response.json());
2386
2434
  }
2387
2435
  /**
2388
- * Returns a list of file viewpoints.
2436
+ * Returns a list of file viewpoints. For more information, see
2437
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
2389
2438
  */
2390
2439
  getViewpoints() {
2391
2440
  return this.internalGet("/viewpoints")
@@ -2395,7 +2444,8 @@
2395
2444
  /**
2396
2445
  * Saves a new file viewpoint to the server. To create a viewpoint use `Viewer.createViewpoint()`.
2397
2446
  *
2398
- * @param viewpoint - Viewpoint.
2447
+ * @param viewpoint - Viewpoint object. For more information, see
2448
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
2399
2449
  */
2400
2450
  saveViewpoint(viewpoint) {
2401
2451
  return this.internalPost("/viewpoints", viewpoint).then((response) => response.json());
@@ -2404,7 +2454,8 @@
2404
2454
  * Deletes the specified file viewpoint.
2405
2455
  *
2406
2456
  * @param guid - Viewpoint GUID.
2407
- * @returns Returns the raw data of a deleted viewpoint.
2457
+ * @returns Returns the raw data of a deleted viewpoint. For more information, see
2458
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
2408
2459
  */
2409
2460
  deleteViewpoint(guid) {
2410
2461
  return this.internalDelete(`/viewpoints/${guid}`).then((response) => response.json());
@@ -2680,7 +2731,8 @@
2680
2731
  * Removes the specified permission from the file.
2681
2732
  *
2682
2733
  * @param permissionId - Permission ID.
2683
- * @returns Returns the raw data of a deleted permission.
2734
+ * @returns Returns the raw data of a deleted permission. For more information, see
2735
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud File Permissions API}.
2684
2736
  */
2685
2737
  deletePermission(permissionId) {
2686
2738
  return this.internalDelete(`/permissions/${permissionId}`).then((response) => response.json());
@@ -2761,6 +2813,8 @@
2761
2813
  * Deletes the specified version file.
2762
2814
  *
2763
2815
  * @param version - Version to delete.
2816
+ * @returns Returns the raw data of a deleted version file. For more information, see
2817
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
2764
2818
  */
2765
2819
  async deleteVersion(version) {
2766
2820
  const response = await this.internalDelete(`/versions/${version}`);
@@ -2843,7 +2897,8 @@
2843
2897
  */
2844
2898
  class Role {
2845
2899
  /**
2846
- * @param data - Raw role data received from the server.
2900
+ * @param data - Raw role data received from the server. For more information, see
2901
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
2847
2902
  * @param projectId - Owner project ID.
2848
2903
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
2849
2904
  */
@@ -2871,7 +2926,8 @@
2871
2926
  this._data.description = value;
2872
2927
  }
2873
2928
  /**
2874
- * Raw role data received from the server.
2929
+ * Raw role data received from the server. For more information, see
2930
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
2875
2931
  *
2876
2932
  * @readonly
2877
2933
  */
@@ -2910,7 +2966,8 @@
2910
2966
  /**
2911
2967
  * Updates role data on the server.
2912
2968
  *
2913
- * @param data - Raw role data.
2969
+ * @param data - Raw role data. For more information, see
2970
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
2914
2971
  */
2915
2972
  async update(data) {
2916
2973
  const response = await this.internalPut(data);
@@ -2920,7 +2977,8 @@
2920
2977
  /**
2921
2978
  * Deletes a role from the project.
2922
2979
  *
2923
- * @returns Returns the raw data of a deleted role.
2980
+ * @returns Returns the raw data of a deleted role. For more information, see
2981
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
2924
2982
  */
2925
2983
  delete() {
2926
2984
  return this.internalDelete().then((response) => response.json());
@@ -2962,7 +3020,8 @@
2962
3020
  */
2963
3021
  class Member {
2964
3022
  /**
2965
- * @param data - Raw member data received from the server.
3023
+ * @param data - Raw member data received from the server. For more information, see
3024
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
2966
3025
  * @param projectId - Owner project ID.
2967
3026
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
2968
3027
  */
@@ -2981,7 +3040,8 @@
2981
3040
  return this.httpClient.delete(`/projects/${this.projectId}/members/${this.id}`);
2982
3041
  }
2983
3042
  /**
2984
- * Raw member data received from the server.
3043
+ * Raw member data received from the server. For more information, see
3044
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
2985
3045
  *
2986
3046
  * @readonly
2987
3047
  */
@@ -3039,7 +3099,8 @@
3039
3099
  /**
3040
3100
  * Updates member data on the server.
3041
3101
  *
3042
- * @param data - Raw member data.
3102
+ * @param data - Raw member data. For more information, see
3103
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
3043
3104
  */
3044
3105
  async update(data) {
3045
3106
  const response = await this.internalPut(data);
@@ -3049,7 +3110,8 @@
3049
3110
  /**
3050
3111
  * Removes a member from the project.
3051
3112
  *
3052
- * @returns Returns the raw data of a deleted member.
3113
+ * @returns Returns the raw data of a deleted member. For more information, see
3114
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
3053
3115
  */
3054
3116
  delete() {
3055
3117
  return this.internalDelete().then((response) => response.json());
@@ -3091,7 +3153,8 @@
3091
3153
  */
3092
3154
  class Project {
3093
3155
  /**
3094
- * @param data - Raw project data received from the server.
3156
+ * @param data - Raw project data received from the server. For more information, see
3157
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
3095
3158
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
3096
3159
  */
3097
3160
  constructor(data, httpClient) {
@@ -3137,7 +3200,8 @@
3137
3200
  this.data.customFields = value;
3138
3201
  }
3139
3202
  /**
3140
- * Raw project data received from the server.
3203
+ * Raw project data received from the server. For more information, see
3204
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
3141
3205
  *
3142
3206
  * @readonly
3143
3207
  */
@@ -3269,7 +3333,8 @@
3269
3333
  /**
3270
3334
  * Updates project data on the server.
3271
3335
  *
3272
- * @param data - Raw project data.
3336
+ * @param data - Raw project data. For more information, see
3337
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
3273
3338
  */
3274
3339
  async update(data) {
3275
3340
  const response = await this.internalPut("", data);
@@ -3279,7 +3344,8 @@
3279
3344
  /**
3280
3345
  * Deletes a project from the server.
3281
3346
  *
3282
- * @returns Returns the raw data of a deleted project.
3347
+ * @returns Returns the raw data of a deleted project. For more information, see
3348
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
3283
3349
  */
3284
3350
  delete() {
3285
3351
  return this.internalDelete("")
@@ -3369,7 +3435,8 @@
3369
3435
  * Deletes the specified project role.
3370
3436
  *
3371
3437
  * @param name - Role name.
3372
- * @returns Returns the raw data of a deleted role.
3438
+ * @returns Returns the raw data of a deleted role. For more information, see
3439
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
3373
3440
  */
3374
3441
  deleteRole(name) {
3375
3442
  return this.internalDelete(`/roles/${name}`).then((response) => response.json());
@@ -3407,7 +3474,8 @@
3407
3474
  * Removes the specified member from a project.
3408
3475
  *
3409
3476
  * @param memberId - Member ID.
3410
- * @returns Returns the raw data of a deleted member.
3477
+ * @returns Returns the raw data of a deleted member. For more information, see
3478
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
3411
3479
  */
3412
3480
  removeMember(memberId) {
3413
3481
  return this.internalDelete(`/members/${memberId}`).then((response) => response.json());
@@ -3425,7 +3493,8 @@
3425
3493
  * @property {string} file.reference - File ID.
3426
3494
  */
3427
3495
  /**
3428
- * Returns a list of project files.
3496
+ * Returns a list of project files. For more information, see
3497
+ * {@link https://cloud.opendesign.com/docs//pages/server/bcf3.html#ProjectFilesInformation | Open Cloud BCF3 API}.
3429
3498
  *
3430
3499
  * This list contains all files that the project has access to. To add a file to this list,
3431
3500
  * create a {@link IGrantedTo.project | project} permission on the file using
@@ -3490,7 +3559,7 @@
3490
3559
  /**
3491
3560
  * Adds a file to the project with specified permissions.
3492
3561
  *
3493
- * To change file permissions for the project use {@link Permission.update | Permissions.update()}.
3562
+ * To change file permissions for the project use {@link Permission.actions}.
3494
3563
  *
3495
3564
  * @param fileId - File ID.
3496
3565
  * @param actions - Actions are allowed to be performed on a file:
@@ -3560,7 +3629,8 @@
3560
3629
  */
3561
3630
  class User {
3562
3631
  /**
3563
- * @param data - Raw user data received from the server.
3632
+ * @param data - Raw user data received from the server. For more information, see
3633
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
3564
3634
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
3565
3635
  */
3566
3636
  constructor(data, httpClient) {
@@ -3606,7 +3676,8 @@
3606
3676
  this._data.customFields = value;
3607
3677
  }
3608
3678
  /**
3609
- * Raw user data received from the server.
3679
+ * Raw user data received from the server. For more information, see
3680
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
3610
3681
  *
3611
3682
  * @readonly
3612
3683
  */
@@ -3633,6 +3704,9 @@
3633
3704
  /**
3634
3705
  * The user's email confirmation code, or an empty string if the email has already been confirmed.
3635
3706
  *
3707
+ * To send the confirmation code to the server, use
3708
+ * {@link Client.confirmUserEmail | Client.confirmUserEmail()}.
3709
+ *
3636
3710
  * @readonly
3637
3711
  */
3638
3712
  get emailConfirmationId() {
@@ -3800,7 +3874,8 @@
3800
3874
  * Only administrators can update other users. If the current logged in user is not an
3801
3875
  * administrator, they can only update themself, otherwise an exception will be thrown.
3802
3876
  *
3803
- * @param data - Raw user data.
3877
+ * @param data - Raw user data. For more information, see
3878
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
3804
3879
  */
3805
3880
  async update(data) {
3806
3881
  if (this.httpClient.signInUserIsAdmin) {
@@ -3829,7 +3904,8 @@
3829
3904
  *
3830
3905
  * You need to re-login after deleting the current logged in user.
3831
3906
  *
3832
- * @returns Returns the raw data of a deleted user.
3907
+ * @returns Returns the raw data of a deleted user. For more information, see
3908
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
3833
3909
  */
3834
3910
  delete() {
3835
3911
  if (this.httpClient.signInUserIsAdmin) {
@@ -4054,15 +4130,10 @@
4054
4130
  this._user = null;
4055
4131
  return this;
4056
4132
  }
4057
- /**
4058
- * The Object represents server version information.
4059
- *
4060
- * @typedef {any} VersionResult
4061
- * @property {string} version - The server version.
4062
- * @property {string} hash - Build hash.
4063
- */
4064
4133
  /**
4065
4134
  * Returns client and server versions.
4135
+ *
4136
+ * No login is required to obtain the version.
4066
4137
  */
4067
4138
  version() {
4068
4139
  return this.httpClient
@@ -4071,12 +4142,14 @@
4071
4142
  .then((data) => ({
4072
4143
  ...data,
4073
4144
  server: data.version,
4074
- client: "25.9.5",
4145
+ client: "25.9.7",
4075
4146
  }));
4076
4147
  }
4077
4148
  /**
4078
4149
  * Registers a new user on the server.
4079
4150
  *
4151
+ * No login is required to register a new user.
4152
+ *
4080
4153
  * @param email - User email. Cannot be empty. Must be unique within the server.
4081
4154
  * @param password - User password. Cannot be empty. Password can only contain letters (a-z,
4082
4155
  * A-Z), numbers (0-9), and special characters (~!@#$%^&*()_-+={}[]<>|/'":;.,?).
@@ -4170,6 +4243,9 @@
4170
4243
  }
4171
4244
  /**
4172
4245
  * Returns the current server settings.
4246
+ *
4247
+ * @returns Returns an object with server settings. For more information, see
4248
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Settings | Open Cloud Settings API}.
4173
4249
  */
4174
4250
  getServerSettings() {
4175
4251
  return this.httpClient.get("/settings").then((response) => response.json());
@@ -4179,6 +4255,11 @@
4179
4255
  *
4180
4256
  * Only administrators can change server settings. If the current logged in user is not an
4181
4257
  * administrator, an exception will be thrown.
4258
+ *
4259
+ * @param settings - An object with the new server settings or part of the settings. For more
4260
+ * information, see
4261
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Settings | Open Cloud Settings API}.
4262
+ * @returns Returns an object with updated server settings.
4182
4263
  */
4183
4264
  updateServerSettings(settings) {
4184
4265
  return this.httpClient.put("/settings", settings).then((response) => response.json());
@@ -4270,7 +4351,8 @@
4270
4351
  * You need to re-login after deleting the current logged in user.
4271
4352
  *
4272
4353
  * @param userId - User ID.
4273
- * @returns Returns the raw data of a deleted user.
4354
+ * @returns Returns the raw data of a deleted user. For more information, see
4355
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
4274
4356
  */
4275
4357
  deleteUser(userId) {
4276
4358
  if (this.httpClient.signInUserIsAdmin) {
@@ -4310,7 +4392,7 @@
4310
4392
  * @param ids - List of file IDs to return.
4311
4393
  * @param sortByDesc - Allows to specify the descending order of the result. By default,
4312
4394
  * files are sorted by name in ascending order.
4313
- * @param {string} sortField - Allows to specify sort field.
4395
+ * @param sortField - Allows to specify sort field.
4314
4396
  */
4315
4397
  getFiles(start, limit, name, ext, ids, sortByDesc, sortField) {
4316
4398
  const searchParams = new URLSearchParams();
@@ -4423,7 +4505,8 @@
4423
4505
  * version file use {@link File.deleteVersion | File.deleteVersion()}.
4424
4506
  *
4425
4507
  * @param fileId - File ID.
4426
- * @returns Returns the raw data of a deleted file.
4508
+ * @returns Returns the raw data of a deleted file. For more information, see
4509
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
4427
4510
  */
4428
4511
  deleteFile(fileId) {
4429
4512
  return this.httpClient.delete(`/files/${fileId}`).then((response) => response.json());
@@ -4534,7 +4617,8 @@
4534
4617
  * already been completed cannot be deleted.
4535
4618
  *
4536
4619
  * @param jobId - Job ID.
4537
- * @returns Returns the raw data of a deleted job.
4620
+ * @returns Returns the raw data of a deleted job. For more information, see
4621
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
4538
4622
  */
4539
4623
  deleteJob(jobId) {
4540
4624
  return this.httpClient.delete(`/jobs/${jobId}`).then((response) => response.json());
@@ -4634,7 +4718,8 @@
4634
4718
  * Deletes the specified assembly from the server.
4635
4719
  *
4636
4720
  * @param assemblyId - Assembly ID.
4637
- * @returns Returns the raw data of a deleted assembly.
4721
+ * @returns Returns the raw data of a deleted assembly. For more information, see
4722
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud API}.
4638
4723
  */
4639
4724
  deleteAssembly(assemblyId) {
4640
4725
  return this.httpClient.delete(`/assemblies/${assemblyId}`).then((response) => response.json());
@@ -4746,7 +4831,8 @@
4746
4831
  * Deletes the specified project from the server.
4747
4832
  *
4748
4833
  * @param projectId - Project ID.
4749
- * @returns Returns the raw data of a deleted project.
4834
+ * @returns Returns the raw data of a deleted project. For more information, see
4835
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
4750
4836
  */
4751
4837
  deleteProject(projectId) {
4752
4838
  return this.httpClient
@@ -4786,7 +4872,7 @@
4786
4872
  // By use of this software, its documentation or related materials, you
4787
4873
  // acknowledge and accept the above terms.
4788
4874
  ///////////////////////////////////////////////////////////////////////////////
4789
- const version = "25.9.5";
4875
+ const version = "25.9.7";
4790
4876
 
4791
4877
  exports.Assembly = Assembly;
4792
4878
  exports.ClashTest = ClashTest;