@gitbook/api 0.171.0 → 0.172.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 +11 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +32 -8
- package/spec/openapi.yaml +21 -6
package/dist/client.d.ts
CHANGED
|
@@ -5666,8 +5666,6 @@ export interface SiteAdaptiveTemplateCondition {
|
|
|
5666
5666
|
/** The suggested condition. */
|
|
5667
5667
|
condition: string;
|
|
5668
5668
|
}
|
|
5669
|
-
/** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
|
|
5670
|
-
export type LocalizedString = object;
|
|
5671
5669
|
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
5672
5670
|
export type Color = string;
|
|
5673
5671
|
export interface CustomizationThemedColor {
|
|
@@ -5755,7 +5753,7 @@ export interface SiteCustomizationSettingsBase {
|
|
|
5755
5753
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
5756
5754
|
title?: SiteTitle;
|
|
5757
5755
|
/** Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed. */
|
|
5758
|
-
localizedTitle?:
|
|
5756
|
+
localizedTitle?: LocalizedTitle;
|
|
5759
5757
|
styling: {
|
|
5760
5758
|
/**
|
|
5761
5759
|
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
@@ -6450,9 +6448,9 @@ export interface SiteQuestionAnswer {
|
|
|
6450
6448
|
topics: string[];
|
|
6451
6449
|
input: {
|
|
6452
6450
|
/** Normalized question text for this answer. */
|
|
6453
|
-
text
|
|
6451
|
+
text: string;
|
|
6454
6452
|
/** Raw question text as asked by the user. */
|
|
6455
|
-
raw
|
|
6453
|
+
raw: string;
|
|
6456
6454
|
};
|
|
6457
6455
|
thread?: {
|
|
6458
6456
|
/** The ID of the thread this answer belongs to. */
|
|
@@ -8465,6 +8463,8 @@ export interface MergeRulesEvaluationContext {
|
|
|
8465
8463
|
/** The user who is attempting to merge the change request. */
|
|
8466
8464
|
actor: User;
|
|
8467
8465
|
}
|
|
8466
|
+
/** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
|
|
8467
|
+
export type LocalizedString = Record<TranslationLanguage, string>;
|
|
8468
8468
|
export type RequestSpaceTrackPageView = SpaceTrackPageView;
|
|
8469
8469
|
export type RequestSiteTrackPageView = SiteTrackPageView;
|
|
8470
8470
|
export type RequestPublishIntegration = PublishIntegration;
|
|
@@ -13422,6 +13422,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13422
13422
|
* @name AddSectionToGroup
|
|
13423
13423
|
* @summary Add a section to a section group
|
|
13424
13424
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections
|
|
13425
|
+
* @deprecated
|
|
13425
13426
|
* @secure
|
|
13426
13427
|
*/
|
|
13427
13428
|
addSectionToGroup: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
|
|
@@ -13435,6 +13436,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13435
13436
|
* @name RemoveSectionFromGroup
|
|
13436
13437
|
* @summary Remove a section from a section group
|
|
13437
13438
|
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}
|
|
13439
|
+
* @deprecated
|
|
13438
13440
|
* @secure
|
|
13439
13441
|
*/
|
|
13440
13442
|
removeSectionFromGroup: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
@@ -13452,6 +13454,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13452
13454
|
spaceId: string;
|
|
13453
13455
|
title?: SiteSectionTitle | null;
|
|
13454
13456
|
icon?: Icon | null;
|
|
13457
|
+
/** ID of the section group to create the section in */
|
|
13458
|
+
siteSectionGroupId?: string;
|
|
13455
13459
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
13456
13460
|
/**
|
|
13457
13461
|
* No description
|
|
@@ -13500,6 +13504,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13500
13504
|
description?: SiteSectionDescription | null;
|
|
13501
13505
|
/** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
|
|
13502
13506
|
localizedDescription?: LocalizedSectionDescription;
|
|
13507
|
+
/** ID of the section group to move the section into. Set to null to move the section to the root of the site. */
|
|
13508
|
+
siteSectionGroupId?: string | null;
|
|
13503
13509
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
13504
13510
|
/**
|
|
13505
13511
|
* No description
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -13221,6 +13221,7 @@
|
|
|
13221
13221
|
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections": {
|
|
13222
13222
|
"post": {
|
|
13223
13223
|
"operationId": "addSectionToGroup",
|
|
13224
|
+
"deprecated": true,
|
|
13224
13225
|
"summary": "Add a section to a section group",
|
|
13225
13226
|
"tags": [
|
|
13226
13227
|
"site-section-groups"
|
|
@@ -13285,6 +13286,7 @@
|
|
|
13285
13286
|
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}": {
|
|
13286
13287
|
"delete": {
|
|
13287
13288
|
"operationId": "removeSectionFromGroup",
|
|
13289
|
+
"deprecated": true,
|
|
13288
13290
|
"summary": "Remove a section from a section group",
|
|
13289
13291
|
"tags": [
|
|
13290
13292
|
"site-section-groups"
|
|
@@ -13368,6 +13370,10 @@
|
|
|
13368
13370
|
"type": "null"
|
|
13369
13371
|
}
|
|
13370
13372
|
]
|
|
13373
|
+
},
|
|
13374
|
+
"siteSectionGroupId": {
|
|
13375
|
+
"type": "string",
|
|
13376
|
+
"description": "ID of the section group to create the section in"
|
|
13371
13377
|
}
|
|
13372
13378
|
},
|
|
13373
13379
|
"required": [
|
|
@@ -13534,6 +13540,17 @@
|
|
|
13534
13540
|
},
|
|
13535
13541
|
"localizedDescription": {
|
|
13536
13542
|
"$ref": "#/components/schemas/LocalizedSectionDescription"
|
|
13543
|
+
},
|
|
13544
|
+
"siteSectionGroupId": {
|
|
13545
|
+
"description": "ID of the section group to move the section into. Set to null to move the section to the root of the site.",
|
|
13546
|
+
"oneOf": [
|
|
13547
|
+
{
|
|
13548
|
+
"type": "string"
|
|
13549
|
+
},
|
|
13550
|
+
{
|
|
13551
|
+
"type": "null"
|
|
13552
|
+
}
|
|
13553
|
+
]
|
|
13537
13554
|
}
|
|
13538
13555
|
}
|
|
13539
13556
|
}
|
|
@@ -36106,13 +36123,6 @@
|
|
|
36106
36123
|
"condition"
|
|
36107
36124
|
]
|
|
36108
36125
|
},
|
|
36109
|
-
"LocalizedString": {
|
|
36110
|
-
"type": "object",
|
|
36111
|
-
"description": "Localized string value, keyed by locale. Contains overrides for non-default languages only.",
|
|
36112
|
-
"propertyNames": {
|
|
36113
|
-
"$ref": "#/components/schemas/TranslationLanguage"
|
|
36114
|
-
}
|
|
36115
|
-
},
|
|
36116
36126
|
"CustomizationTheme": {
|
|
36117
36127
|
"type": "string",
|
|
36118
36128
|
"description": "The theme to apply to the site. Supercedes the old header preset themes.\n- `clean`: Modern theme featuring translucency and minimally-styled elements.\n- `muted`: Sophisticated theme with decreased contrast between elements.\n- `bold`: High-impact theme with prominent colors and strong contrasts.\n- `gradient`: Trendy theme featuring colorful gradients and splashes of color.\n",
|
|
@@ -36614,7 +36624,7 @@
|
|
|
36614
36624
|
},
|
|
36615
36625
|
"localizedTitle": {
|
|
36616
36626
|
"description": "Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed.",
|
|
36617
|
-
"$ref": "#/components/schemas/
|
|
36627
|
+
"$ref": "#/components/schemas/LocalizedTitle"
|
|
36618
36628
|
},
|
|
36619
36629
|
"styling": {
|
|
36620
36630
|
"type": "object",
|
|
@@ -38680,6 +38690,10 @@
|
|
|
38680
38690
|
},
|
|
38681
38691
|
"input": {
|
|
38682
38692
|
"type": "object",
|
|
38693
|
+
"required": [
|
|
38694
|
+
"text",
|
|
38695
|
+
"raw"
|
|
38696
|
+
],
|
|
38683
38697
|
"properties": {
|
|
38684
38698
|
"text": {
|
|
38685
38699
|
"type": "string",
|
|
@@ -47321,6 +47335,16 @@
|
|
|
47321
47335
|
"actor"
|
|
47322
47336
|
]
|
|
47323
47337
|
},
|
|
47338
|
+
"LocalizedString": {
|
|
47339
|
+
"type": "object",
|
|
47340
|
+
"description": "Localized string value, keyed by locale. Contains overrides for non-default languages only.",
|
|
47341
|
+
"propertyNames": {
|
|
47342
|
+
"$ref": "#/components/schemas/TranslationLanguage"
|
|
47343
|
+
},
|
|
47344
|
+
"additionalProperties": {
|
|
47345
|
+
"type": "string"
|
|
47346
|
+
}
|
|
47347
|
+
},
|
|
47324
47348
|
"RequestSpaceTrackPageView": {
|
|
47325
47349
|
"$ref": "#/components/schemas/SpaceTrackPageView"
|
|
47326
47350
|
},
|
package/spec/openapi.yaml
CHANGED
|
@@ -7501,6 +7501,7 @@ paths:
|
|
|
7501
7501
|
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections":
|
|
7502
7502
|
post:
|
|
7503
7503
|
operationId: addSectionToGroup
|
|
7504
|
+
deprecated: true
|
|
7504
7505
|
summary: Add a section to a section group
|
|
7505
7506
|
tags:
|
|
7506
7507
|
- site-section-groups
|
|
@@ -7537,6 +7538,7 @@ paths:
|
|
|
7537
7538
|
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}":
|
|
7538
7539
|
delete:
|
|
7539
7540
|
operationId: removeSectionFromGroup
|
|
7541
|
+
deprecated: true
|
|
7540
7542
|
summary: Remove a section from a section group
|
|
7541
7543
|
tags:
|
|
7542
7544
|
- site-section-groups
|
|
@@ -7581,6 +7583,9 @@ paths:
|
|
|
7581
7583
|
oneOf:
|
|
7582
7584
|
- $ref: "#/components/schemas/Icon"
|
|
7583
7585
|
- type: "null"
|
|
7586
|
+
siteSectionGroupId:
|
|
7587
|
+
type: string
|
|
7588
|
+
description: ID of the section group to create the section in
|
|
7584
7589
|
required:
|
|
7585
7590
|
- spaceId
|
|
7586
7591
|
responses:
|
|
@@ -7667,6 +7672,11 @@ paths:
|
|
|
7667
7672
|
- type: "null"
|
|
7668
7673
|
localizedDescription:
|
|
7669
7674
|
$ref: "#/components/schemas/LocalizedSectionDescription"
|
|
7675
|
+
siteSectionGroupId:
|
|
7676
|
+
description: ID of the section group to move the section into. Set to null to move the section to the root of the site.
|
|
7677
|
+
oneOf:
|
|
7678
|
+
- type: string
|
|
7679
|
+
- type: "null"
|
|
7670
7680
|
responses:
|
|
7671
7681
|
"200":
|
|
7672
7682
|
description: OK
|
|
@@ -22020,11 +22030,6 @@ components:
|
|
|
22020
22030
|
required:
|
|
22021
22031
|
- description
|
|
22022
22032
|
- condition
|
|
22023
|
-
LocalizedString:
|
|
22024
|
-
type: object
|
|
22025
|
-
description: Localized string value, keyed by locale. Contains overrides for non-default languages only.
|
|
22026
|
-
propertyNames:
|
|
22027
|
-
$ref: "#/components/schemas/TranslationLanguage"
|
|
22028
22033
|
CustomizationTheme:
|
|
22029
22034
|
type: string
|
|
22030
22035
|
description: |
|
|
@@ -22432,7 +22437,7 @@ components:
|
|
|
22432
22437
|
$ref: "#/components/schemas/SiteTitle"
|
|
22433
22438
|
localizedTitle:
|
|
22434
22439
|
description: Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed.
|
|
22435
|
-
$ref: "#/components/schemas/
|
|
22440
|
+
$ref: "#/components/schemas/LocalizedTitle"
|
|
22436
22441
|
styling:
|
|
22437
22442
|
type: object
|
|
22438
22443
|
properties:
|
|
@@ -23870,6 +23875,9 @@ components:
|
|
|
23870
23875
|
type: string
|
|
23871
23876
|
input:
|
|
23872
23877
|
type: object
|
|
23878
|
+
required:
|
|
23879
|
+
- text
|
|
23880
|
+
- raw
|
|
23873
23881
|
properties:
|
|
23874
23882
|
text:
|
|
23875
23883
|
type: string
|
|
@@ -29491,6 +29499,13 @@ components:
|
|
|
29491
29499
|
- changeRequest
|
|
29492
29500
|
- reviews
|
|
29493
29501
|
- actor
|
|
29502
|
+
LocalizedString:
|
|
29503
|
+
type: object
|
|
29504
|
+
description: Localized string value, keyed by locale. Contains overrides for non-default languages only.
|
|
29505
|
+
propertyNames:
|
|
29506
|
+
$ref: "#/components/schemas/TranslationLanguage"
|
|
29507
|
+
additionalProperties:
|
|
29508
|
+
type: string
|
|
29494
29509
|
RequestSpaceTrackPageView:
|
|
29495
29510
|
$ref: "#/components/schemas/SpaceTrackPageView"
|
|
29496
29511
|
RequestSiteTrackPageView:
|