@gitbook/api 0.13.0 → 0.15.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/index.js CHANGED
@@ -8,6 +8,23 @@ var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
8
8
  ContentVisibility2["Private"] = "private";
9
9
  return ContentVisibility2;
10
10
  })(ContentVisibility || {});
11
+ var RevisionPageLayoutOptionsCoverSize = /* @__PURE__ */ ((RevisionPageLayoutOptionsCoverSize2) => {
12
+ RevisionPageLayoutOptionsCoverSize2["Hero"] = "hero";
13
+ RevisionPageLayoutOptionsCoverSize2["Full"] = "full";
14
+ return RevisionPageLayoutOptionsCoverSize2;
15
+ })(RevisionPageLayoutOptionsCoverSize || {});
16
+ var RevisionPageLayoutPreset = /* @__PURE__ */ ((RevisionPageLayoutPreset2) => {
17
+ RevisionPageLayoutPreset2["Docs"] = "docs";
18
+ RevisionPageLayoutPreset2["Editorial"] = "editorial";
19
+ RevisionPageLayoutPreset2["Landing"] = "landing";
20
+ return RevisionPageLayoutPreset2;
21
+ })(RevisionPageLayoutPreset || {});
22
+ var RevisionPageType = /* @__PURE__ */ ((RevisionPageType2) => {
23
+ RevisionPageType2["Document"] = "document";
24
+ RevisionPageType2["Group"] = "group";
25
+ RevisionPageType2["Link"] = "link";
26
+ return RevisionPageType2;
27
+ })(RevisionPageType || {});
11
28
  var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
12
29
  ImportContentSource2["Website"] = "website";
13
30
  ImportContentSource2["Docx"] = "docx";
@@ -23,6 +40,17 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
23
40
  ImportContentSource2["OpenApi"] = "open-api";
24
41
  return ImportContentSource2;
25
42
  })(ImportContentSource || {});
43
+ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
44
+ RevisionSemanticChangeType2["PageCreated"] = "page_created";
45
+ RevisionSemanticChangeType2["PageEdited"] = "page_edited";
46
+ RevisionSemanticChangeType2["PageDeleted"] = "page_deleted";
47
+ RevisionSemanticChangeType2["PageMoved"] = "page_moved";
48
+ RevisionSemanticChangeType2["FileCreated"] = "file_created";
49
+ RevisionSemanticChangeType2["FileEdited"] = "file_edited";
50
+ RevisionSemanticChangeType2["FileDeleted"] = "file_deleted";
51
+ RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
52
+ return RevisionSemanticChangeType2;
53
+ })(RevisionSemanticChangeType || {});
26
54
  var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
27
55
  GitSyncOperationState2["Running"] = "running";
28
56
  GitSyncOperationState2["Failure"] = "failure";
@@ -840,6 +868,14 @@ var Api = class extends HttpClient {
840
868
  format: "json",
841
869
  ...params
842
870
  }),
871
+ getRevisionSemanticChanges: (spaceId, revisionId, query, params = {}) => this.request({
872
+ path: `/spaces/${spaceId}/revisions/${revisionId}/changes`,
873
+ method: "GET",
874
+ query,
875
+ secure: true,
876
+ format: "json",
877
+ ...params
878
+ }),
843
879
  listFilesInRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
844
880
  path: `/spaces/${spaceId}/revisions/${revisionId}/files`,
845
881
  method: "GET",
@@ -1702,6 +1738,23 @@ var Api = class extends HttpClient {
1702
1738
  type: "application/json" /* Json */,
1703
1739
  format: "json",
1704
1740
  ...params
1741
+ }),
1742
+ listContentAuditRelations: (organizationId, query, params = {}) => this.request({
1743
+ path: `/orgs/${organizationId}/insights/audit-relations`,
1744
+ method: "GET",
1745
+ query,
1746
+ secure: true,
1747
+ format: "json",
1748
+ ...params
1749
+ }),
1750
+ updateContentAuditRelationStatusById: (organizationId, relationId, data, params = {}) => this.request({
1751
+ path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
1752
+ method: "PATCH",
1753
+ body: data,
1754
+ secure: true,
1755
+ type: "application/json" /* Json */,
1756
+ format: "json",
1757
+ ...params
1705
1758
  })
1706
1759
  };
1707
1760
  this.internal = {
@@ -1731,6 +1784,14 @@ var Api = class extends HttpClient {
1731
1784
  secure: true,
1732
1785
  format: "json",
1733
1786
  ...params
1787
+ }),
1788
+ getPublishedContentByUrl: (query, params = {}) => this.request({
1789
+ path: `/urls/published`,
1790
+ method: "GET",
1791
+ query,
1792
+ secure: true,
1793
+ format: "json",
1794
+ ...params
1734
1795
  })
1735
1796
  };
1736
1797
  }
@@ -1829,5 +1890,9 @@ export {
1829
1890
  OrganizationType,
1830
1891
  OrganizationUseCase,
1831
1892
  PurgeCDNCacheContextType,
1893
+ RevisionPageLayoutOptionsCoverSize,
1894
+ RevisionPageLayoutPreset,
1895
+ RevisionPageType,
1896
+ RevisionSemanticChangeType,
1832
1897
  TeamMemberRole
1833
1898
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.13.0",
7
+ "version": "0.15.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",