@gitbook/api 0.211.0 → 0.213.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/spec/openapi.yaml CHANGED
@@ -5949,6 +5949,194 @@ paths:
5949
5949
  description: Member was not part of the team
5950
5950
  '205':
5951
5951
  description: Member has been deleted from the team
5952
+ /orgs/{organizationId}/idp-connections:
5953
+ get:
5954
+ operationId: listOrganizationIdPConnections
5955
+ summary: List identity provider connections
5956
+ tags:
5957
+ - sso
5958
+ security:
5959
+ - user-internal: []
5960
+ parameters:
5961
+ - $ref: '#/components/parameters/organizationId'
5962
+ responses:
5963
+ '200':
5964
+ description: OK
5965
+ content:
5966
+ application/json:
5967
+ schema:
5968
+ allOf:
5969
+ - $ref: '#/components/schemas/List'
5970
+ - type: object
5971
+ required:
5972
+ - items
5973
+ properties:
5974
+ items:
5975
+ type: array
5976
+ items:
5977
+ $ref: '#/components/schemas/OrganizationIdPConnection'
5978
+ '404':
5979
+ $ref: '#/components/responses/NotFoundError'
5980
+ post:
5981
+ operationId: createOrganizationIdPConnection
5982
+ summary: Create an identity provider connection
5983
+ description: |
5984
+ Creates a connection with its SAML service provider URLs and a SCIM token. The token is only returned in this response.
5985
+ tags:
5986
+ - sso
5987
+ security:
5988
+ - user-internal: []
5989
+ parameters:
5990
+ - $ref: '#/components/parameters/organizationId'
5991
+ requestBody:
5992
+ required: true
5993
+ content:
5994
+ application/json:
5995
+ schema:
5996
+ type: object
5997
+ properties:
5998
+ label:
5999
+ $ref: '#/components/schemas/IdPConnectionLabel'
6000
+ provider:
6001
+ $ref: '#/components/schemas/IdPConnectionProvider'
6002
+ defaultRole:
6003
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
6004
+ defaultTeam:
6005
+ type: string
6006
+ defaultTeamFromDomain:
6007
+ type: boolean
6008
+ ssoURL:
6009
+ $ref: '#/components/schemas/URL'
6010
+ entityID:
6011
+ $ref: '#/components/schemas/SAMLProviderEntityID'
6012
+ certificate:
6013
+ $ref: '#/components/schemas/SAMLProviderCertificate'
6014
+ domains:
6015
+ $ref: '#/components/schemas/SAMLProviderDomains'
6016
+ required:
6017
+ - label
6018
+ - provider
6019
+ responses:
6020
+ '201':
6021
+ description: Connection created
6022
+ content:
6023
+ application/json:
6024
+ schema:
6025
+ $ref: '#/components/schemas/OrganizationIdPConnectionWithToken'
6026
+ '400':
6027
+ $ref: '#/components/responses/BadRequestError'
6028
+ '404':
6029
+ $ref: '#/components/responses/NotFoundError'
6030
+ /orgs/{organizationId}/idp-connections/{idpConnectionId}:
6031
+ get:
6032
+ operationId: getOrganizationIdPConnection
6033
+ summary: Get an identity provider connection by its ID
6034
+ tags:
6035
+ - sso
6036
+ security:
6037
+ - user-internal: []
6038
+ parameters:
6039
+ - $ref: '#/components/parameters/organizationId'
6040
+ - $ref: '#/components/parameters/idpConnectionId'
6041
+ responses:
6042
+ '200':
6043
+ description: OK
6044
+ content:
6045
+ application/json:
6046
+ schema:
6047
+ $ref: '#/components/schemas/OrganizationIdPConnection'
6048
+ '404':
6049
+ $ref: '#/components/responses/NotFoundError'
6050
+ patch:
6051
+ operationId: updateOrganizationIdPConnection
6052
+ summary: Update an identity provider connection
6053
+ tags:
6054
+ - sso
6055
+ security:
6056
+ - user-internal: []
6057
+ parameters:
6058
+ - $ref: '#/components/parameters/organizationId'
6059
+ - $ref: '#/components/parameters/idpConnectionId'
6060
+ requestBody:
6061
+ required: true
6062
+ content:
6063
+ application/json:
6064
+ schema:
6065
+ type: object
6066
+ properties:
6067
+ label:
6068
+ $ref: '#/components/schemas/IdPConnectionLabel'
6069
+ provider:
6070
+ $ref: '#/components/schemas/IdPConnectionProvider'
6071
+ defaultRole:
6072
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
6073
+ defaultTeam:
6074
+ description: Team to add members to, or null to add them to none.
6075
+ oneOf:
6076
+ - type: string
6077
+ - type: 'null'
6078
+ defaultTeamFromDomain:
6079
+ type: boolean
6080
+ ssoURL:
6081
+ $ref: '#/components/schemas/URL'
6082
+ entityID:
6083
+ $ref: '#/components/schemas/SAMLProviderEntityID'
6084
+ certificate:
6085
+ $ref: '#/components/schemas/SAMLProviderCertificate'
6086
+ domains:
6087
+ $ref: '#/components/schemas/SAMLProviderDomains'
6088
+ responses:
6089
+ '200':
6090
+ description: Connection updated
6091
+ content:
6092
+ application/json:
6093
+ schema:
6094
+ $ref: '#/components/schemas/OrganizationIdPConnection'
6095
+ '400':
6096
+ $ref: '#/components/responses/BadRequestError'
6097
+ '404':
6098
+ $ref: '#/components/responses/NotFoundError'
6099
+ delete:
6100
+ operationId: deleteOrganizationIdPConnection
6101
+ summary: Delete an identity provider connection
6102
+ description: |
6103
+ Deletes a connection. Members can no longer sign in through it and its SCIM token stops working immediately. Deleting the last connection with SAML turns off Enforce SSO login.
6104
+ tags:
6105
+ - sso
6106
+ security:
6107
+ - user-internal: []
6108
+ parameters:
6109
+ - $ref: '#/components/parameters/organizationId'
6110
+ - $ref: '#/components/parameters/idpConnectionId'
6111
+ responses:
6112
+ '204':
6113
+ description: Connection not found
6114
+ '205':
6115
+ description: Connection deleted
6116
+ '404':
6117
+ $ref: '#/components/responses/NotFoundError'
6118
+ /orgs/{organizationId}/idp-connections/{idpConnectionId}/token:
6119
+ post:
6120
+ operationId: rotateOrganizationIdPConnectionToken
6121
+ summary: Replace the SCIM token of an identity provider connection
6122
+ description: |
6123
+ Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response.
6124
+ tags:
6125
+ - sso
6126
+ security:
6127
+ - user-internal: []
6128
+ parameters:
6129
+ - $ref: '#/components/parameters/organizationId'
6130
+ - $ref: '#/components/parameters/idpConnectionId'
6131
+ responses:
6132
+ '200':
6133
+ description: Token replaced
6134
+ content:
6135
+ application/json:
6136
+ schema:
6137
+ $ref: '#/components/schemas/OrganizationIdPConnectionWithToken'
6138
+ '404':
6139
+ $ref: '#/components/responses/NotFoundError'
5952
6140
  /orgs/{organizationId}/invites:
5953
6141
  post:
5954
6142
  operationId: inviteUsersToOrganization
@@ -7016,7 +7204,7 @@ paths:
7016
7204
  label:
7017
7205
  $ref: '#/components/schemas/SCIMConnectionLabel'
7018
7206
  provider:
7019
- $ref: '#/components/schemas/SCIMConnectionProvider'
7207
+ $ref: '#/components/schemas/IdPConnectionProvider'
7020
7208
  required:
7021
7209
  - label
7022
7210
  - provider
@@ -8973,6 +9161,53 @@ paths:
8973
9161
  '409':
8974
9162
  description: The change request has been merged and cannot be deleted.
8975
9163
  $ref: '#/components/responses/ConflictError'
9164
+ /orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}/merge:
9165
+ post:
9166
+ operationId: mergeSiteChangeRequest
9167
+ summary: Merge a site change request into the site's live content
9168
+ description: 'Merges every space edited in the change request into its published content, as one publication: either all of them are published or none of them are. If any space reports conflicts, nothing is published and those spaces are listed so they can be resolved and the change request merged again.'
9169
+ x-internal: true
9170
+ tags:
9171
+ - site-change-requests
9172
+ security:
9173
+ - user: []
9174
+ - oauth:
9175
+ - change-request:merge
9176
+ parameters:
9177
+ - $ref: '#/components/parameters/organizationId'
9178
+ - $ref: '#/components/parameters/siteId'
9179
+ - $ref: '#/components/parameters/siteChangeRequestId'
9180
+ responses:
9181
+ '200':
9182
+ description: The change request has been merged, or reported conflicts to resolve.
9183
+ content:
9184
+ application/json:
9185
+ schema:
9186
+ type: object
9187
+ properties:
9188
+ result:
9189
+ type: string
9190
+ enum:
9191
+ - merge
9192
+ - conflicts
9193
+ description: '"merge" when every space was published, "conflicts" when nothing was published. Each space that conflicts now serves a revision holding them, the same as a space change request, so read the change request''s spaces to find which.'
9194
+ revision:
9195
+ type: string
9196
+ description: ID of the site revision recording the merge. Absent when the result is "conflicts", since nothing was published.
9197
+ required:
9198
+ - result
9199
+ '403':
9200
+ description: The user cannot merge the change request, or a space it forked is not on the merge queue yet.
9201
+ $ref: '#/components/responses/ForbiddenError'
9202
+ '404':
9203
+ description: The change request could not be found.
9204
+ $ref: '#/components/responses/NotFoundError'
9205
+ '409':
9206
+ description: The change request has already been merged or is archived, or Git Sync is importing into a space it edited, or its last import there failed, or one of its spaces kept moving while the merge ran. Nothing was published in the last case, and the merge can be tried again.
9207
+ $ref: '#/components/responses/ConflictError'
9208
+ '412':
9209
+ description: The change request has no space to merge, or a space it forked has moved to another organization since.
9210
+ $ref: '#/components/responses/PreconditionFailedError'
8976
9211
  /orgs/{organizationId}/sites/{siteId}/share-links:
8977
9212
  get:
8978
9213
  operationId: listSiteShareLinks
@@ -12312,6 +12547,203 @@ paths:
12312
12547
  description: Site space customization removed
12313
12548
  '400':
12314
12549
  $ref: '#/components/responses/BadRequestError'
12550
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}:
12551
+ get:
12552
+ operationId: getRevisionInSiteRevision
12553
+ summary: Get the content revision of a space at a site revision
12554
+ description: Retrieves the revision a space of the site was at when the site revision was recorded, including the full page tree structure and associated files. A space the site revision does not record returns 404.
12555
+ tags:
12556
+ - sites
12557
+ security:
12558
+ - user: []
12559
+ - oauth:
12560
+ - site:read
12561
+ - space:read
12562
+ parameters:
12563
+ - $ref: '#/components/parameters/organizationId'
12564
+ - $ref: '#/components/parameters/siteId'
12565
+ - $ref: '#/components/parameters/siteRevisionId'
12566
+ - $ref: '#/components/parameters/spaceId'
12567
+ - $ref: '#/components/parameters/revisionMetadata'
12568
+ - $ref: '#/components/parameters/revisionComputed'
12569
+ responses:
12570
+ '200':
12571
+ description: OK
12572
+ content:
12573
+ application/json:
12574
+ schema:
12575
+ $ref: '#/components/schemas/Revision'
12576
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}:
12577
+ get:
12578
+ operationId: getPageInSiteRevision
12579
+ summary: Get a page of a space at a site revision
12580
+ description: Returns a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12581
+ tags:
12582
+ - sites
12583
+ security:
12584
+ - user: []
12585
+ - oauth:
12586
+ - site:read
12587
+ - space:read
12588
+ parameters:
12589
+ - $ref: '#/components/parameters/organizationId'
12590
+ - $ref: '#/components/parameters/siteId'
12591
+ - $ref: '#/components/parameters/siteRevisionId'
12592
+ - $ref: '#/components/parameters/spaceId'
12593
+ - $ref: '#/components/parameters/pageId'
12594
+ - $ref: '#/components/parameters/documentFormat'
12595
+ - $ref: '#/components/parameters/documentMarkdownRefsFormat'
12596
+ - $ref: '#/components/parameters/documentEvaluated'
12597
+ - $ref: '#/components/parameters/documentDereferenced'
12598
+ - $ref: '#/components/parameters/revisionMetadata'
12599
+ - $ref: '#/components/parameters/revisionComputed'
12600
+ responses:
12601
+ '200':
12602
+ description: OK
12603
+ content:
12604
+ application/json:
12605
+ schema:
12606
+ $ref: '#/components/schemas/RevisionPage'
12607
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/meta-links:
12608
+ get:
12609
+ operationId: listPageMetaLinksInSiteRevision
12610
+ summary: List the meta links of a page at a site revision
12611
+ description: Returns the meta links of a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12612
+ tags:
12613
+ - sites
12614
+ security:
12615
+ - user: []
12616
+ - oauth:
12617
+ - site:read
12618
+ - space:read
12619
+ parameters:
12620
+ - $ref: '#/components/parameters/organizationId'
12621
+ - $ref: '#/components/parameters/siteId'
12622
+ - $ref: '#/components/parameters/siteRevisionId'
12623
+ - $ref: '#/components/parameters/spaceId'
12624
+ - $ref: '#/components/parameters/pageId'
12625
+ responses:
12626
+ '200':
12627
+ description: OK
12628
+ content:
12629
+ application/json:
12630
+ schema:
12631
+ $ref: '#/components/schemas/RevisionPageMetaLinks'
12632
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/path/{pagePath}:
12633
+ get:
12634
+ operationId: getPageByPathInSiteRevision
12635
+ summary: Get a page of a space by its path at a site revision
12636
+ description: Returns the page at a path in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12637
+ tags:
12638
+ - sites
12639
+ security:
12640
+ - user: []
12641
+ - oauth:
12642
+ - site:read
12643
+ - space:read
12644
+ parameters:
12645
+ - $ref: '#/components/parameters/organizationId'
12646
+ - $ref: '#/components/parameters/siteId'
12647
+ - $ref: '#/components/parameters/siteRevisionId'
12648
+ - $ref: '#/components/parameters/spaceId'
12649
+ - $ref: '#/components/parameters/pagePath'
12650
+ - $ref: '#/components/parameters/documentFormat'
12651
+ - $ref: '#/components/parameters/documentMarkdownRefsFormat'
12652
+ - $ref: '#/components/parameters/documentEvaluated'
12653
+ - $ref: '#/components/parameters/documentDereferenced'
12654
+ - $ref: '#/components/parameters/revisionMetadata'
12655
+ - $ref: '#/components/parameters/revisionCachedMetadata'
12656
+ - $ref: '#/components/parameters/revisionComputed'
12657
+ responses:
12658
+ '200':
12659
+ description: OK
12660
+ content:
12661
+ application/json:
12662
+ schema:
12663
+ oneOf:
12664
+ - $ref: '#/components/schemas/RevisionPageDocument'
12665
+ - $ref: '#/components/schemas/RevisionPageGroup'
12666
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/reusable-contents/{reusableContentId}/document:
12667
+ get:
12668
+ operationId: getReusableContentDocumentInSiteRevision
12669
+ summary: Get the document of a reusable content at a site revision
12670
+ description: Returns the document of a reusable content in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12671
+ tags:
12672
+ - sites
12673
+ security:
12674
+ - user: []
12675
+ - oauth:
12676
+ - site:read
12677
+ - space:read
12678
+ parameters:
12679
+ - $ref: '#/components/parameters/organizationId'
12680
+ - $ref: '#/components/parameters/siteId'
12681
+ - $ref: '#/components/parameters/siteRevisionId'
12682
+ - $ref: '#/components/parameters/spaceId'
12683
+ - $ref: '#/components/parameters/reusableContentId'
12684
+ - $ref: '#/components/parameters/documentEvaluated'
12685
+ - $ref: '#/components/parameters/documentDereferenced'
12686
+ responses:
12687
+ '200':
12688
+ description: OK
12689
+ content:
12690
+ application/json:
12691
+ schema:
12692
+ $ref: '#/components/schemas/JSONDocument'
12693
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/document:
12694
+ get:
12695
+ operationId: getPageDocumentInSiteRevision
12696
+ summary: Get the document of a page in a space at a site revision
12697
+ description: Returns the structured JSON document of a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12698
+ tags:
12699
+ - sites
12700
+ security:
12701
+ - user: []
12702
+ - oauth:
12703
+ - site:read
12704
+ - space:read
12705
+ parameters:
12706
+ - $ref: '#/components/parameters/organizationId'
12707
+ - $ref: '#/components/parameters/siteId'
12708
+ - $ref: '#/components/parameters/siteRevisionId'
12709
+ - $ref: '#/components/parameters/spaceId'
12710
+ - $ref: '#/components/parameters/pageId'
12711
+ - $ref: '#/components/parameters/documentEvaluated'
12712
+ - $ref: '#/components/parameters/documentDereferenced'
12713
+ responses:
12714
+ '200':
12715
+ description: OK
12716
+ content:
12717
+ application/json:
12718
+ schema:
12719
+ $ref: '#/components/schemas/JSONDocument'
12720
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/openapi/{specSlug}/content:
12721
+ get:
12722
+ operationId: getOpenAPISpecContentInSiteRevision
12723
+ summary: Get the content of an OpenAPI spec at a site revision
12724
+ description: Retrieves the content of the OpenAPI spec version the site revision pins. A spec the site revision does not record returns 404.
12725
+ tags:
12726
+ - sites
12727
+ security:
12728
+ - user: []
12729
+ - oauth:
12730
+ - site:read
12731
+ - openapi:read
12732
+ parameters:
12733
+ - $ref: '#/components/parameters/organizationId'
12734
+ - $ref: '#/components/parameters/siteId'
12735
+ - $ref: '#/components/parameters/siteRevisionId'
12736
+ - $ref: '#/components/parameters/openapiSpecSlug'
12737
+ responses:
12738
+ '200':
12739
+ description: OK
12740
+ content:
12741
+ application/json:
12742
+ schema:
12743
+ $ref: '#/components/schemas/OpenAPISpecContent'
12744
+ '404':
12745
+ description: No matching site revision, OpenAPI specification or version found
12746
+ $ref: '#/components/responses/NotFoundError'
12315
12747
  /orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/move:
12316
12748
  post:
12317
12749
  operationId: moveSiteSectionGroup
@@ -15012,6 +15444,13 @@ components:
15012
15444
  - joinedAt
15013
15445
  - lastSeenAt
15014
15446
  - name
15447
+ idpConnectionId:
15448
+ name: idpConnectionId
15449
+ in: path
15450
+ required: true
15451
+ description: The unique id of the identity provider connection
15452
+ schema:
15453
+ type: string
15015
15454
  inviteId:
15016
15455
  name: inviteId
15017
15456
  in: path
@@ -15276,6 +15715,13 @@ components:
15276
15715
  description: The unique id of the site-space relationship
15277
15716
  schema:
15278
15717
  type: string
15718
+ siteRevisionId:
15719
+ name: siteRevisionId
15720
+ in: path
15721
+ required: true
15722
+ description: The unique id of the site revision
15723
+ schema:
15724
+ type: string
15279
15725
  siteRedirectId:
15280
15726
  name: siteRedirectId
15281
15727
  in: path
@@ -15505,6 +15951,16 @@ components:
15505
15951
  - type
15506
15952
  - response
15507
15953
  - clientExtensionResults
15954
+ PasskeySignInOptions:
15955
+ type: object
15956
+ description: WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser.
15957
+ additionalProperties: true
15958
+ properties:
15959
+ challenge:
15960
+ type: string
15961
+ description: Single-use challenge the passkey must sign.
15962
+ required:
15963
+ - challenge
15508
15964
  PasskeyRegistrationOptions:
15509
15965
  type: object
15510
15966
  description: WebAuthn options for creating a passkey (PublicKeyCredentialCreationOptionsJSON), to pass unchanged to the browser.
@@ -15567,10 +16023,14 @@ components:
15567
16023
  description: The API token creation date.
15568
16024
  revoked:
15569
16025
  type: boolean
15570
- description: Whether the API token can no longer be used to authenticate, because it was revoked or has expired.
16026
+ deprecated: true
16027
+ description: Whether the API token can no longer be used to authenticate, because it was revoked or has expired. Deprecated, use `revokedAt` instead.
15571
16028
  expiresAt:
15572
16029
  $ref: '#/components/schemas/Timestamp'
15573
16030
  description: When the API token stops authenticating. Absent for a token that never expires.
16031
+ revokedAt:
16032
+ $ref: '#/components/schemas/Timestamp'
16033
+ description: When the API token was revoked. Absent when it was not revoked.
15574
16034
  ipRules:
15575
16035
  type: array
15576
16036
  description: IP rules restricting where the token can be used from. Absent when unrestricted.
@@ -15580,6 +16040,9 @@ components:
15580
16040
  lastUsedAt:
15581
16041
  $ref: '#/components/schemas/Timestamp'
15582
16042
  description: When the API token last authenticated a request, accurate to within an hour. Absent for a token that has never been used.
16043
+ replacedBy:
16044
+ type: string
16045
+ description: ID of the token that replaced this one through a rotation. This token keeps working until `expiresAt`. Absent when the token was not rotated.
15583
16046
  scope:
15584
16047
  type: string
15585
16048
  enum:
@@ -21727,6 +22190,16 @@ components:
21727
22190
  - mcp
21728
22191
  - git
21729
22192
  - pdf
22193
+ CustomizationPageActionConditions:
22194
+ type: object
22195
+ description: |
22196
+ Conditions restricting page actions to the visitors matching them, keyed by page action type.
22197
+ A page action without a condition is shown to every visitor. Only enabled page actions can have
22198
+ a condition, and the `assistant` action cannot have one.
22199
+ propertyNames:
22200
+ $ref: '#/components/schemas/CustomizationPageActionType'
22201
+ additionalProperties:
22202
+ $ref: '#/components/schemas/Expression'
21730
22203
  SiteExternalLinksTarget:
21731
22204
  type: string
21732
22205
  description: |
@@ -21990,6 +22463,13 @@ components:
21990
22463
  When the menu is off, the assistant stays reachable from the header via `ai.mode`.
21991
22464
  items:
21992
22465
  $ref: '#/components/schemas/CustomizationPageActionType'
22466
+ conditions:
22467
+ description: |
22468
+ Conditions restricting enabled page actions to the visitors matching them. Returned by the
22469
+ customization endpoints when a page action has one, and left out of published content,
22470
+ where they are already applied to the visitor. When updating, leaving it out keeps the
22471
+ current conditions and an empty object removes them.
22472
+ $ref: '#/components/schemas/CustomizationPageActionConditions'
21993
22473
  required:
21994
22474
  - items
21995
22475
  externalLinks:
@@ -22890,7 +23370,7 @@ components:
22890
23370
  page: page_id
22891
23371
  ChangeRequestContentChangeRevertPage:
22892
23372
  type: object
22893
- description: Revert a page to the state it had in a given revision. If `revision` is omitted, the page is reverted to the change request's base revision. Without `block`, the whole page is reverted — added pages are removed, deleted pages are restored, and modified pages have their document reset. With `block`, only the listed block-level changes in the page's document are reverted (each block is removed if it was added, restored if it was deleted, or reset if it was modified or moved); other blocks and the page's properties/metadata are left untouched.
23373
+ description: Revert a page to the state it had in a given revision. If `revision` is omitted, the page is reverted to the change request's base revision. Without `block`, the whole page is reverted — added pages are removed, deleted pages are restored, and modified pages have their document and properties (title, description, slug, tags, cover, icon and other page settings) reset; the page keeps its position. With `block`, only the listed block-level changes in the page's document are reverted (each block is removed if it was added, restored if it was deleted, or reset if it was modified or moved); other blocks and the page's properties/metadata are left untouched.
22894
23374
  required:
22895
23375
  - operation
22896
23376
  - page
@@ -25592,7 +26072,7 @@ components:
25592
26072
  - editAdaptiveSchema
25593
26073
  publicChangeRequestPreviews:
25594
26074
  type: boolean
25595
- description: Whether visitors can preview change requests and historical revisions on the published site. Previews inside GitBook are not affected.
26075
+ description: Whether visitors can preview change requests and historical revisions on the published site. Disabled for new sites. Existing sites keep their configured value. Previews inside GitBook are not affected.
25596
26076
  published:
25597
26077
  type: boolean
25598
26078
  description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
@@ -27319,6 +27799,207 @@ components:
27319
27799
  items:
27320
27800
  type: string
27321
27801
  description: A user to remove. It can either be a user ID or an email.
27802
+ IdPConnectionLabel:
27803
+ type: string
27804
+ description: Name of the identity provider connection, shown to organization admins.
27805
+ minLength: 1
27806
+ maxLength: 100
27807
+ IdPConnectionProvider:
27808
+ type: string
27809
+ description: Identity provider behind the connection.
27810
+ enum:
27811
+ - okta
27812
+ - entra
27813
+ - generic
27814
+ IdPConnectionStatus:
27815
+ type: string
27816
+ description: |
27817
+ Status of the connection.
27818
+ - `pending`: GitBook hasn't seen the identity provider use the connection yet.
27819
+ - `ready`: A member signed in with SAML through the connection, or the identity provider sent an authenticated SCIM request.
27820
+ enum:
27821
+ - pending
27822
+ - ready
27823
+ SAMLProviderDefaultRole:
27824
+ description: |
27825
+ Role given to people on their first sign-in through the provider. null adds them as guests, "default" uses the organization's default role, and "domain" uses the role of the verified email domain they signed in with.
27826
+ oneOf:
27827
+ - $ref: '#/components/schemas/MemberRole'
27828
+ - type: 'null'
27829
+ - type: string
27830
+ enum:
27831
+ - default
27832
+ - domain
27833
+ SAMLProviderEntityID:
27834
+ type: string
27835
+ maxLength: 1024
27836
+ SAMLProviderCertificate:
27837
+ type: string
27838
+ maxLength: 10000
27839
+ SAMLProviderDomainStatus:
27840
+ type: string
27841
+ description: |
27842
+ State of a SAML provider's email domain in the organization.
27843
+ - `verified`: People with an email on this domain can sign in through the provider.
27844
+ - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
27845
+ - `removed`: The organization no longer has this domain.
27846
+ enum:
27847
+ - verified
27848
+ - pending
27849
+ - error
27850
+ - legacy
27851
+ - removed
27852
+ SAMLProviderDomain:
27853
+ type: object
27854
+ description: An email domain of a SAML provider, with its verification state in the organization.
27855
+ properties:
27856
+ domain:
27857
+ type: string
27858
+ status:
27859
+ $ref: '#/components/schemas/SAMLProviderDomainStatus'
27860
+ required:
27861
+ - domain
27862
+ - status
27863
+ OrganizationIdPConnection:
27864
+ type: object
27865
+ description: |
27866
+ A connection to an identity provider, which signs organization members in with SAML and provisions them with SCIM.
27867
+ properties:
27868
+ object:
27869
+ type: string
27870
+ description: The object type, which is always "idp-connection"
27871
+ enum:
27872
+ - idp-connection
27873
+ id:
27874
+ type: string
27875
+ description: Unique identifier of the connection
27876
+ label:
27877
+ $ref: '#/components/schemas/IdPConnectionLabel'
27878
+ provider:
27879
+ $ref: '#/components/schemas/IdPConnectionProvider'
27880
+ status:
27881
+ $ref: '#/components/schemas/IdPConnectionStatus'
27882
+ defaultRole:
27883
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
27884
+ defaultTeam:
27885
+ $ref: '#/components/schemas/OrganizationTeam'
27886
+ defaultTeamFromDomain:
27887
+ type: boolean
27888
+ description: |
27889
+ Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`.
27890
+ saml:
27891
+ type: object
27892
+ description: SAML sign-in through the connection.
27893
+ properties:
27894
+ ssoURL:
27895
+ description: The identity provider's single sign-on URL. Absent until it is set.
27896
+ $ref: '#/components/schemas/URL'
27897
+ entityID:
27898
+ description: Entity ID of the identity provider. Absent until it is set.
27899
+ $ref: '#/components/schemas/SAMLProviderEntityID'
27900
+ certificate:
27901
+ description: X.509 certificate of the identity provider. Absent until it is set.
27902
+ $ref: '#/components/schemas/SAMLProviderCertificate'
27903
+ domains:
27904
+ type: array
27905
+ description: |
27906
+ Email domains the connection signs people in for. Absent on connections created before domains existed, which accept any email.
27907
+ items:
27908
+ $ref: '#/components/schemas/SAMLProviderDomain'
27909
+ service:
27910
+ type: object
27911
+ description: Service provider values to configure in the identity provider.
27912
+ properties:
27913
+ acsURL:
27914
+ type: string
27915
+ description: Assertion Consumer Service (ACS) URL
27916
+ format: uri
27917
+ startURL:
27918
+ type: string
27919
+ description: Start URL for the identity provider
27920
+ format: uri
27921
+ entityID:
27922
+ $ref: '#/components/schemas/SAMLProviderEntityID'
27923
+ required:
27924
+ - acsURL
27925
+ - startURL
27926
+ - entityID
27927
+ lastUsedAt:
27928
+ description: Date of the last successful sign-in through the connection
27929
+ $ref: '#/components/schemas/Timestamp'
27930
+ required:
27931
+ - service
27932
+ scim:
27933
+ type: object
27934
+ description: |
27935
+ SCIM provisioning through the connection. Absent on connections created before SCIM, until their SCIM token is created.
27936
+ properties:
27937
+ baseURL:
27938
+ description: SCIM base URL to configure in the identity provider
27939
+ $ref: '#/components/schemas/URL'
27940
+ tokenHint:
27941
+ type: string
27942
+ description: Last characters of the current token, to identify it
27943
+ tokenCreatedAt:
27944
+ description: Date the current token was created
27945
+ $ref: '#/components/schemas/Timestamp'
27946
+ lastUsedAt:
27947
+ description: Date of the last request authenticated with the token
27948
+ $ref: '#/components/schemas/Timestamp'
27949
+ required:
27950
+ - baseURL
27951
+ - tokenHint
27952
+ - tokenCreatedAt
27953
+ createdAt:
27954
+ description: Date of creation
27955
+ $ref: '#/components/schemas/Timestamp'
27956
+ updatedAt:
27957
+ description: Date of the last update
27958
+ $ref: '#/components/schemas/Timestamp'
27959
+ urls:
27960
+ type: object
27961
+ description: URLs associated with the object
27962
+ properties:
27963
+ location:
27964
+ description: URL of the connection in the API
27965
+ $ref: '#/components/schemas/URL'
27966
+ required:
27967
+ - location
27968
+ required:
27969
+ - object
27970
+ - id
27971
+ - label
27972
+ - provider
27973
+ - status
27974
+ - defaultRole
27975
+ - defaultTeamFromDomain
27976
+ - saml
27977
+ - createdAt
27978
+ - updatedAt
27979
+ - urls
27980
+ SAMLProviderDomains:
27981
+ type: array
27982
+ description: |
27983
+ Email domains the provider signs people in for. Each one must be an email domain of the organization. Only emails on a verified domain in this list can sign in through the provider.
27984
+ maxItems: 50
27985
+ uniqueItems: true
27986
+ items:
27987
+ type: string
27988
+ minLength: 1
27989
+ maxLength: 255
27990
+ OrganizationIdPConnectionWithToken:
27991
+ description: |
27992
+ An identity provider connection, with the SCIM token the request created. The token can't be retrieved again.
27993
+ type: object
27994
+ properties:
27995
+ connection:
27996
+ $ref: '#/components/schemas/OrganizationIdPConnection'
27997
+ token:
27998
+ type: string
27999
+ description: SCIM bearer token to configure in the identity provider.
28000
+ required:
28001
+ - connection
28002
+ - token
27322
28003
  Email:
27323
28004
  type: string
27324
28005
  format: email
@@ -28473,22 +29154,6 @@ components:
28473
29154
  type: string
28474
29155
  minLength: 1
28475
29156
  maxLength: 30
28476
- SAMLProviderEntityID:
28477
- type: string
28478
- maxLength: 1024
28479
- SAMLProviderCertificate:
28480
- type: string
28481
- maxLength: 10000
28482
- SAMLProviderDefaultRole:
28483
- description: |
28484
- Role given to people on their first sign-in through the provider. null adds them as guests, "default" uses the organization's default role, and "domain" uses the role of the verified email domain they signed in with.
28485
- oneOf:
28486
- - $ref: '#/components/schemas/MemberRole'
28487
- - type: 'null'
28488
- - type: string
28489
- enum:
28490
- - default
28491
- - domain
28492
29157
  SAMLProviderStatus:
28493
29158
  type: string
28494
29159
  description: |
@@ -28498,30 +29163,6 @@ components:
28498
29163
  enum:
28499
29164
  - active
28500
29165
  - pending
28501
- SAMLProviderDomainStatus:
28502
- type: string
28503
- description: |
28504
- State of a SAML provider's email domain in the organization.
28505
- - `verified`: People with an email on this domain can sign in through the provider.
28506
- - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
28507
- - `removed`: The organization no longer has this domain.
28508
- enum:
28509
- - verified
28510
- - pending
28511
- - error
28512
- - legacy
28513
- - removed
28514
- SAMLProviderDomain:
28515
- type: object
28516
- description: An email domain of a SAML provider, with its verification state in the organization.
28517
- properties:
28518
- domain:
28519
- type: string
28520
- status:
28521
- $ref: '#/components/schemas/SAMLProviderDomainStatus'
28522
- required:
28523
- - domain
28524
- - status
28525
29166
  OrganizationSAMLProvider:
28526
29167
  type: object
28527
29168
  properties:
@@ -28599,16 +29240,6 @@ components:
28599
29240
  - status
28600
29241
  - service
28601
29242
  - urls
28602
- SAMLProviderDomains:
28603
- type: array
28604
- description: |
28605
- Email domains the provider signs people in for. Each one must be an email domain of the organization. Only emails on a verified domain in this list can sign in through the provider.
28606
- maxItems: 50
28607
- uniqueItems: true
28608
- items:
28609
- type: string
28610
- minLength: 1
28611
- maxLength: 255
28612
29243
  OrganizationDomainStatus:
28613
29244
  type: string
28614
29245
  description: |
@@ -28696,13 +29327,6 @@ components:
28696
29327
  description: Name of the SCIM connection, shown to organization admins.
28697
29328
  minLength: 1
28698
29329
  maxLength: 100
28699
- SCIMConnectionProvider:
28700
- type: string
28701
- description: Identity provider that provisions members through the SCIM connection.
28702
- enum:
28703
- - okta
28704
- - entra
28705
- - generic
28706
29330
  OrganizationSCIMConnection:
28707
29331
  type: object
28708
29332
  description: A SCIM connection through which an identity provider provisions organization members.
@@ -28718,7 +29342,7 @@ components:
28718
29342
  label:
28719
29343
  $ref: '#/components/schemas/SCIMConnectionLabel'
28720
29344
  provider:
28721
- $ref: '#/components/schemas/SCIMConnectionProvider'
29345
+ $ref: '#/components/schemas/IdPConnectionProvider'
28722
29346
  baseURL:
28723
29347
  description: SCIM base URL to configure in the identity provider
28724
29348
  $ref: '#/components/schemas/URL'
@@ -37162,16 +37786,6 @@ components:
37162
37786
  - type
37163
37787
  - response
37164
37788
  - clientExtensionResults
37165
- PasskeySignInOptions:
37166
- type: object
37167
- description: WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser.
37168
- additionalProperties: true
37169
- properties:
37170
- challenge:
37171
- type: string
37172
- description: Single-use challenge the passkey must sign.
37173
- required:
37174
- - challenge
37175
37789
  UnsplashImage:
37176
37790
  type: object
37177
37791
  required:
@@ -37711,69 +38325,106 @@ components:
37711
38325
  - redirect
37712
38326
  discriminator:
37713
38327
  propertyName: target
37714
- PublishedSiteContent:
38328
+ PublishedSiteContentLive:
37715
38329
  type: object
37716
- title: Site Content
38330
+ title: Live content
38331
+ description: Site content at the live revision of its spaces.
38332
+ properties: {}
38333
+ PublishedSiteContentAtRevision:
38334
+ type: object
38335
+ title: Content at a revision
38336
+ description: Site content previewed at a revision of its space.
37717
38337
  properties:
37718
- site:
37719
- type: string
37720
- description: ID of the site matching.
37721
- siteSection:
37722
- type: string
37723
- description: ID of the site-section matching.
37724
- siteSpace:
37725
- type: string
37726
- description: ID of the site-space matching.
37727
- space:
37728
- type: string
37729
- description: ID of the space matching.
37730
- changeRequest:
37731
- type: string
37732
- description: Identifier of the change request being previewed in this URL.
37733
38338
  revision:
37734
38339
  type: string
37735
38340
  description: Identifier of the revision being previewed in this URL.
37736
- pathname:
37737
- type: string
37738
- description: Path of the content relative to the input URL being resolved
37739
- basePath:
37740
- type: string
37741
- description: Prefix of the path in the input URL being resolved
37742
- siteBasePath:
37743
- type: string
37744
- description: Prefix of the site path in the input URL being resolved
37745
- apiToken:
37746
- type: string
37747
- description: Short-lived API token to fetch content related to the space in the context of the URL.
37748
- organization:
37749
- type: string
37750
- description: ID of the organization.
37751
- shareKey:
37752
- type: string
37753
- description: Share link key of the site in case the site was published with share-links.
37754
- complete:
37755
- type: boolean
37756
- description: Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments.
37757
- contextId:
38341
+ required:
38342
+ - revision
38343
+ PublishedSiteContentInChangeRequest:
38344
+ type: object
38345
+ title: Content in a change request
38346
+ description: Site content previewed in a change request of its space.
38347
+ properties:
38348
+ changeRequest:
37758
38349
  type: string
37759
- description: Context returned only for a authenticated access session to track changes in the visitor session context that affect content rendering (used for cache invalidation).
37760
- canonicalUrl:
38350
+ description: Identifier of the change request being previewed in this URL.
38351
+ required:
38352
+ - changeRequest
38353
+ PublishedSiteContentAtSiteRevision:
38354
+ type: object
38355
+ title: Content at a site revision
38356
+ description: 'Site content previewed at a site revision: each space is read at the revision the site revision pins, and live when it pins none.'
38357
+ properties:
38358
+ siteRevision:
37761
38359
  type: string
37762
- description: The canonical URL of the resolution.
37763
- preview:
37764
- type: boolean
37765
- description: Whether the URL is a preview URL
38360
+ description: Identifier of the site revision being previewed in this URL.
37766
38361
  required:
37767
- - site
37768
- - siteSpace
37769
- - space
37770
- - pathname
37771
- - basePath
37772
- - siteBasePath
37773
- - apiToken
37774
- - organization
37775
- - complete
37776
- - canonicalUrl
38362
+ - siteRevision
38363
+ PublishedSiteContent:
38364
+ type: object
38365
+ title: Site Content
38366
+ description: 'Content a site URL resolves to: live, or previewed at a space revision, a change request or a site revision named in the URL. At most one of `revision`, `changeRequest` and `siteRevision` is returned.'
38367
+ allOf:
38368
+ - type: object
38369
+ properties:
38370
+ site:
38371
+ type: string
38372
+ description: ID of the site matching.
38373
+ siteSection:
38374
+ type: string
38375
+ description: ID of the site-section matching.
38376
+ siteSpace:
38377
+ type: string
38378
+ description: ID of the site-space matching.
38379
+ space:
38380
+ type: string
38381
+ description: ID of the space matching.
38382
+ pathname:
38383
+ type: string
38384
+ description: Path of the content relative to the input URL being resolved
38385
+ basePath:
38386
+ type: string
38387
+ description: Prefix of the path in the input URL being resolved
38388
+ siteBasePath:
38389
+ type: string
38390
+ description: Prefix of the site path in the input URL being resolved
38391
+ apiToken:
38392
+ type: string
38393
+ description: Short-lived API token to fetch content related to the space in the context of the URL.
38394
+ organization:
38395
+ type: string
38396
+ description: ID of the organization.
38397
+ shareKey:
38398
+ type: string
38399
+ description: Share link key of the site in case the site was published with share-links.
38400
+ complete:
38401
+ type: boolean
38402
+ description: Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments.
38403
+ contextId:
38404
+ type: string
38405
+ description: Context returned only for a authenticated access session to track changes in the visitor session context that affect content rendering (used for cache invalidation).
38406
+ canonicalUrl:
38407
+ type: string
38408
+ description: The canonical URL of the resolution.
38409
+ preview:
38410
+ type: boolean
38411
+ description: Whether the URL is a preview URL
38412
+ required:
38413
+ - site
38414
+ - siteSpace
38415
+ - space
38416
+ - pathname
38417
+ - basePath
38418
+ - siteBasePath
38419
+ - apiToken
38420
+ - organization
38421
+ - complete
38422
+ - canonicalUrl
38423
+ - oneOf:
38424
+ - $ref: '#/components/schemas/PublishedSiteContentLive'
38425
+ - $ref: '#/components/schemas/PublishedSiteContentAtRevision'
38426
+ - $ref: '#/components/schemas/PublishedSiteContentInChangeRequest'
38427
+ - $ref: '#/components/schemas/PublishedSiteContentAtSiteRevision'
37777
38428
  PublishedSiteContentLookup:
37778
38429
  oneOf:
37779
38430
  - $ref: '#/components/schemas/PublishedContentRedirect'
@@ -40314,6 +40965,19 @@ components:
40314
40965
  required:
40315
40966
  - channel
40316
40967
  - organization
40968
+ APIChannelOrganizationIdPConnections:
40969
+ type: object
40970
+ description: Subscription channel for changes in the identity provider connections of an organization.
40971
+ properties:
40972
+ channel:
40973
+ type: string
40974
+ enum:
40975
+ - organization-idp-connections
40976
+ organization:
40977
+ type: string
40978
+ required:
40979
+ - channel
40980
+ - organization
40317
40981
  APIChannelOrganizationCustomFonts:
40318
40982
  type: object
40319
40983
  description: Subscription channel for changes in custom fonts in an organization.
@@ -40885,6 +41549,7 @@ components:
40885
41549
  - $ref: '#/components/schemas/APIChannelOrganizationTranslationsGlossary'
40886
41550
  - $ref: '#/components/schemas/APIChannelOrganizationSCIMConnections'
40887
41551
  - $ref: '#/components/schemas/APIChannelOrganizationDomains'
41552
+ - $ref: '#/components/schemas/APIChannelOrganizationIdPConnections'
40888
41553
  - $ref: '#/components/schemas/APIChannelOrganizationCustomFonts'
40889
41554
  - $ref: '#/components/schemas/APIChannelOrganizationAgentInstructions'
40890
41555
  - $ref: '#/components/schemas/APIChannelOrganizationChangeRequests'