@gitbook/api 0.94.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 +72 -5
- package/dist/index.cjs +8 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
- package/spec/openapi.json +225 -3
- package/spec/openapi.yaml +145 -2
package/dist/client.d.ts
CHANGED
|
@@ -1100,7 +1100,7 @@ export type RevisionPageLink = RevisionPageBase & {
|
|
|
1100
1100
|
*/
|
|
1101
1101
|
hidden?: boolean;
|
|
1102
1102
|
};
|
|
1103
|
-
export type ComputedContentDependencyRef = ContentRefSpace;
|
|
1103
|
+
export type ComputedContentDependencyRef = ContentRefSpace | ContentRefOpenAPI;
|
|
1104
1104
|
/** Dependency for a computation, with its resolved value. */
|
|
1105
1105
|
export type ComputedContentDependencyValue = {
|
|
1106
1106
|
ref: ContentRefSpace;
|
|
@@ -1110,6 +1110,15 @@ export type ComputedContentDependencyValue = {
|
|
|
1110
1110
|
id: string;
|
|
1111
1111
|
revision: string;
|
|
1112
1112
|
} | null;
|
|
1113
|
+
} | {
|
|
1114
|
+
ref: ContentRefOpenAPI;
|
|
1115
|
+
/** See `OpenAPI` schema component. */
|
|
1116
|
+
value: {
|
|
1117
|
+
object: 'openapi-spec';
|
|
1118
|
+
id: string;
|
|
1119
|
+
slug: string;
|
|
1120
|
+
lastVersion?: string;
|
|
1121
|
+
} | null;
|
|
1113
1122
|
};
|
|
1114
1123
|
/** Parameters for a computed content */
|
|
1115
1124
|
export interface ComputedContentSource {
|
|
@@ -1767,10 +1776,17 @@ export interface OpenAPISpec {
|
|
|
1767
1776
|
sourceURL?: URL;
|
|
1768
1777
|
/** Processing state */
|
|
1769
1778
|
processingState: OpenAPISpecProcessingState;
|
|
1779
|
+
/** ID of the latest version of the OpenAPI specification */
|
|
1780
|
+
lastVersion?: string;
|
|
1770
1781
|
/** Date of the last processing */
|
|
1771
1782
|
lastProcessedAt?: Timestamp;
|
|
1772
1783
|
/** OpenAPI processing error code */
|
|
1773
1784
|
lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
|
|
1785
|
+
/** The set of permissions for the OpenAPI specification. */
|
|
1786
|
+
permissions: {
|
|
1787
|
+
/** Can the user edit the specification. */
|
|
1788
|
+
edit?: boolean;
|
|
1789
|
+
};
|
|
1774
1790
|
/** URLs associated with the object */
|
|
1775
1791
|
urls: {
|
|
1776
1792
|
/** URL of the OpenAPI specification in the API */
|
|
@@ -4268,6 +4284,15 @@ export declare enum CustomizationTheme {
|
|
|
4268
4284
|
export interface CustomizationTint {
|
|
4269
4285
|
color: CustomizationThemedColor;
|
|
4270
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
|
+
}
|
|
4271
4296
|
export declare enum CustomizationIconsStyle {
|
|
4272
4297
|
Regular = "regular",
|
|
4273
4298
|
Solid = "solid",
|
|
@@ -4307,7 +4332,17 @@ export interface SiteCustomizationSettings {
|
|
|
4307
4332
|
theme: CustomizationTheme;
|
|
4308
4333
|
primaryColor: CustomizationThemedColor;
|
|
4309
4334
|
tint?: CustomizationTint;
|
|
4335
|
+
infoColor: CustomizationThemedColor;
|
|
4336
|
+
successColor: CustomizationThemedColor;
|
|
4337
|
+
warningColor: CustomizationThemedColor;
|
|
4338
|
+
dangerColor: CustomizationThemedColor;
|
|
4310
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;
|
|
4311
4346
|
font: CustomizationFont;
|
|
4312
4347
|
/**
|
|
4313
4348
|
* The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
@@ -4343,7 +4378,15 @@ export interface SiteCustomizationSettings {
|
|
|
4343
4378
|
/** The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead. */
|
|
4344
4379
|
preset: CustomizationHeaderPreset;
|
|
4345
4380
|
logo?: CustomizationThemedURL;
|
|
4381
|
+
/**
|
|
4382
|
+
* Color of the background in the header. This value is now deprecated in favour of the new theming colors.
|
|
4383
|
+
* @deprecated
|
|
4384
|
+
*/
|
|
4346
4385
|
backgroundColor?: CustomizationThemedColor;
|
|
4386
|
+
/**
|
|
4387
|
+
* Color of the links in the header. This value is now deprecated and will be phased out in favour of the new theming colors.
|
|
4388
|
+
* @deprecated
|
|
4389
|
+
*/
|
|
4347
4390
|
linkColor?: CustomizationThemedColor;
|
|
4348
4391
|
links: CustomizationHeaderItem[];
|
|
4349
4392
|
};
|
|
@@ -4711,6 +4754,8 @@ export interface SiteInsightsQueryDateTimeColumn {
|
|
|
4711
4754
|
interval?: 'hour' | 'day' | 'week' | 'month';
|
|
4712
4755
|
}
|
|
4713
4756
|
export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
4757
|
+
column: 'url';
|
|
4758
|
+
} | {
|
|
4714
4759
|
column: 'eventType';
|
|
4715
4760
|
} | {
|
|
4716
4761
|
column: 'eventsCount';
|
|
@@ -4842,6 +4887,9 @@ export declare enum SiteInsightsVisitorBot {
|
|
|
4842
4887
|
export type SiteInsightsQueryEventsValues = {
|
|
4843
4888
|
column: 'datetime';
|
|
4844
4889
|
values: Timestamp[];
|
|
4890
|
+
} | {
|
|
4891
|
+
column: 'url';
|
|
4892
|
+
values: URL[];
|
|
4845
4893
|
} | {
|
|
4846
4894
|
column: 'eventsCount';
|
|
4847
4895
|
values: number[];
|
|
@@ -5344,8 +5392,12 @@ export interface OpenAPISpecVersion {
|
|
|
5344
5392
|
app: URL;
|
|
5345
5393
|
};
|
|
5346
5394
|
}
|
|
5347
|
-
/**
|
|
5348
|
-
export
|
|
5395
|
+
/** Content of the specification available through filesystem or public URL. */
|
|
5396
|
+
export interface OpenAPISpecContent {
|
|
5397
|
+
/** Filesystem containing all specifications. */
|
|
5398
|
+
filesystem: object;
|
|
5399
|
+
url: URL;
|
|
5400
|
+
}
|
|
5349
5401
|
/**
|
|
5350
5402
|
* @minLength 64
|
|
5351
5403
|
* @maxLength 64
|
|
@@ -10833,10 +10885,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10833
10885
|
theme?: CustomizationTheme | null;
|
|
10834
10886
|
/** The primary color used for links and UI text. Set to null to reset the override. */
|
|
10835
10887
|
primaryColor?: CustomizationThemedColor | null;
|
|
10888
|
+
/** Used for informational messages and neutral alerts. Set to null to reset the override. */
|
|
10889
|
+
infoColor?: CustomizationThemedColor | null;
|
|
10890
|
+
/** Used for showing positive actions or achievements. Set to null to reset the override. */
|
|
10891
|
+
successColor?: CustomizationThemedColor | null;
|
|
10892
|
+
/** Used for showing important information or non-critical warnings. Set to null to reset the override. */
|
|
10893
|
+
warningColor?: CustomizationThemedColor | null;
|
|
10894
|
+
/** Used for destructive actions or raising attention to critical information. Set to null to reset the override. */
|
|
10895
|
+
dangerColor?: CustomizationThemedColor | null;
|
|
10836
10896
|
/** The tint will color the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too. */
|
|
10837
10897
|
tint?: CustomizationTint | null;
|
|
10838
10898
|
/** The style of the corners to use. Set to null to reset the override. */
|
|
10839
10899
|
corners?: CustomizationCorners | null;
|
|
10900
|
+
/** The style for links to use. Set to null to reset the override. */
|
|
10901
|
+
links?: CustomizationLinksStyle | null;
|
|
10840
10902
|
/** The font family to use for the content. Set to null to reset the override. */
|
|
10841
10903
|
font?: CustomizationFont | null;
|
|
10842
10904
|
/** The icons style to use for the content. Set to null to reset the override. */
|
|
@@ -11402,7 +11464,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11402
11464
|
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content
|
|
11403
11465
|
* @secure
|
|
11404
11466
|
*/
|
|
11405
|
-
getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<
|
|
11467
|
+
getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
11406
11468
|
error: {
|
|
11407
11469
|
/** @format int32 */
|
|
11408
11470
|
code: 404;
|
|
@@ -11434,7 +11496,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11434
11496
|
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content
|
|
11435
11497
|
* @secure
|
|
11436
11498
|
*/
|
|
11437
|
-
getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<
|
|
11499
|
+
getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
11438
11500
|
error: {
|
|
11439
11501
|
/** @format int32 */
|
|
11440
11502
|
code: 404;
|
|
@@ -11659,6 +11721,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11659
11721
|
* @default false
|
|
11660
11722
|
*/
|
|
11661
11723
|
redirectOnError?: boolean;
|
|
11724
|
+
/**
|
|
11725
|
+
* When true the HTTP response can be cached by the CDN
|
|
11726
|
+
* @default false
|
|
11727
|
+
*/
|
|
11728
|
+
cache?: boolean;
|
|
11662
11729
|
}, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, Error | {
|
|
11663
11730
|
error: {
|
|
11664
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
|
@@ -14152,6 +14152,66 @@
|
|
|
14152
14152
|
}
|
|
14153
14153
|
]
|
|
14154
14154
|
},
|
|
14155
|
+
"infoColor": {
|
|
14156
|
+
"description": "Used for informational messages and neutral alerts. Set to null to reset the override.",
|
|
14157
|
+
"oneOf": [
|
|
14158
|
+
{
|
|
14159
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
14160
|
+
},
|
|
14161
|
+
{
|
|
14162
|
+
"type": "string",
|
|
14163
|
+
"nullable": true,
|
|
14164
|
+
"enum": [
|
|
14165
|
+
null
|
|
14166
|
+
]
|
|
14167
|
+
}
|
|
14168
|
+
]
|
|
14169
|
+
},
|
|
14170
|
+
"successColor": {
|
|
14171
|
+
"description": "Used for showing positive actions or achievements. Set to null to reset the override.",
|
|
14172
|
+
"oneOf": [
|
|
14173
|
+
{
|
|
14174
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
14175
|
+
},
|
|
14176
|
+
{
|
|
14177
|
+
"type": "string",
|
|
14178
|
+
"nullable": true,
|
|
14179
|
+
"enum": [
|
|
14180
|
+
null
|
|
14181
|
+
]
|
|
14182
|
+
}
|
|
14183
|
+
]
|
|
14184
|
+
},
|
|
14185
|
+
"warningColor": {
|
|
14186
|
+
"description": "Used for showing important information or non-critical warnings. Set to null to reset the override.",
|
|
14187
|
+
"oneOf": [
|
|
14188
|
+
{
|
|
14189
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
14190
|
+
},
|
|
14191
|
+
{
|
|
14192
|
+
"type": "string",
|
|
14193
|
+
"nullable": true,
|
|
14194
|
+
"enum": [
|
|
14195
|
+
null
|
|
14196
|
+
]
|
|
14197
|
+
}
|
|
14198
|
+
]
|
|
14199
|
+
},
|
|
14200
|
+
"dangerColor": {
|
|
14201
|
+
"description": "Used for destructive actions or raising attention to critical information. Set to null to reset the override.",
|
|
14202
|
+
"oneOf": [
|
|
14203
|
+
{
|
|
14204
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
14205
|
+
},
|
|
14206
|
+
{
|
|
14207
|
+
"type": "string",
|
|
14208
|
+
"nullable": true,
|
|
14209
|
+
"enum": [
|
|
14210
|
+
null
|
|
14211
|
+
]
|
|
14212
|
+
}
|
|
14213
|
+
]
|
|
14214
|
+
},
|
|
14155
14215
|
"tint": {
|
|
14156
14216
|
"description": "The tint will color the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too.",
|
|
14157
14217
|
"oneOf": [
|
|
@@ -14182,6 +14242,21 @@
|
|
|
14182
14242
|
}
|
|
14183
14243
|
]
|
|
14184
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
|
+
},
|
|
14185
14260
|
"font": {
|
|
14186
14261
|
"description": "The font family to use for the content. Set to null to reset the override.",
|
|
14187
14262
|
"oneOf": [
|
|
@@ -16384,6 +16459,16 @@
|
|
|
16384
16459
|
"type": "boolean",
|
|
16385
16460
|
"default": false
|
|
16386
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
|
+
}
|
|
16387
16472
|
}
|
|
16388
16473
|
],
|
|
16389
16474
|
"responses": {
|
|
@@ -21730,6 +21815,9 @@
|
|
|
21730
21815
|
"oneOf": [
|
|
21731
21816
|
{
|
|
21732
21817
|
"$ref": "#/components/schemas/ContentRefSpace"
|
|
21818
|
+
},
|
|
21819
|
+
{
|
|
21820
|
+
"$ref": "#/components/schemas/ContentRefOpenAPI"
|
|
21733
21821
|
}
|
|
21734
21822
|
]
|
|
21735
21823
|
},
|
|
@@ -21771,6 +21859,45 @@
|
|
|
21771
21859
|
"ref",
|
|
21772
21860
|
"value"
|
|
21773
21861
|
]
|
|
21862
|
+
},
|
|
21863
|
+
{
|
|
21864
|
+
"type": "object",
|
|
21865
|
+
"properties": {
|
|
21866
|
+
"ref": {
|
|
21867
|
+
"$ref": "#/components/schemas/ContentRefOpenAPI"
|
|
21868
|
+
},
|
|
21869
|
+
"value": {
|
|
21870
|
+
"type": "object",
|
|
21871
|
+
"nullable": true,
|
|
21872
|
+
"description": "See `OpenAPI` schema component.",
|
|
21873
|
+
"properties": {
|
|
21874
|
+
"object": {
|
|
21875
|
+
"type": "string",
|
|
21876
|
+
"enum": [
|
|
21877
|
+
"openapi-spec"
|
|
21878
|
+
]
|
|
21879
|
+
},
|
|
21880
|
+
"id": {
|
|
21881
|
+
"type": "string"
|
|
21882
|
+
},
|
|
21883
|
+
"slug": {
|
|
21884
|
+
"type": "string"
|
|
21885
|
+
},
|
|
21886
|
+
"lastVersion": {
|
|
21887
|
+
"type": "string"
|
|
21888
|
+
}
|
|
21889
|
+
},
|
|
21890
|
+
"required": [
|
|
21891
|
+
"object",
|
|
21892
|
+
"id",
|
|
21893
|
+
"slug"
|
|
21894
|
+
]
|
|
21895
|
+
}
|
|
21896
|
+
},
|
|
21897
|
+
"required": [
|
|
21898
|
+
"ref",
|
|
21899
|
+
"value"
|
|
21900
|
+
]
|
|
21774
21901
|
}
|
|
21775
21902
|
]
|
|
21776
21903
|
},
|
|
@@ -21794,7 +21921,7 @@
|
|
|
21794
21921
|
"type": "object",
|
|
21795
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",
|
|
21796
21923
|
"additionalProperties": {
|
|
21797
|
-
"
|
|
21924
|
+
"anyOf": [
|
|
21798
21925
|
{
|
|
21799
21926
|
"type": "object",
|
|
21800
21927
|
"properties": {
|
|
@@ -23503,6 +23630,10 @@
|
|
|
23503
23630
|
"processingState": {
|
|
23504
23631
|
"$ref": "#/components/schemas/OpenAPISpecProcessingState"
|
|
23505
23632
|
},
|
|
23633
|
+
"lastVersion": {
|
|
23634
|
+
"type": "string",
|
|
23635
|
+
"description": "ID of the latest version of the OpenAPI specification"
|
|
23636
|
+
},
|
|
23506
23637
|
"lastProcessedAt": {
|
|
23507
23638
|
"description": "Date of the last processing",
|
|
23508
23639
|
"$ref": "#/components/schemas/Timestamp"
|
|
@@ -23510,6 +23641,16 @@
|
|
|
23510
23641
|
"lastProcessErrorCode": {
|
|
23511
23642
|
"$ref": "#/components/schemas/OpenAPISpecProcessingErrorCode"
|
|
23512
23643
|
},
|
|
23644
|
+
"permissions": {
|
|
23645
|
+
"type": "object",
|
|
23646
|
+
"description": "The set of permissions for the OpenAPI specification.",
|
|
23647
|
+
"properties": {
|
|
23648
|
+
"edit": {
|
|
23649
|
+
"type": "boolean",
|
|
23650
|
+
"description": "Can the user edit the specification."
|
|
23651
|
+
}
|
|
23652
|
+
}
|
|
23653
|
+
},
|
|
23513
23654
|
"urls": {
|
|
23514
23655
|
"type": "object",
|
|
23515
23656
|
"description": "URLs associated with the object",
|
|
@@ -23536,6 +23677,7 @@
|
|
|
23536
23677
|
"updatedAt",
|
|
23537
23678
|
"slug",
|
|
23538
23679
|
"processingState",
|
|
23680
|
+
"permissions",
|
|
23539
23681
|
"urls"
|
|
23540
23682
|
]
|
|
23541
23683
|
},
|
|
@@ -31001,6 +31143,14 @@
|
|
|
31001
31143
|
"color"
|
|
31002
31144
|
]
|
|
31003
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
|
+
},
|
|
31004
31154
|
"CustomizationIconsStyle": {
|
|
31005
31155
|
"type": "string",
|
|
31006
31156
|
"enum": [
|
|
@@ -31047,9 +31197,24 @@
|
|
|
31047
31197
|
"tint": {
|
|
31048
31198
|
"$ref": "#/components/schemas/CustomizationTint"
|
|
31049
31199
|
},
|
|
31200
|
+
"infoColor": {
|
|
31201
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
31202
|
+
},
|
|
31203
|
+
"successColor": {
|
|
31204
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
31205
|
+
},
|
|
31206
|
+
"warningColor": {
|
|
31207
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
31208
|
+
},
|
|
31209
|
+
"dangerColor": {
|
|
31210
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
31211
|
+
},
|
|
31050
31212
|
"corners": {
|
|
31051
31213
|
"$ref": "#/components/schemas/CustomizationCorners"
|
|
31052
31214
|
},
|
|
31215
|
+
"links": {
|
|
31216
|
+
"$ref": "#/components/schemas/CustomizationLinksStyle"
|
|
31217
|
+
},
|
|
31053
31218
|
"font": {
|
|
31054
31219
|
"$ref": "#/components/schemas/CustomizationFont"
|
|
31055
31220
|
},
|
|
@@ -31079,7 +31244,12 @@
|
|
|
31079
31244
|
"required": [
|
|
31080
31245
|
"theme",
|
|
31081
31246
|
"primaryColor",
|
|
31247
|
+
"infoColor",
|
|
31248
|
+
"successColor",
|
|
31249
|
+
"warningColor",
|
|
31250
|
+
"dangerColor",
|
|
31082
31251
|
"corners",
|
|
31252
|
+
"links",
|
|
31083
31253
|
"font",
|
|
31084
31254
|
"background",
|
|
31085
31255
|
"icons",
|
|
@@ -31138,9 +31308,13 @@
|
|
|
31138
31308
|
"$ref": "#/components/schemas/CustomizationThemedURL"
|
|
31139
31309
|
},
|
|
31140
31310
|
"backgroundColor": {
|
|
31311
|
+
"deprecated": true,
|
|
31312
|
+
"description": "Color of the background in the header. This value is now deprecated in favour of the new theming colors.",
|
|
31141
31313
|
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
31142
31314
|
},
|
|
31143
31315
|
"linkColor": {
|
|
31316
|
+
"deprecated": true,
|
|
31317
|
+
"description": "Color of the links in the header. This value is now deprecated and will be phased out in favour of the new theming colors.",
|
|
31144
31318
|
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
31145
31319
|
},
|
|
31146
31320
|
"links": {
|
|
@@ -32424,6 +32598,20 @@
|
|
|
32424
32598
|
{
|
|
32425
32599
|
"$ref": "#/components/schemas/SiteInsightsQueryDateTimeColumn"
|
|
32426
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
|
+
},
|
|
32427
32615
|
{
|
|
32428
32616
|
"type": "object",
|
|
32429
32617
|
"required": [
|
|
@@ -33040,6 +33228,27 @@
|
|
|
33040
33228
|
}
|
|
33041
33229
|
}
|
|
33042
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
|
+
},
|
|
33043
33252
|
{
|
|
33044
33253
|
"type": "object",
|
|
33045
33254
|
"required": [
|
|
@@ -34971,8 +35180,21 @@
|
|
|
34971
35180
|
]
|
|
34972
35181
|
},
|
|
34973
35182
|
"OpenAPISpecContent": {
|
|
34974
|
-
"description": "
|
|
34975
|
-
"type": "object"
|
|
35183
|
+
"description": "Content of the specification available through filesystem or public URL.",
|
|
35184
|
+
"type": "object",
|
|
35185
|
+
"properties": {
|
|
35186
|
+
"filesystem": {
|
|
35187
|
+
"description": "Filesystem containing all specifications.",
|
|
35188
|
+
"type": "object"
|
|
35189
|
+
},
|
|
35190
|
+
"url": {
|
|
35191
|
+
"$ref": "#/components/schemas/URL"
|
|
35192
|
+
}
|
|
35193
|
+
},
|
|
35194
|
+
"required": [
|
|
35195
|
+
"filesystem",
|
|
35196
|
+
"url"
|
|
35197
|
+
]
|
|
34976
35198
|
},
|
|
34977
35199
|
"SHA256": {
|
|
34978
35200
|
"type": "string",
|
package/spec/openapi.yaml
CHANGED
|
@@ -7904,6 +7904,38 @@ paths:
|
|
|
7904
7904
|
nullable: true
|
|
7905
7905
|
enum:
|
|
7906
7906
|
- null
|
|
7907
|
+
infoColor:
|
|
7908
|
+
description: Used for informational messages and neutral alerts. Set to null to reset the override.
|
|
7909
|
+
oneOf:
|
|
7910
|
+
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
7911
|
+
- type: string
|
|
7912
|
+
nullable: true
|
|
7913
|
+
enum:
|
|
7914
|
+
- null
|
|
7915
|
+
successColor:
|
|
7916
|
+
description: Used for showing positive actions or achievements. Set to null to reset the override.
|
|
7917
|
+
oneOf:
|
|
7918
|
+
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
7919
|
+
- type: string
|
|
7920
|
+
nullable: true
|
|
7921
|
+
enum:
|
|
7922
|
+
- null
|
|
7923
|
+
warningColor:
|
|
7924
|
+
description: Used for showing important information or non-critical warnings. Set to null to reset the override.
|
|
7925
|
+
oneOf:
|
|
7926
|
+
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
7927
|
+
- type: string
|
|
7928
|
+
nullable: true
|
|
7929
|
+
enum:
|
|
7930
|
+
- null
|
|
7931
|
+
dangerColor:
|
|
7932
|
+
description: Used for destructive actions or raising attention to critical information. Set to null to reset the override.
|
|
7933
|
+
oneOf:
|
|
7934
|
+
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
7935
|
+
- type: string
|
|
7936
|
+
nullable: true
|
|
7937
|
+
enum:
|
|
7938
|
+
- null
|
|
7907
7939
|
tint:
|
|
7908
7940
|
description: The tint will color the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too.
|
|
7909
7941
|
oneOf:
|
|
@@ -7920,6 +7952,14 @@ paths:
|
|
|
7920
7952
|
nullable: true
|
|
7921
7953
|
enum:
|
|
7922
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
|
|
7923
7963
|
font:
|
|
7924
7964
|
description: The font family to use for the content. Set to null to reset the override.
|
|
7925
7965
|
oneOf:
|
|
@@ -9189,6 +9229,13 @@ paths:
|
|
|
9189
9229
|
schema:
|
|
9190
9230
|
type: boolean
|
|
9191
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
|
|
9192
9239
|
responses:
|
|
9193
9240
|
"200":
|
|
9194
9241
|
description: OK
|
|
@@ -12651,6 +12698,7 @@ components:
|
|
|
12651
12698
|
ComputedContentDependencyRef:
|
|
12652
12699
|
oneOf:
|
|
12653
12700
|
- $ref: "#/components/schemas/ContentRefSpace"
|
|
12701
|
+
- $ref: "#/components/schemas/ContentRefOpenAPI"
|
|
12654
12702
|
ComputedContentDependencyValue:
|
|
12655
12703
|
description: Dependency for a computation, with its resolved value.
|
|
12656
12704
|
oneOf:
|
|
@@ -12678,6 +12726,32 @@ components:
|
|
|
12678
12726
|
required:
|
|
12679
12727
|
- ref
|
|
12680
12728
|
- value
|
|
12729
|
+
- type: object
|
|
12730
|
+
properties:
|
|
12731
|
+
ref:
|
|
12732
|
+
$ref: "#/components/schemas/ContentRefOpenAPI"
|
|
12733
|
+
value:
|
|
12734
|
+
type: object
|
|
12735
|
+
nullable: true
|
|
12736
|
+
description: See `OpenAPI` schema component.
|
|
12737
|
+
properties:
|
|
12738
|
+
object:
|
|
12739
|
+
type: string
|
|
12740
|
+
enum:
|
|
12741
|
+
- openapi-spec
|
|
12742
|
+
id:
|
|
12743
|
+
type: string
|
|
12744
|
+
slug:
|
|
12745
|
+
type: string
|
|
12746
|
+
lastVersion:
|
|
12747
|
+
type: string
|
|
12748
|
+
required:
|
|
12749
|
+
- object
|
|
12750
|
+
- id
|
|
12751
|
+
- slug
|
|
12752
|
+
required:
|
|
12753
|
+
- ref
|
|
12754
|
+
- value
|
|
12681
12755
|
ComputedContentSource:
|
|
12682
12756
|
type: object
|
|
12683
12757
|
description: Parameters for a computed content
|
|
@@ -12698,7 +12772,7 @@ components:
|
|
|
12698
12772
|
The state of the dependencies will be passed to the computation.
|
|
12699
12773
|
When the dependency's targets are updated, the computation will be updated.
|
|
12700
12774
|
additionalProperties:
|
|
12701
|
-
|
|
12775
|
+
anyOf:
|
|
12702
12776
|
- type: object
|
|
12703
12777
|
properties:
|
|
12704
12778
|
ref:
|
|
@@ -13879,11 +13953,21 @@ components:
|
|
|
13879
13953
|
$ref: "#/components/schemas/URL"
|
|
13880
13954
|
processingState:
|
|
13881
13955
|
$ref: "#/components/schemas/OpenAPISpecProcessingState"
|
|
13956
|
+
lastVersion:
|
|
13957
|
+
type: string
|
|
13958
|
+
description: ID of the latest version of the OpenAPI specification
|
|
13882
13959
|
lastProcessedAt:
|
|
13883
13960
|
description: Date of the last processing
|
|
13884
13961
|
$ref: "#/components/schemas/Timestamp"
|
|
13885
13962
|
lastProcessErrorCode:
|
|
13886
13963
|
$ref: "#/components/schemas/OpenAPISpecProcessingErrorCode"
|
|
13964
|
+
permissions:
|
|
13965
|
+
type: object
|
|
13966
|
+
description: The set of permissions for the OpenAPI specification.
|
|
13967
|
+
properties:
|
|
13968
|
+
edit:
|
|
13969
|
+
type: boolean
|
|
13970
|
+
description: Can the user edit the specification.
|
|
13887
13971
|
urls:
|
|
13888
13972
|
type: object
|
|
13889
13973
|
description: URLs associated with the object
|
|
@@ -13904,6 +13988,7 @@ components:
|
|
|
13904
13988
|
- updatedAt
|
|
13905
13989
|
- slug
|
|
13906
13990
|
- processingState
|
|
13991
|
+
- permissions
|
|
13907
13992
|
- urls
|
|
13908
13993
|
ContentLocationOpenAPI:
|
|
13909
13994
|
type: object
|
|
@@ -18872,6 +18957,15 @@ components:
|
|
|
18872
18957
|
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
18873
18958
|
required:
|
|
18874
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
|
|
18875
18969
|
CustomizationIconsStyle:
|
|
18876
18970
|
type: string
|
|
18877
18971
|
enum:
|
|
@@ -18913,8 +19007,18 @@ components:
|
|
|
18913
19007
|
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
18914
19008
|
tint:
|
|
18915
19009
|
$ref: "#/components/schemas/CustomizationTint"
|
|
19010
|
+
infoColor:
|
|
19011
|
+
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
19012
|
+
successColor:
|
|
19013
|
+
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
19014
|
+
warningColor:
|
|
19015
|
+
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
19016
|
+
dangerColor:
|
|
19017
|
+
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
18916
19018
|
corners:
|
|
18917
19019
|
$ref: "#/components/schemas/CustomizationCorners"
|
|
19020
|
+
links:
|
|
19021
|
+
$ref: "#/components/schemas/CustomizationLinksStyle"
|
|
18918
19022
|
font:
|
|
18919
19023
|
$ref: "#/components/schemas/CustomizationFont"
|
|
18920
19024
|
background:
|
|
@@ -18935,7 +19039,12 @@ components:
|
|
|
18935
19039
|
required:
|
|
18936
19040
|
- theme
|
|
18937
19041
|
- primaryColor
|
|
19042
|
+
- infoColor
|
|
19043
|
+
- successColor
|
|
19044
|
+
- warningColor
|
|
19045
|
+
- dangerColor
|
|
18938
19046
|
- corners
|
|
19047
|
+
- links
|
|
18939
19048
|
- font
|
|
18940
19049
|
- background
|
|
18941
19050
|
- icons
|
|
@@ -18972,8 +19081,12 @@ components:
|
|
|
18972
19081
|
logo:
|
|
18973
19082
|
$ref: "#/components/schemas/CustomizationThemedURL"
|
|
18974
19083
|
backgroundColor:
|
|
19084
|
+
deprecated: true
|
|
19085
|
+
description: Color of the background in the header. This value is now deprecated in favour of the new theming colors.
|
|
18975
19086
|
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
18976
19087
|
linkColor:
|
|
19088
|
+
deprecated: true
|
|
19089
|
+
description: Color of the links in the header. This value is now deprecated and will be phased out in favour of the new theming colors.
|
|
18977
19090
|
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
18978
19091
|
links:
|
|
18979
19092
|
type: array
|
|
@@ -19804,6 +19917,14 @@ components:
|
|
|
19804
19917
|
SiteInsightsQueryEventsColumn:
|
|
19805
19918
|
oneOf:
|
|
19806
19919
|
- $ref: "#/components/schemas/SiteInsightsQueryDateTimeColumn"
|
|
19920
|
+
- type: object
|
|
19921
|
+
required:
|
|
19922
|
+
- column
|
|
19923
|
+
properties:
|
|
19924
|
+
column:
|
|
19925
|
+
type: string
|
|
19926
|
+
enum:
|
|
19927
|
+
- url
|
|
19807
19928
|
- type: object
|
|
19808
19929
|
required:
|
|
19809
19930
|
- column
|
|
@@ -20176,6 +20297,19 @@ components:
|
|
|
20176
20297
|
type: array
|
|
20177
20298
|
items:
|
|
20178
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"
|
|
20179
20313
|
- type: object
|
|
20180
20314
|
required:
|
|
20181
20315
|
- column
|
|
@@ -21456,8 +21590,17 @@ components:
|
|
|
21456
21590
|
- url
|
|
21457
21591
|
- urls
|
|
21458
21592
|
OpenAPISpecContent:
|
|
21459
|
-
description:
|
|
21593
|
+
description: Content of the specification available through filesystem or public URL.
|
|
21460
21594
|
type: object
|
|
21595
|
+
properties:
|
|
21596
|
+
filesystem:
|
|
21597
|
+
description: Filesystem containing all specifications.
|
|
21598
|
+
type: object
|
|
21599
|
+
url:
|
|
21600
|
+
$ref: "#/components/schemas/URL"
|
|
21601
|
+
required:
|
|
21602
|
+
- filesystem
|
|
21603
|
+
- url
|
|
21461
21604
|
SHA256:
|
|
21462
21605
|
type: string
|
|
21463
21606
|
minLength: 64
|