@gitbook/api 0.14.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/client.d.ts CHANGED
@@ -392,6 +392,17 @@ export interface CommentReply {
392
392
  location: string;
393
393
  };
394
394
  }
395
+ export declare type PublishedContentLookup = {
396
+ target: 'application' | 'content' | 'external';
397
+ redirect: URL;
398
+ } | {
399
+ space: string;
400
+ changeRequest?: string;
401
+ revision?: string;
402
+ pathname: string;
403
+ basePath: string;
404
+ apiToken: string;
405
+ };
395
406
  export declare type Document = MarkdownDocument | {
396
407
  document: JSONDocument;
397
408
  } | object;
@@ -604,11 +615,8 @@ export interface DocumentBlockImage {
604
615
  data: {
605
616
  ref: ContentRefURL | ContentRefFile;
606
617
  refDark?: ContentRefURL | ContentRefFile;
607
- width?: number | {
608
- unit: string;
609
- value: number;
610
- };
611
- height?: any;
618
+ width?: DocumentBlockImageDimension;
619
+ height?: DocumentBlockImageDimension;
612
620
  alt?: string;
613
621
  };
614
622
  fragments: (DocumentFragment & {
@@ -617,6 +625,10 @@ export interface DocumentBlockImage {
617
625
  })[];
618
626
  isVoid: true;
619
627
  }
628
+ export declare type DocumentBlockImageDimension = number | {
629
+ unit: string;
630
+ value: number;
631
+ };
620
632
  export interface DocumentBlockFile {
621
633
  object: 'block';
622
634
  type: 'file';
@@ -867,12 +879,15 @@ export interface ContentRefFile {
867
879
  export interface ContentRefPage {
868
880
  kind: 'page';
869
881
  page: string;
870
- space: string;
882
+ /** ID of the space the page is in. The page is considered as in the current space if none is provided. */
883
+ space?: string;
871
884
  }
872
885
  export interface ContentRefAnchor {
873
886
  kind: 'anchor';
874
887
  anchor: string;
888
+ /** ID of the space the page is in. The page is considered as in the current space if none is provided. */
875
889
  space?: string;
890
+ /** ID of the page the anchor is in. The anchor is considered as in the current page if none is provided. */
876
891
  page?: string;
877
892
  }
878
893
  export interface ContentRefUser {
@@ -971,6 +986,12 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
971
986
  pages: (RevisionPageDocument | RevisionPageLink)[];
972
987
  git?: GitSyncBlob;
973
988
  };
989
+ export interface RevisionPageDocumentCover {
990
+ /** Content reference pointing to the source image. */
991
+ ref?: ContentRefFile;
992
+ /** Vertical position of the cover image. */
993
+ yPos: number;
994
+ }
974
995
  export declare type RevisionPageGroup = RevisionPageBase & {
975
996
  kind: 'group';
976
997
  type: 'group';
@@ -978,12 +999,49 @@ export declare type RevisionPageGroup = RevisionPageBase & {
978
999
  path: string;
979
1000
  pages: (RevisionPageDocument | RevisionPageLink)[];
980
1001
  };
1002
+ export declare type RevisionPageLayout = RevisionPageLayoutPreset | RevisionPageLayoutOptions;
1003
+ export interface RevisionPageLayoutOptions {
1004
+ /** Should the cover be visible? */
1005
+ cover?: boolean;
1006
+ /** Size of the cover image. */
1007
+ coverSize?: RevisionPageLayoutOptionsCoverSize;
1008
+ /** Should the title be visible? */
1009
+ title?: boolean;
1010
+ /** Should the description be visible? */
1011
+ description?: boolean;
1012
+ /** Should the table of contents be visible? */
1013
+ tableOfContents?: boolean;
1014
+ /** Should the outline be visible? */
1015
+ outline?: boolean;
1016
+ /** Should the pagination be visible? */
1017
+ pagination?: boolean;
1018
+ }
1019
+ /**
1020
+ * Size of the cover image.
1021
+ */
1022
+ export declare enum RevisionPageLayoutOptionsCoverSize {
1023
+ Hero = "hero",
1024
+ Full = "full"
1025
+ }
1026
+ /**
1027
+ * The core layout presets for a page.
1028
+ */
1029
+ export declare enum RevisionPageLayoutPreset {
1030
+ Docs = "docs",
1031
+ Editorial = "editorial",
1032
+ Landing = "landing"
1033
+ }
981
1034
  export declare type RevisionPageLink = RevisionPageBase & {
982
1035
  kind: 'link';
983
1036
  type: 'link';
984
1037
  target: ContentRef;
985
1038
  href?: string;
986
1039
  };
1040
+ export declare enum RevisionPageType {
1041
+ Document = "document",
1042
+ Group = "group",
1043
+ Link = "link"
1044
+ }
987
1045
  export interface RevisionFile {
988
1046
  id: string;
989
1047
  name: string;
@@ -997,6 +1055,10 @@ export interface RevisionFile {
997
1055
  };
998
1056
  git?: GitSyncBlob;
999
1057
  }
1058
+ export interface RevisionFileImageDimensions {
1059
+ height: number;
1060
+ width: number;
1061
+ }
1000
1062
  export declare enum ImportContentSource {
1001
1063
  Website = "website",
1002
1064
  Docx = "docx",
@@ -1011,6 +1073,131 @@ export declare enum ImportContentSource {
1011
1073
  GoogleDocs = "google-docs",
1012
1074
  OpenApi = "open-api"
1013
1075
  }
1076
+ export interface ChangeAttributeContentReference {
1077
+ before?: ContentRef;
1078
+ after?: ContentRef;
1079
+ }
1080
+ export interface ChangeAttributeCustomFields {
1081
+ before?: Record<string, {
1082
+ value: CustomFieldValue;
1083
+ }>;
1084
+ after?: Record<string, {
1085
+ value: CustomFieldValue;
1086
+ }>;
1087
+ }
1088
+ export interface ChangeAttributeNumber {
1089
+ before?: number;
1090
+ after?: number;
1091
+ }
1092
+ export interface ChangeAttributeRevisionFileImageDimensions {
1093
+ before?: RevisionFileImageDimensions;
1094
+ after?: RevisionFileImageDimensions;
1095
+ }
1096
+ export interface ChangeAttributeRevisionPageDocumentCover {
1097
+ before?: RevisionPageDocumentCover;
1098
+ after?: RevisionPageDocumentCover;
1099
+ }
1100
+ export interface ChangeAttributeRevisionPageLayout {
1101
+ before?: RevisionPageLayout;
1102
+ after?: RevisionPageLayout;
1103
+ }
1104
+ export interface ChangeAttributeString {
1105
+ before?: string;
1106
+ after?: string;
1107
+ }
1108
+ export interface ChangedRevisionFile {
1109
+ id: string;
1110
+ name: string;
1111
+ contentType: string;
1112
+ downloadURL: string;
1113
+ }
1114
+ export interface ChangedRevisionPage {
1115
+ id: string;
1116
+ type: RevisionPageType;
1117
+ title: string;
1118
+ path?: string;
1119
+ }
1120
+ export interface RevisionFileChangeAttributes {
1121
+ name?: ChangeAttributeString;
1122
+ downloadURL?: ChangeAttributeString;
1123
+ size?: ChangeAttributeNumber;
1124
+ contentType?: ChangeAttributeString;
1125
+ dimensions?: ChangeAttributeRevisionFileImageDimensions;
1126
+ }
1127
+ export interface RevisionPageDocumentChangeAttributes {
1128
+ title?: ChangeAttributeString;
1129
+ description?: ChangeAttributeString;
1130
+ slug?: ChangeAttributeString;
1131
+ document?: ChangeAttributeString;
1132
+ cover?: ChangeAttributeRevisionPageDocumentCover;
1133
+ emoji?: ChangeAttributeString;
1134
+ layout?: ChangeAttributeRevisionPageLayout;
1135
+ customFields?: ChangeAttributeCustomFields;
1136
+ }
1137
+ export interface RevisionPageGroupChangeAttributes {
1138
+ title?: ChangeAttributeString;
1139
+ emoji?: ChangeAttributeString;
1140
+ slug?: ChangeAttributeString;
1141
+ customFields?: ChangeAttributeCustomFields;
1142
+ }
1143
+ export interface RevisionPageLinkChangeAttributes {
1144
+ title?: ChangeAttributeString;
1145
+ emoji?: ChangeAttributeString;
1146
+ target?: ChangeAttributeContentReference;
1147
+ customFields?: ChangeAttributeCustomFields;
1148
+ }
1149
+ export declare type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited;
1150
+ export interface RevisionSemanticChangeCustomFieldsEdited {
1151
+ type: 'custom_fields_edited';
1152
+ customFields: ChangeAttributeCustomFields;
1153
+ }
1154
+ export interface RevisionSemanticChangeFileCreated {
1155
+ type: 'file_created';
1156
+ file: ChangedRevisionFile;
1157
+ }
1158
+ export interface RevisionSemanticChangeFileDeleted {
1159
+ type: 'file_deleted';
1160
+ file: ChangedRevisionFile;
1161
+ }
1162
+ export interface RevisionSemanticChangeFileEdited {
1163
+ type: 'file_edited';
1164
+ file: ChangedRevisionFile;
1165
+ attributes: RevisionFileChangeAttributes;
1166
+ }
1167
+ export interface RevisionSemanticChangePageCreated {
1168
+ type: 'page_created';
1169
+ page: ChangedRevisionPage;
1170
+ }
1171
+ export interface RevisionSemanticChangePageDeleted {
1172
+ type: 'page_deleted';
1173
+ page: ChangedRevisionPage;
1174
+ }
1175
+ export interface RevisionSemanticChangePageEdited {
1176
+ type: 'page_edited';
1177
+ page: ChangedRevisionPage;
1178
+ attributes: RevisionPageDocumentChangeAttributes | RevisionPageGroupChangeAttributes | RevisionPageLinkChangeAttributes;
1179
+ }
1180
+ export interface RevisionSemanticChangePageMoved {
1181
+ type: 'page_moved';
1182
+ page: ChangedRevisionPage;
1183
+ parent: {
1184
+ before?: ChangedRevisionPage;
1185
+ after?: ChangedRevisionPage;
1186
+ };
1187
+ }
1188
+ /**
1189
+ * The type of semantic change.
1190
+ */
1191
+ export declare enum RevisionSemanticChangeType {
1192
+ PageCreated = "page_created",
1193
+ PageEdited = "page_edited",
1194
+ PageDeleted = "page_deleted",
1195
+ PageMoved = "page_moved",
1196
+ FileCreated = "file_created",
1197
+ FileEdited = "file_edited",
1198
+ FileDeleted = "file_deleted",
1199
+ CustomFieldsEdited = "custom_fields_edited"
1200
+ }
1014
1201
  export interface GitSyncState {
1015
1202
  /** The provider of the Git Sync installation. */
1016
1203
  installationProvider?: string;
@@ -1310,6 +1497,44 @@ export interface UpdateCaptureSchema {
1310
1497
  /** Content of the capture. */
1311
1498
  body?: Document;
1312
1499
  }
1500
+ /**
1501
+ * Content audit relation
1502
+ */
1503
+ export interface ContentAuditRelation {
1504
+ id: string;
1505
+ /** The sources that are related */
1506
+ sources: ContentAuditSource[];
1507
+ /** The type of the relation between the sources */
1508
+ type: ContentAuditRelationType;
1509
+ /** A human readable description of the reason for the relation */
1510
+ reason?: string;
1511
+ /** The status of the relation */
1512
+ status: ContentAuditRelationStatus;
1513
+ /** The date at which the relation was created */
1514
+ createdAt: Date;
1515
+ }
1516
+ /**
1517
+ * The type of the relation between the sources
1518
+ */
1519
+ export declare type ContentAuditRelationType = 'contradiction' | 'duplicate';
1520
+ /**
1521
+ * Status of the audit relation to filter on
1522
+ */
1523
+ export declare type ContentAuditRelationStatus = 'pending' | 'rejected';
1524
+ export interface ContentAuditRelationStatusUpdate {
1525
+ /** Status of the audit relation to filter on */
1526
+ status: ContentAuditRelationStatus;
1527
+ }
1528
+ export declare type ContentAuditSource = ContentAuditSourceSection;
1529
+ /**
1530
+ * A GitBook section source
1531
+ */
1532
+ export interface ContentAuditSourceSection {
1533
+ id: string;
1534
+ type: 'section';
1535
+ space: Space;
1536
+ page: RevisionPageDocument;
1537
+ }
1313
1538
  export interface ChangeRequest {
1314
1539
  /** Type of Object, always equals to "change-request" */
1315
1540
  object: 'change-request';
@@ -1567,7 +1792,8 @@ export interface AnalyticsContentPage {
1567
1792
  feedbacks?: {
1568
1793
  score: number;
1569
1794
  total: number;
1570
- rating: 'unknown' | 'bad' | 'ok' | 'good';
1795
+ rating: string;
1796
+ ponderedScore: number;
1571
1797
  bad: number;
1572
1798
  ok: number;
1573
1799
  good: number;
@@ -2790,7 +3016,7 @@ export interface ContentKitURL {
2790
3016
  /**
2791
3017
  * Channel to subscribe to for API updates.
2792
3018
  */
2793
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
3019
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
2794
3020
  channel: 'space-comments';
2795
3021
  space: string;
2796
3022
  changeRequest?: string;
@@ -2926,6 +3152,10 @@ export interface OrganizationCapturesChannel {
2926
3152
  channel: 'organization-captures';
2927
3153
  organization: string;
2928
3154
  }
3155
+ export interface OrganizationContentAuditsChannel {
3156
+ channel: 'organization-content-audits';
3157
+ organization: string;
3158
+ }
2929
3159
  export interface OrganizationIntegrationsChannel {
2930
3160
  channel: 'organization-integrations';
2931
3161
  organization: string;
@@ -3852,6 +4082,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3852
4082
  * @secure
3853
4083
  */
3854
4084
  getRevisionById: (spaceId: string, revisionId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
4085
+ /**
4086
+ * No description
4087
+ *
4088
+ * @name GetRevisionSemanticChanges
4089
+ * @summary Return the semantic changes between a revision and its parent.
4090
+ * @request GET:/spaces/{spaceId}/revisions/{revisionId}/changes
4091
+ * @secure
4092
+ */
4093
+ getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
4094
+ limit?: number;
4095
+ metadata?: boolean;
4096
+ }, params?: RequestParams) => Promise<HttpResponse<{
4097
+ changes: RevisionSemanticChange[];
4098
+ more?: number;
4099
+ }, Error>>;
3855
4100
  /**
3856
4101
  * No description
3857
4102
  *
@@ -5308,6 +5553,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5308
5553
  askInOrganization: (organizationId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
5309
5554
  answer?: SearchAIAnswer;
5310
5555
  }, Error>>;
5556
+ /**
5557
+ * No description
5558
+ *
5559
+ * @tags ai, spaces
5560
+ * @name ListContentAuditRelations
5561
+ * @summary List the content relations for in a given organization.
5562
+ * @request GET:/orgs/{organizationId}/insights/audit-relations
5563
+ * @secure
5564
+ */
5565
+ listContentAuditRelations: (organizationId: string, query?: {
5566
+ page?: string;
5567
+ limit?: number;
5568
+ status?: ContentAuditRelationStatus;
5569
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
5570
+ items: ContentAuditRelation[];
5571
+ }, Error>>;
5572
+ /**
5573
+ * No description
5574
+ *
5575
+ * @tags organizations
5576
+ * @name UpdateContentAuditRelationStatusById
5577
+ * @summary Update an audit relation status
5578
+ * @request PATCH:/orgs/{organizationId}/insights/audit-relations/{relationId}
5579
+ * @secure
5580
+ */
5581
+ updateContentAuditRelationStatusById: (organizationId: string, relationId: string, data: ContentAuditRelationStatusUpdate, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
5582
+ error: {
5583
+ code: 404;
5584
+ message: string;
5585
+ };
5586
+ }>>;
5311
5587
  };
5312
5588
  internal: {
5313
5589
  /**
@@ -5354,6 +5630,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5354
5630
  getEmbedByUrl: (query: {
5355
5631
  url: string;
5356
5632
  }, params?: RequestParams) => Promise<HttpResponse<Embed, Error>>;
5633
+ /**
5634
+ * No description
5635
+ *
5636
+ * @tags urls
5637
+ * @name GetPublishedContentByUrl
5638
+ * @summary Resolve a URL of a published content.
5639
+ * @request GET:/urls/published
5640
+ * @secure
5641
+ */
5642
+ getPublishedContentByUrl: (query: {
5643
+ url: URL;
5644
+ visitorAuthToken?: string;
5645
+ }, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error>>;
5357
5646
  };
5358
5647
  }
5359
5648
  export {};
package/dist/index.cjs CHANGED
@@ -55,6 +55,10 @@ __export(src_exports, {
55
55
  OrganizationType: () => OrganizationType,
56
56
  OrganizationUseCase: () => OrganizationUseCase,
57
57
  PurgeCDNCacheContextType: () => PurgeCDNCacheContextType,
58
+ RevisionPageLayoutOptionsCoverSize: () => RevisionPageLayoutOptionsCoverSize,
59
+ RevisionPageLayoutPreset: () => RevisionPageLayoutPreset,
60
+ RevisionPageType: () => RevisionPageType,
61
+ RevisionSemanticChangeType: () => RevisionSemanticChangeType,
58
62
  TeamMemberRole: () => TeamMemberRole
59
63
  });
60
64
  module.exports = __toCommonJS(src_exports);
@@ -69,6 +73,23 @@ var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
69
73
  ContentVisibility2["Private"] = "private";
70
74
  return ContentVisibility2;
71
75
  })(ContentVisibility || {});
76
+ var RevisionPageLayoutOptionsCoverSize = /* @__PURE__ */ ((RevisionPageLayoutOptionsCoverSize2) => {
77
+ RevisionPageLayoutOptionsCoverSize2["Hero"] = "hero";
78
+ RevisionPageLayoutOptionsCoverSize2["Full"] = "full";
79
+ return RevisionPageLayoutOptionsCoverSize2;
80
+ })(RevisionPageLayoutOptionsCoverSize || {});
81
+ var RevisionPageLayoutPreset = /* @__PURE__ */ ((RevisionPageLayoutPreset2) => {
82
+ RevisionPageLayoutPreset2["Docs"] = "docs";
83
+ RevisionPageLayoutPreset2["Editorial"] = "editorial";
84
+ RevisionPageLayoutPreset2["Landing"] = "landing";
85
+ return RevisionPageLayoutPreset2;
86
+ })(RevisionPageLayoutPreset || {});
87
+ var RevisionPageType = /* @__PURE__ */ ((RevisionPageType2) => {
88
+ RevisionPageType2["Document"] = "document";
89
+ RevisionPageType2["Group"] = "group";
90
+ RevisionPageType2["Link"] = "link";
91
+ return RevisionPageType2;
92
+ })(RevisionPageType || {});
72
93
  var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
73
94
  ImportContentSource2["Website"] = "website";
74
95
  ImportContentSource2["Docx"] = "docx";
@@ -84,6 +105,17 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
84
105
  ImportContentSource2["OpenApi"] = "open-api";
85
106
  return ImportContentSource2;
86
107
  })(ImportContentSource || {});
108
+ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
109
+ RevisionSemanticChangeType2["PageCreated"] = "page_created";
110
+ RevisionSemanticChangeType2["PageEdited"] = "page_edited";
111
+ RevisionSemanticChangeType2["PageDeleted"] = "page_deleted";
112
+ RevisionSemanticChangeType2["PageMoved"] = "page_moved";
113
+ RevisionSemanticChangeType2["FileCreated"] = "file_created";
114
+ RevisionSemanticChangeType2["FileEdited"] = "file_edited";
115
+ RevisionSemanticChangeType2["FileDeleted"] = "file_deleted";
116
+ RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
117
+ return RevisionSemanticChangeType2;
118
+ })(RevisionSemanticChangeType || {});
87
119
  var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
88
120
  GitSyncOperationState2["Running"] = "running";
89
121
  GitSyncOperationState2["Failure"] = "failure";
@@ -901,6 +933,14 @@ var Api = class extends HttpClient {
901
933
  format: "json",
902
934
  ...params
903
935
  }),
936
+ getRevisionSemanticChanges: (spaceId, revisionId, query, params = {}) => this.request({
937
+ path: `/spaces/${spaceId}/revisions/${revisionId}/changes`,
938
+ method: "GET",
939
+ query,
940
+ secure: true,
941
+ format: "json",
942
+ ...params
943
+ }),
904
944
  listFilesInRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
905
945
  path: `/spaces/${spaceId}/revisions/${revisionId}/files`,
906
946
  method: "GET",
@@ -1763,6 +1803,23 @@ var Api = class extends HttpClient {
1763
1803
  type: "application/json" /* Json */,
1764
1804
  format: "json",
1765
1805
  ...params
1806
+ }),
1807
+ listContentAuditRelations: (organizationId, query, params = {}) => this.request({
1808
+ path: `/orgs/${organizationId}/insights/audit-relations`,
1809
+ method: "GET",
1810
+ query,
1811
+ secure: true,
1812
+ format: "json",
1813
+ ...params
1814
+ }),
1815
+ updateContentAuditRelationStatusById: (organizationId, relationId, data, params = {}) => this.request({
1816
+ path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
1817
+ method: "PATCH",
1818
+ body: data,
1819
+ secure: true,
1820
+ type: "application/json" /* Json */,
1821
+ format: "json",
1822
+ ...params
1766
1823
  })
1767
1824
  };
1768
1825
  this.internal = {
@@ -1792,6 +1849,14 @@ var Api = class extends HttpClient {
1792
1849
  secure: true,
1793
1850
  format: "json",
1794
1851
  ...params
1852
+ }),
1853
+ getPublishedContentByUrl: (query, params = {}) => this.request({
1854
+ path: `/urls/published`,
1855
+ method: "GET",
1856
+ query,
1857
+ secure: true,
1858
+ format: "json",
1859
+ ...params
1795
1860
  })
1796
1861
  };
1797
1862
  }
@@ -1891,5 +1956,9 @@ var GitBookAPI = class extends Api {
1891
1956
  OrganizationType,
1892
1957
  OrganizationUseCase,
1893
1958
  PurgeCDNCacheContextType,
1959
+ RevisionPageLayoutOptionsCoverSize,
1960
+ RevisionPageLayoutPreset,
1961
+ RevisionPageType,
1962
+ RevisionSemanticChangeType,
1894
1963
  TeamMemberRole
1895
1964
  });
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.14.0",
7
+ "version": "0.15.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",