@gitbook/api 0.61.0 → 0.63.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
@@ -1068,8 +1068,21 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
1068
1068
  git?: GitSyncBlob;
1069
1069
  layout: RevisionPageLayoutOptions;
1070
1070
  cover?: RevisionPageDocumentCover;
1071
- /** If true, the page is not displayed in the navigation, while still being accessible. */
1071
+ /**
1072
+ * If true, the page is not displayed in the navigation, while still being accessible.
1073
+ * @default false
1074
+ */
1072
1075
  hidden?: boolean;
1076
+ /**
1077
+ * If true, the page is not indexable in the search and ask features.
1078
+ * @default false
1079
+ */
1080
+ noIndex?: boolean;
1081
+ /**
1082
+ * If true, the page is not indexable by search engine robots.
1083
+ * @default false
1084
+ */
1085
+ noRobotsIndex?: boolean;
1073
1086
  };
1074
1087
  export declare type RevisionPageLink = RevisionPageBase & {
1075
1088
  /** @deprecated */
@@ -1078,6 +1091,11 @@ export declare type RevisionPageLink = RevisionPageBase & {
1078
1091
  /** A relative reference to content in GitBook. */
1079
1092
  target: ContentRef;
1080
1093
  href?: string;
1094
+ /**
1095
+ * If true, the page is not displayed in the navigation, while still being accessible.
1096
+ * @default false
1097
+ */
1098
+ hidden?: boolean;
1081
1099
  };
1082
1100
  export interface GitSyncBlob {
1083
1101
  /** SHA for the blob */
@@ -1220,8 +1238,21 @@ export declare type RevisionPageGroup = RevisionPageBase & {
1220
1238
  slug: string;
1221
1239
  /** Complete path to access the page in the revision. */
1222
1240
  path: string;
1223
- /** If true, the page is not displayed in the navigation, while still being accessible. */
1241
+ /**
1242
+ * If true, the page is not displayed in the navigation, while still being accessible.
1243
+ * @default false
1244
+ */
1224
1245
  hidden?: boolean;
1246
+ /**
1247
+ * If true, the page is not indexable in the search and ask features.
1248
+ * @default false
1249
+ */
1250
+ noIndex?: boolean;
1251
+ /**
1252
+ * If true, the page is not indexable by search engine robots.
1253
+ * @default false
1254
+ */
1255
+ noRobotsIndex?: boolean;
1225
1256
  pages: (RevisionPageDocument | RevisionPageLink)[];
1226
1257
  };
1227
1258
  export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
@@ -2241,6 +2272,7 @@ export declare enum CustomizationLocale {
2241
2272
  Ja = "ja",
2242
2273
  De = "de",
2243
2274
  Nl = "nl",
2275
+ No = "no",
2244
2276
  PtBr = "pt-br"
2245
2277
  }
2246
2278
  export interface CustomizationThemedURL {
@@ -3510,18 +3542,23 @@ export interface OrganizationUsageCollections {
3510
3542
  total: number;
3511
3543
  }
3512
3544
  /** Sites usage metrics of an organization */
3513
- export interface OrganizationUsageSites {
3545
+ export declare type OrganizationUsageSites = {
3514
3546
  /** Count of all sites */
3515
3547
  total: number;
3516
- /** Count of all public sites */
3517
- public: number;
3518
- /** Count of all unlisted sites */
3519
- unlisted: number;
3520
- /** Count of all link-shared sites */
3521
- shareLink: number;
3522
- /** Count of all visitor-authenticated sites */
3523
- visitorAuth: number;
3524
- }
3548
+ /** Count of all legacy basic sites */
3549
+ legacyBasic: number;
3550
+ /** Count of all legacy premium sites */
3551
+ legacyPremium: number;
3552
+ } | {
3553
+ /** Count of all sites */
3554
+ total: number;
3555
+ /** Count of all basic sites */
3556
+ basic: number;
3557
+ /** Count of all premium sites */
3558
+ premium: number;
3559
+ /** Count of all audience sites */
3560
+ audience: number;
3561
+ };
3525
3562
  /** Team members usage metrics of an organization */
3526
3563
  export interface OrganizationUsageTeams {
3527
3564
  /** Count of all teams */
@@ -4431,6 +4468,36 @@ export declare enum APIIntegrationScope {
4431
4468
  IntegrationInstallationUpdate = "integration:installation:update"
4432
4469
  }
4433
4470
  export declare type APIScope = IntegrationScope | APIIntegrationScope;
4471
+ /** Common properties for all Content API tokens. */
4472
+ export interface ContentAPIBaseToken {
4473
+ /** ID of the organization that owns the content. A content token is always scoped to spaces from the same organization. */
4474
+ organization: string;
4475
+ /** List of spaces that the token is allowed to access. */
4476
+ spaces: string[];
4477
+ /** Multiplier for the rate limit applied to the token. */
4478
+ rateLimitMultiplier?: number;
4479
+ }
4480
+ export declare type SpaceAPIToken = ContentAPIBaseToken & {
4481
+ kind: 'space';
4482
+ /** ID of the space that the token is allowed to access. */
4483
+ space: string;
4484
+ };
4485
+ export declare type CollectionAPIToken = ContentAPIBaseToken & {
4486
+ kind: 'collection';
4487
+ /** ID of the collection that the token is allowed to access. */
4488
+ collection: string;
4489
+ };
4490
+ export declare type SiteAPIToken = ContentAPIBaseToken & {
4491
+ kind: 'site';
4492
+ /** ID of the site that the token is allowed to access. */
4493
+ site: string;
4494
+ /** ID of the site-space to be used when using this token for rendering published content. */
4495
+ siteSpace: string;
4496
+ /** ID of the space to be used when using this token for rendering published content. */
4497
+ space: string;
4498
+ };
4499
+ /** Content properties stored in a Content API token. */
4500
+ export declare type ContentAPITokenPayload = SpaceAPIToken | CollectionAPIToken | SiteAPIToken;
4434
4501
  export interface SpaceInfoChannel {
4435
4502
  channel: 'space';
4436
4503
  space: string;
@@ -8434,7 +8501,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8434
8501
  createSyncedBlock: (organizationId: string, data: {
8435
8502
  /** Title of synced block */
8436
8503
  title?: string;
8437
- document: Document;
8504
+ /** The content of the synced block. For now, only JSON documents are supported. */
8505
+ content: Document;
8438
8506
  }, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
8439
8507
  /**
8440
8508
  * No description
@@ -8476,12 +8544,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8476
8544
  * No description
8477
8545
  *
8478
8546
  * @tags organizations
8479
- * @name GetSyncedBlockBacklinks
8547
+ * @name ListSyncedBlockBacklinks
8480
8548
  * @summary Get a list of pages that reference this synced block.
8481
8549
  * @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks
8482
8550
  * @secure
8483
8551
  */
8484
- getSyncedBlockBacklinks: (organizationId: string, syncedBlockId: string, query?: {
8552
+ listSyncedBlockBacklinks: (organizationId: string, syncedBlockId: string, query?: {
8485
8553
  /** Identifier of the page results to fetch. */
8486
8554
  page?: string;
8487
8555
  /**
@@ -8491,7 +8559,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8491
8559
  */
8492
8560
  limit?: number;
8493
8561
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8494
- items: ContentLocation[];
8562
+ items: ContentLocationPage[];
8495
8563
  }, Error>>;
8496
8564
  /**
8497
8565
  * No description
@@ -9190,6 +9258,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9190
9258
  * @secure
9191
9259
  */
9192
9260
  trackViewInSiteById: (organizationId: string, siteId: string, data: SiteTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9261
+ /**
9262
+ * No description
9263
+ *
9264
+ * @tags analytics, sites
9265
+ * @name GetSearchAnalyticsForSiteById
9266
+ * @summary Get an overview of the top search queries in a site.
9267
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/insights/search
9268
+ * @secure
9269
+ */
9270
+ getSearchAnalyticsForSiteById: (organizationId: string, siteId: string, data: {
9271
+ siteSpaceIds?: string[];
9272
+ period?: AnalyticsSearchPeriod;
9273
+ }, params?: RequestParams) => Promise<HttpResponse<AnalyticsTopSearches, Error>>;
9193
9274
  /**
9194
9275
  * No description
9195
9276
  *
package/dist/index.cjs CHANGED
@@ -240,7 +240,7 @@ module.exports = __toCommonJS(src_exports);
240
240
 
241
241
  // package.json
242
242
  var name = "@gitbook/api";
243
- var version = "0.61.0";
243
+ var version = "0.63.0";
244
244
 
245
245
  // src/client.ts
246
246
  var import_event_iterator = __toESM(require_node(), 1);
@@ -557,6 +557,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
557
557
  CustomizationLocale2["Ja"] = "ja";
558
558
  CustomizationLocale2["De"] = "de";
559
559
  CustomizationLocale2["Nl"] = "nl";
560
+ CustomizationLocale2["No"] = "no";
560
561
  CustomizationLocale2["PtBr"] = "pt-br";
561
562
  return CustomizationLocale2;
562
563
  })(CustomizationLocale || {});
@@ -2752,7 +2753,7 @@ var Api = class extends HttpClient {
2752
2753
  format: "json",
2753
2754
  ...params
2754
2755
  }),
2755
- getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
2756
+ listSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
2756
2757
  path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
2757
2758
  method: "GET",
2758
2759
  query,
@@ -3086,6 +3087,15 @@ var Api = class extends HttpClient {
3086
3087
  type: "application/json" /* Json */,
3087
3088
  ...params
3088
3089
  }),
3090
+ getSearchAnalyticsForSiteById: (organizationId, siteId, data, params = {}) => this.request({
3091
+ path: `/orgs/${organizationId}/sites/${siteId}/insights/search`,
3092
+ method: "POST",
3093
+ body: data,
3094
+ secure: true,
3095
+ type: "application/json" /* Json */,
3096
+ format: "json",
3097
+ ...params
3098
+ }),
3089
3099
  updateSiteAdsById: (organizationId, siteId, data, params = {}) => this.request({
3090
3100
  path: `/orgs/${organizationId}/sites/${siteId}/ads`,
3091
3101
  method: "POST",
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.61.0";
175
+ var version = "0.63.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -489,6 +489,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
489
489
  CustomizationLocale2["Ja"] = "ja";
490
490
  CustomizationLocale2["De"] = "de";
491
491
  CustomizationLocale2["Nl"] = "nl";
492
+ CustomizationLocale2["No"] = "no";
492
493
  CustomizationLocale2["PtBr"] = "pt-br";
493
494
  return CustomizationLocale2;
494
495
  })(CustomizationLocale || {});
@@ -2684,7 +2685,7 @@ var Api = class extends HttpClient {
2684
2685
  format: "json",
2685
2686
  ...params
2686
2687
  }),
2687
- getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
2688
+ listSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
2688
2689
  path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
2689
2690
  method: "GET",
2690
2691
  query,
@@ -3018,6 +3019,15 @@ var Api = class extends HttpClient {
3018
3019
  type: "application/json" /* Json */,
3019
3020
  ...params
3020
3021
  }),
3022
+ getSearchAnalyticsForSiteById: (organizationId, siteId, data, params = {}) => this.request({
3023
+ path: `/orgs/${organizationId}/sites/${siteId}/insights/search`,
3024
+ method: "POST",
3025
+ body: data,
3026
+ secure: true,
3027
+ type: "application/json" /* Json */,
3028
+ format: "json",
3029
+ ...params
3030
+ }),
3021
3031
  updateSiteAdsById: (organizationId, siteId, data, params = {}) => this.request({
3022
3032
  path: `/orgs/${organizationId}/sites/${siteId}/ads`,
3023
3033
  method: "POST",
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.61.0",
7
+ "version": "0.63.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -11078,14 +11078,15 @@
11078
11078
  "schema": {
11079
11079
  "type": "object",
11080
11080
  "required": [
11081
- "document"
11081
+ "content"
11082
11082
  ],
11083
11083
  "properties": {
11084
11084
  "title": {
11085
11085
  "type": "string",
11086
11086
  "description": "Title of synced block"
11087
11087
  },
11088
- "document": {
11088
+ "content": {
11089
+ "description": "The content of the synced block. For now, only JSON documents are supported.",
11089
11090
  "$ref": "#/components/schemas/Document"
11090
11091
  }
11091
11092
  }
@@ -11253,7 +11254,7 @@
11253
11254
  },
11254
11255
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks": {
11255
11256
  "get": {
11256
- "operationId": "getSyncedBlockBacklinks",
11257
+ "operationId": "listSyncedBlockBacklinks",
11257
11258
  "summary": "Get a list of pages that reference this synced block.",
11258
11259
  "tags": [
11259
11260
  "organizations"
@@ -11296,7 +11297,7 @@
11296
11297
  "items": {
11297
11298
  "type": "array",
11298
11299
  "items": {
11299
- "$ref": "#/components/schemas/ContentLocation"
11300
+ "$ref": "#/components/schemas/ContentLocationPage"
11300
11301
  }
11301
11302
  }
11302
11303
  }
@@ -13531,6 +13532,64 @@
13531
13532
  }
13532
13533
  }
13533
13534
  },
13535
+ "/orgs/{organizationId}/sites/{siteId}/insights/search": {
13536
+ "post": {
13537
+ "operationId": "getSearchAnalyticsForSiteById",
13538
+ "summary": "Get an overview of the top search queries in a site.",
13539
+ "tags": [
13540
+ "analytics",
13541
+ "sites"
13542
+ ],
13543
+ "security": [
13544
+ {
13545
+ "user": []
13546
+ }
13547
+ ],
13548
+ "parameters": [
13549
+ {
13550
+ "$ref": "#/components/parameters/organizationId"
13551
+ },
13552
+ {
13553
+ "$ref": "#/components/parameters/siteId"
13554
+ }
13555
+ ],
13556
+ "requestBody": {
13557
+ "content": {
13558
+ "application/json": {
13559
+ "schema": {
13560
+ "type": "object",
13561
+ "properties": {
13562
+ "siteSpaceIds": {
13563
+ "type": "array",
13564
+ "items": {
13565
+ "type": "string"
13566
+ }
13567
+ },
13568
+ "period": {
13569
+ "$ref": "#/components/schemas/AnalyticsSearchPeriod"
13570
+ }
13571
+ }
13572
+ }
13573
+ }
13574
+ }
13575
+ },
13576
+ "responses": {
13577
+ "200": {
13578
+ "description": "Top queries searched on this site.",
13579
+ "content": {
13580
+ "application/json": {
13581
+ "schema": {
13582
+ "$ref": "#/components/schemas/AnalyticsTopSearches"
13583
+ }
13584
+ }
13585
+ }
13586
+ },
13587
+ "default": {
13588
+ "$ref": "#/components/responses/UnexpectedError"
13589
+ }
13590
+ }
13591
+ }
13592
+ },
13534
13593
  "/orgs/{organizationId}/sites/{siteId}/ads": {
13535
13594
  "post": {
13536
13595
  "operationId": "updateSiteAdsById",
@@ -18871,7 +18930,18 @@
18871
18930
  },
18872
18931
  "hidden": {
18873
18932
  "type": "boolean",
18874
- "description": "If true, the page is not displayed in the navigation, while still being accessible."
18933
+ "description": "If true, the page is not displayed in the navigation, while still being accessible.",
18934
+ "default": false
18935
+ },
18936
+ "noIndex": {
18937
+ "type": "boolean",
18938
+ "description": "If true, the page is not indexable in the search and ask features.",
18939
+ "default": false
18940
+ },
18941
+ "noRobotsIndex": {
18942
+ "type": "boolean",
18943
+ "description": "If true, the page is not indexable by search engine robots.",
18944
+ "default": false
18875
18945
  }
18876
18946
  },
18877
18947
  "required": [
@@ -18912,6 +18982,11 @@
18912
18982
  },
18913
18983
  "href": {
18914
18984
  "type": "string"
18985
+ },
18986
+ "hidden": {
18987
+ "type": "boolean",
18988
+ "description": "If true, the page is not displayed in the navigation, while still being accessible.",
18989
+ "default": false
18915
18990
  }
18916
18991
  },
18917
18992
  "required": [
@@ -19276,7 +19351,18 @@
19276
19351
  },
19277
19352
  "hidden": {
19278
19353
  "type": "boolean",
19279
- "description": "If true, the page is not displayed in the navigation, while still being accessible."
19354
+ "description": "If true, the page is not displayed in the navigation, while still being accessible.",
19355
+ "default": false
19356
+ },
19357
+ "noIndex": {
19358
+ "type": "boolean",
19359
+ "description": "If true, the page is not indexable in the search and ask features.",
19360
+ "default": false
19361
+ },
19362
+ "noRobotsIndex": {
19363
+ "type": "boolean",
19364
+ "description": "If true, the page is not indexable by search engine robots.",
19365
+ "default": false
19280
19366
  },
19281
19367
  "pages": {
19282
19368
  "type": "array",
@@ -22138,6 +22224,7 @@
22138
22224
  "ja",
22139
22225
  "de",
22140
22226
  "nl",
22227
+ "no",
22141
22228
  "pt-br"
22142
22229
  ]
22143
22230
  },
@@ -26162,34 +26249,54 @@
26162
26249
  "OrganizationUsageSites": {
26163
26250
  "type": "object",
26164
26251
  "description": "Sites usage metrics of an organization",
26165
- "properties": {
26166
- "total": {
26167
- "description": "Count of all sites",
26168
- "type": "number"
26169
- },
26170
- "public": {
26171
- "description": "Count of all public sites",
26172
- "type": "number"
26173
- },
26174
- "unlisted": {
26175
- "description": "Count of all unlisted sites",
26176
- "type": "number"
26177
- },
26178
- "shareLink": {
26179
- "description": "Count of all link-shared sites",
26180
- "type": "number"
26252
+ "oneOf": [
26253
+ {
26254
+ "properties": {
26255
+ "total": {
26256
+ "description": "Count of all sites",
26257
+ "type": "number"
26258
+ },
26259
+ "legacyBasic": {
26260
+ "description": "Count of all legacy basic sites",
26261
+ "type": "number"
26262
+ },
26263
+ "legacyPremium": {
26264
+ "description": "Count of all legacy premium sites",
26265
+ "type": "number"
26266
+ }
26267
+ },
26268
+ "required": [
26269
+ "total",
26270
+ "legacyBasic",
26271
+ "legacyPremium"
26272
+ ]
26181
26273
  },
26182
- "visitorAuth": {
26183
- "description": "Count of all visitor-authenticated sites",
26184
- "type": "number"
26274
+ {
26275
+ "properties": {
26276
+ "total": {
26277
+ "description": "Count of all sites",
26278
+ "type": "number"
26279
+ },
26280
+ "basic": {
26281
+ "description": "Count of all basic sites",
26282
+ "type": "number"
26283
+ },
26284
+ "premium": {
26285
+ "description": "Count of all premium sites",
26286
+ "type": "number"
26287
+ },
26288
+ "audience": {
26289
+ "description": "Count of all audience sites",
26290
+ "type": "number"
26291
+ }
26292
+ },
26293
+ "required": [
26294
+ "total",
26295
+ "basic",
26296
+ "premium",
26297
+ "audience"
26298
+ ]
26185
26299
  }
26186
- },
26187
- "required": [
26188
- "total",
26189
- "public",
26190
- "unlisted",
26191
- "shareLink",
26192
- "visitorAuth"
26193
26300
  ]
26194
26301
  },
26195
26302
  "OrganizationUsageTeams": {
@@ -28921,6 +29028,133 @@
28921
29028
  }
28922
29029
  ]
28923
29030
  },
29031
+ "ContentAPIBaseToken": {
29032
+ "type": "object",
29033
+ "description": "Common properties for all Content API tokens.",
29034
+ "properties": {
29035
+ "organization": {
29036
+ "type": "string",
29037
+ "description": "ID of the organization that owns the content. A content token is always scoped to spaces from the same organization."
29038
+ },
29039
+ "spaces": {
29040
+ "type": "array",
29041
+ "items": {
29042
+ "type": "string"
29043
+ },
29044
+ "description": "List of spaces that the token is allowed to access."
29045
+ },
29046
+ "rateLimitMultiplier": {
29047
+ "type": "number",
29048
+ "description": "Multiplier for the rate limit applied to the token."
29049
+ }
29050
+ },
29051
+ "required": [
29052
+ "organization",
29053
+ "spaces"
29054
+ ]
29055
+ },
29056
+ "SpaceAPIToken": {
29057
+ "allOf": [
29058
+ {
29059
+ "$ref": "#/components/schemas/ContentAPIBaseToken"
29060
+ },
29061
+ {
29062
+ "type": "object",
29063
+ "properties": {
29064
+ "kind": {
29065
+ "type": "string",
29066
+ "enum": [
29067
+ "space"
29068
+ ]
29069
+ },
29070
+ "space": {
29071
+ "type": "string",
29072
+ "description": "ID of the space that the token is allowed to access."
29073
+ }
29074
+ },
29075
+ "required": [
29076
+ "kind",
29077
+ "space"
29078
+ ]
29079
+ }
29080
+ ]
29081
+ },
29082
+ "CollectionAPIToken": {
29083
+ "allOf": [
29084
+ {
29085
+ "$ref": "#/components/schemas/ContentAPIBaseToken"
29086
+ },
29087
+ {
29088
+ "type": "object",
29089
+ "properties": {
29090
+ "kind": {
29091
+ "type": "string",
29092
+ "enum": [
29093
+ "collection"
29094
+ ]
29095
+ },
29096
+ "collection": {
29097
+ "type": "string",
29098
+ "description": "ID of the collection that the token is allowed to access."
29099
+ }
29100
+ },
29101
+ "required": [
29102
+ "kind",
29103
+ "collection"
29104
+ ]
29105
+ }
29106
+ ]
29107
+ },
29108
+ "SiteAPIToken": {
29109
+ "allOf": [
29110
+ {
29111
+ "$ref": "#/components/schemas/ContentAPIBaseToken"
29112
+ },
29113
+ {
29114
+ "type": "object",
29115
+ "properties": {
29116
+ "kind": {
29117
+ "type": "string",
29118
+ "enum": [
29119
+ "site"
29120
+ ]
29121
+ },
29122
+ "site": {
29123
+ "type": "string",
29124
+ "description": "ID of the site that the token is allowed to access."
29125
+ },
29126
+ "siteSpace": {
29127
+ "type": "string",
29128
+ "description": "ID of the site-space to be used when using this token for rendering published content."
29129
+ },
29130
+ "space": {
29131
+ "type": "string",
29132
+ "description": "ID of the space to be used when using this token for rendering published content."
29133
+ }
29134
+ },
29135
+ "required": [
29136
+ "kind",
29137
+ "site",
29138
+ "siteSpace",
29139
+ "space"
29140
+ ]
29141
+ }
29142
+ ]
29143
+ },
29144
+ "ContentAPITokenPayload": {
29145
+ "description": "Content properties stored in a Content API token.",
29146
+ "oneOf": [
29147
+ {
29148
+ "$ref": "#/components/schemas/SpaceAPIToken"
29149
+ },
29150
+ {
29151
+ "$ref": "#/components/schemas/CollectionAPIToken"
29152
+ },
29153
+ {
29154
+ "$ref": "#/components/schemas/SiteAPIToken"
29155
+ }
29156
+ ]
29157
+ },
28924
29158
  "SpaceInfoChannel": {
28925
29159
  "type": "object",
28926
29160
  "properties": {
package/spec/openapi.yaml CHANGED
@@ -6184,12 +6184,13 @@ paths:
6184
6184
  schema:
6185
6185
  type: object
6186
6186
  required:
6187
- - document
6187
+ - content
6188
6188
  properties:
6189
6189
  title:
6190
6190
  type: string
6191
6191
  description: Title of synced block
6192
- document:
6192
+ content:
6193
+ description: The content of the synced block. For now, only JSON documents are supported.
6193
6194
  $ref: "#/components/schemas/Document"
6194
6195
  responses:
6195
6196
  "201":
@@ -6282,7 +6283,7 @@ paths:
6282
6283
  $ref: "#/components/responses/UnexpectedError"
6283
6284
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks":
6284
6285
  get:
6285
- operationId: getSyncedBlockBacklinks
6286
+ operationId: listSyncedBlockBacklinks
6286
6287
  summary: Get a list of pages that reference this synced block.
6287
6288
  tags:
6288
6289
  - organizations
@@ -6308,7 +6309,7 @@ paths:
6308
6309
  items:
6309
6310
  type: array
6310
6311
  items:
6311
- $ref: "#/components/schemas/ContentLocation"
6312
+ $ref: "#/components/schemas/ContentLocationPage"
6312
6313
  default:
6313
6314
  $ref: "#/components/responses/UnexpectedError"
6314
6315
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces":
@@ -7541,6 +7542,39 @@ paths:
7541
7542
  application/json:
7542
7543
  schema:
7543
7544
  $ref: "#/components/schemas/SiteTrackPageView"
7545
+ "/orgs/{organizationId}/sites/{siteId}/insights/search":
7546
+ post:
7547
+ operationId: getSearchAnalyticsForSiteById
7548
+ summary: Get an overview of the top search queries in a site.
7549
+ tags:
7550
+ - analytics
7551
+ - sites
7552
+ security:
7553
+ - user: []
7554
+ parameters:
7555
+ - $ref: "#/components/parameters/organizationId"
7556
+ - $ref: "#/components/parameters/siteId"
7557
+ requestBody:
7558
+ content:
7559
+ application/json:
7560
+ schema:
7561
+ type: object
7562
+ properties:
7563
+ siteSpaceIds:
7564
+ type: array
7565
+ items:
7566
+ type: string
7567
+ period:
7568
+ $ref: "#/components/schemas/AnalyticsSearchPeriod"
7569
+ responses:
7570
+ "200":
7571
+ description: Top queries searched on this site.
7572
+ content:
7573
+ application/json:
7574
+ schema:
7575
+ $ref: "#/components/schemas/AnalyticsTopSearches"
7576
+ default:
7577
+ $ref: "#/components/responses/UnexpectedError"
7544
7578
  "/orgs/{organizationId}/sites/{siteId}/ads":
7545
7579
  post:
7546
7580
  operationId: updateSiteAdsById
@@ -11014,6 +11048,15 @@ components:
11014
11048
  hidden:
11015
11049
  type: boolean
11016
11050
  description: If true, the page is not displayed in the navigation, while still being accessible.
11051
+ default: false
11052
+ noIndex:
11053
+ type: boolean
11054
+ description: If true, the page is not indexable in the search and ask features.
11055
+ default: false
11056
+ noRobotsIndex:
11057
+ type: boolean
11058
+ description: If true, the page is not indexable by search engine robots.
11059
+ default: false
11017
11060
  required:
11018
11061
  - kind
11019
11062
  - type
@@ -11040,6 +11083,10 @@ components:
11040
11083
  $ref: "#/components/schemas/ContentRef"
11041
11084
  href:
11042
11085
  type: string
11086
+ hidden:
11087
+ type: boolean
11088
+ description: If true, the page is not displayed in the navigation, while still being accessible.
11089
+ default: false
11043
11090
  required:
11044
11091
  - kind
11045
11092
  - type
@@ -11306,6 +11353,15 @@ components:
11306
11353
  hidden:
11307
11354
  type: boolean
11308
11355
  description: If true, the page is not displayed in the navigation, while still being accessible.
11356
+ default: false
11357
+ noIndex:
11358
+ type: boolean
11359
+ description: If true, the page is not indexable in the search and ask features.
11360
+ default: false
11361
+ noRobotsIndex:
11362
+ type: boolean
11363
+ description: If true, the page is not indexable by search engine robots.
11364
+ default: false
11309
11365
  pages:
11310
11366
  type: array
11311
11367
  items:
@@ -13244,6 +13300,7 @@ components:
13244
13300
  - ja
13245
13301
  - de
13246
13302
  - nl
13303
+ - no
13247
13304
  - pt-br
13248
13305
  CustomizationThemedURL:
13249
13306
  type: object
@@ -15875,28 +15932,39 @@ components:
15875
15932
  OrganizationUsageSites:
15876
15933
  type: object
15877
15934
  description: Sites usage metrics of an organization
15878
- properties:
15879
- total:
15880
- description: Count of all sites
15881
- type: number
15882
- public:
15883
- description: Count of all public sites
15884
- type: number
15885
- unlisted:
15886
- description: Count of all unlisted sites
15887
- type: number
15888
- shareLink:
15889
- description: Count of all link-shared sites
15890
- type: number
15891
- visitorAuth:
15892
- description: Count of all visitor-authenticated sites
15893
- type: number
15894
- required:
15895
- - total
15896
- - public
15897
- - unlisted
15898
- - shareLink
15899
- - visitorAuth
15935
+ oneOf:
15936
+ - properties:
15937
+ total:
15938
+ description: Count of all sites
15939
+ type: number
15940
+ legacyBasic:
15941
+ description: Count of all legacy basic sites
15942
+ type: number
15943
+ legacyPremium:
15944
+ description: Count of all legacy premium sites
15945
+ type: number
15946
+ required:
15947
+ - total
15948
+ - legacyBasic
15949
+ - legacyPremium
15950
+ - properties:
15951
+ total:
15952
+ description: Count of all sites
15953
+ type: number
15954
+ basic:
15955
+ description: Count of all basic sites
15956
+ type: number
15957
+ premium:
15958
+ description: Count of all premium sites
15959
+ type: number
15960
+ audience:
15961
+ description: Count of all audience sites
15962
+ type: number
15963
+ required:
15964
+ - total
15965
+ - basic
15966
+ - premium
15967
+ - audience
15900
15968
  OrganizationUsageTeams:
15901
15969
  type: object
15902
15970
  description: Team members usage metrics of an organization
@@ -17696,6 +17764,83 @@ components:
17696
17764
  anyOf:
17697
17765
  - $ref: "#/components/schemas/IntegrationScope"
17698
17766
  - $ref: "#/components/schemas/APIIntegrationScope"
17767
+ ContentAPIBaseToken:
17768
+ type: object
17769
+ description: Common properties for all Content API tokens.
17770
+ properties:
17771
+ organization:
17772
+ type: string
17773
+ description: ID of the organization that owns the content. A content token is always scoped to spaces from the same organization.
17774
+ spaces:
17775
+ type: array
17776
+ items:
17777
+ type: string
17778
+ description: List of spaces that the token is allowed to access.
17779
+ rateLimitMultiplier:
17780
+ type: number
17781
+ description: Multiplier for the rate limit applied to the token.
17782
+ required:
17783
+ - organization
17784
+ - spaces
17785
+ SpaceAPIToken:
17786
+ allOf:
17787
+ - $ref: "#/components/schemas/ContentAPIBaseToken"
17788
+ - type: object
17789
+ properties:
17790
+ kind:
17791
+ type: string
17792
+ enum:
17793
+ - space
17794
+ space:
17795
+ type: string
17796
+ description: ID of the space that the token is allowed to access.
17797
+ required:
17798
+ - kind
17799
+ - space
17800
+ CollectionAPIToken:
17801
+ allOf:
17802
+ - $ref: "#/components/schemas/ContentAPIBaseToken"
17803
+ - type: object
17804
+ properties:
17805
+ kind:
17806
+ type: string
17807
+ enum:
17808
+ - collection
17809
+ collection:
17810
+ type: string
17811
+ description: ID of the collection that the token is allowed to access.
17812
+ required:
17813
+ - kind
17814
+ - collection
17815
+ SiteAPIToken:
17816
+ allOf:
17817
+ - $ref: "#/components/schemas/ContentAPIBaseToken"
17818
+ - type: object
17819
+ properties:
17820
+ kind:
17821
+ type: string
17822
+ enum:
17823
+ - site
17824
+ site:
17825
+ type: string
17826
+ description: ID of the site that the token is allowed to access.
17827
+ siteSpace:
17828
+ type: string
17829
+ description: ID of the site-space to be used when using this token for rendering published content.
17830
+ space:
17831
+ type: string
17832
+ description: ID of the space to be used when using this token for rendering published content.
17833
+ required:
17834
+ - kind
17835
+ - site
17836
+ - siteSpace
17837
+ - space
17838
+ ContentAPITokenPayload:
17839
+ description: Content properties stored in a Content API token.
17840
+ oneOf:
17841
+ - $ref: "#/components/schemas/SpaceAPIToken"
17842
+ - $ref: "#/components/schemas/CollectionAPIToken"
17843
+ - $ref: "#/components/schemas/SiteAPIToken"
17699
17844
  SpaceInfoChannel:
17700
17845
  type: object
17701
17846
  properties: