@gitbook/api 0.19.0 → 0.20.1

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/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. Only "all" is supported for now.
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
@@ -869,6 +871,8 @@ components:
869
871
  type: string
870
872
  preview:
871
873
  type: string
874
+ required:
875
+ - id
872
876
  changeRequest:
873
877
  description: The change request containing this comment, if the comment was made inside a change request.
874
878
  type: string
@@ -1027,13 +1031,6 @@ components:
1027
1031
  - pathname
1028
1032
  - basePath
1029
1033
  - apiToken
1030
- GeneratedDrawing:
1031
- type: object
1032
- description: Drawing generated from a prompt
1033
- properties:
1034
- mermaid:
1035
- description: Mermaid diagram generated
1036
- type: string
1037
1034
  Document:
1038
1035
  oneOf:
1039
1036
  - $ref: "#/components/schemas/MarkdownDocument"
@@ -3619,6 +3616,28 @@ components:
3619
3616
  - nonProfit
3620
3617
  - openSource
3621
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
3622
3641
  MemberRole:
3623
3642
  type: string
3624
3643
  description: |
@@ -7362,6 +7381,17 @@ components:
7362
7381
  - $ref: "#/components/schemas/OrganizationContentAuditsChannel"
7363
7382
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"
7364
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
7365
7395
  - type: object
7366
7396
  properties:
7367
7397
  channel:
@@ -9404,7 +9434,7 @@ paths:
9404
9434
  - $ref: "#/components/parameters/changeRequestId"
9405
9435
  - $ref: "#/components/parameters/commentId"
9406
9436
  responses:
9407
- "200":
9437
+ "205":
9408
9438
  description: The comment has been deleted.
9409
9439
  default:
9410
9440
  $ref: "#/components/responses/UnexpectedError"
@@ -9557,7 +9587,7 @@ paths:
9557
9587
  - $ref: "#/components/parameters/commentId"
9558
9588
  - $ref: "#/components/parameters/commentReplyId"
9559
9589
  responses:
9560
- "200":
9590
+ "205":
9561
9591
  description: The comment has been deleted.
9562
9592
  default:
9563
9593
  $ref: "#/components/responses/UnexpectedError"
@@ -10045,7 +10075,7 @@ paths:
10045
10075
  - $ref: "#/components/parameters/spaceId"
10046
10076
  - $ref: "#/components/parameters/commentId"
10047
10077
  responses:
10048
- "200":
10078
+ "205":
10049
10079
  description: The comment has been deleted.
10050
10080
  default:
10051
10081
  $ref: "#/components/responses/UnexpectedError"
@@ -10191,7 +10221,7 @@ paths:
10191
10221
  - $ref: "#/components/parameters/commentId"
10192
10222
  - $ref: "#/components/parameters/commentReplyId"
10193
10223
  responses:
10194
- "200":
10224
+ "205":
10195
10225
  description: The comment has been deleted.
10196
10226
  default:
10197
10227
  $ref: "#/components/responses/UnexpectedError"
@@ -10383,40 +10413,6 @@ paths:
10383
10413
  description: Custom fields updated
10384
10414
  default:
10385
10415
  $ref: "#/components/responses/UnexpectedError"
10386
- "/spaces/{spaceId}/drawings":
10387
- post:
10388
- operationId: generateDrawing
10389
- summary: Generate a drawing from text.
10390
- tags:
10391
- - spaces
10392
- security:
10393
- - user-internal: []
10394
- parameters:
10395
- - $ref: "#/components/parameters/spaceId"
10396
- requestBody:
10397
- required: true
10398
- content:
10399
- application/json:
10400
- schema:
10401
- type: object
10402
- properties:
10403
- text:
10404
- type: string
10405
- description: Instruction to describe the drawing.
10406
- context:
10407
- type: string
10408
- description: Text context to provide for the generation.
10409
- required:
10410
- - text
10411
- responses:
10412
- "200":
10413
- description: Generated drawing
10414
- content:
10415
- application/json:
10416
- schema:
10417
- $ref: "#/components/schemas/GeneratedDrawing"
10418
- default:
10419
- $ref: "#/components/responses/UnexpectedError"
10420
10416
  "/collections/{collectionId}":
10421
10417
  get:
10422
10418
  operationId: getCollectionById
@@ -12583,6 +12579,49 @@ paths:
12583
12579
  - installation
12584
12580
  default:
12585
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"
12586
12625
  "/orgs/{organizationId}/schemas":
12587
12626
  get:
12588
12627
  operationId: listEntitySchemas