@gitbook/api 0.114.0 → 0.115.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 +68 -51
- package/dist/index.cjs +10 -1
- package/dist/index.js +10 -1
- package/package.json +1 -1
- package/spec/openapi.json +252 -253
- package/spec/openapi.yaml +166 -160
package/spec/openapi.yaml
CHANGED
|
@@ -1199,6 +1199,7 @@ paths:
|
|
|
1199
1199
|
tags:
|
|
1200
1200
|
- space-content
|
|
1201
1201
|
- links
|
|
1202
|
+
- critical
|
|
1202
1203
|
security:
|
|
1203
1204
|
- user: []
|
|
1204
1205
|
parameters:
|
|
@@ -1758,6 +1759,7 @@ paths:
|
|
|
1758
1759
|
tags:
|
|
1759
1760
|
- change-requests-links
|
|
1760
1761
|
- links
|
|
1762
|
+
- critical
|
|
1761
1763
|
security:
|
|
1762
1764
|
- user: []
|
|
1763
1765
|
parameters:
|
|
@@ -2247,6 +2249,7 @@ paths:
|
|
|
2247
2249
|
summary: List all change request links
|
|
2248
2250
|
tags:
|
|
2249
2251
|
- change-request-content
|
|
2252
|
+
- critical
|
|
2250
2253
|
security:
|
|
2251
2254
|
- user: []
|
|
2252
2255
|
parameters:
|
|
@@ -2612,6 +2615,7 @@ paths:
|
|
|
2612
2615
|
summary: List all space comments
|
|
2613
2616
|
tags:
|
|
2614
2617
|
- space-comments
|
|
2618
|
+
- critical
|
|
2615
2619
|
security:
|
|
2616
2620
|
- user: []
|
|
2617
2621
|
parameters:
|
|
@@ -2999,6 +3003,7 @@ paths:
|
|
|
2999
3003
|
tags:
|
|
3000
3004
|
- spaces
|
|
3001
3005
|
- links
|
|
3006
|
+
- critical
|
|
3002
3007
|
security:
|
|
3003
3008
|
- user: []
|
|
3004
3009
|
parameters:
|
|
@@ -4168,6 +4173,7 @@ paths:
|
|
|
4168
4173
|
summary: Get the list of organizations for the currently authenticated user
|
|
4169
4174
|
tags:
|
|
4170
4175
|
- organizations
|
|
4176
|
+
- critical
|
|
4171
4177
|
security:
|
|
4172
4178
|
- user: []
|
|
4173
4179
|
parameters:
|
|
@@ -4320,6 +4326,7 @@ paths:
|
|
|
4320
4326
|
summary: Get an organization member by its ID
|
|
4321
4327
|
tags:
|
|
4322
4328
|
- organization-members
|
|
4329
|
+
- critical
|
|
4323
4330
|
security:
|
|
4324
4331
|
- user: []
|
|
4325
4332
|
parameters:
|
|
@@ -6448,7 +6455,7 @@ paths:
|
|
|
6448
6455
|
tags:
|
|
6449
6456
|
- sites
|
|
6450
6457
|
security:
|
|
6451
|
-
- user
|
|
6458
|
+
- user: []
|
|
6452
6459
|
parameters:
|
|
6453
6460
|
- $ref: "#/components/parameters/organizationId"
|
|
6454
6461
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7680,22 +7687,11 @@ paths:
|
|
|
7680
7687
|
favicon:
|
|
7681
7688
|
description: The favicon to use. Set to null to reset the override.
|
|
7682
7689
|
oneOf:
|
|
7683
|
-
-
|
|
7684
|
-
|
|
7685
|
-
icon:
|
|
7686
|
-
$ref: "#/components/schemas/CustomizationThemedURL"
|
|
7687
|
-
required:
|
|
7688
|
-
- icon
|
|
7689
|
-
- type: object
|
|
7690
|
-
properties:
|
|
7691
|
-
emoji:
|
|
7692
|
-
$ref: "#/components/schemas/Emoji"
|
|
7693
|
-
required:
|
|
7694
|
-
- emoji
|
|
7695
|
-
- type: object
|
|
7690
|
+
- $ref: "#/components/schemas/CustomizationFavicon"
|
|
7691
|
+
- type: string
|
|
7696
7692
|
nullable: true
|
|
7697
|
-
|
|
7698
|
-
|
|
7693
|
+
enum:
|
|
7694
|
+
- null
|
|
7699
7695
|
announcement:
|
|
7700
7696
|
$ref: "#/components/schemas/CustomizationAnnouncement"
|
|
7701
7697
|
header:
|
|
@@ -8588,6 +8584,7 @@ paths:
|
|
|
8588
8584
|
get:
|
|
8589
8585
|
operationId: getPublishedContentByUrl
|
|
8590
8586
|
summary: Resolve a URL of a published content.
|
|
8587
|
+
deprecated: true
|
|
8591
8588
|
tags:
|
|
8592
8589
|
- urls
|
|
8593
8590
|
parameters:
|
|
@@ -8620,6 +8617,39 @@ paths:
|
|
|
8620
8617
|
"404":
|
|
8621
8618
|
description: No content found for the URL.
|
|
8622
8619
|
$ref: "#/components/responses/NotFoundError"
|
|
8620
|
+
post:
|
|
8621
|
+
operationId: resolvePublishedContentByUrl
|
|
8622
|
+
summary: Resolve a URL of a published content.
|
|
8623
|
+
tags:
|
|
8624
|
+
- urls
|
|
8625
|
+
requestBody:
|
|
8626
|
+
required: true
|
|
8627
|
+
content:
|
|
8628
|
+
application/json:
|
|
8629
|
+
schema:
|
|
8630
|
+
type: object
|
|
8631
|
+
properties:
|
|
8632
|
+
url:
|
|
8633
|
+
description: URL to resolve
|
|
8634
|
+
$ref: "#/components/schemas/URL"
|
|
8635
|
+
redirectOnError:
|
|
8636
|
+
type: boolean
|
|
8637
|
+
description: When true redirects the user to the authentication/fallback URL if the visitor auth token is invalid
|
|
8638
|
+
default: false
|
|
8639
|
+
visitor:
|
|
8640
|
+
$ref: "#/components/schemas/SiteVisitorPayload"
|
|
8641
|
+
required:
|
|
8642
|
+
- url
|
|
8643
|
+
responses:
|
|
8644
|
+
"200":
|
|
8645
|
+
description: OK
|
|
8646
|
+
content:
|
|
8647
|
+
application/json:
|
|
8648
|
+
schema:
|
|
8649
|
+
$ref: "#/components/schemas/PublishedSiteContentLookup"
|
|
8650
|
+
"404":
|
|
8651
|
+
description: No content found for the URL.
|
|
8652
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8623
8653
|
components:
|
|
8624
8654
|
securitySchemes:
|
|
8625
8655
|
user:
|
|
@@ -16107,6 +16137,33 @@ components:
|
|
|
16107
16137
|
description: Title of the site
|
|
16108
16138
|
minLength: 2
|
|
16109
16139
|
maxLength: 128
|
|
16140
|
+
CustomizationThemedURL:
|
|
16141
|
+
type: object
|
|
16142
|
+
properties:
|
|
16143
|
+
light:
|
|
16144
|
+
$ref: "#/components/schemas/URL"
|
|
16145
|
+
dark:
|
|
16146
|
+
$ref: "#/components/schemas/URL"
|
|
16147
|
+
required:
|
|
16148
|
+
- light
|
|
16149
|
+
- dark
|
|
16150
|
+
CustomizationFavicon:
|
|
16151
|
+
oneOf:
|
|
16152
|
+
- type: object
|
|
16153
|
+
properties:
|
|
16154
|
+
icon:
|
|
16155
|
+
$ref: "#/components/schemas/CustomizationThemedURL"
|
|
16156
|
+
required:
|
|
16157
|
+
- icon
|
|
16158
|
+
- type: object
|
|
16159
|
+
properties:
|
|
16160
|
+
emoji:
|
|
16161
|
+
$ref: "#/components/schemas/Emoji"
|
|
16162
|
+
required:
|
|
16163
|
+
- emoji
|
|
16164
|
+
- type: object
|
|
16165
|
+
properties: {}
|
|
16166
|
+
additionalProperties: false
|
|
16110
16167
|
SiteHostname:
|
|
16111
16168
|
type: string
|
|
16112
16169
|
description: Custom hostname for the site, for e.g. docs.mycompany.com
|
|
@@ -16291,6 +16348,13 @@ components:
|
|
|
16291
16348
|
$ref: "#/components/schemas/SiteType"
|
|
16292
16349
|
title:
|
|
16293
16350
|
$ref: "#/components/schemas/SiteTitle"
|
|
16351
|
+
icon:
|
|
16352
|
+
oneOf:
|
|
16353
|
+
- $ref: "#/components/schemas/CustomizationFavicon"
|
|
16354
|
+
- type: string
|
|
16355
|
+
nullable: true
|
|
16356
|
+
enum:
|
|
16357
|
+
- null
|
|
16294
16358
|
hostname:
|
|
16295
16359
|
$ref: "#/components/schemas/SiteHostname"
|
|
16296
16360
|
basename:
|
|
@@ -18042,10 +18106,6 @@ components:
|
|
|
18042
18106
|
maxLength: 50
|
|
18043
18107
|
emoji:
|
|
18044
18108
|
$ref: "#/components/schemas/Emoji"
|
|
18045
|
-
private:
|
|
18046
|
-
description: Private spaces are no longer supported by GitBook.
|
|
18047
|
-
deprecated: true
|
|
18048
|
-
type: boolean
|
|
18049
18109
|
parent:
|
|
18050
18110
|
type: string
|
|
18051
18111
|
description: ID of a parent collection
|
|
@@ -18714,59 +18774,59 @@ components:
|
|
|
18714
18774
|
required:
|
|
18715
18775
|
- type
|
|
18716
18776
|
- plan
|
|
18717
|
-
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
type:
|
|
18724
|
-
type: string
|
|
18725
|
-
enum:
|
|
18726
|
-
- boolean
|
|
18727
|
-
description:
|
|
18728
|
-
type: string
|
|
18729
|
-
required:
|
|
18730
|
-
- type
|
|
18731
|
-
- description
|
|
18732
|
-
additionalProperties: false
|
|
18733
|
-
- type: object
|
|
18734
|
-
properties:
|
|
18735
|
-
type:
|
|
18736
|
-
type: string
|
|
18737
|
-
enum:
|
|
18738
|
-
- string
|
|
18777
|
+
SiteAdaptiveJSONSchemaClaimsProperties:
|
|
18778
|
+
oneOf:
|
|
18779
|
+
- type: object
|
|
18780
|
+
properties:
|
|
18781
|
+
type:
|
|
18782
|
+
type: string
|
|
18739
18783
|
enum:
|
|
18740
|
-
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18784
|
+
- boolean
|
|
18785
|
+
description:
|
|
18786
|
+
type: string
|
|
18787
|
+
required:
|
|
18788
|
+
- type
|
|
18789
|
+
- description
|
|
18790
|
+
additionalProperties: false
|
|
18791
|
+
- type: object
|
|
18792
|
+
properties:
|
|
18793
|
+
type:
|
|
18794
|
+
type: string
|
|
18795
|
+
enum:
|
|
18796
|
+
- string
|
|
18797
|
+
enum:
|
|
18798
|
+
type: array
|
|
18799
|
+
items:
|
|
18744
18800
|
type: string
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
|
|
18750
|
-
|
|
18801
|
+
description:
|
|
18802
|
+
type: string
|
|
18803
|
+
required:
|
|
18804
|
+
- type
|
|
18805
|
+
- enum
|
|
18806
|
+
- description
|
|
18807
|
+
additionalProperties: false
|
|
18808
|
+
- type: object
|
|
18809
|
+
properties:
|
|
18810
|
+
type:
|
|
18811
|
+
type: string
|
|
18812
|
+
enum:
|
|
18813
|
+
- object
|
|
18814
|
+
description:
|
|
18815
|
+
type: string
|
|
18751
18816
|
properties:
|
|
18752
|
-
type:
|
|
18753
|
-
type: string
|
|
18754
|
-
enum:
|
|
18755
|
-
- object
|
|
18756
|
-
description:
|
|
18757
|
-
type: string
|
|
18758
|
-
properties:
|
|
18759
|
-
$ref: "#/components/schemas/properties"
|
|
18817
|
+
type: object
|
|
18760
18818
|
additionalProperties:
|
|
18761
|
-
|
|
18762
|
-
|
|
18763
|
-
|
|
18764
|
-
|
|
18765
|
-
|
|
18766
|
-
|
|
18767
|
-
|
|
18768
|
-
|
|
18769
|
-
|
|
18819
|
+
$ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
|
|
18820
|
+
additionalProperties:
|
|
18821
|
+
type: boolean
|
|
18822
|
+
enum:
|
|
18823
|
+
- false
|
|
18824
|
+
required:
|
|
18825
|
+
- type
|
|
18826
|
+
- description
|
|
18827
|
+
- properties
|
|
18828
|
+
- additionalProperties
|
|
18829
|
+
additionalProperties: false
|
|
18770
18830
|
SiteAdaptiveJSONSchema:
|
|
18771
18831
|
type: object
|
|
18772
18832
|
description: JSON schema describing the expected attributes of an Adaptive site schema.
|
|
@@ -18783,57 +18843,34 @@ components:
|
|
|
18783
18843
|
- object
|
|
18784
18844
|
properties:
|
|
18785
18845
|
type: object
|
|
18786
|
-
|
|
18787
|
-
|
|
18788
|
-
|
|
18789
|
-
|
|
18790
|
-
|
|
18791
|
-
|
|
18792
|
-
|
|
18793
|
-
- boolean
|
|
18794
|
-
description:
|
|
18795
|
-
type: string
|
|
18796
|
-
required:
|
|
18797
|
-
- type
|
|
18798
|
-
- description
|
|
18799
|
-
additionalProperties: false
|
|
18800
|
-
- type: object
|
|
18801
|
-
properties:
|
|
18802
|
-
type:
|
|
18803
|
-
type: string
|
|
18804
|
-
enum:
|
|
18805
|
-
- string
|
|
18846
|
+
properties:
|
|
18847
|
+
unsigned:
|
|
18848
|
+
type: object
|
|
18849
|
+
description: Unsigned claims of the site visitor.
|
|
18850
|
+
properties:
|
|
18851
|
+
type:
|
|
18852
|
+
type: string
|
|
18806
18853
|
enum:
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
|
|
18811
|
-
|
|
18812
|
-
required:
|
|
18813
|
-
- type
|
|
18814
|
-
- enum
|
|
18815
|
-
- description
|
|
18816
|
-
additionalProperties: false
|
|
18817
|
-
- type: object
|
|
18854
|
+
- object
|
|
18855
|
+
description:
|
|
18856
|
+
type: string
|
|
18857
|
+
enum:
|
|
18858
|
+
- Unsigned claims of the site visitor.
|
|
18818
18859
|
properties:
|
|
18819
|
-
type:
|
|
18820
|
-
type: string
|
|
18821
|
-
enum:
|
|
18822
|
-
- object
|
|
18823
|
-
description:
|
|
18824
|
-
type: string
|
|
18825
|
-
properties:
|
|
18826
|
-
$ref: "#/components/schemas/properties"
|
|
18860
|
+
type: object
|
|
18827
18861
|
additionalProperties:
|
|
18828
|
-
|
|
18829
|
-
|
|
18830
|
-
|
|
18831
|
-
|
|
18832
|
-
|
|
18833
|
-
|
|
18834
|
-
|
|
18835
|
-
|
|
18836
|
-
|
|
18862
|
+
$ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
|
|
18863
|
+
additionalProperties:
|
|
18864
|
+
type: boolean
|
|
18865
|
+
enum:
|
|
18866
|
+
- false
|
|
18867
|
+
required:
|
|
18868
|
+
- type
|
|
18869
|
+
- description
|
|
18870
|
+
- properties
|
|
18871
|
+
- additionalProperties
|
|
18872
|
+
additionalProperties:
|
|
18873
|
+
$ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
|
|
18837
18874
|
additionalProperties:
|
|
18838
18875
|
type: boolean
|
|
18839
18876
|
enum:
|
|
@@ -18983,16 +19020,6 @@ components:
|
|
|
18983
19020
|
- nl
|
|
18984
19021
|
- no
|
|
18985
19022
|
- pt-br
|
|
18986
|
-
CustomizationThemedURL:
|
|
18987
|
-
type: object
|
|
18988
|
-
properties:
|
|
18989
|
-
light:
|
|
18990
|
-
$ref: "#/components/schemas/URL"
|
|
18991
|
-
dark:
|
|
18992
|
-
$ref: "#/components/schemas/URL"
|
|
18993
|
-
required:
|
|
18994
|
-
- light
|
|
18995
|
-
- dark
|
|
18996
19023
|
CustomizationHeaderPreset:
|
|
18997
19024
|
type: string
|
|
18998
19025
|
deprecated: true
|
|
@@ -19155,22 +19182,7 @@ components:
|
|
|
19155
19182
|
required:
|
|
19156
19183
|
- locale
|
|
19157
19184
|
favicon:
|
|
19158
|
-
|
|
19159
|
-
- type: object
|
|
19160
|
-
properties:
|
|
19161
|
-
icon:
|
|
19162
|
-
$ref: "#/components/schemas/CustomizationThemedURL"
|
|
19163
|
-
required:
|
|
19164
|
-
- icon
|
|
19165
|
-
- type: object
|
|
19166
|
-
properties:
|
|
19167
|
-
emoji:
|
|
19168
|
-
$ref: "#/components/schemas/Emoji"
|
|
19169
|
-
required:
|
|
19170
|
-
- emoji
|
|
19171
|
-
- type: object
|
|
19172
|
-
properties: {}
|
|
19173
|
-
additionalProperties: false
|
|
19185
|
+
$ref: "#/components/schemas/CustomizationFavicon"
|
|
19174
19186
|
header:
|
|
19175
19187
|
type: object
|
|
19176
19188
|
properties:
|
|
@@ -21312,7 +21324,7 @@ components:
|
|
|
21312
21324
|
type: string
|
|
21313
21325
|
description: The source path to redirect from.
|
|
21314
21326
|
maxLength: 512
|
|
21315
|
-
pattern:
|
|
21327
|
+
pattern: ^\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+)*$
|
|
21316
21328
|
SiteRedirectDestinationSiteSection:
|
|
21317
21329
|
type: object
|
|
21318
21330
|
properties:
|
|
@@ -21861,6 +21873,15 @@ components:
|
|
|
21861
21873
|
- target
|
|
21862
21874
|
- redirect
|
|
21863
21875
|
- $ref: "#/components/schemas/PublishedSiteContent"
|
|
21876
|
+
SiteVisitorPayload:
|
|
21877
|
+
type: object
|
|
21878
|
+
description: 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.
|
|
21879
|
+
properties:
|
|
21880
|
+
jwtToken:
|
|
21881
|
+
type: string
|
|
21882
|
+
description: JWT token generated for a visitor auth session.
|
|
21883
|
+
unsignedClaims:
|
|
21884
|
+
$ref: "#/components/schemas/PlainObject"
|
|
21864
21885
|
SHA256:
|
|
21865
21886
|
type: string
|
|
21866
21887
|
minLength: 64
|
|
@@ -23526,22 +23547,7 @@ components:
|
|
|
23526
23547
|
- locale
|
|
23527
23548
|
- inherit
|
|
23528
23549
|
favicon:
|
|
23529
|
-
|
|
23530
|
-
- type: object
|
|
23531
|
-
properties:
|
|
23532
|
-
icon:
|
|
23533
|
-
$ref: "#/components/schemas/CustomizationThemedURL"
|
|
23534
|
-
required:
|
|
23535
|
-
- icon
|
|
23536
|
-
- type: object
|
|
23537
|
-
properties:
|
|
23538
|
-
emoji:
|
|
23539
|
-
$ref: "#/components/schemas/Emoji"
|
|
23540
|
-
required:
|
|
23541
|
-
- emoji
|
|
23542
|
-
- type: object
|
|
23543
|
-
properties: {}
|
|
23544
|
-
additionalProperties: false
|
|
23550
|
+
$ref: "#/components/schemas/CustomizationFavicon"
|
|
23545
23551
|
header:
|
|
23546
23552
|
type: object
|
|
23547
23553
|
properties:
|