@gitbook/api 0.71.0 → 0.73.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 +104 -309
- package/dist/index.cjs +10 -86
- package/dist/index.js +10 -86
- package/package.json +1 -1
- package/spec/openapi.json +358 -1046
- package/spec/openapi.yaml +206 -616
package/dist/client.d.ts
CHANGED
|
@@ -145,16 +145,12 @@ export interface ContentRefSnippet {
|
|
|
145
145
|
snippet: string;
|
|
146
146
|
organization: string;
|
|
147
147
|
}
|
|
148
|
-
export interface ContentRefSyncedBlock {
|
|
149
|
-
kind: 'synced-block';
|
|
150
|
-
syncedBlock: string;
|
|
151
|
-
}
|
|
152
148
|
export interface ContentRefReusableContent {
|
|
153
149
|
kind: 'reusable-content';
|
|
154
150
|
reusableContent: string;
|
|
155
151
|
}
|
|
156
152
|
/** A relative reference to content in GitBook. */
|
|
157
|
-
export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet |
|
|
153
|
+
export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefReusableContent;
|
|
158
154
|
export interface DocumentInlineLink {
|
|
159
155
|
object: 'inline';
|
|
160
156
|
type: 'link';
|
|
@@ -616,19 +612,6 @@ export interface DocumentBlockSwagger {
|
|
|
616
612
|
id: string;
|
|
617
613
|
};
|
|
618
614
|
}
|
|
619
|
-
export interface DocumentBlockSyncedBlock {
|
|
620
|
-
object: 'block';
|
|
621
|
-
type: 'synced-block';
|
|
622
|
-
key?: string;
|
|
623
|
-
data: {
|
|
624
|
-
ref: ContentRefSyncedBlock;
|
|
625
|
-
};
|
|
626
|
-
meta?: {
|
|
627
|
-
/** API Token to use to fetch the synced block from the API. */
|
|
628
|
-
apiToken: string;
|
|
629
|
-
};
|
|
630
|
-
isVoid: true;
|
|
631
|
-
}
|
|
632
615
|
export interface DocumentBlockReusableContent {
|
|
633
616
|
object: 'block';
|
|
634
617
|
type: 'reusable-content';
|
|
@@ -656,7 +639,7 @@ export interface DocumentBlockStepper {
|
|
|
656
639
|
isVoid?: false;
|
|
657
640
|
data?: object;
|
|
658
641
|
}
|
|
659
|
-
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration |
|
|
642
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
|
|
660
643
|
export interface JSONDocument {
|
|
661
644
|
object: 'document';
|
|
662
645
|
data: {
|
|
@@ -1037,30 +1020,6 @@ export interface ExportToGitRepository {
|
|
|
1037
1020
|
/** Optional metadata to store on the space about the Git provider */
|
|
1038
1021
|
gitInfo?: UpdateSpaceGitInfo;
|
|
1039
1022
|
}
|
|
1040
|
-
export interface SyncGitRepository {
|
|
1041
|
-
/** Git ref in the format "refs/heads/main" */
|
|
1042
|
-
ref: string;
|
|
1043
|
-
/** URL of the Git repository used for synchronization. It can contain basic auth credentials. */
|
|
1044
|
-
repoURL: string;
|
|
1045
|
-
/** URL to use as a prefix for external file references. */
|
|
1046
|
-
repoTreeURL: string;
|
|
1047
|
-
/** URL to use as a prefix for the commit URL. */
|
|
1048
|
-
repoCommitURL: string;
|
|
1049
|
-
/** Path to a root directory for the project in the repository. */
|
|
1050
|
-
repoProjectDirectory?: string;
|
|
1051
|
-
/** Template message for the commit generated during the synchronization. */
|
|
1052
|
-
commitMessageTemplate: string;
|
|
1053
|
-
/** If true, the synchronization of the ref will generate a revision without updating the space primary content. */
|
|
1054
|
-
standalone?: boolean;
|
|
1055
|
-
/** Whether to force the synchronization */
|
|
1056
|
-
force?: {
|
|
1057
|
-
priority: 'gitbook' | 'git';
|
|
1058
|
-
};
|
|
1059
|
-
/** The timestamp of the event. It ensures the synchronize operations are executed in the same order on GitBook and on the remote repository. */
|
|
1060
|
-
timestamp?: Timestamp;
|
|
1061
|
-
/** Optional metadata to store on the space about the Git provider */
|
|
1062
|
-
gitInfo?: UpdateSpaceGitInfo;
|
|
1063
|
-
}
|
|
1064
1023
|
/**
|
|
1065
1024
|
* Name of the icon
|
|
1066
1025
|
* @maxLength 50
|
|
@@ -1184,29 +1143,32 @@ export interface RevisionPageDocumentCover {
|
|
|
1184
1143
|
/** Vertical position of the cover image. */
|
|
1185
1144
|
yPos: number;
|
|
1186
1145
|
}
|
|
1146
|
+
/** A score breakdown for a specific page. */
|
|
1147
|
+
export interface AnalyticsFeedbacksPageScore {
|
|
1148
|
+
/** Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad'). */
|
|
1149
|
+
score: number;
|
|
1150
|
+
/** Total number of ratings done by end users. */
|
|
1151
|
+
total: number;
|
|
1152
|
+
/**
|
|
1153
|
+
* Summary of the rating based on the score ('good', 'ok', or 'bad')
|
|
1154
|
+
* @deprecated
|
|
1155
|
+
*/
|
|
1156
|
+
rating: string;
|
|
1157
|
+
/** Score multiplied by the number of ratings to give more importance to highly rated content. */
|
|
1158
|
+
ponderedScore: number;
|
|
1159
|
+
/** Number of 'bad' ratings. */
|
|
1160
|
+
bad: number;
|
|
1161
|
+
/** Number of 'ok' ratings. */
|
|
1162
|
+
ok: number;
|
|
1163
|
+
/** Number of 'good' ratings. */
|
|
1164
|
+
good: number;
|
|
1165
|
+
}
|
|
1187
1166
|
/** Page entry in the content analytics. */
|
|
1188
1167
|
export interface AnalyticsContentPage {
|
|
1189
1168
|
page: RevisionPageDocument;
|
|
1190
1169
|
pageViews: number;
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
score: number;
|
|
1194
|
-
/** Total number of ratings done by end users. */
|
|
1195
|
-
total: number;
|
|
1196
|
-
/**
|
|
1197
|
-
* Summary of the rating based on the score ('good', 'ok', or 'bad')
|
|
1198
|
-
* @deprecated
|
|
1199
|
-
*/
|
|
1200
|
-
rating: string;
|
|
1201
|
-
/** Score multiplied by the number of ratings to give more importance to highly rated content. */
|
|
1202
|
-
ponderedScore: number;
|
|
1203
|
-
/** Number of 'bad' ratings. */
|
|
1204
|
-
bad: number;
|
|
1205
|
-
/** Number of 'ok' ratings. */
|
|
1206
|
-
ok: number;
|
|
1207
|
-
/** Number of 'good' ratings. */
|
|
1208
|
-
good: number;
|
|
1209
|
-
};
|
|
1170
|
+
/** A score breakdown for a specific page. */
|
|
1171
|
+
feedbacks?: AnalyticsFeedbacksPageScore;
|
|
1210
1172
|
}
|
|
1211
1173
|
export interface AnalyticsContentPages {
|
|
1212
1174
|
pages: AnalyticsContentPage[];
|
|
@@ -1932,44 +1894,15 @@ export interface ContentLocationSnippet {
|
|
|
1932
1894
|
organization: Organization;
|
|
1933
1895
|
snippet: Snippet;
|
|
1934
1896
|
}
|
|
1935
|
-
export interface
|
|
1936
|
-
|
|
1937
|
-
id: string;
|
|
1938
|
-
/** ID of the organization owning this synced block */
|
|
1939
|
-
organization: string;
|
|
1940
|
-
/** @format date-time */
|
|
1941
|
-
createdAt: string;
|
|
1942
|
-
createdBy: User;
|
|
1943
|
-
/**
|
|
1944
|
-
* Title describing the synced block.
|
|
1945
|
-
* @maxLength 100
|
|
1946
|
-
*/
|
|
1947
|
-
title?: string;
|
|
1948
|
-
/**
|
|
1949
|
-
* Description of the synced block.
|
|
1950
|
-
* @maxLength 500
|
|
1951
|
-
*/
|
|
1952
|
-
description?: string;
|
|
1953
|
-
/** Usage of synced block */
|
|
1954
|
-
usage: {
|
|
1955
|
-
/** Number of spaces where the synced block is used in */
|
|
1956
|
-
spaces: number;
|
|
1957
|
-
};
|
|
1958
|
-
/** URLs associated with the object */
|
|
1959
|
-
urls: {
|
|
1960
|
-
/** URL of the synced block in the API */
|
|
1961
|
-
location: URL;
|
|
1962
|
-
/** URL of the synced block in the app */
|
|
1963
|
-
app: URL;
|
|
1964
|
-
};
|
|
1965
|
-
}
|
|
1966
|
-
export interface ContentLocationSyncedBlock {
|
|
1967
|
-
kind: 'synced-block';
|
|
1897
|
+
export interface ContentLocationReusableContent {
|
|
1898
|
+
kind: 'reusable-content';
|
|
1968
1899
|
organization: Organization;
|
|
1969
|
-
|
|
1900
|
+
space: Space;
|
|
1901
|
+
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
1902
|
+
reusableContent: RevisionReusableContent;
|
|
1970
1903
|
}
|
|
1971
1904
|
/** An absolute reference to content in GitBook. */
|
|
1972
|
-
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet |
|
|
1905
|
+
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationReusableContent;
|
|
1973
1906
|
/**
|
|
1974
1907
|
* Text to display to represent the reference. Possible values include:
|
|
1975
1908
|
* - `ok` - No problems detected for this content reference.
|
|
@@ -4130,6 +4063,13 @@ export interface SiteSection {
|
|
|
4130
4063
|
published?: string;
|
|
4131
4064
|
};
|
|
4132
4065
|
}
|
|
4066
|
+
export type SiteStructure = {
|
|
4067
|
+
type: 'sections';
|
|
4068
|
+
structure: SiteSection[];
|
|
4069
|
+
} | {
|
|
4070
|
+
type: 'siteSpaces';
|
|
4071
|
+
structure: SiteSpace[];
|
|
4072
|
+
};
|
|
4133
4073
|
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
4134
4074
|
/** Type of Object, always equals to "publishing-auth" */
|
|
4135
4075
|
object: 'publishing-auth';
|
|
@@ -4241,6 +4181,16 @@ export interface SiteIntegrationScript {
|
|
|
4241
4181
|
/** If true, the script will potentially load use cookies and visitors should be aware. */
|
|
4242
4182
|
cookies: boolean;
|
|
4243
4183
|
}
|
|
4184
|
+
export interface SiteSectionPointer {
|
|
4185
|
+
type: 'site-section';
|
|
4186
|
+
/** Unique identifier for the site section */
|
|
4187
|
+
siteSection: string;
|
|
4188
|
+
}
|
|
4189
|
+
/** Position at which to move the site section to. */
|
|
4190
|
+
export interface SiteSectionMovePosition {
|
|
4191
|
+
before?: SiteSectionPointer;
|
|
4192
|
+
after?: SiteSectionPointer;
|
|
4193
|
+
}
|
|
4244
4194
|
export interface SiteSpacePointer {
|
|
4245
4195
|
type: 'site-space';
|
|
4246
4196
|
/** Unique identifier for the site space */
|
|
@@ -4296,6 +4246,19 @@ export interface SiteTrackPageView {
|
|
|
4296
4246
|
/** The URL of referrer that linked to the page. */
|
|
4297
4247
|
referrer: string;
|
|
4298
4248
|
}
|
|
4249
|
+
/** Page entry in the content insights. */
|
|
4250
|
+
export interface InsightsContentPage {
|
|
4251
|
+
/** Unique identifier for the page in the revision */
|
|
4252
|
+
id: string;
|
|
4253
|
+
/** Title of the page */
|
|
4254
|
+
title: string;
|
|
4255
|
+
/** Complete path to access the page in the revision. */
|
|
4256
|
+
path?: string;
|
|
4257
|
+
/** Emoji of the page, if one has been set. */
|
|
4258
|
+
emoji?: Emoji;
|
|
4259
|
+
/** Icon of the page, if one has been set. */
|
|
4260
|
+
icon?: Icon;
|
|
4261
|
+
}
|
|
4299
4262
|
export interface SiteAdsStats {
|
|
4300
4263
|
impressions: number;
|
|
4301
4264
|
clicks: number;
|
|
@@ -4572,7 +4535,7 @@ export interface ContentPublishingAuth {
|
|
|
4572
4535
|
*/
|
|
4573
4536
|
fallbackURL?: string;
|
|
4574
4537
|
}
|
|
4575
|
-
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration |
|
|
4538
|
+
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
|
|
4576
4539
|
export type InputPageBase = {
|
|
4577
4540
|
/**
|
|
4578
4541
|
* Optional unique identifier for the page.
|
|
@@ -4888,16 +4851,6 @@ export interface OrganizationExperimentalFeaturesChannel {
|
|
|
4888
4851
|
channel: 'organization-experimental-features';
|
|
4889
4852
|
organization: string;
|
|
4890
4853
|
}
|
|
4891
|
-
/** Subscription channel for changes in synced blocks in an organization. */
|
|
4892
|
-
export interface OrganizationSyncedBlocksChannel {
|
|
4893
|
-
channel: 'organization-synced-blocks';
|
|
4894
|
-
organization: string;
|
|
4895
|
-
}
|
|
4896
|
-
export interface OrganizationSyncedBlockChannel {
|
|
4897
|
-
channel: 'organization-synced-block';
|
|
4898
|
-
organization: string;
|
|
4899
|
-
syncedBlock: string;
|
|
4900
|
-
}
|
|
4901
4854
|
export interface CommentsChannel {
|
|
4902
4855
|
channel: 'space-comments';
|
|
4903
4856
|
space: string;
|
|
@@ -4975,9 +4928,9 @@ export interface SiteSpaceCustomizationChannel {
|
|
|
4975
4928
|
site: string;
|
|
4976
4929
|
siteSpace: string;
|
|
4977
4930
|
}
|
|
4978
|
-
/** Subscription channel for changes in site
|
|
4979
|
-
export interface
|
|
4980
|
-
channel: 'site-
|
|
4931
|
+
/** Subscription channel for changes in site structure in an organization. */
|
|
4932
|
+
export interface SiteStructureChannel {
|
|
4933
|
+
channel: 'site-structure';
|
|
4981
4934
|
site: string;
|
|
4982
4935
|
}
|
|
4983
4936
|
export interface SitePublishingAuthChannel {
|
|
@@ -4994,11 +4947,6 @@ export interface SiteShareLinkChannel {
|
|
|
4994
4947
|
site: string;
|
|
4995
4948
|
siteShareLink: string;
|
|
4996
4949
|
}
|
|
4997
|
-
/** Subscription channel for changes in site sections in an organization. */
|
|
4998
|
-
export interface SiteSectionsChannel {
|
|
4999
|
-
channel: 'site-sections';
|
|
5000
|
-
site: string;
|
|
5001
|
-
}
|
|
5002
4950
|
export interface SiteSectionChannel {
|
|
5003
4951
|
channel: 'site-section';
|
|
5004
4952
|
site: string;
|
|
@@ -5009,7 +4957,7 @@ export interface CustomHostnameChannel {
|
|
|
5009
4957
|
customHostname: string;
|
|
5010
4958
|
}
|
|
5011
4959
|
/** Channel to subscribe to for API updates. */
|
|
5012
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel |
|
|
4960
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel;
|
|
5013
4961
|
/** The status of ads on the site */
|
|
5014
4962
|
export declare enum SiteAdsStatus {
|
|
5015
4963
|
Pending = "pending",
|
|
@@ -5038,7 +4986,6 @@ export type RequestUpdateIntegrationSiteInstallation = UpdateIntegrationSiteInst
|
|
|
5038
4986
|
export type RequestUpgradeOrganizationBilling = UpgradeOrganizationBilling;
|
|
5039
4987
|
export type RequestInviteUsersToOrganization = InviteUsersToOrganization;
|
|
5040
4988
|
export type RequestImportGitRepository = ImportGitRepository;
|
|
5041
|
-
export type RequestSyncGitRepository = SyncGitRepository;
|
|
5042
4989
|
export type RequestExportToGitRepository = ExportToGitRepository;
|
|
5043
4990
|
export type RequestImportContent = ImportContent;
|
|
5044
4991
|
export type RequestCreateSpace = CreateSpace;
|
|
@@ -5492,16 +5439,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5492
5439
|
* @secure
|
|
5493
5440
|
*/
|
|
5494
5441
|
exportToGitRepository: (spaceId: string, data: ExportToGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5495
|
-
/**
|
|
5496
|
-
* No description
|
|
5497
|
-
*
|
|
5498
|
-
* @tags spaces
|
|
5499
|
-
* @name SyncGitRepository
|
|
5500
|
-
* @summary Synchronize a Git repository with the space content.
|
|
5501
|
-
* @request POST:/spaces/{spaceId}/git/sync
|
|
5502
|
-
* @secure
|
|
5503
|
-
*/
|
|
5504
|
-
syncGitRepository: (spaceId: string, data: SyncGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5505
5442
|
/**
|
|
5506
5443
|
* No description
|
|
5507
5444
|
*
|
|
@@ -6504,23 +6441,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6504
6441
|
*/
|
|
6505
6442
|
computed?: boolean;
|
|
6506
6443
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, Error>>;
|
|
6507
|
-
/**
|
|
6508
|
-
* No description
|
|
6509
|
-
*
|
|
6510
|
-
* @tags spaces
|
|
6511
|
-
* @name TouchContentInChangeRequest
|
|
6512
|
-
* @summary Touch Hive content, marking it as modified as part of this change request.
|
|
6513
|
-
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/touched-content
|
|
6514
|
-
* @secure
|
|
6515
|
-
*/
|
|
6516
|
-
touchContentInChangeRequest: (spaceId: string, changeRequestId: string, data: {
|
|
6517
|
-
/** The content id of the touched content. */
|
|
6518
|
-
contentId: string;
|
|
6519
|
-
/** The branch id of the touched content. */
|
|
6520
|
-
branchId: string;
|
|
6521
|
-
/** The relation of the touched content to the change request. */
|
|
6522
|
-
relation: "synced-block";
|
|
6523
|
-
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
6524
6444
|
/**
|
|
6525
6445
|
* No description
|
|
6526
6446
|
*
|
|
@@ -6539,25 +6459,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6539
6459
|
/** Temporary URL to print the content. The URL will work for 1h. */
|
|
6540
6460
|
url: URL;
|
|
6541
6461
|
}, Error>>;
|
|
6542
|
-
/**
|
|
6543
|
-
* No description
|
|
6544
|
-
*
|
|
6545
|
-
* @tags spaces
|
|
6546
|
-
* @name GetSyncedBlockContentInChangeRequest
|
|
6547
|
-
* @summary Get the content of a synced block in the context of a change request.
|
|
6548
|
-
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content
|
|
6549
|
-
* @secure
|
|
6550
|
-
*/
|
|
6551
|
-
getSyncedBlockContentInChangeRequest: (spaceId: string, changeRequestId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
6552
|
-
document: JSONDocument;
|
|
6553
|
-
files: RevisionFile[];
|
|
6554
|
-
}, Error | {
|
|
6555
|
-
error: {
|
|
6556
|
-
/** @format int32 */
|
|
6557
|
-
code: 404;
|
|
6558
|
-
message: string;
|
|
6559
|
-
};
|
|
6560
|
-
}>>;
|
|
6561
6462
|
/**
|
|
6562
6463
|
* No description
|
|
6563
6464
|
*
|
|
@@ -9031,142 +8932,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9031
8932
|
parentPage?: RevisionPageDocument | RevisionPageGroup;
|
|
9032
8933
|
}[];
|
|
9033
8934
|
}, Error>>;
|
|
9034
|
-
/**
|
|
9035
|
-
* No description
|
|
9036
|
-
*
|
|
9037
|
-
* @tags organizations
|
|
9038
|
-
* @name ListSyncedBlocks
|
|
9039
|
-
* @summary List all the synced blocks created in an organization
|
|
9040
|
-
* @request GET:/orgs/{organizationId}/synced-blocks
|
|
9041
|
-
* @secure
|
|
9042
|
-
*/
|
|
9043
|
-
listSyncedBlocks: (organizationId: string, query?: {
|
|
9044
|
-
/** Identifier of the page results to fetch. */
|
|
9045
|
-
page?: string;
|
|
9046
|
-
/**
|
|
9047
|
-
* The number of results per page
|
|
9048
|
-
* @min 0
|
|
9049
|
-
* @max 1000
|
|
9050
|
-
*/
|
|
9051
|
-
limit?: number;
|
|
9052
|
-
/** A list of IDs to filter the synced blocks. */
|
|
9053
|
-
ids?: string[];
|
|
9054
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9055
|
-
items: SyncedBlock[];
|
|
9056
|
-
}, Error>>;
|
|
9057
|
-
/**
|
|
9058
|
-
* No description
|
|
9059
|
-
*
|
|
9060
|
-
* @tags organizations
|
|
9061
|
-
* @name CreateSyncedBlock
|
|
9062
|
-
* @summary Create a new synced block
|
|
9063
|
-
* @request POST:/orgs/{organizationId}/synced-blocks
|
|
9064
|
-
* @secure
|
|
9065
|
-
*/
|
|
9066
|
-
createSyncedBlock: (organizationId: string, data: {
|
|
9067
|
-
/** Title of synced block */
|
|
9068
|
-
title?: string;
|
|
9069
|
-
}, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
|
|
9070
|
-
/**
|
|
9071
|
-
* No description
|
|
9072
|
-
*
|
|
9073
|
-
* @tags organizations
|
|
9074
|
-
* @name GetSyncedBlock
|
|
9075
|
-
* @summary Get a synced block by its ID
|
|
9076
|
-
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
9077
|
-
* @secure
|
|
9078
|
-
*/
|
|
9079
|
-
getSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
|
|
9080
|
-
/**
|
|
9081
|
-
* No description
|
|
9082
|
-
*
|
|
9083
|
-
* @tags organizations
|
|
9084
|
-
* @name UpdateSyncedBlock
|
|
9085
|
-
* @summary Update an existing synced block.
|
|
9086
|
-
* @request PATCH:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
9087
|
-
* @secure
|
|
9088
|
-
*/
|
|
9089
|
-
updateSyncedBlock: (organizationId: string, syncedBlockId: string, data: {
|
|
9090
|
-
/** A new title for the Synced Block. */
|
|
9091
|
-
title?: string;
|
|
9092
|
-
/** A new description for the Synced Block. */
|
|
9093
|
-
description?: string;
|
|
9094
|
-
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9095
|
-
/**
|
|
9096
|
-
* No description
|
|
9097
|
-
*
|
|
9098
|
-
* @tags organizations
|
|
9099
|
-
* @name DeleteSyncedBlock
|
|
9100
|
-
* @summary Delete a synced block by its ID
|
|
9101
|
-
* @request DELETE:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
9102
|
-
* @secure
|
|
9103
|
-
*/
|
|
9104
|
-
deleteSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9105
|
-
/**
|
|
9106
|
-
* No description
|
|
9107
|
-
*
|
|
9108
|
-
* @tags organizations
|
|
9109
|
-
* @name GetSyncedBlockContent
|
|
9110
|
-
* @summary Get the content of a synced block.
|
|
9111
|
-
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content
|
|
9112
|
-
* @secure
|
|
9113
|
-
*/
|
|
9114
|
-
getSyncedBlockContent: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
9115
|
-
document: JSONDocument;
|
|
9116
|
-
files: RevisionFile[];
|
|
9117
|
-
}, Error | {
|
|
9118
|
-
error: {
|
|
9119
|
-
/** @format int32 */
|
|
9120
|
-
code: 404;
|
|
9121
|
-
message: string;
|
|
9122
|
-
};
|
|
9123
|
-
}>>;
|
|
9124
|
-
/**
|
|
9125
|
-
* No description
|
|
9126
|
-
*
|
|
9127
|
-
* @tags organizations
|
|
9128
|
-
* @name ListSyncedBlockBacklinks
|
|
9129
|
-
* @summary Get a list of pages that reference this synced block.
|
|
9130
|
-
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks
|
|
9131
|
-
* @secure
|
|
9132
|
-
*/
|
|
9133
|
-
listSyncedBlockBacklinks: (organizationId: string, syncedBlockId: string, query?: {
|
|
9134
|
-
/** Identifier of the page results to fetch. */
|
|
9135
|
-
page?: string;
|
|
9136
|
-
/**
|
|
9137
|
-
* The number of results per page
|
|
9138
|
-
* @min 0
|
|
9139
|
-
* @max 1000
|
|
9140
|
-
*/
|
|
9141
|
-
limit?: number;
|
|
9142
|
-
/** Filter backlinks relative to a change request. */
|
|
9143
|
-
changeRequestId?: string;
|
|
9144
|
-
/** Filter backlinks relative to a space. */
|
|
9145
|
-
spaceId?: string;
|
|
9146
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9147
|
-
items: ContentLocationPage[];
|
|
9148
|
-
}, Error>>;
|
|
9149
|
-
/**
|
|
9150
|
-
* No description
|
|
9151
|
-
*
|
|
9152
|
-
* @tags organizations
|
|
9153
|
-
* @name ListSyncedBlockSpaces
|
|
9154
|
-
* @summary Get a list of spaces that reference this synced block.
|
|
9155
|
-
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces
|
|
9156
|
-
* @secure
|
|
9157
|
-
*/
|
|
9158
|
-
listSyncedBlockSpaces: (organizationId: string, syncedBlockId: string, query?: {
|
|
9159
|
-
/** Identifier of the page results to fetch. */
|
|
9160
|
-
page?: string;
|
|
9161
|
-
/**
|
|
9162
|
-
* The number of results per page
|
|
9163
|
-
* @min 0
|
|
9164
|
-
* @max 1000
|
|
9165
|
-
*/
|
|
9166
|
-
limit?: number;
|
|
9167
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9168
|
-
items: Space[];
|
|
9169
|
-
}, Error>>;
|
|
9170
8935
|
/**
|
|
9171
8936
|
* No description
|
|
9172
8937
|
*
|
|
@@ -9431,13 +9196,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9431
9196
|
getSiteStructure: (organizationId: string, siteId: string, query?: {
|
|
9432
9197
|
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
9433
9198
|
shareKey?: string;
|
|
9434
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
9435
|
-
type?: "sections";
|
|
9436
|
-
structure?: SiteSection[];
|
|
9437
|
-
} | {
|
|
9438
|
-
type?: "siteSpaces";
|
|
9439
|
-
structure?: SiteSpace[];
|
|
9440
|
-
}, Error | {
|
|
9199
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteStructure, Error | {
|
|
9441
9200
|
error: {
|
|
9442
9201
|
/** @format int32 */
|
|
9443
9202
|
code: 404;
|
|
@@ -9768,9 +9527,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9768
9527
|
* @secure
|
|
9769
9528
|
*/
|
|
9770
9529
|
searchSiteContent: (organizationId: string, siteId: string, data: {
|
|
9771
|
-
|
|
9530
|
+
/** Search only in the site spaces provided */
|
|
9531
|
+
mode?: "specific";
|
|
9772
9532
|
/** @minLength 1 */
|
|
9773
|
-
siteSpaceIds
|
|
9533
|
+
siteSpaceIds: string[];
|
|
9534
|
+
query: string;
|
|
9535
|
+
} | {
|
|
9536
|
+
/** Search in the current site space and all section's defaults */
|
|
9537
|
+
mode: "current";
|
|
9538
|
+
siteSpaceId: string;
|
|
9539
|
+
query: string;
|
|
9540
|
+
} | {
|
|
9541
|
+
/** search in all site-spaces */
|
|
9542
|
+
mode: "all";
|
|
9543
|
+
query: string;
|
|
9774
9544
|
}, query?: {
|
|
9775
9545
|
/** Identifier of the page results to fetch. */
|
|
9776
9546
|
page?: string;
|
|
@@ -9975,6 +9745,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9975
9745
|
createSitesPageFeedback: (organizationId: string, siteId: string, siteSpaceId: string, pageId: string, visitorId: string, data: {
|
|
9976
9746
|
rating: PageFeedbackRating;
|
|
9977
9747
|
}, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
|
|
9748
|
+
/**
|
|
9749
|
+
* No description
|
|
9750
|
+
*
|
|
9751
|
+
* @tags sites
|
|
9752
|
+
* @name MoveSiteSection
|
|
9753
|
+
* @summary Move a site section to a new position in the site.
|
|
9754
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move
|
|
9755
|
+
* @secure
|
|
9756
|
+
*/
|
|
9757
|
+
moveSiteSection: (organizationId: string, siteId: string, siteSectionId: string, data: {
|
|
9758
|
+
/** The position where to move the site section. When not provided the site section is moved at the end of the site. */
|
|
9759
|
+
position?: SiteSectionMovePosition;
|
|
9760
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error | {
|
|
9761
|
+
error: {
|
|
9762
|
+
/** @format int32 */
|
|
9763
|
+
code: 400;
|
|
9764
|
+
message: string;
|
|
9765
|
+
};
|
|
9766
|
+
} | {
|
|
9767
|
+
error: {
|
|
9768
|
+
/** @format int32 */
|
|
9769
|
+
code: 404;
|
|
9770
|
+
message: string;
|
|
9771
|
+
};
|
|
9772
|
+
}>>;
|
|
9978
9773
|
/**
|
|
9979
9774
|
* No description
|
|
9980
9775
|
*
|