@gitbook/api 0.39.0 → 0.41.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 +50 -12
- package/dist/index.cjs +1 -8
- package/dist/index.js +1 -8
- package/package.json +1 -1
- package/spec/openapi.json +154 -31
- package/spec/openapi.yaml +104 -18
package/dist/client.d.ts
CHANGED
|
@@ -503,6 +503,30 @@ export declare type PublishedContentLookup = {
|
|
|
503
503
|
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
504
504
|
apiToken: string;
|
|
505
505
|
};
|
|
506
|
+
export declare type PublishedSiteContentLookup = {
|
|
507
|
+
/** Type of target for the redirect */
|
|
508
|
+
target: 'application' | 'content' | 'external';
|
|
509
|
+
redirect: URL;
|
|
510
|
+
} | {
|
|
511
|
+
/** ID of the site matching. */
|
|
512
|
+
site: string;
|
|
513
|
+
/** ID of the site-space matching. */
|
|
514
|
+
siteSpace: string;
|
|
515
|
+
/** ID of the space matching. */
|
|
516
|
+
space: string;
|
|
517
|
+
/** Identifier of the change request being previewed in this URL. */
|
|
518
|
+
changeRequest?: string;
|
|
519
|
+
/** Identifier of the revision being previewed in this URL. */
|
|
520
|
+
revision?: string;
|
|
521
|
+
/** Path of the content relative to the space */
|
|
522
|
+
pathname: string;
|
|
523
|
+
/** Prefix of the path in the URL dedicated to the space */
|
|
524
|
+
basePath: string;
|
|
525
|
+
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
526
|
+
apiToken: string;
|
|
527
|
+
/** ID of the organization. */
|
|
528
|
+
organization: string;
|
|
529
|
+
};
|
|
506
530
|
export interface SpacePointer {
|
|
507
531
|
type: 'space';
|
|
508
532
|
/** Unique identifier for the space */
|
|
@@ -1726,7 +1750,7 @@ export interface OrganizationTeamMember {
|
|
|
1726
1750
|
team: TeamMember;
|
|
1727
1751
|
}
|
|
1728
1752
|
/** The default content for the organization */
|
|
1729
|
-
export declare type OrganizationDefaultContent = SpacePointer | CollectionPointer;
|
|
1753
|
+
export declare type OrganizationDefaultContent = SpacePointer | CollectionPointer | SitePointer;
|
|
1730
1754
|
export declare type OrganizationInvite = {
|
|
1731
1755
|
/** Type of Object, always equals to "invite" */
|
|
1732
1756
|
object: 'invite';
|
|
@@ -4306,6 +4330,8 @@ export interface Site {
|
|
|
4306
4330
|
*/
|
|
4307
4331
|
export declare type SiteTitle = string;
|
|
4308
4332
|
export interface SiteCustomizationSettings {
|
|
4333
|
+
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
4334
|
+
title?: SiteTitle;
|
|
4309
4335
|
styling: {
|
|
4310
4336
|
primaryColor: CustomizationThemedColor;
|
|
4311
4337
|
corners: CustomizationCorners;
|
|
@@ -4372,6 +4398,8 @@ export interface SiteCustomizationSettings {
|
|
|
4372
4398
|
};
|
|
4373
4399
|
}
|
|
4374
4400
|
export interface SiteSpaceCustomizationOverrides {
|
|
4401
|
+
/** Title to use for the published site variant. If not defined, it'll fallback to the content title. */
|
|
4402
|
+
title?: SiteTitle;
|
|
4375
4403
|
styling?: {
|
|
4376
4404
|
/** The primary color used for links and UI text. Set to null to reset the override. */
|
|
4377
4405
|
primaryColor?: CustomizationThemedColor | null;
|
|
@@ -4508,6 +4536,14 @@ export interface SiteSpace {
|
|
|
4508
4536
|
space: Space;
|
|
4509
4537
|
/** Whether this is the default space for the site */
|
|
4510
4538
|
default?: boolean;
|
|
4539
|
+
/** URLs associated with the object */
|
|
4540
|
+
urls: {
|
|
4541
|
+
/**
|
|
4542
|
+
* URL of the published version of the site-space. Only defined when site is not "unpublished"
|
|
4543
|
+
* @format uri
|
|
4544
|
+
*/
|
|
4545
|
+
published?: string;
|
|
4546
|
+
};
|
|
4511
4547
|
}
|
|
4512
4548
|
/**
|
|
4513
4549
|
* Path to the space on the site
|
|
@@ -4811,16 +4847,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4811
4847
|
* @secure
|
|
4812
4848
|
*/
|
|
4813
4849
|
deleteSpaceById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4814
|
-
/**
|
|
4815
|
-
* No description
|
|
4816
|
-
*
|
|
4817
|
-
* @tags hive
|
|
4818
|
-
* @name GenerateSpaceHiveReadAccessToken
|
|
4819
|
-
* @summary Returns a token to authenticate with Hive to read content from a given space.
|
|
4820
|
-
* @request POST:/spaces/{spaceId}/hive/token
|
|
4821
|
-
* @secure
|
|
4822
|
-
*/
|
|
4823
|
-
generateSpaceHiveReadAccessToken: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<HiveAccessToken, Error>>;
|
|
4824
4850
|
/**
|
|
4825
4851
|
* No description
|
|
4826
4852
|
*
|
|
@@ -4898,6 +4924,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4898
4924
|
code: 409;
|
|
4899
4925
|
message: string;
|
|
4900
4926
|
};
|
|
4927
|
+
} | {
|
|
4928
|
+
error: {
|
|
4929
|
+
/** @format int32 */
|
|
4930
|
+
code: 412;
|
|
4931
|
+
message: string;
|
|
4932
|
+
};
|
|
4901
4933
|
}>>;
|
|
4902
4934
|
/**
|
|
4903
4935
|
* No description
|
|
@@ -6430,6 +6462,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6430
6462
|
code: 409;
|
|
6431
6463
|
message: string;
|
|
6432
6464
|
};
|
|
6465
|
+
} | {
|
|
6466
|
+
error: {
|
|
6467
|
+
/** @format int32 */
|
|
6468
|
+
code: 412;
|
|
6469
|
+
message: string;
|
|
6470
|
+
};
|
|
6433
6471
|
}>>;
|
|
6434
6472
|
/**
|
|
6435
6473
|
* No description
|
|
@@ -9005,7 +9043,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9005
9043
|
url: URL;
|
|
9006
9044
|
/** JWT token generated for a visitor auth session */
|
|
9007
9045
|
visitorAuthToken?: string;
|
|
9008
|
-
}, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error | {
|
|
9046
|
+
}, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup | PublishedSiteContentLookup, Error | {
|
|
9009
9047
|
error: {
|
|
9010
9048
|
/** @format int32 */
|
|
9011
9049
|
code: 404;
|
package/dist/index.cjs
CHANGED
|
@@ -239,7 +239,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
239
239
|
|
|
240
240
|
// package.json
|
|
241
241
|
var name = "@gitbook/api";
|
|
242
|
-
var version = "0.
|
|
242
|
+
var version = "0.41.0";
|
|
243
243
|
|
|
244
244
|
// src/client.ts
|
|
245
245
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1027,13 +1027,6 @@ var Api = class extends HttpClient {
|
|
|
1027
1027
|
secure: true,
|
|
1028
1028
|
...params
|
|
1029
1029
|
}),
|
|
1030
|
-
generateSpaceHiveReadAccessToken: (spaceId, params = {}) => this.request({
|
|
1031
|
-
path: `/spaces/${spaceId}/hive/token`,
|
|
1032
|
-
method: "POST",
|
|
1033
|
-
secure: true,
|
|
1034
|
-
format: "json",
|
|
1035
|
-
...params
|
|
1036
|
-
}),
|
|
1037
1030
|
duplicateSpace: (spaceId, params = {}) => this.request({
|
|
1038
1031
|
path: `/spaces/${spaceId}/duplicate`,
|
|
1039
1032
|
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.41.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -960,13 +960,6 @@ var Api = class extends HttpClient {
|
|
|
960
960
|
secure: true,
|
|
961
961
|
...params
|
|
962
962
|
}),
|
|
963
|
-
generateSpaceHiveReadAccessToken: (spaceId, params = {}) => this.request({
|
|
964
|
-
path: `/spaces/${spaceId}/hive/token`,
|
|
965
|
-
method: "POST",
|
|
966
|
-
secure: true,
|
|
967
|
-
format: "json",
|
|
968
|
-
...params
|
|
969
|
-
}),
|
|
970
963
|
duplicateSpace: (spaceId, params = {}) => this.request({
|
|
971
964
|
path: `/spaces/${spaceId}/duplicate`,
|
|
972
965
|
method: "POST",
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -1705,6 +1705,83 @@
|
|
|
1705
1705
|
}
|
|
1706
1706
|
]
|
|
1707
1707
|
},
|
|
1708
|
+
"PublishedSiteContentLookup": {
|
|
1709
|
+
"oneOf": [
|
|
1710
|
+
{
|
|
1711
|
+
"type": "object",
|
|
1712
|
+
"title": "Redirect",
|
|
1713
|
+
"properties": {
|
|
1714
|
+
"target": {
|
|
1715
|
+
"type": "string",
|
|
1716
|
+
"description": "Type of target for the redirect",
|
|
1717
|
+
"enum": [
|
|
1718
|
+
"application",
|
|
1719
|
+
"content",
|
|
1720
|
+
"external"
|
|
1721
|
+
]
|
|
1722
|
+
},
|
|
1723
|
+
"redirect": {
|
|
1724
|
+
"$ref": "#/components/schemas/URL"
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
"required": [
|
|
1728
|
+
"target",
|
|
1729
|
+
"redirect"
|
|
1730
|
+
]
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"type": "object",
|
|
1734
|
+
"title": "Content",
|
|
1735
|
+
"properties": {
|
|
1736
|
+
"site": {
|
|
1737
|
+
"type": "string",
|
|
1738
|
+
"description": "ID of the site matching."
|
|
1739
|
+
},
|
|
1740
|
+
"siteSpace": {
|
|
1741
|
+
"type": "string",
|
|
1742
|
+
"description": "ID of the site-space matching."
|
|
1743
|
+
},
|
|
1744
|
+
"space": {
|
|
1745
|
+
"type": "string",
|
|
1746
|
+
"description": "ID of the space matching."
|
|
1747
|
+
},
|
|
1748
|
+
"changeRequest": {
|
|
1749
|
+
"type": "string",
|
|
1750
|
+
"description": "Identifier of the change request being previewed in this URL."
|
|
1751
|
+
},
|
|
1752
|
+
"revision": {
|
|
1753
|
+
"type": "string",
|
|
1754
|
+
"description": "Identifier of the revision being previewed in this URL."
|
|
1755
|
+
},
|
|
1756
|
+
"pathname": {
|
|
1757
|
+
"type": "string",
|
|
1758
|
+
"description": "Path of the content relative to the space"
|
|
1759
|
+
},
|
|
1760
|
+
"basePath": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"description": "Prefix of the path in the URL dedicated to the space"
|
|
1763
|
+
},
|
|
1764
|
+
"apiToken": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"description": "Short-lived API token to fetch content related to the space in the context of the URL."
|
|
1767
|
+
},
|
|
1768
|
+
"organization": {
|
|
1769
|
+
"type": "string",
|
|
1770
|
+
"description": "ID of the organization."
|
|
1771
|
+
}
|
|
1772
|
+
},
|
|
1773
|
+
"required": [
|
|
1774
|
+
"site",
|
|
1775
|
+
"siteSpace",
|
|
1776
|
+
"space",
|
|
1777
|
+
"pathname",
|
|
1778
|
+
"basePath",
|
|
1779
|
+
"apiToken",
|
|
1780
|
+
"organization"
|
|
1781
|
+
]
|
|
1782
|
+
}
|
|
1783
|
+
]
|
|
1784
|
+
},
|
|
1708
1785
|
"SpacePointer": {
|
|
1709
1786
|
"type": "object",
|
|
1710
1787
|
"properties": {
|
|
@@ -6576,6 +6653,9 @@
|
|
|
6576
6653
|
},
|
|
6577
6654
|
{
|
|
6578
6655
|
"$ref": "#/components/schemas/CollectionPointer"
|
|
6656
|
+
},
|
|
6657
|
+
{
|
|
6658
|
+
"$ref": "#/components/schemas/SitePointer"
|
|
6579
6659
|
}
|
|
6580
6660
|
]
|
|
6581
6661
|
},
|
|
@@ -14837,6 +14917,10 @@
|
|
|
14837
14917
|
"SiteCustomizationSettings": {
|
|
14838
14918
|
"type": "object",
|
|
14839
14919
|
"properties": {
|
|
14920
|
+
"title": {
|
|
14921
|
+
"description": "Title to use for the published site. If not defined, it'll fallback to the default content title.",
|
|
14922
|
+
"$ref": "#/components/schemas/SiteTitle"
|
|
14923
|
+
},
|
|
14840
14924
|
"styling": {
|
|
14841
14925
|
"type": "object",
|
|
14842
14926
|
"properties": {
|
|
@@ -15075,6 +15159,10 @@
|
|
|
15075
15159
|
"SiteSpaceCustomizationOverrides": {
|
|
15076
15160
|
"type": "object",
|
|
15077
15161
|
"properties": {
|
|
15162
|
+
"title": {
|
|
15163
|
+
"description": "Title to use for the published site variant. If not defined, it'll fallback to the content title.",
|
|
15164
|
+
"$ref": "#/components/schemas/SiteTitle"
|
|
15165
|
+
},
|
|
15078
15166
|
"styling": {
|
|
15079
15167
|
"type": "object",
|
|
15080
15168
|
"properties": {
|
|
@@ -15549,12 +15637,27 @@
|
|
|
15549
15637
|
"default": {
|
|
15550
15638
|
"type": "boolean",
|
|
15551
15639
|
"description": "Whether this is the default space for the site"
|
|
15640
|
+
},
|
|
15641
|
+
"urls": {
|
|
15642
|
+
"type": "object",
|
|
15643
|
+
"description": "URLs associated with the object",
|
|
15644
|
+
"properties": {
|
|
15645
|
+
"published": {
|
|
15646
|
+
"type": "string",
|
|
15647
|
+
"description": "URL of the published version of the site-space. Only defined when site is not \"unpublished\"",
|
|
15648
|
+
"format": "uri"
|
|
15649
|
+
}
|
|
15650
|
+
},
|
|
15651
|
+
"required": [
|
|
15652
|
+
"location"
|
|
15653
|
+
]
|
|
15552
15654
|
}
|
|
15553
15655
|
},
|
|
15554
15656
|
"required": [
|
|
15555
15657
|
"id",
|
|
15556
15658
|
"space",
|
|
15557
|
-
"path"
|
|
15659
|
+
"path",
|
|
15660
|
+
"urls"
|
|
15558
15661
|
]
|
|
15559
15662
|
},
|
|
15560
15663
|
"SiteSpacePath": {
|
|
@@ -15837,6 +15940,40 @@
|
|
|
15837
15940
|
}
|
|
15838
15941
|
}
|
|
15839
15942
|
}
|
|
15943
|
+
},
|
|
15944
|
+
"PreconditionFailedError": {
|
|
15945
|
+
"description": "PreconditionFailed",
|
|
15946
|
+
"content": {
|
|
15947
|
+
"application/json": {
|
|
15948
|
+
"schema": {
|
|
15949
|
+
"type": "object",
|
|
15950
|
+
"required": [
|
|
15951
|
+
"error"
|
|
15952
|
+
],
|
|
15953
|
+
"properties": {
|
|
15954
|
+
"error": {
|
|
15955
|
+
"type": "object",
|
|
15956
|
+
"properties": {
|
|
15957
|
+
"code": {
|
|
15958
|
+
"type": "integer",
|
|
15959
|
+
"format": "int32",
|
|
15960
|
+
"enum": [
|
|
15961
|
+
412
|
|
15962
|
+
]
|
|
15963
|
+
},
|
|
15964
|
+
"message": {
|
|
15965
|
+
"type": "string"
|
|
15966
|
+
}
|
|
15967
|
+
},
|
|
15968
|
+
"required": [
|
|
15969
|
+
"code",
|
|
15970
|
+
"message"
|
|
15971
|
+
]
|
|
15972
|
+
}
|
|
15973
|
+
}
|
|
15974
|
+
}
|
|
15975
|
+
}
|
|
15976
|
+
}
|
|
15840
15977
|
}
|
|
15841
15978
|
}
|
|
15842
15979
|
},
|
|
@@ -16306,35 +16443,6 @@
|
|
|
16306
16443
|
}
|
|
16307
16444
|
}
|
|
16308
16445
|
},
|
|
16309
|
-
"/spaces/{spaceId}/hive/token": {
|
|
16310
|
-
"post": {
|
|
16311
|
-
"operationId": "generateSpaceHiveReadAccessToken",
|
|
16312
|
-
"summary": "Returns a token to authenticate with Hive to read content from a given space.",
|
|
16313
|
-
"tags": [
|
|
16314
|
-
"hive"
|
|
16315
|
-
],
|
|
16316
|
-
"parameters": [
|
|
16317
|
-
{
|
|
16318
|
-
"$ref": "#/components/parameters/spaceId"
|
|
16319
|
-
}
|
|
16320
|
-
],
|
|
16321
|
-
"responses": {
|
|
16322
|
-
"200": {
|
|
16323
|
-
"description": "The JWT to access the space content in Hive.",
|
|
16324
|
-
"content": {
|
|
16325
|
-
"application/json": {
|
|
16326
|
-
"schema": {
|
|
16327
|
-
"$ref": "#/components/schemas/HiveAccessToken"
|
|
16328
|
-
}
|
|
16329
|
-
}
|
|
16330
|
-
}
|
|
16331
|
-
},
|
|
16332
|
-
"default": {
|
|
16333
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
16334
|
-
}
|
|
16335
|
-
}
|
|
16336
|
-
}
|
|
16337
|
-
},
|
|
16338
16446
|
"/spaces/{spaceId}/duplicate": {
|
|
16339
16447
|
"post": {
|
|
16340
16448
|
"operationId": "duplicateSpace",
|
|
@@ -16534,6 +16642,10 @@
|
|
|
16534
16642
|
"description": "Transfer would not result in any update",
|
|
16535
16643
|
"$ref": "#/components/responses/ConflictError"
|
|
16536
16644
|
},
|
|
16645
|
+
"412": {
|
|
16646
|
+
"description": "The space cannot be moved.",
|
|
16647
|
+
"$ref": "#/components/responses/PreconditionFailedError"
|
|
16648
|
+
},
|
|
16537
16649
|
"default": {
|
|
16538
16650
|
"$ref": "#/components/responses/UnexpectedError"
|
|
16539
16651
|
}
|
|
@@ -21179,6 +21291,10 @@
|
|
|
21179
21291
|
"description": "Transfer would not result in any update",
|
|
21180
21292
|
"$ref": "#/components/responses/ConflictError"
|
|
21181
21293
|
},
|
|
21294
|
+
"412": {
|
|
21295
|
+
"description": "The collection cannot be moved.",
|
|
21296
|
+
"$ref": "#/components/responses/PreconditionFailedError"
|
|
21297
|
+
},
|
|
21182
21298
|
"default": {
|
|
21183
21299
|
"$ref": "#/components/responses/UnexpectedError"
|
|
21184
21300
|
}
|
|
@@ -29194,7 +29310,14 @@
|
|
|
29194
29310
|
"content": {
|
|
29195
29311
|
"application/json": {
|
|
29196
29312
|
"schema": {
|
|
29197
|
-
"
|
|
29313
|
+
"oneOf": [
|
|
29314
|
+
{
|
|
29315
|
+
"$ref": "#/components/schemas/PublishedContentLookup"
|
|
29316
|
+
},
|
|
29317
|
+
{
|
|
29318
|
+
"$ref": "#/components/schemas/PublishedSiteContentLookup"
|
|
29319
|
+
}
|
|
29320
|
+
]
|
|
29198
29321
|
}
|
|
29199
29322
|
}
|
|
29200
29323
|
}
|
package/spec/openapi.yaml
CHANGED
|
@@ -1221,6 +1221,61 @@ components:
|
|
|
1221
1221
|
- pathname
|
|
1222
1222
|
- basePath
|
|
1223
1223
|
- apiToken
|
|
1224
|
+
PublishedSiteContentLookup:
|
|
1225
|
+
oneOf:
|
|
1226
|
+
- type: object
|
|
1227
|
+
title: Redirect
|
|
1228
|
+
properties:
|
|
1229
|
+
target:
|
|
1230
|
+
type: string
|
|
1231
|
+
description: Type of target for the redirect
|
|
1232
|
+
enum:
|
|
1233
|
+
- application
|
|
1234
|
+
- content
|
|
1235
|
+
- external
|
|
1236
|
+
redirect:
|
|
1237
|
+
$ref: "#/components/schemas/URL"
|
|
1238
|
+
required:
|
|
1239
|
+
- target
|
|
1240
|
+
- redirect
|
|
1241
|
+
- type: object
|
|
1242
|
+
title: Content
|
|
1243
|
+
properties:
|
|
1244
|
+
site:
|
|
1245
|
+
type: string
|
|
1246
|
+
description: ID of the site matching.
|
|
1247
|
+
siteSpace:
|
|
1248
|
+
type: string
|
|
1249
|
+
description: ID of the site-space matching.
|
|
1250
|
+
space:
|
|
1251
|
+
type: string
|
|
1252
|
+
description: ID of the space matching.
|
|
1253
|
+
changeRequest:
|
|
1254
|
+
type: string
|
|
1255
|
+
description: Identifier of the change request being previewed in this URL.
|
|
1256
|
+
revision:
|
|
1257
|
+
type: string
|
|
1258
|
+
description: Identifier of the revision being previewed in this URL.
|
|
1259
|
+
pathname:
|
|
1260
|
+
type: string
|
|
1261
|
+
description: Path of the content relative to the space
|
|
1262
|
+
basePath:
|
|
1263
|
+
type: string
|
|
1264
|
+
description: Prefix of the path in the URL dedicated to the space
|
|
1265
|
+
apiToken:
|
|
1266
|
+
type: string
|
|
1267
|
+
description: Short-lived API token to fetch content related to the space in the context of the URL.
|
|
1268
|
+
organization:
|
|
1269
|
+
type: string
|
|
1270
|
+
description: ID of the organization.
|
|
1271
|
+
required:
|
|
1272
|
+
- site
|
|
1273
|
+
- siteSpace
|
|
1274
|
+
- space
|
|
1275
|
+
- pathname
|
|
1276
|
+
- basePath
|
|
1277
|
+
- apiToken
|
|
1278
|
+
- organization
|
|
1224
1279
|
SpacePointer:
|
|
1225
1280
|
type: object
|
|
1226
1281
|
properties:
|
|
@@ -4344,6 +4399,7 @@ components:
|
|
|
4344
4399
|
oneOf:
|
|
4345
4400
|
- $ref: "#/components/schemas/SpacePointer"
|
|
4346
4401
|
- $ref: "#/components/schemas/CollectionPointer"
|
|
4402
|
+
- $ref: "#/components/schemas/SitePointer"
|
|
4347
4403
|
OrganizationInvite:
|
|
4348
4404
|
allOf:
|
|
4349
4405
|
- type: object
|
|
@@ -9804,6 +9860,9 @@ components:
|
|
|
9804
9860
|
SiteCustomizationSettings:
|
|
9805
9861
|
type: object
|
|
9806
9862
|
properties:
|
|
9863
|
+
title:
|
|
9864
|
+
description: Title to use for the published site. If not defined, it'll fallback to the default content title.
|
|
9865
|
+
$ref: "#/components/schemas/SiteTitle"
|
|
9807
9866
|
styling:
|
|
9808
9867
|
type: object
|
|
9809
9868
|
properties:
|
|
@@ -9963,6 +10022,9 @@ components:
|
|
|
9963
10022
|
SiteSpaceCustomizationOverrides:
|
|
9964
10023
|
type: object
|
|
9965
10024
|
properties:
|
|
10025
|
+
title:
|
|
10026
|
+
description: Title to use for the published site variant. If not defined, it'll fallback to the content title.
|
|
10027
|
+
$ref: "#/components/schemas/SiteTitle"
|
|
9966
10028
|
styling:
|
|
9967
10029
|
type: object
|
|
9968
10030
|
properties:
|
|
@@ -10256,10 +10318,21 @@ components:
|
|
|
10256
10318
|
default:
|
|
10257
10319
|
type: boolean
|
|
10258
10320
|
description: Whether this is the default space for the site
|
|
10321
|
+
urls:
|
|
10322
|
+
type: object
|
|
10323
|
+
description: URLs associated with the object
|
|
10324
|
+
properties:
|
|
10325
|
+
published:
|
|
10326
|
+
type: string
|
|
10327
|
+
description: URL of the published version of the site-space. Only defined when site is not "unpublished"
|
|
10328
|
+
format: uri
|
|
10329
|
+
required:
|
|
10330
|
+
- location
|
|
10259
10331
|
required:
|
|
10260
10332
|
- id
|
|
10261
10333
|
- space
|
|
10262
10334
|
- path
|
|
10335
|
+
- urls
|
|
10263
10336
|
SiteSpacePath:
|
|
10264
10337
|
type: string
|
|
10265
10338
|
description: Path to the space on the site
|
|
@@ -10445,6 +10518,28 @@ components:
|
|
|
10445
10518
|
application/json:
|
|
10446
10519
|
schema:
|
|
10447
10520
|
$ref: "#/components/schemas/Error"
|
|
10521
|
+
PreconditionFailedError:
|
|
10522
|
+
description: PreconditionFailed
|
|
10523
|
+
content:
|
|
10524
|
+
application/json:
|
|
10525
|
+
schema:
|
|
10526
|
+
type: object
|
|
10527
|
+
required:
|
|
10528
|
+
- error
|
|
10529
|
+
properties:
|
|
10530
|
+
error:
|
|
10531
|
+
type: object
|
|
10532
|
+
properties:
|
|
10533
|
+
code:
|
|
10534
|
+
type: integer
|
|
10535
|
+
format: int32
|
|
10536
|
+
enum:
|
|
10537
|
+
- 412
|
|
10538
|
+
message:
|
|
10539
|
+
type: string
|
|
10540
|
+
required:
|
|
10541
|
+
- code
|
|
10542
|
+
- message
|
|
10448
10543
|
paths:
|
|
10449
10544
|
/:
|
|
10450
10545
|
get:
|
|
@@ -10718,23 +10813,6 @@ paths:
|
|
|
10718
10813
|
description: Space has been deleted
|
|
10719
10814
|
default:
|
|
10720
10815
|
$ref: "#/components/responses/UnexpectedError"
|
|
10721
|
-
"/spaces/{spaceId}/hive/token":
|
|
10722
|
-
post:
|
|
10723
|
-
operationId: generateSpaceHiveReadAccessToken
|
|
10724
|
-
summary: Returns a token to authenticate with Hive to read content from a given space.
|
|
10725
|
-
tags:
|
|
10726
|
-
- hive
|
|
10727
|
-
parameters:
|
|
10728
|
-
- $ref: "#/components/parameters/spaceId"
|
|
10729
|
-
responses:
|
|
10730
|
-
"200":
|
|
10731
|
-
description: The JWT to access the space content in Hive.
|
|
10732
|
-
content:
|
|
10733
|
-
application/json:
|
|
10734
|
-
schema:
|
|
10735
|
-
$ref: "#/components/schemas/HiveAccessToken"
|
|
10736
|
-
default:
|
|
10737
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
10738
10816
|
"/spaces/{spaceId}/duplicate":
|
|
10739
10817
|
post:
|
|
10740
10818
|
operationId: duplicateSpace
|
|
@@ -10856,6 +10934,9 @@ paths:
|
|
|
10856
10934
|
"409":
|
|
10857
10935
|
description: Transfer would not result in any update
|
|
10858
10936
|
$ref: "#/components/responses/ConflictError"
|
|
10937
|
+
"412":
|
|
10938
|
+
description: The space cannot be moved.
|
|
10939
|
+
$ref: "#/components/responses/PreconditionFailedError"
|
|
10859
10940
|
default:
|
|
10860
10941
|
$ref: "#/components/responses/UnexpectedError"
|
|
10861
10942
|
"/spaces/{spaceId}/search":
|
|
@@ -13396,6 +13477,9 @@ paths:
|
|
|
13396
13477
|
"409":
|
|
13397
13478
|
description: Transfer would not result in any update
|
|
13398
13479
|
$ref: "#/components/responses/ConflictError"
|
|
13480
|
+
"412":
|
|
13481
|
+
description: The collection cannot be moved.
|
|
13482
|
+
$ref: "#/components/responses/PreconditionFailedError"
|
|
13399
13483
|
default:
|
|
13400
13484
|
$ref: "#/components/responses/UnexpectedError"
|
|
13401
13485
|
"/collections/{collectionId}/permissions/aggregate":
|
|
@@ -17922,7 +18006,9 @@ paths:
|
|
|
17922
18006
|
content:
|
|
17923
18007
|
application/json:
|
|
17924
18008
|
schema:
|
|
17925
|
-
|
|
18009
|
+
oneOf:
|
|
18010
|
+
- $ref: "#/components/schemas/PublishedContentLookup"
|
|
18011
|
+
- $ref: "#/components/schemas/PublishedSiteContentLookup"
|
|
17926
18012
|
"404":
|
|
17927
18013
|
description: No content found for the URL.
|
|
17928
18014
|
$ref: "#/components/responses/NotFoundError"
|