@gitbook/api 0.148.0 → 0.149.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 +60 -1
- package/dist/index.cjs +22 -1
- package/dist/index.js +22 -1
- package/package.json +1 -1
- package/spec/openapi.json +288 -0
- package/spec/openapi.yaml +159 -0
package/dist/client.d.ts
CHANGED
|
@@ -1312,7 +1312,29 @@ export interface DocumentBlockColumns {
|
|
|
1312
1312
|
nodes: DocumentBlockColumn[];
|
|
1313
1313
|
isVoid: false;
|
|
1314
1314
|
}
|
|
1315
|
-
export
|
|
1315
|
+
export interface DocumentBlockUpdate {
|
|
1316
|
+
object: 'block';
|
|
1317
|
+
type: 'update';
|
|
1318
|
+
key?: string;
|
|
1319
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
|
|
1320
|
+
data: {
|
|
1321
|
+
date: Timestamp;
|
|
1322
|
+
tags?: string[];
|
|
1323
|
+
};
|
|
1324
|
+
isVoid?: false;
|
|
1325
|
+
}
|
|
1326
|
+
export interface DocumentBlockUpdates {
|
|
1327
|
+
object: 'block';
|
|
1328
|
+
type: 'updates';
|
|
1329
|
+
key?: string;
|
|
1330
|
+
nodes: DocumentBlockUpdate[];
|
|
1331
|
+
isVoid?: false;
|
|
1332
|
+
data?: {
|
|
1333
|
+
/** @default "full" */
|
|
1334
|
+
format?: 'numeric' | 'full';
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
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;
|
|
1316
1338
|
export interface DocumentInlineMention {
|
|
1317
1339
|
object: 'inline';
|
|
1318
1340
|
type: 'mention';
|
|
@@ -1383,6 +1405,8 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1383
1405
|
* @default false
|
|
1384
1406
|
*/
|
|
1385
1407
|
noRobotsIndex?: boolean;
|
|
1408
|
+
/** Meta links associated with the page. */
|
|
1409
|
+
metaLinks?: RevisionPageMetaLinks;
|
|
1386
1410
|
} & ({
|
|
1387
1411
|
computed: ComputedContentSourceDocument;
|
|
1388
1412
|
/** Seed to use for the generation of IDs. */
|
|
@@ -1550,6 +1574,11 @@ export interface RevisionPageDocumentCover {
|
|
|
1550
1574
|
}
|
|
1551
1575
|
export type VariableValue = string | number | boolean;
|
|
1552
1576
|
export type Variables = Record<string, VariableValue>;
|
|
1577
|
+
export type RevisionPageMetaLinkTarget = ContentRefPage | ContentRefURL;
|
|
1578
|
+
export interface RevisionPageMetaLinks {
|
|
1579
|
+
canonical?: RevisionPageMetaLinkTarget;
|
|
1580
|
+
alternates?: RevisionPageMetaLinkTarget[];
|
|
1581
|
+
}
|
|
1553
1582
|
/** Parameters for an OpenAPI computed document */
|
|
1554
1583
|
export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIBase & {
|
|
1555
1584
|
props: {
|
|
@@ -8159,6 +8188,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8159
8188
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8160
8189
|
items: ContentLocation[];
|
|
8161
8190
|
}, any>>;
|
|
8191
|
+
/**
|
|
8192
|
+
* No description
|
|
8193
|
+
*
|
|
8194
|
+
* @tags space-content
|
|
8195
|
+
* @name ListSpacePageMetaLinks
|
|
8196
|
+
* @summary List all meta links for a space page
|
|
8197
|
+
* @request GET:/spaces/{spaceId}/content/page/{pageId}/meta-links
|
|
8198
|
+
* @secure
|
|
8199
|
+
*/
|
|
8200
|
+
listSpacePageMetaLinks: (spaceId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
8162
8201
|
/**
|
|
8163
8202
|
* No description
|
|
8164
8203
|
*
|
|
@@ -8878,6 +8917,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8878
8917
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8879
8918
|
items: ContentLocation[];
|
|
8880
8919
|
}, any>>;
|
|
8920
|
+
/**
|
|
8921
|
+
* No description
|
|
8922
|
+
*
|
|
8923
|
+
* @tags change-request-content
|
|
8924
|
+
* @name ListChangeRequestPageMetaLinks
|
|
8925
|
+
* @summary List all meta links of a change request page
|
|
8926
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links
|
|
8927
|
+
* @secure
|
|
8928
|
+
*/
|
|
8929
|
+
listChangeRequestPageMetaLinks: (spaceId: string, changeRequestId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
8881
8930
|
/**
|
|
8882
8931
|
* No description
|
|
8883
8932
|
*
|
|
@@ -9142,6 +9191,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9142
9191
|
*/
|
|
9143
9192
|
computed?: boolean;
|
|
9144
9193
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
9194
|
+
/**
|
|
9195
|
+
* No description
|
|
9196
|
+
*
|
|
9197
|
+
* @tags space-content
|
|
9198
|
+
* @name ListRevisionPageMetaLinks
|
|
9199
|
+
* @summary List all meta links for a revision page
|
|
9200
|
+
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links
|
|
9201
|
+
* @secure
|
|
9202
|
+
*/
|
|
9203
|
+
listRevisionPageMetaLinks: (spaceId: string, revisionId: string, pageId: string, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
9145
9204
|
/**
|
|
9146
9205
|
* No description
|
|
9147
9206
|
*
|
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.
|
|
444
|
+
var version = "0.149.0";
|
|
445
445
|
|
|
446
446
|
// src/client.ts
|
|
447
447
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1782,6 +1782,13 @@ var Api = class extends HttpClient {
|
|
|
1782
1782
|
format: "json",
|
|
1783
1783
|
...params
|
|
1784
1784
|
}),
|
|
1785
|
+
listSpacePageMetaLinks: (spaceId, pageId, params = {}) => this.request({
|
|
1786
|
+
path: `/spaces/${spaceId}/content/page/${pageId}/meta-links`,
|
|
1787
|
+
method: "GET",
|
|
1788
|
+
secure: true,
|
|
1789
|
+
format: "json",
|
|
1790
|
+
...params
|
|
1791
|
+
}),
|
|
1785
1792
|
getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
|
|
1786
1793
|
path: `/spaces/${spaceId}/content/path/${pagePath}`,
|
|
1787
1794
|
method: "GET",
|
|
@@ -2080,6 +2087,13 @@ var Api = class extends HttpClient {
|
|
|
2080
2087
|
format: "json",
|
|
2081
2088
|
...params
|
|
2082
2089
|
}),
|
|
2090
|
+
listChangeRequestPageMetaLinks: (spaceId, changeRequestId, pageId, params = {}) => this.request({
|
|
2091
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/meta-links`,
|
|
2092
|
+
method: "GET",
|
|
2093
|
+
secure: true,
|
|
2094
|
+
format: "json",
|
|
2095
|
+
...params
|
|
2096
|
+
}),
|
|
2083
2097
|
getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
|
|
2084
2098
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
|
|
2085
2099
|
method: "GET",
|
|
@@ -2168,6 +2182,13 @@ var Api = class extends HttpClient {
|
|
|
2168
2182
|
format: "json",
|
|
2169
2183
|
...params
|
|
2170
2184
|
}),
|
|
2185
|
+
listRevisionPageMetaLinks: (spaceId, revisionId, pageId, params = {}) => this.request({
|
|
2186
|
+
path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/meta-links`,
|
|
2187
|
+
method: "GET",
|
|
2188
|
+
secure: true,
|
|
2189
|
+
format: "json",
|
|
2190
|
+
...params
|
|
2191
|
+
}),
|
|
2171
2192
|
getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
|
|
2172
2193
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
|
|
2173
2194
|
method: "GET",
|
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.149.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1513,6 +1513,13 @@ var Api = class extends HttpClient {
|
|
|
1513
1513
|
format: "json",
|
|
1514
1514
|
...params
|
|
1515
1515
|
}),
|
|
1516
|
+
listSpacePageMetaLinks: (spaceId, pageId, params = {}) => this.request({
|
|
1517
|
+
path: `/spaces/${spaceId}/content/page/${pageId}/meta-links`,
|
|
1518
|
+
method: "GET",
|
|
1519
|
+
secure: true,
|
|
1520
|
+
format: "json",
|
|
1521
|
+
...params
|
|
1522
|
+
}),
|
|
1516
1523
|
getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
|
|
1517
1524
|
path: `/spaces/${spaceId}/content/path/${pagePath}`,
|
|
1518
1525
|
method: "GET",
|
|
@@ -1811,6 +1818,13 @@ var Api = class extends HttpClient {
|
|
|
1811
1818
|
format: "json",
|
|
1812
1819
|
...params
|
|
1813
1820
|
}),
|
|
1821
|
+
listChangeRequestPageMetaLinks: (spaceId, changeRequestId, pageId, params = {}) => this.request({
|
|
1822
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/meta-links`,
|
|
1823
|
+
method: "GET",
|
|
1824
|
+
secure: true,
|
|
1825
|
+
format: "json",
|
|
1826
|
+
...params
|
|
1827
|
+
}),
|
|
1814
1828
|
getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
|
|
1815
1829
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
|
|
1816
1830
|
method: "GET",
|
|
@@ -1899,6 +1913,13 @@ var Api = class extends HttpClient {
|
|
|
1899
1913
|
format: "json",
|
|
1900
1914
|
...params
|
|
1901
1915
|
}),
|
|
1916
|
+
listRevisionPageMetaLinks: (spaceId, revisionId, pageId, params = {}) => this.request({
|
|
1917
|
+
path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/meta-links`,
|
|
1918
|
+
method: "GET",
|
|
1919
|
+
secure: true,
|
|
1920
|
+
format: "json",
|
|
1921
|
+
...params
|
|
1922
|
+
}),
|
|
1902
1923
|
getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
|
|
1903
1924
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
|
|
1904
1925
|
method: "GET",
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -1981,6 +1981,40 @@
|
|
|
1981
1981
|
}
|
|
1982
1982
|
}
|
|
1983
1983
|
},
|
|
1984
|
+
"/spaces/{spaceId}/content/page/{pageId}/meta-links": {
|
|
1985
|
+
"get": {
|
|
1986
|
+
"operationId": "listSpacePageMetaLinks",
|
|
1987
|
+
"summary": "List all meta links for a space page",
|
|
1988
|
+
"tags": [
|
|
1989
|
+
"space-content"
|
|
1990
|
+
],
|
|
1991
|
+
"security": [
|
|
1992
|
+
{
|
|
1993
|
+
"user": []
|
|
1994
|
+
}
|
|
1995
|
+
],
|
|
1996
|
+
"parameters": [
|
|
1997
|
+
{
|
|
1998
|
+
"$ref": "#/components/parameters/spaceId"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"$ref": "#/components/parameters/pageId"
|
|
2002
|
+
}
|
|
2003
|
+
],
|
|
2004
|
+
"responses": {
|
|
2005
|
+
"200": {
|
|
2006
|
+
"description": "OK",
|
|
2007
|
+
"content": {
|
|
2008
|
+
"application/json": {
|
|
2009
|
+
"schema": {
|
|
2010
|
+
"$ref": "#/components/schemas/RevisionPageMetaLinks"
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
1984
2018
|
"/spaces/{spaceId}/content/path/{pagePath}": {
|
|
1985
2019
|
"get": {
|
|
1986
2020
|
"operationId": "getPageByPath",
|
|
@@ -3999,6 +4033,43 @@
|
|
|
3999
4033
|
}
|
|
4000
4034
|
}
|
|
4001
4035
|
},
|
|
4036
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links": {
|
|
4037
|
+
"get": {
|
|
4038
|
+
"operationId": "listChangeRequestPageMetaLinks",
|
|
4039
|
+
"summary": "List all meta links of a change request page",
|
|
4040
|
+
"tags": [
|
|
4041
|
+
"change-request-content"
|
|
4042
|
+
],
|
|
4043
|
+
"security": [
|
|
4044
|
+
{
|
|
4045
|
+
"user": []
|
|
4046
|
+
}
|
|
4047
|
+
],
|
|
4048
|
+
"parameters": [
|
|
4049
|
+
{
|
|
4050
|
+
"$ref": "#/components/parameters/spaceId"
|
|
4051
|
+
},
|
|
4052
|
+
{
|
|
4053
|
+
"$ref": "#/components/parameters/changeRequestId"
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
"$ref": "#/components/parameters/pageId"
|
|
4057
|
+
}
|
|
4058
|
+
],
|
|
4059
|
+
"responses": {
|
|
4060
|
+
"200": {
|
|
4061
|
+
"description": "OK",
|
|
4062
|
+
"content": {
|
|
4063
|
+
"application/json": {
|
|
4064
|
+
"schema": {
|
|
4065
|
+
"$ref": "#/components/schemas/RevisionPageMetaLinks"
|
|
4066
|
+
}
|
|
4067
|
+
}
|
|
4068
|
+
}
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
4071
|
+
}
|
|
4072
|
+
},
|
|
4002
4073
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}": {
|
|
4003
4074
|
"get": {
|
|
4004
4075
|
"operationId": "getReusableContentInChangeRequestById",
|
|
@@ -4542,6 +4613,43 @@
|
|
|
4542
4613
|
}
|
|
4543
4614
|
}
|
|
4544
4615
|
},
|
|
4616
|
+
"/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links": {
|
|
4617
|
+
"get": {
|
|
4618
|
+
"operationId": "listRevisionPageMetaLinks",
|
|
4619
|
+
"summary": "List all meta links for a revision page",
|
|
4620
|
+
"tags": [
|
|
4621
|
+
"space-content"
|
|
4622
|
+
],
|
|
4623
|
+
"security": [
|
|
4624
|
+
{
|
|
4625
|
+
"user": []
|
|
4626
|
+
}
|
|
4627
|
+
],
|
|
4628
|
+
"parameters": [
|
|
4629
|
+
{
|
|
4630
|
+
"$ref": "#/components/parameters/spaceId"
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
"$ref": "#/components/parameters/revisionId"
|
|
4634
|
+
},
|
|
4635
|
+
{
|
|
4636
|
+
"$ref": "#/components/parameters/pageId"
|
|
4637
|
+
}
|
|
4638
|
+
],
|
|
4639
|
+
"responses": {
|
|
4640
|
+
"200": {
|
|
4641
|
+
"description": "OK",
|
|
4642
|
+
"content": {
|
|
4643
|
+
"application/json": {
|
|
4644
|
+
"schema": {
|
|
4645
|
+
"$ref": "#/components/schemas/RevisionPageMetaLinks"
|
|
4646
|
+
}
|
|
4647
|
+
}
|
|
4648
|
+
}
|
|
4649
|
+
}
|
|
4650
|
+
}
|
|
4651
|
+
}
|
|
4652
|
+
},
|
|
4545
4653
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}": {
|
|
4546
4654
|
"get": {
|
|
4547
4655
|
"operationId": "getPageInChangeRequestByPath",
|
|
@@ -22362,6 +22470,152 @@
|
|
|
22362
22470
|
"isVoid"
|
|
22363
22471
|
]
|
|
22364
22472
|
},
|
|
22473
|
+
"DocumentBlockUpdate": {
|
|
22474
|
+
"type": "object",
|
|
22475
|
+
"properties": {
|
|
22476
|
+
"object": {
|
|
22477
|
+
"type": "string",
|
|
22478
|
+
"enum": [
|
|
22479
|
+
"block"
|
|
22480
|
+
]
|
|
22481
|
+
},
|
|
22482
|
+
"type": {
|
|
22483
|
+
"type": "string",
|
|
22484
|
+
"enum": [
|
|
22485
|
+
"update"
|
|
22486
|
+
]
|
|
22487
|
+
},
|
|
22488
|
+
"key": {
|
|
22489
|
+
"type": "string"
|
|
22490
|
+
},
|
|
22491
|
+
"nodes": {
|
|
22492
|
+
"type": "array",
|
|
22493
|
+
"items": {
|
|
22494
|
+
"oneOf": [
|
|
22495
|
+
{
|
|
22496
|
+
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
22497
|
+
},
|
|
22498
|
+
{
|
|
22499
|
+
"$ref": "#/components/schemas/DocumentBlockContentRef"
|
|
22500
|
+
},
|
|
22501
|
+
{
|
|
22502
|
+
"$ref": "#/components/schemas/DocumentBlockCode"
|
|
22503
|
+
},
|
|
22504
|
+
{
|
|
22505
|
+
"$ref": "#/components/schemas/DocumentBlockEmbed"
|
|
22506
|
+
},
|
|
22507
|
+
{
|
|
22508
|
+
"$ref": "#/components/schemas/DocumentBlockFile"
|
|
22509
|
+
},
|
|
22510
|
+
{
|
|
22511
|
+
"$ref": "#/components/schemas/DocumentBlockImages"
|
|
22512
|
+
},
|
|
22513
|
+
{
|
|
22514
|
+
"$ref": "#/components/schemas/DocumentBlockDrawing"
|
|
22515
|
+
},
|
|
22516
|
+
{
|
|
22517
|
+
"$ref": "#/components/schemas/DocumentBlockHint"
|
|
22518
|
+
},
|
|
22519
|
+
{
|
|
22520
|
+
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
22521
|
+
},
|
|
22522
|
+
{
|
|
22523
|
+
"$ref": "#/components/schemas/DocumentBlockMath"
|
|
22524
|
+
},
|
|
22525
|
+
{
|
|
22526
|
+
"$ref": "#/components/schemas/DocumentBlockIntegration"
|
|
22527
|
+
},
|
|
22528
|
+
{
|
|
22529
|
+
"$ref": "#/components/schemas/DocumentBlockTabs"
|
|
22530
|
+
},
|
|
22531
|
+
{
|
|
22532
|
+
"$ref": "#/components/schemas/DocumentBlockExpandable"
|
|
22533
|
+
}
|
|
22534
|
+
]
|
|
22535
|
+
}
|
|
22536
|
+
},
|
|
22537
|
+
"data": {
|
|
22538
|
+
"type": "object",
|
|
22539
|
+
"properties": {
|
|
22540
|
+
"date": {
|
|
22541
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
22542
|
+
},
|
|
22543
|
+
"tags": {
|
|
22544
|
+
"type": "array",
|
|
22545
|
+
"items": {
|
|
22546
|
+
"type": "string"
|
|
22547
|
+
}
|
|
22548
|
+
}
|
|
22549
|
+
},
|
|
22550
|
+
"required": [
|
|
22551
|
+
"date"
|
|
22552
|
+
]
|
|
22553
|
+
},
|
|
22554
|
+
"isVoid": {
|
|
22555
|
+
"type": "boolean",
|
|
22556
|
+
"enum": [
|
|
22557
|
+
false
|
|
22558
|
+
]
|
|
22559
|
+
}
|
|
22560
|
+
},
|
|
22561
|
+
"required": [
|
|
22562
|
+
"object",
|
|
22563
|
+
"type",
|
|
22564
|
+
"nodes",
|
|
22565
|
+
"data"
|
|
22566
|
+
]
|
|
22567
|
+
},
|
|
22568
|
+
"DocumentBlockUpdates": {
|
|
22569
|
+
"type": "object",
|
|
22570
|
+
"properties": {
|
|
22571
|
+
"object": {
|
|
22572
|
+
"type": "string",
|
|
22573
|
+
"enum": [
|
|
22574
|
+
"block"
|
|
22575
|
+
]
|
|
22576
|
+
},
|
|
22577
|
+
"type": {
|
|
22578
|
+
"type": "string",
|
|
22579
|
+
"enum": [
|
|
22580
|
+
"updates"
|
|
22581
|
+
]
|
|
22582
|
+
},
|
|
22583
|
+
"key": {
|
|
22584
|
+
"type": "string"
|
|
22585
|
+
},
|
|
22586
|
+
"nodes": {
|
|
22587
|
+
"type": "array",
|
|
22588
|
+
"items": {
|
|
22589
|
+
"$ref": "#/components/schemas/DocumentBlockUpdate"
|
|
22590
|
+
}
|
|
22591
|
+
},
|
|
22592
|
+
"isVoid": {
|
|
22593
|
+
"type": "boolean",
|
|
22594
|
+
"enum": [
|
|
22595
|
+
false
|
|
22596
|
+
]
|
|
22597
|
+
},
|
|
22598
|
+
"data": {
|
|
22599
|
+
"type": "object",
|
|
22600
|
+
"properties": {
|
|
22601
|
+
"format": {
|
|
22602
|
+
"type": "string",
|
|
22603
|
+
"enum": [
|
|
22604
|
+
"numeric",
|
|
22605
|
+
"full"
|
|
22606
|
+
],
|
|
22607
|
+
"default": "full"
|
|
22608
|
+
}
|
|
22609
|
+
},
|
|
22610
|
+
"additionalProperties": false
|
|
22611
|
+
}
|
|
22612
|
+
},
|
|
22613
|
+
"required": [
|
|
22614
|
+
"object",
|
|
22615
|
+
"type",
|
|
22616
|
+
"nodes"
|
|
22617
|
+
]
|
|
22618
|
+
},
|
|
22365
22619
|
"DocumentBlock": {
|
|
22366
22620
|
"oneOf": [
|
|
22367
22621
|
{
|
|
@@ -22462,6 +22716,12 @@
|
|
|
22462
22716
|
},
|
|
22463
22717
|
{
|
|
22464
22718
|
"$ref": "#/components/schemas/DocumentBlockColumn"
|
|
22719
|
+
},
|
|
22720
|
+
{
|
|
22721
|
+
"$ref": "#/components/schemas/DocumentBlockUpdates"
|
|
22722
|
+
},
|
|
22723
|
+
{
|
|
22724
|
+
"$ref": "#/components/schemas/DocumentBlockUpdate"
|
|
22465
22725
|
}
|
|
22466
22726
|
]
|
|
22467
22727
|
},
|
|
@@ -22727,6 +22987,10 @@
|
|
|
22727
22987
|
"type": "boolean",
|
|
22728
22988
|
"description": "If true, the page is not indexable by search engine robots.",
|
|
22729
22989
|
"default": false
|
|
22990
|
+
},
|
|
22991
|
+
"metaLinks": {
|
|
22992
|
+
"description": "Meta links associated with the page.",
|
|
22993
|
+
"$ref": "#/components/schemas/RevisionPageMetaLinks"
|
|
22730
22994
|
}
|
|
22731
22995
|
},
|
|
22732
22996
|
"required": [
|
|
@@ -23328,6 +23592,30 @@
|
|
|
23328
23592
|
"$ref": "#/components/schemas/VariableValue"
|
|
23329
23593
|
}
|
|
23330
23594
|
},
|
|
23595
|
+
"RevisionPageMetaLinkTarget": {
|
|
23596
|
+
"oneOf": [
|
|
23597
|
+
{
|
|
23598
|
+
"$ref": "#/components/schemas/ContentRefPage"
|
|
23599
|
+
},
|
|
23600
|
+
{
|
|
23601
|
+
"$ref": "#/components/schemas/ContentRefURL"
|
|
23602
|
+
}
|
|
23603
|
+
]
|
|
23604
|
+
},
|
|
23605
|
+
"RevisionPageMetaLinks": {
|
|
23606
|
+
"type": "object",
|
|
23607
|
+
"properties": {
|
|
23608
|
+
"canonical": {
|
|
23609
|
+
"$ref": "#/components/schemas/RevisionPageMetaLinkTarget"
|
|
23610
|
+
},
|
|
23611
|
+
"alternates": {
|
|
23612
|
+
"type": "array",
|
|
23613
|
+
"items": {
|
|
23614
|
+
"$ref": "#/components/schemas/RevisionPageMetaLinkTarget"
|
|
23615
|
+
}
|
|
23616
|
+
}
|
|
23617
|
+
}
|
|
23618
|
+
},
|
|
23331
23619
|
"ComputedContentSourceDocumentOpenAPI": {
|
|
23332
23620
|
"allOf": [
|
|
23333
23621
|
{
|
package/spec/openapi.yaml
CHANGED
|
@@ -1342,6 +1342,24 @@ paths:
|
|
|
1342
1342
|
type: array
|
|
1343
1343
|
items:
|
|
1344
1344
|
$ref: "#/components/schemas/ContentLocation"
|
|
1345
|
+
"/spaces/{spaceId}/content/page/{pageId}/meta-links":
|
|
1346
|
+
get:
|
|
1347
|
+
operationId: listSpacePageMetaLinks
|
|
1348
|
+
summary: List all meta links for a space page
|
|
1349
|
+
tags:
|
|
1350
|
+
- space-content
|
|
1351
|
+
security:
|
|
1352
|
+
- user: []
|
|
1353
|
+
parameters:
|
|
1354
|
+
- $ref: "#/components/parameters/spaceId"
|
|
1355
|
+
- $ref: "#/components/parameters/pageId"
|
|
1356
|
+
responses:
|
|
1357
|
+
"200":
|
|
1358
|
+
description: OK
|
|
1359
|
+
content:
|
|
1360
|
+
application/json:
|
|
1361
|
+
schema:
|
|
1362
|
+
$ref: "#/components/schemas/RevisionPageMetaLinks"
|
|
1345
1363
|
"/spaces/{spaceId}/content/path/{pagePath}":
|
|
1346
1364
|
get:
|
|
1347
1365
|
operationId: getPageByPath
|
|
@@ -2420,6 +2438,25 @@ paths:
|
|
|
2420
2438
|
type: array
|
|
2421
2439
|
items:
|
|
2422
2440
|
$ref: "#/components/schemas/ContentLocation"
|
|
2441
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links":
|
|
2442
|
+
get:
|
|
2443
|
+
operationId: listChangeRequestPageMetaLinks
|
|
2444
|
+
summary: List all meta links of a change request page
|
|
2445
|
+
tags:
|
|
2446
|
+
- change-request-content
|
|
2447
|
+
security:
|
|
2448
|
+
- user: []
|
|
2449
|
+
parameters:
|
|
2450
|
+
- $ref: "#/components/parameters/spaceId"
|
|
2451
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
2452
|
+
- $ref: "#/components/parameters/pageId"
|
|
2453
|
+
responses:
|
|
2454
|
+
"200":
|
|
2455
|
+
description: OK
|
|
2456
|
+
content:
|
|
2457
|
+
application/json:
|
|
2458
|
+
schema:
|
|
2459
|
+
$ref: "#/components/schemas/RevisionPageMetaLinks"
|
|
2423
2460
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}":
|
|
2424
2461
|
get:
|
|
2425
2462
|
operationId: getReusableContentInChangeRequestById
|
|
@@ -2697,6 +2734,25 @@ paths:
|
|
|
2697
2734
|
oneOf:
|
|
2698
2735
|
- $ref: "#/components/schemas/RevisionPageDocument"
|
|
2699
2736
|
- $ref: "#/components/schemas/RevisionPageGroup"
|
|
2737
|
+
"/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links":
|
|
2738
|
+
get:
|
|
2739
|
+
operationId: listRevisionPageMetaLinks
|
|
2740
|
+
summary: List all meta links for a revision page
|
|
2741
|
+
tags:
|
|
2742
|
+
- space-content
|
|
2743
|
+
security:
|
|
2744
|
+
- user: []
|
|
2745
|
+
parameters:
|
|
2746
|
+
- $ref: "#/components/parameters/spaceId"
|
|
2747
|
+
- $ref: "#/components/parameters/revisionId"
|
|
2748
|
+
- $ref: "#/components/parameters/pageId"
|
|
2749
|
+
responses:
|
|
2750
|
+
"200":
|
|
2751
|
+
description: OK
|
|
2752
|
+
content:
|
|
2753
|
+
application/json:
|
|
2754
|
+
schema:
|
|
2755
|
+
$ref: "#/components/schemas/RevisionPageMetaLinks"
|
|
2700
2756
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}":
|
|
2701
2757
|
get:
|
|
2702
2758
|
operationId: getPageInChangeRequestByPath
|
|
@@ -13202,6 +13258,91 @@ components:
|
|
|
13202
13258
|
- data
|
|
13203
13259
|
- nodes
|
|
13204
13260
|
- isVoid
|
|
13261
|
+
DocumentBlockUpdate:
|
|
13262
|
+
type: object
|
|
13263
|
+
properties:
|
|
13264
|
+
object:
|
|
13265
|
+
type: string
|
|
13266
|
+
enum:
|
|
13267
|
+
- block
|
|
13268
|
+
type:
|
|
13269
|
+
type: string
|
|
13270
|
+
enum:
|
|
13271
|
+
- update
|
|
13272
|
+
key:
|
|
13273
|
+
type: string
|
|
13274
|
+
nodes:
|
|
13275
|
+
type: array
|
|
13276
|
+
items:
|
|
13277
|
+
oneOf:
|
|
13278
|
+
- $ref: "#/components/schemas/DocumentBlocksEssentials"
|
|
13279
|
+
- $ref: "#/components/schemas/DocumentBlockContentRef"
|
|
13280
|
+
- $ref: "#/components/schemas/DocumentBlockCode"
|
|
13281
|
+
- $ref: "#/components/schemas/DocumentBlockEmbed"
|
|
13282
|
+
- $ref: "#/components/schemas/DocumentBlockFile"
|
|
13283
|
+
- $ref: "#/components/schemas/DocumentBlockImages"
|
|
13284
|
+
- $ref: "#/components/schemas/DocumentBlockDrawing"
|
|
13285
|
+
- $ref: "#/components/schemas/DocumentBlockHint"
|
|
13286
|
+
- $ref: "#/components/schemas/DocumentBlockQuote"
|
|
13287
|
+
- $ref: "#/components/schemas/DocumentBlockMath"
|
|
13288
|
+
- $ref: "#/components/schemas/DocumentBlockIntegration"
|
|
13289
|
+
- $ref: "#/components/schemas/DocumentBlockTabs"
|
|
13290
|
+
- $ref: "#/components/schemas/DocumentBlockExpandable"
|
|
13291
|
+
data:
|
|
13292
|
+
type: object
|
|
13293
|
+
properties:
|
|
13294
|
+
date:
|
|
13295
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13296
|
+
tags:
|
|
13297
|
+
type: array
|
|
13298
|
+
items:
|
|
13299
|
+
type: string
|
|
13300
|
+
required:
|
|
13301
|
+
- date
|
|
13302
|
+
isVoid:
|
|
13303
|
+
type: boolean
|
|
13304
|
+
enum:
|
|
13305
|
+
- false
|
|
13306
|
+
required:
|
|
13307
|
+
- object
|
|
13308
|
+
- type
|
|
13309
|
+
- nodes
|
|
13310
|
+
- data
|
|
13311
|
+
DocumentBlockUpdates:
|
|
13312
|
+
type: object
|
|
13313
|
+
properties:
|
|
13314
|
+
object:
|
|
13315
|
+
type: string
|
|
13316
|
+
enum:
|
|
13317
|
+
- block
|
|
13318
|
+
type:
|
|
13319
|
+
type: string
|
|
13320
|
+
enum:
|
|
13321
|
+
- updates
|
|
13322
|
+
key:
|
|
13323
|
+
type: string
|
|
13324
|
+
nodes:
|
|
13325
|
+
type: array
|
|
13326
|
+
items:
|
|
13327
|
+
$ref: "#/components/schemas/DocumentBlockUpdate"
|
|
13328
|
+
isVoid:
|
|
13329
|
+
type: boolean
|
|
13330
|
+
enum:
|
|
13331
|
+
- false
|
|
13332
|
+
data:
|
|
13333
|
+
type: object
|
|
13334
|
+
properties:
|
|
13335
|
+
format:
|
|
13336
|
+
type: string
|
|
13337
|
+
enum:
|
|
13338
|
+
- numeric
|
|
13339
|
+
- full
|
|
13340
|
+
default: full
|
|
13341
|
+
additionalProperties: false
|
|
13342
|
+
required:
|
|
13343
|
+
- object
|
|
13344
|
+
- type
|
|
13345
|
+
- nodes
|
|
13205
13346
|
DocumentBlock:
|
|
13206
13347
|
oneOf:
|
|
13207
13348
|
- $ref: "#/components/schemas/DocumentBlockParagraph"
|
|
@@ -13237,6 +13378,8 @@ components:
|
|
|
13237
13378
|
- $ref: "#/components/schemas/DocumentBlockStepperStep"
|
|
13238
13379
|
- $ref: "#/components/schemas/DocumentBlockColumns"
|
|
13239
13380
|
- $ref: "#/components/schemas/DocumentBlockColumn"
|
|
13381
|
+
- $ref: "#/components/schemas/DocumentBlockUpdates"
|
|
13382
|
+
- $ref: "#/components/schemas/DocumentBlockUpdate"
|
|
13240
13383
|
DocumentInlineMention:
|
|
13241
13384
|
type: object
|
|
13242
13385
|
properties:
|
|
@@ -13405,6 +13548,9 @@ components:
|
|
|
13405
13548
|
type: boolean
|
|
13406
13549
|
description: If true, the page is not indexable by search engine robots.
|
|
13407
13550
|
default: false
|
|
13551
|
+
metaLinks:
|
|
13552
|
+
description: Meta links associated with the page.
|
|
13553
|
+
$ref: "#/components/schemas/RevisionPageMetaLinks"
|
|
13408
13554
|
required:
|
|
13409
13555
|
- kind
|
|
13410
13556
|
- type
|
|
@@ -13784,6 +13930,19 @@ components:
|
|
|
13784
13930
|
type: object
|
|
13785
13931
|
additionalProperties:
|
|
13786
13932
|
$ref: "#/components/schemas/VariableValue"
|
|
13933
|
+
RevisionPageMetaLinkTarget:
|
|
13934
|
+
oneOf:
|
|
13935
|
+
- $ref: "#/components/schemas/ContentRefPage"
|
|
13936
|
+
- $ref: "#/components/schemas/ContentRefURL"
|
|
13937
|
+
RevisionPageMetaLinks:
|
|
13938
|
+
type: object
|
|
13939
|
+
properties:
|
|
13940
|
+
canonical:
|
|
13941
|
+
$ref: "#/components/schemas/RevisionPageMetaLinkTarget"
|
|
13942
|
+
alternates:
|
|
13943
|
+
type: array
|
|
13944
|
+
items:
|
|
13945
|
+
$ref: "#/components/schemas/RevisionPageMetaLinkTarget"
|
|
13787
13946
|
ComputedContentSourceDocumentOpenAPI:
|
|
13788
13947
|
allOf:
|
|
13789
13948
|
- $ref: "#/components/schemas/ComputedContentSourceOpenAPIBase"
|