@gitbook/api 0.183.0 → 0.183.1
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 +83 -7
- package/dist/constants.d.ts +1 -0
- package/dist/index.cjs +15 -1
- package/dist/index.js +13 -1
- package/package.json +1 -1
- package/spec/openapi.json +272 -9
- package/spec/openapi.yaml +169 -5
package/dist/client.d.ts
CHANGED
|
@@ -416,6 +416,15 @@ export declare enum SiteExternalLinksTarget {
|
|
|
416
416
|
Self = "self",
|
|
417
417
|
Blank = "blank"
|
|
418
418
|
}
|
|
419
|
+
/** Type of a built-in page action that can be displayed in the page actions menu of a published page. */
|
|
420
|
+
export declare enum CustomizationPageActionType {
|
|
421
|
+
Assistant = "assistant",
|
|
422
|
+
ExternalAi = "external-ai",
|
|
423
|
+
Markdown = "markdown",
|
|
424
|
+
Mcp = "mcp",
|
|
425
|
+
Git = "git",
|
|
426
|
+
Pdf = "pdf"
|
|
427
|
+
}
|
|
419
428
|
export declare enum CustomizationAIMode {
|
|
420
429
|
None = "none",
|
|
421
430
|
Search = "search",
|
|
@@ -2551,6 +2560,8 @@ export type ComputedContentSourceRevisionOpenAPI = ComputedContentSourceOpenAPIB
|
|
|
2551
2560
|
models: boolean;
|
|
2552
2561
|
/** Whether to show a link to download the OpenAPI spec. */
|
|
2553
2562
|
downloadLink?: boolean;
|
|
2563
|
+
/** How GitBook will group generated pages. "by-tag" groups operations under their tag; "by-operation" creates a separate page per operation. Defaults to "by-tag" when absent. */
|
|
2564
|
+
grouping?: "by-tag" | "by-operation";
|
|
2554
2565
|
};
|
|
2555
2566
|
};
|
|
2556
2567
|
export interface TranslationRef {
|
|
@@ -2686,6 +2697,16 @@ export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIB
|
|
|
2686
2697
|
doc: "operations" | "info";
|
|
2687
2698
|
/** @minLength 1 */
|
|
2688
2699
|
page: string;
|
|
2700
|
+
} | {
|
|
2701
|
+
doc: "operation";
|
|
2702
|
+
/** @minLength 1 */
|
|
2703
|
+
page: string;
|
|
2704
|
+
method: "get" | "post" | "put" | "delete" | "patch" | "options" | "head" | "trace" | "hook";
|
|
2705
|
+
deprecated?: boolean;
|
|
2706
|
+
} | {
|
|
2707
|
+
doc: "tag";
|
|
2708
|
+
/** @minLength 1 */
|
|
2709
|
+
page: string;
|
|
2689
2710
|
};
|
|
2690
2711
|
};
|
|
2691
2712
|
/** Parameters for a document translation computed content source */
|
|
@@ -3917,6 +3938,11 @@ export interface Integration {
|
|
|
3917
3938
|
* @format uri
|
|
3918
3939
|
*/
|
|
3919
3940
|
publicEndpoint: string;
|
|
3941
|
+
/**
|
|
3942
|
+
* Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
3943
|
+
* @format uri
|
|
3944
|
+
*/
|
|
3945
|
+
publicContentEndpoint: string;
|
|
3920
3946
|
};
|
|
3921
3947
|
/** The set of permissions for the integration */
|
|
3922
3948
|
permissions: {
|
|
@@ -4026,6 +4052,11 @@ export interface IntegrationInstallation {
|
|
|
4026
4052
|
* @format uri
|
|
4027
4053
|
*/
|
|
4028
4054
|
publicEndpoint: string;
|
|
4055
|
+
/**
|
|
4056
|
+
* Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
4057
|
+
* @format uri
|
|
4058
|
+
*/
|
|
4059
|
+
publicContentEndpoint: string;
|
|
4029
4060
|
};
|
|
4030
4061
|
/** External IDs assigned by the integration. */
|
|
4031
4062
|
externalIds: IntegrationInstallationExternalIds;
|
|
@@ -4390,6 +4421,11 @@ export interface IntegrationContentInstallationBase {
|
|
|
4390
4421
|
* @format uri
|
|
4391
4422
|
*/
|
|
4392
4423
|
publicEndpoint: string;
|
|
4424
|
+
/**
|
|
4425
|
+
* Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
4426
|
+
* @format uri
|
|
4427
|
+
*/
|
|
4428
|
+
publicContentEndpoint: string;
|
|
4393
4429
|
};
|
|
4394
4430
|
}
|
|
4395
4431
|
export type IntegrationSpaceInstallation = IntegrationContentInstallationBase & {
|
|
@@ -6063,7 +6099,10 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6063
6099
|
toggeable: boolean;
|
|
6064
6100
|
};
|
|
6065
6101
|
pdf: {
|
|
6066
|
-
/**
|
|
6102
|
+
/**
|
|
6103
|
+
* Deprecated: use `pageActions.items` instead. If true, PDF export is enabled for the published site. Kept in sync with the presence of `pdf` in `pageActions.items`.
|
|
6104
|
+
* @deprecated
|
|
6105
|
+
*/
|
|
6067
6106
|
enabled: boolean;
|
|
6068
6107
|
};
|
|
6069
6108
|
feedback: {
|
|
@@ -6080,16 +6119,39 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6080
6119
|
enabled: boolean;
|
|
6081
6120
|
};
|
|
6082
6121
|
git: {
|
|
6083
|
-
/**
|
|
6122
|
+
/**
|
|
6123
|
+
* Deprecated: use `pageActions.items` instead. Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Kept in sync with the presence of `git` in `pageActions.items`.
|
|
6124
|
+
* @deprecated
|
|
6125
|
+
*/
|
|
6084
6126
|
showEditLink: boolean;
|
|
6085
6127
|
};
|
|
6086
6128
|
pageActions: {
|
|
6087
|
-
/**
|
|
6129
|
+
/**
|
|
6130
|
+
* Deprecated: use `items` instead. Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. Kept in sync with the presence of `external-ai` in `items`.
|
|
6131
|
+
* @deprecated
|
|
6132
|
+
*/
|
|
6088
6133
|
externalAI: boolean;
|
|
6089
|
-
/**
|
|
6134
|
+
/**
|
|
6135
|
+
* Deprecated: use `items` instead. Whether the copy and open the markdown version of the page should be available in the page menu. Kept in sync with the presence of `markdown` in `items`.
|
|
6136
|
+
* @deprecated
|
|
6137
|
+
*/
|
|
6090
6138
|
markdown: boolean;
|
|
6091
|
-
/**
|
|
6139
|
+
/**
|
|
6140
|
+
* Deprecated: use `items` instead. Whether an action to connect to the docs using the MCP server should be available in the page menu. Kept in sync with the presence of `mcp` in `items`.
|
|
6141
|
+
* @deprecated
|
|
6142
|
+
*/
|
|
6092
6143
|
mcp: boolean;
|
|
6144
|
+
/**
|
|
6145
|
+
* Ordered list of the page actions enabled in the page menu. This is the source of truth for
|
|
6146
|
+
* which actions are enabled and in which order: the position defines the display order, the
|
|
6147
|
+
* first action is the default one, surfaced as the main button on the page, and actions not
|
|
6148
|
+
* present in the list are disabled. When omitted on input, the deprecated `externalAI`,
|
|
6149
|
+
* `markdown`, `mcp`, `pdf` and `git` flags are used to derive the list. The `assistant` action
|
|
6150
|
+
* is governed by the `ai.mode` setting rather than this list: it is always present (prepended
|
|
6151
|
+
* by default if missing, otherwise keeping its position) when the assistant is enabled, and
|
|
6152
|
+
* always absent when it is disabled.
|
|
6153
|
+
*/
|
|
6154
|
+
items?: CustomizationPageActionType[];
|
|
6093
6155
|
};
|
|
6094
6156
|
externalLinks: {
|
|
6095
6157
|
/**
|
|
@@ -6920,6 +6982,20 @@ export interface AIToolCallUpdateVariables {
|
|
|
6920
6982
|
/** The page whose variables are being updated. Omitted when updating space variables. */
|
|
6921
6983
|
page?: ChangedRevisionPage;
|
|
6922
6984
|
}
|
|
6985
|
+
export interface AIToolCallGetTags {
|
|
6986
|
+
tool: "getTags";
|
|
6987
|
+
/** The ID of the space being accessed. */
|
|
6988
|
+
spaceId: string;
|
|
6989
|
+
/** The revision ID of the space. */
|
|
6990
|
+
revisionId: string;
|
|
6991
|
+
}
|
|
6992
|
+
export interface AIToolCallUpdateTags {
|
|
6993
|
+
tool: "updateTags";
|
|
6994
|
+
/** The ID of the space being edited. */
|
|
6995
|
+
spaceId: string;
|
|
6996
|
+
/** The base revision ID used to compare the change in the current conversation. */
|
|
6997
|
+
baseRevisionId: string;
|
|
6998
|
+
}
|
|
6923
6999
|
export interface AIToolCallCreateChangeRequest {
|
|
6924
7000
|
tool: "createChangeRequest";
|
|
6925
7001
|
/** The ID of the space the change request belongs to. */
|
|
@@ -6990,7 +7066,7 @@ export interface AIToolCallOther {
|
|
|
6990
7066
|
/** Summary of a generic tool call. */
|
|
6991
7067
|
summary: AIToolCallOtherSummary;
|
|
6992
7068
|
}
|
|
6993
|
-
export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallCreateChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
|
|
7069
|
+
export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallGetTags | AIToolCallUpdateTags | AIToolCallCreateChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
|
|
6994
7070
|
export interface Timerange {
|
|
6995
7071
|
start: Timestamp;
|
|
6996
7072
|
end: Timestamp;
|
|
@@ -11735,7 +11811,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11735
11811
|
*/
|
|
11736
11812
|
queueIntegrationTask: (integrationName: string, data: {
|
|
11737
11813
|
/** Payload for the integration task */
|
|
11738
|
-
task:
|
|
11814
|
+
task: Record<string, string>;
|
|
11739
11815
|
/**
|
|
11740
11816
|
* Number of seconds to wait before executing the task, defaults to 0
|
|
11741
11817
|
* @min 0
|
package/dist/constants.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ export declare const CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: ["light", "dark", "s
|
|
|
132
132
|
export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
|
|
133
133
|
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
134
134
|
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
135
|
+
export declare const CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM: ["assistant", "external-ai", "markdown", "mcp", "git", "pdf"];
|
|
135
136
|
export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
|
|
136
137
|
export declare const SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
137
138
|
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
package/dist/index.cjs
CHANGED
|
@@ -254,6 +254,7 @@ __export(src_exports, {
|
|
|
254
254
|
CUSTOMIZATION_ICONS_STYLE_ENUM: () => CUSTOMIZATION_ICONS_STYLE_ENUM,
|
|
255
255
|
CUSTOMIZATION_LINKS_STYLE_ENUM: () => CUSTOMIZATION_LINKS_STYLE_ENUM,
|
|
256
256
|
CUSTOMIZATION_LOCALE_ENUM: () => CUSTOMIZATION_LOCALE_ENUM,
|
|
257
|
+
CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM: () => CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM,
|
|
257
258
|
CUSTOMIZATION_SEARCH_STYLE_ENUM: () => CUSTOMIZATION_SEARCH_STYLE_ENUM,
|
|
258
259
|
CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: () => CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM,
|
|
259
260
|
CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: () => CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM,
|
|
@@ -294,6 +295,7 @@ __export(src_exports, {
|
|
|
294
295
|
CustomizationIconsStyle: () => CustomizationIconsStyle,
|
|
295
296
|
CustomizationLinksStyle: () => CustomizationLinksStyle,
|
|
296
297
|
CustomizationLocale: () => CustomizationLocale,
|
|
298
|
+
CustomizationPageActionType: () => CustomizationPageActionType,
|
|
297
299
|
CustomizationSearchStyle: () => CustomizationSearchStyle,
|
|
298
300
|
CustomizationSidebarBackgroundStyle: () => CustomizationSidebarBackgroundStyle,
|
|
299
301
|
CustomizationSidebarListStyle: () => CustomizationSidebarListStyle,
|
|
@@ -521,7 +523,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
521
523
|
|
|
522
524
|
// package.json
|
|
523
525
|
var name = "@gitbook/api";
|
|
524
|
-
var version = "0.183.
|
|
526
|
+
var version = "0.183.1";
|
|
525
527
|
|
|
526
528
|
// src/client.ts
|
|
527
529
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1045,6 +1047,15 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
|
|
|
1045
1047
|
SiteExternalLinksTarget2["Blank"] = "blank";
|
|
1046
1048
|
return SiteExternalLinksTarget2;
|
|
1047
1049
|
})(SiteExternalLinksTarget || {});
|
|
1050
|
+
var CustomizationPageActionType = /* @__PURE__ */ ((CustomizationPageActionType2) => {
|
|
1051
|
+
CustomizationPageActionType2["Assistant"] = "assistant";
|
|
1052
|
+
CustomizationPageActionType2["ExternalAi"] = "external-ai";
|
|
1053
|
+
CustomizationPageActionType2["Markdown"] = "markdown";
|
|
1054
|
+
CustomizationPageActionType2["Mcp"] = "mcp";
|
|
1055
|
+
CustomizationPageActionType2["Git"] = "git";
|
|
1056
|
+
CustomizationPageActionType2["Pdf"] = "pdf";
|
|
1057
|
+
return CustomizationPageActionType2;
|
|
1058
|
+
})(CustomizationPageActionType || {});
|
|
1048
1059
|
var CustomizationAIMode = /* @__PURE__ */ ((CustomizationAIMode2) => {
|
|
1049
1060
|
CustomizationAIMode2["None"] = "none";
|
|
1050
1061
|
CustomizationAIMode2["Search"] = "search";
|
|
@@ -4818,6 +4829,7 @@ var CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM = ["light", "dark", "system"];
|
|
|
4818
4829
|
var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
4819
4830
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
4820
4831
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
4832
|
+
var CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM = ["assistant", "external-ai", "markdown", "mcp", "git", "pdf"];
|
|
4821
4833
|
var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
|
|
4822
4834
|
var SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM = ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
4823
4835
|
var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
@@ -5038,6 +5050,7 @@ var GitBookAPI = class extends Api {
|
|
|
5038
5050
|
CUSTOMIZATION_ICONS_STYLE_ENUM,
|
|
5039
5051
|
CUSTOMIZATION_LINKS_STYLE_ENUM,
|
|
5040
5052
|
CUSTOMIZATION_LOCALE_ENUM,
|
|
5053
|
+
CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM,
|
|
5041
5054
|
CUSTOMIZATION_SEARCH_STYLE_ENUM,
|
|
5042
5055
|
CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM,
|
|
5043
5056
|
CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM,
|
|
@@ -5078,6 +5091,7 @@ var GitBookAPI = class extends Api {
|
|
|
5078
5091
|
CustomizationIconsStyle,
|
|
5079
5092
|
CustomizationLinksStyle,
|
|
5080
5093
|
CustomizationLocale,
|
|
5094
|
+
CustomizationPageActionType,
|
|
5081
5095
|
CustomizationSearchStyle,
|
|
5082
5096
|
CustomizationSidebarBackgroundStyle,
|
|
5083
5097
|
CustomizationSidebarListStyle,
|
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.183.
|
|
175
|
+
var version = "0.183.1";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -696,6 +696,15 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
|
|
|
696
696
|
SiteExternalLinksTarget2["Blank"] = "blank";
|
|
697
697
|
return SiteExternalLinksTarget2;
|
|
698
698
|
})(SiteExternalLinksTarget || {});
|
|
699
|
+
var CustomizationPageActionType = /* @__PURE__ */ ((CustomizationPageActionType2) => {
|
|
700
|
+
CustomizationPageActionType2["Assistant"] = "assistant";
|
|
701
|
+
CustomizationPageActionType2["ExternalAi"] = "external-ai";
|
|
702
|
+
CustomizationPageActionType2["Markdown"] = "markdown";
|
|
703
|
+
CustomizationPageActionType2["Mcp"] = "mcp";
|
|
704
|
+
CustomizationPageActionType2["Git"] = "git";
|
|
705
|
+
CustomizationPageActionType2["Pdf"] = "pdf";
|
|
706
|
+
return CustomizationPageActionType2;
|
|
707
|
+
})(CustomizationPageActionType || {});
|
|
699
708
|
var CustomizationAIMode = /* @__PURE__ */ ((CustomizationAIMode2) => {
|
|
700
709
|
CustomizationAIMode2["None"] = "none";
|
|
701
710
|
CustomizationAIMode2["Search"] = "search";
|
|
@@ -4469,6 +4478,7 @@ var CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM = ["light", "dark", "system"];
|
|
|
4469
4478
|
var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
4470
4479
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
4471
4480
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
4481
|
+
var CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM = ["assistant", "external-ai", "markdown", "mcp", "git", "pdf"];
|
|
4472
4482
|
var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
|
|
4473
4483
|
var SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM = ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
4474
4484
|
var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
@@ -4688,6 +4698,7 @@ export {
|
|
|
4688
4698
|
CUSTOMIZATION_ICONS_STYLE_ENUM,
|
|
4689
4699
|
CUSTOMIZATION_LINKS_STYLE_ENUM,
|
|
4690
4700
|
CUSTOMIZATION_LOCALE_ENUM,
|
|
4701
|
+
CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM,
|
|
4691
4702
|
CUSTOMIZATION_SEARCH_STYLE_ENUM,
|
|
4692
4703
|
CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM,
|
|
4693
4704
|
CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM,
|
|
@@ -4728,6 +4739,7 @@ export {
|
|
|
4728
4739
|
CustomizationIconsStyle,
|
|
4729
4740
|
CustomizationLinksStyle,
|
|
4730
4741
|
CustomizationLocale,
|
|
4742
|
+
CustomizationPageActionType,
|
|
4731
4743
|
CustomizationSearchStyle,
|
|
4732
4744
|
CustomizationSidebarBackgroundStyle,
|
|
4733
4745
|
CustomizationSidebarListStyle,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -633,6 +633,12 @@
|
|
|
633
633
|
"security": [
|
|
634
634
|
{
|
|
635
635
|
"user": []
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"integration": []
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"integration-installation": []
|
|
636
642
|
}
|
|
637
643
|
],
|
|
638
644
|
"parameters": [
|
|
@@ -1035,6 +1041,12 @@
|
|
|
1035
1041
|
"security": [
|
|
1036
1042
|
{
|
|
1037
1043
|
"user": []
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"integration": []
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"integration-installation": []
|
|
1038
1050
|
}
|
|
1039
1051
|
],
|
|
1040
1052
|
"parameters": [
|
|
@@ -1069,6 +1081,12 @@
|
|
|
1069
1081
|
"security": [
|
|
1070
1082
|
{
|
|
1071
1083
|
"user": []
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"integration": []
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"integration-installation": []
|
|
1072
1090
|
}
|
|
1073
1091
|
],
|
|
1074
1092
|
"parameters": [
|
|
@@ -1487,6 +1505,12 @@
|
|
|
1487
1505
|
"security": [
|
|
1488
1506
|
{
|
|
1489
1507
|
"user": []
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"integration": []
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"integration-installation": []
|
|
1490
1514
|
}
|
|
1491
1515
|
],
|
|
1492
1516
|
"parameters": [
|
|
@@ -4221,6 +4245,12 @@
|
|
|
4221
4245
|
"security": [
|
|
4222
4246
|
{
|
|
4223
4247
|
"user": []
|
|
4248
|
+
},
|
|
4249
|
+
{
|
|
4250
|
+
"integration": []
|
|
4251
|
+
},
|
|
4252
|
+
{
|
|
4253
|
+
"integration-installation": []
|
|
4224
4254
|
}
|
|
4225
4255
|
],
|
|
4226
4256
|
"parameters": [
|
|
@@ -4262,6 +4292,12 @@
|
|
|
4262
4292
|
"security": [
|
|
4263
4293
|
{
|
|
4264
4294
|
"user": []
|
|
4295
|
+
},
|
|
4296
|
+
{
|
|
4297
|
+
"integration": []
|
|
4298
|
+
},
|
|
4299
|
+
{
|
|
4300
|
+
"integration-installation": []
|
|
4265
4301
|
}
|
|
4266
4302
|
],
|
|
4267
4303
|
"parameters": [
|
|
@@ -4469,6 +4505,12 @@
|
|
|
4469
4505
|
"security": [
|
|
4470
4506
|
{
|
|
4471
4507
|
"user": []
|
|
4508
|
+
},
|
|
4509
|
+
{
|
|
4510
|
+
"integration": []
|
|
4511
|
+
},
|
|
4512
|
+
{
|
|
4513
|
+
"integration-installation": []
|
|
4472
4514
|
}
|
|
4473
4515
|
],
|
|
4474
4516
|
"parameters": [
|
|
@@ -6472,6 +6514,9 @@
|
|
|
6472
6514
|
"security": [
|
|
6473
6515
|
{
|
|
6474
6516
|
"integration": []
|
|
6517
|
+
},
|
|
6518
|
+
{
|
|
6519
|
+
"integration-installation": []
|
|
6475
6520
|
}
|
|
6476
6521
|
],
|
|
6477
6522
|
"parameters": [
|
|
@@ -6678,6 +6723,9 @@
|
|
|
6678
6723
|
"security": [
|
|
6679
6724
|
{
|
|
6680
6725
|
"integration": []
|
|
6726
|
+
},
|
|
6727
|
+
{
|
|
6728
|
+
"integration-installation": []
|
|
6681
6729
|
}
|
|
6682
6730
|
],
|
|
6683
6731
|
"parameters": [
|
|
@@ -6996,7 +7044,11 @@
|
|
|
6996
7044
|
"properties": {
|
|
6997
7045
|
"task": {
|
|
6998
7046
|
"type": "object",
|
|
6999
|
-
"description": "Payload for the integration task"
|
|
7047
|
+
"description": "Payload for the integration task",
|
|
7048
|
+
"additionalProperties": {
|
|
7049
|
+
"type": "string",
|
|
7050
|
+
"x-typescript": "unknown"
|
|
7051
|
+
}
|
|
7000
7052
|
},
|
|
7001
7053
|
"schedule": {
|
|
7002
7054
|
"type": "number",
|
|
@@ -7032,6 +7084,12 @@
|
|
|
7032
7084
|
"security": [
|
|
7033
7085
|
{
|
|
7034
7086
|
"user": []
|
|
7087
|
+
},
|
|
7088
|
+
{
|
|
7089
|
+
"integration": []
|
|
7090
|
+
},
|
|
7091
|
+
{
|
|
7092
|
+
"integration-installation": []
|
|
7035
7093
|
}
|
|
7036
7094
|
],
|
|
7037
7095
|
"parameters": [
|
|
@@ -7067,6 +7125,12 @@
|
|
|
7067
7125
|
"security": [
|
|
7068
7126
|
{
|
|
7069
7127
|
"user": []
|
|
7128
|
+
},
|
|
7129
|
+
{
|
|
7130
|
+
"integration": []
|
|
7131
|
+
},
|
|
7132
|
+
{
|
|
7133
|
+
"integration-installation": []
|
|
7070
7134
|
}
|
|
7071
7135
|
],
|
|
7072
7136
|
"parameters": [
|
|
@@ -9223,6 +9287,9 @@
|
|
|
9223
9287
|
"security": [
|
|
9224
9288
|
{
|
|
9225
9289
|
"user": []
|
|
9290
|
+
},
|
|
9291
|
+
{
|
|
9292
|
+
"integration-installation": []
|
|
9226
9293
|
}
|
|
9227
9294
|
],
|
|
9228
9295
|
"parameters": [
|
|
@@ -10104,6 +10171,12 @@
|
|
|
10104
10171
|
"security": [
|
|
10105
10172
|
{
|
|
10106
10173
|
"user": []
|
|
10174
|
+
},
|
|
10175
|
+
{
|
|
10176
|
+
"integration": []
|
|
10177
|
+
},
|
|
10178
|
+
{
|
|
10179
|
+
"integration-installation": []
|
|
10107
10180
|
}
|
|
10108
10181
|
],
|
|
10109
10182
|
"parameters": [
|
|
@@ -11896,6 +11969,12 @@
|
|
|
11896
11969
|
"security": [
|
|
11897
11970
|
{
|
|
11898
11971
|
"user": []
|
|
11972
|
+
},
|
|
11973
|
+
{
|
|
11974
|
+
"integration": []
|
|
11975
|
+
},
|
|
11976
|
+
{
|
|
11977
|
+
"integration-installation": []
|
|
11899
11978
|
}
|
|
11900
11979
|
],
|
|
11901
11980
|
"parameters": [
|
|
@@ -11935,6 +12014,12 @@
|
|
|
11935
12014
|
"security": [
|
|
11936
12015
|
{
|
|
11937
12016
|
"user": []
|
|
12017
|
+
},
|
|
12018
|
+
{
|
|
12019
|
+
"integration": []
|
|
12020
|
+
},
|
|
12021
|
+
{
|
|
12022
|
+
"integration-installation": []
|
|
11938
12023
|
}
|
|
11939
12024
|
],
|
|
11940
12025
|
"parameters": [
|
|
@@ -18991,6 +19076,12 @@
|
|
|
18991
19076
|
"security": [
|
|
18992
19077
|
{
|
|
18993
19078
|
"user": []
|
|
19079
|
+
},
|
|
19080
|
+
{
|
|
19081
|
+
"integration": []
|
|
19082
|
+
},
|
|
19083
|
+
{
|
|
19084
|
+
"integration-installation": []
|
|
18994
19085
|
}
|
|
18995
19086
|
],
|
|
18996
19087
|
"parameters": [
|
|
@@ -19596,6 +19687,18 @@
|
|
|
19596
19687
|
"integration-installation": {
|
|
19597
19688
|
"type": "http",
|
|
19598
19689
|
"scheme": "bearer"
|
|
19690
|
+
},
|
|
19691
|
+
"oauth": {
|
|
19692
|
+
"type": "oauth2",
|
|
19693
|
+
"flows": {
|
|
19694
|
+
"authorizationCode": {
|
|
19695
|
+
"authorizationUrl": "https://oauth.gitbook.com/authorize",
|
|
19696
|
+
"tokenUrl": "https://oauth.gitbook.com/token",
|
|
19697
|
+
"scopes": {
|
|
19698
|
+
"api:read": "Read GitBook API resources."
|
|
19699
|
+
}
|
|
19700
|
+
}
|
|
19701
|
+
}
|
|
19599
19702
|
}
|
|
19600
19703
|
},
|
|
19601
19704
|
"parameters": {
|
|
@@ -26354,6 +26457,14 @@
|
|
|
26354
26457
|
"downloadLink": {
|
|
26355
26458
|
"type": "boolean",
|
|
26356
26459
|
"description": "Whether to show a link to download the OpenAPI spec."
|
|
26460
|
+
},
|
|
26461
|
+
"grouping": {
|
|
26462
|
+
"type": "string",
|
|
26463
|
+
"enum": [
|
|
26464
|
+
"by-tag",
|
|
26465
|
+
"by-operation"
|
|
26466
|
+
],
|
|
26467
|
+
"description": "How GitBook will group generated pages. \"by-tag\" groups operations under their tag; \"by-operation\" creates a separate page per operation. Defaults to \"by-tag\" when absent."
|
|
26357
26468
|
}
|
|
26358
26469
|
},
|
|
26359
26470
|
"required": [
|
|
@@ -26866,6 +26977,62 @@
|
|
|
26866
26977
|
"minLength": 1
|
|
26867
26978
|
}
|
|
26868
26979
|
}
|
|
26980
|
+
},
|
|
26981
|
+
{
|
|
26982
|
+
"type": "object",
|
|
26983
|
+
"required": [
|
|
26984
|
+
"doc",
|
|
26985
|
+
"page",
|
|
26986
|
+
"method"
|
|
26987
|
+
],
|
|
26988
|
+
"properties": {
|
|
26989
|
+
"doc": {
|
|
26990
|
+
"type": "string",
|
|
26991
|
+
"enum": [
|
|
26992
|
+
"operation"
|
|
26993
|
+
]
|
|
26994
|
+
},
|
|
26995
|
+
"page": {
|
|
26996
|
+
"type": "string",
|
|
26997
|
+
"minLength": 1
|
|
26998
|
+
},
|
|
26999
|
+
"method": {
|
|
27000
|
+
"type": "string",
|
|
27001
|
+
"enum": [
|
|
27002
|
+
"get",
|
|
27003
|
+
"post",
|
|
27004
|
+
"put",
|
|
27005
|
+
"delete",
|
|
27006
|
+
"patch",
|
|
27007
|
+
"options",
|
|
27008
|
+
"head",
|
|
27009
|
+
"trace",
|
|
27010
|
+
"hook"
|
|
27011
|
+
]
|
|
27012
|
+
},
|
|
27013
|
+
"deprecated": {
|
|
27014
|
+
"type": "boolean"
|
|
27015
|
+
}
|
|
27016
|
+
}
|
|
27017
|
+
},
|
|
27018
|
+
{
|
|
27019
|
+
"type": "object",
|
|
27020
|
+
"required": [
|
|
27021
|
+
"doc",
|
|
27022
|
+
"page"
|
|
27023
|
+
],
|
|
27024
|
+
"properties": {
|
|
27025
|
+
"doc": {
|
|
27026
|
+
"type": "string",
|
|
27027
|
+
"enum": [
|
|
27028
|
+
"tag"
|
|
27029
|
+
]
|
|
27030
|
+
},
|
|
27031
|
+
"page": {
|
|
27032
|
+
"type": "string",
|
|
27033
|
+
"minLength": 1
|
|
27034
|
+
}
|
|
27035
|
+
}
|
|
26869
27036
|
}
|
|
26870
27037
|
]
|
|
26871
27038
|
}
|
|
@@ -30717,13 +30884,19 @@
|
|
|
30717
30884
|
"type": "string",
|
|
30718
30885
|
"description": "Public HTTP endpoint for the integration",
|
|
30719
30886
|
"format": "uri"
|
|
30887
|
+
},
|
|
30888
|
+
"publicContentEndpoint": {
|
|
30889
|
+
"type": "string",
|
|
30890
|
+
"description": "Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.",
|
|
30891
|
+
"format": "uri"
|
|
30720
30892
|
}
|
|
30721
30893
|
},
|
|
30722
30894
|
"required": [
|
|
30723
30895
|
"location",
|
|
30724
30896
|
"app",
|
|
30725
30897
|
"assets",
|
|
30726
|
-
"publicEndpoint"
|
|
30898
|
+
"publicEndpoint",
|
|
30899
|
+
"publicContentEndpoint"
|
|
30727
30900
|
]
|
|
30728
30901
|
},
|
|
30729
30902
|
"permissions": {
|
|
@@ -30988,12 +31161,18 @@
|
|
|
30988
31161
|
"type": "string",
|
|
30989
31162
|
"description": "Public HTTP endpoint for the integration's installation",
|
|
30990
31163
|
"format": "uri"
|
|
31164
|
+
},
|
|
31165
|
+
"publicContentEndpoint": {
|
|
31166
|
+
"type": "string",
|
|
31167
|
+
"description": "Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.",
|
|
31168
|
+
"format": "uri"
|
|
30991
31169
|
}
|
|
30992
31170
|
},
|
|
30993
31171
|
"required": [
|
|
30994
31172
|
"location",
|
|
30995
31173
|
"app",
|
|
30996
|
-
"publicEndpoint"
|
|
31174
|
+
"publicEndpoint",
|
|
31175
|
+
"publicContentEndpoint"
|
|
30997
31176
|
]
|
|
30998
31177
|
},
|
|
30999
31178
|
"externalIds": {
|
|
@@ -32287,11 +32466,17 @@
|
|
|
32287
32466
|
"type": "string",
|
|
32288
32467
|
"description": "Public HTTP endpoint for the integration's installation",
|
|
32289
32468
|
"format": "uri"
|
|
32469
|
+
},
|
|
32470
|
+
"publicContentEndpoint": {
|
|
32471
|
+
"type": "string",
|
|
32472
|
+
"description": "Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.",
|
|
32473
|
+
"format": "uri"
|
|
32290
32474
|
}
|
|
32291
32475
|
},
|
|
32292
32476
|
"required": [
|
|
32293
32477
|
"location",
|
|
32294
|
-
"publicEndpoint"
|
|
32478
|
+
"publicEndpoint",
|
|
32479
|
+
"publicContentEndpoint"
|
|
32295
32480
|
]
|
|
32296
32481
|
}
|
|
32297
32482
|
},
|
|
@@ -37584,6 +37769,18 @@
|
|
|
37584
37769
|
},
|
|
37585
37770
|
"maxItems": 5
|
|
37586
37771
|
},
|
|
37772
|
+
"CustomizationPageActionType": {
|
|
37773
|
+
"type": "string",
|
|
37774
|
+
"description": "Type of a built-in page action that can be displayed in the page actions menu of a published page.",
|
|
37775
|
+
"enum": [
|
|
37776
|
+
"assistant",
|
|
37777
|
+
"external-ai",
|
|
37778
|
+
"markdown",
|
|
37779
|
+
"mcp",
|
|
37780
|
+
"git",
|
|
37781
|
+
"pdf"
|
|
37782
|
+
]
|
|
37783
|
+
},
|
|
37587
37784
|
"SiteExternalLinksTarget": {
|
|
37588
37785
|
"type": "string",
|
|
37589
37786
|
"description": "How external links should open when clicked.\n- `self`: External links open in the current tab.\n- `blank`: External links open in a new browser tab.\n",
|
|
@@ -37865,7 +38062,8 @@
|
|
|
37865
38062
|
"properties": {
|
|
37866
38063
|
"enabled": {
|
|
37867
38064
|
"type": "boolean",
|
|
37868
|
-
"
|
|
38065
|
+
"deprecated": true,
|
|
38066
|
+
"description": "Deprecated: use `pageActions.items` instead. If true, PDF export is enabled for the published site. Kept in sync with the presence of `pdf` in `pageActions.items`."
|
|
37869
38067
|
}
|
|
37870
38068
|
},
|
|
37871
38069
|
"required": [
|
|
@@ -37915,7 +38113,8 @@
|
|
|
37915
38113
|
"properties": {
|
|
37916
38114
|
"showEditLink": {
|
|
37917
38115
|
"type": "boolean",
|
|
37918
|
-
"
|
|
38116
|
+
"deprecated": true,
|
|
38117
|
+
"description": "Deprecated: use `pageActions.items` instead. Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Kept in sync with the presence of `git` in `pageActions.items`."
|
|
37919
38118
|
}
|
|
37920
38119
|
},
|
|
37921
38120
|
"required": [
|
|
@@ -37927,15 +38126,25 @@
|
|
|
37927
38126
|
"properties": {
|
|
37928
38127
|
"externalAI": {
|
|
37929
38128
|
"type": "boolean",
|
|
37930
|
-
"
|
|
38129
|
+
"deprecated": true,
|
|
38130
|
+
"description": "Deprecated: use `items` instead. Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. Kept in sync with the presence of `external-ai` in `items`."
|
|
37931
38131
|
},
|
|
37932
38132
|
"markdown": {
|
|
37933
38133
|
"type": "boolean",
|
|
37934
|
-
"
|
|
38134
|
+
"deprecated": true,
|
|
38135
|
+
"description": "Deprecated: use `items` instead. Whether the copy and open the markdown version of the page should be available in the page menu. Kept in sync with the presence of `markdown` in `items`."
|
|
37935
38136
|
},
|
|
37936
38137
|
"mcp": {
|
|
37937
38138
|
"type": "boolean",
|
|
37938
|
-
"
|
|
38139
|
+
"deprecated": true,
|
|
38140
|
+
"description": "Deprecated: use `items` instead. Whether an action to connect to the docs using the MCP server should be available in the page menu. Kept in sync with the presence of `mcp` in `items`."
|
|
38141
|
+
},
|
|
38142
|
+
"items": {
|
|
38143
|
+
"type": "array",
|
|
38144
|
+
"description": "Ordered list of the page actions enabled in the page menu. This is the source of truth for\nwhich actions are enabled and in which order: the position defines the display order, the\nfirst action is the default one, surfaced as the main button on the page, and actions not\npresent in the list are disabled. When omitted on input, the deprecated `externalAI`,\n`markdown`, `mcp`, `pdf` and `git` flags are used to derive the list. The `assistant` action\nis governed by the `ai.mode` setting rather than this list: it is always present (prepended\nby default if missing, otherwise keeping its position) when the assistant is enabled, and\nalways absent when it is disabled.\n",
|
|
38145
|
+
"items": {
|
|
38146
|
+
"$ref": "#/components/schemas/CustomizationPageActionType"
|
|
38147
|
+
}
|
|
37939
38148
|
}
|
|
37940
38149
|
},
|
|
37941
38150
|
"required": [
|
|
@@ -40534,6 +40743,54 @@
|
|
|
40534
40743
|
"baseRevisionId"
|
|
40535
40744
|
]
|
|
40536
40745
|
},
|
|
40746
|
+
"AIToolCallGetTags": {
|
|
40747
|
+
"type": "object",
|
|
40748
|
+
"properties": {
|
|
40749
|
+
"tool": {
|
|
40750
|
+
"type": "string",
|
|
40751
|
+
"enum": [
|
|
40752
|
+
"getTags"
|
|
40753
|
+
]
|
|
40754
|
+
},
|
|
40755
|
+
"spaceId": {
|
|
40756
|
+
"type": "string",
|
|
40757
|
+
"description": "The ID of the space being accessed."
|
|
40758
|
+
},
|
|
40759
|
+
"revisionId": {
|
|
40760
|
+
"type": "string",
|
|
40761
|
+
"description": "The revision ID of the space."
|
|
40762
|
+
}
|
|
40763
|
+
},
|
|
40764
|
+
"required": [
|
|
40765
|
+
"tool",
|
|
40766
|
+
"spaceId",
|
|
40767
|
+
"revisionId"
|
|
40768
|
+
]
|
|
40769
|
+
},
|
|
40770
|
+
"AIToolCallUpdateTags": {
|
|
40771
|
+
"type": "object",
|
|
40772
|
+
"properties": {
|
|
40773
|
+
"tool": {
|
|
40774
|
+
"type": "string",
|
|
40775
|
+
"enum": [
|
|
40776
|
+
"updateTags"
|
|
40777
|
+
]
|
|
40778
|
+
},
|
|
40779
|
+
"spaceId": {
|
|
40780
|
+
"type": "string",
|
|
40781
|
+
"description": "The ID of the space being edited."
|
|
40782
|
+
},
|
|
40783
|
+
"baseRevisionId": {
|
|
40784
|
+
"type": "string",
|
|
40785
|
+
"description": "The base revision ID used to compare the change in the current conversation."
|
|
40786
|
+
}
|
|
40787
|
+
},
|
|
40788
|
+
"required": [
|
|
40789
|
+
"tool",
|
|
40790
|
+
"spaceId",
|
|
40791
|
+
"baseRevisionId"
|
|
40792
|
+
]
|
|
40793
|
+
},
|
|
40537
40794
|
"AIToolCallCreateChangeRequest": {
|
|
40538
40795
|
"type": "object",
|
|
40539
40796
|
"properties": {
|
|
@@ -40802,6 +41059,12 @@
|
|
|
40802
41059
|
{
|
|
40803
41060
|
"$ref": "#/components/schemas/AIToolCallUpdateVariables"
|
|
40804
41061
|
},
|
|
41062
|
+
{
|
|
41063
|
+
"$ref": "#/components/schemas/AIToolCallGetTags"
|
|
41064
|
+
},
|
|
41065
|
+
{
|
|
41066
|
+
"$ref": "#/components/schemas/AIToolCallUpdateTags"
|
|
41067
|
+
},
|
|
40805
41068
|
{
|
|
40806
41069
|
"$ref": "#/components/schemas/AIToolCallCreateChangeRequest"
|
|
40807
41070
|
},
|
package/spec/openapi.yaml
CHANGED
|
@@ -622,6 +622,8 @@ paths:
|
|
|
622
622
|
- critical
|
|
623
623
|
security:
|
|
624
624
|
- user: []
|
|
625
|
+
- integration: []
|
|
626
|
+
- integration-installation: []
|
|
625
627
|
parameters:
|
|
626
628
|
- $ref: "#/components/parameters/spaceId"
|
|
627
629
|
- $ref: "#/components/parameters/siteShareKey"
|
|
@@ -850,6 +852,8 @@ paths:
|
|
|
850
852
|
- space-git
|
|
851
853
|
security:
|
|
852
854
|
- user: []
|
|
855
|
+
- integration: []
|
|
856
|
+
- integration-installation: []
|
|
853
857
|
parameters:
|
|
854
858
|
- $ref: "#/components/parameters/spaceId"
|
|
855
859
|
responses:
|
|
@@ -869,6 +873,8 @@ paths:
|
|
|
869
873
|
- space-git
|
|
870
874
|
security:
|
|
871
875
|
- user: []
|
|
876
|
+
- integration: []
|
|
877
|
+
- integration-installation: []
|
|
872
878
|
parameters:
|
|
873
879
|
- $ref: "#/components/parameters/spaceId"
|
|
874
880
|
responses:
|
|
@@ -1102,6 +1108,8 @@ paths:
|
|
|
1102
1108
|
- space-content
|
|
1103
1109
|
security:
|
|
1104
1110
|
- user: []
|
|
1111
|
+
- integration: []
|
|
1112
|
+
- integration-installation: []
|
|
1105
1113
|
parameters:
|
|
1106
1114
|
- $ref: "#/components/parameters/spaceId"
|
|
1107
1115
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -2551,6 +2559,8 @@ paths:
|
|
|
2551
2559
|
- space-content
|
|
2552
2560
|
security:
|
|
2553
2561
|
- user: []
|
|
2562
|
+
- integration: []
|
|
2563
|
+
- integration-installation: []
|
|
2554
2564
|
parameters:
|
|
2555
2565
|
- $ref: "#/components/parameters/spaceId"
|
|
2556
2566
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2572,6 +2582,8 @@ paths:
|
|
|
2572
2582
|
- space-content
|
|
2573
2583
|
security:
|
|
2574
2584
|
- user: []
|
|
2585
|
+
- integration: []
|
|
2586
|
+
- integration-installation: []
|
|
2575
2587
|
parameters:
|
|
2576
2588
|
- $ref: "#/components/parameters/spaceId"
|
|
2577
2589
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2677,6 +2689,8 @@ paths:
|
|
|
2677
2689
|
- space-content
|
|
2678
2690
|
security:
|
|
2679
2691
|
- user: []
|
|
2692
|
+
- integration: []
|
|
2693
|
+
- integration-installation: []
|
|
2680
2694
|
parameters:
|
|
2681
2695
|
- $ref: "#/components/parameters/spaceId"
|
|
2682
2696
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -3736,6 +3750,7 @@ paths:
|
|
|
3736
3750
|
- integrations
|
|
3737
3751
|
security:
|
|
3738
3752
|
- integration: []
|
|
3753
|
+
- integration-installation: []
|
|
3739
3754
|
parameters:
|
|
3740
3755
|
- $ref: "#/components/parameters/integrationName"
|
|
3741
3756
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3849,6 +3864,7 @@ paths:
|
|
|
3849
3864
|
- integrations
|
|
3850
3865
|
security:
|
|
3851
3866
|
- integration: []
|
|
3867
|
+
- integration-installation: []
|
|
3852
3868
|
parameters:
|
|
3853
3869
|
- $ref: "#/components/parameters/integrationName"
|
|
3854
3870
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -4034,6 +4050,9 @@ paths:
|
|
|
4034
4050
|
task:
|
|
4035
4051
|
type: object
|
|
4036
4052
|
description: Payload for the integration task
|
|
4053
|
+
additionalProperties:
|
|
4054
|
+
type: string
|
|
4055
|
+
x-typescript: unknown
|
|
4037
4056
|
schedule:
|
|
4038
4057
|
type: number
|
|
4039
4058
|
description: Number of seconds to wait before executing the task, defaults to 0
|
|
@@ -4054,6 +4073,8 @@ paths:
|
|
|
4054
4073
|
- integrations
|
|
4055
4074
|
security:
|
|
4056
4075
|
- user: []
|
|
4076
|
+
- integration: []
|
|
4077
|
+
- integration-installation: []
|
|
4057
4078
|
parameters:
|
|
4058
4079
|
- $ref: "#/components/parameters/integrationName"
|
|
4059
4080
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4073,6 +4094,8 @@ paths:
|
|
|
4073
4094
|
- integrations
|
|
4074
4095
|
security:
|
|
4075
4096
|
- user: []
|
|
4097
|
+
- integration: []
|
|
4098
|
+
- integration-installation: []
|
|
4076
4099
|
parameters:
|
|
4077
4100
|
- $ref: "#/components/parameters/integrationName"
|
|
4078
4101
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -5275,6 +5298,7 @@ paths:
|
|
|
5275
5298
|
- spaces
|
|
5276
5299
|
security:
|
|
5277
5300
|
- user: []
|
|
5301
|
+
- integration-installation: []
|
|
5278
5302
|
parameters:
|
|
5279
5303
|
- $ref: "#/components/parameters/organizationId"
|
|
5280
5304
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5760,6 +5784,8 @@ paths:
|
|
|
5760
5784
|
- organization-ask
|
|
5761
5785
|
security:
|
|
5762
5786
|
- user: []
|
|
5787
|
+
- integration: []
|
|
5788
|
+
- integration-installation: []
|
|
5763
5789
|
parameters:
|
|
5764
5790
|
- $ref: "#/components/parameters/organizationId"
|
|
5765
5791
|
- name: query
|
|
@@ -6777,6 +6803,8 @@ paths:
|
|
|
6777
6803
|
- sites
|
|
6778
6804
|
security:
|
|
6779
6805
|
- user: []
|
|
6806
|
+
- integration: []
|
|
6807
|
+
- integration-installation: []
|
|
6780
6808
|
parameters:
|
|
6781
6809
|
- $ref: "#/components/parameters/organizationId"
|
|
6782
6810
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -6799,6 +6827,8 @@ paths:
|
|
|
6799
6827
|
- sites
|
|
6800
6828
|
security:
|
|
6801
6829
|
- user: []
|
|
6830
|
+
- integration: []
|
|
6831
|
+
- integration-installation: []
|
|
6802
6832
|
parameters:
|
|
6803
6833
|
- $ref: "#/components/parameters/organizationId"
|
|
6804
6834
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10683,6 +10713,8 @@ paths:
|
|
|
10683
10713
|
- urls
|
|
10684
10714
|
security:
|
|
10685
10715
|
- user: []
|
|
10716
|
+
- integration: []
|
|
10717
|
+
- integration-installation: []
|
|
10686
10718
|
parameters:
|
|
10687
10719
|
- name: url
|
|
10688
10720
|
in: query
|
|
@@ -11047,6 +11079,14 @@ components:
|
|
|
11047
11079
|
integration-installation:
|
|
11048
11080
|
type: http
|
|
11049
11081
|
scheme: bearer
|
|
11082
|
+
oauth:
|
|
11083
|
+
type: oauth2
|
|
11084
|
+
flows:
|
|
11085
|
+
authorizationCode:
|
|
11086
|
+
authorizationUrl: https://oauth.gitbook.com/authorize
|
|
11087
|
+
tokenUrl: https://oauth.gitbook.com/token
|
|
11088
|
+
scopes:
|
|
11089
|
+
api:read: Read GitBook API resources.
|
|
11050
11090
|
parameters:
|
|
11051
11091
|
listPage:
|
|
11052
11092
|
name: page
|
|
@@ -15457,6 +15497,12 @@ components:
|
|
|
15457
15497
|
downloadLink:
|
|
15458
15498
|
type: boolean
|
|
15459
15499
|
description: Whether to show a link to download the OpenAPI spec.
|
|
15500
|
+
grouping:
|
|
15501
|
+
type: string
|
|
15502
|
+
enum:
|
|
15503
|
+
- by-tag
|
|
15504
|
+
- by-operation
|
|
15505
|
+
description: How GitBook will group generated pages. "by-tag" groups operations under their tag; "by-operation" creates a separate page per operation. Defaults to "by-tag" when absent.
|
|
15460
15506
|
required:
|
|
15461
15507
|
- models
|
|
15462
15508
|
TranslationRef:
|
|
@@ -15780,6 +15826,45 @@ components:
|
|
|
15780
15826
|
page:
|
|
15781
15827
|
type: string
|
|
15782
15828
|
minLength: 1
|
|
15829
|
+
- type: object
|
|
15830
|
+
required:
|
|
15831
|
+
- doc
|
|
15832
|
+
- page
|
|
15833
|
+
- method
|
|
15834
|
+
properties:
|
|
15835
|
+
doc:
|
|
15836
|
+
type: string
|
|
15837
|
+
enum:
|
|
15838
|
+
- operation
|
|
15839
|
+
page:
|
|
15840
|
+
type: string
|
|
15841
|
+
minLength: 1
|
|
15842
|
+
method:
|
|
15843
|
+
type: string
|
|
15844
|
+
enum:
|
|
15845
|
+
- get
|
|
15846
|
+
- post
|
|
15847
|
+
- put
|
|
15848
|
+
- delete
|
|
15849
|
+
- patch
|
|
15850
|
+
- options
|
|
15851
|
+
- head
|
|
15852
|
+
- trace
|
|
15853
|
+
- hook
|
|
15854
|
+
deprecated:
|
|
15855
|
+
type: boolean
|
|
15856
|
+
- type: object
|
|
15857
|
+
required:
|
|
15858
|
+
- doc
|
|
15859
|
+
- page
|
|
15860
|
+
properties:
|
|
15861
|
+
doc:
|
|
15862
|
+
type: string
|
|
15863
|
+
enum:
|
|
15864
|
+
- tag
|
|
15865
|
+
page:
|
|
15866
|
+
type: string
|
|
15867
|
+
minLength: 1
|
|
15783
15868
|
ComputedContentSourceDocumentTranslation:
|
|
15784
15869
|
type: object
|
|
15785
15870
|
description: Parameters for a document translation computed content source
|
|
@@ -18401,11 +18486,16 @@ components:
|
|
|
18401
18486
|
type: string
|
|
18402
18487
|
description: Public HTTP endpoint for the integration
|
|
18403
18488
|
format: uri
|
|
18489
|
+
publicContentEndpoint:
|
|
18490
|
+
type: string
|
|
18491
|
+
description: Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
18492
|
+
format: uri
|
|
18404
18493
|
required:
|
|
18405
18494
|
- location
|
|
18406
18495
|
- app
|
|
18407
18496
|
- assets
|
|
18408
18497
|
- publicEndpoint
|
|
18498
|
+
- publicContentEndpoint
|
|
18409
18499
|
permissions:
|
|
18410
18500
|
type: object
|
|
18411
18501
|
description: The set of permissions for the integration
|
|
@@ -18597,10 +18687,15 @@ components:
|
|
|
18597
18687
|
type: string
|
|
18598
18688
|
description: Public HTTP endpoint for the integration's installation
|
|
18599
18689
|
format: uri
|
|
18690
|
+
publicContentEndpoint:
|
|
18691
|
+
type: string
|
|
18692
|
+
description: Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
18693
|
+
format: uri
|
|
18600
18694
|
required:
|
|
18601
18695
|
- location
|
|
18602
18696
|
- app
|
|
18603
18697
|
- publicEndpoint
|
|
18698
|
+
- publicContentEndpoint
|
|
18604
18699
|
externalIds:
|
|
18605
18700
|
$ref: "#/components/schemas/IntegrationInstallationExternalIds"
|
|
18606
18701
|
target:
|
|
@@ -19409,9 +19504,14 @@ components:
|
|
|
19409
19504
|
type: string
|
|
19410
19505
|
description: Public HTTP endpoint for the integration's installation
|
|
19411
19506
|
format: uri
|
|
19507
|
+
publicContentEndpoint:
|
|
19508
|
+
type: string
|
|
19509
|
+
description: Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
19510
|
+
format: uri
|
|
19412
19511
|
required:
|
|
19413
19512
|
- location
|
|
19414
19513
|
- publicEndpoint
|
|
19514
|
+
- publicContentEndpoint
|
|
19415
19515
|
required:
|
|
19416
19516
|
- integration
|
|
19417
19517
|
- installation
|
|
@@ -23044,6 +23144,16 @@ components:
|
|
|
23044
23144
|
items:
|
|
23045
23145
|
$ref: "#/components/schemas/CustomizationSuggestedQuestion"
|
|
23046
23146
|
maxItems: 5
|
|
23147
|
+
CustomizationPageActionType:
|
|
23148
|
+
type: string
|
|
23149
|
+
description: Type of a built-in page action that can be displayed in the page actions menu of a published page.
|
|
23150
|
+
enum:
|
|
23151
|
+
- assistant
|
|
23152
|
+
- external-ai
|
|
23153
|
+
- markdown
|
|
23154
|
+
- mcp
|
|
23155
|
+
- git
|
|
23156
|
+
- pdf
|
|
23047
23157
|
SiteExternalLinksTarget:
|
|
23048
23158
|
type: string
|
|
23049
23159
|
description: |
|
|
@@ -23254,7 +23364,8 @@ components:
|
|
|
23254
23364
|
properties:
|
|
23255
23365
|
enabled:
|
|
23256
23366
|
type: boolean
|
|
23257
|
-
|
|
23367
|
+
deprecated: true
|
|
23368
|
+
description: "Deprecated: use `pageActions.items` instead. If true, PDF export is enabled for the published site. Kept in sync with the presence of `pdf` in `pageActions.items`."
|
|
23258
23369
|
required:
|
|
23259
23370
|
- enabled
|
|
23260
23371
|
feedback:
|
|
@@ -23287,7 +23398,8 @@ components:
|
|
|
23287
23398
|
properties:
|
|
23288
23399
|
showEditLink:
|
|
23289
23400
|
type: boolean
|
|
23290
|
-
|
|
23401
|
+
deprecated: true
|
|
23402
|
+
description: "Deprecated: use `pageActions.items` instead. Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Kept in sync with the presence of `git` in `pageActions.items`."
|
|
23291
23403
|
required:
|
|
23292
23404
|
- showEditLink
|
|
23293
23405
|
pageActions:
|
|
@@ -23295,13 +23407,29 @@ components:
|
|
|
23295
23407
|
properties:
|
|
23296
23408
|
externalAI:
|
|
23297
23409
|
type: boolean
|
|
23298
|
-
|
|
23410
|
+
deprecated: true
|
|
23411
|
+
description: "Deprecated: use `items` instead. Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. Kept in sync with the presence of `external-ai` in `items`."
|
|
23299
23412
|
markdown:
|
|
23300
23413
|
type: boolean
|
|
23301
|
-
|
|
23414
|
+
deprecated: true
|
|
23415
|
+
description: "Deprecated: use `items` instead. Whether the copy and open the markdown version of the page should be available in the page menu. Kept in sync with the presence of `markdown` in `items`."
|
|
23302
23416
|
mcp:
|
|
23303
23417
|
type: boolean
|
|
23304
|
-
|
|
23418
|
+
deprecated: true
|
|
23419
|
+
description: "Deprecated: use `items` instead. Whether an action to connect to the docs using the MCP server should be available in the page menu. Kept in sync with the presence of `mcp` in `items`."
|
|
23420
|
+
items:
|
|
23421
|
+
type: array
|
|
23422
|
+
description: |
|
|
23423
|
+
Ordered list of the page actions enabled in the page menu. This is the source of truth for
|
|
23424
|
+
which actions are enabled and in which order: the position defines the display order, the
|
|
23425
|
+
first action is the default one, surfaced as the main button on the page, and actions not
|
|
23426
|
+
present in the list are disabled. When omitted on input, the deprecated `externalAI`,
|
|
23427
|
+
`markdown`, `mcp`, `pdf` and `git` flags are used to derive the list. The `assistant` action
|
|
23428
|
+
is governed by the `ai.mode` setting rather than this list: it is always present (prepended
|
|
23429
|
+
by default if missing, otherwise keeping its position) when the assistant is enabled, and
|
|
23430
|
+
always absent when it is disabled.
|
|
23431
|
+
items:
|
|
23432
|
+
$ref: "#/components/schemas/CustomizationPageActionType"
|
|
23305
23433
|
required:
|
|
23306
23434
|
- externalAI
|
|
23307
23435
|
- markdown
|
|
@@ -25118,6 +25246,40 @@ components:
|
|
|
25118
25246
|
- tool
|
|
25119
25247
|
- spaceId
|
|
25120
25248
|
- baseRevisionId
|
|
25249
|
+
AIToolCallGetTags:
|
|
25250
|
+
type: object
|
|
25251
|
+
properties:
|
|
25252
|
+
tool:
|
|
25253
|
+
type: string
|
|
25254
|
+
enum:
|
|
25255
|
+
- getTags
|
|
25256
|
+
spaceId:
|
|
25257
|
+
type: string
|
|
25258
|
+
description: The ID of the space being accessed.
|
|
25259
|
+
revisionId:
|
|
25260
|
+
type: string
|
|
25261
|
+
description: The revision ID of the space.
|
|
25262
|
+
required:
|
|
25263
|
+
- tool
|
|
25264
|
+
- spaceId
|
|
25265
|
+
- revisionId
|
|
25266
|
+
AIToolCallUpdateTags:
|
|
25267
|
+
type: object
|
|
25268
|
+
properties:
|
|
25269
|
+
tool:
|
|
25270
|
+
type: string
|
|
25271
|
+
enum:
|
|
25272
|
+
- updateTags
|
|
25273
|
+
spaceId:
|
|
25274
|
+
type: string
|
|
25275
|
+
description: The ID of the space being edited.
|
|
25276
|
+
baseRevisionId:
|
|
25277
|
+
type: string
|
|
25278
|
+
description: The base revision ID used to compare the change in the current conversation.
|
|
25279
|
+
required:
|
|
25280
|
+
- tool
|
|
25281
|
+
- spaceId
|
|
25282
|
+
- baseRevisionId
|
|
25121
25283
|
AIToolCallCreateChangeRequest:
|
|
25122
25284
|
type: object
|
|
25123
25285
|
properties:
|
|
@@ -25292,6 +25454,8 @@ components:
|
|
|
25292
25454
|
- $ref: "#/components/schemas/AIToolCallGetReusableContent"
|
|
25293
25455
|
- $ref: "#/components/schemas/AIToolCallGetVariables"
|
|
25294
25456
|
- $ref: "#/components/schemas/AIToolCallUpdateVariables"
|
|
25457
|
+
- $ref: "#/components/schemas/AIToolCallGetTags"
|
|
25458
|
+
- $ref: "#/components/schemas/AIToolCallUpdateTags"
|
|
25295
25459
|
- $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
|
|
25296
25460
|
- $ref: "#/components/schemas/AIToolCallComment"
|
|
25297
25461
|
- $ref: "#/components/schemas/AIToolCallReplyToComment"
|