@gitbook/api 0.167.0 → 0.168.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 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +19 -1
- package/spec/openapi.yaml +13 -0
package/dist/client.d.ts
CHANGED
|
@@ -4334,6 +4334,11 @@ export interface Site {
|
|
|
4334
4334
|
* @format uri
|
|
4335
4335
|
*/
|
|
4336
4336
|
published?: string;
|
|
4337
|
+
/**
|
|
4338
|
+
* URL of the preview version of the site.
|
|
4339
|
+
* @format uri
|
|
4340
|
+
*/
|
|
4341
|
+
preview: string;
|
|
4337
4342
|
};
|
|
4338
4343
|
}
|
|
4339
4344
|
export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
|
|
@@ -7646,6 +7651,8 @@ export interface PublishedSiteContent {
|
|
|
7646
7651
|
contextId?: string;
|
|
7647
7652
|
/** The canonical URL of the resolution. */
|
|
7648
7653
|
canonicalUrl: string;
|
|
7654
|
+
/** Whether the URL is a preview URL */
|
|
7655
|
+
preview?: boolean;
|
|
7649
7656
|
}
|
|
7650
7657
|
export type PublishedSiteContentLookup = PublishedContentRedirect | PublishedSiteContent;
|
|
7651
7658
|
/** An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims. */
|
|
@@ -13135,6 +13142,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13135
13142
|
* @default true
|
|
13136
13143
|
*/
|
|
13137
13144
|
draft?: boolean;
|
|
13145
|
+
/** Target URL of the preview. If not provided, the default site preview URL will be used. */
|
|
13146
|
+
target?: string;
|
|
13138
13147
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
13139
13148
|
url: URL;
|
|
13140
13149
|
}, {
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -12635,6 +12635,14 @@
|
|
|
12635
12635
|
"type": "boolean",
|
|
12636
12636
|
"default": true
|
|
12637
12637
|
}
|
|
12638
|
+
},
|
|
12639
|
+
{
|
|
12640
|
+
"name": "target",
|
|
12641
|
+
"in": "query",
|
|
12642
|
+
"description": "Target URL of the preview. If not provided, the default site preview URL will be used.",
|
|
12643
|
+
"schema": {
|
|
12644
|
+
"type": "string"
|
|
12645
|
+
}
|
|
12638
12646
|
}
|
|
12639
12647
|
],
|
|
12640
12648
|
"responses": {
|
|
@@ -31436,11 +31444,17 @@
|
|
|
31436
31444
|
"type": "string",
|
|
31437
31445
|
"description": "URL of the published version of the site. Only defined when site is published.",
|
|
31438
31446
|
"format": "uri"
|
|
31447
|
+
},
|
|
31448
|
+
"preview": {
|
|
31449
|
+
"type": "string",
|
|
31450
|
+
"description": "URL of the preview version of the site.",
|
|
31451
|
+
"format": "uri"
|
|
31439
31452
|
}
|
|
31440
31453
|
},
|
|
31441
31454
|
"required": [
|
|
31442
31455
|
"app",
|
|
31443
|
-
"location"
|
|
31456
|
+
"location",
|
|
31457
|
+
"preview"
|
|
31444
31458
|
]
|
|
31445
31459
|
}
|
|
31446
31460
|
},
|
|
@@ -43684,6 +43698,10 @@
|
|
|
43684
43698
|
"canonicalUrl": {
|
|
43685
43699
|
"type": "string",
|
|
43686
43700
|
"description": "The canonical URL of the resolution."
|
|
43701
|
+
},
|
|
43702
|
+
"preview": {
|
|
43703
|
+
"type": "boolean",
|
|
43704
|
+
"description": "Whether the URL is a preview URL"
|
|
43687
43705
|
}
|
|
43688
43706
|
},
|
|
43689
43707
|
"required": [
|
package/spec/openapi.yaml
CHANGED
|
@@ -7184,6 +7184,11 @@ paths:
|
|
|
7184
7184
|
schema:
|
|
7185
7185
|
type: boolean
|
|
7186
7186
|
default: true
|
|
7187
|
+
- name: target
|
|
7188
|
+
in: query
|
|
7189
|
+
description: Target URL of the preview. If not provided, the default site preview URL will be used.
|
|
7190
|
+
schema:
|
|
7191
|
+
type: string
|
|
7187
7192
|
responses:
|
|
7188
7193
|
"200":
|
|
7189
7194
|
description: OK
|
|
@@ -18935,9 +18940,14 @@ components:
|
|
|
18935
18940
|
type: string
|
|
18936
18941
|
description: URL of the published version of the site. Only defined when site is published.
|
|
18937
18942
|
format: uri
|
|
18943
|
+
preview:
|
|
18944
|
+
type: string
|
|
18945
|
+
description: URL of the preview version of the site.
|
|
18946
|
+
format: uri
|
|
18938
18947
|
required:
|
|
18939
18948
|
- app
|
|
18940
18949
|
- location
|
|
18950
|
+
- preview
|
|
18941
18951
|
required:
|
|
18942
18952
|
- object
|
|
18943
18953
|
- id
|
|
@@ -27166,6 +27176,9 @@ components:
|
|
|
27166
27176
|
canonicalUrl:
|
|
27167
27177
|
type: string
|
|
27168
27178
|
description: The canonical URL of the resolution.
|
|
27179
|
+
preview:
|
|
27180
|
+
type: boolean
|
|
27181
|
+
description: Whether the URL is a preview URL
|
|
27169
27182
|
required:
|
|
27170
27183
|
- site
|
|
27171
27184
|
- siteSpace
|