@gitbook/api 0.54.0 → 0.56.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 +9 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +19 -2
- package/spec/openapi.yaml +14 -2
package/dist/client.d.ts
CHANGED
|
@@ -1074,6 +1074,8 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1074
1074
|
git?: GitSyncBlob;
|
|
1075
1075
|
layout: RevisionPageLayoutOptions;
|
|
1076
1076
|
cover?: RevisionPageDocumentCover;
|
|
1077
|
+
/** If true, the page is not displayed in the navigation, while still being accessible. */
|
|
1078
|
+
hidden?: boolean;
|
|
1077
1079
|
};
|
|
1078
1080
|
export declare type RevisionPageLink = RevisionPageBase & {
|
|
1079
1081
|
/** @deprecated */
|
|
@@ -1219,6 +1221,8 @@ export declare type RevisionPageGroup = RevisionPageBase & {
|
|
|
1219
1221
|
slug: string;
|
|
1220
1222
|
/** Complete path to access the page in the revision. */
|
|
1221
1223
|
path: string;
|
|
1224
|
+
/** If true, the page is not displayed in the navigation, while still being accessible. */
|
|
1225
|
+
hidden?: boolean;
|
|
1222
1226
|
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
1223
1227
|
};
|
|
1224
1228
|
export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
|
|
@@ -8900,8 +8904,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8900
8904
|
/** Desired interval for new subscriptions. Defaults to the existing billing interval. */
|
|
8901
8905
|
interval?: BillingInterval;
|
|
8902
8906
|
}, query?: {
|
|
8903
|
-
/** The app screen URL to bring the user back to after checkout. */
|
|
8904
|
-
|
|
8907
|
+
/** The app screen URL to bring the user back to after a succesfull checkout. */
|
|
8908
|
+
successReturnURL?: string;
|
|
8909
|
+
/** The app screen URL to bring the user back to after a canceled checkout. */
|
|
8910
|
+
cancelReturnURL?: string;
|
|
8905
8911
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
8906
8912
|
type: 'legacy-checkout';
|
|
8907
8913
|
/** Stripe payment session ID */
|
|
@@ -9181,6 +9187,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9181
9187
|
*/
|
|
9182
9188
|
searchSiteContent: (organizationId: string, siteId: string, data: {
|
|
9183
9189
|
query: string;
|
|
9190
|
+
/** @minLength 1 */
|
|
9184
9191
|
siteSpaceIds?: string[];
|
|
9185
9192
|
}, query?: {
|
|
9186
9193
|
/** Identifier of the page results to fetch. */
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -12366,8 +12366,16 @@
|
|
|
12366
12366
|
},
|
|
12367
12367
|
{
|
|
12368
12368
|
"in": "query",
|
|
12369
|
-
"name": "
|
|
12370
|
-
"description": "The app screen URL to bring the user back to after checkout.",
|
|
12369
|
+
"name": "successReturnURL",
|
|
12370
|
+
"description": "The app screen URL to bring the user back to after a succesfull checkout.",
|
|
12371
|
+
"schema": {
|
|
12372
|
+
"type": "string"
|
|
12373
|
+
}
|
|
12374
|
+
},
|
|
12375
|
+
{
|
|
12376
|
+
"in": "query",
|
|
12377
|
+
"name": "cancelReturnURL",
|
|
12378
|
+
"description": "The app screen URL to bring the user back to after a canceled checkout.",
|
|
12371
12379
|
"schema": {
|
|
12372
12380
|
"type": "string"
|
|
12373
12381
|
}
|
|
@@ -13266,6 +13274,7 @@
|
|
|
13266
13274
|
},
|
|
13267
13275
|
"siteSpaceIds": {
|
|
13268
13276
|
"type": "array",
|
|
13277
|
+
"minLength": 1,
|
|
13269
13278
|
"items": {
|
|
13270
13279
|
"type": "string"
|
|
13271
13280
|
}
|
|
@@ -18872,6 +18881,10 @@
|
|
|
18872
18881
|
},
|
|
18873
18882
|
"cover": {
|
|
18874
18883
|
"$ref": "#/components/schemas/RevisionPageDocumentCover"
|
|
18884
|
+
},
|
|
18885
|
+
"hidden": {
|
|
18886
|
+
"type": "boolean",
|
|
18887
|
+
"description": "If true, the page is not displayed in the navigation, while still being accessible."
|
|
18875
18888
|
}
|
|
18876
18889
|
},
|
|
18877
18890
|
"required": [
|
|
@@ -19254,6 +19267,10 @@
|
|
|
19254
19267
|
"description": "Complete path to access the page in the revision.",
|
|
19255
19268
|
"type": "string"
|
|
19256
19269
|
},
|
|
19270
|
+
"hidden": {
|
|
19271
|
+
"type": "boolean",
|
|
19272
|
+
"description": "If true, the page is not displayed in the navigation, while still being accessible."
|
|
19273
|
+
},
|
|
19257
19274
|
"pages": {
|
|
19258
19275
|
"type": "array",
|
|
19259
19276
|
"items": {
|
package/spec/openapi.yaml
CHANGED
|
@@ -6886,8 +6886,13 @@ paths:
|
|
|
6886
6886
|
- $ref: "#/components/parameters/organizationId"
|
|
6887
6887
|
- $ref: "#/components/parameters/siteId"
|
|
6888
6888
|
- in: query
|
|
6889
|
-
name:
|
|
6890
|
-
description: The app screen URL to bring the user back to after checkout.
|
|
6889
|
+
name: successReturnURL
|
|
6890
|
+
description: The app screen URL to bring the user back to after a succesfull checkout.
|
|
6891
|
+
schema:
|
|
6892
|
+
type: string
|
|
6893
|
+
- in: query
|
|
6894
|
+
name: cancelReturnURL
|
|
6895
|
+
description: The app screen URL to bring the user back to after a canceled checkout.
|
|
6891
6896
|
schema:
|
|
6892
6897
|
type: string
|
|
6893
6898
|
requestBody:
|
|
@@ -7400,6 +7405,7 @@ paths:
|
|
|
7400
7405
|
type: string
|
|
7401
7406
|
siteSpaceIds:
|
|
7402
7407
|
type: array
|
|
7408
|
+
minLength: 1
|
|
7403
7409
|
items:
|
|
7404
7410
|
type: string
|
|
7405
7411
|
required:
|
|
@@ -11009,6 +11015,9 @@ components:
|
|
|
11009
11015
|
$ref: "#/components/schemas/RevisionPageLayoutOptions"
|
|
11010
11016
|
cover:
|
|
11011
11017
|
$ref: "#/components/schemas/RevisionPageDocumentCover"
|
|
11018
|
+
hidden:
|
|
11019
|
+
type: boolean
|
|
11020
|
+
description: If true, the page is not displayed in the navigation, while still being accessible.
|
|
11012
11021
|
required:
|
|
11013
11022
|
- kind
|
|
11014
11023
|
- type
|
|
@@ -11284,6 +11293,9 @@ components:
|
|
|
11284
11293
|
path:
|
|
11285
11294
|
description: Complete path to access the page in the revision.
|
|
11286
11295
|
type: string
|
|
11296
|
+
hidden:
|
|
11297
|
+
type: boolean
|
|
11298
|
+
description: If true, the page is not displayed in the navigation, while still being accessible.
|
|
11287
11299
|
pages:
|
|
11288
11300
|
type: array
|
|
11289
11301
|
items:
|