@gitbook/api 0.95.0 → 0.96.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 +27 -0
- package/dist/index.cjs +8 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
- package/spec/openapi.json +73 -1
- package/spec/openapi.yaml +49 -1
package/dist/client.d.ts
CHANGED
|
@@ -4284,6 +4284,15 @@ export declare enum CustomizationTheme {
|
|
|
4284
4284
|
export interface CustomizationTint {
|
|
4285
4285
|
color: CustomizationThemedColor;
|
|
4286
4286
|
}
|
|
4287
|
+
/**
|
|
4288
|
+
* The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
|
|
4289
|
+
* - `default`: Links are colored in the primary color and feature an underline in the same color.
|
|
4290
|
+
* - `accent`: Links are colored the same as body text and feature an underline in the primary color.
|
|
4291
|
+
*/
|
|
4292
|
+
export declare enum CustomizationLinksStyle {
|
|
4293
|
+
Default = "default",
|
|
4294
|
+
Accent = "accent"
|
|
4295
|
+
}
|
|
4287
4296
|
export declare enum CustomizationIconsStyle {
|
|
4288
4297
|
Regular = "regular",
|
|
4289
4298
|
Solid = "solid",
|
|
@@ -4328,6 +4337,12 @@ export interface SiteCustomizationSettings {
|
|
|
4328
4337
|
warningColor: CustomizationThemedColor;
|
|
4329
4338
|
dangerColor: CustomizationThemedColor;
|
|
4330
4339
|
corners: CustomizationCorners;
|
|
4340
|
+
/**
|
|
4341
|
+
* The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
|
|
4342
|
+
* - `default`: Links are colored in the primary color and feature an underline in the same color.
|
|
4343
|
+
* - `accent`: Links are colored the same as body text and feature an underline in the primary color.
|
|
4344
|
+
*/
|
|
4345
|
+
links: CustomizationLinksStyle;
|
|
4331
4346
|
font: CustomizationFont;
|
|
4332
4347
|
/**
|
|
4333
4348
|
* The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
@@ -4739,6 +4754,8 @@ export interface SiteInsightsQueryDateTimeColumn {
|
|
|
4739
4754
|
interval?: 'hour' | 'day' | 'week' | 'month';
|
|
4740
4755
|
}
|
|
4741
4756
|
export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
4757
|
+
column: 'url';
|
|
4758
|
+
} | {
|
|
4742
4759
|
column: 'eventType';
|
|
4743
4760
|
} | {
|
|
4744
4761
|
column: 'eventsCount';
|
|
@@ -4870,6 +4887,9 @@ export declare enum SiteInsightsVisitorBot {
|
|
|
4870
4887
|
export type SiteInsightsQueryEventsValues = {
|
|
4871
4888
|
column: 'datetime';
|
|
4872
4889
|
values: Timestamp[];
|
|
4890
|
+
} | {
|
|
4891
|
+
column: 'url';
|
|
4892
|
+
values: URL[];
|
|
4873
4893
|
} | {
|
|
4874
4894
|
column: 'eventsCount';
|
|
4875
4895
|
values: number[];
|
|
@@ -10877,6 +10897,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10877
10897
|
tint?: CustomizationTint | null;
|
|
10878
10898
|
/** The style of the corners to use. Set to null to reset the override. */
|
|
10879
10899
|
corners?: CustomizationCorners | null;
|
|
10900
|
+
/** The style for links to use. Set to null to reset the override. */
|
|
10901
|
+
links?: CustomizationLinksStyle | null;
|
|
10880
10902
|
/** The font family to use for the content. Set to null to reset the override. */
|
|
10881
10903
|
font?: CustomizationFont | null;
|
|
10882
10904
|
/** The icons style to use for the content. Set to null to reset the override. */
|
|
@@ -11699,6 +11721,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11699
11721
|
* @default false
|
|
11700
11722
|
*/
|
|
11701
11723
|
redirectOnError?: boolean;
|
|
11724
|
+
/**
|
|
11725
|
+
* When true the HTTP response can be cached by the CDN
|
|
11726
|
+
* @default false
|
|
11727
|
+
*/
|
|
11728
|
+
cache?: boolean;
|
|
11702
11729
|
}, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, Error | {
|
|
11703
11730
|
error: {
|
|
11704
11731
|
/** @format int32 */
|
package/dist/index.cjs
CHANGED
|
@@ -209,6 +209,7 @@ __export(src_exports, {
|
|
|
209
209
|
CustomizationFont: () => CustomizationFont,
|
|
210
210
|
CustomizationHeaderPreset: () => CustomizationHeaderPreset,
|
|
211
211
|
CustomizationIconsStyle: () => CustomizationIconsStyle,
|
|
212
|
+
CustomizationLinksStyle: () => CustomizationLinksStyle,
|
|
212
213
|
CustomizationLocale: () => CustomizationLocale,
|
|
213
214
|
CustomizationSidebarBackgroundStyle: () => CustomizationSidebarBackgroundStyle,
|
|
214
215
|
CustomizationSidebarListStyle: () => CustomizationSidebarListStyle,
|
|
@@ -266,7 +267,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
266
267
|
|
|
267
268
|
// package.json
|
|
268
269
|
var name = "@gitbook/api";
|
|
269
|
-
var version = "0.
|
|
270
|
+
var version = "0.96.0";
|
|
270
271
|
|
|
271
272
|
// src/client.ts
|
|
272
273
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -748,6 +749,11 @@ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
|
|
|
748
749
|
CustomizationTheme2["Gradient"] = "gradient";
|
|
749
750
|
return CustomizationTheme2;
|
|
750
751
|
})(CustomizationTheme || {});
|
|
752
|
+
var CustomizationLinksStyle = /* @__PURE__ */ ((CustomizationLinksStyle2) => {
|
|
753
|
+
CustomizationLinksStyle2["Default"] = "default";
|
|
754
|
+
CustomizationLinksStyle2["Accent"] = "accent";
|
|
755
|
+
return CustomizationLinksStyle2;
|
|
756
|
+
})(CustomizationLinksStyle || {});
|
|
751
757
|
var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
752
758
|
CustomizationIconsStyle2["Regular"] = "regular";
|
|
753
759
|
CustomizationIconsStyle2["Solid"] = "solid";
|
|
@@ -3760,6 +3766,7 @@ var GitBookAPI = class extends Api {
|
|
|
3760
3766
|
CustomizationFont,
|
|
3761
3767
|
CustomizationHeaderPreset,
|
|
3762
3768
|
CustomizationIconsStyle,
|
|
3769
|
+
CustomizationLinksStyle,
|
|
3763
3770
|
CustomizationLocale,
|
|
3764
3771
|
CustomizationSidebarBackgroundStyle,
|
|
3765
3772
|
CustomizationSidebarListStyle,
|
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.96.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -654,6 +654,11 @@ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
|
|
|
654
654
|
CustomizationTheme2["Gradient"] = "gradient";
|
|
655
655
|
return CustomizationTheme2;
|
|
656
656
|
})(CustomizationTheme || {});
|
|
657
|
+
var CustomizationLinksStyle = /* @__PURE__ */ ((CustomizationLinksStyle2) => {
|
|
658
|
+
CustomizationLinksStyle2["Default"] = "default";
|
|
659
|
+
CustomizationLinksStyle2["Accent"] = "accent";
|
|
660
|
+
return CustomizationLinksStyle2;
|
|
661
|
+
})(CustomizationLinksStyle || {});
|
|
657
662
|
var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
658
663
|
CustomizationIconsStyle2["Regular"] = "regular";
|
|
659
664
|
CustomizationIconsStyle2["Solid"] = "solid";
|
|
@@ -3665,6 +3670,7 @@ export {
|
|
|
3665
3670
|
CustomizationFont,
|
|
3666
3671
|
CustomizationHeaderPreset,
|
|
3667
3672
|
CustomizationIconsStyle,
|
|
3673
|
+
CustomizationLinksStyle,
|
|
3668
3674
|
CustomizationLocale,
|
|
3669
3675
|
CustomizationSidebarBackgroundStyle,
|
|
3670
3676
|
CustomizationSidebarListStyle,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -14242,6 +14242,21 @@
|
|
|
14242
14242
|
}
|
|
14243
14243
|
]
|
|
14244
14244
|
},
|
|
14245
|
+
"links": {
|
|
14246
|
+
"description": "The style for links to use. Set to null to reset the override.",
|
|
14247
|
+
"oneOf": [
|
|
14248
|
+
{
|
|
14249
|
+
"$ref": "#/components/schemas/CustomizationLinksStyle"
|
|
14250
|
+
},
|
|
14251
|
+
{
|
|
14252
|
+
"type": "string",
|
|
14253
|
+
"nullable": true,
|
|
14254
|
+
"enum": [
|
|
14255
|
+
null
|
|
14256
|
+
]
|
|
14257
|
+
}
|
|
14258
|
+
]
|
|
14259
|
+
},
|
|
14245
14260
|
"font": {
|
|
14246
14261
|
"description": "The font family to use for the content. Set to null to reset the override.",
|
|
14247
14262
|
"oneOf": [
|
|
@@ -16444,6 +16459,16 @@
|
|
|
16444
16459
|
"type": "boolean",
|
|
16445
16460
|
"default": false
|
|
16446
16461
|
}
|
|
16462
|
+
},
|
|
16463
|
+
{
|
|
16464
|
+
"name": "cache",
|
|
16465
|
+
"in": "query",
|
|
16466
|
+
"required": false,
|
|
16467
|
+
"description": "When true the HTTP response can be cached by the CDN",
|
|
16468
|
+
"schema": {
|
|
16469
|
+
"type": "boolean",
|
|
16470
|
+
"default": false
|
|
16471
|
+
}
|
|
16447
16472
|
}
|
|
16448
16473
|
],
|
|
16449
16474
|
"responses": {
|
|
@@ -21896,7 +21921,7 @@
|
|
|
21896
21921
|
"type": "object",
|
|
21897
21922
|
"description": "Dependencies the computation depends on.\nThe state of the dependencies will be passed to the computation.\nWhen the dependency's targets are updated, the computation will be updated.\n",
|
|
21898
21923
|
"additionalProperties": {
|
|
21899
|
-
"
|
|
21924
|
+
"anyOf": [
|
|
21900
21925
|
{
|
|
21901
21926
|
"type": "object",
|
|
21902
21927
|
"properties": {
|
|
@@ -31118,6 +31143,14 @@
|
|
|
31118
31143
|
"color"
|
|
31119
31144
|
]
|
|
31120
31145
|
},
|
|
31146
|
+
"CustomizationLinksStyle": {
|
|
31147
|
+
"type": "string",
|
|
31148
|
+
"description": "The style used for regular links in the main content, header and footer. Sidebar items are styled separately.\n- `default`: Links are colored in the primary color and feature an underline in the same color.\n- `accent`: Links are colored the same as body text and feature an underline in the primary color.\n",
|
|
31149
|
+
"enum": [
|
|
31150
|
+
"default",
|
|
31151
|
+
"accent"
|
|
31152
|
+
]
|
|
31153
|
+
},
|
|
31121
31154
|
"CustomizationIconsStyle": {
|
|
31122
31155
|
"type": "string",
|
|
31123
31156
|
"enum": [
|
|
@@ -31179,6 +31212,9 @@
|
|
|
31179
31212
|
"corners": {
|
|
31180
31213
|
"$ref": "#/components/schemas/CustomizationCorners"
|
|
31181
31214
|
},
|
|
31215
|
+
"links": {
|
|
31216
|
+
"$ref": "#/components/schemas/CustomizationLinksStyle"
|
|
31217
|
+
},
|
|
31182
31218
|
"font": {
|
|
31183
31219
|
"$ref": "#/components/schemas/CustomizationFont"
|
|
31184
31220
|
},
|
|
@@ -31213,6 +31249,7 @@
|
|
|
31213
31249
|
"warningColor",
|
|
31214
31250
|
"dangerColor",
|
|
31215
31251
|
"corners",
|
|
31252
|
+
"links",
|
|
31216
31253
|
"font",
|
|
31217
31254
|
"background",
|
|
31218
31255
|
"icons",
|
|
@@ -32561,6 +32598,20 @@
|
|
|
32561
32598
|
{
|
|
32562
32599
|
"$ref": "#/components/schemas/SiteInsightsQueryDateTimeColumn"
|
|
32563
32600
|
},
|
|
32601
|
+
{
|
|
32602
|
+
"type": "object",
|
|
32603
|
+
"required": [
|
|
32604
|
+
"column"
|
|
32605
|
+
],
|
|
32606
|
+
"properties": {
|
|
32607
|
+
"column": {
|
|
32608
|
+
"type": "string",
|
|
32609
|
+
"enum": [
|
|
32610
|
+
"url"
|
|
32611
|
+
]
|
|
32612
|
+
}
|
|
32613
|
+
}
|
|
32614
|
+
},
|
|
32564
32615
|
{
|
|
32565
32616
|
"type": "object",
|
|
32566
32617
|
"required": [
|
|
@@ -33177,6 +33228,27 @@
|
|
|
33177
33228
|
}
|
|
33178
33229
|
}
|
|
33179
33230
|
},
|
|
33231
|
+
{
|
|
33232
|
+
"type": "object",
|
|
33233
|
+
"required": [
|
|
33234
|
+
"column",
|
|
33235
|
+
"values"
|
|
33236
|
+
],
|
|
33237
|
+
"properties": {
|
|
33238
|
+
"column": {
|
|
33239
|
+
"type": "string",
|
|
33240
|
+
"enum": [
|
|
33241
|
+
"url"
|
|
33242
|
+
]
|
|
33243
|
+
},
|
|
33244
|
+
"values": {
|
|
33245
|
+
"type": "array",
|
|
33246
|
+
"items": {
|
|
33247
|
+
"$ref": "#/components/schemas/URL"
|
|
33248
|
+
}
|
|
33249
|
+
}
|
|
33250
|
+
}
|
|
33251
|
+
},
|
|
33180
33252
|
{
|
|
33181
33253
|
"type": "object",
|
|
33182
33254
|
"required": [
|
package/spec/openapi.yaml
CHANGED
|
@@ -7952,6 +7952,14 @@ paths:
|
|
|
7952
7952
|
nullable: true
|
|
7953
7953
|
enum:
|
|
7954
7954
|
- null
|
|
7955
|
+
links:
|
|
7956
|
+
description: The style for links to use. Set to null to reset the override.
|
|
7957
|
+
oneOf:
|
|
7958
|
+
- $ref: "#/components/schemas/CustomizationLinksStyle"
|
|
7959
|
+
- type: string
|
|
7960
|
+
nullable: true
|
|
7961
|
+
enum:
|
|
7962
|
+
- null
|
|
7955
7963
|
font:
|
|
7956
7964
|
description: The font family to use for the content. Set to null to reset the override.
|
|
7957
7965
|
oneOf:
|
|
@@ -9221,6 +9229,13 @@ paths:
|
|
|
9221
9229
|
schema:
|
|
9222
9230
|
type: boolean
|
|
9223
9231
|
default: false
|
|
9232
|
+
- name: cache
|
|
9233
|
+
in: query
|
|
9234
|
+
required: false
|
|
9235
|
+
description: When true the HTTP response can be cached by the CDN
|
|
9236
|
+
schema:
|
|
9237
|
+
type: boolean
|
|
9238
|
+
default: false
|
|
9224
9239
|
responses:
|
|
9225
9240
|
"200":
|
|
9226
9241
|
description: OK
|
|
@@ -12757,7 +12772,7 @@ components:
|
|
|
12757
12772
|
The state of the dependencies will be passed to the computation.
|
|
12758
12773
|
When the dependency's targets are updated, the computation will be updated.
|
|
12759
12774
|
additionalProperties:
|
|
12760
|
-
|
|
12775
|
+
anyOf:
|
|
12761
12776
|
- type: object
|
|
12762
12777
|
properties:
|
|
12763
12778
|
ref:
|
|
@@ -18942,6 +18957,15 @@ components:
|
|
|
18942
18957
|
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
18943
18958
|
required:
|
|
18944
18959
|
- color
|
|
18960
|
+
CustomizationLinksStyle:
|
|
18961
|
+
type: string
|
|
18962
|
+
description: |
|
|
18963
|
+
The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
|
|
18964
|
+
- `default`: Links are colored in the primary color and feature an underline in the same color.
|
|
18965
|
+
- `accent`: Links are colored the same as body text and feature an underline in the primary color.
|
|
18966
|
+
enum:
|
|
18967
|
+
- default
|
|
18968
|
+
- accent
|
|
18945
18969
|
CustomizationIconsStyle:
|
|
18946
18970
|
type: string
|
|
18947
18971
|
enum:
|
|
@@ -18993,6 +19017,8 @@ components:
|
|
|
18993
19017
|
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
18994
19018
|
corners:
|
|
18995
19019
|
$ref: "#/components/schemas/CustomizationCorners"
|
|
19020
|
+
links:
|
|
19021
|
+
$ref: "#/components/schemas/CustomizationLinksStyle"
|
|
18996
19022
|
font:
|
|
18997
19023
|
$ref: "#/components/schemas/CustomizationFont"
|
|
18998
19024
|
background:
|
|
@@ -19018,6 +19044,7 @@ components:
|
|
|
19018
19044
|
- warningColor
|
|
19019
19045
|
- dangerColor
|
|
19020
19046
|
- corners
|
|
19047
|
+
- links
|
|
19021
19048
|
- font
|
|
19022
19049
|
- background
|
|
19023
19050
|
- icons
|
|
@@ -19890,6 +19917,14 @@ components:
|
|
|
19890
19917
|
SiteInsightsQueryEventsColumn:
|
|
19891
19918
|
oneOf:
|
|
19892
19919
|
- $ref: "#/components/schemas/SiteInsightsQueryDateTimeColumn"
|
|
19920
|
+
- type: object
|
|
19921
|
+
required:
|
|
19922
|
+
- column
|
|
19923
|
+
properties:
|
|
19924
|
+
column:
|
|
19925
|
+
type: string
|
|
19926
|
+
enum:
|
|
19927
|
+
- url
|
|
19893
19928
|
- type: object
|
|
19894
19929
|
required:
|
|
19895
19930
|
- column
|
|
@@ -20262,6 +20297,19 @@ components:
|
|
|
20262
20297
|
type: array
|
|
20263
20298
|
items:
|
|
20264
20299
|
$ref: "#/components/schemas/Timestamp"
|
|
20300
|
+
- type: object
|
|
20301
|
+
required:
|
|
20302
|
+
- column
|
|
20303
|
+
- values
|
|
20304
|
+
properties:
|
|
20305
|
+
column:
|
|
20306
|
+
type: string
|
|
20307
|
+
enum:
|
|
20308
|
+
- url
|
|
20309
|
+
values:
|
|
20310
|
+
type: array
|
|
20311
|
+
items:
|
|
20312
|
+
$ref: "#/components/schemas/URL"
|
|
20265
20313
|
- type: object
|
|
20266
20314
|
required:
|
|
20267
20315
|
- column
|