@gitbook/api 0.73.0 → 0.74.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
@@ -2768,8 +2768,13 @@ export type SpaceViewEvent = SpaceEvent & {
2768
2768
  /** Event received when a page has been visited on a site. */
2769
2769
  export type SiteViewEvent = SiteEvent & {
2770
2770
  type: 'site_view';
2771
- /** Unique identifier of the visited space in the site. */
2771
+ /**
2772
+ * Unique identifier of the visited space in the site.
2773
+ * @deprecated
2774
+ */
2772
2775
  spaceId: string;
2776
+ /** The site-space that was viewed */
2777
+ siteSpaceId?: string;
2773
2778
  /** Unique identifier of the visited page. */
2774
2779
  pageId?: string;
2775
2780
  /** Analytics info on the GitBook's content visitor. */
@@ -4219,6 +4224,8 @@ export interface SiteTrackPageView {
4219
4224
  pageId?: string;
4220
4225
  /** Unique identifier of the space. */
4221
4226
  spaceId: string;
4227
+ /** The site-space that was viewed */
4228
+ siteSpaceId?: string;
4222
4229
  /** Analytics info on the GitBook's content visitor. */
4223
4230
  visitor: {
4224
4231
  /** GitBook's unique identifier of the visitor. */
@@ -4699,6 +4706,8 @@ export type SiteAPIToken = ContentAPIBaseToken & {
4699
4706
  site: string;
4700
4707
  /** ID of the site-space to be used when using this token for rendering published content. */
4701
4708
  siteSpace: string;
4709
+ /** ID of the site-section to be used when using this token for rendering published content. Only defined for section sites. */
4710
+ siteSection?: string;
4702
4711
  /** ID of the space to be used when using this token for rendering published content. */
4703
4712
  space: string;
4704
4713
  };
package/dist/index.cjs CHANGED
@@ -242,7 +242,7 @@ module.exports = __toCommonJS(src_exports);
242
242
 
243
243
  // package.json
244
244
  var name = "@gitbook/api";
245
- var version = "0.73.0";
245
+ var version = "0.74.0";
246
246
 
247
247
  // src/client.ts
248
248
  var import_event_iterator = __toESM(require_node(), 1);
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.73.0";
175
+ var version = "0.74.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
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.73.0",
7
+ "version": "0.74.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -24720,7 +24720,12 @@
24720
24720
  },
24721
24721
  "spaceId": {
24722
24722
  "type": "string",
24723
- "description": "Unique identifier of the visited space in the site."
24723
+ "description": "Unique identifier of the visited space in the site.",
24724
+ "deprecated": true
24725
+ },
24726
+ "siteSpaceId": {
24727
+ "description": "The site-space that was viewed",
24728
+ "type": "string"
24724
24729
  },
24725
24730
  "pageId": {
24726
24731
  "type": "string",
@@ -29322,6 +29327,10 @@
29322
29327
  "type": "string",
29323
29328
  "description": "Unique identifier of the space."
29324
29329
  },
29330
+ "siteSpaceId": {
29331
+ "description": "The site-space that was viewed",
29332
+ "type": "string"
29333
+ },
29325
29334
  "visitor": {
29326
29335
  "type": "object",
29327
29336
  "description": "Analytics info on the GitBook's content visitor.",
@@ -30778,6 +30787,10 @@
30778
30787
  "type": "string",
30779
30788
  "description": "ID of the site-space to be used when using this token for rendering published content."
30780
30789
  },
30790
+ "siteSection": {
30791
+ "type": "string",
30792
+ "description": "ID of the site-section to be used when using this token for rendering published content. Only defined for section sites."
30793
+ },
30781
30794
  "space": {
30782
30795
  "type": "string",
30783
30796
  "description": "ID of the space to be used when using this token for rendering published content."
package/spec/openapi.yaml CHANGED
@@ -14837,6 +14837,10 @@ components:
14837
14837
  spaceId:
14838
14838
  type: string
14839
14839
  description: Unique identifier of the visited space in the site.
14840
+ deprecated: true
14841
+ siteSpaceId:
14842
+ description: The site-space that was viewed
14843
+ type: string
14840
14844
  pageId:
14841
14845
  type: string
14842
14846
  description: Unique identifier of the visited page.
@@ -17839,6 +17843,9 @@ components:
17839
17843
  spaceId:
17840
17844
  type: string
17841
17845
  description: Unique identifier of the space.
17846
+ siteSpaceId:
17847
+ description: The site-space that was viewed
17848
+ type: string
17842
17849
  visitor:
17843
17850
  type: object
17844
17851
  description: Analytics info on the GitBook's content visitor.
@@ -18791,6 +18798,9 @@ components:
18791
18798
  siteSpace:
18792
18799
  type: string
18793
18800
  description: ID of the site-space to be used when using this token for rendering published content.
18801
+ siteSection:
18802
+ type: string
18803
+ description: ID of the site-section to be used when using this token for rendering published content. Only defined for section sites.
18794
18804
  space:
18795
18805
  type: string
18796
18806
  description: ID of the space to be used when using this token for rendering published content.