@gitbook/api 0.18.0 → 0.20.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 +932 -429
- package/dist/index.cjs +42 -22
- package/dist/index.js +42 -22
- package/package.json +2 -2
- package/spec/openapi.json +196 -14
- package/spec/openapi.yaml +123 -11
package/spec/openapi.yaml
CHANGED
|
@@ -71,12 +71,14 @@ components:
|
|
|
71
71
|
commentStatus:
|
|
72
72
|
name: status
|
|
73
73
|
in: query
|
|
74
|
-
description: When provided, only comments with the given status are returned.
|
|
74
|
+
description: When provided, only comments with the given status are returned. Defaults to "all".
|
|
75
75
|
schema:
|
|
76
76
|
type: string
|
|
77
77
|
default: all
|
|
78
78
|
enum:
|
|
79
79
|
- all
|
|
80
|
+
- open
|
|
81
|
+
- resolved
|
|
80
82
|
spaceId:
|
|
81
83
|
name: spaceId
|
|
82
84
|
in: path
|
|
@@ -207,6 +209,13 @@ components:
|
|
|
207
209
|
description: Type of the entity
|
|
208
210
|
schema:
|
|
209
211
|
$ref: "#/components/schemas/EntityType"
|
|
212
|
+
relationId:
|
|
213
|
+
name: relationId
|
|
214
|
+
in: path
|
|
215
|
+
required: true
|
|
216
|
+
description: The id of the content audit relation
|
|
217
|
+
schema:
|
|
218
|
+
type: string
|
|
210
219
|
backofficeHostname:
|
|
211
220
|
name: hostname
|
|
212
221
|
in: path
|
|
@@ -862,6 +871,8 @@ components:
|
|
|
862
871
|
type: string
|
|
863
872
|
preview:
|
|
864
873
|
type: string
|
|
874
|
+
required:
|
|
875
|
+
- id
|
|
865
876
|
changeRequest:
|
|
866
877
|
description: The change request containing this comment, if the comment was made inside a change request.
|
|
867
878
|
type: string
|
|
@@ -2995,6 +3006,8 @@ components:
|
|
|
2995
3006
|
$ref: "#/components/schemas/GitSyncBlob"
|
|
2996
3007
|
layout:
|
|
2997
3008
|
$ref: "#/components/schemas/RevisionPageLayoutOptions"
|
|
3009
|
+
cover:
|
|
3010
|
+
$ref: "#/components/schemas/RevisionPageDocumentCover"
|
|
2998
3011
|
required:
|
|
2999
3012
|
- kind
|
|
3000
3013
|
- type
|
|
@@ -3603,6 +3616,28 @@ components:
|
|
|
3603
3616
|
- nonProfit
|
|
3604
3617
|
- openSource
|
|
3605
3618
|
- education
|
|
3619
|
+
OrganizationExperimentalFeature:
|
|
3620
|
+
type: object
|
|
3621
|
+
properties:
|
|
3622
|
+
id:
|
|
3623
|
+
type: string
|
|
3624
|
+
title:
|
|
3625
|
+
type: string
|
|
3626
|
+
description:
|
|
3627
|
+
type: string
|
|
3628
|
+
enabled:
|
|
3629
|
+
type: boolean
|
|
3630
|
+
stage:
|
|
3631
|
+
type: string
|
|
3632
|
+
enum:
|
|
3633
|
+
- alpha
|
|
3634
|
+
- beta
|
|
3635
|
+
required:
|
|
3636
|
+
- id
|
|
3637
|
+
- title
|
|
3638
|
+
- description
|
|
3639
|
+
- enabled
|
|
3640
|
+
- stage
|
|
3606
3641
|
MemberRole:
|
|
3607
3642
|
type: string
|
|
3608
3643
|
description: |
|
|
@@ -6623,6 +6658,12 @@ components:
|
|
|
6623
6658
|
type: string
|
|
6624
6659
|
multiline:
|
|
6625
6660
|
type: boolean
|
|
6661
|
+
inputType:
|
|
6662
|
+
type: string
|
|
6663
|
+
enum:
|
|
6664
|
+
- text
|
|
6665
|
+
- password
|
|
6666
|
+
default: text
|
|
6626
6667
|
required:
|
|
6627
6668
|
- type
|
|
6628
6669
|
- state
|
|
@@ -7340,6 +7381,17 @@ components:
|
|
|
7340
7381
|
- $ref: "#/components/schemas/OrganizationContentAuditsChannel"
|
|
7341
7382
|
- $ref: "#/components/schemas/OrganizationIntegrationsChannel"
|
|
7342
7383
|
- $ref: "#/components/schemas/OrganizationInstallationsChannel"
|
|
7384
|
+
- type: object
|
|
7385
|
+
properties:
|
|
7386
|
+
channel:
|
|
7387
|
+
type: string
|
|
7388
|
+
enum:
|
|
7389
|
+
- organization-experimental-features
|
|
7390
|
+
organization:
|
|
7391
|
+
type: string
|
|
7392
|
+
required:
|
|
7393
|
+
- channel
|
|
7394
|
+
- organization
|
|
7343
7395
|
- type: object
|
|
7344
7396
|
properties:
|
|
7345
7397
|
channel:
|
|
@@ -9382,7 +9434,7 @@ paths:
|
|
|
9382
9434
|
- $ref: "#/components/parameters/changeRequestId"
|
|
9383
9435
|
- $ref: "#/components/parameters/commentId"
|
|
9384
9436
|
responses:
|
|
9385
|
-
"
|
|
9437
|
+
"205":
|
|
9386
9438
|
description: The comment has been deleted.
|
|
9387
9439
|
default:
|
|
9388
9440
|
$ref: "#/components/responses/UnexpectedError"
|
|
@@ -9535,7 +9587,7 @@ paths:
|
|
|
9535
9587
|
- $ref: "#/components/parameters/commentId"
|
|
9536
9588
|
- $ref: "#/components/parameters/commentReplyId"
|
|
9537
9589
|
responses:
|
|
9538
|
-
"
|
|
9590
|
+
"205":
|
|
9539
9591
|
description: The comment has been deleted.
|
|
9540
9592
|
default:
|
|
9541
9593
|
$ref: "#/components/responses/UnexpectedError"
|
|
@@ -10023,7 +10075,7 @@ paths:
|
|
|
10023
10075
|
- $ref: "#/components/parameters/spaceId"
|
|
10024
10076
|
- $ref: "#/components/parameters/commentId"
|
|
10025
10077
|
responses:
|
|
10026
|
-
"
|
|
10078
|
+
"205":
|
|
10027
10079
|
description: The comment has been deleted.
|
|
10028
10080
|
default:
|
|
10029
10081
|
$ref: "#/components/responses/UnexpectedError"
|
|
@@ -10169,7 +10221,7 @@ paths:
|
|
|
10169
10221
|
- $ref: "#/components/parameters/commentId"
|
|
10170
10222
|
- $ref: "#/components/parameters/commentReplyId"
|
|
10171
10223
|
responses:
|
|
10172
|
-
"
|
|
10224
|
+
"205":
|
|
10173
10225
|
description: The comment has been deleted.
|
|
10174
10226
|
default:
|
|
10175
10227
|
$ref: "#/components/responses/UnexpectedError"
|
|
@@ -12527,6 +12579,49 @@ paths:
|
|
|
12527
12579
|
- installation
|
|
12528
12580
|
default:
|
|
12529
12581
|
$ref: "#/components/responses/UnexpectedError"
|
|
12582
|
+
"/orgs/{organizationId}/experiments":
|
|
12583
|
+
get:
|
|
12584
|
+
operationId: listOrgExperimentalFeatures
|
|
12585
|
+
summary: List experiemental features for the given organization.
|
|
12586
|
+
tags:
|
|
12587
|
+
- organizations
|
|
12588
|
+
security:
|
|
12589
|
+
- user: []
|
|
12590
|
+
parameters:
|
|
12591
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12592
|
+
responses:
|
|
12593
|
+
"200":
|
|
12594
|
+
description: OK
|
|
12595
|
+
content:
|
|
12596
|
+
application/json:
|
|
12597
|
+
schema:
|
|
12598
|
+
type: array
|
|
12599
|
+
items:
|
|
12600
|
+
$ref: "#/components/schemas/OrganizationExperimentalFeature"
|
|
12601
|
+
default:
|
|
12602
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12603
|
+
post:
|
|
12604
|
+
operationId: updateOrgExperimentalFeatures
|
|
12605
|
+
summary: Toggle on or off experimental features.
|
|
12606
|
+
tags:
|
|
12607
|
+
- organizations
|
|
12608
|
+
security:
|
|
12609
|
+
- user: []
|
|
12610
|
+
parameters:
|
|
12611
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12612
|
+
requestBody:
|
|
12613
|
+
required: true
|
|
12614
|
+
content:
|
|
12615
|
+
application/json:
|
|
12616
|
+
schema:
|
|
12617
|
+
type: object
|
|
12618
|
+
additionalProperties:
|
|
12619
|
+
type: boolean
|
|
12620
|
+
responses:
|
|
12621
|
+
"204":
|
|
12622
|
+
description: OK
|
|
12623
|
+
default:
|
|
12624
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12530
12625
|
"/orgs/{organizationId}/schemas":
|
|
12531
12626
|
get:
|
|
12532
12627
|
operationId: listEntitySchemas
|
|
@@ -13133,6 +13228,28 @@ paths:
|
|
|
13133
13228
|
default:
|
|
13134
13229
|
$ref: "#/components/responses/UnexpectedError"
|
|
13135
13230
|
"/orgs/{organizationId}/insights/audit-relations/{relationId}":
|
|
13231
|
+
get:
|
|
13232
|
+
operationId: getContentAuditRelationById
|
|
13233
|
+
summary: Get an audit relation by ID
|
|
13234
|
+
tags:
|
|
13235
|
+
- organizations
|
|
13236
|
+
security:
|
|
13237
|
+
- user: []
|
|
13238
|
+
parameters:
|
|
13239
|
+
- $ref: "#/components/parameters/organizationId"
|
|
13240
|
+
- $ref: "#/components/parameters/relationId"
|
|
13241
|
+
responses:
|
|
13242
|
+
"200":
|
|
13243
|
+
description: OK
|
|
13244
|
+
content:
|
|
13245
|
+
application/json:
|
|
13246
|
+
schema:
|
|
13247
|
+
$ref: "#/components/schemas/ContentAuditRelation"
|
|
13248
|
+
"404":
|
|
13249
|
+
description: No matching content relation found for given ID
|
|
13250
|
+
$ref: "#/components/responses/NotFoundError"
|
|
13251
|
+
default:
|
|
13252
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
13136
13253
|
patch:
|
|
13137
13254
|
operationId: updateContentAuditRelationStatusById
|
|
13138
13255
|
summary: Update an audit relation status
|
|
@@ -13142,12 +13259,7 @@ paths:
|
|
|
13142
13259
|
- user: []
|
|
13143
13260
|
parameters:
|
|
13144
13261
|
- $ref: "#/components/parameters/organizationId"
|
|
13145
|
-
-
|
|
13146
|
-
in: path
|
|
13147
|
-
required: true
|
|
13148
|
-
description: The id of the content audit relation
|
|
13149
|
-
schema:
|
|
13150
|
-
type: string
|
|
13262
|
+
- $ref: "#/components/parameters/relationId"
|
|
13151
13263
|
requestBody:
|
|
13152
13264
|
required: true
|
|
13153
13265
|
content:
|