@gitbook/api 0.65.0 → 0.66.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 +55 -4
- package/dist/index.cjs +19 -2
- package/dist/index.js +18 -2
- package/package.json +1 -1
- package/spec/openapi.json +130 -13
- package/spec/openapi.yaml +86 -10
package/dist/client.d.ts
CHANGED
|
@@ -1949,6 +1949,15 @@ export interface ContentReferencesStats {
|
|
|
1949
1949
|
changeRequest?: number;
|
|
1950
1950
|
};
|
|
1951
1951
|
}
|
|
1952
|
+
/**
|
|
1953
|
+
* Indicator of the relationship with the content ref target.
|
|
1954
|
+
* - `reference` - The content soft-references the ref target
|
|
1955
|
+
* - `dependsOn` - The content depends on the ref target
|
|
1956
|
+
*/
|
|
1957
|
+
export declare enum ContentReferenceRelation {
|
|
1958
|
+
Reference = "reference",
|
|
1959
|
+
DependsOn = "dependsOn"
|
|
1960
|
+
}
|
|
1952
1961
|
export interface ContentReferenceUsage {
|
|
1953
1962
|
/**
|
|
1954
1963
|
* Text to display to represent the reference. Possible values include:
|
|
@@ -1957,6 +1966,12 @@ export interface ContentReferenceUsage {
|
|
|
1957
1966
|
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1958
1967
|
*/
|
|
1959
1968
|
status: ContentReferenceStatus;
|
|
1969
|
+
/**
|
|
1970
|
+
* Indicator of the relationship with the content ref target.
|
|
1971
|
+
* - `reference` - The content soft-references the ref target
|
|
1972
|
+
* - `dependsOn` - The content depends on the ref target
|
|
1973
|
+
*/
|
|
1974
|
+
relation: ContentReferenceRelation;
|
|
1960
1975
|
/** The reference target where a list of pages are pointing at */
|
|
1961
1976
|
targetReference?: ContentLocation;
|
|
1962
1977
|
/** Pages locations where a link to the target is found. */
|
|
@@ -3298,13 +3313,21 @@ export interface ContentKitConfiguration {
|
|
|
3298
3313
|
}
|
|
3299
3314
|
/** Element used as root */
|
|
3300
3315
|
export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
|
|
3301
|
-
/** Output of the
|
|
3302
|
-
export interface
|
|
3316
|
+
/** Output of type element in the lifecycle of the component. */
|
|
3317
|
+
export interface ContentKitRenderOutputElement {
|
|
3318
|
+
type?: 'element';
|
|
3303
3319
|
/** Element used as root */
|
|
3304
3320
|
element: ContentKitRootElement;
|
|
3305
3321
|
state: object;
|
|
3306
3322
|
props: PlainObject;
|
|
3307
3323
|
}
|
|
3324
|
+
/** Output of completed lifecycle of the component. */
|
|
3325
|
+
export interface ContentKitRenderOutputComplete {
|
|
3326
|
+
type: 'complete';
|
|
3327
|
+
returnValue?: object;
|
|
3328
|
+
}
|
|
3329
|
+
/** Output of the integration when rendering a UI. */
|
|
3330
|
+
export type ContentKitRenderOutput = ContentKitRenderOutputElement | ContentKitRenderOutputComplete;
|
|
3308
3331
|
export interface RenderIntegrationUI {
|
|
3309
3332
|
/** ID of the component to render in the integration. */
|
|
3310
3333
|
componentId: string;
|
|
@@ -3678,6 +3701,8 @@ export type OrganizationUsageSites = {
|
|
|
3678
3701
|
premium: number;
|
|
3679
3702
|
/** Count of all ultimate sites */
|
|
3680
3703
|
ultimate: number;
|
|
3704
|
+
/** Count of all sponsored sites */
|
|
3705
|
+
sponsored: number;
|
|
3681
3706
|
};
|
|
3682
3707
|
/** Team members usage metrics of an organization */
|
|
3683
3708
|
export interface OrganizationUsageTeams {
|
|
@@ -3843,6 +3868,7 @@ export declare enum SiteType {
|
|
|
3843
3868
|
Basic = "basic",
|
|
3844
3869
|
Premium = "premium",
|
|
3845
3870
|
Ultimate = "ultimate",
|
|
3871
|
+
Sponsored = "sponsored",
|
|
3846
3872
|
LegacyBasic = "legacy-basic",
|
|
3847
3873
|
LegacyPremium = "legacy-premium"
|
|
3848
3874
|
}
|
|
@@ -6372,6 +6398,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6372
6398
|
/** Temporary URL to print the content. The URL will work for 1h. */
|
|
6373
6399
|
url: URL;
|
|
6374
6400
|
}, Error>>;
|
|
6401
|
+
/**
|
|
6402
|
+
* No description
|
|
6403
|
+
*
|
|
6404
|
+
* @tags spaces
|
|
6405
|
+
* @name GetSyncedBlockContentInChangeRequest
|
|
6406
|
+
* @summary Get the content of a synced block in the context of a change request.
|
|
6407
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content
|
|
6408
|
+
* @secure
|
|
6409
|
+
*/
|
|
6410
|
+
getSyncedBlockContentInChangeRequest: (spaceId: string, changeRequestId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
6411
|
+
document: JSONDocument;
|
|
6412
|
+
files: RevisionFile[];
|
|
6413
|
+
}, Error | {
|
|
6414
|
+
error: {
|
|
6415
|
+
/** @format int32 */
|
|
6416
|
+
code: 404;
|
|
6417
|
+
message: string;
|
|
6418
|
+
};
|
|
6419
|
+
}>>;
|
|
6375
6420
|
/**
|
|
6376
6421
|
* No description
|
|
6377
6422
|
*
|
|
@@ -8857,14 +8902,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8857
8902
|
*
|
|
8858
8903
|
* @tags organizations
|
|
8859
8904
|
* @name GetSyncedBlockContent
|
|
8860
|
-
* @summary Get a synced block
|
|
8905
|
+
* @summary Get the content of a synced block.
|
|
8861
8906
|
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content
|
|
8862
8907
|
* @secure
|
|
8863
8908
|
*/
|
|
8864
8909
|
getSyncedBlockContent: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
8865
8910
|
document: JSONDocument;
|
|
8866
8911
|
files: RevisionFile[];
|
|
8867
|
-
}, Error
|
|
8912
|
+
}, Error | {
|
|
8913
|
+
error: {
|
|
8914
|
+
/** @format int32 */
|
|
8915
|
+
code: 404;
|
|
8916
|
+
message: string;
|
|
8917
|
+
};
|
|
8918
|
+
}>>;
|
|
8868
8919
|
/**
|
|
8869
8920
|
* No description
|
|
8870
8921
|
*
|
package/dist/index.cjs
CHANGED
|
@@ -192,6 +192,7 @@ __export(src_exports, {
|
|
|
192
192
|
CloudflareHostnameTLSStatus: () => CloudflareHostnameTLSStatus,
|
|
193
193
|
CloudflareHostnameTLSValidationMethod: () => CloudflareHostnameTLSValidationMethod,
|
|
194
194
|
ContentKitIcon: () => ContentKitIcon,
|
|
195
|
+
ContentReferenceRelation: () => ContentReferenceRelation,
|
|
195
196
|
ContentReferenceStatus: () => ContentReferenceStatus,
|
|
196
197
|
ContentType: () => ContentType,
|
|
197
198
|
ContentVisibility: () => ContentVisibility,
|
|
@@ -241,7 +242,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
241
242
|
|
|
242
243
|
// package.json
|
|
243
244
|
var name = "@gitbook/api";
|
|
244
|
-
var version = "0.
|
|
245
|
+
var version = "0.66.0";
|
|
245
246
|
|
|
246
247
|
// src/client.ts
|
|
247
248
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -505,6 +506,11 @@ var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
|
505
506
|
ContentReferenceStatus2["InApp"] = "in-app";
|
|
506
507
|
return ContentReferenceStatus2;
|
|
507
508
|
})(ContentReferenceStatus || {});
|
|
509
|
+
var ContentReferenceRelation = /* @__PURE__ */ ((ContentReferenceRelation2) => {
|
|
510
|
+
ContentReferenceRelation2["Reference"] = "reference";
|
|
511
|
+
ContentReferenceRelation2["DependsOn"] = "dependsOn";
|
|
512
|
+
return ContentReferenceRelation2;
|
|
513
|
+
})(ContentReferenceRelation || {});
|
|
508
514
|
var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
|
|
509
515
|
ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
|
|
510
516
|
ChangeRequestReviewStatus2["Approved"] = "approved";
|
|
@@ -654,6 +660,7 @@ var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
|
654
660
|
SiteType2["Basic"] = "basic";
|
|
655
661
|
SiteType2["Premium"] = "premium";
|
|
656
662
|
SiteType2["Ultimate"] = "ultimate";
|
|
663
|
+
SiteType2["Sponsored"] = "sponsored";
|
|
657
664
|
SiteType2["LegacyBasic"] = "legacy-basic";
|
|
658
665
|
SiteType2["LegacyPremium"] = "legacy-premium";
|
|
659
666
|
return SiteType2;
|
|
@@ -798,7 +805,9 @@ var HttpClient = class {
|
|
|
798
805
|
};
|
|
799
806
|
encodeQueryParam(key, value) {
|
|
800
807
|
const encodedKey = encodeURIComponent(key);
|
|
801
|
-
return `${encodedKey}=${encodeURIComponent(
|
|
808
|
+
return `${encodedKey}=${encodeURIComponent(
|
|
809
|
+
typeof value === "number" ? value : `${value}`
|
|
810
|
+
)}`;
|
|
802
811
|
}
|
|
803
812
|
addQueryParam(query, key) {
|
|
804
813
|
return this.encodeQueryParam(key, query[key]);
|
|
@@ -1608,6 +1617,13 @@ var Api = class extends HttpClient {
|
|
|
1608
1617
|
format: "json",
|
|
1609
1618
|
...params
|
|
1610
1619
|
}),
|
|
1620
|
+
getSyncedBlockContentInChangeRequest: (spaceId, changeRequestId, syncedBlockId, params = {}) => this.request({
|
|
1621
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/synced-blocks/${syncedBlockId}/content`,
|
|
1622
|
+
method: "GET",
|
|
1623
|
+
secure: true,
|
|
1624
|
+
format: "json",
|
|
1625
|
+
...params
|
|
1626
|
+
}),
|
|
1611
1627
|
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1612
1628
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1613
1629
|
method: "GET",
|
|
@@ -3371,6 +3387,7 @@ var GitBookAPI = class extends Api {
|
|
|
3371
3387
|
CloudflareHostnameTLSStatus,
|
|
3372
3388
|
CloudflareHostnameTLSValidationMethod,
|
|
3373
3389
|
ContentKitIcon,
|
|
3390
|
+
ContentReferenceRelation,
|
|
3374
3391
|
ContentReferenceStatus,
|
|
3375
3392
|
ContentType,
|
|
3376
3393
|
ContentVisibility,
|
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.66.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -436,6 +436,11 @@ var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
|
436
436
|
ContentReferenceStatus2["InApp"] = "in-app";
|
|
437
437
|
return ContentReferenceStatus2;
|
|
438
438
|
})(ContentReferenceStatus || {});
|
|
439
|
+
var ContentReferenceRelation = /* @__PURE__ */ ((ContentReferenceRelation2) => {
|
|
440
|
+
ContentReferenceRelation2["Reference"] = "reference";
|
|
441
|
+
ContentReferenceRelation2["DependsOn"] = "dependsOn";
|
|
442
|
+
return ContentReferenceRelation2;
|
|
443
|
+
})(ContentReferenceRelation || {});
|
|
439
444
|
var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
|
|
440
445
|
ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
|
|
441
446
|
ChangeRequestReviewStatus2["Approved"] = "approved";
|
|
@@ -585,6 +590,7 @@ var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
|
585
590
|
SiteType2["Basic"] = "basic";
|
|
586
591
|
SiteType2["Premium"] = "premium";
|
|
587
592
|
SiteType2["Ultimate"] = "ultimate";
|
|
593
|
+
SiteType2["Sponsored"] = "sponsored";
|
|
588
594
|
SiteType2["LegacyBasic"] = "legacy-basic";
|
|
589
595
|
SiteType2["LegacyPremium"] = "legacy-premium";
|
|
590
596
|
return SiteType2;
|
|
@@ -729,7 +735,9 @@ var HttpClient = class {
|
|
|
729
735
|
};
|
|
730
736
|
encodeQueryParam(key, value) {
|
|
731
737
|
const encodedKey = encodeURIComponent(key);
|
|
732
|
-
return `${encodedKey}=${encodeURIComponent(
|
|
738
|
+
return `${encodedKey}=${encodeURIComponent(
|
|
739
|
+
typeof value === "number" ? value : `${value}`
|
|
740
|
+
)}`;
|
|
733
741
|
}
|
|
734
742
|
addQueryParam(query, key) {
|
|
735
743
|
return this.encodeQueryParam(key, query[key]);
|
|
@@ -1539,6 +1547,13 @@ var Api = class extends HttpClient {
|
|
|
1539
1547
|
format: "json",
|
|
1540
1548
|
...params
|
|
1541
1549
|
}),
|
|
1550
|
+
getSyncedBlockContentInChangeRequest: (spaceId, changeRequestId, syncedBlockId, params = {}) => this.request({
|
|
1551
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/synced-blocks/${syncedBlockId}/content`,
|
|
1552
|
+
method: "GET",
|
|
1553
|
+
secure: true,
|
|
1554
|
+
format: "json",
|
|
1555
|
+
...params
|
|
1556
|
+
}),
|
|
1542
1557
|
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1543
1558
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1544
1559
|
method: "GET",
|
|
@@ -3301,6 +3316,7 @@ export {
|
|
|
3301
3316
|
CloudflareHostnameTLSStatus,
|
|
3302
3317
|
CloudflareHostnameTLSValidationMethod,
|
|
3303
3318
|
ContentKitIcon,
|
|
3319
|
+
ContentReferenceRelation,
|
|
3304
3320
|
ContentReferenceStatus,
|
|
3305
3321
|
ContentType,
|
|
3306
3322
|
ContentVisibility,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -4042,6 +4042,65 @@
|
|
|
4042
4042
|
}
|
|
4043
4043
|
}
|
|
4044
4044
|
},
|
|
4045
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content": {
|
|
4046
|
+
"get": {
|
|
4047
|
+
"operationId": "getSyncedBlockContentInChangeRequest",
|
|
4048
|
+
"summary": "Get the content of a synced block in the context of a change request.",
|
|
4049
|
+
"tags": [
|
|
4050
|
+
"spaces"
|
|
4051
|
+
],
|
|
4052
|
+
"security": [
|
|
4053
|
+
{
|
|
4054
|
+
"user": []
|
|
4055
|
+
}
|
|
4056
|
+
],
|
|
4057
|
+
"parameters": [
|
|
4058
|
+
{
|
|
4059
|
+
"$ref": "#/components/parameters/spaceId"
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
"$ref": "#/components/parameters/changeRequestId"
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
"$ref": "#/components/parameters/syncedBlockId"
|
|
4066
|
+
}
|
|
4067
|
+
],
|
|
4068
|
+
"responses": {
|
|
4069
|
+
"200": {
|
|
4070
|
+
"description": "OK",
|
|
4071
|
+
"content": {
|
|
4072
|
+
"application/json": {
|
|
4073
|
+
"schema": {
|
|
4074
|
+
"type": "object",
|
|
4075
|
+
"properties": {
|
|
4076
|
+
"document": {
|
|
4077
|
+
"$ref": "#/components/schemas/JSONDocument"
|
|
4078
|
+
},
|
|
4079
|
+
"files": {
|
|
4080
|
+
"type": "array",
|
|
4081
|
+
"items": {
|
|
4082
|
+
"$ref": "#/components/schemas/RevisionFile"
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
},
|
|
4086
|
+
"required": [
|
|
4087
|
+
"document",
|
|
4088
|
+
"files"
|
|
4089
|
+
]
|
|
4090
|
+
}
|
|
4091
|
+
}
|
|
4092
|
+
}
|
|
4093
|
+
},
|
|
4094
|
+
"404": {
|
|
4095
|
+
"description": "The space, change request, synced block or its content could not be found.",
|
|
4096
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
4097
|
+
},
|
|
4098
|
+
"default": {
|
|
4099
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
4100
|
+
}
|
|
4101
|
+
}
|
|
4102
|
+
}
|
|
4103
|
+
},
|
|
4045
4104
|
"/spaces/{spaceId}/revisions/{revisionId}": {
|
|
4046
4105
|
"get": {
|
|
4047
4106
|
"operationId": "getRevisionById",
|
|
@@ -11498,7 +11557,7 @@
|
|
|
11498
11557
|
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content": {
|
|
11499
11558
|
"get": {
|
|
11500
11559
|
"operationId": "getSyncedBlockContent",
|
|
11501
|
-
"summary": "Get a synced block
|
|
11560
|
+
"summary": "Get the content of a synced block.",
|
|
11502
11561
|
"tags": [
|
|
11503
11562
|
"organizations"
|
|
11504
11563
|
],
|
|
@@ -11541,6 +11600,10 @@
|
|
|
11541
11600
|
}
|
|
11542
11601
|
}
|
|
11543
11602
|
},
|
|
11603
|
+
"404": {
|
|
11604
|
+
"description": "The synced block or its content could not be found.",
|
|
11605
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
11606
|
+
},
|
|
11544
11607
|
"default": {
|
|
11545
11608
|
"$ref": "#/components/responses/UnexpectedError"
|
|
11546
11609
|
}
|
|
@@ -15542,6 +15605,15 @@
|
|
|
15542
15605
|
"type": "string"
|
|
15543
15606
|
}
|
|
15544
15607
|
},
|
|
15608
|
+
"syncedBlockId": {
|
|
15609
|
+
"name": "syncedBlockId",
|
|
15610
|
+
"in": "path",
|
|
15611
|
+
"required": true,
|
|
15612
|
+
"description": "The unique id of a synced block",
|
|
15613
|
+
"schema": {
|
|
15614
|
+
"type": "string"
|
|
15615
|
+
}
|
|
15616
|
+
},
|
|
15545
15617
|
"revisionId": {
|
|
15546
15618
|
"name": "revisionId",
|
|
15547
15619
|
"in": "path",
|
|
@@ -15694,15 +15766,6 @@
|
|
|
15694
15766
|
"format": "date-time"
|
|
15695
15767
|
}
|
|
15696
15768
|
},
|
|
15697
|
-
"syncedBlockId": {
|
|
15698
|
-
"name": "syncedBlockId",
|
|
15699
|
-
"in": "path",
|
|
15700
|
-
"required": true,
|
|
15701
|
-
"description": "The unique id of a synced block",
|
|
15702
|
-
"schema": {
|
|
15703
|
-
"type": "string"
|
|
15704
|
-
}
|
|
15705
|
-
},
|
|
15706
15769
|
"siteCustomizationUnmasked": {
|
|
15707
15770
|
"name": "unmasked",
|
|
15708
15771
|
"in": "query",
|
|
@@ -22334,12 +22397,23 @@
|
|
|
22334
22397
|
"broken"
|
|
22335
22398
|
]
|
|
22336
22399
|
},
|
|
22400
|
+
"ContentReferenceRelation": {
|
|
22401
|
+
"type": "string",
|
|
22402
|
+
"enum": [
|
|
22403
|
+
"reference",
|
|
22404
|
+
"dependsOn"
|
|
22405
|
+
],
|
|
22406
|
+
"description": "Indicator of the relationship with the content ref target.\n- `reference` - The content soft-references the ref target\n- `dependsOn` - The content depends on the ref target\n"
|
|
22407
|
+
},
|
|
22337
22408
|
"ContentReferenceUsage": {
|
|
22338
22409
|
"type": "object",
|
|
22339
22410
|
"properties": {
|
|
22340
22411
|
"status": {
|
|
22341
22412
|
"$ref": "#/components/schemas/ContentReferenceStatus"
|
|
22342
22413
|
},
|
|
22414
|
+
"relation": {
|
|
22415
|
+
"$ref": "#/components/schemas/ContentReferenceRelation"
|
|
22416
|
+
},
|
|
22343
22417
|
"targetReference": {
|
|
22344
22418
|
"description": "The reference target where a list of pages are pointing at",
|
|
22345
22419
|
"$ref": "#/components/schemas/ContentLocation"
|
|
@@ -22353,6 +22427,7 @@
|
|
|
22353
22427
|
}
|
|
22354
22428
|
},
|
|
22355
22429
|
"required": [
|
|
22430
|
+
"relation",
|
|
22356
22431
|
"status",
|
|
22357
22432
|
"locationReferences"
|
|
22358
22433
|
]
|
|
@@ -26789,10 +26864,16 @@
|
|
|
26789
26864
|
"propertyName": "type"
|
|
26790
26865
|
}
|
|
26791
26866
|
},
|
|
26792
|
-
"
|
|
26867
|
+
"ContentKitRenderOutputElement": {
|
|
26793
26868
|
"type": "object",
|
|
26794
|
-
"description": "Output of the
|
|
26869
|
+
"description": "Output of type element in the lifecycle of the component.",
|
|
26795
26870
|
"properties": {
|
|
26871
|
+
"type": {
|
|
26872
|
+
"type": "string",
|
|
26873
|
+
"enum": [
|
|
26874
|
+
"element"
|
|
26875
|
+
]
|
|
26876
|
+
},
|
|
26796
26877
|
"element": {
|
|
26797
26878
|
"$ref": "#/components/schemas/ContentKitRootElement"
|
|
26798
26879
|
},
|
|
@@ -26809,6 +26890,36 @@
|
|
|
26809
26890
|
"props"
|
|
26810
26891
|
]
|
|
26811
26892
|
},
|
|
26893
|
+
"ContentKitRenderOutputComplete": {
|
|
26894
|
+
"type": "object",
|
|
26895
|
+
"description": "Output of completed lifecycle of the component.",
|
|
26896
|
+
"properties": {
|
|
26897
|
+
"type": {
|
|
26898
|
+
"type": "string",
|
|
26899
|
+
"enum": [
|
|
26900
|
+
"complete"
|
|
26901
|
+
]
|
|
26902
|
+
},
|
|
26903
|
+
"returnValue": {
|
|
26904
|
+
"type": "object"
|
|
26905
|
+
}
|
|
26906
|
+
},
|
|
26907
|
+
"required": [
|
|
26908
|
+
"type"
|
|
26909
|
+
]
|
|
26910
|
+
},
|
|
26911
|
+
"ContentKitRenderOutput": {
|
|
26912
|
+
"type": "object",
|
|
26913
|
+
"description": "Output of the integration when rendering a UI.",
|
|
26914
|
+
"oneOf": [
|
|
26915
|
+
{
|
|
26916
|
+
"$ref": "#/components/schemas/ContentKitRenderOutputElement"
|
|
26917
|
+
},
|
|
26918
|
+
{
|
|
26919
|
+
"$ref": "#/components/schemas/ContentKitRenderOutputComplete"
|
|
26920
|
+
}
|
|
26921
|
+
]
|
|
26922
|
+
},
|
|
26812
26923
|
"RenderIntegrationUI": {
|
|
26813
26924
|
"type": "object",
|
|
26814
26925
|
"properties": {
|
|
@@ -27806,13 +27917,18 @@
|
|
|
27806
27917
|
"ultimate": {
|
|
27807
27918
|
"description": "Count of all ultimate sites",
|
|
27808
27919
|
"type": "number"
|
|
27920
|
+
},
|
|
27921
|
+
"sponsored": {
|
|
27922
|
+
"description": "Count of all sponsored sites",
|
|
27923
|
+
"type": "number"
|
|
27809
27924
|
}
|
|
27810
27925
|
},
|
|
27811
27926
|
"required": [
|
|
27812
27927
|
"total",
|
|
27813
27928
|
"basic",
|
|
27814
27929
|
"premium",
|
|
27815
|
-
"ultimate"
|
|
27930
|
+
"ultimate",
|
|
27931
|
+
"sponsored"
|
|
27816
27932
|
]
|
|
27817
27933
|
}
|
|
27818
27934
|
]
|
|
@@ -28320,6 +28436,7 @@
|
|
|
28320
28436
|
"basic",
|
|
28321
28437
|
"premium",
|
|
28322
28438
|
"ultimate",
|
|
28439
|
+
"sponsored",
|
|
28323
28440
|
"legacy-basic",
|
|
28324
28441
|
"legacy-premium"
|
|
28325
28442
|
]
|
package/spec/openapi.yaml
CHANGED
|
@@ -2219,6 +2219,40 @@ paths:
|
|
|
2219
2219
|
- url
|
|
2220
2220
|
default:
|
|
2221
2221
|
$ref: "#/components/responses/UnexpectedError"
|
|
2222
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content":
|
|
2223
|
+
get:
|
|
2224
|
+
operationId: getSyncedBlockContentInChangeRequest
|
|
2225
|
+
summary: Get the content of a synced block in the context of a change request.
|
|
2226
|
+
tags:
|
|
2227
|
+
- spaces
|
|
2228
|
+
security:
|
|
2229
|
+
- user: []
|
|
2230
|
+
parameters:
|
|
2231
|
+
- $ref: "#/components/parameters/spaceId"
|
|
2232
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
2233
|
+
- $ref: "#/components/parameters/syncedBlockId"
|
|
2234
|
+
responses:
|
|
2235
|
+
"200":
|
|
2236
|
+
description: OK
|
|
2237
|
+
content:
|
|
2238
|
+
application/json:
|
|
2239
|
+
schema:
|
|
2240
|
+
type: object
|
|
2241
|
+
properties:
|
|
2242
|
+
document:
|
|
2243
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
2244
|
+
files:
|
|
2245
|
+
type: array
|
|
2246
|
+
items:
|
|
2247
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
2248
|
+
required:
|
|
2249
|
+
- document
|
|
2250
|
+
- files
|
|
2251
|
+
"404":
|
|
2252
|
+
description: The space, change request, synced block or its content could not be found.
|
|
2253
|
+
$ref: "#/components/responses/NotFoundError"
|
|
2254
|
+
default:
|
|
2255
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
2222
2256
|
"/spaces/{spaceId}/revisions/{revisionId}":
|
|
2223
2257
|
get:
|
|
2224
2258
|
operationId: getRevisionById
|
|
@@ -6403,7 +6437,7 @@ paths:
|
|
|
6403
6437
|
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content":
|
|
6404
6438
|
get:
|
|
6405
6439
|
operationId: getSyncedBlockContent
|
|
6406
|
-
summary: Get a synced block
|
|
6440
|
+
summary: Get the content of a synced block.
|
|
6407
6441
|
tags:
|
|
6408
6442
|
- organizations
|
|
6409
6443
|
security:
|
|
@@ -6428,6 +6462,9 @@ paths:
|
|
|
6428
6462
|
required:
|
|
6429
6463
|
- document
|
|
6430
6464
|
- files
|
|
6465
|
+
"404":
|
|
6466
|
+
description: The synced block or its content could not be found.
|
|
6467
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6431
6468
|
default:
|
|
6432
6469
|
$ref: "#/components/responses/UnexpectedError"
|
|
6433
6470
|
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks":
|
|
@@ -8722,6 +8759,13 @@ components:
|
|
|
8722
8759
|
description: The unique id of the comment reply
|
|
8723
8760
|
schema:
|
|
8724
8761
|
type: string
|
|
8762
|
+
syncedBlockId:
|
|
8763
|
+
name: syncedBlockId
|
|
8764
|
+
in: path
|
|
8765
|
+
required: true
|
|
8766
|
+
description: The unique id of a synced block
|
|
8767
|
+
schema:
|
|
8768
|
+
type: string
|
|
8725
8769
|
revisionId:
|
|
8726
8770
|
name: revisionId
|
|
8727
8771
|
in: path
|
|
@@ -8841,13 +8885,6 @@ components:
|
|
|
8841
8885
|
schema:
|
|
8842
8886
|
type: string
|
|
8843
8887
|
format: date-time
|
|
8844
|
-
syncedBlockId:
|
|
8845
|
-
name: syncedBlockId
|
|
8846
|
-
in: path
|
|
8847
|
-
required: true
|
|
8848
|
-
description: The unique id of a synced block
|
|
8849
|
-
schema:
|
|
8850
|
-
type: string
|
|
8851
8888
|
siteCustomizationUnmasked:
|
|
8852
8889
|
name: unmasked
|
|
8853
8890
|
in: query
|
|
@@ -13242,11 +13279,22 @@ components:
|
|
|
13242
13279
|
required:
|
|
13243
13280
|
- total
|
|
13244
13281
|
- broken
|
|
13282
|
+
ContentReferenceRelation:
|
|
13283
|
+
type: string
|
|
13284
|
+
enum:
|
|
13285
|
+
- reference
|
|
13286
|
+
- dependsOn
|
|
13287
|
+
description: |
|
|
13288
|
+
Indicator of the relationship with the content ref target.
|
|
13289
|
+
- `reference` - The content soft-references the ref target
|
|
13290
|
+
- `dependsOn` - The content depends on the ref target
|
|
13245
13291
|
ContentReferenceUsage:
|
|
13246
13292
|
type: object
|
|
13247
13293
|
properties:
|
|
13248
13294
|
status:
|
|
13249
13295
|
$ref: "#/components/schemas/ContentReferenceStatus"
|
|
13296
|
+
relation:
|
|
13297
|
+
$ref: "#/components/schemas/ContentReferenceRelation"
|
|
13250
13298
|
targetReference:
|
|
13251
13299
|
description: The reference target where a list of pages are pointing at
|
|
13252
13300
|
$ref: "#/components/schemas/ContentLocation"
|
|
@@ -13256,6 +13304,7 @@ components:
|
|
|
13256
13304
|
items:
|
|
13257
13305
|
$ref: "#/components/schemas/ContentLocation"
|
|
13258
13306
|
required:
|
|
13307
|
+
- relation
|
|
13259
13308
|
- status
|
|
13260
13309
|
- locationReferences
|
|
13261
13310
|
CreateChangeRequest:
|
|
@@ -16132,10 +16181,14 @@ components:
|
|
|
16132
16181
|
- $ref: "#/components/schemas/ContentKitConfiguration"
|
|
16133
16182
|
discriminator:
|
|
16134
16183
|
propertyName: type
|
|
16135
|
-
|
|
16184
|
+
ContentKitRenderOutputElement:
|
|
16136
16185
|
type: object
|
|
16137
|
-
description: Output of the
|
|
16186
|
+
description: Output of type element in the lifecycle of the component.
|
|
16138
16187
|
properties:
|
|
16188
|
+
type:
|
|
16189
|
+
type: string
|
|
16190
|
+
enum:
|
|
16191
|
+
- element
|
|
16139
16192
|
element:
|
|
16140
16193
|
$ref: "#/components/schemas/ContentKitRootElement"
|
|
16141
16194
|
state:
|
|
@@ -16146,6 +16199,24 @@ components:
|
|
|
16146
16199
|
- element
|
|
16147
16200
|
- state
|
|
16148
16201
|
- props
|
|
16202
|
+
ContentKitRenderOutputComplete:
|
|
16203
|
+
type: object
|
|
16204
|
+
description: Output of completed lifecycle of the component.
|
|
16205
|
+
properties:
|
|
16206
|
+
type:
|
|
16207
|
+
type: string
|
|
16208
|
+
enum:
|
|
16209
|
+
- complete
|
|
16210
|
+
returnValue:
|
|
16211
|
+
type: object
|
|
16212
|
+
required:
|
|
16213
|
+
- type
|
|
16214
|
+
ContentKitRenderOutput:
|
|
16215
|
+
type: object
|
|
16216
|
+
description: Output of the integration when rendering a UI.
|
|
16217
|
+
oneOf:
|
|
16218
|
+
- $ref: "#/components/schemas/ContentKitRenderOutputElement"
|
|
16219
|
+
- $ref: "#/components/schemas/ContentKitRenderOutputComplete"
|
|
16149
16220
|
RenderIntegrationUI:
|
|
16150
16221
|
type: object
|
|
16151
16222
|
properties:
|
|
@@ -16833,11 +16904,15 @@ components:
|
|
|
16833
16904
|
ultimate:
|
|
16834
16905
|
description: Count of all ultimate sites
|
|
16835
16906
|
type: number
|
|
16907
|
+
sponsored:
|
|
16908
|
+
description: Count of all sponsored sites
|
|
16909
|
+
type: number
|
|
16836
16910
|
required:
|
|
16837
16911
|
- total
|
|
16838
16912
|
- basic
|
|
16839
16913
|
- premium
|
|
16840
16914
|
- ultimate
|
|
16915
|
+
- sponsored
|
|
16841
16916
|
OrganizationUsageTeams:
|
|
16842
16917
|
type: object
|
|
16843
16918
|
description: Team members usage metrics of an organization
|
|
@@ -17165,6 +17240,7 @@ components:
|
|
|
17165
17240
|
- basic
|
|
17166
17241
|
- premium
|
|
17167
17242
|
- ultimate
|
|
17243
|
+
- sponsored
|
|
17168
17244
|
- legacy-basic
|
|
17169
17245
|
- legacy-premium
|
|
17170
17246
|
SiteTitle:
|