@gitbook/api 0.62.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 +64 -14
- package/dist/index.cjs +12 -2
- package/dist/index.js +12 -2
- package/package.json +1 -1
- package/spec/openapi.json +237 -30
- package/spec/openapi.yaml +149 -26
package/dist/client.d.ts
CHANGED
|
@@ -2272,6 +2272,7 @@ export declare enum CustomizationLocale {
|
|
|
2272
2272
|
Ja = "ja",
|
|
2273
2273
|
De = "de",
|
|
2274
2274
|
Nl = "nl",
|
|
2275
|
+
No = "no",
|
|
2275
2276
|
PtBr = "pt-br"
|
|
2276
2277
|
}
|
|
2277
2278
|
export interface CustomizationThemedURL {
|
|
@@ -3541,18 +3542,23 @@ export interface OrganizationUsageCollections {
|
|
|
3541
3542
|
total: number;
|
|
3542
3543
|
}
|
|
3543
3544
|
/** Sites usage metrics of an organization */
|
|
3544
|
-
export
|
|
3545
|
+
export declare type OrganizationUsageSites = {
|
|
3545
3546
|
/** Count of all sites */
|
|
3546
3547
|
total: number;
|
|
3547
|
-
/** Count of all
|
|
3548
|
-
|
|
3549
|
-
/** Count of all
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
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
|
+
};
|
|
3556
3562
|
/** Team members usage metrics of an organization */
|
|
3557
3563
|
export interface OrganizationUsageTeams {
|
|
3558
3564
|
/** Count of all teams */
|
|
@@ -4462,6 +4468,36 @@ export declare enum APIIntegrationScope {
|
|
|
4462
4468
|
IntegrationInstallationUpdate = "integration:installation:update"
|
|
4463
4469
|
}
|
|
4464
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;
|
|
4465
4501
|
export interface SpaceInfoChannel {
|
|
4466
4502
|
channel: 'space';
|
|
4467
4503
|
space: string;
|
|
@@ -8465,7 +8501,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8465
8501
|
createSyncedBlock: (organizationId: string, data: {
|
|
8466
8502
|
/** Title of synced block */
|
|
8467
8503
|
title?: string;
|
|
8468
|
-
|
|
8504
|
+
/** The content of the synced block. For now, only JSON documents are supported. */
|
|
8505
|
+
content: Document;
|
|
8469
8506
|
}, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
|
|
8470
8507
|
/**
|
|
8471
8508
|
* No description
|
|
@@ -8507,12 +8544,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8507
8544
|
* No description
|
|
8508
8545
|
*
|
|
8509
8546
|
* @tags organizations
|
|
8510
|
-
* @name
|
|
8547
|
+
* @name ListSyncedBlockBacklinks
|
|
8511
8548
|
* @summary Get a list of pages that reference this synced block.
|
|
8512
8549
|
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks
|
|
8513
8550
|
* @secure
|
|
8514
8551
|
*/
|
|
8515
|
-
|
|
8552
|
+
listSyncedBlockBacklinks: (organizationId: string, syncedBlockId: string, query?: {
|
|
8516
8553
|
/** Identifier of the page results to fetch. */
|
|
8517
8554
|
page?: string;
|
|
8518
8555
|
/**
|
|
@@ -8522,7 +8559,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8522
8559
|
*/
|
|
8523
8560
|
limit?: number;
|
|
8524
8561
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8525
|
-
items:
|
|
8562
|
+
items: ContentLocationPage[];
|
|
8526
8563
|
}, Error>>;
|
|
8527
8564
|
/**
|
|
8528
8565
|
* No description
|
|
@@ -9221,6 +9258,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9221
9258
|
* @secure
|
|
9222
9259
|
*/
|
|
9223
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>>;
|
|
9224
9274
|
/**
|
|
9225
9275
|
* No description
|
|
9226
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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
package/spec/openapi.json
CHANGED
|
@@ -11078,14 +11078,15 @@
|
|
|
11078
11078
|
"schema": {
|
|
11079
11079
|
"type": "object",
|
|
11080
11080
|
"required": [
|
|
11081
|
-
"
|
|
11081
|
+
"content"
|
|
11082
11082
|
],
|
|
11083
11083
|
"properties": {
|
|
11084
11084
|
"title": {
|
|
11085
11085
|
"type": "string",
|
|
11086
11086
|
"description": "Title of synced block"
|
|
11087
11087
|
},
|
|
11088
|
-
"
|
|
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": "
|
|
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/
|
|
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",
|
|
@@ -22165,6 +22224,7 @@
|
|
|
22165
22224
|
"ja",
|
|
22166
22225
|
"de",
|
|
22167
22226
|
"nl",
|
|
22227
|
+
"no",
|
|
22168
22228
|
"pt-br"
|
|
22169
22229
|
]
|
|
22170
22230
|
},
|
|
@@ -26189,34 +26249,54 @@
|
|
|
26189
26249
|
"OrganizationUsageSites": {
|
|
26190
26250
|
"type": "object",
|
|
26191
26251
|
"description": "Sites usage metrics of an organization",
|
|
26192
|
-
"
|
|
26193
|
-
|
|
26194
|
-
"
|
|
26195
|
-
|
|
26196
|
-
|
|
26197
|
-
|
|
26198
|
-
|
|
26199
|
-
|
|
26200
|
-
|
|
26201
|
-
|
|
26202
|
-
|
|
26203
|
-
|
|
26204
|
-
|
|
26205
|
-
|
|
26206
|
-
|
|
26207
|
-
|
|
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
|
+
]
|
|
26208
26273
|
},
|
|
26209
|
-
|
|
26210
|
-
"
|
|
26211
|
-
|
|
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
|
+
]
|
|
26212
26299
|
}
|
|
26213
|
-
},
|
|
26214
|
-
"required": [
|
|
26215
|
-
"total",
|
|
26216
|
-
"public",
|
|
26217
|
-
"unlisted",
|
|
26218
|
-
"shareLink",
|
|
26219
|
-
"visitorAuth"
|
|
26220
26300
|
]
|
|
26221
26301
|
},
|
|
26222
26302
|
"OrganizationUsageTeams": {
|
|
@@ -28948,6 +29028,133 @@
|
|
|
28948
29028
|
}
|
|
28949
29029
|
]
|
|
28950
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
|
+
},
|
|
28951
29158
|
"SpaceInfoChannel": {
|
|
28952
29159
|
"type": "object",
|
|
28953
29160
|
"properties": {
|
package/spec/openapi.yaml
CHANGED
|
@@ -6184,12 +6184,13 @@ paths:
|
|
|
6184
6184
|
schema:
|
|
6185
6185
|
type: object
|
|
6186
6186
|
required:
|
|
6187
|
-
-
|
|
6187
|
+
- content
|
|
6188
6188
|
properties:
|
|
6189
6189
|
title:
|
|
6190
6190
|
type: string
|
|
6191
6191
|
description: Title of synced block
|
|
6192
|
-
|
|
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:
|
|
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/
|
|
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
|
|
@@ -13266,6 +13300,7 @@ components:
|
|
|
13266
13300
|
- ja
|
|
13267
13301
|
- de
|
|
13268
13302
|
- nl
|
|
13303
|
+
- no
|
|
13269
13304
|
- pt-br
|
|
13270
13305
|
CustomizationThemedURL:
|
|
13271
13306
|
type: object
|
|
@@ -15897,28 +15932,39 @@ components:
|
|
|
15897
15932
|
OrganizationUsageSites:
|
|
15898
15933
|
type: object
|
|
15899
15934
|
description: Sites usage metrics of an organization
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
15903
|
-
|
|
15904
|
-
|
|
15905
|
-
|
|
15906
|
-
|
|
15907
|
-
|
|
15908
|
-
|
|
15909
|
-
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
|
|
15914
|
-
|
|
15915
|
-
|
|
15916
|
-
|
|
15917
|
-
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
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
|
|
15922
15968
|
OrganizationUsageTeams:
|
|
15923
15969
|
type: object
|
|
15924
15970
|
description: Team members usage metrics of an organization
|
|
@@ -17718,6 +17764,83 @@ components:
|
|
|
17718
17764
|
anyOf:
|
|
17719
17765
|
- $ref: "#/components/schemas/IntegrationScope"
|
|
17720
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"
|
|
17721
17844
|
SpaceInfoChannel:
|
|
17722
17845
|
type: object
|
|
17723
17846
|
properties:
|