@gitbook/api 0.213.0 → 0.215.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
@@ -1824,6 +1824,80 @@ paths:
1824
1824
  required:
1825
1825
  - revision
1826
1826
  - result
1827
+ /spaces/{spaceId}/change-requests/{changeRequestId}/revert:
1828
+ get:
1829
+ operationId: getChangeRequestRevert
1830
+ summary: Check whether a merged change request can be reverted
1831
+ description: Checks whether a revert draft can be created for a merged change request without creating one. Requires permission to edit the space and returns whether the merge can be reverted along with the first blocker when it cannot.
1832
+ x-gitbook-mcp: true
1833
+ tags:
1834
+ - change-requests
1835
+ security:
1836
+ - user: []
1837
+ - oauth:
1838
+ - space:read
1839
+ parameters:
1840
+ - $ref: '#/components/parameters/spaceId'
1841
+ - $ref: '#/components/parameters/changeRequestId'
1842
+ responses:
1843
+ '200':
1844
+ description: Whether the change request can be reverted
1845
+ content:
1846
+ application/json:
1847
+ schema:
1848
+ type: object
1849
+ properties:
1850
+ revertable:
1851
+ type: boolean
1852
+ description: Whether a revert draft can be created for this change request.
1853
+ reason:
1854
+ type: string
1855
+ description: Reason the change request cannot be reverted, when revertable is false.
1856
+ required:
1857
+ - revertable
1858
+ '403':
1859
+ $ref: '#/components/responses/ForbiddenError'
1860
+ '404':
1861
+ $ref: '#/components/responses/NotFoundError'
1862
+ post:
1863
+ operationId: revertChangeRequest
1864
+ summary: Create a change request that undoes a merge
1865
+ description: Creates a draft that restores all changed page bodies from before a merge. The draft starts from current content and follows the space's ordinary review and merge rules. This operation may be unavailable for some spaces. It requires permission to edit the space. It returns a conflict when a complete undo is impossible. For example, the merge may have changed more than 100 pages or made changes beyond page bodies. An affected page or its visibility may have changed since the merge, or the earlier content may be unavailable. Restored pages resolve references against current content. Repeating the operation returns the same revert change request in any status.
1866
+ x-gitbook-mcp:
1867
+ idempotent: true
1868
+ tags:
1869
+ - change-requests
1870
+ security:
1871
+ - user: []
1872
+ - oauth:
1873
+ - space:write
1874
+ parameters:
1875
+ - $ref: '#/components/parameters/spaceId'
1876
+ - $ref: '#/components/parameters/changeRequestId'
1877
+ responses:
1878
+ '200':
1879
+ description: The existing revert change request
1880
+ content:
1881
+ application/json:
1882
+ schema:
1883
+ $ref: '#/components/schemas/ChangeRequest'
1884
+ '201':
1885
+ description: The new revert change request
1886
+ headers:
1887
+ Location:
1888
+ description: API URL for the new revert change request
1889
+ schema:
1890
+ type: string
1891
+ content:
1892
+ application/json:
1893
+ schema:
1894
+ $ref: '#/components/schemas/ChangeRequest'
1895
+ '403':
1896
+ $ref: '#/components/responses/ForbiddenError'
1897
+ '404':
1898
+ $ref: '#/components/responses/NotFoundError'
1899
+ '409':
1900
+ $ref: '#/components/responses/ConflictError'
1827
1901
  /spaces/{spaceId}/change-requests/{changeRequestId}/update:
1828
1902
  post:
1829
1903
  operationId: updateChangeRequest
@@ -5533,6 +5607,9 @@ paths:
5533
5607
  application/json:
5534
5608
  schema:
5535
5609
  $ref: '#/components/schemas/OrganizationMember'
5610
+ '412':
5611
+ description: The requested role or access change is blocked by a membership restriction.
5612
+ $ref: '#/components/responses/PreconditionFailedError'
5536
5613
  requestBody:
5537
5614
  required: true
5538
5615
  content:
@@ -5544,11 +5621,11 @@ paths:
5544
5621
  $ref: '#/components/schemas/MemberRoleOrGuest'
5545
5622
  disabled:
5546
5623
  type: boolean
5547
- description: Disable or re-enable the member. Only members disabled by an admin can be re-enabled.
5624
+ description: Disable or re-enable the member. Directory-managed access is changed through the identity provider. Only members disabled by an admin can be re-enabled through this operation.
5548
5625
  delete:
5549
5626
  operationId: removeMemberFromOrganizationById
5550
5627
  summary: Remove an organization member or request an organization admin to do it
5551
- description: Users cannot remove their own membership. Ask another organization admin to remove it.
5628
+ description: Users cannot remove their own membership. Ask another organization admin to remove it. Remove directory-managed members through the identity provider.
5552
5629
  tags:
5553
5630
  - organization-members
5554
5631
  security:
@@ -5565,6 +5642,9 @@ paths:
5565
5642
  description: Member did not exist in the organization.
5566
5643
  '205':
5567
5644
  description: The member was deleted from the organization.
5645
+ '412':
5646
+ description: The membership is directory-managed or cannot be removed.
5647
+ $ref: '#/components/responses/PreconditionFailedError'
5568
5648
  /orgs/{organizationId}/ping:
5569
5649
  post:
5570
5650
  operationId: updateOrganizationMemberLastSeenAt
@@ -5981,7 +6061,7 @@ paths:
5981
6061
  operationId: createOrganizationIdPConnection
5982
6062
  summary: Create an identity provider connection
5983
6063
  description: |
5984
- Creates a connection with its SAML service provider URLs and a SCIM token. The token is only returned in this response.
6064
+ Creates a connection with its SAML service provider URLs. SAML and SCIM are set up afterwards, once the connection has a verified email domain: SAML by updating the connection with the identity provider's settings, SCIM by creating its token.
5985
6065
  tags:
5986
6066
  - sso
5987
6067
  security:
@@ -6022,7 +6102,7 @@ paths:
6022
6102
  content:
6023
6103
  application/json:
6024
6104
  schema:
6025
- $ref: '#/components/schemas/OrganizationIdPConnectionWithToken'
6105
+ $ref: '#/components/schemas/OrganizationIdPConnection'
6026
6106
  '400':
6027
6107
  $ref: '#/components/responses/BadRequestError'
6028
6108
  '404':
@@ -6050,6 +6130,8 @@ paths:
6050
6130
  patch:
6051
6131
  operationId: updateOrganizationIdPConnection
6052
6132
  summary: Update an identity provider connection
6133
+ description: |
6134
+ Updates a connection. Setting any of `defaultTeam`, `defaultTeamFromDomain` and `defaultTeamFromSCIM` replaces the default team, and at most one of them can be set. Email domains, when set, must include a verified one, and so must the connection's domains when the request sets SAML settings.
6053
6135
  tags:
6054
6136
  - sso
6055
6137
  security:
@@ -6077,6 +6159,10 @@ paths:
6077
6159
  - type: 'null'
6078
6160
  defaultTeamFromDomain:
6079
6161
  type: boolean
6162
+ defaultTeamFromSCIM:
6163
+ type: boolean
6164
+ description: |
6165
+ Let the identity provider decide each member's teams through SCIM. Only accepted while SCIM is set up.
6080
6166
  ssoURL:
6081
6167
  $ref: '#/components/schemas/URL'
6082
6168
  entityID:
@@ -6108,6 +6194,12 @@ paths:
6108
6194
  parameters:
6109
6195
  - $ref: '#/components/parameters/organizationId'
6110
6196
  - $ref: '#/components/parameters/idpConnectionId'
6197
+ - name: members
6198
+ in: query
6199
+ description: What happens to the members linked to the connection through SCIM.
6200
+ schema:
6201
+ $ref: '#/components/schemas/IdPConnectionMembersAction'
6202
+ default: keep
6111
6203
  responses:
6112
6204
  '204':
6113
6205
  description: Connection not found
@@ -6118,9 +6210,9 @@ paths:
6118
6210
  /orgs/{organizationId}/idp-connections/{idpConnectionId}/token:
6119
6211
  post:
6120
6212
  operationId: rotateOrganizationIdPConnectionToken
6121
- summary: Replace the SCIM token of an identity provider connection
6213
+ summary: Rotate the SCIM token of an identity provider connection
6122
6214
  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.
6215
+ Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response. Setting up SCIM, when the connection has no token yet, needs a verified email domain on the connection.
6124
6216
  tags:
6125
6217
  - sso
6126
6218
  security:
@@ -6130,11 +6222,13 @@ paths:
6130
6222
  - $ref: '#/components/parameters/idpConnectionId'
6131
6223
  responses:
6132
6224
  '200':
6133
- description: Token replaced
6225
+ description: Token rotated
6134
6226
  content:
6135
6227
  application/json:
6136
6228
  schema:
6137
6229
  $ref: '#/components/schemas/OrganizationIdPConnectionWithToken'
6230
+ '400':
6231
+ $ref: '#/components/responses/BadRequestError'
6138
6232
  '404':
6139
6233
  $ref: '#/components/responses/NotFoundError'
6140
6234
  /orgs/{organizationId}/invites:
@@ -7155,163 +7249,6 @@ paths:
7155
7249
  $ref: '#/components/responses/NotFoundError'
7156
7250
  '409':
7157
7251
  $ref: '#/components/responses/ConflictError'
7158
- /orgs/{organizationId}/scim/connections:
7159
- get:
7160
- operationId: listOrganizationSCIMConnections
7161
- summary: List SCIM connections
7162
- tags:
7163
- - scim
7164
- security:
7165
- - user-internal: []
7166
- parameters:
7167
- - $ref: '#/components/parameters/organizationId'
7168
- responses:
7169
- '200':
7170
- description: OK
7171
- content:
7172
- application/json:
7173
- schema:
7174
- allOf:
7175
- - $ref: '#/components/schemas/List'
7176
- - type: object
7177
- required:
7178
- - items
7179
- properties:
7180
- items:
7181
- type: array
7182
- items:
7183
- $ref: '#/components/schemas/OrganizationSCIMConnection'
7184
- '404':
7185
- $ref: '#/components/responses/NotFoundError'
7186
- post:
7187
- operationId: createOrganizationSCIMConnection
7188
- summary: Create a SCIM connection
7189
- description: |
7190
- Creates a SCIM connection and its token. The token is only returned in this response.
7191
- tags:
7192
- - scim
7193
- security:
7194
- - user-internal: []
7195
- parameters:
7196
- - $ref: '#/components/parameters/organizationId'
7197
- requestBody:
7198
- required: true
7199
- content:
7200
- application/json:
7201
- schema:
7202
- type: object
7203
- properties:
7204
- label:
7205
- $ref: '#/components/schemas/SCIMConnectionLabel'
7206
- provider:
7207
- $ref: '#/components/schemas/IdPConnectionProvider'
7208
- required:
7209
- - label
7210
- - provider
7211
- responses:
7212
- '201':
7213
- description: SCIM connection created
7214
- content:
7215
- application/json:
7216
- schema:
7217
- $ref: '#/components/schemas/OrganizationSCIMConnectionWithToken'
7218
- '400':
7219
- $ref: '#/components/responses/BadRequestError'
7220
- '404':
7221
- $ref: '#/components/responses/NotFoundError'
7222
- /orgs/{organizationId}/scim/connections/{scimConnectionId}:
7223
- get:
7224
- operationId: getOrganizationSCIMConnection
7225
- summary: Get a SCIM connection by its ID
7226
- tags:
7227
- - scim
7228
- security:
7229
- - user-internal: []
7230
- parameters:
7231
- - $ref: '#/components/parameters/organizationId'
7232
- - $ref: '#/components/parameters/scimConnectionId'
7233
- responses:
7234
- '200':
7235
- description: OK
7236
- content:
7237
- application/json:
7238
- schema:
7239
- $ref: '#/components/schemas/OrganizationSCIMConnection'
7240
- '404':
7241
- $ref: '#/components/responses/NotFoundError'
7242
- patch:
7243
- operationId: updateOrganizationSCIMConnection
7244
- summary: Update a SCIM connection
7245
- tags:
7246
- - scim
7247
- security:
7248
- - user-internal: []
7249
- parameters:
7250
- - $ref: '#/components/parameters/organizationId'
7251
- - $ref: '#/components/parameters/scimConnectionId'
7252
- requestBody:
7253
- required: true
7254
- content:
7255
- application/json:
7256
- schema:
7257
- type: object
7258
- properties:
7259
- label:
7260
- $ref: '#/components/schemas/SCIMConnectionLabel'
7261
- required:
7262
- - label
7263
- responses:
7264
- '200':
7265
- description: SCIM connection updated
7266
- content:
7267
- application/json:
7268
- schema:
7269
- $ref: '#/components/schemas/OrganizationSCIMConnection'
7270
- '400':
7271
- $ref: '#/components/responses/BadRequestError'
7272
- '404':
7273
- $ref: '#/components/responses/NotFoundError'
7274
- delete:
7275
- operationId: deleteOrganizationSCIMConnection
7276
- summary: Delete a SCIM connection
7277
- description: |
7278
- Deletes a SCIM connection. Its token stops working immediately.
7279
- tags:
7280
- - scim
7281
- security:
7282
- - user-internal: []
7283
- parameters:
7284
- - $ref: '#/components/parameters/organizationId'
7285
- - $ref: '#/components/parameters/scimConnectionId'
7286
- responses:
7287
- '204':
7288
- description: SCIM connection not found
7289
- '205':
7290
- description: SCIM connection deleted
7291
- '404':
7292
- $ref: '#/components/responses/NotFoundError'
7293
- /orgs/{organizationId}/scim/connections/{scimConnectionId}/token:
7294
- post:
7295
- operationId: rotateOrganizationSCIMConnectionToken
7296
- summary: Rotate the token of a SCIM connection
7297
- description: |
7298
- Replaces the token of a SCIM connection. The previous token stops working immediately, and the new token is only returned in this response.
7299
- tags:
7300
- - scim
7301
- security:
7302
- - user-internal: []
7303
- parameters:
7304
- - $ref: '#/components/parameters/organizationId'
7305
- - $ref: '#/components/parameters/scimConnectionId'
7306
- responses:
7307
- '200':
7308
- description: Token rotated
7309
- content:
7310
- application/json:
7311
- schema:
7312
- $ref: '#/components/schemas/OrganizationSCIMConnectionWithToken'
7313
- '404':
7314
- $ref: '#/components/responses/NotFoundError'
7315
7252
  /orgs/{organizationId}/sso:
7316
7253
  get:
7317
7254
  operationId: listSSOProviderLoginsInOrganization
@@ -10356,6 +10293,8 @@ paths:
10356
10293
  query:
10357
10294
  type: string
10358
10295
  maxLength: 512
10296
+ searchId:
10297
+ $ref: '#/components/schemas/SiteSearchId'
10359
10298
  - oneOf:
10360
10299
  - type: object
10361
10300
  required:
@@ -12547,11 +12486,42 @@ paths:
12547
12486
  description: Site space customization removed
12548
12487
  '400':
12549
12488
  $ref: '#/components/responses/BadRequestError'
12489
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/changes:
12490
+ get:
12491
+ operationId: getSiteRevisionChanges
12492
+ summary: Get the changes of a site revision
12493
+ description: Returns the changes between two site revisions.
12494
+ tags:
12495
+ - sites
12496
+ security:
12497
+ - user: []
12498
+ - oauth:
12499
+ - site:read
12500
+ - space:read
12501
+ parameters:
12502
+ - $ref: '#/components/parameters/organizationId'
12503
+ - $ref: '#/components/parameters/siteId'
12504
+ - $ref: '#/components/parameters/siteRevisionId'
12505
+ - name: base
12506
+ in: query
12507
+ description: Site revision to compare against. Defaults to the live site.
12508
+ schema:
12509
+ type: string
12510
+ responses:
12511
+ '200':
12512
+ description: OK
12513
+ content:
12514
+ application/json:
12515
+ schema:
12516
+ $ref: '#/components/schemas/SiteRevisionChanges'
12517
+ '404':
12518
+ description: No matching site revision found
12519
+ $ref: '#/components/responses/NotFoundError'
12550
12520
  /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}:
12551
12521
  get:
12552
12522
  operationId: getRevisionInSiteRevision
12553
12523
  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.
12524
+ description: Returns the revision of a space at a site revision.
12555
12525
  tags:
12556
12526
  - sites
12557
12527
  security:
@@ -12577,7 +12547,7 @@ paths:
12577
12547
  get:
12578
12548
  operationId: getPageInSiteRevision
12579
12549
  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.
12550
+ description: Returns a page of a space at a site revision.
12581
12551
  tags:
12582
12552
  - sites
12583
12553
  security:
@@ -12608,7 +12578,7 @@ paths:
12608
12578
  get:
12609
12579
  operationId: listPageMetaLinksInSiteRevision
12610
12580
  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.
12581
+ description: Returns the meta links of a page at a site revision.
12612
12582
  tags:
12613
12583
  - sites
12614
12584
  security:
@@ -12633,7 +12603,7 @@ paths:
12633
12603
  get:
12634
12604
  operationId: getPageByPathInSiteRevision
12635
12605
  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.
12606
+ description: Returns a page of a space by its path at a site revision.
12637
12607
  tags:
12638
12608
  - sites
12639
12609
  security:
@@ -12667,7 +12637,7 @@ paths:
12667
12637
  get:
12668
12638
  operationId: getReusableContentDocumentInSiteRevision
12669
12639
  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.
12640
+ description: Returns the document of a reusable content at a site revision.
12671
12641
  tags:
12672
12642
  - sites
12673
12643
  security:
@@ -12694,7 +12664,7 @@ paths:
12694
12664
  get:
12695
12665
  operationId: getPageDocumentInSiteRevision
12696
12666
  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.
12667
+ description: Returns the document of a page at a site revision.
12698
12668
  tags:
12699
12669
  - sites
12700
12670
  security:
@@ -12721,7 +12691,7 @@ paths:
12721
12691
  get:
12722
12692
  operationId: getOpenAPISpecContentInSiteRevision
12723
12693
  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.
12694
+ description: Returns the content of an OpenAPI spec at a site revision.
12725
12695
  tags:
12726
12696
  - sites
12727
12697
  security:
@@ -13507,7 +13477,7 @@ paths:
13507
13477
  put:
13508
13478
  operationId: bulkUpsertSiteRedirects
13509
13479
  summary: Create, update, delete, or publish site redirect rules in bulk
13510
- description: Processes up to 500 redirect operations in a single request. Each redirect in the array is processed independently and the response includes per-item status. Prefer this over individual create/update calls when managing large sets of redirects.
13480
+ description: Processes up to 2,000 redirect operations in a single request. Each redirect in the array is processed independently and the response includes per-item status. Prefer this over individual create/update calls when managing large sets of redirects.
13511
13481
  x-gitbook-mcp: true
13512
13482
  tags:
13513
13483
  - site-redirects
@@ -13528,7 +13498,7 @@ paths:
13528
13498
  redirects:
13529
13499
  type: array
13530
13500
  minItems: 1
13531
- maxItems: 500
13501
+ maxItems: 2000
13532
13502
  items:
13533
13503
  oneOf:
13534
13504
  - type: object
@@ -13703,7 +13673,7 @@ paths:
13703
13673
  - $ref: '#/components/parameters/listLimit'
13704
13674
  - name: search
13705
13675
  in: query
13706
- description: Search for a redirect by path
13676
+ description: Search for a redirect by path. Values starting with "/" match by prefix; other values match any substring.
13707
13677
  schema:
13708
13678
  type: string
13709
13679
  - name: draft
@@ -15491,13 +15461,6 @@ components:
15491
15461
  description: Email domain
15492
15462
  schema:
15493
15463
  type: string
15494
- scimConnectionId:
15495
- name: scimConnectionId
15496
- in: path
15497
- required: true
15498
- description: The unique id of the SCIM connection
15499
- schema:
15500
- type: string
15501
15464
  openapiSpecSlug:
15502
15465
  name: specSlug
15503
15466
  in: path
@@ -17853,6 +17816,7 @@ components:
17853
17816
  - heading-1
17854
17817
  - heading-2
17855
17818
  - heading-3
17819
+ - heading-4
17856
17820
  key:
17857
17821
  type: string
17858
17822
  nodes:
@@ -20194,6 +20158,13 @@ components:
20194
20158
  type: string
20195
20159
  description:
20196
20160
  type: string
20161
+ keywords:
20162
+ type: array
20163
+ description: Authored terms and phrases that can help readers find this page.
20164
+ maxItems: 20
20165
+ items:
20166
+ type: string
20167
+ maxLength: 100
20197
20168
  tagTitle:
20198
20169
  description: Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself.
20199
20170
  type: string
@@ -21048,6 +21019,18 @@ components:
21048
21019
  - edits
21049
21020
  required:
21050
21021
  - type
21022
+ ChangeRequestReference:
21023
+ type: object
21024
+ required:
21025
+ - id
21026
+ - number
21027
+ properties:
21028
+ id:
21029
+ type: string
21030
+ description: ID of the change request
21031
+ number:
21032
+ type: number
21033
+ description: Number of the change request within its space
21051
21034
  ChangeRequestStatus:
21052
21035
  type: string
21053
21036
  enum:
@@ -21220,6 +21203,12 @@ components:
21220
21203
  number:
21221
21204
  type: number
21222
21205
  description: Incremental identifier of the change request
21206
+ reverts:
21207
+ $ref: '#/components/schemas/ChangeRequestReference'
21208
+ description: The merged change request this change request reverts.
21209
+ revertedBy:
21210
+ $ref: '#/components/schemas/ChangeRequestReference'
21211
+ description: The change request created to revert this merge.
21223
21212
  status:
21224
21213
  $ref: '#/components/schemas/ChangeRequestStatus'
21225
21214
  subject:
@@ -23257,6 +23246,13 @@ components:
23257
23246
  description: Optional custom title used for the page in the table of contents and mentions instead of its page title. Set to an empty string to remove it.
23258
23247
  type: string
23259
23248
  maxLength: 100
23249
+ keywords:
23250
+ type: array
23251
+ description: Search terms and phrases for a document page. Replaces the entire list. Use an empty array to clear it. Omit the field to keep the existing list.
23252
+ maxItems: 20
23253
+ items:
23254
+ type: string
23255
+ maxLength: 100
23260
23256
  tagTitle:
23261
23257
  description: Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself. Set to an empty string to remove it.
23262
23258
  type: string
@@ -23989,6 +23985,17 @@ components:
23989
23985
  $ref: '#/components/schemas/ChangeAttributeString'
23990
23986
  description:
23991
23987
  $ref: '#/components/schemas/ChangeAttributeString'
23988
+ keywords:
23989
+ type: object
23990
+ properties:
23991
+ before:
23992
+ type: array
23993
+ items:
23994
+ type: string
23995
+ after:
23996
+ type: array
23997
+ items:
23998
+ type: string
23992
23999
  slug:
23993
24000
  $ref: '#/components/schemas/ChangeAttributeString'
23994
24001
  document:
@@ -24420,6 +24427,12 @@ components:
24420
24427
  $ref: '#/components/schemas/User'
24421
24428
  disabled:
24422
24429
  $ref: '#/components/schemas/MemberDisabled'
24430
+ directoryManagedBy:
24431
+ type: string
24432
+ description: Label of the identity provider connection that manages this membership.
24433
+ directoryDisplayName:
24434
+ type: string
24435
+ description: Display name supplied by the identity provider for this organization membership. The GitBook account name is available in user.displayName.
24423
24436
  joinedAt:
24424
24437
  description: Date at which the user joined the organization.
24425
24438
  $ref: '#/components/schemas/Timestamp'
@@ -27887,6 +27900,10 @@ components:
27887
27900
  type: boolean
27888
27901
  description: |
27889
27902
  Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`.
27903
+ defaultTeamFromSCIM:
27904
+ type: boolean
27905
+ description: |
27906
+ Whether the identity provider decides each member's teams through SCIM, instead of `defaultTeam`.
27890
27907
  saml:
27891
27908
  type: object
27892
27909
  description: SAML sign-in through the connection.
@@ -27973,6 +27990,7 @@ components:
27973
27990
  - status
27974
27991
  - defaultRole
27975
27992
  - defaultTeamFromDomain
27993
+ - defaultTeamFromSCIM
27976
27994
  - saml
27977
27995
  - createdAt
27978
27996
  - updatedAt
@@ -27987,6 +28005,18 @@ components:
27987
28005
  type: string
27988
28006
  minLength: 1
27989
28007
  maxLength: 255
28008
+ IdPConnectionMembersAction:
28009
+ type: string
28010
+ description: |
28011
+ What happens to the members that SCIM provisioned or linked through the connection.
28012
+ - `keep`: They keep their access. Those the identity provider deactivated become disabled by an admin.
28013
+ - `disable`: They are disabled by an admin, and keep their role.
28014
+ - `remove`: They are removed from the organization.
28015
+ The admin who deletes the connection is never disabled or removed.
28016
+ enum:
28017
+ - keep
28018
+ - disable
28019
+ - remove
27990
28020
  OrganizationIdPConnectionWithToken:
27991
28021
  description: |
27992
28022
  An identity provider connection, with the SCIM token the request created. The token can't be retrieved again.
@@ -29322,77 +29352,6 @@ components:
29322
29352
  - defaultRole
29323
29353
  - createdAt
29324
29354
  - urls
29325
- SCIMConnectionLabel:
29326
- type: string
29327
- description: Name of the SCIM connection, shown to organization admins.
29328
- minLength: 1
29329
- maxLength: 100
29330
- OrganizationSCIMConnection:
29331
- type: object
29332
- description: A SCIM connection through which an identity provider provisions organization members.
29333
- properties:
29334
- object:
29335
- type: string
29336
- description: The object type, which is always "scim-connection"
29337
- enum:
29338
- - scim-connection
29339
- id:
29340
- type: string
29341
- description: Unique identifier of the SCIM connection
29342
- label:
29343
- $ref: '#/components/schemas/SCIMConnectionLabel'
29344
- provider:
29345
- $ref: '#/components/schemas/IdPConnectionProvider'
29346
- baseURL:
29347
- description: SCIM base URL to configure in the identity provider
29348
- $ref: '#/components/schemas/URL'
29349
- tokenHint:
29350
- type: string
29351
- description: Last characters of the current token, to identify it
29352
- tokenCreatedAt:
29353
- description: Date the current token was created
29354
- $ref: '#/components/schemas/Timestamp'
29355
- lastUsedAt:
29356
- description: Date of the last request authenticated with the token
29357
- $ref: '#/components/schemas/Timestamp'
29358
- createdAt:
29359
- description: Date of creation
29360
- $ref: '#/components/schemas/Timestamp'
29361
- updatedAt:
29362
- description: Date of the last update
29363
- $ref: '#/components/schemas/Timestamp'
29364
- urls:
29365
- type: object
29366
- description: URLs associated with the object
29367
- properties:
29368
- location:
29369
- description: URL of the SCIM connection in the API
29370
- $ref: '#/components/schemas/URL'
29371
- required:
29372
- - location
29373
- required:
29374
- - object
29375
- - id
29376
- - label
29377
- - provider
29378
- - baseURL
29379
- - tokenHint
29380
- - tokenCreatedAt
29381
- - createdAt
29382
- - updatedAt
29383
- - urls
29384
- OrganizationSCIMConnectionWithToken:
29385
- description: A SCIM connection with its token, returned only when the token is created.
29386
- type: object
29387
- properties:
29388
- connection:
29389
- $ref: '#/components/schemas/OrganizationSCIMConnection'
29390
- token:
29391
- type: string
29392
- description: Bearer token to configure in the identity provider. It can't be retrieved again.
29393
- required:
29394
- - connection
29395
- - token
29396
29355
  OrganizationSSOProviderLogin:
29397
29356
  type: object
29398
29357
  properties:
@@ -31242,6 +31201,12 @@ components:
31242
31201
  SiteCustomizationSettingsInput:
31243
31202
  allOf:
31244
31203
  - $ref: '#/components/schemas/SiteCustomizationSettingsBase'
31204
+ SiteSearchId:
31205
+ type: string
31206
+ description: Client-generated 128-bit identifier for a search request, encoded as hexadecimal.
31207
+ minLength: 32
31208
+ maxLength: 32
31209
+ pattern: ^[0-9A-Fa-f]{32}$
31245
31210
  SiteSearchScope:
31246
31211
  oneOf:
31247
31212
  - type: object
@@ -34709,6 +34674,349 @@ components:
34709
34674
  description: Indicates whether the site customization settings have been overridden.
34710
34675
  required:
34711
34676
  - hasOverrides
34677
+ SiteRevisionNodeContentSpace:
34678
+ type: object
34679
+ title: Site revision node content from a space
34680
+ description: A space, at a revision.
34681
+ properties:
34682
+ type:
34683
+ type: string
34684
+ enum:
34685
+ - space
34686
+ space:
34687
+ type: string
34688
+ description: ID of the space.
34689
+ revision:
34690
+ type: string
34691
+ description: ID of the revision.
34692
+ required:
34693
+ - type
34694
+ - space
34695
+ - revision
34696
+ SiteRevisionNodeContent:
34697
+ title: Site revision node content
34698
+ description: Content a space node shows.
34699
+ oneOf:
34700
+ - $ref: '#/components/schemas/SiteRevisionNodeContentSpace'
34701
+ discriminator:
34702
+ propertyName: type
34703
+ mapping:
34704
+ space: '#/components/schemas/SiteRevisionNodeContentSpace'
34705
+ SiteRevisionChangePageCreated:
34706
+ type: object
34707
+ properties:
34708
+ type:
34709
+ type: string
34710
+ enum:
34711
+ - page_created
34712
+ page:
34713
+ type: string
34714
+ description: ID of the page.
34715
+ required:
34716
+ - type
34717
+ - page
34718
+ SiteRevisionChangePageEdited:
34719
+ type: object
34720
+ properties:
34721
+ type:
34722
+ type: string
34723
+ enum:
34724
+ - page_edited
34725
+ page:
34726
+ type: string
34727
+ description: ID of the page.
34728
+ attributes:
34729
+ description: Attributes of the page that changed.
34730
+ anyOf:
34731
+ - type: object
34732
+ description: Attributes every kind of page has.
34733
+ minProperties: 1
34734
+ properties:
34735
+ title:
34736
+ $ref: '#/components/schemas/ChangeAttributeString'
34737
+ emoji:
34738
+ $ref: '#/components/schemas/ChangeAttributeString'
34739
+ - oneOf:
34740
+ - $ref: '#/components/schemas/RevisionPageDocumentChangeAttributes'
34741
+ - $ref: '#/components/schemas/RevisionPageGroupChangeAttributes'
34742
+ - $ref: '#/components/schemas/RevisionPageLinkChangeAttributes'
34743
+ required:
34744
+ - type
34745
+ - page
34746
+ - attributes
34747
+ SiteRevisionChangePageDeleted:
34748
+ type: object
34749
+ properties:
34750
+ type:
34751
+ type: string
34752
+ enum:
34753
+ - page_deleted
34754
+ page:
34755
+ type: string
34756
+ description: ID of the page.
34757
+ required:
34758
+ - type
34759
+ - page
34760
+ SiteRevisionChangePageMoved:
34761
+ type: object
34762
+ properties:
34763
+ type:
34764
+ type: string
34765
+ enum:
34766
+ - page_moved
34767
+ page:
34768
+ type: string
34769
+ description: ID of the page.
34770
+ parent:
34771
+ type: object
34772
+ description: ID of the page it is in. Null at the top of the node.
34773
+ properties:
34774
+ before:
34775
+ oneOf:
34776
+ - type: string
34777
+ - type: 'null'
34778
+ after:
34779
+ oneOf:
34780
+ - type: string
34781
+ - type: 'null'
34782
+ required:
34783
+ - before
34784
+ - after
34785
+ required:
34786
+ - type
34787
+ - page
34788
+ - parent
34789
+ SiteRevisionContentChange:
34790
+ title: Site revision content change
34791
+ description: A change of a page or of the library of a space.
34792
+ oneOf:
34793
+ - $ref: '#/components/schemas/SiteRevisionChangePageCreated'
34794
+ - $ref: '#/components/schemas/SiteRevisionChangePageEdited'
34795
+ - $ref: '#/components/schemas/SiteRevisionChangePageDeleted'
34796
+ - $ref: '#/components/schemas/SiteRevisionChangePageMoved'
34797
+ - $ref: '#/components/schemas/RevisionSemanticChangeFileCreated'
34798
+ - $ref: '#/components/schemas/RevisionSemanticChangeFileEdited'
34799
+ - $ref: '#/components/schemas/RevisionSemanticChangeFileDeleted'
34800
+ - $ref: '#/components/schemas/RevisionSemanticChangeVariablesEdited'
34801
+ - $ref: '#/components/schemas/RevisionSemanticChangeReusableContentCreated'
34802
+ - $ref: '#/components/schemas/RevisionSemanticChangeReusableContentDeleted'
34803
+ - $ref: '#/components/schemas/RevisionSemanticChangeReusableContentEdited'
34804
+ - $ref: '#/components/schemas/RevisionSemanticChangeTagCreated'
34805
+ - $ref: '#/components/schemas/RevisionSemanticChangeTagDeleted'
34806
+ - $ref: '#/components/schemas/RevisionSemanticChangeTagEdited'
34807
+ SiteRevisionChangeSpaceContentEdited:
34808
+ type: object
34809
+ description: The content of the space a node shows changed. `before` and `after` are always the same space; a node that shows another space is a different change. A space shown by several nodes has this change, with the same page changes, under each of them. Pages the changes refer to are listed under the node in `includes.pages`.
34810
+ properties:
34811
+ type:
34812
+ type: string
34813
+ enum:
34814
+ - space_content_edited
34815
+ node:
34816
+ type: string
34817
+ description: Key of the space node.
34818
+ content:
34819
+ type: object
34820
+ properties:
34821
+ before:
34822
+ description: Content in the base. Absent when the base has none, in which case every page is listed as created.
34823
+ $ref: '#/components/schemas/SiteRevisionNodeContent'
34824
+ after:
34825
+ description: Content in the site revision.
34826
+ $ref: '#/components/schemas/SiteRevisionNodeContent'
34827
+ required:
34828
+ - after
34829
+ changes:
34830
+ type: array
34831
+ description: Changes of the content's pages and library.
34832
+ items:
34833
+ $ref: '#/components/schemas/SiteRevisionContentChange'
34834
+ required:
34835
+ - type
34836
+ - node
34837
+ - content
34838
+ - changes
34839
+ SiteRevisionStructureChange:
34840
+ title: Site revision structure change
34841
+ description: A change to a node of the site's structure.
34842
+ oneOf:
34843
+ - $ref: '#/components/schemas/SiteRevisionChangeSpaceContentEdited'
34844
+ ChangedOpenAPISpec:
34845
+ type: object
34846
+ description: An OpenAPI spec of the organization.
34847
+ properties:
34848
+ id:
34849
+ type: string
34850
+ description: ID of the spec.
34851
+ slug:
34852
+ type: string
34853
+ description: Slug of the spec.
34854
+ required:
34855
+ - id
34856
+ - slug
34857
+ SiteRevisionChangeOpenAPISpecEdited:
34858
+ type: object
34859
+ description: An OpenAPI spec is at another version.
34860
+ properties:
34861
+ type:
34862
+ type: string
34863
+ enum:
34864
+ - openapi_spec_edited
34865
+ spec:
34866
+ $ref: '#/components/schemas/ChangedOpenAPISpec'
34867
+ version:
34868
+ type: object
34869
+ description: Version of the spec.
34870
+ properties:
34871
+ before:
34872
+ type: string
34873
+ description: Version in the base. Absent when the base has none.
34874
+ after:
34875
+ type: string
34876
+ description: Version in the site revision.
34877
+ required:
34878
+ - after
34879
+ required:
34880
+ - type
34881
+ - spec
34882
+ - version
34883
+ SiteRevisionOpenAPIChange:
34884
+ title: Site revision OpenAPI change
34885
+ description: A change to an OpenAPI spec.
34886
+ oneOf:
34887
+ - $ref: '#/components/schemas/SiteRevisionChangeOpenAPISpecEdited'
34888
+ SiteRevisionNodeType:
34889
+ type: string
34890
+ description: Type of a node of the site's structure.
34891
+ enum:
34892
+ - section-group
34893
+ - section
34894
+ - space
34895
+ SiteRevisionNode:
34896
+ type: object
34897
+ description: 'A node of the site''s structure: a section group, a section or a space. A space node is a place where the site shows content; the same content can be shown by several of them. Fields hold the node as it is in the site revision, whether or not they changed; a change to one is listed as its own change.'
34898
+ properties:
34899
+ key:
34900
+ type: string
34901
+ description: Key of the node, unique across the nodes of the site. It is the node's key in the site's Git Sync configuration, or the key exporting the site would store for it when it has none yet.
34902
+ type:
34903
+ $ref: '#/components/schemas/SiteRevisionNodeType'
34904
+ parent:
34905
+ description: Key of the node it is in. Null for a node at the top of the site.
34906
+ oneOf:
34907
+ - type: string
34908
+ - type: 'null'
34909
+ title:
34910
+ type: string
34911
+ path:
34912
+ type: string
34913
+ description: Path of a section or space in the site's URLs.
34914
+ icon:
34915
+ description: Icon of a section or section group, if it has one.
34916
+ $ref: '#/components/schemas/Icon'
34917
+ emoji:
34918
+ description: Emoji of the space a space node shows. It'll match the emoji shown in the GitBook app.
34919
+ $ref: '#/components/schemas/Emoji'
34920
+ iconURL:
34921
+ description: URL of the icon of the space a space node shows, if defined.
34922
+ $ref: '#/components/schemas/URL'
34923
+ draft:
34924
+ type: boolean
34925
+ description: Whether the node is a draft, not shown on the live site.
34926
+ hidden:
34927
+ type: boolean
34928
+ description: 'Whether a space node is hidden from the site''s navigation. Only on space nodes: a section is hidden when all of its space nodes are.'
34929
+ content:
34930
+ description: Content a space node shows.
34931
+ $ref: '#/components/schemas/SiteRevisionNodeContent'
34932
+ required:
34933
+ - key
34934
+ - type
34935
+ - parent
34936
+ - title
34937
+ - draft
34938
+ SiteRevisionPage:
34939
+ type: object
34940
+ description: A page of the content a space node shows. Fields hold the page as it is in the site revision, or in the base for a page deleted since.
34941
+ properties:
34942
+ node:
34943
+ type: string
34944
+ description: Key of the space node showing the page.
34945
+ id:
34946
+ type: string
34947
+ description: ID of the page, unique within the node.
34948
+ type:
34949
+ $ref: '#/components/schemas/RevisionPageType'
34950
+ title:
34951
+ type: string
34952
+ path:
34953
+ type: string
34954
+ description: Path of the page within the node. Absent for a link.
34955
+ parent:
34956
+ description: ID of the page it is in. Null for a page at the top of the node.
34957
+ oneOf:
34958
+ - type: string
34959
+ - type: 'null'
34960
+ required:
34961
+ - node
34962
+ - id
34963
+ - type
34964
+ - title
34965
+ - parent
34966
+ SiteRevisionChanges:
34967
+ title: Site revision changes
34968
+ description: Changes between a site revision and its base. A space or spec the site revision doesn't pin is read live, so it is never a change. Changes refer to nodes and pages, which are listed once in `includes`.
34969
+ type: object
34970
+ properties:
34971
+ head:
34972
+ type: string
34973
+ description: Site revision whose changes are listed.
34974
+ base:
34975
+ type: string
34976
+ description: Site revision compared against. Absent when compared against the live site.
34977
+ structure:
34978
+ type: object
34979
+ description: Changes to the site's structure and the content it shows, in site order.
34980
+ properties:
34981
+ changes:
34982
+ type: array
34983
+ description: Changes the caller can view.
34984
+ items:
34985
+ $ref: '#/components/schemas/SiteRevisionStructureChange'
34986
+ required:
34987
+ - changes
34988
+ openapi:
34989
+ type: object
34990
+ description: Changes to OpenAPI specs. Empty when the caller can't read the organization's specs.
34991
+ properties:
34992
+ changes:
34993
+ type: array
34994
+ items:
34995
+ $ref: '#/components/schemas/SiteRevisionOpenAPIChange'
34996
+ required:
34997
+ - changes
34998
+ includes:
34999
+ type: object
35000
+ description: What the changes refer to, with their ancestors, each listed once. Every entry comes after its parent, so a tree can be built in one pass.
35001
+ properties:
35002
+ structure:
35003
+ type: array
35004
+ description: Nodes of the site's structure the changes refer to, and their ancestors, as a flat list in site order. Nodes are linked to their parent by `parent`.
35005
+ items:
35006
+ $ref: '#/components/schemas/SiteRevisionNode'
35007
+ pages:
35008
+ type: array
35009
+ description: Pages the changes refer to, and their ancestors, under the space node showing them. Pages come in the order of the node's content; a page deleted since the base comes after those of the site revision.
35010
+ items:
35011
+ $ref: '#/components/schemas/SiteRevisionPage'
35012
+ required:
35013
+ - structure
35014
+ - pages
35015
+ required:
35016
+ - head
35017
+ - structure
35018
+ - openapi
35019
+ - includes
34712
35020
  SiteSectionGroupPointer:
34713
35021
  type: object
34714
35022
  properties:
@@ -35562,6 +35870,11 @@ components:
35562
35870
  required:
35563
35871
  - type
35564
35872
  - query
35873
+ SiteInsightsSearchResultNumber:
35874
+ type: integer
35875
+ minimum: 1
35876
+ maximum: 20
35877
+ description: Published site search displays up to ten page results and ten supplemental records per request.
35565
35878
  SiteInsightsEventSearchOpenResult:
35566
35879
  allOf:
35567
35880
  - $ref: '#/components/schemas/SiteInsightsEventBase'
@@ -35574,6 +35887,16 @@ components:
35574
35887
  query:
35575
35888
  type: string
35576
35889
  description: Query of the search.
35890
+ position:
35891
+ description: One-based position of the opened result in the displayed list.
35892
+ allOf:
35893
+ - $ref: '#/components/schemas/SiteInsightsSearchResultNumber'
35894
+ resultsCount:
35895
+ description: Number of results in the displayed list.
35896
+ allOf:
35897
+ - $ref: '#/components/schemas/SiteInsightsSearchResultNumber'
35898
+ searchId:
35899
+ $ref: '#/components/schemas/SiteSearchId'
35577
35900
  result:
35578
35901
  description: Target of the opened search result.
35579
35902
  oneOf:
@@ -36224,6 +36547,15 @@ components:
36224
36547
  type: string
36225
36548
  enum:
36226
36549
  - eventSearchQuery
36550
+ - type: object
36551
+ description: Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed.
36552
+ required:
36553
+ - column
36554
+ properties:
36555
+ column:
36556
+ type: string
36557
+ enum:
36558
+ - eventNormalizedSearchQuery
36227
36559
  - type: object
36228
36560
  required:
36229
36561
  - column
@@ -36232,6 +36564,15 @@ components:
36232
36564
  type: string
36233
36565
  enum:
36234
36566
  - eventSearchResultRecordId
36567
+ - type: object
36568
+ description: Clicked search result position bucket. Null when rank was not recorded.
36569
+ required:
36570
+ - column
36571
+ properties:
36572
+ column:
36573
+ type: string
36574
+ enum:
36575
+ - eventSearchResultPositionBucket
36235
36576
  - type: object
36236
36577
  required:
36237
36578
  - column
@@ -36988,6 +37329,20 @@ components:
36988
37329
  type: array
36989
37330
  items:
36990
37331
  type: string
37332
+ - type: object
37333
+ description: Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed.
37334
+ required:
37335
+ - column
37336
+ - values
37337
+ properties:
37338
+ column:
37339
+ type: string
37340
+ enum:
37341
+ - eventNormalizedSearchQuery
37342
+ values:
37343
+ type: array
37344
+ items:
37345
+ type: string
36991
37346
  - type: object
36992
37347
  required:
36993
37348
  - column
@@ -37003,6 +37358,26 @@ components:
37003
37358
  type:
37004
37359
  - string
37005
37360
  - 'null'
37361
+ - type: object
37362
+ description: Clicked search result position bucket. Null when rank was not recorded.
37363
+ required:
37364
+ - column
37365
+ - values
37366
+ properties:
37367
+ column:
37368
+ type: string
37369
+ enum:
37370
+ - eventSearchResultPositionBucket
37371
+ values:
37372
+ type: array
37373
+ items:
37374
+ oneOf:
37375
+ - type: 'null'
37376
+ - type: string
37377
+ enum:
37378
+ - first
37379
+ - secondToFourth
37380
+ - fifthOrLater
37006
37381
  - type: object
37007
37382
  description: |
37008
37383
  Ratings submitted on a page, counted once per rating a reader submitted rather than once
@@ -37309,9 +37684,46 @@ components:
37309
37684
  default: 1000
37310
37685
  minimum: 1
37311
37686
  maximum: 1000
37687
+ includeSearchRankTrackingStart:
37688
+ type: boolean
37689
+ description: Return the site's earliest recorded ranked browser search open by a human. The date is independent of the query's range and filters.
37690
+ includeLowSearchResultPages:
37691
+ type: boolean
37692
+ description: Count only search opens at position 5 or later, and return page details for each query. Group by eventNormalizedSearchQuery alone. The page size is capped at 50.
37312
37693
  page:
37313
37694
  type: string
37314
37695
  description: The `next.page` value of a previous result, to fetch the rows that follow it. Send the rest of the query unchanged. Relative ranges stay fixed to the time of the first page, but events recorded while paging can still move rows between pages.
37696
+ SiteInsightsLowSearchResultPage:
37697
+ type: object
37698
+ required:
37699
+ - query
37700
+ - page
37701
+ - medianPosition
37702
+ - otherPagesCount
37703
+ properties:
37704
+ query:
37705
+ type: string
37706
+ description: Normalized search query.
37707
+ page:
37708
+ type: object
37709
+ description: The page with the most opens at position 5 or later for this query.
37710
+ required:
37711
+ - space
37712
+ - page
37713
+ properties:
37714
+ space:
37715
+ type: string
37716
+ description: ID of the space that contains the opened page.
37717
+ page:
37718
+ type: string
37719
+ description: ID of the opened page.
37720
+ medianPosition:
37721
+ type: number
37722
+ description: Median position across opens of this page at position 5 or later.
37723
+ otherPagesCount:
37724
+ type: integer
37725
+ minimum: 0
37726
+ description: Number of other distinct pages opened at position 5 or later for this query.
37315
37727
  SiteInsightsQueryEventsAggregationResult:
37316
37728
  allOf:
37317
37729
  - $ref: '#/components/schemas/List'
@@ -37319,6 +37731,17 @@ components:
37319
37731
  required:
37320
37732
  - columns
37321
37733
  properties:
37734
+ searchRankTrackingStart:
37735
+ type:
37736
+ - string
37737
+ - 'null'
37738
+ format: date-time
37739
+ description: Returned when requested. Null if the site has no recorded ranked search opens.
37740
+ lowSearchResultPages:
37741
+ type: array
37742
+ description: Returned when requested. Queries with no page opens are omitted.
37743
+ items:
37744
+ $ref: '#/components/schemas/SiteInsightsLowSearchResultPage'
37322
37745
  columns:
37323
37746
  type: array
37324
37747
  items:
@@ -37898,6 +38321,7 @@ components:
37898
38321
  enum:
37899
38322
  - cpu
37900
38323
  - allocations
38324
+ - heap-snapshot
37901
38325
  description: The profiler selected for this session. Earlier sessions without this field use CPU profiling.
37902
38326
  releaseVersion:
37903
38327
  type: string
@@ -39569,6 +39993,28 @@ components:
39569
39993
  languages at the same time.
39570
39994
  items:
39571
39995
  $ref: '#/components/schemas/GitSyncSiteStructureNode'
39996
+ GitSyncSiteOpenAPISpecPath:
39997
+ type: string
39998
+ description: |
39999
+ Path of a YAML or JSON file, relative to the directory holding
40000
+ `gitbook-docs.yaml`. The path must stay inside that directory.
40001
+ minLength: 1
40002
+ maxLength: 1024
40003
+ pattern: \.(ya?ml|json)$
40004
+ GitSyncSiteOpenAPISpec:
40005
+ description: |
40006
+ An OpenAPI specification imported from the repository. Either the path of
40007
+ the specification file, or an object with the file as `source`.
40008
+ oneOf:
40009
+ - $ref: '#/components/schemas/GitSyncSiteOpenAPISpecPath'
40010
+ - type: object
40011
+ additionalProperties: false
40012
+ properties:
40013
+ source:
40014
+ $ref: '#/components/schemas/GitSyncSiteOpenAPISpecPath'
40015
+ description: Path of the specification file.
40016
+ required:
40017
+ - source
39572
40018
  GitSyncSiteConfig:
39573
40019
  type: object
39574
40020
  description: |
@@ -39604,8 +40050,47 @@ components:
39604
40050
  required:
39605
40051
  - title
39606
40052
  - structure
40053
+ openapi:
40054
+ type: object
40055
+ description: |
40056
+ OpenAPI specifications imported from the repository, keyed by the slug
40057
+ of the organization's specification they update. Each value is either
40058
+ the path of the specification file, or an object with the file as
40059
+ `source`:
40060
+
40061
+ ```yaml
40062
+ openapi:
40063
+ petstore: ./petstore.yaml
40064
+ billing:
40065
+ source: ./billing.yaml
40066
+ ```
40067
+
40068
+ This is in early rollout: it may not take effect for your organization
40069
+ yet, in which case listed specifications are not imported.
40070
+
40071
+ Each commit that changes a listed file updates the specification, which
40072
+ is created private if the organization has none with that slug. Changes
40073
+ made in GitBook are not written back to the repository: the next commit
40074
+ to the file replaces them. Removing an entry leaves the specification in
40075
+ GitBook.
40076
+ maxProperties: 50
40077
+ propertyNames:
40078
+ $ref: '#/components/schemas/OpenAPISpecSlug'
40079
+ additionalProperties:
40080
+ $ref: '#/components/schemas/GitSyncSiteOpenAPISpec'
39607
40081
  required:
39608
40082
  - site
40083
+ SCIMConnectionLabel:
40084
+ type: string
40085
+ description: Name of the SCIM connection, shown to organization admins.
40086
+ minLength: 1
40087
+ maxLength: 100
40088
+ SiteRevisionChangeType:
40089
+ type: string
40090
+ description: The type of change between two site revisions.
40091
+ enum:
40092
+ - space_content_edited
40093
+ - openapi_spec_edited
39609
40094
  IntegrationEnvironmentSpaceInstallation:
39610
40095
  allOf:
39611
40096
  - $ref: '#/components/schemas/IntegrationContentInstallationBase'
@@ -40939,19 +41424,6 @@ components:
40939
41424
  required:
40940
41425
  - channel
40941
41426
  - organization
40942
- APIChannelOrganizationSCIMConnections:
40943
- type: object
40944
- description: Subscription channel for changes in the SCIM connections of an organization.
40945
- properties:
40946
- channel:
40947
- type: string
40948
- enum:
40949
- - organization-scim-connections
40950
- organization:
40951
- type: string
40952
- required:
40953
- - channel
40954
- - organization
40955
41427
  APIChannelOrganizationDomains:
40956
41428
  type: object
40957
41429
  description: Subscription channel for changes in the email domains of an organization.
@@ -41547,7 +42019,6 @@ components:
41547
42019
  - $ref: '#/components/schemas/APIChannelOrganizationOpenAPISpecs'
41548
42020
  - $ref: '#/components/schemas/APIChannelOrganizationTranslations'
41549
42021
  - $ref: '#/components/schemas/APIChannelOrganizationTranslationsGlossary'
41550
- - $ref: '#/components/schemas/APIChannelOrganizationSCIMConnections'
41551
42022
  - $ref: '#/components/schemas/APIChannelOrganizationDomains'
41552
42023
  - $ref: '#/components/schemas/APIChannelOrganizationIdPConnections'
41553
42024
  - $ref: '#/components/schemas/APIChannelOrganizationCustomFonts'
@@ -42175,8 +42646,8 @@ components:
42175
42646
  required:
42176
42647
  - code
42177
42648
  - message
42178
- PreconditionFailedError:
42179
- description: PreconditionFailed
42649
+ ForbiddenError:
42650
+ description: Forbidden
42180
42651
  content:
42181
42652
  application/json:
42182
42653
  schema:
@@ -42191,14 +42662,14 @@ components:
42191
42662
  type: integer
42192
42663
  format: int32
42193
42664
  enum:
42194
- - 412
42665
+ - 403
42195
42666
  message:
42196
42667
  type: string
42197
42668
  required:
42198
42669
  - code
42199
42670
  - message
42200
- ForbiddenError:
42201
- description: Forbidden
42671
+ PreconditionFailedError:
42672
+ description: PreconditionFailed
42202
42673
  content:
42203
42674
  application/json:
42204
42675
  schema:
@@ -42213,7 +42684,7 @@ components:
42213
42684
  type: integer
42214
42685
  format: int32
42215
42686
  enum:
42216
- - 403
42687
+ - 412
42217
42688
  message:
42218
42689
  type: string
42219
42690
  required: