@gitbook/api 0.71.0 → 0.72.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 +92 -30
- package/dist/index.cjs +10 -1
- package/dist/index.js +10 -1
- package/package.json +1 -1
- package/spec/openapi.json +314 -90
- package/spec/openapi.yaml +203 -64
package/dist/client.d.ts
CHANGED
|
@@ -1184,29 +1184,32 @@ export interface RevisionPageDocumentCover {
|
|
|
1184
1184
|
/** Vertical position of the cover image. */
|
|
1185
1185
|
yPos: number;
|
|
1186
1186
|
}
|
|
1187
|
+
/** A score breakdown for a specific page. */
|
|
1188
|
+
export interface AnalyticsFeedbacksPageScore {
|
|
1189
|
+
/** Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad'). */
|
|
1190
|
+
score: number;
|
|
1191
|
+
/** Total number of ratings done by end users. */
|
|
1192
|
+
total: number;
|
|
1193
|
+
/**
|
|
1194
|
+
* Summary of the rating based on the score ('good', 'ok', or 'bad')
|
|
1195
|
+
* @deprecated
|
|
1196
|
+
*/
|
|
1197
|
+
rating: string;
|
|
1198
|
+
/** Score multiplied by the number of ratings to give more importance to highly rated content. */
|
|
1199
|
+
ponderedScore: number;
|
|
1200
|
+
/** Number of 'bad' ratings. */
|
|
1201
|
+
bad: number;
|
|
1202
|
+
/** Number of 'ok' ratings. */
|
|
1203
|
+
ok: number;
|
|
1204
|
+
/** Number of 'good' ratings. */
|
|
1205
|
+
good: number;
|
|
1206
|
+
}
|
|
1187
1207
|
/** Page entry in the content analytics. */
|
|
1188
1208
|
export interface AnalyticsContentPage {
|
|
1189
1209
|
page: RevisionPageDocument;
|
|
1190
1210
|
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
|
-
};
|
|
1211
|
+
/** A score breakdown for a specific page. */
|
|
1212
|
+
feedbacks?: AnalyticsFeedbacksPageScore;
|
|
1210
1213
|
}
|
|
1211
1214
|
export interface AnalyticsContentPages {
|
|
1212
1215
|
pages: AnalyticsContentPage[];
|
|
@@ -1968,8 +1971,15 @@ export interface ContentLocationSyncedBlock {
|
|
|
1968
1971
|
organization: Organization;
|
|
1969
1972
|
syncedBlock: SyncedBlock;
|
|
1970
1973
|
}
|
|
1974
|
+
export interface ContentLocationReusableContent {
|
|
1975
|
+
kind: 'reusable-content';
|
|
1976
|
+
organization: Organization;
|
|
1977
|
+
space: Space;
|
|
1978
|
+
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
1979
|
+
reusableContent: RevisionReusableContent;
|
|
1980
|
+
}
|
|
1971
1981
|
/** An absolute reference to content in GitBook. */
|
|
1972
|
-
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock;
|
|
1982
|
+
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock | ContentLocationReusableContent;
|
|
1973
1983
|
/**
|
|
1974
1984
|
* Text to display to represent the reference. Possible values include:
|
|
1975
1985
|
* - `ok` - No problems detected for this content reference.
|
|
@@ -4130,6 +4140,13 @@ export interface SiteSection {
|
|
|
4130
4140
|
published?: string;
|
|
4131
4141
|
};
|
|
4132
4142
|
}
|
|
4143
|
+
export type SiteStructure = {
|
|
4144
|
+
type: 'sections';
|
|
4145
|
+
structure: SiteSection[];
|
|
4146
|
+
} | {
|
|
4147
|
+
type: 'siteSpaces';
|
|
4148
|
+
structure: SiteSpace[];
|
|
4149
|
+
};
|
|
4133
4150
|
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
4134
4151
|
/** Type of Object, always equals to "publishing-auth" */
|
|
4135
4152
|
object: 'publishing-auth';
|
|
@@ -4241,6 +4258,16 @@ export interface SiteIntegrationScript {
|
|
|
4241
4258
|
/** If true, the script will potentially load use cookies and visitors should be aware. */
|
|
4242
4259
|
cookies: boolean;
|
|
4243
4260
|
}
|
|
4261
|
+
export interface SiteSectionPointer {
|
|
4262
|
+
type: 'site-section';
|
|
4263
|
+
/** Unique identifier for the site section */
|
|
4264
|
+
siteSection: string;
|
|
4265
|
+
}
|
|
4266
|
+
/** Position at which to move the site section to. */
|
|
4267
|
+
export interface SiteSectionMovePosition {
|
|
4268
|
+
before?: SiteSectionPointer;
|
|
4269
|
+
after?: SiteSectionPointer;
|
|
4270
|
+
}
|
|
4244
4271
|
export interface SiteSpacePointer {
|
|
4245
4272
|
type: 'site-space';
|
|
4246
4273
|
/** Unique identifier for the site space */
|
|
@@ -4980,6 +5007,11 @@ export interface SiteSpacesChannel {
|
|
|
4980
5007
|
channel: 'site-spaces';
|
|
4981
5008
|
site: string;
|
|
4982
5009
|
}
|
|
5010
|
+
/** Subscription channel for changes in site structure in an organization. */
|
|
5011
|
+
export interface SiteStructureChannel {
|
|
5012
|
+
channel: 'site-structure';
|
|
5013
|
+
site: string;
|
|
5014
|
+
}
|
|
4983
5015
|
export interface SitePublishingAuthChannel {
|
|
4984
5016
|
channel: 'site-publishing-auth';
|
|
4985
5017
|
site: string;
|
|
@@ -5009,7 +5041,7 @@ export interface CustomHostnameChannel {
|
|
|
5009
5041
|
customHostname: string;
|
|
5010
5042
|
}
|
|
5011
5043
|
/** 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 | OrganizationSyncedBlocksChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionsChannel | SiteSectionChannel | CustomHostnameChannel;
|
|
5044
|
+
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 | OrganizationSyncedBlocksChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionsChannel | SiteSectionChannel | CustomHostnameChannel;
|
|
5013
5045
|
/** The status of ads on the site */
|
|
5014
5046
|
export declare enum SiteAdsStatus {
|
|
5015
5047
|
Pending = "pending",
|
|
@@ -9431,13 +9463,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9431
9463
|
getSiteStructure: (organizationId: string, siteId: string, query?: {
|
|
9432
9464
|
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
9433
9465
|
shareKey?: string;
|
|
9434
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
9435
|
-
type?: "sections";
|
|
9436
|
-
structure?: SiteSection[];
|
|
9437
|
-
} | {
|
|
9438
|
-
type?: "siteSpaces";
|
|
9439
|
-
structure?: SiteSpace[];
|
|
9440
|
-
}, Error | {
|
|
9466
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteStructure, Error | {
|
|
9441
9467
|
error: {
|
|
9442
9468
|
/** @format int32 */
|
|
9443
9469
|
code: 404;
|
|
@@ -9768,9 +9794,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9768
9794
|
* @secure
|
|
9769
9795
|
*/
|
|
9770
9796
|
searchSiteContent: (organizationId: string, siteId: string, data: {
|
|
9771
|
-
|
|
9797
|
+
/** Search only in the site spaces provided */
|
|
9798
|
+
mode?: "specific";
|
|
9772
9799
|
/** @minLength 1 */
|
|
9773
|
-
siteSpaceIds
|
|
9800
|
+
siteSpaceIds: string[];
|
|
9801
|
+
query: string;
|
|
9802
|
+
} | {
|
|
9803
|
+
/** Search in the current site space and all section's defaults */
|
|
9804
|
+
mode: "current";
|
|
9805
|
+
siteSpaceId: string;
|
|
9806
|
+
query: string;
|
|
9807
|
+
} | {
|
|
9808
|
+
/** search in all site-spaces */
|
|
9809
|
+
mode: "all";
|
|
9810
|
+
query: string;
|
|
9774
9811
|
}, query?: {
|
|
9775
9812
|
/** Identifier of the page results to fetch. */
|
|
9776
9813
|
page?: string;
|
|
@@ -9975,6 +10012,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9975
10012
|
createSitesPageFeedback: (organizationId: string, siteId: string, siteSpaceId: string, pageId: string, visitorId: string, data: {
|
|
9976
10013
|
rating: PageFeedbackRating;
|
|
9977
10014
|
}, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
|
|
10015
|
+
/**
|
|
10016
|
+
* No description
|
|
10017
|
+
*
|
|
10018
|
+
* @tags sites
|
|
10019
|
+
* @name MoveSiteSection
|
|
10020
|
+
* @summary Move a site section to a new position in the site.
|
|
10021
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move
|
|
10022
|
+
* @secure
|
|
10023
|
+
*/
|
|
10024
|
+
moveSiteSection: (organizationId: string, siteId: string, siteSectionId: string, data: {
|
|
10025
|
+
/** The position where to move the site section. When not provided the site section is moved at the end of the site. */
|
|
10026
|
+
position?: SiteSectionMovePosition;
|
|
10027
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error | {
|
|
10028
|
+
error: {
|
|
10029
|
+
/** @format int32 */
|
|
10030
|
+
code: 400;
|
|
10031
|
+
message: string;
|
|
10032
|
+
};
|
|
10033
|
+
} | {
|
|
10034
|
+
error: {
|
|
10035
|
+
/** @format int32 */
|
|
10036
|
+
code: 404;
|
|
10037
|
+
message: string;
|
|
10038
|
+
};
|
|
10039
|
+
}>>;
|
|
9978
10040
|
/**
|
|
9979
10041
|
* No description
|
|
9980
10042
|
*
|
package/dist/index.cjs
CHANGED
|
@@ -242,7 +242,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
242
242
|
|
|
243
243
|
// package.json
|
|
244
244
|
var name = "@gitbook/api";
|
|
245
|
-
var version = "0.
|
|
245
|
+
var version = "0.72.0";
|
|
246
246
|
|
|
247
247
|
// src/client.ts
|
|
248
248
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -3197,6 +3197,15 @@ var Api = class extends HttpClient {
|
|
|
3197
3197
|
format: "json",
|
|
3198
3198
|
...params
|
|
3199
3199
|
}),
|
|
3200
|
+
moveSiteSection: (organizationId, siteId, siteSectionId, data, params = {}) => this.request({
|
|
3201
|
+
path: `/orgs/${organizationId}/sites/${siteId}/sections/${siteSectionId}/move`,
|
|
3202
|
+
method: "POST",
|
|
3203
|
+
body: data,
|
|
3204
|
+
secure: true,
|
|
3205
|
+
type: "application/json" /* Json */,
|
|
3206
|
+
format: "json",
|
|
3207
|
+
...params
|
|
3208
|
+
}),
|
|
3200
3209
|
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
3201
3210
|
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
|
|
3202
3211
|
method: "POST",
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.72.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -3127,6 +3127,15 @@ var Api = class extends HttpClient {
|
|
|
3127
3127
|
format: "json",
|
|
3128
3128
|
...params
|
|
3129
3129
|
}),
|
|
3130
|
+
moveSiteSection: (organizationId, siteId, siteSectionId, data, params = {}) => this.request({
|
|
3131
|
+
path: `/orgs/${organizationId}/sites/${siteId}/sections/${siteSectionId}/move`,
|
|
3132
|
+
method: "POST",
|
|
3133
|
+
body: data,
|
|
3134
|
+
secure: true,
|
|
3135
|
+
type: "application/json" /* Json */,
|
|
3136
|
+
format: "json",
|
|
3137
|
+
...params
|
|
3138
|
+
}),
|
|
3130
3139
|
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
3131
3140
|
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
|
|
3132
3141
|
method: "POST",
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -12916,42 +12916,7 @@
|
|
|
12916
12916
|
"content": {
|
|
12917
12917
|
"application/json": {
|
|
12918
12918
|
"schema": {
|
|
12919
|
-
"
|
|
12920
|
-
{
|
|
12921
|
-
"type": "object",
|
|
12922
|
-
"properties": {
|
|
12923
|
-
"type": {
|
|
12924
|
-
"type": "string",
|
|
12925
|
-
"enum": [
|
|
12926
|
-
"sections"
|
|
12927
|
-
]
|
|
12928
|
-
},
|
|
12929
|
-
"structure": {
|
|
12930
|
-
"type": "array",
|
|
12931
|
-
"items": {
|
|
12932
|
-
"$ref": "#/components/schemas/SiteSection"
|
|
12933
|
-
}
|
|
12934
|
-
}
|
|
12935
|
-
}
|
|
12936
|
-
},
|
|
12937
|
-
{
|
|
12938
|
-
"type": "object",
|
|
12939
|
-
"properties": {
|
|
12940
|
-
"type": {
|
|
12941
|
-
"type": "string",
|
|
12942
|
-
"enum": [
|
|
12943
|
-
"siteSpaces"
|
|
12944
|
-
]
|
|
12945
|
-
},
|
|
12946
|
-
"structure": {
|
|
12947
|
-
"type": "array",
|
|
12948
|
-
"items": {
|
|
12949
|
-
"$ref": "#/components/schemas/SiteSpace"
|
|
12950
|
-
}
|
|
12951
|
-
}
|
|
12952
|
-
}
|
|
12953
|
-
}
|
|
12954
|
-
]
|
|
12919
|
+
"$ref": "#/components/schemas/SiteStructure"
|
|
12955
12920
|
}
|
|
12956
12921
|
}
|
|
12957
12922
|
}
|
|
@@ -13943,21 +13908,75 @@
|
|
|
13943
13908
|
"content": {
|
|
13944
13909
|
"application/json": {
|
|
13945
13910
|
"schema": {
|
|
13946
|
-
"
|
|
13947
|
-
|
|
13948
|
-
|
|
13949
|
-
"
|
|
13911
|
+
"oneOf": [
|
|
13912
|
+
{
|
|
13913
|
+
"type": "object",
|
|
13914
|
+
"properties": {
|
|
13915
|
+
"mode": {
|
|
13916
|
+
"description": "Search only in the site spaces provided",
|
|
13917
|
+
"type": "string",
|
|
13918
|
+
"enum": [
|
|
13919
|
+
"specific"
|
|
13920
|
+
]
|
|
13921
|
+
},
|
|
13922
|
+
"siteSpaceIds": {
|
|
13923
|
+
"type": "array",
|
|
13924
|
+
"minLength": 1,
|
|
13925
|
+
"items": {
|
|
13926
|
+
"type": "string"
|
|
13927
|
+
}
|
|
13928
|
+
},
|
|
13929
|
+
"query": {
|
|
13930
|
+
"type": "string"
|
|
13931
|
+
}
|
|
13932
|
+
},
|
|
13933
|
+
"required": [
|
|
13934
|
+
"siteSpaceIds",
|
|
13935
|
+
"query"
|
|
13936
|
+
]
|
|
13950
13937
|
},
|
|
13951
|
-
|
|
13952
|
-
"type": "
|
|
13953
|
-
"
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13938
|
+
{
|
|
13939
|
+
"type": "object",
|
|
13940
|
+
"properties": {
|
|
13941
|
+
"mode": {
|
|
13942
|
+
"description": "Search in the current site space and all section's defaults",
|
|
13943
|
+
"type": "string",
|
|
13944
|
+
"enum": [
|
|
13945
|
+
"current"
|
|
13946
|
+
]
|
|
13947
|
+
},
|
|
13948
|
+
"siteSpaceId": {
|
|
13949
|
+
"type": "string"
|
|
13950
|
+
},
|
|
13951
|
+
"query": {
|
|
13952
|
+
"type": "string"
|
|
13953
|
+
}
|
|
13954
|
+
},
|
|
13955
|
+
"required": [
|
|
13956
|
+
"mode",
|
|
13957
|
+
"siteSpaceId",
|
|
13958
|
+
"query"
|
|
13959
|
+
]
|
|
13960
|
+
},
|
|
13961
|
+
{
|
|
13962
|
+
"type": "object",
|
|
13963
|
+
"properties": {
|
|
13964
|
+
"mode": {
|
|
13965
|
+
"description": "search in all site-spaces",
|
|
13966
|
+
"type": "string",
|
|
13967
|
+
"enum": [
|
|
13968
|
+
"all"
|
|
13969
|
+
]
|
|
13970
|
+
},
|
|
13971
|
+
"query": {
|
|
13972
|
+
"type": "string"
|
|
13973
|
+
}
|
|
13974
|
+
},
|
|
13975
|
+
"required": [
|
|
13976
|
+
"mode",
|
|
13977
|
+
"query"
|
|
13978
|
+
]
|
|
13957
13979
|
}
|
|
13958
|
-
},
|
|
13959
|
-
"required": [
|
|
13960
|
-
"query"
|
|
13961
13980
|
]
|
|
13962
13981
|
}
|
|
13963
13982
|
}
|
|
@@ -14774,6 +14793,69 @@
|
|
|
14774
14793
|
}
|
|
14775
14794
|
}
|
|
14776
14795
|
},
|
|
14796
|
+
"/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move": {
|
|
14797
|
+
"post": {
|
|
14798
|
+
"operationId": "moveSiteSection",
|
|
14799
|
+
"summary": "Move a site section to a new position in the site.",
|
|
14800
|
+
"tags": [
|
|
14801
|
+
"sites"
|
|
14802
|
+
],
|
|
14803
|
+
"security": [
|
|
14804
|
+
{
|
|
14805
|
+
"user": []
|
|
14806
|
+
}
|
|
14807
|
+
],
|
|
14808
|
+
"parameters": [
|
|
14809
|
+
{
|
|
14810
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14811
|
+
},
|
|
14812
|
+
{
|
|
14813
|
+
"$ref": "#/components/parameters/siteId"
|
|
14814
|
+
},
|
|
14815
|
+
{
|
|
14816
|
+
"$ref": "#/components/parameters/siteSectionId"
|
|
14817
|
+
}
|
|
14818
|
+
],
|
|
14819
|
+
"requestBody": {
|
|
14820
|
+
"content": {
|
|
14821
|
+
"application/json": {
|
|
14822
|
+
"schema": {
|
|
14823
|
+
"type": "object",
|
|
14824
|
+
"properties": {
|
|
14825
|
+
"position": {
|
|
14826
|
+
"description": "The position where to move the site section. When not provided the site section is moved at the end of the site.",
|
|
14827
|
+
"$ref": "#/components/schemas/SiteSectionMovePosition"
|
|
14828
|
+
}
|
|
14829
|
+
}
|
|
14830
|
+
}
|
|
14831
|
+
}
|
|
14832
|
+
}
|
|
14833
|
+
},
|
|
14834
|
+
"responses": {
|
|
14835
|
+
"200": {
|
|
14836
|
+
"description": "Site section moved",
|
|
14837
|
+
"content": {
|
|
14838
|
+
"application/json": {
|
|
14839
|
+
"schema": {
|
|
14840
|
+
"$ref": "#/components/schemas/SiteSection"
|
|
14841
|
+
}
|
|
14842
|
+
}
|
|
14843
|
+
}
|
|
14844
|
+
},
|
|
14845
|
+
"400": {
|
|
14846
|
+
"description": "Invalid move site section position provided",
|
|
14847
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
14848
|
+
},
|
|
14849
|
+
"404": {
|
|
14850
|
+
"description": "No matching Site section found",
|
|
14851
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
14852
|
+
},
|
|
14853
|
+
"default": {
|
|
14854
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
14855
|
+
}
|
|
14856
|
+
}
|
|
14857
|
+
}
|
|
14858
|
+
},
|
|
14777
14859
|
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
|
|
14778
14860
|
"post": {
|
|
14779
14861
|
"operationId": "moveSiteSpace",
|
|
@@ -20830,6 +20912,50 @@
|
|
|
20830
20912
|
"yPos"
|
|
20831
20913
|
]
|
|
20832
20914
|
},
|
|
20915
|
+
"AnalyticsFeedbacksPageScore": {
|
|
20916
|
+
"type": "object",
|
|
20917
|
+
"description": "A score breakdown for a specific page.",
|
|
20918
|
+
"required": [
|
|
20919
|
+
"score",
|
|
20920
|
+
"total",
|
|
20921
|
+
"rating",
|
|
20922
|
+
"ponderedScore",
|
|
20923
|
+
"bad",
|
|
20924
|
+
"ok",
|
|
20925
|
+
"good"
|
|
20926
|
+
],
|
|
20927
|
+
"properties": {
|
|
20928
|
+
"score": {
|
|
20929
|
+
"type": "number",
|
|
20930
|
+
"description": "Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad')."
|
|
20931
|
+
},
|
|
20932
|
+
"total": {
|
|
20933
|
+
"type": "number",
|
|
20934
|
+
"description": "Total number of ratings done by end users."
|
|
20935
|
+
},
|
|
20936
|
+
"rating": {
|
|
20937
|
+
"type": "string",
|
|
20938
|
+
"deprecated": true,
|
|
20939
|
+
"description": "Summary of the rating based on the score ('good', 'ok', or 'bad')"
|
|
20940
|
+
},
|
|
20941
|
+
"ponderedScore": {
|
|
20942
|
+
"type": "number",
|
|
20943
|
+
"description": "Score multiplied by the number of ratings to give more importance to highly rated content."
|
|
20944
|
+
},
|
|
20945
|
+
"bad": {
|
|
20946
|
+
"type": "number",
|
|
20947
|
+
"description": "Number of 'bad' ratings."
|
|
20948
|
+
},
|
|
20949
|
+
"ok": {
|
|
20950
|
+
"type": "number",
|
|
20951
|
+
"description": "Number of 'ok' ratings."
|
|
20952
|
+
},
|
|
20953
|
+
"good": {
|
|
20954
|
+
"type": "number",
|
|
20955
|
+
"description": "Number of 'good' ratings."
|
|
20956
|
+
}
|
|
20957
|
+
}
|
|
20958
|
+
},
|
|
20833
20959
|
"AnalyticsContentPage": {
|
|
20834
20960
|
"type": "object",
|
|
20835
20961
|
"description": "Page entry in the content analytics.",
|
|
@@ -20845,47 +20971,7 @@
|
|
|
20845
20971
|
"type": "number"
|
|
20846
20972
|
},
|
|
20847
20973
|
"feedbacks": {
|
|
20848
|
-
"
|
|
20849
|
-
"required": [
|
|
20850
|
-
"score",
|
|
20851
|
-
"total",
|
|
20852
|
-
"rating",
|
|
20853
|
-
"ponderedScore",
|
|
20854
|
-
"bad",
|
|
20855
|
-
"ok",
|
|
20856
|
-
"good"
|
|
20857
|
-
],
|
|
20858
|
-
"properties": {
|
|
20859
|
-
"score": {
|
|
20860
|
-
"type": "number",
|
|
20861
|
-
"description": "Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad')."
|
|
20862
|
-
},
|
|
20863
|
-
"total": {
|
|
20864
|
-
"type": "number",
|
|
20865
|
-
"description": "Total number of ratings done by end users."
|
|
20866
|
-
},
|
|
20867
|
-
"rating": {
|
|
20868
|
-
"type": "string",
|
|
20869
|
-
"deprecated": true,
|
|
20870
|
-
"description": "Summary of the rating based on the score ('good', 'ok', or 'bad')"
|
|
20871
|
-
},
|
|
20872
|
-
"ponderedScore": {
|
|
20873
|
-
"type": "number",
|
|
20874
|
-
"description": "Score multiplied by the number of ratings to give more importance to highly rated content."
|
|
20875
|
-
},
|
|
20876
|
-
"bad": {
|
|
20877
|
-
"type": "number",
|
|
20878
|
-
"description": "Number of 'bad' ratings."
|
|
20879
|
-
},
|
|
20880
|
-
"ok": {
|
|
20881
|
-
"type": "number",
|
|
20882
|
-
"description": "Number of 'ok' ratings."
|
|
20883
|
-
},
|
|
20884
|
-
"good": {
|
|
20885
|
-
"type": "number",
|
|
20886
|
-
"description": "Number of 'good' ratings."
|
|
20887
|
-
}
|
|
20888
|
-
}
|
|
20974
|
+
"$ref": "#/components/schemas/AnalyticsFeedbacksPageScore"
|
|
20889
20975
|
}
|
|
20890
20976
|
}
|
|
20891
20977
|
},
|
|
@@ -22866,6 +22952,42 @@
|
|
|
22866
22952
|
"syncedBlock"
|
|
22867
22953
|
]
|
|
22868
22954
|
},
|
|
22955
|
+
"ContentLocationReusableContent": {
|
|
22956
|
+
"type": "object",
|
|
22957
|
+
"properties": {
|
|
22958
|
+
"kind": {
|
|
22959
|
+
"type": "string",
|
|
22960
|
+
"enum": [
|
|
22961
|
+
"reusable-content"
|
|
22962
|
+
]
|
|
22963
|
+
},
|
|
22964
|
+
"organization": {
|
|
22965
|
+
"$ref": "#/components/schemas/Organization"
|
|
22966
|
+
},
|
|
22967
|
+
"space": {
|
|
22968
|
+
"$ref": "#/components/schemas/Space"
|
|
22969
|
+
},
|
|
22970
|
+
"versionContext": {
|
|
22971
|
+
"oneOf": [
|
|
22972
|
+
{
|
|
22973
|
+
"$ref": "#/components/schemas/ContentLocationRevisionContext"
|
|
22974
|
+
},
|
|
22975
|
+
{
|
|
22976
|
+
"$ref": "#/components/schemas/ContentLocationChangeRequestContext"
|
|
22977
|
+
}
|
|
22978
|
+
]
|
|
22979
|
+
},
|
|
22980
|
+
"reusableContent": {
|
|
22981
|
+
"$ref": "#/components/schemas/RevisionReusableContent"
|
|
22982
|
+
}
|
|
22983
|
+
},
|
|
22984
|
+
"required": [
|
|
22985
|
+
"kind",
|
|
22986
|
+
"organization",
|
|
22987
|
+
"space",
|
|
22988
|
+
"reusableContent"
|
|
22989
|
+
]
|
|
22990
|
+
},
|
|
22869
22991
|
"ContentLocation": {
|
|
22870
22992
|
"description": "An absolute reference to content in GitBook.",
|
|
22871
22993
|
"oneOf": [
|
|
@@ -22892,6 +23014,9 @@
|
|
|
22892
23014
|
},
|
|
22893
23015
|
{
|
|
22894
23016
|
"$ref": "#/components/schemas/ContentLocationSyncedBlock"
|
|
23017
|
+
},
|
|
23018
|
+
{
|
|
23019
|
+
"$ref": "#/components/schemas/ContentLocationReusableContent"
|
|
22895
23020
|
}
|
|
22896
23021
|
],
|
|
22897
23022
|
"discriminator": {
|
|
@@ -29519,6 +29644,52 @@
|
|
|
29519
29644
|
"urls"
|
|
29520
29645
|
]
|
|
29521
29646
|
},
|
|
29647
|
+
"SiteStructure": {
|
|
29648
|
+
"oneOf": [
|
|
29649
|
+
{
|
|
29650
|
+
"type": "object",
|
|
29651
|
+
"properties": {
|
|
29652
|
+
"type": {
|
|
29653
|
+
"type": "string",
|
|
29654
|
+
"enum": [
|
|
29655
|
+
"sections"
|
|
29656
|
+
]
|
|
29657
|
+
},
|
|
29658
|
+
"structure": {
|
|
29659
|
+
"type": "array",
|
|
29660
|
+
"items": {
|
|
29661
|
+
"$ref": "#/components/schemas/SiteSection"
|
|
29662
|
+
}
|
|
29663
|
+
}
|
|
29664
|
+
},
|
|
29665
|
+
"required": [
|
|
29666
|
+
"type",
|
|
29667
|
+
"structure"
|
|
29668
|
+
]
|
|
29669
|
+
},
|
|
29670
|
+
{
|
|
29671
|
+
"type": "object",
|
|
29672
|
+
"properties": {
|
|
29673
|
+
"type": {
|
|
29674
|
+
"type": "string",
|
|
29675
|
+
"enum": [
|
|
29676
|
+
"siteSpaces"
|
|
29677
|
+
]
|
|
29678
|
+
},
|
|
29679
|
+
"structure": {
|
|
29680
|
+
"type": "array",
|
|
29681
|
+
"items": {
|
|
29682
|
+
"$ref": "#/components/schemas/SiteSpace"
|
|
29683
|
+
}
|
|
29684
|
+
}
|
|
29685
|
+
},
|
|
29686
|
+
"required": [
|
|
29687
|
+
"type",
|
|
29688
|
+
"structure"
|
|
29689
|
+
]
|
|
29690
|
+
}
|
|
29691
|
+
]
|
|
29692
|
+
},
|
|
29522
29693
|
"SitePublishingAuth": {
|
|
29523
29694
|
"allOf": [
|
|
29524
29695
|
{
|
|
@@ -29876,6 +30047,37 @@
|
|
|
29876
30047
|
"cookies"
|
|
29877
30048
|
]
|
|
29878
30049
|
},
|
|
30050
|
+
"SiteSectionPointer": {
|
|
30051
|
+
"type": "object",
|
|
30052
|
+
"properties": {
|
|
30053
|
+
"type": {
|
|
30054
|
+
"type": "string",
|
|
30055
|
+
"enum": [
|
|
30056
|
+
"site-section"
|
|
30057
|
+
]
|
|
30058
|
+
},
|
|
30059
|
+
"siteSection": {
|
|
30060
|
+
"type": "string",
|
|
30061
|
+
"description": "Unique identifier for the site section"
|
|
30062
|
+
}
|
|
30063
|
+
},
|
|
30064
|
+
"required": [
|
|
30065
|
+
"type",
|
|
30066
|
+
"siteSection"
|
|
30067
|
+
]
|
|
30068
|
+
},
|
|
30069
|
+
"SiteSectionMovePosition": {
|
|
30070
|
+
"type": "object",
|
|
30071
|
+
"description": "Position at which to move the site section to.",
|
|
30072
|
+
"properties": {
|
|
30073
|
+
"before": {
|
|
30074
|
+
"$ref": "#/components/schemas/SiteSectionPointer"
|
|
30075
|
+
},
|
|
30076
|
+
"after": {
|
|
30077
|
+
"$ref": "#/components/schemas/SiteSectionPointer"
|
|
30078
|
+
}
|
|
30079
|
+
}
|
|
30080
|
+
},
|
|
29879
30081
|
"SiteSpacePointer": {
|
|
29880
30082
|
"type": "object",
|
|
29881
30083
|
"properties": {
|
|
@@ -32462,6 +32664,25 @@
|
|
|
32462
32664
|
"site"
|
|
32463
32665
|
]
|
|
32464
32666
|
},
|
|
32667
|
+
"SiteStructureChannel": {
|
|
32668
|
+
"type": "object",
|
|
32669
|
+
"description": "Subscription channel for changes in site structure in an organization.",
|
|
32670
|
+
"properties": {
|
|
32671
|
+
"channel": {
|
|
32672
|
+
"type": "string",
|
|
32673
|
+
"enum": [
|
|
32674
|
+
"site-structure"
|
|
32675
|
+
]
|
|
32676
|
+
},
|
|
32677
|
+
"site": {
|
|
32678
|
+
"type": "string"
|
|
32679
|
+
}
|
|
32680
|
+
},
|
|
32681
|
+
"required": [
|
|
32682
|
+
"channel",
|
|
32683
|
+
"site"
|
|
32684
|
+
]
|
|
32685
|
+
},
|
|
32465
32686
|
"SitePublishingAuthChannel": {
|
|
32466
32687
|
"type": "object",
|
|
32467
32688
|
"properties": {
|
|
@@ -32739,6 +32960,9 @@
|
|
|
32739
32960
|
{
|
|
32740
32961
|
"$ref": "#/components/schemas/SiteSpacesChannel"
|
|
32741
32962
|
},
|
|
32963
|
+
{
|
|
32964
|
+
"$ref": "#/components/schemas/SiteStructureChannel"
|
|
32965
|
+
},
|
|
32742
32966
|
{
|
|
32743
32967
|
"$ref": "#/components/schemas/SitePublishingAuthChannel"
|
|
32744
32968
|
},
|
package/spec/openapi.yaml
CHANGED
|
@@ -7183,27 +7183,7 @@ paths:
|
|
|
7183
7183
|
content:
|
|
7184
7184
|
application/json:
|
|
7185
7185
|
schema:
|
|
7186
|
-
|
|
7187
|
-
- type: object
|
|
7188
|
-
properties:
|
|
7189
|
-
type:
|
|
7190
|
-
type: string
|
|
7191
|
-
enum:
|
|
7192
|
-
- sections
|
|
7193
|
-
structure:
|
|
7194
|
-
type: array
|
|
7195
|
-
items:
|
|
7196
|
-
$ref: "#/components/schemas/SiteSection"
|
|
7197
|
-
- type: object
|
|
7198
|
-
properties:
|
|
7199
|
-
type:
|
|
7200
|
-
type: string
|
|
7201
|
-
enum:
|
|
7202
|
-
- siteSpaces
|
|
7203
|
-
structure:
|
|
7204
|
-
type: array
|
|
7205
|
-
items:
|
|
7206
|
-
$ref: "#/components/schemas/SiteSpace"
|
|
7186
|
+
$ref: "#/components/schemas/SiteStructure"
|
|
7207
7187
|
"404":
|
|
7208
7188
|
description: No matching site found
|
|
7209
7189
|
$ref: "#/components/responses/NotFoundError"
|
|
@@ -7754,17 +7734,51 @@ paths:
|
|
|
7754
7734
|
content:
|
|
7755
7735
|
application/json:
|
|
7756
7736
|
schema:
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7737
|
+
oneOf:
|
|
7738
|
+
- type: object
|
|
7739
|
+
properties:
|
|
7740
|
+
mode:
|
|
7741
|
+
description: Search only in the site spaces provided
|
|
7742
|
+
type: string
|
|
7743
|
+
enum:
|
|
7744
|
+
- specific
|
|
7745
|
+
siteSpaceIds:
|
|
7746
|
+
type: array
|
|
7747
|
+
minLength: 1
|
|
7748
|
+
items:
|
|
7749
|
+
type: string
|
|
7750
|
+
query:
|
|
7751
|
+
type: string
|
|
7752
|
+
required:
|
|
7753
|
+
- siteSpaceIds
|
|
7754
|
+
- query
|
|
7755
|
+
- type: object
|
|
7756
|
+
properties:
|
|
7757
|
+
mode:
|
|
7758
|
+
description: Search in the current site space and all section's defaults
|
|
7759
|
+
type: string
|
|
7760
|
+
enum:
|
|
7761
|
+
- current
|
|
7762
|
+
siteSpaceId:
|
|
7763
|
+
type: string
|
|
7764
|
+
query:
|
|
7765
|
+
type: string
|
|
7766
|
+
required:
|
|
7767
|
+
- mode
|
|
7768
|
+
- siteSpaceId
|
|
7769
|
+
- query
|
|
7770
|
+
- type: object
|
|
7771
|
+
properties:
|
|
7772
|
+
mode:
|
|
7773
|
+
description: search in all site-spaces
|
|
7774
|
+
type: string
|
|
7775
|
+
enum:
|
|
7776
|
+
- all
|
|
7777
|
+
query:
|
|
7778
|
+
type: string
|
|
7779
|
+
required:
|
|
7780
|
+
- mode
|
|
7781
|
+
- query
|
|
7768
7782
|
responses:
|
|
7769
7783
|
"200":
|
|
7770
7784
|
description: OK
|
|
@@ -8222,6 +8236,42 @@ paths:
|
|
|
8222
8236
|
$ref: "#/components/schemas/PageFeedback"
|
|
8223
8237
|
default:
|
|
8224
8238
|
$ref: "#/components/responses/UnexpectedError"
|
|
8239
|
+
"/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move":
|
|
8240
|
+
post:
|
|
8241
|
+
operationId: moveSiteSection
|
|
8242
|
+
summary: Move a site section to a new position in the site.
|
|
8243
|
+
tags:
|
|
8244
|
+
- sites
|
|
8245
|
+
security:
|
|
8246
|
+
- user: []
|
|
8247
|
+
parameters:
|
|
8248
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8249
|
+
- $ref: "#/components/parameters/siteId"
|
|
8250
|
+
- $ref: "#/components/parameters/siteSectionId"
|
|
8251
|
+
requestBody:
|
|
8252
|
+
content:
|
|
8253
|
+
application/json:
|
|
8254
|
+
schema:
|
|
8255
|
+
type: object
|
|
8256
|
+
properties:
|
|
8257
|
+
position:
|
|
8258
|
+
description: The position where to move the site section. When not provided the site section is moved at the end of the site.
|
|
8259
|
+
$ref: "#/components/schemas/SiteSectionMovePosition"
|
|
8260
|
+
responses:
|
|
8261
|
+
"200":
|
|
8262
|
+
description: Site section moved
|
|
8263
|
+
content:
|
|
8264
|
+
application/json:
|
|
8265
|
+
schema:
|
|
8266
|
+
$ref: "#/components/schemas/SiteSection"
|
|
8267
|
+
"400":
|
|
8268
|
+
description: Invalid move site section position provided
|
|
8269
|
+
$ref: "#/components/responses/BadRequestError"
|
|
8270
|
+
"404":
|
|
8271
|
+
description: No matching Site section found
|
|
8272
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8273
|
+
default:
|
|
8274
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8225
8275
|
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move":
|
|
8226
8276
|
post:
|
|
8227
8277
|
operationId: moveSiteSpace
|
|
@@ -12128,6 +12178,40 @@ components:
|
|
|
12128
12178
|
type: number
|
|
12129
12179
|
required:
|
|
12130
12180
|
- yPos
|
|
12181
|
+
AnalyticsFeedbacksPageScore:
|
|
12182
|
+
type: object
|
|
12183
|
+
description: A score breakdown for a specific page.
|
|
12184
|
+
required:
|
|
12185
|
+
- score
|
|
12186
|
+
- total
|
|
12187
|
+
- rating
|
|
12188
|
+
- ponderedScore
|
|
12189
|
+
- bad
|
|
12190
|
+
- ok
|
|
12191
|
+
- good
|
|
12192
|
+
properties:
|
|
12193
|
+
score:
|
|
12194
|
+
type: number
|
|
12195
|
+
description: Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad').
|
|
12196
|
+
total:
|
|
12197
|
+
type: number
|
|
12198
|
+
description: Total number of ratings done by end users.
|
|
12199
|
+
rating:
|
|
12200
|
+
type: string
|
|
12201
|
+
deprecated: true
|
|
12202
|
+
description: Summary of the rating based on the score ('good', 'ok', or 'bad')
|
|
12203
|
+
ponderedScore:
|
|
12204
|
+
type: number
|
|
12205
|
+
description: Score multiplied by the number of ratings to give more importance to highly rated content.
|
|
12206
|
+
bad:
|
|
12207
|
+
type: number
|
|
12208
|
+
description: Number of 'bad' ratings.
|
|
12209
|
+
ok:
|
|
12210
|
+
type: number
|
|
12211
|
+
description: Number of 'ok' ratings.
|
|
12212
|
+
good:
|
|
12213
|
+
type: number
|
|
12214
|
+
description: Number of 'good' ratings.
|
|
12131
12215
|
AnalyticsContentPage:
|
|
12132
12216
|
type: object
|
|
12133
12217
|
description: Page entry in the content analytics.
|
|
@@ -12140,38 +12224,7 @@ components:
|
|
|
12140
12224
|
pageViews:
|
|
12141
12225
|
type: number
|
|
12142
12226
|
feedbacks:
|
|
12143
|
-
|
|
12144
|
-
required:
|
|
12145
|
-
- score
|
|
12146
|
-
- total
|
|
12147
|
-
- rating
|
|
12148
|
-
- ponderedScore
|
|
12149
|
-
- bad
|
|
12150
|
-
- ok
|
|
12151
|
-
- good
|
|
12152
|
-
properties:
|
|
12153
|
-
score:
|
|
12154
|
-
type: number
|
|
12155
|
-
description: Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad').
|
|
12156
|
-
total:
|
|
12157
|
-
type: number
|
|
12158
|
-
description: Total number of ratings done by end users.
|
|
12159
|
-
rating:
|
|
12160
|
-
type: string
|
|
12161
|
-
deprecated: true
|
|
12162
|
-
description: Summary of the rating based on the score ('good', 'ok', or 'bad')
|
|
12163
|
-
ponderedScore:
|
|
12164
|
-
type: number
|
|
12165
|
-
description: Score multiplied by the number of ratings to give more importance to highly rated content.
|
|
12166
|
-
bad:
|
|
12167
|
-
type: number
|
|
12168
|
-
description: Number of 'bad' ratings.
|
|
12169
|
-
ok:
|
|
12170
|
-
type: number
|
|
12171
|
-
description: Number of 'ok' ratings.
|
|
12172
|
-
good:
|
|
12173
|
-
type: number
|
|
12174
|
-
description: Number of 'good' ratings.
|
|
12227
|
+
$ref: "#/components/schemas/AnalyticsFeedbacksPageScore"
|
|
12175
12228
|
AnalyticsContentPages:
|
|
12176
12229
|
type: object
|
|
12177
12230
|
required:
|
|
@@ -13538,6 +13591,28 @@ components:
|
|
|
13538
13591
|
- kind
|
|
13539
13592
|
- organization
|
|
13540
13593
|
- syncedBlock
|
|
13594
|
+
ContentLocationReusableContent:
|
|
13595
|
+
type: object
|
|
13596
|
+
properties:
|
|
13597
|
+
kind:
|
|
13598
|
+
type: string
|
|
13599
|
+
enum:
|
|
13600
|
+
- reusable-content
|
|
13601
|
+
organization:
|
|
13602
|
+
$ref: "#/components/schemas/Organization"
|
|
13603
|
+
space:
|
|
13604
|
+
$ref: "#/components/schemas/Space"
|
|
13605
|
+
versionContext:
|
|
13606
|
+
oneOf:
|
|
13607
|
+
- $ref: "#/components/schemas/ContentLocationRevisionContext"
|
|
13608
|
+
- $ref: "#/components/schemas/ContentLocationChangeRequestContext"
|
|
13609
|
+
reusableContent:
|
|
13610
|
+
$ref: "#/components/schemas/RevisionReusableContent"
|
|
13611
|
+
required:
|
|
13612
|
+
- kind
|
|
13613
|
+
- organization
|
|
13614
|
+
- space
|
|
13615
|
+
- reusableContent
|
|
13541
13616
|
ContentLocation:
|
|
13542
13617
|
description: An absolute reference to content in GitBook.
|
|
13543
13618
|
oneOf:
|
|
@@ -13549,6 +13624,7 @@ components:
|
|
|
13549
13624
|
- $ref: "#/components/schemas/ContentLocationSpace"
|
|
13550
13625
|
- $ref: "#/components/schemas/ContentLocationSnippet"
|
|
13551
13626
|
- $ref: "#/components/schemas/ContentLocationSyncedBlock"
|
|
13627
|
+
- $ref: "#/components/schemas/ContentLocationReusableContent"
|
|
13552
13628
|
discriminator:
|
|
13553
13629
|
propertyName: kind
|
|
13554
13630
|
ContentReferenceStatus:
|
|
@@ -17929,6 +18005,34 @@ components:
|
|
|
17929
18005
|
- path
|
|
17930
18006
|
- siteSpaces
|
|
17931
18007
|
- urls
|
|
18008
|
+
SiteStructure:
|
|
18009
|
+
oneOf:
|
|
18010
|
+
- type: object
|
|
18011
|
+
properties:
|
|
18012
|
+
type:
|
|
18013
|
+
type: string
|
|
18014
|
+
enum:
|
|
18015
|
+
- sections
|
|
18016
|
+
structure:
|
|
18017
|
+
type: array
|
|
18018
|
+
items:
|
|
18019
|
+
$ref: "#/components/schemas/SiteSection"
|
|
18020
|
+
required:
|
|
18021
|
+
- type
|
|
18022
|
+
- structure
|
|
18023
|
+
- type: object
|
|
18024
|
+
properties:
|
|
18025
|
+
type:
|
|
18026
|
+
type: string
|
|
18027
|
+
enum:
|
|
18028
|
+
- siteSpaces
|
|
18029
|
+
structure:
|
|
18030
|
+
type: array
|
|
18031
|
+
items:
|
|
18032
|
+
$ref: "#/components/schemas/SiteSpace"
|
|
18033
|
+
required:
|
|
18034
|
+
- type
|
|
18035
|
+
- structure
|
|
17932
18036
|
SitePublishingAuth:
|
|
17933
18037
|
allOf:
|
|
17934
18038
|
- oneOf:
|
|
@@ -18164,6 +18268,27 @@ components:
|
|
|
18164
18268
|
required:
|
|
18165
18269
|
- script
|
|
18166
18270
|
- cookies
|
|
18271
|
+
SiteSectionPointer:
|
|
18272
|
+
type: object
|
|
18273
|
+
properties:
|
|
18274
|
+
type:
|
|
18275
|
+
type: string
|
|
18276
|
+
enum:
|
|
18277
|
+
- site-section
|
|
18278
|
+
siteSection:
|
|
18279
|
+
type: string
|
|
18280
|
+
description: Unique identifier for the site section
|
|
18281
|
+
required:
|
|
18282
|
+
- type
|
|
18283
|
+
- siteSection
|
|
18284
|
+
SiteSectionMovePosition:
|
|
18285
|
+
type: object
|
|
18286
|
+
description: Position at which to move the site section to.
|
|
18287
|
+
properties:
|
|
18288
|
+
before:
|
|
18289
|
+
$ref: "#/components/schemas/SiteSectionPointer"
|
|
18290
|
+
after:
|
|
18291
|
+
$ref: "#/components/schemas/SiteSectionPointer"
|
|
18167
18292
|
SiteSpacePointer:
|
|
18168
18293
|
type: object
|
|
18169
18294
|
properties:
|
|
@@ -19871,6 +19996,19 @@ components:
|
|
|
19871
19996
|
required:
|
|
19872
19997
|
- channel
|
|
19873
19998
|
- site
|
|
19999
|
+
SiteStructureChannel:
|
|
20000
|
+
type: object
|
|
20001
|
+
description: Subscription channel for changes in site structure in an organization.
|
|
20002
|
+
properties:
|
|
20003
|
+
channel:
|
|
20004
|
+
type: string
|
|
20005
|
+
enum:
|
|
20006
|
+
- site-structure
|
|
20007
|
+
site:
|
|
20008
|
+
type: string
|
|
20009
|
+
required:
|
|
20010
|
+
- channel
|
|
20011
|
+
- site
|
|
19874
20012
|
SitePublishingAuthChannel:
|
|
19875
20013
|
type: object
|
|
19876
20014
|
properties:
|
|
@@ -20006,6 +20144,7 @@ components:
|
|
|
20006
20144
|
- $ref: "#/components/schemas/SiteSpaceChannel"
|
|
20007
20145
|
- $ref: "#/components/schemas/SiteSpaceCustomizationChannel"
|
|
20008
20146
|
- $ref: "#/components/schemas/SiteSpacesChannel"
|
|
20147
|
+
- $ref: "#/components/schemas/SiteStructureChannel"
|
|
20009
20148
|
- $ref: "#/components/schemas/SitePublishingAuthChannel"
|
|
20010
20149
|
- $ref: "#/components/schemas/SiteShareLinksChannel"
|
|
20011
20150
|
- $ref: "#/components/schemas/SiteShareLinkChannel"
|