@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 +10 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +14 -1
- package/spec/openapi.yaml +10 -0
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
|
-
/**
|
|
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
package/dist/index.js
CHANGED
package/package.json
CHANGED
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.
|