@gitbook/api 0.157.0 → 0.159.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -300,6 +300,8 @@ export interface Space {
300
300
  changeRequestsOpen: number;
301
301
  /** Count of draft change requests on the space. */
302
302
  changeRequestsDraft: number;
303
+ /** Whether the space is powered by V2 of the content system. */
304
+ internal_poweredByV2?: boolean;
303
305
  /** The set of permissions for the space */
304
306
  permissions: {
305
307
  /** Can the user view the space content. */
@@ -5179,6 +5181,76 @@ export declare enum CustomizationIconsStyle {
5179
5181
  Light = "light",
5180
5182
  Thin = "thin"
5181
5183
  }
5184
+ export declare enum CustomizationCodeTheme {
5185
+ DefaultLight = "default-light",
5186
+ DefaultDark = "default-dark",
5187
+ MonochromeLight = "monochrome-light",
5188
+ MonochromeDark = "monochrome-dark",
5189
+ Andromeeda = "andromeeda",
5190
+ AuroraX = "aurora-x",
5191
+ AyuDark = "ayu-dark",
5192
+ CatppuccinFrappe = "catppuccin-frappe",
5193
+ CatppuccinLatte = "catppuccin-latte",
5194
+ CatppuccinMacchiato = "catppuccin-macchiato",
5195
+ CatppuccinMocha = "catppuccin-mocha",
5196
+ DarkPlus = "dark-plus",
5197
+ Dracula = "dracula",
5198
+ DraculaSoft = "dracula-soft",
5199
+ EverforestDark = "everforest-dark",
5200
+ EverforestLight = "everforest-light",
5201
+ GithubDark = "github-dark",
5202
+ GithubDarkDefault = "github-dark-default",
5203
+ GithubDarkDimmed = "github-dark-dimmed",
5204
+ GithubDarkHighContrast = "github-dark-high-contrast",
5205
+ GithubLight = "github-light",
5206
+ GithubLightDefault = "github-light-default",
5207
+ GithubLightHighContrast = "github-light-high-contrast",
5208
+ GruvboxDarkHard = "gruvbox-dark-hard",
5209
+ GruvboxDarkMedium = "gruvbox-dark-medium",
5210
+ GruvboxDarkSoft = "gruvbox-dark-soft",
5211
+ GruvboxLightHard = "gruvbox-light-hard",
5212
+ GruvboxLightMedium = "gruvbox-light-medium",
5213
+ GruvboxLightSoft = "gruvbox-light-soft",
5214
+ Houston = "houston",
5215
+ KanagawaDragon = "kanagawa-dragon",
5216
+ KanagawaLotus = "kanagawa-lotus",
5217
+ KanagawaWave = "kanagawa-wave",
5218
+ Laserwave = "laserwave",
5219
+ LightPlus = "light-plus",
5220
+ MaterialTheme = "material-theme",
5221
+ MaterialThemeDarker = "material-theme-darker",
5222
+ MaterialThemeLighter = "material-theme-lighter",
5223
+ MaterialThemeOcean = "material-theme-ocean",
5224
+ MaterialThemePalenight = "material-theme-palenight",
5225
+ MinDark = "min-dark",
5226
+ MinLight = "min-light",
5227
+ Monokai = "monokai",
5228
+ NightOwl = "night-owl",
5229
+ Nord = "nord",
5230
+ OneDarkPro = "one-dark-pro",
5231
+ OneLight = "one-light",
5232
+ Plastic = "plastic",
5233
+ Poimandres = "poimandres",
5234
+ Red = "red",
5235
+ RosePine = "rose-pine",
5236
+ RosePineDawn = "rose-pine-dawn",
5237
+ RosePineMoon = "rose-pine-moon",
5238
+ SlackDark = "slack-dark",
5239
+ SlackOchin = "slack-ochin",
5240
+ SnazzyLight = "snazzy-light",
5241
+ SolarizedDark = "solarized-dark",
5242
+ SolarizedLight = "solarized-light",
5243
+ Synthwave84 = "synthwave-84",
5244
+ TokyoNight = "tokyo-night",
5245
+ Vesper = "vesper",
5246
+ VitesseBlack = "vitesse-black",
5247
+ VitesseDark = "vitesse-dark",
5248
+ VitesseLight = "vitesse-light"
5249
+ }
5250
+ export interface CustomizationThemedCodeTheme {
5251
+ light: CustomizationCodeTheme;
5252
+ dark: CustomizationCodeTheme;
5253
+ }
5182
5254
  /**
5183
5255
  * - `default`: No background, content sits directly against sidebar edge.
5184
5256
  * - `filled`: Muted background color that extends to sidebar edges.
@@ -5296,6 +5368,44 @@ export declare enum SiteExternalLinksTarget {
5296
5368
  Self = "self",
5297
5369
  Blank = "blank"
5298
5370
  }
5371
+ /** The platform of the social handle. */
5372
+ export declare enum SiteSocialAccountPlatform {
5373
+ Twitter = "twitter",
5374
+ Instagram = "instagram",
5375
+ Facebook = "facebook",
5376
+ Linkedin = "linkedin",
5377
+ Github = "github",
5378
+ Discord = "discord",
5379
+ Slack = "slack",
5380
+ Youtube = "youtube",
5381
+ Tiktok = "tiktok",
5382
+ Reddit = "reddit",
5383
+ Bluesky = "bluesky",
5384
+ Mastodon = "mastodon",
5385
+ Threads = "threads",
5386
+ Medium = "medium"
5387
+ }
5388
+ /**
5389
+ * A handle on a social platform, without prefixes like the @ symbol.
5390
+ * @minLength 1
5391
+ * @maxLength 128
5392
+ */
5393
+ export type SiteSocialAccountHandle = string;
5394
+ export interface SiteSocialAccount {
5395
+ /** The platform of the social handle. */
5396
+ platform: SiteSocialAccountPlatform;
5397
+ /** A handle on a social platform, without prefixes like the @ symbol. */
5398
+ handle: SiteSocialAccountHandle;
5399
+ display: {
5400
+ /** @default true */
5401
+ footer: boolean;
5402
+ };
5403
+ }
5404
+ /**
5405
+ * The social accounts of the site.
5406
+ * @maxItems 10
5407
+ */
5408
+ export type SiteSocialAccounts = SiteSocialAccount[];
5299
5409
  export interface SiteCustomizationSettings {
5300
5410
  /** Title to use for the published site. If not defined, it'll fallback to the default content title. */
5301
5411
  title?: SiteTitle;
@@ -5335,6 +5445,10 @@ export interface SiteCustomizationSettings {
5335
5445
  */
5336
5446
  background: CustomizationBackground;
5337
5447
  icons: CustomizationIconsStyle;
5448
+ codeTheme: {
5449
+ default: CustomizationThemedCodeTheme;
5450
+ openapi: CustomizationThemedCodeTheme;
5451
+ };
5338
5452
  sidebar: {
5339
5453
  /**
5340
5454
  * - `default`: No background, content sits directly against sidebar edge.
@@ -5443,6 +5557,8 @@ export interface SiteCustomizationSettings {
5443
5557
  socialPreview: {
5444
5558
  url?: URL;
5445
5559
  };
5560
+ /** The social accounts of the site. */
5561
+ socialAccounts: SiteSocialAccounts;
5446
5562
  insights: {
5447
5563
  /**
5448
5564
  * Whether GitBook identifies the visitor on the site using a cookie.
@@ -12397,6 +12513,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12397
12513
  * @max 1000
12398
12514
  */
12399
12515
  limit?: number;
12516
+ /** Search share links by name or key */
12517
+ search?: string;
12400
12518
  }, params?: RequestParams) => Promise<HttpResponse<List & {
12401
12519
  items: ShareLink[];
12402
12520
  }, any>>;
@@ -13002,6 +13120,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13002
13120
  search?: CustomizationSearchStyle | null;
13003
13121
  /** The style of background to use. Set to null to reset the override. */
13004
13122
  background?: CustomizationBackground | null;
13123
+ /** The code theme to use. Set to null to reset the override. */
13124
+ codeTheme?: {
13125
+ default?: CustomizationThemedCodeTheme | null;
13126
+ openapi?: CustomizationThemedCodeTheme | null;
13127
+ };
13005
13128
  };
13006
13129
  /** @deprecated */
13007
13130
  internationalization?: {
@@ -114,6 +114,7 @@ export declare const CUSTOMIZATION_DEFAULT_FONT_ENUM: ["ABCFavorit", "Inter", "R
114
114
  export declare const CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM: ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
115
115
  export declare const CUSTOMIZATION_BACKGROUND_ENUM: ["plain", "match"];
116
116
  export declare const CUSTOMIZATION_ICONS_STYLE_ENUM: ["regular", "solid", "duotone", "light", "thin"];
117
+ export declare const CUSTOMIZATION_CODE_THEME_ENUM: ["default-light", "default-dark", "monochrome-light", "monochrome-dark", "andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
117
118
  export declare const CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: ["default", "filled"];
118
119
  export declare const CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: ["default", "pill", "line"];
119
120
  export declare const CUSTOMIZATION_SEARCH_STYLE_ENUM: ["prominent", "subtle"];
@@ -127,6 +128,9 @@ export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
127
128
  export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
128
129
  export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
129
130
  export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
131
+ export declare const SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
132
+ export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
133
+ export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
130
134
  export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
131
135
  export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
132
136
  export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
package/dist/index.cjs CHANGED
@@ -227,6 +227,7 @@ __export(src_exports, {
227
227
  CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
228
228
  CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
229
229
  CUSTOMIZATION_BACKGROUND_ENUM: () => CUSTOMIZATION_BACKGROUND_ENUM,
230
+ CUSTOMIZATION_CODE_THEME_ENUM: () => CUSTOMIZATION_CODE_THEME_ENUM,
230
231
  CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH: () => CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH,
231
232
  CUSTOMIZATION_CORNERS_ENUM: () => CUSTOMIZATION_CORNERS_ENUM,
232
233
  CUSTOMIZATION_DEFAULT_FONT_ENUM: () => CUSTOMIZATION_DEFAULT_FONT_ENUM,
@@ -264,6 +265,7 @@ __export(src_exports, {
264
265
  CustomHostnameSslStatus: () => CustomHostnameSslStatus,
265
266
  CustomizationAIMode: () => CustomizationAIMode,
266
267
  CustomizationBackground: () => CustomizationBackground,
268
+ CustomizationCodeTheme: () => CustomizationCodeTheme,
267
269
  CustomizationCorners: () => CustomizationCorners,
268
270
  CustomizationDefaultFont: () => CustomizationDefaultFont,
269
271
  CustomizationDefaultMonospaceFont: () => CustomizationDefaultMonospaceFont,
@@ -401,6 +403,9 @@ __export(src_exports, {
401
403
  SITE_SECTION_PATH_MIN_LENGTH: () => SITE_SECTION_PATH_MIN_LENGTH,
402
404
  SITE_SECTION_TITLE_MAX_LENGTH: () => SITE_SECTION_TITLE_MAX_LENGTH,
403
405
  SITE_SECTION_TITLE_MIN_LENGTH: () => SITE_SECTION_TITLE_MIN_LENGTH,
406
+ SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH: () => SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH,
407
+ SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH: () => SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH,
408
+ SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: () => SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM,
404
409
  SITE_SPACE_PATH_MAX_LENGTH: () => SITE_SPACE_PATH_MAX_LENGTH,
405
410
  SITE_SPACE_PATH_MIN_LENGTH: () => SITE_SPACE_PATH_MIN_LENGTH,
406
411
  SITE_TITLE_MAX_LENGTH: () => SITE_TITLE_MAX_LENGTH,
@@ -429,6 +434,7 @@ __export(src_exports, {
429
434
  SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
430
435
  SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
431
436
  SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
437
+ SiteSocialAccountPlatform: () => SiteSocialAccountPlatform,
432
438
  SiteType: () => SiteType,
433
439
  SiteVisibility: () => SiteVisibility,
434
440
  SpaceEditMode: () => SpaceEditMode,
@@ -449,7 +455,7 @@ module.exports = __toCommonJS(src_exports);
449
455
 
450
456
  // package.json
451
457
  var name = "@gitbook/api";
452
- var version = "0.157.0";
458
+ var version = "0.159.0";
453
459
 
454
460
  // src/client.ts
455
461
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1043,6 +1049,73 @@ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
1043
1049
  CustomizationIconsStyle2["Thin"] = "thin";
1044
1050
  return CustomizationIconsStyle2;
1045
1051
  })(CustomizationIconsStyle || {});
1052
+ var CustomizationCodeTheme = /* @__PURE__ */ ((CustomizationCodeTheme2) => {
1053
+ CustomizationCodeTheme2["DefaultLight"] = "default-light";
1054
+ CustomizationCodeTheme2["DefaultDark"] = "default-dark";
1055
+ CustomizationCodeTheme2["MonochromeLight"] = "monochrome-light";
1056
+ CustomizationCodeTheme2["MonochromeDark"] = "monochrome-dark";
1057
+ CustomizationCodeTheme2["Andromeeda"] = "andromeeda";
1058
+ CustomizationCodeTheme2["AuroraX"] = "aurora-x";
1059
+ CustomizationCodeTheme2["AyuDark"] = "ayu-dark";
1060
+ CustomizationCodeTheme2["CatppuccinFrappe"] = "catppuccin-frappe";
1061
+ CustomizationCodeTheme2["CatppuccinLatte"] = "catppuccin-latte";
1062
+ CustomizationCodeTheme2["CatppuccinMacchiato"] = "catppuccin-macchiato";
1063
+ CustomizationCodeTheme2["CatppuccinMocha"] = "catppuccin-mocha";
1064
+ CustomizationCodeTheme2["DarkPlus"] = "dark-plus";
1065
+ CustomizationCodeTheme2["Dracula"] = "dracula";
1066
+ CustomizationCodeTheme2["DraculaSoft"] = "dracula-soft";
1067
+ CustomizationCodeTheme2["EverforestDark"] = "everforest-dark";
1068
+ CustomizationCodeTheme2["EverforestLight"] = "everforest-light";
1069
+ CustomizationCodeTheme2["GithubDark"] = "github-dark";
1070
+ CustomizationCodeTheme2["GithubDarkDefault"] = "github-dark-default";
1071
+ CustomizationCodeTheme2["GithubDarkDimmed"] = "github-dark-dimmed";
1072
+ CustomizationCodeTheme2["GithubDarkHighContrast"] = "github-dark-high-contrast";
1073
+ CustomizationCodeTheme2["GithubLight"] = "github-light";
1074
+ CustomizationCodeTheme2["GithubLightDefault"] = "github-light-default";
1075
+ CustomizationCodeTheme2["GithubLightHighContrast"] = "github-light-high-contrast";
1076
+ CustomizationCodeTheme2["GruvboxDarkHard"] = "gruvbox-dark-hard";
1077
+ CustomizationCodeTheme2["GruvboxDarkMedium"] = "gruvbox-dark-medium";
1078
+ CustomizationCodeTheme2["GruvboxDarkSoft"] = "gruvbox-dark-soft";
1079
+ CustomizationCodeTheme2["GruvboxLightHard"] = "gruvbox-light-hard";
1080
+ CustomizationCodeTheme2["GruvboxLightMedium"] = "gruvbox-light-medium";
1081
+ CustomizationCodeTheme2["GruvboxLightSoft"] = "gruvbox-light-soft";
1082
+ CustomizationCodeTheme2["Houston"] = "houston";
1083
+ CustomizationCodeTheme2["KanagawaDragon"] = "kanagawa-dragon";
1084
+ CustomizationCodeTheme2["KanagawaLotus"] = "kanagawa-lotus";
1085
+ CustomizationCodeTheme2["KanagawaWave"] = "kanagawa-wave";
1086
+ CustomizationCodeTheme2["Laserwave"] = "laserwave";
1087
+ CustomizationCodeTheme2["LightPlus"] = "light-plus";
1088
+ CustomizationCodeTheme2["MaterialTheme"] = "material-theme";
1089
+ CustomizationCodeTheme2["MaterialThemeDarker"] = "material-theme-darker";
1090
+ CustomizationCodeTheme2["MaterialThemeLighter"] = "material-theme-lighter";
1091
+ CustomizationCodeTheme2["MaterialThemeOcean"] = "material-theme-ocean";
1092
+ CustomizationCodeTheme2["MaterialThemePalenight"] = "material-theme-palenight";
1093
+ CustomizationCodeTheme2["MinDark"] = "min-dark";
1094
+ CustomizationCodeTheme2["MinLight"] = "min-light";
1095
+ CustomizationCodeTheme2["Monokai"] = "monokai";
1096
+ CustomizationCodeTheme2["NightOwl"] = "night-owl";
1097
+ CustomizationCodeTheme2["Nord"] = "nord";
1098
+ CustomizationCodeTheme2["OneDarkPro"] = "one-dark-pro";
1099
+ CustomizationCodeTheme2["OneLight"] = "one-light";
1100
+ CustomizationCodeTheme2["Plastic"] = "plastic";
1101
+ CustomizationCodeTheme2["Poimandres"] = "poimandres";
1102
+ CustomizationCodeTheme2["Red"] = "red";
1103
+ CustomizationCodeTheme2["RosePine"] = "rose-pine";
1104
+ CustomizationCodeTheme2["RosePineDawn"] = "rose-pine-dawn";
1105
+ CustomizationCodeTheme2["RosePineMoon"] = "rose-pine-moon";
1106
+ CustomizationCodeTheme2["SlackDark"] = "slack-dark";
1107
+ CustomizationCodeTheme2["SlackOchin"] = "slack-ochin";
1108
+ CustomizationCodeTheme2["SnazzyLight"] = "snazzy-light";
1109
+ CustomizationCodeTheme2["SolarizedDark"] = "solarized-dark";
1110
+ CustomizationCodeTheme2["SolarizedLight"] = "solarized-light";
1111
+ CustomizationCodeTheme2["Synthwave84"] = "synthwave-84";
1112
+ CustomizationCodeTheme2["TokyoNight"] = "tokyo-night";
1113
+ CustomizationCodeTheme2["Vesper"] = "vesper";
1114
+ CustomizationCodeTheme2["VitesseBlack"] = "vitesse-black";
1115
+ CustomizationCodeTheme2["VitesseDark"] = "vitesse-dark";
1116
+ CustomizationCodeTheme2["VitesseLight"] = "vitesse-light";
1117
+ return CustomizationCodeTheme2;
1118
+ })(CustomizationCodeTheme || {});
1046
1119
  var CustomizationSidebarBackgroundStyle = /* @__PURE__ */ ((CustomizationSidebarBackgroundStyle2) => {
1047
1120
  CustomizationSidebarBackgroundStyle2["Default"] = "default";
1048
1121
  CustomizationSidebarBackgroundStyle2["Filled"] = "filled";
@@ -1096,6 +1169,23 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
1096
1169
  SiteExternalLinksTarget2["Blank"] = "blank";
1097
1170
  return SiteExternalLinksTarget2;
1098
1171
  })(SiteExternalLinksTarget || {});
1172
+ var SiteSocialAccountPlatform = /* @__PURE__ */ ((SiteSocialAccountPlatform2) => {
1173
+ SiteSocialAccountPlatform2["Twitter"] = "twitter";
1174
+ SiteSocialAccountPlatform2["Instagram"] = "instagram";
1175
+ SiteSocialAccountPlatform2["Facebook"] = "facebook";
1176
+ SiteSocialAccountPlatform2["Linkedin"] = "linkedin";
1177
+ SiteSocialAccountPlatform2["Github"] = "github";
1178
+ SiteSocialAccountPlatform2["Discord"] = "discord";
1179
+ SiteSocialAccountPlatform2["Slack"] = "slack";
1180
+ SiteSocialAccountPlatform2["Youtube"] = "youtube";
1181
+ SiteSocialAccountPlatform2["Tiktok"] = "tiktok";
1182
+ SiteSocialAccountPlatform2["Reddit"] = "reddit";
1183
+ SiteSocialAccountPlatform2["Bluesky"] = "bluesky";
1184
+ SiteSocialAccountPlatform2["Mastodon"] = "mastodon";
1185
+ SiteSocialAccountPlatform2["Threads"] = "threads";
1186
+ SiteSocialAccountPlatform2["Medium"] = "medium";
1187
+ return SiteSocialAccountPlatform2;
1188
+ })(SiteSocialAccountPlatform || {});
1099
1189
  var AIModel = /* @__PURE__ */ ((AIModel2) => {
1100
1190
  AIModel2["Fast"] = "fast";
1101
1191
  AIModel2["ReasoningLow"] = "reasoning-low";
@@ -4114,6 +4204,7 @@ var CUSTOMIZATION_DEFAULT_FONT_ENUM = ["ABCFavorit", "Inter", "Roboto", "RobotoS
4114
4204
  var CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM = ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
4115
4205
  var CUSTOMIZATION_BACKGROUND_ENUM = ["plain", "match"];
4116
4206
  var CUSTOMIZATION_ICONS_STYLE_ENUM = ["regular", "solid", "duotone", "light", "thin"];
4207
+ var CUSTOMIZATION_CODE_THEME_ENUM = ["default-light", "default-dark", "monochrome-light", "monochrome-dark", "andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
4117
4208
  var CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM = ["default", "filled"];
4118
4209
  var CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM = ["default", "pill", "line"];
4119
4210
  var CUSTOMIZATION_SEARCH_STYLE_ENUM = ["prominent", "subtle"];
@@ -4127,6 +4218,9 @@ var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
4127
4218
  var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
4128
4219
  var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
4129
4220
  var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
4221
+ var SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM = ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
4222
+ var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
4223
+ var SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
4130
4224
  var SHARE_LINK_NAME_MAX_LENGTH = 50;
4131
4225
  var SHARE_LINK_NAME_MIN_LENGTH = 0;
4132
4226
  var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
@@ -4281,6 +4375,7 @@ var GitBookAPI = class extends Api {
4281
4375
  CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
4282
4376
  CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
4283
4377
  CUSTOMIZATION_BACKGROUND_ENUM,
4378
+ CUSTOMIZATION_CODE_THEME_ENUM,
4284
4379
  CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH,
4285
4380
  CUSTOMIZATION_CORNERS_ENUM,
4286
4381
  CUSTOMIZATION_DEFAULT_FONT_ENUM,
@@ -4318,6 +4413,7 @@ var GitBookAPI = class extends Api {
4318
4413
  CustomHostnameSslStatus,
4319
4414
  CustomizationAIMode,
4320
4415
  CustomizationBackground,
4416
+ CustomizationCodeTheme,
4321
4417
  CustomizationCorners,
4322
4418
  CustomizationDefaultFont,
4323
4419
  CustomizationDefaultMonospaceFont,
@@ -4455,6 +4551,9 @@ var GitBookAPI = class extends Api {
4455
4551
  SITE_SECTION_PATH_MIN_LENGTH,
4456
4552
  SITE_SECTION_TITLE_MAX_LENGTH,
4457
4553
  SITE_SECTION_TITLE_MIN_LENGTH,
4554
+ SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH,
4555
+ SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH,
4556
+ SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM,
4458
4557
  SITE_SPACE_PATH_MAX_LENGTH,
4459
4558
  SITE_SPACE_PATH_MIN_LENGTH,
4460
4559
  SITE_TITLE_MAX_LENGTH,
@@ -4483,6 +4582,7 @@ var GitBookAPI = class extends Api {
4483
4582
  SiteInsightsVisitorBrowser,
4484
4583
  SiteInsightsVisitorDevice,
4485
4584
  SiteInsightsVisitorOS,
4585
+ SiteSocialAccountPlatform,
4486
4586
  SiteType,
4487
4587
  SiteVisibility,
4488
4588
  SpaceEditMode,
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.157.0";
175
+ var version = "0.159.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -766,6 +766,73 @@ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
766
766
  CustomizationIconsStyle2["Thin"] = "thin";
767
767
  return CustomizationIconsStyle2;
768
768
  })(CustomizationIconsStyle || {});
769
+ var CustomizationCodeTheme = /* @__PURE__ */ ((CustomizationCodeTheme2) => {
770
+ CustomizationCodeTheme2["DefaultLight"] = "default-light";
771
+ CustomizationCodeTheme2["DefaultDark"] = "default-dark";
772
+ CustomizationCodeTheme2["MonochromeLight"] = "monochrome-light";
773
+ CustomizationCodeTheme2["MonochromeDark"] = "monochrome-dark";
774
+ CustomizationCodeTheme2["Andromeeda"] = "andromeeda";
775
+ CustomizationCodeTheme2["AuroraX"] = "aurora-x";
776
+ CustomizationCodeTheme2["AyuDark"] = "ayu-dark";
777
+ CustomizationCodeTheme2["CatppuccinFrappe"] = "catppuccin-frappe";
778
+ CustomizationCodeTheme2["CatppuccinLatte"] = "catppuccin-latte";
779
+ CustomizationCodeTheme2["CatppuccinMacchiato"] = "catppuccin-macchiato";
780
+ CustomizationCodeTheme2["CatppuccinMocha"] = "catppuccin-mocha";
781
+ CustomizationCodeTheme2["DarkPlus"] = "dark-plus";
782
+ CustomizationCodeTheme2["Dracula"] = "dracula";
783
+ CustomizationCodeTheme2["DraculaSoft"] = "dracula-soft";
784
+ CustomizationCodeTheme2["EverforestDark"] = "everforest-dark";
785
+ CustomizationCodeTheme2["EverforestLight"] = "everforest-light";
786
+ CustomizationCodeTheme2["GithubDark"] = "github-dark";
787
+ CustomizationCodeTheme2["GithubDarkDefault"] = "github-dark-default";
788
+ CustomizationCodeTheme2["GithubDarkDimmed"] = "github-dark-dimmed";
789
+ CustomizationCodeTheme2["GithubDarkHighContrast"] = "github-dark-high-contrast";
790
+ CustomizationCodeTheme2["GithubLight"] = "github-light";
791
+ CustomizationCodeTheme2["GithubLightDefault"] = "github-light-default";
792
+ CustomizationCodeTheme2["GithubLightHighContrast"] = "github-light-high-contrast";
793
+ CustomizationCodeTheme2["GruvboxDarkHard"] = "gruvbox-dark-hard";
794
+ CustomizationCodeTheme2["GruvboxDarkMedium"] = "gruvbox-dark-medium";
795
+ CustomizationCodeTheme2["GruvboxDarkSoft"] = "gruvbox-dark-soft";
796
+ CustomizationCodeTheme2["GruvboxLightHard"] = "gruvbox-light-hard";
797
+ CustomizationCodeTheme2["GruvboxLightMedium"] = "gruvbox-light-medium";
798
+ CustomizationCodeTheme2["GruvboxLightSoft"] = "gruvbox-light-soft";
799
+ CustomizationCodeTheme2["Houston"] = "houston";
800
+ CustomizationCodeTheme2["KanagawaDragon"] = "kanagawa-dragon";
801
+ CustomizationCodeTheme2["KanagawaLotus"] = "kanagawa-lotus";
802
+ CustomizationCodeTheme2["KanagawaWave"] = "kanagawa-wave";
803
+ CustomizationCodeTheme2["Laserwave"] = "laserwave";
804
+ CustomizationCodeTheme2["LightPlus"] = "light-plus";
805
+ CustomizationCodeTheme2["MaterialTheme"] = "material-theme";
806
+ CustomizationCodeTheme2["MaterialThemeDarker"] = "material-theme-darker";
807
+ CustomizationCodeTheme2["MaterialThemeLighter"] = "material-theme-lighter";
808
+ CustomizationCodeTheme2["MaterialThemeOcean"] = "material-theme-ocean";
809
+ CustomizationCodeTheme2["MaterialThemePalenight"] = "material-theme-palenight";
810
+ CustomizationCodeTheme2["MinDark"] = "min-dark";
811
+ CustomizationCodeTheme2["MinLight"] = "min-light";
812
+ CustomizationCodeTheme2["Monokai"] = "monokai";
813
+ CustomizationCodeTheme2["NightOwl"] = "night-owl";
814
+ CustomizationCodeTheme2["Nord"] = "nord";
815
+ CustomizationCodeTheme2["OneDarkPro"] = "one-dark-pro";
816
+ CustomizationCodeTheme2["OneLight"] = "one-light";
817
+ CustomizationCodeTheme2["Plastic"] = "plastic";
818
+ CustomizationCodeTheme2["Poimandres"] = "poimandres";
819
+ CustomizationCodeTheme2["Red"] = "red";
820
+ CustomizationCodeTheme2["RosePine"] = "rose-pine";
821
+ CustomizationCodeTheme2["RosePineDawn"] = "rose-pine-dawn";
822
+ CustomizationCodeTheme2["RosePineMoon"] = "rose-pine-moon";
823
+ CustomizationCodeTheme2["SlackDark"] = "slack-dark";
824
+ CustomizationCodeTheme2["SlackOchin"] = "slack-ochin";
825
+ CustomizationCodeTheme2["SnazzyLight"] = "snazzy-light";
826
+ CustomizationCodeTheme2["SolarizedDark"] = "solarized-dark";
827
+ CustomizationCodeTheme2["SolarizedLight"] = "solarized-light";
828
+ CustomizationCodeTheme2["Synthwave84"] = "synthwave-84";
829
+ CustomizationCodeTheme2["TokyoNight"] = "tokyo-night";
830
+ CustomizationCodeTheme2["Vesper"] = "vesper";
831
+ CustomizationCodeTheme2["VitesseBlack"] = "vitesse-black";
832
+ CustomizationCodeTheme2["VitesseDark"] = "vitesse-dark";
833
+ CustomizationCodeTheme2["VitesseLight"] = "vitesse-light";
834
+ return CustomizationCodeTheme2;
835
+ })(CustomizationCodeTheme || {});
769
836
  var CustomizationSidebarBackgroundStyle = /* @__PURE__ */ ((CustomizationSidebarBackgroundStyle2) => {
770
837
  CustomizationSidebarBackgroundStyle2["Default"] = "default";
771
838
  CustomizationSidebarBackgroundStyle2["Filled"] = "filled";
@@ -819,6 +886,23 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
819
886
  SiteExternalLinksTarget2["Blank"] = "blank";
820
887
  return SiteExternalLinksTarget2;
821
888
  })(SiteExternalLinksTarget || {});
889
+ var SiteSocialAccountPlatform = /* @__PURE__ */ ((SiteSocialAccountPlatform2) => {
890
+ SiteSocialAccountPlatform2["Twitter"] = "twitter";
891
+ SiteSocialAccountPlatform2["Instagram"] = "instagram";
892
+ SiteSocialAccountPlatform2["Facebook"] = "facebook";
893
+ SiteSocialAccountPlatform2["Linkedin"] = "linkedin";
894
+ SiteSocialAccountPlatform2["Github"] = "github";
895
+ SiteSocialAccountPlatform2["Discord"] = "discord";
896
+ SiteSocialAccountPlatform2["Slack"] = "slack";
897
+ SiteSocialAccountPlatform2["Youtube"] = "youtube";
898
+ SiteSocialAccountPlatform2["Tiktok"] = "tiktok";
899
+ SiteSocialAccountPlatform2["Reddit"] = "reddit";
900
+ SiteSocialAccountPlatform2["Bluesky"] = "bluesky";
901
+ SiteSocialAccountPlatform2["Mastodon"] = "mastodon";
902
+ SiteSocialAccountPlatform2["Threads"] = "threads";
903
+ SiteSocialAccountPlatform2["Medium"] = "medium";
904
+ return SiteSocialAccountPlatform2;
905
+ })(SiteSocialAccountPlatform || {});
822
906
  var AIModel = /* @__PURE__ */ ((AIModel2) => {
823
907
  AIModel2["Fast"] = "fast";
824
908
  AIModel2["ReasoningLow"] = "reasoning-low";
@@ -3837,6 +3921,7 @@ var CUSTOMIZATION_DEFAULT_FONT_ENUM = ["ABCFavorit", "Inter", "Roboto", "RobotoS
3837
3921
  var CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM = ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
3838
3922
  var CUSTOMIZATION_BACKGROUND_ENUM = ["plain", "match"];
3839
3923
  var CUSTOMIZATION_ICONS_STYLE_ENUM = ["regular", "solid", "duotone", "light", "thin"];
3924
+ var CUSTOMIZATION_CODE_THEME_ENUM = ["default-light", "default-dark", "monochrome-light", "monochrome-dark", "andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
3840
3925
  var CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM = ["default", "filled"];
3841
3926
  var CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM = ["default", "pill", "line"];
3842
3927
  var CUSTOMIZATION_SEARCH_STYLE_ENUM = ["prominent", "subtle"];
@@ -3850,6 +3935,9 @@ var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
3850
3935
  var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
3851
3936
  var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
3852
3937
  var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
3938
+ var SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM = ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
3939
+ var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
3940
+ var SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
3853
3941
  var SHARE_LINK_NAME_MAX_LENGTH = 50;
3854
3942
  var SHARE_LINK_NAME_MIN_LENGTH = 0;
3855
3943
  var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
@@ -4003,6 +4091,7 @@ export {
4003
4091
  CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
4004
4092
  CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
4005
4093
  CUSTOMIZATION_BACKGROUND_ENUM,
4094
+ CUSTOMIZATION_CODE_THEME_ENUM,
4006
4095
  CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH,
4007
4096
  CUSTOMIZATION_CORNERS_ENUM,
4008
4097
  CUSTOMIZATION_DEFAULT_FONT_ENUM,
@@ -4040,6 +4129,7 @@ export {
4040
4129
  CustomHostnameSslStatus,
4041
4130
  CustomizationAIMode,
4042
4131
  CustomizationBackground,
4132
+ CustomizationCodeTheme,
4043
4133
  CustomizationCorners,
4044
4134
  CustomizationDefaultFont,
4045
4135
  CustomizationDefaultMonospaceFont,
@@ -4177,6 +4267,9 @@ export {
4177
4267
  SITE_SECTION_PATH_MIN_LENGTH,
4178
4268
  SITE_SECTION_TITLE_MAX_LENGTH,
4179
4269
  SITE_SECTION_TITLE_MIN_LENGTH,
4270
+ SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH,
4271
+ SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH,
4272
+ SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM,
4180
4273
  SITE_SPACE_PATH_MAX_LENGTH,
4181
4274
  SITE_SPACE_PATH_MIN_LENGTH,
4182
4275
  SITE_TITLE_MAX_LENGTH,
@@ -4205,6 +4298,7 @@ export {
4205
4298
  SiteInsightsVisitorBrowser,
4206
4299
  SiteInsightsVisitorDevice,
4207
4300
  SiteInsightsVisitorOS,
4301
+ SiteSocialAccountPlatform,
4208
4302
  SiteType,
4209
4303
  SiteVisibility,
4210
4304
  SpaceEditMode,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.157.0",
7
+ "version": "0.159.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -12704,6 +12704,14 @@
12704
12704
  },
12705
12705
  {
12706
12706
  "$ref": "#/components/parameters/listLimit"
12707
+ },
12708
+ {
12709
+ "name": "search",
12710
+ "in": "query",
12711
+ "description": "Search share links by name or key",
12712
+ "schema": {
12713
+ "type": "string"
12714
+ }
12707
12715
  }
12708
12716
  ],
12709
12717
  "responses": {
@@ -14811,6 +14819,40 @@
14811
14819
  ]
14812
14820
  }
14813
14821
  ]
14822
+ },
14823
+ "codeTheme": {
14824
+ "description": "The code theme to use. Set to null to reset the override.",
14825
+ "type": "object",
14826
+ "properties": {
14827
+ "default": {
14828
+ "oneOf": [
14829
+ {
14830
+ "$ref": "#/components/schemas/CustomizationThemedCodeTheme"
14831
+ },
14832
+ {
14833
+ "type": "string",
14834
+ "nullable": true,
14835
+ "enum": [
14836
+ null
14837
+ ]
14838
+ }
14839
+ ]
14840
+ },
14841
+ "openapi": {
14842
+ "oneOf": [
14843
+ {
14844
+ "$ref": "#/components/schemas/CustomizationThemedCodeTheme"
14845
+ },
14846
+ {
14847
+ "type": "string",
14848
+ "nullable": true,
14849
+ "enum": [
14850
+ null
14851
+ ]
14852
+ }
14853
+ ]
14854
+ }
14855
+ }
14814
14856
  }
14815
14857
  }
14816
14858
  },
@@ -18120,6 +18162,10 @@
18120
18162
  "type": "number",
18121
18163
  "description": "Count of draft change requests on the space."
18122
18164
  },
18165
+ "internal_poweredByV2": {
18166
+ "type": "boolean",
18167
+ "description": "Whether the space is powered by V2 of the content system."
18168
+ },
18123
18169
  "permissions": {
18124
18170
  "type": "object",
18125
18171
  "description": "The set of permissions for the space",
@@ -34145,6 +34191,90 @@
34145
34191
  "thin"
34146
34192
  ]
34147
34193
  },
34194
+ "CustomizationCodeTheme": {
34195
+ "type": "string",
34196
+ "enum": [
34197
+ "default-light",
34198
+ "default-dark",
34199
+ "monochrome-light",
34200
+ "monochrome-dark",
34201
+ "andromeeda",
34202
+ "aurora-x",
34203
+ "ayu-dark",
34204
+ "catppuccin-frappe",
34205
+ "catppuccin-latte",
34206
+ "catppuccin-macchiato",
34207
+ "catppuccin-mocha",
34208
+ "dark-plus",
34209
+ "dracula",
34210
+ "dracula-soft",
34211
+ "everforest-dark",
34212
+ "everforest-light",
34213
+ "github-dark",
34214
+ "github-dark-default",
34215
+ "github-dark-dimmed",
34216
+ "github-dark-high-contrast",
34217
+ "github-light",
34218
+ "github-light-default",
34219
+ "github-light-high-contrast",
34220
+ "gruvbox-dark-hard",
34221
+ "gruvbox-dark-medium",
34222
+ "gruvbox-dark-soft",
34223
+ "gruvbox-light-hard",
34224
+ "gruvbox-light-medium",
34225
+ "gruvbox-light-soft",
34226
+ "houston",
34227
+ "kanagawa-dragon",
34228
+ "kanagawa-lotus",
34229
+ "kanagawa-wave",
34230
+ "laserwave",
34231
+ "light-plus",
34232
+ "material-theme",
34233
+ "material-theme-darker",
34234
+ "material-theme-lighter",
34235
+ "material-theme-ocean",
34236
+ "material-theme-palenight",
34237
+ "min-dark",
34238
+ "min-light",
34239
+ "monokai",
34240
+ "night-owl",
34241
+ "nord",
34242
+ "one-dark-pro",
34243
+ "one-light",
34244
+ "plastic",
34245
+ "poimandres",
34246
+ "red",
34247
+ "rose-pine",
34248
+ "rose-pine-dawn",
34249
+ "rose-pine-moon",
34250
+ "slack-dark",
34251
+ "slack-ochin",
34252
+ "snazzy-light",
34253
+ "solarized-dark",
34254
+ "solarized-light",
34255
+ "synthwave-84",
34256
+ "tokyo-night",
34257
+ "vesper",
34258
+ "vitesse-black",
34259
+ "vitesse-dark",
34260
+ "vitesse-light"
34261
+ ]
34262
+ },
34263
+ "CustomizationThemedCodeTheme": {
34264
+ "type": "object",
34265
+ "properties": {
34266
+ "light": {
34267
+ "$ref": "#/components/schemas/CustomizationCodeTheme"
34268
+ },
34269
+ "dark": {
34270
+ "$ref": "#/components/schemas/CustomizationCodeTheme"
34271
+ }
34272
+ },
34273
+ "required": [
34274
+ "light",
34275
+ "dark"
34276
+ ]
34277
+ },
34148
34278
  "CustomizationSidebarBackgroundStyle": {
34149
34279
  "type": "string",
34150
34280
  "description": "- `default`: No background, content sits directly against sidebar edge.\n- `filled`: Muted background color that extends to sidebar edges.\n",
@@ -34354,6 +34484,68 @@
34354
34484
  "blank"
34355
34485
  ]
34356
34486
  },
34487
+ "SiteSocialAccountPlatform": {
34488
+ "description": "The platform of the social handle.",
34489
+ "type": "string",
34490
+ "enum": [
34491
+ "twitter",
34492
+ "instagram",
34493
+ "facebook",
34494
+ "linkedin",
34495
+ "github",
34496
+ "discord",
34497
+ "slack",
34498
+ "youtube",
34499
+ "tiktok",
34500
+ "reddit",
34501
+ "bluesky",
34502
+ "mastodon",
34503
+ "threads",
34504
+ "medium"
34505
+ ]
34506
+ },
34507
+ "SiteSocialAccountHandle": {
34508
+ "description": "A handle on a social platform, without prefixes like the @ symbol.",
34509
+ "type": "string",
34510
+ "minLength": 1,
34511
+ "maxLength": 128
34512
+ },
34513
+ "SiteSocialAccount": {
34514
+ "type": "object",
34515
+ "properties": {
34516
+ "platform": {
34517
+ "$ref": "#/components/schemas/SiteSocialAccountPlatform"
34518
+ },
34519
+ "handle": {
34520
+ "$ref": "#/components/schemas/SiteSocialAccountHandle"
34521
+ },
34522
+ "display": {
34523
+ "type": "object",
34524
+ "properties": {
34525
+ "footer": {
34526
+ "type": "boolean",
34527
+ "default": true
34528
+ }
34529
+ },
34530
+ "required": [
34531
+ "footer"
34532
+ ]
34533
+ }
34534
+ },
34535
+ "required": [
34536
+ "platform",
34537
+ "handle",
34538
+ "display"
34539
+ ]
34540
+ },
34541
+ "SiteSocialAccounts": {
34542
+ "type": "array",
34543
+ "description": "The social accounts of the site.",
34544
+ "items": {
34545
+ "$ref": "#/components/schemas/SiteSocialAccount"
34546
+ },
34547
+ "maxItems": 10
34548
+ },
34357
34549
  "SiteCustomizationSettings": {
34358
34550
  "type": "object",
34359
34551
  "properties": {
@@ -34407,6 +34599,21 @@
34407
34599
  "icons": {
34408
34600
  "$ref": "#/components/schemas/CustomizationIconsStyle"
34409
34601
  },
34602
+ "codeTheme": {
34603
+ "type": "object",
34604
+ "properties": {
34605
+ "default": {
34606
+ "$ref": "#/components/schemas/CustomizationThemedCodeTheme"
34607
+ },
34608
+ "openapi": {
34609
+ "$ref": "#/components/schemas/CustomizationThemedCodeTheme"
34610
+ }
34611
+ },
34612
+ "required": [
34613
+ "default",
34614
+ "openapi"
34615
+ ]
34616
+ },
34410
34617
  "sidebar": {
34411
34618
  "type": "object",
34412
34619
  "properties": {
@@ -34438,6 +34645,7 @@
34438
34645
  "links",
34439
34646
  "font",
34440
34647
  "monospaceFont",
34648
+ "codeTheme",
34441
34649
  "background",
34442
34650
  "icons",
34443
34651
  "sidebar",
@@ -34670,6 +34878,9 @@
34670
34878
  }
34671
34879
  }
34672
34880
  },
34881
+ "socialAccounts": {
34882
+ "$ref": "#/components/schemas/SiteSocialAccounts"
34883
+ },
34673
34884
  "insights": {
34674
34885
  "type": "object",
34675
34886
  "properties": {
@@ -34702,6 +34913,7 @@
34702
34913
  "git",
34703
34914
  "privacyPolicy",
34704
34915
  "socialPreview",
34916
+ "socialAccounts",
34705
34917
  "insights"
34706
34918
  ]
34707
34919
  },
package/spec/openapi.yaml CHANGED
@@ -7219,6 +7219,11 @@ paths:
7219
7219
  - $ref: "#/components/parameters/siteId"
7220
7220
  - $ref: "#/components/parameters/listPage"
7221
7221
  - $ref: "#/components/parameters/listLimit"
7222
+ - name: search
7223
+ in: query
7224
+ description: Search share links by name or key
7225
+ schema:
7226
+ type: string
7222
7227
  responses:
7223
7228
  "200":
7224
7229
  description: OK
@@ -8375,6 +8380,24 @@ paths:
8375
8380
  nullable: true
8376
8381
  enum:
8377
8382
  - null
8383
+ codeTheme:
8384
+ description: The code theme to use. Set to null to reset the override.
8385
+ type: object
8386
+ properties:
8387
+ default:
8388
+ oneOf:
8389
+ - $ref: "#/components/schemas/CustomizationThemedCodeTheme"
8390
+ - type: string
8391
+ nullable: true
8392
+ enum:
8393
+ - null
8394
+ openapi:
8395
+ oneOf:
8396
+ - $ref: "#/components/schemas/CustomizationThemedCodeTheme"
8397
+ - type: string
8398
+ nullable: true
8399
+ enum:
8400
+ - null
8378
8401
  internationalization:
8379
8402
  type: object
8380
8403
  deprecated: true
@@ -10496,6 +10519,9 @@ components:
10496
10519
  changeRequestsDraft:
10497
10520
  type: number
10498
10521
  description: Count of draft change requests on the space.
10522
+ internal_poweredByV2:
10523
+ type: boolean
10524
+ description: Whether the space is powered by V2 of the content system.
10499
10525
  permissions:
10500
10526
  type: object
10501
10527
  description: The set of permissions for the space
@@ -21035,6 +21061,83 @@ components:
21035
21061
  - duotone
21036
21062
  - light
21037
21063
  - thin
21064
+ CustomizationCodeTheme:
21065
+ type: string
21066
+ enum:
21067
+ - default-light
21068
+ - default-dark
21069
+ - monochrome-light
21070
+ - monochrome-dark
21071
+ - andromeeda
21072
+ - aurora-x
21073
+ - ayu-dark
21074
+ - catppuccin-frappe
21075
+ - catppuccin-latte
21076
+ - catppuccin-macchiato
21077
+ - catppuccin-mocha
21078
+ - dark-plus
21079
+ - dracula
21080
+ - dracula-soft
21081
+ - everforest-dark
21082
+ - everforest-light
21083
+ - github-dark
21084
+ - github-dark-default
21085
+ - github-dark-dimmed
21086
+ - github-dark-high-contrast
21087
+ - github-light
21088
+ - github-light-default
21089
+ - github-light-high-contrast
21090
+ - gruvbox-dark-hard
21091
+ - gruvbox-dark-medium
21092
+ - gruvbox-dark-soft
21093
+ - gruvbox-light-hard
21094
+ - gruvbox-light-medium
21095
+ - gruvbox-light-soft
21096
+ - houston
21097
+ - kanagawa-dragon
21098
+ - kanagawa-lotus
21099
+ - kanagawa-wave
21100
+ - laserwave
21101
+ - light-plus
21102
+ - material-theme
21103
+ - material-theme-darker
21104
+ - material-theme-lighter
21105
+ - material-theme-ocean
21106
+ - material-theme-palenight
21107
+ - min-dark
21108
+ - min-light
21109
+ - monokai
21110
+ - night-owl
21111
+ - nord
21112
+ - one-dark-pro
21113
+ - one-light
21114
+ - plastic
21115
+ - poimandres
21116
+ - red
21117
+ - rose-pine
21118
+ - rose-pine-dawn
21119
+ - rose-pine-moon
21120
+ - slack-dark
21121
+ - slack-ochin
21122
+ - snazzy-light
21123
+ - solarized-dark
21124
+ - solarized-light
21125
+ - synthwave-84
21126
+ - tokyo-night
21127
+ - vesper
21128
+ - vitesse-black
21129
+ - vitesse-dark
21130
+ - vitesse-light
21131
+ CustomizationThemedCodeTheme:
21132
+ type: object
21133
+ properties:
21134
+ light:
21135
+ $ref: "#/components/schemas/CustomizationCodeTheme"
21136
+ dark:
21137
+ $ref: "#/components/schemas/CustomizationCodeTheme"
21138
+ required:
21139
+ - light
21140
+ - dark
21038
21141
  CustomizationSidebarBackgroundStyle:
21039
21142
  type: string
21040
21143
  description: |
@@ -21199,6 +21302,54 @@ components:
21199
21302
  enum:
21200
21303
  - self
21201
21304
  - blank
21305
+ SiteSocialAccountPlatform:
21306
+ description: The platform of the social handle.
21307
+ type: string
21308
+ enum:
21309
+ - twitter
21310
+ - instagram
21311
+ - facebook
21312
+ - linkedin
21313
+ - github
21314
+ - discord
21315
+ - slack
21316
+ - youtube
21317
+ - tiktok
21318
+ - reddit
21319
+ - bluesky
21320
+ - mastodon
21321
+ - threads
21322
+ - medium
21323
+ SiteSocialAccountHandle:
21324
+ description: A handle on a social platform, without prefixes like the @ symbol.
21325
+ type: string
21326
+ minLength: 1
21327
+ maxLength: 128
21328
+ SiteSocialAccount:
21329
+ type: object
21330
+ properties:
21331
+ platform:
21332
+ $ref: "#/components/schemas/SiteSocialAccountPlatform"
21333
+ handle:
21334
+ $ref: "#/components/schemas/SiteSocialAccountHandle"
21335
+ display:
21336
+ type: object
21337
+ properties:
21338
+ footer:
21339
+ type: boolean
21340
+ default: true
21341
+ required:
21342
+ - footer
21343
+ required:
21344
+ - platform
21345
+ - handle
21346
+ - display
21347
+ SiteSocialAccounts:
21348
+ type: array
21349
+ description: The social accounts of the site.
21350
+ items:
21351
+ $ref: "#/components/schemas/SiteSocialAccount"
21352
+ maxItems: 10
21202
21353
  SiteCustomizationSettings:
21203
21354
  type: object
21204
21355
  properties:
@@ -21237,6 +21388,16 @@ components:
21237
21388
  $ref: "#/components/schemas/CustomizationBackground"
21238
21389
  icons:
21239
21390
  $ref: "#/components/schemas/CustomizationIconsStyle"
21391
+ codeTheme:
21392
+ type: object
21393
+ properties:
21394
+ default:
21395
+ $ref: "#/components/schemas/CustomizationThemedCodeTheme"
21396
+ openapi:
21397
+ $ref: "#/components/schemas/CustomizationThemedCodeTheme"
21398
+ required:
21399
+ - default
21400
+ - openapi
21240
21401
  sidebar:
21241
21402
  type: object
21242
21403
  properties:
@@ -21261,6 +21422,7 @@ components:
21261
21422
  - links
21262
21423
  - font
21263
21424
  - monospaceFont
21425
+ - codeTheme
21264
21426
  - background
21265
21427
  - icons
21266
21428
  - sidebar
@@ -21419,6 +21581,8 @@ components:
21419
21581
  properties:
21420
21582
  url:
21421
21583
  $ref: "#/components/schemas/URL"
21584
+ socialAccounts:
21585
+ $ref: "#/components/schemas/SiteSocialAccounts"
21422
21586
  insights:
21423
21587
  type: object
21424
21588
  properties:
@@ -21446,6 +21610,7 @@ components:
21446
21610
  - git
21447
21611
  - privacyPolicy
21448
21612
  - socialPreview
21613
+ - socialAccounts
21449
21614
  - insights
21450
21615
  SiteIntegrationScript:
21451
21616
  type: object