@gitbook/api 0.87.0 → 0.88.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
@@ -5539,49 +5539,6 @@ paths:
5539
5539
  $ref: "#/components/schemas/Integration"
5540
5540
  default:
5541
5541
  $ref: "#/components/responses/UnexpectedError"
5542
- "/orgs/{organizationId}/experiments":
5543
- get:
5544
- operationId: listOrgExperimentalFeatures
5545
- summary: List experiemental features for the given organization.
5546
- tags:
5547
- - organizations
5548
- security:
5549
- - user: []
5550
- parameters:
5551
- - $ref: "#/components/parameters/organizationId"
5552
- responses:
5553
- "200":
5554
- description: OK
5555
- content:
5556
- application/json:
5557
- schema:
5558
- type: array
5559
- items:
5560
- $ref: "#/components/schemas/OrganizationExperimentalFeature"
5561
- default:
5562
- $ref: "#/components/responses/UnexpectedError"
5563
- post:
5564
- operationId: updateOrgExperimentalFeatures
5565
- summary: Toggle on or off experimental features.
5566
- tags:
5567
- - organizations
5568
- security:
5569
- - user: []
5570
- parameters:
5571
- - $ref: "#/components/parameters/organizationId"
5572
- requestBody:
5573
- required: true
5574
- content:
5575
- application/json:
5576
- schema:
5577
- type: object
5578
- additionalProperties:
5579
- type: boolean
5580
- responses:
5581
- "204":
5582
- description: OK
5583
- default:
5584
- $ref: "#/components/responses/UnexpectedError"
5585
5542
  "/orgs/{organizationId}/saml":
5586
5543
  get:
5587
5544
  operationId: listSAMLProvidersInOrganizationById
@@ -7389,6 +7346,14 @@ paths:
7389
7346
  defaultSiteSpace:
7390
7347
  type: string
7391
7348
  description: ID of the site-space to be used as the default in this section.
7349
+ condition:
7350
+ description: Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.
7351
+ oneOf:
7352
+ - $ref: "#/components/schemas/Condition"
7353
+ - type: string
7354
+ nullable: true
7355
+ enum:
7356
+ - null
7392
7357
  icon:
7393
7358
  oneOf:
7394
7359
  - $ref: "#/components/schemas/Icon"
@@ -7571,6 +7536,14 @@ paths:
7571
7536
  properties:
7572
7537
  path:
7573
7538
  $ref: "#/components/schemas/SiteSpacePath"
7539
+ condition:
7540
+ description: Conditional expression used to evaluate whether the site space should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.
7541
+ oneOf:
7542
+ - $ref: "#/components/schemas/Condition"
7543
+ - type: string
7544
+ nullable: true
7545
+ enum:
7546
+ - null
7574
7547
  responses:
7575
7548
  "200":
7576
7549
  description: OK
@@ -7913,6 +7886,24 @@ paths:
7913
7886
  $ref: "#/components/responses/BadRequestError"
7914
7887
  default:
7915
7888
  $ref: "#/components/responses/UnexpectedError"
7889
+ delete:
7890
+ operationId: deleteSiteSpaceCustomizationById
7891
+ summary: Removes the customization configuration for a site space.
7892
+ tags:
7893
+ - sites
7894
+ security:
7895
+ - user: []
7896
+ parameters:
7897
+ - $ref: "#/components/parameters/organizationId"
7898
+ - $ref: "#/components/parameters/siteId"
7899
+ - $ref: "#/components/parameters/siteSpaceId"
7900
+ responses:
7901
+ "205":
7902
+ description: Site space customization removed
7903
+ "400":
7904
+ $ref: "#/components/responses/BadRequestError"
7905
+ default:
7906
+ $ref: "#/components/responses/UnexpectedError"
7916
7907
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw":
7917
7908
  get:
7918
7909
  operationId: getSiteSpaceRawCustomizationById
@@ -7932,14 +7923,7 @@ paths:
7932
7923
  application/json:
7933
7924
  schema:
7934
7925
  allOf:
7935
- - $ref: "#/components/schemas/SiteCustomizationSettings"
7936
- - type: object
7937
- properties:
7938
- hasOverrides:
7939
- type: boolean
7940
- description: Indicates whether the site customization settings have been overridden.
7941
- required:
7942
- - hasOverrides
7926
+ - $ref: "#/components/schemas/SiteSpaceCustomizationSettings"
7943
7927
  "400":
7944
7928
  $ref: "#/components/responses/BadRequestError"
7945
7929
  default:
@@ -8680,6 +8664,10 @@ paths:
8680
8664
  type: string
8681
8665
  enum:
8682
8666
  - rejected
8667
+ reason:
8668
+ type: string
8669
+ description: Reason for the rejection
8670
+ maxLength: 512
8683
8671
  - type: object
8684
8672
  required:
8685
8673
  - status
@@ -9340,6 +9328,20 @@ components:
9340
9328
  required:
9341
9329
  - object
9342
9330
  - type
9331
+ DocumentMarkKeyboard:
9332
+ type: object
9333
+ properties:
9334
+ object:
9335
+ type: string
9336
+ enum:
9337
+ - mark
9338
+ type:
9339
+ type: string
9340
+ enum:
9341
+ - keyboard
9342
+ required:
9343
+ - object
9344
+ - type
9343
9345
  DocumentMarkStrikethrough:
9344
9346
  type: object
9345
9347
  properties:
@@ -9400,6 +9402,7 @@ components:
9400
9402
  - $ref: "#/components/schemas/DocumentMarkBold"
9401
9403
  - $ref: "#/components/schemas/DocumentMarkItalic"
9402
9404
  - $ref: "#/components/schemas/DocumentMarkCode"
9405
+ - $ref: "#/components/schemas/DocumentMarkKeyboard"
9403
9406
  - $ref: "#/components/schemas/DocumentMarkStrikethrough"
9404
9407
  - $ref: "#/components/schemas/DocumentMarkColor"
9405
9408
  DocumentTextLeaf:
@@ -17023,6 +17026,9 @@ components:
17023
17026
  type: string
17024
17027
  enum:
17025
17028
  - rejected
17029
+ reason:
17030
+ type: string
17031
+ description: Reason for the rejection
17026
17032
  - type: object
17027
17033
  required:
17028
17034
  - status
@@ -17145,6 +17151,10 @@ components:
17145
17151
  description: Path to the section on the site
17146
17152
  minLength: 1
17147
17153
  maxLength: 100
17154
+ Condition:
17155
+ type: string
17156
+ minLength: 1
17157
+ maxLength: 1024
17148
17158
  SiteSpacePath:
17149
17159
  type: string
17150
17160
  description: Path to the space on the site
@@ -17173,6 +17183,9 @@ components:
17173
17183
  default:
17174
17184
  type: boolean
17175
17185
  description: Whether this is the default space for the site
17186
+ condition:
17187
+ description: Conditional expression used to evaluate whether the site space should be shown to the site's visitor.
17188
+ $ref: "#/components/schemas/Condition"
17176
17189
  hasAdvancedCustomizationFeature:
17177
17190
  type: boolean
17178
17191
  description: Whether the space has advanced customization feature enabled
@@ -17211,6 +17224,9 @@ components:
17211
17224
  description: Whether this is the default section for the site
17212
17225
  path:
17213
17226
  $ref: "#/components/schemas/SiteSectionPath"
17227
+ condition:
17228
+ description: Conditional expression used to evaluate whether the site section should be shown to the site's visitor.
17229
+ $ref: "#/components/schemas/Condition"
17214
17230
  siteSpaces:
17215
17231
  type: array
17216
17232
  items:
@@ -17745,28 +17761,6 @@ components:
17745
17761
  parent:
17746
17762
  type: string
17747
17763
  description: ID of a parent collection
17748
- OrganizationExperimentalFeature:
17749
- type: object
17750
- properties:
17751
- id:
17752
- type: string
17753
- title:
17754
- type: string
17755
- description:
17756
- type: string
17757
- enabled:
17758
- type: boolean
17759
- stage:
17760
- type: string
17761
- enum:
17762
- - alpha
17763
- - beta
17764
- required:
17765
- - id
17766
- - title
17767
- - description
17768
- - enabled
17769
- - stage
17770
17764
  SAMLProviderLabel:
17771
17765
  type: string
17772
17766
  minLength: 1
@@ -18674,6 +18668,16 @@ components:
18674
18668
  type: string
18675
18669
  enum:
18676
18670
  - all
18671
+ SiteSpaceCustomizationSettings:
18672
+ allOf:
18673
+ - $ref: "#/components/schemas/SiteCustomizationSettings"
18674
+ - type: object
18675
+ properties:
18676
+ hasOverrides:
18677
+ type: boolean
18678
+ description: Indicates whether the site customization settings have been overridden.
18679
+ required:
18680
+ - hasOverrides
18677
18681
  SiteSectionPointer:
18678
18682
  type: object
18679
18683
  properties:
@@ -21465,18 +21469,6 @@ components:
21465
21469
  required:
21466
21470
  - channel
21467
21471
  - organization
21468
- OrganizationExperimentalFeaturesChannel:
21469
- type: object
21470
- properties:
21471
- channel:
21472
- type: string
21473
- enum:
21474
- - organization-experimental-features
21475
- organization:
21476
- type: string
21477
- required:
21478
- - channel
21479
- - organization
21480
21472
  OrganizationAIIndexationChannel:
21481
21473
  type: object
21482
21474
  description: Channel for messages everytime a space is indexed by the AI in an organization
@@ -21888,7 +21880,6 @@ components:
21888
21880
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"
21889
21881
  - $ref: "#/components/schemas/OrganizationInstallationsChannel"
21890
21882
  - $ref: "#/components/schemas/OrganizationSitesChannel"
21891
- - $ref: "#/components/schemas/OrganizationExperimentalFeaturesChannel"
21892
21883
  - $ref: "#/components/schemas/OrganizationAIIndexationChannel"
21893
21884
  - $ref: "#/components/schemas/SpaceCommentsChannel"
21894
21885
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"