@gitbook/api 0.196.0 → 0.197.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +279 -76
- package/dist/constants.d.ts +5 -1
- package/dist/index.cjs +82 -2
- package/dist/index.js +74 -2
- package/package.json +1 -1
- package/spec/openapi.json +1340 -494
- package/spec/openapi.yaml +591 -98
package/spec/openapi.yaml
CHANGED
|
@@ -144,6 +144,16 @@ tags:
|
|
|
144
144
|
{% openapi-schemas spec="gitbook" schemas="SiteSectionGroup" grouped="false" %}
|
|
145
145
|
The SiteSectionGroup object
|
|
146
146
|
{% endopenapi-schemas %}
|
|
147
|
+
- name: site-external-links
|
|
148
|
+
x-page-title: Site external links
|
|
149
|
+
x-page-description: Manage links to external destinations in a site's navigation.
|
|
150
|
+
x-parent: sites
|
|
151
|
+
description: |
|
|
152
|
+
External links add absolute HTTP or HTTPS destinations alongside sections and groups in a site's navigation.
|
|
153
|
+
|
|
154
|
+
{% openapi-schemas spec="gitbook" schemas="SiteExternalLink" grouped="false" %}
|
|
155
|
+
The SiteExternalLink object
|
|
156
|
+
{% endopenapi-schemas %}
|
|
147
157
|
- name: site-redirects
|
|
148
158
|
x-page-title: Site redirects
|
|
149
159
|
x-page-description: Establish redirects for pages that have moved or changed in your docs site.
|
|
@@ -2381,7 +2391,9 @@ paths:
|
|
|
2381
2391
|
operationId: updateChangeRequestContent
|
|
2382
2392
|
summary: Apply a batch of content changes to a change request
|
|
2383
2393
|
description: |-
|
|
2384
|
-
Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.
|
|
2394
|
+
Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, rename, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.
|
|
2395
|
+
**Renaming a page** — `update_page` can change a page's `title` and/or its `slug` (the path segment used to build its URL within its current parent). Both fields are independent: to rename only the title without changing the URL, set `title` and omit `slug`; to change the URL without changing the title, set `slug` and omit `title`.
|
|
2396
|
+
**Moving a page** — `update_page` can also change a page's parent and/or its position among siblings with `into`/`at`. Set `into` to the new parent's page ID, or `null` to move the page to the root of the tree; omit `into` to leave the parent unchanged. Set `at` to place the page at a specific zero-based index among its new siblings; omit it to leave the position unchanged (when the parent isn't changing) or append at the end (when it is). A page cannot be moved under itself or one of its own descendants. `insert_page`'s `into`/`at` remain the way to place a **new** page at creation time.
|
|
2385
2397
|
To put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead.
|
|
2386
2398
|
When page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:
|
|
2387
2399
|
- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).
|
|
@@ -3884,6 +3896,8 @@ paths:
|
|
|
3884
3896
|
get:
|
|
3885
3897
|
operationId: listIntegrations
|
|
3886
3898
|
summary: List all public integrations
|
|
3899
|
+
description: Returns a paginated list of the integrations published in the GitBook marketplace. Use this to discover an integration by name, category, or the blocks and content sources it provides, before installing it on an organization, space or site.
|
|
3900
|
+
x-gitbook-mcp: true
|
|
3887
3901
|
tags:
|
|
3888
3902
|
- integrations
|
|
3889
3903
|
parameters:
|
|
@@ -3917,6 +3931,8 @@ paths:
|
|
|
3917
3931
|
get:
|
|
3918
3932
|
operationId: getIntegrationByName
|
|
3919
3933
|
summary: Get an integration by its name
|
|
3934
|
+
description: Returns a single integration by its unique name, including the configuration it expects, the targets it can be installed on, and the permissions it requests. Private integrations are only readable by the organization that owns them.
|
|
3935
|
+
x-gitbook-mcp: true
|
|
3920
3936
|
tags:
|
|
3921
3937
|
- integrations
|
|
3922
3938
|
parameters:
|
|
@@ -3938,6 +3954,8 @@ paths:
|
|
|
3938
3954
|
- integrations
|
|
3939
3955
|
security:
|
|
3940
3956
|
- user: []
|
|
3957
|
+
- oauth:
|
|
3958
|
+
- integration:publish
|
|
3941
3959
|
parameters:
|
|
3942
3960
|
- $ref: "#/components/parameters/integrationName"
|
|
3943
3961
|
responses:
|
|
@@ -3963,6 +3981,8 @@ paths:
|
|
|
3963
3981
|
- integrations
|
|
3964
3982
|
security:
|
|
3965
3983
|
- user: []
|
|
3984
|
+
- oauth:
|
|
3985
|
+
- integration:delete
|
|
3966
3986
|
parameters:
|
|
3967
3987
|
- $ref: "#/components/parameters/integrationName"
|
|
3968
3988
|
responses:
|
|
@@ -4007,10 +4027,14 @@ paths:
|
|
|
4007
4027
|
post:
|
|
4008
4028
|
operationId: installIntegration
|
|
4009
4029
|
summary: Install an integration
|
|
4030
|
+
description: Installs an integration on an organization, creating the account-level installation that space and site installations hang off. Configure it with the update operation, then enable it on individual spaces or sites.
|
|
4031
|
+
x-gitbook-mcp: true
|
|
4010
4032
|
tags:
|
|
4011
4033
|
- integrations
|
|
4012
4034
|
security:
|
|
4013
4035
|
- user: []
|
|
4036
|
+
- oauth:
|
|
4037
|
+
- integration:installations:write
|
|
4014
4038
|
parameters:
|
|
4015
4039
|
- $ref: "#/components/parameters/integrationName"
|
|
4016
4040
|
requestBody:
|
|
@@ -4171,6 +4195,8 @@ paths:
|
|
|
4171
4195
|
- integrations
|
|
4172
4196
|
security:
|
|
4173
4197
|
- user: []
|
|
4198
|
+
- oauth:
|
|
4199
|
+
- integration:publish
|
|
4174
4200
|
parameters:
|
|
4175
4201
|
- $ref: "#/components/parameters/integrationName"
|
|
4176
4202
|
requestBody:
|
|
@@ -4204,6 +4230,8 @@ paths:
|
|
|
4204
4230
|
- integrations
|
|
4205
4231
|
security:
|
|
4206
4232
|
- user: []
|
|
4233
|
+
- oauth:
|
|
4234
|
+
- integration:publish
|
|
4207
4235
|
parameters:
|
|
4208
4236
|
- $ref: "#/components/parameters/integrationName"
|
|
4209
4237
|
responses:
|
|
@@ -4294,12 +4322,16 @@ paths:
|
|
|
4294
4322
|
get:
|
|
4295
4323
|
operationId: getIntegrationInstallationById
|
|
4296
4324
|
summary: Get an integration installation by its ID
|
|
4325
|
+
description: Returns the organization-level installation of an integration, including its account configuration and how many spaces it manages. The configuration can contain credentials the integration stored for third-party services.
|
|
4326
|
+
x-gitbook-mcp: true
|
|
4297
4327
|
tags:
|
|
4298
4328
|
- integrations
|
|
4299
4329
|
security:
|
|
4300
4330
|
- user: []
|
|
4301
4331
|
- integration: []
|
|
4302
4332
|
- integration-installation: []
|
|
4333
|
+
- oauth:
|
|
4334
|
+
- integration:installations:read
|
|
4303
4335
|
parameters:
|
|
4304
4336
|
- $ref: "#/components/parameters/integrationName"
|
|
4305
4337
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4315,12 +4347,16 @@ paths:
|
|
|
4315
4347
|
patch:
|
|
4316
4348
|
operationId: updateIntegrationInstallation
|
|
4317
4349
|
summary: Update an integration installation
|
|
4350
|
+
description: Updates the account-level configuration of an installation, and which spaces or sites it applies to.
|
|
4351
|
+
x-gitbook-mcp: true
|
|
4318
4352
|
tags:
|
|
4319
4353
|
- integrations
|
|
4320
4354
|
security:
|
|
4321
4355
|
- user: []
|
|
4322
4356
|
- integration: []
|
|
4323
4357
|
- integration-installation: []
|
|
4358
|
+
- oauth:
|
|
4359
|
+
- integration:installations:write
|
|
4324
4360
|
parameters:
|
|
4325
4361
|
- $ref: "#/components/parameters/integrationName"
|
|
4326
4362
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4379,8 +4415,16 @@ paths:
|
|
|
4379
4415
|
get:
|
|
4380
4416
|
operationId: listIntegrationInstallationSpaces
|
|
4381
4417
|
summary: List all space integration installations
|
|
4418
|
+
description: Returns a paginated list of the spaces an installation is enabled on, with the configuration of the integration for each of them. Pass extended to get the full space object instead of its ID.
|
|
4419
|
+
x-gitbook-mcp: true
|
|
4382
4420
|
tags:
|
|
4383
4421
|
- integrations
|
|
4422
|
+
security:
|
|
4423
|
+
- user: []
|
|
4424
|
+
- integration: []
|
|
4425
|
+
- integration-installation: []
|
|
4426
|
+
- oauth:
|
|
4427
|
+
- integration:installations:read
|
|
4384
4428
|
parameters:
|
|
4385
4429
|
- $ref: "#/components/parameters/integrationName"
|
|
4386
4430
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4411,6 +4455,14 @@ paths:
|
|
|
4411
4455
|
post:
|
|
4412
4456
|
operationId: installIntegrationOnSpace
|
|
4413
4457
|
summary: Install an integration on a space
|
|
4458
|
+
description: Enables an existing organization-level installation on one space. The organization must already have the integration installed.
|
|
4459
|
+
x-gitbook-mcp: true
|
|
4460
|
+
security:
|
|
4461
|
+
- user: []
|
|
4462
|
+
- integration: []
|
|
4463
|
+
- integration-installation: []
|
|
4464
|
+
- oauth:
|
|
4465
|
+
- integration:installations:write
|
|
4414
4466
|
parameters:
|
|
4415
4467
|
- $ref: "#/components/parameters/integrationName"
|
|
4416
4468
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4450,8 +4502,16 @@ paths:
|
|
|
4450
4502
|
get:
|
|
4451
4503
|
operationId: getIntegrationSpaceInstallation
|
|
4452
4504
|
summary: Get an integration space installation
|
|
4505
|
+
description: Returns the installation of an integration on one space, including the configuration of the integration for that space.
|
|
4506
|
+
x-gitbook-mcp: true
|
|
4453
4507
|
tags:
|
|
4454
4508
|
- integrations
|
|
4509
|
+
security:
|
|
4510
|
+
- user: []
|
|
4511
|
+
- integration: []
|
|
4512
|
+
- integration-installation: []
|
|
4513
|
+
- oauth:
|
|
4514
|
+
- integration:installations:read
|
|
4455
4515
|
parameters:
|
|
4456
4516
|
- $ref: "#/components/parameters/integrationName"
|
|
4457
4517
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4474,8 +4534,16 @@ paths:
|
|
|
4474
4534
|
patch:
|
|
4475
4535
|
operationId: updateIntegrationSpaceInstallation
|
|
4476
4536
|
summary: Update an integration space installation
|
|
4537
|
+
description: Updates the configuration of an integration for one space.
|
|
4538
|
+
x-gitbook-mcp: true
|
|
4477
4539
|
tags:
|
|
4478
4540
|
- integrations
|
|
4541
|
+
security:
|
|
4542
|
+
- user: []
|
|
4543
|
+
- integration: []
|
|
4544
|
+
- integration-installation: []
|
|
4545
|
+
- oauth:
|
|
4546
|
+
- integration:installations:write
|
|
4479
4547
|
parameters:
|
|
4480
4548
|
- $ref: "#/components/parameters/integrationName"
|
|
4481
4549
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4517,8 +4585,16 @@ paths:
|
|
|
4517
4585
|
get:
|
|
4518
4586
|
operationId: listIntegrationInstallationSites
|
|
4519
4587
|
summary: List all site integration installations
|
|
4588
|
+
description: Returns a paginated list of the sites an installation is enabled on, with the configuration of the integration for each of them. Pass extended to get the full site object instead of its ID.
|
|
4589
|
+
x-gitbook-mcp: true
|
|
4520
4590
|
tags:
|
|
4521
4591
|
- integrations
|
|
4592
|
+
security:
|
|
4593
|
+
- user: []
|
|
4594
|
+
- integration: []
|
|
4595
|
+
- integration-installation: []
|
|
4596
|
+
- oauth:
|
|
4597
|
+
- integration:installations:read
|
|
4522
4598
|
parameters:
|
|
4523
4599
|
- $ref: "#/components/parameters/integrationName"
|
|
4524
4600
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4549,8 +4625,16 @@ paths:
|
|
|
4549
4625
|
post:
|
|
4550
4626
|
operationId: installIntegrationOnSite
|
|
4551
4627
|
summary: Install an integration on a site
|
|
4628
|
+
description: Enables an existing organization-level installation on one site. The organization must already have the integration installed.
|
|
4629
|
+
x-gitbook-mcp: true
|
|
4552
4630
|
tags:
|
|
4553
4631
|
- integrations
|
|
4632
|
+
security:
|
|
4633
|
+
- user: []
|
|
4634
|
+
- integration: []
|
|
4635
|
+
- integration-installation: []
|
|
4636
|
+
- oauth:
|
|
4637
|
+
- integration:installations:write
|
|
4554
4638
|
parameters:
|
|
4555
4639
|
- $ref: "#/components/parameters/integrationName"
|
|
4556
4640
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4590,8 +4674,16 @@ paths:
|
|
|
4590
4674
|
get:
|
|
4591
4675
|
operationId: getIntegrationSiteInstallation
|
|
4592
4676
|
summary: Get an integration site installation
|
|
4677
|
+
description: Returns the installation of an integration on one site, including the configuration of the integration for that site.
|
|
4678
|
+
x-gitbook-mcp: true
|
|
4593
4679
|
tags:
|
|
4594
4680
|
- integrations
|
|
4681
|
+
security:
|
|
4682
|
+
- user: []
|
|
4683
|
+
- integration: []
|
|
4684
|
+
- integration-installation: []
|
|
4685
|
+
- oauth:
|
|
4686
|
+
- integration:installations:read
|
|
4595
4687
|
parameters:
|
|
4596
4688
|
- $ref: "#/components/parameters/integrationName"
|
|
4597
4689
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4614,8 +4706,16 @@ paths:
|
|
|
4614
4706
|
patch:
|
|
4615
4707
|
operationId: updateIntegrationSiteInstallation
|
|
4616
4708
|
summary: Update an integration site installation
|
|
4709
|
+
description: Updates the configuration of an integration for one site.
|
|
4710
|
+
x-gitbook-mcp: true
|
|
4617
4711
|
tags:
|
|
4618
4712
|
- integrations
|
|
4713
|
+
security:
|
|
4714
|
+
- user: []
|
|
4715
|
+
- integration: []
|
|
4716
|
+
- integration-installation: []
|
|
4717
|
+
- oauth:
|
|
4718
|
+
- integration:installations:write
|
|
4619
4719
|
parameters:
|
|
4620
4720
|
- $ref: "#/components/parameters/integrationName"
|
|
4621
4721
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4708,6 +4808,7 @@ paths:
|
|
|
4708
4808
|
schema:
|
|
4709
4809
|
type: string
|
|
4710
4810
|
requestBody:
|
|
4811
|
+
required: true
|
|
4711
4812
|
content:
|
|
4712
4813
|
application/json:
|
|
4713
4814
|
schema:
|
|
@@ -5926,8 +6027,16 @@ paths:
|
|
|
5926
6027
|
get:
|
|
5927
6028
|
operationId: listOrganizationIntegrations
|
|
5928
6029
|
summary: List all public integrations along with private ones trusted by the specific org.
|
|
6030
|
+
description: "Returns a paginated list of the integrations available to the organization: every publicly published integration plus the private ones the organization owns or is trusted with. Prefer this over the public listing when acting inside an organization."
|
|
6031
|
+
x-gitbook-mcp: true
|
|
5929
6032
|
tags:
|
|
5930
6033
|
- integrations
|
|
6034
|
+
security:
|
|
6035
|
+
- user: []
|
|
6036
|
+
- integration: []
|
|
6037
|
+
- integration-installation: []
|
|
6038
|
+
- oauth:
|
|
6039
|
+
- integration:read
|
|
5931
6040
|
parameters:
|
|
5932
6041
|
- $ref: "#/components/parameters/organizationId"
|
|
5933
6042
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5960,10 +6069,14 @@ paths:
|
|
|
5960
6069
|
get:
|
|
5961
6070
|
operationId: getOrganizationIntegrationStatus
|
|
5962
6071
|
summary: Get the status of an integration
|
|
6072
|
+
description: Returns whether an integration is installed for the organization and the status of that installation. Use this for a single integration instead of listing every status.
|
|
6073
|
+
x-gitbook-mcp: true
|
|
5963
6074
|
tags:
|
|
5964
6075
|
- integrations
|
|
5965
6076
|
security:
|
|
5966
6077
|
- user: []
|
|
6078
|
+
- oauth:
|
|
6079
|
+
- integration:read
|
|
5967
6080
|
parameters:
|
|
5968
6081
|
- $ref: "#/components/parameters/organizationId"
|
|
5969
6082
|
- $ref: "#/components/parameters/integrationName"
|
|
@@ -6019,10 +6132,17 @@ paths:
|
|
|
6019
6132
|
get:
|
|
6020
6133
|
operationId: listOrganizationIntegrationsStatus
|
|
6021
6134
|
summary: List all integration statuses
|
|
6022
|
-
description: Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource.
|
|
6135
|
+
description: Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource. The target of each installation says whether it is installed on the organization, a space or a site.
|
|
6136
|
+
x-gitbook-mcp: true
|
|
6023
6137
|
tags:
|
|
6024
6138
|
- integrations
|
|
6025
6139
|
- critical
|
|
6140
|
+
security:
|
|
6141
|
+
- user: []
|
|
6142
|
+
- integration: []
|
|
6143
|
+
- integration-installation: []
|
|
6144
|
+
- oauth:
|
|
6145
|
+
- integration:read
|
|
6026
6146
|
parameters:
|
|
6027
6147
|
- $ref: "#/components/parameters/organizationId"
|
|
6028
6148
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -7860,8 +7980,8 @@ paths:
|
|
|
7860
7980
|
/orgs/{organizationId}/sites/{siteId}/structure/sort:
|
|
7861
7981
|
patch:
|
|
7862
7982
|
operationId: sortSiteStructure
|
|
7863
|
-
summary: Move a site
|
|
7864
|
-
description: Reorders
|
|
7983
|
+
summary: Move a site structure item to a new position
|
|
7984
|
+
description: Reorders a site space, section, section group, or external link relative to any sibling at the same structure level. Sorting changes sibling order only; move an item between the root and a group through that item's update operation first.
|
|
7865
7985
|
x-gitbook-mcp: true
|
|
7866
7986
|
x-gitbook-return-preference: true
|
|
7867
7987
|
tags:
|
|
@@ -7875,13 +7995,14 @@ paths:
|
|
|
7875
7995
|
- $ref: "#/components/parameters/siteId"
|
|
7876
7996
|
- $ref: "#/components/parameters/returnPreference"
|
|
7877
7997
|
requestBody:
|
|
7998
|
+
required: true
|
|
7878
7999
|
content:
|
|
7879
8000
|
application/json:
|
|
7880
8001
|
schema:
|
|
7881
8002
|
type: object
|
|
7882
8003
|
properties:
|
|
7883
8004
|
item:
|
|
7884
|
-
description:
|
|
8005
|
+
description: Pointer to the site space, section, section group, or external link being moved.
|
|
7885
8006
|
$ref: "#/components/schemas/SiteStructureItemPointer"
|
|
7886
8007
|
position:
|
|
7887
8008
|
description: The position to move the item to. When not provided the item is moved to the end of the site structure.
|
|
@@ -8154,7 +8275,7 @@ paths:
|
|
|
8154
8275
|
post:
|
|
8155
8276
|
operationId: addSpaceToSite
|
|
8156
8277
|
summary: Add a space to a site as a content source
|
|
8157
|
-
description:
|
|
8278
|
+
description: Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.
|
|
8158
8279
|
x-gitbook-mcp: true
|
|
8159
8280
|
x-gitbook-return-preference: true
|
|
8160
8281
|
tags:
|
|
@@ -8175,22 +8296,28 @@ paths:
|
|
|
8175
8296
|
type: object
|
|
8176
8297
|
properties:
|
|
8177
8298
|
spaceId:
|
|
8178
|
-
|
|
8179
|
-
|
|
8299
|
+
oneOf:
|
|
8300
|
+
- type: string
|
|
8301
|
+
- type: "null"
|
|
8302
|
+
description: Pass the ID of an existing space or `null` to create a new space.
|
|
8303
|
+
template:
|
|
8304
|
+
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
8305
|
+
description: Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation.
|
|
8180
8306
|
sectionId:
|
|
8181
8307
|
type: string
|
|
8182
8308
|
description: ID of the section to add the space to. If not provided, the space will be added to the default section or at the root level if the site has no sections.
|
|
8183
8309
|
draft:
|
|
8184
8310
|
type: boolean
|
|
8185
8311
|
default: false
|
|
8186
|
-
description: Whether the site space should be created as draft. Defaults to false.
|
|
8312
|
+
description: Whether the site space should be created as draft. Defaults to false. Editors can set this to true to create draft content on a non-empty site. Creating live content and adding the first content require Creator permission.
|
|
8187
8313
|
pageId:
|
|
8188
8314
|
oneOf:
|
|
8189
8315
|
- type: string
|
|
8190
8316
|
- type: "null"
|
|
8191
|
-
description: Custom home page within
|
|
8317
|
+
description: Custom home page within an existing space, rendered at the site space's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error.
|
|
8192
8318
|
title:
|
|
8193
8319
|
$ref: "#/components/schemas/SiteTitle"
|
|
8320
|
+
description: Site-specific title override for the variant. Also used as the space title when `spaceId` is `null` and no template is provided.
|
|
8194
8321
|
required:
|
|
8195
8322
|
- spaceId
|
|
8196
8323
|
responses:
|
|
@@ -8404,7 +8531,7 @@ paths:
|
|
|
8404
8531
|
post:
|
|
8405
8532
|
operationId: addSectionToSite
|
|
8406
8533
|
summary: Add a new navigation section to a site backed by a space
|
|
8407
|
-
description: Creates a new top-level navigation section in the site
|
|
8534
|
+
description: Creates a new top-level navigation section in the site. The section appears as a tab or sidebar entry in the site navigation. Pass an existing space ID to link it as the section's primary content source, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.
|
|
8408
8535
|
x-gitbook-mcp: true
|
|
8409
8536
|
tags:
|
|
8410
8537
|
- site-sections
|
|
@@ -8423,22 +8550,29 @@ paths:
|
|
|
8423
8550
|
type: object
|
|
8424
8551
|
properties:
|
|
8425
8552
|
spaceId:
|
|
8426
|
-
|
|
8427
|
-
|
|
8553
|
+
oneOf:
|
|
8554
|
+
- type: string
|
|
8555
|
+
- type: "null"
|
|
8556
|
+
description: Pass the ID of an existing space or pass `null` to create a new space. The space will be added to the section as a site space variant.
|
|
8557
|
+
template:
|
|
8558
|
+
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
8559
|
+
description: Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation.
|
|
8428
8560
|
title:
|
|
8429
8561
|
oneOf:
|
|
8430
8562
|
- $ref: "#/components/schemas/SiteSectionTitle"
|
|
8431
8563
|
- type: "null"
|
|
8564
|
+
description: Section title. Also used as the space title when `spaceId` is `null` and no template is provided.
|
|
8432
8565
|
icon:
|
|
8433
8566
|
oneOf:
|
|
8434
8567
|
- $ref: "#/components/schemas/Icon"
|
|
8435
8568
|
- type: "null"
|
|
8436
8569
|
draft:
|
|
8437
8570
|
type: boolean
|
|
8438
|
-
|
|
8571
|
+
default: false
|
|
8572
|
+
description: Whether the section should be created in draft mode. Defaults to false. Editors can set this to true to create draft content after sections are enabled. Creating live content requires Creator permission; enabling sections requires Admin permission.
|
|
8439
8573
|
pageId:
|
|
8440
8574
|
type: string
|
|
8441
|
-
description: Custom home page within
|
|
8575
|
+
description: Custom home page within an existing space, rendered at the section's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error.
|
|
8442
8576
|
siteSectionGroupId:
|
|
8443
8577
|
type: string
|
|
8444
8578
|
description: ID of the section group to create the section in
|
|
@@ -8576,6 +8710,181 @@ paths:
|
|
|
8576
8710
|
description: Site section did not exist
|
|
8577
8711
|
"205":
|
|
8578
8712
|
description: Site section has been deleted
|
|
8713
|
+
/orgs/{organizationId}/sites/{siteId}/external-links:
|
|
8714
|
+
post:
|
|
8715
|
+
operationId: addExternalLinkToSite
|
|
8716
|
+
summary: Add an external link to a site's navigation
|
|
8717
|
+
description: Creates an external navigation link at the site root or in a section group. External links require a section-based site structure and cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.
|
|
8718
|
+
x-gitbook-mcp: true
|
|
8719
|
+
tags:
|
|
8720
|
+
- site-external-links
|
|
8721
|
+
security:
|
|
8722
|
+
- user: []
|
|
8723
|
+
- oauth:
|
|
8724
|
+
- site:write
|
|
8725
|
+
parameters:
|
|
8726
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8727
|
+
- $ref: "#/components/parameters/siteId"
|
|
8728
|
+
requestBody:
|
|
8729
|
+
required: true
|
|
8730
|
+
content:
|
|
8731
|
+
application/json:
|
|
8732
|
+
schema:
|
|
8733
|
+
type: object
|
|
8734
|
+
properties:
|
|
8735
|
+
title:
|
|
8736
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
8737
|
+
localizedTitle:
|
|
8738
|
+
$ref: "#/components/schemas/LocalizedString128"
|
|
8739
|
+
description:
|
|
8740
|
+
oneOf:
|
|
8741
|
+
- $ref: "#/components/schemas/SiteSectionDescription"
|
|
8742
|
+
- type: "null"
|
|
8743
|
+
localizedDescription:
|
|
8744
|
+
oneOf:
|
|
8745
|
+
- $ref: "#/components/schemas/LocalizedString256"
|
|
8746
|
+
- type: "null"
|
|
8747
|
+
icon:
|
|
8748
|
+
oneOf:
|
|
8749
|
+
- $ref: "#/components/schemas/Icon"
|
|
8750
|
+
- type: "null"
|
|
8751
|
+
url:
|
|
8752
|
+
$ref: "#/components/schemas/URL"
|
|
8753
|
+
description: Absolute HTTP or HTTPS destination URL
|
|
8754
|
+
parent:
|
|
8755
|
+
type: string
|
|
8756
|
+
description: ID of the section group to create the link in. Omit to place it at the site root.
|
|
8757
|
+
draft:
|
|
8758
|
+
type: boolean
|
|
8759
|
+
description: Whether the external link should be created in draft mode
|
|
8760
|
+
condition:
|
|
8761
|
+
oneOf:
|
|
8762
|
+
- $ref: "#/components/schemas/Expression"
|
|
8763
|
+
- type: "null"
|
|
8764
|
+
description: Adaptive condition controlling whether visitors see the link
|
|
8765
|
+
required:
|
|
8766
|
+
- title
|
|
8767
|
+
- url
|
|
8768
|
+
responses:
|
|
8769
|
+
"201":
|
|
8770
|
+
description: External link added to the site
|
|
8771
|
+
headers:
|
|
8772
|
+
Location:
|
|
8773
|
+
description: API URL for the newly created external link
|
|
8774
|
+
schema:
|
|
8775
|
+
type: string
|
|
8776
|
+
content:
|
|
8777
|
+
application/json:
|
|
8778
|
+
schema:
|
|
8779
|
+
$ref: "#/components/schemas/SiteExternalLink"
|
|
8780
|
+
"400":
|
|
8781
|
+
description: The site has a simple structure or the parent group is invalid
|
|
8782
|
+
$ref: "#/components/responses/BadRequestError"
|
|
8783
|
+
default:
|
|
8784
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8785
|
+
/orgs/{organizationId}/sites/{siteId}/external-links/{siteExternalLinkId}:
|
|
8786
|
+
patch:
|
|
8787
|
+
operationId: updateSiteExternalLinkById
|
|
8788
|
+
summary: Update an external link in a site's navigation
|
|
8789
|
+
description: Updates an external navigation link. Set parent to a section group ID to move the link into that group, or null to move it to the site root; links cannot be placed inside a section. A changed destination must remain an absolute HTTP or HTTPS URL. Draft and adaptive-condition fields control visibility. Use the generic structure sort operation after changing the parent to adjust the link's sibling order.
|
|
8790
|
+
x-gitbook-mcp: true
|
|
8791
|
+
x-gitbook-return-preference: true
|
|
8792
|
+
tags:
|
|
8793
|
+
- site-external-links
|
|
8794
|
+
security:
|
|
8795
|
+
- user: []
|
|
8796
|
+
- oauth:
|
|
8797
|
+
- site:write
|
|
8798
|
+
parameters:
|
|
8799
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8800
|
+
- $ref: "#/components/parameters/siteId"
|
|
8801
|
+
- $ref: "#/components/parameters/siteExternalLinkId"
|
|
8802
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
8803
|
+
requestBody:
|
|
8804
|
+
required: true
|
|
8805
|
+
content:
|
|
8806
|
+
application/json:
|
|
8807
|
+
schema:
|
|
8808
|
+
type: object
|
|
8809
|
+
properties:
|
|
8810
|
+
title:
|
|
8811
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
8812
|
+
localizedTitle:
|
|
8813
|
+
oneOf:
|
|
8814
|
+
- $ref: "#/components/schemas/LocalizedString128"
|
|
8815
|
+
- type: "null"
|
|
8816
|
+
description:
|
|
8817
|
+
oneOf:
|
|
8818
|
+
- $ref: "#/components/schemas/SiteSectionDescription"
|
|
8819
|
+
- type: "null"
|
|
8820
|
+
localizedDescription:
|
|
8821
|
+
oneOf:
|
|
8822
|
+
- $ref: "#/components/schemas/LocalizedString256"
|
|
8823
|
+
- type: "null"
|
|
8824
|
+
icon:
|
|
8825
|
+
oneOf:
|
|
8826
|
+
- $ref: "#/components/schemas/Icon"
|
|
8827
|
+
- type: "null"
|
|
8828
|
+
url:
|
|
8829
|
+
$ref: "#/components/schemas/URL"
|
|
8830
|
+
description: Absolute HTTP or HTTPS destination URL
|
|
8831
|
+
parent:
|
|
8832
|
+
description: ID of the section group to move the link into. Set to null to move it to the site root.
|
|
8833
|
+
oneOf:
|
|
8834
|
+
- type: string
|
|
8835
|
+
- type: "null"
|
|
8836
|
+
draft:
|
|
8837
|
+
type: boolean
|
|
8838
|
+
description: Whether the external link should be kept in draft mode
|
|
8839
|
+
condition:
|
|
8840
|
+
oneOf:
|
|
8841
|
+
- $ref: "#/components/schemas/Expression"
|
|
8842
|
+
- type: "null"
|
|
8843
|
+
description: Adaptive condition controlling whether visitors see the link
|
|
8844
|
+
responses:
|
|
8845
|
+
"200":
|
|
8846
|
+
description: External link updated
|
|
8847
|
+
content:
|
|
8848
|
+
application/json:
|
|
8849
|
+
schema:
|
|
8850
|
+
$ref: "#/components/schemas/SiteExternalLink"
|
|
8851
|
+
"204":
|
|
8852
|
+
description: External link updated without returning its representation
|
|
8853
|
+
headers:
|
|
8854
|
+
Preference-Applied:
|
|
8855
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
8856
|
+
"400":
|
|
8857
|
+
description: The parent group or destination URL is invalid
|
|
8858
|
+
$ref: "#/components/responses/BadRequestError"
|
|
8859
|
+
"404":
|
|
8860
|
+
description: Site or external link not found
|
|
8861
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8862
|
+
default:
|
|
8863
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8864
|
+
delete:
|
|
8865
|
+
operationId: deleteSiteExternalLinkById
|
|
8866
|
+
summary: Delete an external link from a site's navigation
|
|
8867
|
+
description: Deletes an external link. This operation is intentionally unavailable to MCP clients.
|
|
8868
|
+
tags:
|
|
8869
|
+
- site-external-links
|
|
8870
|
+
security:
|
|
8871
|
+
- user: []
|
|
8872
|
+
- oauth:
|
|
8873
|
+
- site:write
|
|
8874
|
+
parameters:
|
|
8875
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8876
|
+
- $ref: "#/components/parameters/siteId"
|
|
8877
|
+
- $ref: "#/components/parameters/siteExternalLinkId"
|
|
8878
|
+
responses:
|
|
8879
|
+
"204":
|
|
8880
|
+
description: External link did not exist
|
|
8881
|
+
"205":
|
|
8882
|
+
description: External link has been deleted
|
|
8883
|
+
"404":
|
|
8884
|
+
description: Site not found
|
|
8885
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8886
|
+
default:
|
|
8887
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8579
8888
|
/orgs/{organizationId}/sites/{siteId}/search:
|
|
8580
8889
|
post:
|
|
8581
8890
|
operationId: searchSiteContent
|
|
@@ -9523,6 +9832,8 @@ paths:
|
|
|
9523
9832
|
get:
|
|
9524
9833
|
operationId: getSiteTopicById
|
|
9525
9834
|
summary: Get a topic
|
|
9835
|
+
description: Retrieves a single topic of a site by its ID, including its label, its parent topic when it is a subtopic, its summary and usage settings, and its page, record, finding and Ask AI question counts. Use this when you have a topic ID and need the topic's label or its stats.
|
|
9836
|
+
x-gitbook-mcp: true
|
|
9526
9837
|
tags:
|
|
9527
9838
|
- site-context
|
|
9528
9839
|
security:
|
|
@@ -11088,7 +11399,7 @@ paths:
|
|
|
11088
11399
|
post:
|
|
11089
11400
|
operationId: createSiteRedirect
|
|
11090
11401
|
summary: Create a URL redirect rule for a site
|
|
11091
|
-
description: Creates a new redirect rule mapping a source path to a destination URL or content reference. Use the bulk upsert endpoint instead when creating many redirects at once.
|
|
11402
|
+
description: Creates a new redirect rule mapping a source path to a destination URL or content reference. Creating a live redirect also resolves open broken-link findings for the same source path. Use the bulk upsert endpoint instead when creating many redirects at once.
|
|
11092
11403
|
x-gitbook-mcp: true
|
|
11093
11404
|
tags:
|
|
11094
11405
|
- site-redirects
|
|
@@ -11333,6 +11644,11 @@ paths:
|
|
|
11333
11644
|
schema:
|
|
11334
11645
|
type: boolean
|
|
11335
11646
|
default: false
|
|
11647
|
+
- name: orderBy
|
|
11648
|
+
in: query
|
|
11649
|
+
description: Sort redirects by the given field.
|
|
11650
|
+
schema:
|
|
11651
|
+
$ref: "#/components/schemas/SiteRedirectOrderBy"
|
|
11336
11652
|
responses:
|
|
11337
11653
|
"200":
|
|
11338
11654
|
description: The list of redirects for the site.
|
|
@@ -12175,7 +12491,7 @@ paths:
|
|
|
12175
12491
|
Updates the installation configuration, then queues a sync operation using the new settings.
|
|
12176
12492
|
A `git` priority queues an import from the selected repository and branch into GitBook; a
|
|
12177
12493
|
`gitbook` priority queues an export from GitBook to the repository. Site imports require a
|
|
12178
|
-
`docs.yaml` file at the configured project directory and return a conflict without saving or
|
|
12494
|
+
`gitbook-docs.yaml` file at the configured project directory and return a conflict without saving or
|
|
12179
12495
|
queuing the sync when the file is missing.
|
|
12180
12496
|
tags:
|
|
12181
12497
|
- git
|
|
@@ -12238,10 +12554,10 @@ paths:
|
|
|
12238
12554
|
properties:
|
|
12239
12555
|
path:
|
|
12240
12556
|
type: string
|
|
12241
|
-
description: Repository-relative path where `docs.yaml` is required.
|
|
12557
|
+
description: Repository-relative path where `gitbook-docs.yaml` is required.
|
|
12242
12558
|
branch:
|
|
12243
12559
|
type: string
|
|
12244
|
-
description: Repository branch where `docs.yaml` is required.
|
|
12560
|
+
description: Repository branch where `gitbook-docs.yaml` is required.
|
|
12245
12561
|
prompt:
|
|
12246
12562
|
type: string
|
|
12247
12563
|
description: Prompt for a coding agent to create and commit the missing file.
|
|
@@ -12509,6 +12825,11 @@ components:
|
|
|
12509
12825
|
site:insights:read: Read site analytics and insights.
|
|
12510
12826
|
site:ask: Ask AI questions across a site's content.
|
|
12511
12827
|
site:search: Search across a site's content.
|
|
12828
|
+
integration:read: Read integrations and where they are installed.
|
|
12829
|
+
integration:installations:read: Read integration installations and their configuration, which can include credentials for third-party services.
|
|
12830
|
+
integration:installations:write: Install and configure integrations on an organization, its spaces and its sites.
|
|
12831
|
+
integration:publish: Publish integrations, which can request their own permissions on your content, and route their events to a development tunnel.
|
|
12832
|
+
integration:delete: Unpublish integrations, permanently deleting them and every installation of them.
|
|
12512
12833
|
openapi:read: Read OpenAPI specifications.
|
|
12513
12834
|
openapi:write: Create, update and delete OpenAPI specifications.
|
|
12514
12835
|
parameters:
|
|
@@ -12977,6 +13298,13 @@ components:
|
|
|
12977
13298
|
description: The unique id of the section within a site
|
|
12978
13299
|
schema:
|
|
12979
13300
|
type: string
|
|
13301
|
+
siteExternalLinkId:
|
|
13302
|
+
name: siteExternalLinkId
|
|
13303
|
+
in: path
|
|
13304
|
+
required: true
|
|
13305
|
+
description: The unique ID of the site external link
|
|
13306
|
+
schema:
|
|
13307
|
+
type: string
|
|
12980
13308
|
siteContextRecordId:
|
|
12981
13309
|
name: siteContextRecordId
|
|
12982
13310
|
in: path
|
|
@@ -13531,6 +13859,9 @@ components:
|
|
|
13531
13859
|
- state
|
|
13532
13860
|
- direction
|
|
13533
13861
|
- startedAt
|
|
13862
|
+
operationTimeout:
|
|
13863
|
+
type: integer
|
|
13864
|
+
description: How long an operation is allowed to run before it is terminated (in milliseconds).
|
|
13534
13865
|
updatedAt:
|
|
13535
13866
|
description: When the Git provider details were last updated
|
|
13536
13867
|
$ref: "#/components/schemas/Timestamp"
|
|
@@ -18830,7 +19161,7 @@ components:
|
|
|
18830
19161
|
type: string
|
|
18831
19162
|
description: Adaptive-content condition controlling whether the page is shown to a visitor. Set to an empty string to remove the condition.
|
|
18832
19163
|
ChangeRequestContentChangeUpdatePage:
|
|
18833
|
-
description: Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed
|
|
19164
|
+
description: Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed, and it can be moved to a new parent and/or position with `into`/`at`.
|
|
18834
19165
|
allOf:
|
|
18835
19166
|
- $ref: "#/components/schemas/RevisionPageUpdate"
|
|
18836
19167
|
- type: object
|
|
@@ -18848,6 +19179,15 @@ components:
|
|
|
18848
19179
|
document:
|
|
18849
19180
|
description: New document for the page. When provided as markdown, its frontmatter is read to update the page metadata. Omit to update only the metadata fields.
|
|
18850
19181
|
$ref: "#/components/schemas/Document"
|
|
19182
|
+
into:
|
|
19183
|
+
description: Move the page to be a child of this page ID. Set to `null` to move it to the root of the page tree. Omit to leave the page's parent unchanged. The target cannot be the page itself or one of its own descendants.
|
|
19184
|
+
oneOf:
|
|
19185
|
+
- type: string
|
|
19186
|
+
- type: "null"
|
|
19187
|
+
at:
|
|
19188
|
+
type: integer
|
|
19189
|
+
minimum: 0
|
|
19190
|
+
description: Zero-based index to move the page to among its new siblings (those of `into`, or the root pages when `into` is omitted or `null`). Omit to leave the page's position unchanged when its parent isn't changing, or to append it at the end when its parent is changing.
|
|
18851
19191
|
example:
|
|
18852
19192
|
operation: update_page
|
|
18853
19193
|
page: page_id
|
|
@@ -21751,13 +22091,13 @@ components:
|
|
|
21751
22091
|
description: Can the user access the site in the application.
|
|
21752
22092
|
edit:
|
|
21753
22093
|
type: boolean
|
|
21754
|
-
description: Can the user edit content
|
|
22094
|
+
description: Can the user edit content and create draft content in the site.
|
|
21755
22095
|
create:
|
|
21756
22096
|
type: boolean
|
|
21757
|
-
description: Can the user create content
|
|
22097
|
+
description: Can the user create draft content, publish content, and manage the site's content structure.
|
|
21758
22098
|
admin:
|
|
21759
22099
|
type: boolean
|
|
21760
|
-
description: Can the user
|
|
22100
|
+
description: Can the user manage the site content, settings and publish the site.
|
|
21761
22101
|
installIntegration:
|
|
21762
22102
|
type: boolean
|
|
21763
22103
|
description: Can the user install integrations on the site.
|
|
@@ -22740,6 +23080,48 @@ components:
|
|
|
22740
23080
|
$ref: "#/components/schemas/IntegrationInstallationExternalIds"
|
|
22741
23081
|
configuration:
|
|
22742
23082
|
$ref: "#/components/schemas/IntegrationInstallationConfiguration"
|
|
23083
|
+
SiteOnboardingSource:
|
|
23084
|
+
type: string
|
|
23085
|
+
description: Where the user's docs are coming from today.
|
|
23086
|
+
enum:
|
|
23087
|
+
- markdown-in-git
|
|
23088
|
+
- import
|
|
23089
|
+
- template
|
|
23090
|
+
SiteOnboardingAudience:
|
|
23091
|
+
type: string
|
|
23092
|
+
description: Who the user wants to be able to access their site.
|
|
23093
|
+
enum:
|
|
23094
|
+
- public
|
|
23095
|
+
- mixed
|
|
23096
|
+
- protected
|
|
23097
|
+
- internal
|
|
23098
|
+
SiteOnboardingInterest:
|
|
23099
|
+
type: string
|
|
23100
|
+
description: Something the user is interested in doing with the site.
|
|
23101
|
+
enum:
|
|
23102
|
+
- adaptive-content
|
|
23103
|
+
- api-docs
|
|
23104
|
+
- proactive-agent
|
|
23105
|
+
SiteOnboardingPreferences:
|
|
23106
|
+
type: object
|
|
23107
|
+
description: Preferences collected from the user during site onboarding, used to tailor recommendations and to apply their initial setup choices.
|
|
23108
|
+
properties:
|
|
23109
|
+
source:
|
|
23110
|
+
oneOf:
|
|
23111
|
+
- $ref: "#/components/schemas/SiteOnboardingSource"
|
|
23112
|
+
- type: "null"
|
|
23113
|
+
audience:
|
|
23114
|
+
oneOf:
|
|
23115
|
+
- $ref: "#/components/schemas/SiteOnboardingAudience"
|
|
23116
|
+
- type: "null"
|
|
23117
|
+
interests:
|
|
23118
|
+
type: array
|
|
23119
|
+
items:
|
|
23120
|
+
$ref: "#/components/schemas/SiteOnboardingInterest"
|
|
23121
|
+
required:
|
|
23122
|
+
- source
|
|
23123
|
+
- audience
|
|
23124
|
+
- interests
|
|
22743
23125
|
CreateOrganization:
|
|
22744
23126
|
type: object
|
|
22745
23127
|
properties:
|
|
@@ -22747,10 +23129,9 @@ components:
|
|
|
22747
23129
|
$ref: "#/components/schemas/OrganizationTitle"
|
|
22748
23130
|
emailDomains:
|
|
22749
23131
|
$ref: "#/components/schemas/OrganizationEmailDomains"
|
|
22750
|
-
|
|
22751
|
-
|
|
22752
|
-
|
|
22753
|
-
$ref: "#/components/schemas/OrganizationUseCase"
|
|
23132
|
+
onboardingPreferences:
|
|
23133
|
+
description: Preferences collected from the user during onboarding, to apply to the organization's default site. Only used when `withDefaultSite` is true.
|
|
23134
|
+
$ref: "#/components/schemas/SiteOnboardingPreferences"
|
|
22754
23135
|
required:
|
|
22755
23136
|
- title
|
|
22756
23137
|
SiteSectionTitle:
|
|
@@ -22936,11 +23317,12 @@ components:
|
|
|
22936
23317
|
description: Whether the site section group is draft and not live.
|
|
22937
23318
|
children:
|
|
22938
23319
|
type: array
|
|
22939
|
-
description: List of all child sections and
|
|
23320
|
+
description: List of all child sections, groups, and external links nested under this group
|
|
22940
23321
|
items:
|
|
22941
23322
|
oneOf:
|
|
22942
23323
|
- $ref: "#/components/schemas/SiteSection"
|
|
22943
23324
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
23325
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
22944
23326
|
icon:
|
|
22945
23327
|
$ref: "#/components/schemas/Icon"
|
|
22946
23328
|
required:
|
|
@@ -22950,6 +23332,45 @@ components:
|
|
|
22950
23332
|
- draft
|
|
22951
23333
|
- sections
|
|
22952
23334
|
- children
|
|
23335
|
+
SiteExternalLink:
|
|
23336
|
+
type: object
|
|
23337
|
+
properties:
|
|
23338
|
+
object:
|
|
23339
|
+
type: string
|
|
23340
|
+
description: The object type, which is always "site-external-link"
|
|
23341
|
+
enum:
|
|
23342
|
+
- site-external-link
|
|
23343
|
+
id:
|
|
23344
|
+
type: string
|
|
23345
|
+
description: Unique identifier of the external link
|
|
23346
|
+
title:
|
|
23347
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
23348
|
+
localizedTitle:
|
|
23349
|
+
$ref: "#/components/schemas/LocalizedString128"
|
|
23350
|
+
description:
|
|
23351
|
+
$ref: "#/components/schemas/SiteSectionDescription"
|
|
23352
|
+
localizedDescription:
|
|
23353
|
+
$ref: "#/components/schemas/LocalizedString256"
|
|
23354
|
+
icon:
|
|
23355
|
+
$ref: "#/components/schemas/Icon"
|
|
23356
|
+
url:
|
|
23357
|
+
$ref: "#/components/schemas/URL"
|
|
23358
|
+
description: Absolute HTTP or HTTPS URL opened by the external link
|
|
23359
|
+
sectionGroup:
|
|
23360
|
+
type: string
|
|
23361
|
+
description: ID of the section group the external link belongs to. Omitted for a root link.
|
|
23362
|
+
draft:
|
|
23363
|
+
type: boolean
|
|
23364
|
+
description: Whether the external link is draft and not live
|
|
23365
|
+
condition:
|
|
23366
|
+
description: Conditional expression used to evaluate whether the external link should be shown to the site's visitor
|
|
23367
|
+
$ref: "#/components/schemas/Expression"
|
|
23368
|
+
required:
|
|
23369
|
+
- object
|
|
23370
|
+
- id
|
|
23371
|
+
- title
|
|
23372
|
+
- url
|
|
23373
|
+
- draft
|
|
22953
23374
|
SiteStructure:
|
|
22954
23375
|
oneOf:
|
|
22955
23376
|
- type: object
|
|
@@ -22964,6 +23385,7 @@ components:
|
|
|
22964
23385
|
oneOf:
|
|
22965
23386
|
- $ref: "#/components/schemas/SiteSection"
|
|
22966
23387
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
23388
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
22967
23389
|
required:
|
|
22968
23390
|
- type
|
|
22969
23391
|
- structure
|
|
@@ -26371,15 +26793,16 @@ components:
|
|
|
26371
26793
|
- site-space
|
|
26372
26794
|
- site-section
|
|
26373
26795
|
- site-section-group
|
|
26796
|
+
- site-external-link
|
|
26374
26797
|
id:
|
|
26375
26798
|
type: string
|
|
26376
|
-
description: Unique identifier for the site structure item (site space, site section
|
|
26799
|
+
description: Unique identifier for the site structure item (site space, site section, site section group, or external link).
|
|
26377
26800
|
required:
|
|
26378
26801
|
- type
|
|
26379
26802
|
- id
|
|
26380
26803
|
SiteStructureItemMovePosition:
|
|
26381
26804
|
type: object
|
|
26382
|
-
description: Position at which to move the site structure item
|
|
26805
|
+
description: Position at which to move the site structure item relative to any sibling of the same structure level.
|
|
26383
26806
|
properties:
|
|
26384
26807
|
before:
|
|
26385
26808
|
$ref: "#/components/schemas/SiteStructureItemPointer"
|
|
@@ -26389,12 +26812,13 @@ components:
|
|
|
26389
26812
|
title: Site Structure Item
|
|
26390
26813
|
type: object
|
|
26391
26814
|
description: |
|
|
26392
|
-
A site structure item can be a site space, a site section
|
|
26815
|
+
A site structure item can be a site space, a site section, a site section group, or an external link.
|
|
26393
26816
|
It is used to represent the structure of a site.
|
|
26394
26817
|
oneOf:
|
|
26395
26818
|
- $ref: "#/components/schemas/SiteSpace"
|
|
26396
26819
|
- $ref: "#/components/schemas/SiteSection"
|
|
26397
26820
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
26821
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
26398
26822
|
BillingOperationPreviewResponse:
|
|
26399
26823
|
description: |
|
|
26400
26824
|
A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.
|
|
@@ -26829,12 +27253,14 @@ components:
|
|
|
26829
27253
|
- Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
26830
27254
|
- Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
26831
27255
|
- Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
|
|
27256
|
+
- Outbound link error: An external URL used by the site's content fails to resolve, and can be fixed by replacing or removing the link.
|
|
26832
27257
|
- Other: Any other type of finding not covered by the above categories.
|
|
26833
27258
|
enum:
|
|
26834
27259
|
- content-outdated
|
|
26835
27260
|
- content-incorrect
|
|
26836
27261
|
- content-gap
|
|
26837
27262
|
- broken-link
|
|
27263
|
+
- outbound-link-error
|
|
26838
27264
|
- other
|
|
26839
27265
|
SiteFindingSeverity:
|
|
26840
27266
|
type: string
|
|
@@ -26872,67 +27298,6 @@ components:
|
|
|
26872
27298
|
description: The source path to redirect from.
|
|
26873
27299
|
maxLength: 512
|
|
26874
27300
|
pattern: ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
|
|
26875
|
-
SiteRedirectDestinationSiteSection:
|
|
26876
|
-
type: object
|
|
26877
|
-
properties:
|
|
26878
|
-
kind:
|
|
26879
|
-
type: string
|
|
26880
|
-
enum:
|
|
26881
|
-
- site-section
|
|
26882
|
-
siteSectionId:
|
|
26883
|
-
type: string
|
|
26884
|
-
description: Unique identifier for the site section to redirect to
|
|
26885
|
-
required:
|
|
26886
|
-
- kind
|
|
26887
|
-
- siteSectionId
|
|
26888
|
-
SiteRedirectDestinationSiteSpace:
|
|
26889
|
-
type: object
|
|
26890
|
-
properties:
|
|
26891
|
-
kind:
|
|
26892
|
-
type: string
|
|
26893
|
-
enum:
|
|
26894
|
-
- site-space
|
|
26895
|
-
siteSpaceId:
|
|
26896
|
-
type: string
|
|
26897
|
-
description: Unique identifier for the site space to redirect to
|
|
26898
|
-
required:
|
|
26899
|
-
- kind
|
|
26900
|
-
- siteSpaceId
|
|
26901
|
-
SiteRedirectDestinationPage:
|
|
26902
|
-
type: object
|
|
26903
|
-
properties:
|
|
26904
|
-
kind:
|
|
26905
|
-
type: string
|
|
26906
|
-
enum:
|
|
26907
|
-
- site-page
|
|
26908
|
-
siteSpaceId:
|
|
26909
|
-
type: string
|
|
26910
|
-
description: Unique identifier for the site space of the page
|
|
26911
|
-
pageId:
|
|
26912
|
-
type: string
|
|
26913
|
-
description: Unique identifier for the page within the site space to redirect to
|
|
26914
|
-
required:
|
|
26915
|
-
- kind
|
|
26916
|
-
- siteSpaceId
|
|
26917
|
-
- pageId
|
|
26918
|
-
SiteRedirectDestinationExternal:
|
|
26919
|
-
type: object
|
|
26920
|
-
properties:
|
|
26921
|
-
kind:
|
|
26922
|
-
type: string
|
|
26923
|
-
enum:
|
|
26924
|
-
- external
|
|
26925
|
-
url:
|
|
26926
|
-
$ref: "#/components/schemas/URL"
|
|
26927
|
-
required:
|
|
26928
|
-
- kind
|
|
26929
|
-
- url
|
|
26930
|
-
SiteRedirectDestination:
|
|
26931
|
-
oneOf:
|
|
26932
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
26933
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
26934
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationPage"
|
|
26935
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationExternal"
|
|
26936
27301
|
SiteRedirectInputDestinationPath:
|
|
26937
27302
|
type: object
|
|
26938
27303
|
properties:
|
|
@@ -26950,10 +27315,6 @@ components:
|
|
|
26950
27315
|
- kind
|
|
26951
27316
|
- spaceId
|
|
26952
27317
|
- path
|
|
26953
|
-
SiteRedirectInputDestination:
|
|
26954
|
-
oneOf:
|
|
26955
|
-
- $ref: "#/components/schemas/SiteRedirectDestination"
|
|
26956
|
-
- $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
26957
27318
|
SiteFindingBrokenLinkAction:
|
|
26958
27319
|
type: object
|
|
26959
27320
|
description: Suggested fix for a broken-link finding, shaped as the input for `createSiteRedirect` so it can be applied directly. Absent when the finding has no directly applicable redirect (for example, a suggestion to create a new page).
|
|
@@ -26964,10 +27325,48 @@ components:
|
|
|
26964
27325
|
type: boolean
|
|
26965
27326
|
description: Whether the redirect appends the wildcard-matched suffix of the source path to the destination.
|
|
26966
27327
|
destination:
|
|
26967
|
-
$ref: "#/components/schemas/
|
|
27328
|
+
$ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
26968
27329
|
required:
|
|
26969
27330
|
- source
|
|
26970
27331
|
- destination
|
|
27332
|
+
SiteFindingOutboundLink:
|
|
27333
|
+
type: object
|
|
27334
|
+
description: "Details of an `outbound-link-error` finding: the failing external URL and the observed failure, sourced from the site's outbound link checks. Absent on findings of any other type."
|
|
27335
|
+
properties:
|
|
27336
|
+
url:
|
|
27337
|
+
type: string
|
|
27338
|
+
format: uri
|
|
27339
|
+
description: The external URL that fails to resolve.
|
|
27340
|
+
status:
|
|
27341
|
+
type: string
|
|
27342
|
+
description: Current health status of the URL for this site.
|
|
27343
|
+
enum:
|
|
27344
|
+
- pending
|
|
27345
|
+
- healthy
|
|
27346
|
+
- suspect
|
|
27347
|
+
- failed
|
|
27348
|
+
- recovering
|
|
27349
|
+
- canceled
|
|
27350
|
+
failureKind:
|
|
27351
|
+
type: string
|
|
27352
|
+
description: Classification of the confirmed failure.
|
|
27353
|
+
enum:
|
|
27354
|
+
- client-error
|
|
27355
|
+
- server-error
|
|
27356
|
+
- redirect
|
|
27357
|
+
- dns
|
|
27358
|
+
- tls
|
|
27359
|
+
- connection
|
|
27360
|
+
- timeout
|
|
27361
|
+
httpStatus:
|
|
27362
|
+
type: number
|
|
27363
|
+
description: HTTP status code of the last observation, when one was received.
|
|
27364
|
+
checkedAt:
|
|
27365
|
+
$ref: "#/components/schemas/Timestamp"
|
|
27366
|
+
description: When the URL was last observed over HTTP.
|
|
27367
|
+
required:
|
|
27368
|
+
- url
|
|
27369
|
+
- status
|
|
26971
27370
|
SiteFinding:
|
|
26972
27371
|
type: object
|
|
26973
27372
|
properties:
|
|
@@ -27013,6 +27412,8 @@ components:
|
|
|
27013
27412
|
description: Whether an AI agent should be able to fix this finding directly
|
|
27014
27413
|
brokenLinkAction:
|
|
27015
27414
|
$ref: "#/components/schemas/SiteFindingBrokenLinkAction"
|
|
27415
|
+
outboundLink:
|
|
27416
|
+
$ref: "#/components/schemas/SiteFindingOutboundLink"
|
|
27016
27417
|
createdAt:
|
|
27017
27418
|
$ref: "#/components/schemas/Timestamp"
|
|
27018
27419
|
updatedAt:
|
|
@@ -30718,6 +31119,16 @@ components:
|
|
|
30718
31119
|
- claude-code
|
|
30719
31120
|
- codex
|
|
30720
31121
|
- opencode
|
|
31122
|
+
- gptbot
|
|
31123
|
+
- claudebot
|
|
31124
|
+
- meta-fetcher
|
|
31125
|
+
- grok
|
|
31126
|
+
- github-copilot
|
|
31127
|
+
- meta-webindexer
|
|
31128
|
+
- meta-ads
|
|
31129
|
+
- duckassist
|
|
31130
|
+
- amzn-searchbot
|
|
31131
|
+
- amzn-user
|
|
30721
31132
|
SiteInsightsPageNotFoundType:
|
|
30722
31133
|
description: Why a site URL returned a 404. `conditional` means the URL targets content gated by an adaptive-content condition, so the visitor lacked access to a page that exists. Computed by GitBook when the event is ingested; 404s recorded before this existed, and those on genuinely missing pages, carry no value.
|
|
30723
31134
|
type: string
|
|
@@ -31571,6 +31982,75 @@ components:
|
|
|
31571
31982
|
type: number
|
|
31572
31983
|
revenue:
|
|
31573
31984
|
type: string
|
|
31985
|
+
SiteRedirectOrderBy:
|
|
31986
|
+
type: string
|
|
31987
|
+
enum:
|
|
31988
|
+
- createdAt
|
|
31989
|
+
- updatedAt
|
|
31990
|
+
- source
|
|
31991
|
+
default: createdAt
|
|
31992
|
+
description: The field to sort site redirects by. `createdAt` returns the most recently created redirects first. `updatedAt` returns the most recently updated redirects first (falling back to the creation date for redirects never updated). `source` returns redirects sorted alphabetically by source path. Defaults to 'createdAt'.
|
|
31993
|
+
SiteRedirectDestinationSiteSection:
|
|
31994
|
+
type: object
|
|
31995
|
+
properties:
|
|
31996
|
+
kind:
|
|
31997
|
+
type: string
|
|
31998
|
+
enum:
|
|
31999
|
+
- site-section
|
|
32000
|
+
siteSectionId:
|
|
32001
|
+
type: string
|
|
32002
|
+
description: Unique identifier for the site section to redirect to
|
|
32003
|
+
required:
|
|
32004
|
+
- kind
|
|
32005
|
+
- siteSectionId
|
|
32006
|
+
SiteRedirectDestinationSiteSpace:
|
|
32007
|
+
type: object
|
|
32008
|
+
properties:
|
|
32009
|
+
kind:
|
|
32010
|
+
type: string
|
|
32011
|
+
enum:
|
|
32012
|
+
- site-space
|
|
32013
|
+
siteSpaceId:
|
|
32014
|
+
type: string
|
|
32015
|
+
description: Unique identifier for the site space to redirect to
|
|
32016
|
+
required:
|
|
32017
|
+
- kind
|
|
32018
|
+
- siteSpaceId
|
|
32019
|
+
SiteRedirectDestinationPage:
|
|
32020
|
+
type: object
|
|
32021
|
+
properties:
|
|
32022
|
+
kind:
|
|
32023
|
+
type: string
|
|
32024
|
+
enum:
|
|
32025
|
+
- site-page
|
|
32026
|
+
siteSpaceId:
|
|
32027
|
+
type: string
|
|
32028
|
+
description: Unique identifier for the site space of the page
|
|
32029
|
+
pageId:
|
|
32030
|
+
type: string
|
|
32031
|
+
description: Unique identifier for the page within the site space to redirect to
|
|
32032
|
+
required:
|
|
32033
|
+
- kind
|
|
32034
|
+
- siteSpaceId
|
|
32035
|
+
- pageId
|
|
32036
|
+
SiteRedirectDestinationExternal:
|
|
32037
|
+
type: object
|
|
32038
|
+
properties:
|
|
32039
|
+
kind:
|
|
32040
|
+
type: string
|
|
32041
|
+
enum:
|
|
32042
|
+
- external
|
|
32043
|
+
url:
|
|
32044
|
+
$ref: "#/components/schemas/URL"
|
|
32045
|
+
required:
|
|
32046
|
+
- kind
|
|
32047
|
+
- url
|
|
32048
|
+
SiteRedirectDestination:
|
|
32049
|
+
oneOf:
|
|
32050
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
32051
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
32052
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationPage"
|
|
32053
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationExternal"
|
|
31574
32054
|
SiteRedirect:
|
|
31575
32055
|
type: object
|
|
31576
32056
|
properties:
|
|
@@ -31591,6 +32071,14 @@ components:
|
|
|
31591
32071
|
description: Capture and append the wildcard-matched suffix to the destination URL.
|
|
31592
32072
|
destination:
|
|
31593
32073
|
$ref: "#/components/schemas/SiteRedirectDestination"
|
|
32074
|
+
createdAt:
|
|
32075
|
+
type: string
|
|
32076
|
+
format: date-time
|
|
32077
|
+
description: When the redirect was created.
|
|
32078
|
+
updatedAt:
|
|
32079
|
+
type: string
|
|
32080
|
+
format: date-time
|
|
32081
|
+
description: When the redirect was last updated. Absent if never updated since creation.
|
|
31594
32082
|
required:
|
|
31595
32083
|
- object
|
|
31596
32084
|
- id
|
|
@@ -31598,6 +32086,11 @@ components:
|
|
|
31598
32086
|
- draft
|
|
31599
32087
|
- captureWildcard
|
|
31600
32088
|
- destination
|
|
32089
|
+
- createdAt
|
|
32090
|
+
SiteRedirectInputDestination:
|
|
32091
|
+
oneOf:
|
|
32092
|
+
- $ref: "#/components/schemas/SiteRedirectDestination"
|
|
32093
|
+
- $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
31601
32094
|
SiteMcpServerName:
|
|
31602
32095
|
type: string
|
|
31603
32096
|
description: Name of the MCP server
|
|
@@ -33351,7 +33844,7 @@ components:
|
|
|
33351
33844
|
GitSyncSiteConfig:
|
|
33352
33845
|
type: object
|
|
33353
33846
|
description: |
|
|
33354
|
-
Schema for a site `docs.yaml` file — the canonical contract for what
|
|
33847
|
+
Schema for a site `gitbook-docs.yaml` file — the canonical contract for what
|
|
33355
33848
|
can be authored in Git Sync to drive a site's structure.
|
|
33356
33849
|
|
|
33357
33850
|
The file lives at the root of the site's project directory in the synced
|