@gitbook/api 0.149.0 → 0.150.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
@@ -1329,9 +1329,10 @@ export interface DocumentBlockUpdates {
1329
1329
  key?: string;
1330
1330
  nodes: DocumentBlockUpdate[];
1331
1331
  isVoid?: false;
1332
- data?: {
1332
+ data: {
1333
1333
  /** @default "full" */
1334
- format?: 'numeric' | 'full';
1334
+ format: 'numeric' | 'full' | 'short';
1335
+ sticky: boolean;
1335
1336
  };
1336
1337
  }
1337
1338
  export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn | DocumentBlockUpdates | DocumentBlockUpdate;
@@ -3486,6 +3487,7 @@ export declare enum SiteFeatureKey {
3486
3487
  /** A list of all premium customizations. */
3487
3488
  export declare enum SiteCustomizationFeature {
3488
3489
  HeaderLogo = "header-logo",
3490
+ HeaderPrimaryLink = "header-primary-link",
3489
3491
  ThemePreset = "theme-preset",
3490
3492
  PremiumFonts = "premium-fonts",
3491
3493
  CustomIcons = "custom-icons",
@@ -5272,6 +5274,8 @@ export interface SiteCustomizationSettings {
5272
5274
  /** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
5273
5275
  preset: CustomizationHeaderPreset;
5274
5276
  logo?: CustomizationThemedURL;
5277
+ /** Destination to open when visitors click the site title/logo in the header. */
5278
+ primaryLink?: ContentRef;
5275
5279
  /**
5276
5280
  * Color of the background in the header. This value is now deprecated in favour of the new theming colors.
5277
5281
  * @deprecated
@@ -12770,6 +12774,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12770
12774
  preset?: CustomizationHeaderPreset | null;
12771
12775
  /** The header logo to use. Set to null to reset the override. */
12772
12776
  logo?: CustomizationThemedURL | null;
12777
+ /** The destination to open when visitors click the site title/logo in the header. Set to null to reset the override. */
12778
+ primaryLink?: ContentRef | null;
12773
12779
  /** The background color used in the header. Set to null to reset the override. */
12774
12780
  backgroundColor?: CustomizationThemedColor | null;
12775
12781
  /** The color used by the links in the header. Set to null to reset the override. */
@@ -74,7 +74,7 @@ export declare const SITE_VISIBILITY_ENUM: ["public", "unlisted", "share-link",
74
74
  export declare const SITE_ADS_TOPIC_ENUM: ["webdev", "crypto"];
75
75
  export declare const SITE_AGENTS_CONTEXT_ENUM: ["excluded", "included"];
76
76
  export declare const SITE_FEATURE_KEY_ENUM: ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
77
- export declare const SITE_CUSTOMIZATION_FEATURE_ENUM: ["header-logo", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
77
+ export declare const SITE_CUSTOMIZATION_FEATURE_ENUM: ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
78
78
  export declare const CONTENT_KIT_ICON_ENUM: ["close", "edit", "github", "gitlab", "maximize", "email", "settings", "search", "delete", "star", "warning", "link", "link-external", "eye", "eye-off", "lock", "check", "check-circle"];
79
79
  export declare const SITE_SECTION_TITLE_MAX_LENGTH = 128;
80
80
  export declare const SITE_SECTION_TITLE_MIN_LENGTH = 2;
package/dist/index.cjs CHANGED
@@ -441,7 +441,7 @@ module.exports = __toCommonJS(src_exports);
441
441
 
442
442
  // package.json
443
443
  var name = "@gitbook/api";
444
- var version = "0.149.0";
444
+ var version = "0.150.0";
445
445
 
446
446
  // src/client.ts
447
447
  var import_event_iterator = __toESM(require_node(), 1);
@@ -907,6 +907,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
907
907
  })(SiteFeatureKey || {});
908
908
  var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
909
909
  SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
910
+ SiteCustomizationFeature2["HeaderPrimaryLink"] = "header-primary-link";
910
911
  SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
911
912
  SiteCustomizationFeature2["PremiumFonts"] = "premium-fonts";
912
913
  SiteCustomizationFeature2["CustomIcons"] = "custom-icons";
@@ -4059,7 +4060,7 @@ var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
4059
4060
  var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
4060
4061
  var SITE_AGENTS_CONTEXT_ENUM = ["excluded", "included"];
4061
4062
  var SITE_FEATURE_KEY_ENUM = ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
4062
- var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
4063
+ var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
4063
4064
  var CONTENT_KIT_ICON_ENUM = ["close", "edit", "github", "gitlab", "maximize", "email", "settings", "search", "delete", "star", "warning", "link", "link-external", "eye", "eye-off", "lock", "check", "check-circle"];
4064
4065
  var SITE_SECTION_TITLE_MAX_LENGTH = 128;
4065
4066
  var SITE_SECTION_TITLE_MIN_LENGTH = 2;
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.149.0";
175
+ var version = "0.150.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -638,6 +638,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
638
638
  })(SiteFeatureKey || {});
639
639
  var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
640
640
  SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
641
+ SiteCustomizationFeature2["HeaderPrimaryLink"] = "header-primary-link";
641
642
  SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
642
643
  SiteCustomizationFeature2["PremiumFonts"] = "premium-fonts";
643
644
  SiteCustomizationFeature2["CustomIcons"] = "custom-icons";
@@ -3790,7 +3791,7 @@ var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
3790
3791
  var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
3791
3792
  var SITE_AGENTS_CONTEXT_ENUM = ["excluded", "included"];
3792
3793
  var SITE_FEATURE_KEY_ENUM = ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
3793
- var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
3794
+ var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
3794
3795
  var CONTENT_KIT_ICON_ENUM = ["close", "edit", "github", "gitlab", "maximize", "email", "settings", "search", "delete", "star", "warning", "link", "link-external", "eye", "eye-off", "lock", "check", "check-circle"];
3795
3796
  var SITE_SECTION_TITLE_MAX_LENGTH = 128;
3796
3797
  var SITE_SECTION_TITLE_MIN_LENGTH = 2;
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.149.0",
7
+ "version": "0.150.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -14761,6 +14761,21 @@
14761
14761
  }
14762
14762
  ]
14763
14763
  },
14764
+ "primaryLink": {
14765
+ "description": "The destination to open when visitors click the site title/logo in the header. Set to null to reset the override.",
14766
+ "oneOf": [
14767
+ {
14768
+ "$ref": "#/components/schemas/ContentRef"
14769
+ },
14770
+ {
14771
+ "type": "string",
14772
+ "nullable": true,
14773
+ "enum": [
14774
+ null
14775
+ ]
14776
+ }
14777
+ ]
14778
+ },
14764
14779
  "backgroundColor": {
14765
14780
  "description": "The background color used in the header. Set to null to reset the override.",
14766
14781
  "oneOf": [
@@ -22602,18 +22617,27 @@
22602
22617
  "type": "string",
22603
22618
  "enum": [
22604
22619
  "numeric",
22605
- "full"
22620
+ "full",
22621
+ "short"
22606
22622
  ],
22607
22623
  "default": "full"
22624
+ },
22625
+ "sticky": {
22626
+ "type": "boolean"
22608
22627
  }
22609
22628
  },
22629
+ "required": [
22630
+ "sticky",
22631
+ "format"
22632
+ ],
22610
22633
  "additionalProperties": false
22611
22634
  }
22612
22635
  },
22613
22636
  "required": [
22614
22637
  "object",
22615
22638
  "type",
22616
- "nodes"
22639
+ "nodes",
22640
+ "data"
22617
22641
  ]
22618
22642
  },
22619
22643
  "DocumentBlock": {
@@ -29022,6 +29046,7 @@
29022
29046
  "description": "A list of all premium customizations.",
29023
29047
  "enum": [
29024
29048
  "header-logo",
29049
+ "header-primary-link",
29025
29050
  "theme-preset",
29026
29051
  "premium-fonts",
29027
29052
  "custom-icons",
@@ -34176,6 +34201,10 @@
34176
34201
  "logo": {
34177
34202
  "$ref": "#/components/schemas/CustomizationThemedURL"
34178
34203
  },
34204
+ "primaryLink": {
34205
+ "description": "Destination to open when visitors click the site title/logo in the header.",
34206
+ "$ref": "#/components/schemas/ContentRef"
34207
+ },
34179
34208
  "backgroundColor": {
34180
34209
  "deprecated": true,
34181
34210
  "description": "Color of the background in the header. This value is now deprecated in favour of the new theming colors.",
package/spec/openapi.yaml CHANGED
@@ -8347,6 +8347,14 @@ paths:
8347
8347
  nullable: true
8348
8348
  enum:
8349
8349
  - null
8350
+ primaryLink:
8351
+ description: The destination to open when visitors click the site title/logo in the header. Set to null to reset the override.
8352
+ oneOf:
8353
+ - $ref: "#/components/schemas/ContentRef"
8354
+ - type: string
8355
+ nullable: true
8356
+ enum:
8357
+ - null
8350
8358
  backgroundColor:
8351
8359
  description: The background color used in the header. Set to null to reset the override.
8352
8360
  oneOf:
@@ -13337,12 +13345,19 @@ components:
13337
13345
  enum:
13338
13346
  - numeric
13339
13347
  - full
13348
+ - short
13340
13349
  default: full
13350
+ sticky:
13351
+ type: boolean
13352
+ required:
13353
+ - sticky
13354
+ - format
13341
13355
  additionalProperties: false
13342
13356
  required:
13343
13357
  - object
13344
13358
  - type
13345
13359
  - nodes
13360
+ - data
13346
13361
  DocumentBlock:
13347
13362
  oneOf:
13348
13363
  - $ref: "#/components/schemas/DocumentBlockParagraph"
@@ -17581,6 +17596,7 @@ components:
17581
17596
  description: A list of all premium customizations.
17582
17597
  enum:
17583
17598
  - header-logo
17599
+ - header-primary-link
17584
17600
  - theme-preset
17585
17601
  - premium-fonts
17586
17602
  - custom-icons
@@ -21096,6 +21112,9 @@ components:
21096
21112
  $ref: "#/components/schemas/CustomizationHeaderPreset"
21097
21113
  logo:
21098
21114
  $ref: "#/components/schemas/CustomizationThemedURL"
21115
+ primaryLink:
21116
+ description: Destination to open when visitors click the site title/logo in the header.
21117
+ $ref: "#/components/schemas/ContentRef"
21099
21118
  backgroundColor:
21100
21119
  deprecated: true
21101
21120
  description: Color of the background in the header. This value is now deprecated in favour of the new theming colors.