@gitbook/api 0.194.0 → 0.196.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 +803 -116
- package/dist/constants.d.ts +9 -5
- package/dist/index.cjs +109 -7
- package/dist/index.js +102 -7
- package/package.json +1 -1
- package/spec/openapi.json +1932 -316
- package/spec/openapi.yaml +1394 -246
package/spec/openapi.yaml
CHANGED
|
@@ -1642,6 +1642,7 @@ paths:
|
|
|
1642
1642
|
summary: Update a change request's subject, description, or status
|
|
1643
1643
|
description: Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead.
|
|
1644
1644
|
x-gitbook-mcp: true
|
|
1645
|
+
x-gitbook-return-preference: true
|
|
1645
1646
|
tags:
|
|
1646
1647
|
- change-requests
|
|
1647
1648
|
security:
|
|
@@ -1651,6 +1652,7 @@ paths:
|
|
|
1651
1652
|
parameters:
|
|
1652
1653
|
- $ref: "#/components/parameters/spaceId"
|
|
1653
1654
|
- $ref: "#/components/parameters/changeRequestId"
|
|
1655
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
1654
1656
|
requestBody:
|
|
1655
1657
|
required: true
|
|
1656
1658
|
content:
|
|
@@ -1681,6 +1683,11 @@ paths:
|
|
|
1681
1683
|
application/json:
|
|
1682
1684
|
schema:
|
|
1683
1685
|
$ref: "#/components/schemas/ChangeRequest"
|
|
1686
|
+
"204":
|
|
1687
|
+
description: Change request updated without returning its representation
|
|
1688
|
+
headers:
|
|
1689
|
+
Preference-Applied:
|
|
1690
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
1684
1691
|
/spaces/{spaceId}/change-requests/{changeRequestId}/merge:
|
|
1685
1692
|
post:
|
|
1686
1693
|
operationId: mergeChangeRequest
|
|
@@ -4677,6 +4684,46 @@ paths:
|
|
|
4677
4684
|
$ref: "#/components/schemas/Organization"
|
|
4678
4685
|
required:
|
|
4679
4686
|
- items
|
|
4687
|
+
post:
|
|
4688
|
+
operationId: createOrganization
|
|
4689
|
+
summary: Create an organization
|
|
4690
|
+
x-gitbook-mcp: true
|
|
4691
|
+
tags:
|
|
4692
|
+
- organizations
|
|
4693
|
+
security:
|
|
4694
|
+
- user: []
|
|
4695
|
+
- oauth:
|
|
4696
|
+
- organization:write
|
|
4697
|
+
parameters:
|
|
4698
|
+
- name: withDefaultSite
|
|
4699
|
+
in: query
|
|
4700
|
+
description: If true, also creates a default documentation site for the organization.
|
|
4701
|
+
required: false
|
|
4702
|
+
schema:
|
|
4703
|
+
type: boolean
|
|
4704
|
+
- name: openapiUrl
|
|
4705
|
+
in: query
|
|
4706
|
+
description: URL of an OpenAPI/Swagger specification to import and attach to the default site as a reference. Only used when `withDefaultSite` is true.
|
|
4707
|
+
required: false
|
|
4708
|
+
schema:
|
|
4709
|
+
type: string
|
|
4710
|
+
requestBody:
|
|
4711
|
+
content:
|
|
4712
|
+
application/json:
|
|
4713
|
+
schema:
|
|
4714
|
+
$ref: "#/components/schemas/CreateOrganization"
|
|
4715
|
+
responses:
|
|
4716
|
+
"201":
|
|
4717
|
+
description: Organization created
|
|
4718
|
+
headers:
|
|
4719
|
+
Location:
|
|
4720
|
+
description: API URL for the newly created organization
|
|
4721
|
+
schema:
|
|
4722
|
+
type: string
|
|
4723
|
+
content:
|
|
4724
|
+
application/json:
|
|
4725
|
+
schema:
|
|
4726
|
+
$ref: "#/components/schemas/Organization"
|
|
4680
4727
|
/orgs/{organizationId}:
|
|
4681
4728
|
get:
|
|
4682
4729
|
operationId: getOrganizationById
|
|
@@ -4750,12 +4797,151 @@ paths:
|
|
|
4750
4797
|
"400":
|
|
4751
4798
|
description: Invalid default content space or collection provided
|
|
4752
4799
|
$ref: "#/components/responses/BadRequestError"
|
|
4800
|
+
/orgs/{organizationId}/audit-event-actions:
|
|
4801
|
+
get:
|
|
4802
|
+
operationId: listOrganizationAuditEventActions
|
|
4803
|
+
x-gitbook-mcp: true
|
|
4804
|
+
summary: List organization audit event actions
|
|
4805
|
+
description: |
|
|
4806
|
+
Lists the supported audit event action identifiers and their display labels. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.
|
|
4807
|
+
tags:
|
|
4808
|
+
- organizations
|
|
4809
|
+
security:
|
|
4810
|
+
- user: []
|
|
4811
|
+
parameters:
|
|
4812
|
+
- $ref: "#/components/parameters/organizationId"
|
|
4813
|
+
responses:
|
|
4814
|
+
"200":
|
|
4815
|
+
description: Supported audit event actions.
|
|
4816
|
+
content:
|
|
4817
|
+
application/json:
|
|
4818
|
+
schema:
|
|
4819
|
+
type: object
|
|
4820
|
+
properties:
|
|
4821
|
+
items:
|
|
4822
|
+
type: array
|
|
4823
|
+
items:
|
|
4824
|
+
$ref: "#/components/schemas/AuditEventAction"
|
|
4825
|
+
required:
|
|
4826
|
+
- items
|
|
4827
|
+
"401":
|
|
4828
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
4829
|
+
"403":
|
|
4830
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
4831
|
+
"404":
|
|
4832
|
+
$ref: "#/components/responses/NotFoundError"
|
|
4833
|
+
/orgs/{organizationId}/audit-events:
|
|
4834
|
+
get:
|
|
4835
|
+
operationId: listOrganizationAuditEvents
|
|
4836
|
+
x-gitbook-mcp: true
|
|
4837
|
+
summary: List organization audit events
|
|
4838
|
+
description: |
|
|
4839
|
+
Lists recorded changes for an activated organization. Access is restricted to organization administrators and GitBook staff, and results are ordered by occurrence time, newest first. An active Enterprise plan is required except for GitBook's own organization.
|
|
4840
|
+
tags:
|
|
4841
|
+
- organizations
|
|
4842
|
+
security:
|
|
4843
|
+
- user: []
|
|
4844
|
+
parameters:
|
|
4845
|
+
- $ref: "#/components/parameters/organizationId"
|
|
4846
|
+
- $ref: "#/components/parameters/listPage"
|
|
4847
|
+
- name: limit
|
|
4848
|
+
in: query
|
|
4849
|
+
description: Number of events to return, up to 100.
|
|
4850
|
+
schema:
|
|
4851
|
+
type: integer
|
|
4852
|
+
minimum: 1
|
|
4853
|
+
maximum: 100
|
|
4854
|
+
default: 20
|
|
4855
|
+
- name: from
|
|
4856
|
+
in: query
|
|
4857
|
+
description: Include events occurring at or after this time.
|
|
4858
|
+
schema:
|
|
4859
|
+
type: string
|
|
4860
|
+
format: date-time
|
|
4861
|
+
- name: to
|
|
4862
|
+
in: query
|
|
4863
|
+
description: Include events occurring at or before this time.
|
|
4864
|
+
schema:
|
|
4865
|
+
type: string
|
|
4866
|
+
format: date-time
|
|
4867
|
+
- name: action
|
|
4868
|
+
in: query
|
|
4869
|
+
description: Filter by an exact audit action name.
|
|
4870
|
+
schema:
|
|
4871
|
+
type: string
|
|
4872
|
+
- name: actor
|
|
4873
|
+
in: query
|
|
4874
|
+
description: Filter by an exact stable actor identifier.
|
|
4875
|
+
schema:
|
|
4876
|
+
type: string
|
|
4877
|
+
- name: target
|
|
4878
|
+
in: query
|
|
4879
|
+
description: Filter by an exact stable target identifier.
|
|
4880
|
+
schema:
|
|
4881
|
+
type: string
|
|
4882
|
+
responses:
|
|
4883
|
+
"200":
|
|
4884
|
+
description: Paginated audit events.
|
|
4885
|
+
content:
|
|
4886
|
+
application/json:
|
|
4887
|
+
schema:
|
|
4888
|
+
allOf:
|
|
4889
|
+
- $ref: "#/components/schemas/List"
|
|
4890
|
+
- type: object
|
|
4891
|
+
properties:
|
|
4892
|
+
items:
|
|
4893
|
+
type: array
|
|
4894
|
+
items:
|
|
4895
|
+
$ref: "#/components/schemas/AuditEvent"
|
|
4896
|
+
required:
|
|
4897
|
+
- items
|
|
4898
|
+
"400":
|
|
4899
|
+
$ref: "#/components/responses/BadRequestError"
|
|
4900
|
+
"401":
|
|
4901
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
4902
|
+
"403":
|
|
4903
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
4904
|
+
"404":
|
|
4905
|
+
$ref: "#/components/responses/NotFoundError"
|
|
4906
|
+
/orgs/{organizationId}/audit-events/{auditEventId}:
|
|
4907
|
+
get:
|
|
4908
|
+
operationId: getOrganizationAuditEvent
|
|
4909
|
+
x-gitbook-mcp: true
|
|
4910
|
+
summary: Get an organization audit event
|
|
4911
|
+
description: |
|
|
4912
|
+
Returns the full allowlisted payload for one recorded organization change. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.
|
|
4913
|
+
tags:
|
|
4914
|
+
- organizations
|
|
4915
|
+
security:
|
|
4916
|
+
- user: []
|
|
4917
|
+
parameters:
|
|
4918
|
+
- $ref: "#/components/parameters/organizationId"
|
|
4919
|
+
- name: auditEventId
|
|
4920
|
+
in: path
|
|
4921
|
+
required: true
|
|
4922
|
+
description: Unique identifier of the audit event.
|
|
4923
|
+
schema:
|
|
4924
|
+
type: string
|
|
4925
|
+
format: uuid
|
|
4926
|
+
responses:
|
|
4927
|
+
"200":
|
|
4928
|
+
description: The audit event.
|
|
4929
|
+
content:
|
|
4930
|
+
application/json:
|
|
4931
|
+
schema:
|
|
4932
|
+
$ref: "#/components/schemas/AuditEventDetails"
|
|
4933
|
+
"401":
|
|
4934
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
4935
|
+
"403":
|
|
4936
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
4937
|
+
"404":
|
|
4938
|
+
$ref: "#/components/responses/NotFoundError"
|
|
4753
4939
|
/orgs/{organizationId}/styleguides:
|
|
4754
4940
|
get:
|
|
4755
4941
|
operationId: listOrganizationStyleguides
|
|
4756
|
-
summary: List all
|
|
4942
|
+
summary: List all style guides in an organization
|
|
4757
4943
|
description: |
|
|
4758
|
-
Lists every
|
|
4944
|
+
Lists every style guide (a space holding a team's writing style guide) in the organization, along with every site that references each one. Style guides that are not referenced by any site are still returned with an empty `sites` list.
|
|
4759
4945
|
x-gitbook-mcp: true
|
|
4760
4946
|
tags:
|
|
4761
4947
|
- organizations
|
|
@@ -4775,9 +4961,9 @@ paths:
|
|
|
4775
4961
|
/orgs/{organizationId}/styleguide-templates:
|
|
4776
4962
|
get:
|
|
4777
4963
|
operationId: listStyleguideTemplates
|
|
4778
|
-
summary: List all built-in
|
|
4964
|
+
summary: List all built-in style guide templates
|
|
4779
4965
|
description: |
|
|
4780
|
-
Lists the built-in
|
|
4966
|
+
Lists the built-in style guide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview.
|
|
4781
4967
|
x-gitbook-mcp: true
|
|
4782
4968
|
tags:
|
|
4783
4969
|
- organizations
|
|
@@ -5833,6 +6019,7 @@ paths:
|
|
|
5833
6019
|
get:
|
|
5834
6020
|
operationId: listOrganizationIntegrationsStatus
|
|
5835
6021
|
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.
|
|
5836
6023
|
tags:
|
|
5837
6024
|
- integrations
|
|
5838
6025
|
- critical
|
|
@@ -5850,6 +6037,16 @@ paths:
|
|
|
5850
6037
|
- organization
|
|
5851
6038
|
- space
|
|
5852
6039
|
- site
|
|
6040
|
+
- name: site
|
|
6041
|
+
in: query
|
|
6042
|
+
description: Return installations for this site. Only valid when target is site.
|
|
6043
|
+
schema:
|
|
6044
|
+
type: string
|
|
6045
|
+
- name: space
|
|
6046
|
+
in: query
|
|
6047
|
+
description: Return installations for this space. Only valid when target is space.
|
|
6048
|
+
schema:
|
|
6049
|
+
type: string
|
|
5853
6050
|
responses:
|
|
5854
6051
|
"200":
|
|
5855
6052
|
description: List of installed integrations and their statuses
|
|
@@ -6947,6 +7144,67 @@ paths:
|
|
|
6947
7144
|
"205":
|
|
6948
7145
|
description: Custom font deleted successfully.
|
|
6949
7146
|
/org/{organizationId}/imports:
|
|
7147
|
+
get:
|
|
7148
|
+
operationId: listImportRuns
|
|
7149
|
+
summary: List the import runs of an organization
|
|
7150
|
+
description: |
|
|
7151
|
+
Returns the import runs of the organization, most recent first. Runs left behind by an import that never reported back are returned as failed.
|
|
7152
|
+
tags:
|
|
7153
|
+
- imports
|
|
7154
|
+
x-gitbook-mcp: true
|
|
7155
|
+
security:
|
|
7156
|
+
- user: []
|
|
7157
|
+
- oauth:
|
|
7158
|
+
- space:read
|
|
7159
|
+
parameters:
|
|
7160
|
+
- $ref: "#/components/parameters/organizationId"
|
|
7161
|
+
- name: space
|
|
7162
|
+
in: query
|
|
7163
|
+
description: Only return the import runs targeting this space.
|
|
7164
|
+
schema:
|
|
7165
|
+
type: string
|
|
7166
|
+
- name: changeRequest
|
|
7167
|
+
in: query
|
|
7168
|
+
description: Only return the import runs targeting this change request.
|
|
7169
|
+
schema:
|
|
7170
|
+
type: string
|
|
7171
|
+
- name: site
|
|
7172
|
+
in: query
|
|
7173
|
+
description: Only return the import runs targeting a space of this site.
|
|
7174
|
+
schema:
|
|
7175
|
+
type: string
|
|
7176
|
+
- name: status
|
|
7177
|
+
in: query
|
|
7178
|
+
description: Only return the import runs in this status. `active` covers both `pending` and `in-progress`.
|
|
7179
|
+
schema:
|
|
7180
|
+
type: string
|
|
7181
|
+
enum:
|
|
7182
|
+
- active
|
|
7183
|
+
- pending
|
|
7184
|
+
- in-progress
|
|
7185
|
+
- completed
|
|
7186
|
+
- failed
|
|
7187
|
+
- cancelled
|
|
7188
|
+
- $ref: "#/components/parameters/listPage"
|
|
7189
|
+
- $ref: "#/components/parameters/listLimit"
|
|
7190
|
+
responses:
|
|
7191
|
+
"200":
|
|
7192
|
+
description: OK
|
|
7193
|
+
content:
|
|
7194
|
+
application/json:
|
|
7195
|
+
schema:
|
|
7196
|
+
allOf:
|
|
7197
|
+
- $ref: "#/components/schemas/List"
|
|
7198
|
+
- type: object
|
|
7199
|
+
required:
|
|
7200
|
+
- items
|
|
7201
|
+
properties:
|
|
7202
|
+
items:
|
|
7203
|
+
type: array
|
|
7204
|
+
items:
|
|
7205
|
+
$ref: "#/components/schemas/ContentImportRun"
|
|
7206
|
+
"404":
|
|
7207
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6950
7208
|
post:
|
|
6951
7209
|
operationId: startImportRun
|
|
6952
7210
|
summary: Import content into a space from a website
|
|
@@ -6969,6 +7227,9 @@ paths:
|
|
|
6969
7227
|
$ref: "#/components/schemas/ContentImportSource"
|
|
6970
7228
|
target:
|
|
6971
7229
|
$ref: "#/components/schemas/ContentImportTarget"
|
|
7230
|
+
site:
|
|
7231
|
+
description: ID of the site the import is for, to list it among that site's imports. Only needed when the target space does not belong to the site yet — a site being set up, whose space is attached once the import has started. Otherwise the site is resolved from the space.
|
|
7232
|
+
type: string
|
|
6972
7233
|
enhance:
|
|
6973
7234
|
description: Enhance the imported content with AI
|
|
6974
7235
|
default: true
|
|
@@ -6987,6 +7248,31 @@ paths:
|
|
|
6987
7248
|
$ref: "#/components/responses/BadRequestError"
|
|
6988
7249
|
"404":
|
|
6989
7250
|
$ref: "#/components/responses/NotFoundError"
|
|
7251
|
+
/org/{organizationId}/imports/{importRunId}:
|
|
7252
|
+
get:
|
|
7253
|
+
operationId: getImportRun
|
|
7254
|
+
summary: Get an import run
|
|
7255
|
+
description: |
|
|
7256
|
+
Returns the import run. A run left behind by an import that never reported back is returned as failed.
|
|
7257
|
+
tags:
|
|
7258
|
+
- imports
|
|
7259
|
+
x-gitbook-mcp: true
|
|
7260
|
+
security:
|
|
7261
|
+
- user: []
|
|
7262
|
+
- oauth:
|
|
7263
|
+
- space:read
|
|
7264
|
+
parameters:
|
|
7265
|
+
- $ref: "#/components/parameters/organizationId"
|
|
7266
|
+
- $ref: "#/components/parameters/importRunId"
|
|
7267
|
+
responses:
|
|
7268
|
+
"200":
|
|
7269
|
+
description: OK
|
|
7270
|
+
content:
|
|
7271
|
+
application/json:
|
|
7272
|
+
schema:
|
|
7273
|
+
$ref: "#/components/schemas/ContentImportRun"
|
|
7274
|
+
"404":
|
|
7275
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6990
7276
|
/org/{organizationId}/imports/{importRunId}/cancel:
|
|
6991
7277
|
post:
|
|
6992
7278
|
operationId: cancelImportRun
|
|
@@ -6999,7 +7285,7 @@ paths:
|
|
|
6999
7285
|
- $ref: "#/components/parameters/organizationId"
|
|
7000
7286
|
- $ref: "#/components/parameters/importRunId"
|
|
7001
7287
|
responses:
|
|
7002
|
-
"
|
|
7288
|
+
"200":
|
|
7003
7289
|
description: Import run canceled successfully.
|
|
7004
7290
|
content:
|
|
7005
7291
|
application/json:
|
|
@@ -7181,7 +7467,7 @@ paths:
|
|
|
7181
7467
|
- type: "null"
|
|
7182
7468
|
styleguide:
|
|
7183
7469
|
description: |
|
|
7184
|
-
Attach an existing
|
|
7470
|
+
Attach an existing style guide to the site by the ID of the style guide space, or `null` to detach the current one. The space must be a style guide owned by the same organization.
|
|
7185
7471
|
oneOf:
|
|
7186
7472
|
- type: string
|
|
7187
7473
|
- type: "null"
|
|
@@ -7577,6 +7863,7 @@ paths:
|
|
|
7577
7863
|
summary: Move a site space, section, or section group to a new position
|
|
7578
7864
|
description: Reorders an item in the site's navigation structure by moving a site space, section, or section group to a specified position relative to another item. Use this to reorganize the navigation order after adding new sections or to reflect a new content hierarchy.
|
|
7579
7865
|
x-gitbook-mcp: true
|
|
7866
|
+
x-gitbook-return-preference: true
|
|
7580
7867
|
tags:
|
|
7581
7868
|
- sites
|
|
7582
7869
|
security:
|
|
@@ -7586,6 +7873,7 @@ paths:
|
|
|
7586
7873
|
parameters:
|
|
7587
7874
|
- $ref: "#/components/parameters/organizationId"
|
|
7588
7875
|
- $ref: "#/components/parameters/siteId"
|
|
7876
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
7589
7877
|
requestBody:
|
|
7590
7878
|
content:
|
|
7591
7879
|
application/json:
|
|
@@ -7608,6 +7896,11 @@ paths:
|
|
|
7608
7896
|
application/json:
|
|
7609
7897
|
schema:
|
|
7610
7898
|
$ref: "#/components/schemas/SiteStructureItem"
|
|
7899
|
+
"204":
|
|
7900
|
+
description: Item moved without returning its representation
|
|
7901
|
+
headers:
|
|
7902
|
+
Preference-Applied:
|
|
7903
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
7611
7904
|
"400":
|
|
7612
7905
|
description: Invalid move position provided
|
|
7613
7906
|
$ref: "#/components/responses/BadRequestError"
|
|
@@ -7863,6 +8156,7 @@ paths:
|
|
|
7863
8156
|
summary: Add a space to a site as a content source
|
|
7864
8157
|
description: Links an existing space to the site by creating a site space relationship.
|
|
7865
8158
|
x-gitbook-mcp: true
|
|
8159
|
+
x-gitbook-return-preference: true
|
|
7866
8160
|
tags:
|
|
7867
8161
|
- site-spaces
|
|
7868
8162
|
security:
|
|
@@ -7872,6 +8166,7 @@ paths:
|
|
|
7872
8166
|
parameters:
|
|
7873
8167
|
- $ref: "#/components/parameters/organizationId"
|
|
7874
8168
|
- $ref: "#/components/parameters/siteId"
|
|
8169
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
7875
8170
|
requestBody:
|
|
7876
8171
|
required: true
|
|
7877
8172
|
content:
|
|
@@ -7894,6 +8189,8 @@ paths:
|
|
|
7894
8189
|
- type: string
|
|
7895
8190
|
- type: "null"
|
|
7896
8191
|
description: Custom home page within the space, rendered at the site space's path root instead of the space's default landing page.
|
|
8192
|
+
title:
|
|
8193
|
+
$ref: "#/components/schemas/SiteTitle"
|
|
7897
8194
|
required:
|
|
7898
8195
|
- spaceId
|
|
7899
8196
|
responses:
|
|
@@ -7908,6 +8205,11 @@ paths:
|
|
|
7908
8205
|
application/json:
|
|
7909
8206
|
schema:
|
|
7910
8207
|
$ref: "#/components/schemas/SiteSpace"
|
|
8208
|
+
"204":
|
|
8209
|
+
description: Space added to the site without returning its representation
|
|
8210
|
+
headers:
|
|
8211
|
+
Preference-Applied:
|
|
8212
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
7911
8213
|
get:
|
|
7912
8214
|
operationId: listSiteSpaces
|
|
7913
8215
|
summary: List all spaces linked to a site as content sources
|
|
@@ -8038,6 +8340,7 @@ paths:
|
|
|
8038
8340
|
summary: Update a section group in a site's navigation structure
|
|
8039
8341
|
description: Updates a section group's properties in the site's navigation structure.
|
|
8040
8342
|
x-gitbook-mcp: true
|
|
8343
|
+
x-gitbook-return-preference: true
|
|
8041
8344
|
tags:
|
|
8042
8345
|
- site-section-groups
|
|
8043
8346
|
security:
|
|
@@ -8048,6 +8351,7 @@ paths:
|
|
|
8048
8351
|
- $ref: "#/components/parameters/organizationId"
|
|
8049
8352
|
- $ref: "#/components/parameters/siteId"
|
|
8050
8353
|
- $ref: "#/components/parameters/siteSectionGroupId"
|
|
8354
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
8051
8355
|
requestBody:
|
|
8052
8356
|
required: true
|
|
8053
8357
|
content:
|
|
@@ -8073,6 +8377,11 @@ paths:
|
|
|
8073
8377
|
application/json:
|
|
8074
8378
|
schema:
|
|
8075
8379
|
$ref: "#/components/schemas/SiteSectionGroup"
|
|
8380
|
+
"204":
|
|
8381
|
+
description: Site section group updated without returning its representation
|
|
8382
|
+
headers:
|
|
8383
|
+
Preference-Applied:
|
|
8384
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
8076
8385
|
delete:
|
|
8077
8386
|
operationId: deleteSiteSectionGroupById
|
|
8078
8387
|
summary: Delete a site section group
|
|
@@ -8127,6 +8436,9 @@ paths:
|
|
|
8127
8436
|
draft:
|
|
8128
8437
|
type: boolean
|
|
8129
8438
|
description: Whether the section should be created in draft mode.
|
|
8439
|
+
pageId:
|
|
8440
|
+
type: string
|
|
8441
|
+
description: Custom home page within the space, rendered at the section's path root instead of the space's default landing page.
|
|
8130
8442
|
siteSectionGroupId:
|
|
8131
8443
|
type: string
|
|
8132
8444
|
description: ID of the section group to create the section in
|
|
@@ -8183,6 +8495,7 @@ paths:
|
|
|
8183
8495
|
summary: Update a navigation section in a site
|
|
8184
8496
|
description: Updates a navigation section's configuration in the site structure.
|
|
8185
8497
|
x-gitbook-mcp: true
|
|
8498
|
+
x-gitbook-return-preference: true
|
|
8186
8499
|
tags:
|
|
8187
8500
|
- site-sections
|
|
8188
8501
|
security:
|
|
@@ -8193,6 +8506,7 @@ paths:
|
|
|
8193
8506
|
- $ref: "#/components/parameters/organizationId"
|
|
8194
8507
|
- $ref: "#/components/parameters/siteId"
|
|
8195
8508
|
- $ref: "#/components/parameters/siteSectionId"
|
|
8509
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
8196
8510
|
requestBody:
|
|
8197
8511
|
required: true
|
|
8198
8512
|
content:
|
|
@@ -8239,6 +8553,11 @@ paths:
|
|
|
8239
8553
|
application/json:
|
|
8240
8554
|
schema:
|
|
8241
8555
|
$ref: "#/components/schemas/SiteSection"
|
|
8556
|
+
"204":
|
|
8557
|
+
description: Site section updated without returning its representation
|
|
8558
|
+
headers:
|
|
8559
|
+
Preference-Applied:
|
|
8560
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
8242
8561
|
delete:
|
|
8243
8562
|
operationId: deleteSiteSectionById
|
|
8244
8563
|
summary: Delete a site section
|
|
@@ -8391,6 +8710,10 @@ paths:
|
|
|
8391
8710
|
pageId:
|
|
8392
8711
|
description: ID of the page the feedback is about.
|
|
8393
8712
|
type: string
|
|
8713
|
+
source:
|
|
8714
|
+
description: |
|
|
8715
|
+
Surface the feedback was submitted from. When omitted, the feedback is recorded with an unknown source.
|
|
8716
|
+
$ref: "#/components/schemas/AgentFeedbackSource"
|
|
8394
8717
|
required:
|
|
8395
8718
|
- feedback
|
|
8396
8719
|
- url
|
|
@@ -8658,6 +8981,11 @@ paths:
|
|
|
8658
8981
|
description: Filter findings by associated site topic ID.
|
|
8659
8982
|
schema:
|
|
8660
8983
|
type: string
|
|
8984
|
+
- name: question
|
|
8985
|
+
in: query
|
|
8986
|
+
description: Filter findings that reference the given site question ID as evidence.
|
|
8987
|
+
schema:
|
|
8988
|
+
type: string
|
|
8661
8989
|
- name: status
|
|
8662
8990
|
in: query
|
|
8663
8991
|
description: Filter findings by status.
|
|
@@ -8665,9 +8993,11 @@ paths:
|
|
|
8665
8993
|
$ref: "#/components/schemas/SiteFindingStatus"
|
|
8666
8994
|
- name: type
|
|
8667
8995
|
in: query
|
|
8668
|
-
description: Filter findings by type.
|
|
8996
|
+
description: Filter findings by type. When multiple types are given, findings matching any of them are returned.
|
|
8669
8997
|
schema:
|
|
8670
|
-
|
|
8998
|
+
type: array
|
|
8999
|
+
items:
|
|
9000
|
+
$ref: "#/components/schemas/SiteFindingType"
|
|
8671
9001
|
- name: severity
|
|
8672
9002
|
in: query
|
|
8673
9003
|
description: Filter findings by estimated severity.
|
|
@@ -8942,9 +9272,11 @@ paths:
|
|
|
8942
9272
|
$ref: "#/components/schemas/SiteFindingStatus"
|
|
8943
9273
|
- name: type
|
|
8944
9274
|
in: query
|
|
8945
|
-
description: Filter findings by type.
|
|
9275
|
+
description: Filter findings by type. When multiple types are given, findings matching any of them are returned.
|
|
8946
9276
|
schema:
|
|
8947
|
-
|
|
9277
|
+
type: array
|
|
9278
|
+
items:
|
|
9279
|
+
$ref: "#/components/schemas/SiteFindingType"
|
|
8948
9280
|
- name: severity
|
|
8949
9281
|
in: query
|
|
8950
9282
|
description: Filter findings by estimated severity.
|
|
@@ -9706,6 +10038,7 @@ paths:
|
|
|
9706
10038
|
summary: Update a space linked to a site
|
|
9707
10039
|
description: Updates the configuration of a site space. Use this to remap a site space to a different space, hide it from navigation, or promote it from draft to live.
|
|
9708
10040
|
x-gitbook-mcp: true
|
|
10041
|
+
x-gitbook-return-preference: true
|
|
9709
10042
|
tags:
|
|
9710
10043
|
- site-spaces
|
|
9711
10044
|
security:
|
|
@@ -9716,6 +10049,7 @@ paths:
|
|
|
9716
10049
|
- $ref: "#/components/parameters/organizationId"
|
|
9717
10050
|
- $ref: "#/components/parameters/siteId"
|
|
9718
10051
|
- $ref: "#/components/parameters/siteSpaceId"
|
|
10052
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
9719
10053
|
requestBody:
|
|
9720
10054
|
required: true
|
|
9721
10055
|
content:
|
|
@@ -9751,6 +10085,11 @@ paths:
|
|
|
9751
10085
|
application/json:
|
|
9752
10086
|
schema:
|
|
9753
10087
|
$ref: "#/components/schemas/SiteSpace"
|
|
10088
|
+
"204":
|
|
10089
|
+
description: Site space updated without returning its representation
|
|
10090
|
+
headers:
|
|
10091
|
+
Preference-Applied:
|
|
10092
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
9754
10093
|
delete:
|
|
9755
10094
|
operationId: deleteSiteSpaceById
|
|
9756
10095
|
summary: Delete a site space
|
|
@@ -10603,8 +10942,8 @@ paths:
|
|
|
10603
10942
|
/orgs/{organizationId}/sites/{siteId}/styleguide:
|
|
10604
10943
|
post:
|
|
10605
10944
|
operationId: createSiteStyleguideById
|
|
10606
|
-
summary: Create or retrieve the
|
|
10607
|
-
description: Ensures the site has a dedicated
|
|
10945
|
+
summary: Create or retrieve the style guide space for a site
|
|
10946
|
+
description: Ensures the site has a dedicated style guide space and returns it. The style guide defines writing style and tone guidelines that the AI editor agent references when generating or refining content for the site. If a style guide already exists, this is idempotent and returns the existing space.
|
|
10608
10947
|
x-gitbook-mcp: true
|
|
10609
10948
|
tags:
|
|
10610
10949
|
- sites
|
|
@@ -10625,10 +10964,10 @@ paths:
|
|
|
10625
10964
|
template:
|
|
10626
10965
|
type: string
|
|
10627
10966
|
description: |
|
|
10628
|
-
Built-in template id to seed the
|
|
10967
|
+
Built-in template id to seed the style guide content with. Omit (or send no body) to create a blank style guide.
|
|
10629
10968
|
responses:
|
|
10630
10969
|
"200":
|
|
10631
|
-
description:
|
|
10970
|
+
description: Style guide created or already exists.
|
|
10632
10971
|
content:
|
|
10633
10972
|
application/json:
|
|
10634
10973
|
schema:
|
|
@@ -11832,6 +12171,12 @@ paths:
|
|
|
11832
12171
|
patch:
|
|
11833
12172
|
operationId: updateGitSyncInstallationById
|
|
11834
12173
|
summary: Update a Git Sync installation configuration
|
|
12174
|
+
description: |
|
|
12175
|
+
Updates the installation configuration, then queues a sync operation using the new settings.
|
|
12176
|
+
A `git` priority queues an import from the selected repository and branch into GitBook; a
|
|
12177
|
+
`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
|
|
12179
|
+
queuing the sync when the file is missing.
|
|
11835
12180
|
tags:
|
|
11836
12181
|
- git
|
|
11837
12182
|
security:
|
|
@@ -11864,7 +12209,42 @@ paths:
|
|
|
11864
12209
|
"404":
|
|
11865
12210
|
$ref: "#/components/responses/NotFoundError"
|
|
11866
12211
|
"409":
|
|
11867
|
-
|
|
12212
|
+
description: The site Git Sync configuration is missing from the repository
|
|
12213
|
+
content:
|
|
12214
|
+
application/json:
|
|
12215
|
+
schema:
|
|
12216
|
+
allOf:
|
|
12217
|
+
- $ref: "#/components/schemas/Error"
|
|
12218
|
+
- type: object
|
|
12219
|
+
required:
|
|
12220
|
+
- error
|
|
12221
|
+
properties:
|
|
12222
|
+
error:
|
|
12223
|
+
type: object
|
|
12224
|
+
required:
|
|
12225
|
+
- type
|
|
12226
|
+
- details
|
|
12227
|
+
properties:
|
|
12228
|
+
type:
|
|
12229
|
+
type: string
|
|
12230
|
+
enum:
|
|
12231
|
+
- missing_site_git_sync_config
|
|
12232
|
+
details:
|
|
12233
|
+
type: object
|
|
12234
|
+
required:
|
|
12235
|
+
- path
|
|
12236
|
+
- branch
|
|
12237
|
+
- prompt
|
|
12238
|
+
properties:
|
|
12239
|
+
path:
|
|
12240
|
+
type: string
|
|
12241
|
+
description: Repository-relative path where `docs.yaml` is required.
|
|
12242
|
+
branch:
|
|
12243
|
+
type: string
|
|
12244
|
+
description: Repository branch where `docs.yaml` is required.
|
|
12245
|
+
prompt:
|
|
12246
|
+
type: string
|
|
12247
|
+
description: Prompt for a coding agent to create and commit the missing file.
|
|
11868
12248
|
delete:
|
|
11869
12249
|
operationId: uninstallGitSyncInstallation
|
|
11870
12250
|
summary: Uninstall a Git Sync installation
|
|
@@ -11945,21 +12325,62 @@ paths:
|
|
|
11945
12325
|
$ref: "#/components/responses/UnauthorizedError"
|
|
11946
12326
|
"404":
|
|
11947
12327
|
$ref: "#/components/responses/NotFoundError"
|
|
11948
|
-
/git/installations/{installationId}/
|
|
12328
|
+
/git/installations/{installationId}/github/repos/{accountName}/{repositoryName}/file:
|
|
11949
12329
|
get:
|
|
11950
|
-
operationId:
|
|
11951
|
-
summary:
|
|
12330
|
+
operationId: getGitHubRepoFileForGitSyncInstallation
|
|
12331
|
+
summary: Get a file from a GitHub repository for a Git Sync installation
|
|
11952
12332
|
tags:
|
|
11953
12333
|
- git
|
|
11954
12334
|
security:
|
|
11955
12335
|
- user: []
|
|
11956
12336
|
parameters:
|
|
11957
12337
|
- $ref: "#/components/parameters/installationId"
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
12338
|
+
- name: accountName
|
|
12339
|
+
in: path
|
|
12340
|
+
required: true
|
|
12341
|
+
schema:
|
|
12342
|
+
type: string
|
|
12343
|
+
- name: repositoryName
|
|
12344
|
+
in: path
|
|
12345
|
+
required: true
|
|
12346
|
+
schema:
|
|
12347
|
+
type: string
|
|
12348
|
+
- name: path
|
|
12349
|
+
in: query
|
|
12350
|
+
required: true
|
|
12351
|
+
schema:
|
|
12352
|
+
type: string
|
|
12353
|
+
- name: ref
|
|
12354
|
+
in: query
|
|
12355
|
+
required: true
|
|
12356
|
+
schema:
|
|
12357
|
+
type: string
|
|
12358
|
+
responses:
|
|
12359
|
+
"200":
|
|
12360
|
+
description: File found in the selected GitHub repository
|
|
12361
|
+
content:
|
|
12362
|
+
application/json:
|
|
12363
|
+
schema:
|
|
12364
|
+
$ref: "#/components/schemas/GitSyncRepositoryFile"
|
|
12365
|
+
"401":
|
|
12366
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
12367
|
+
"404":
|
|
12368
|
+
$ref: "#/components/responses/NotFoundError"
|
|
12369
|
+
/git/installations/{installationId}/gitlab/projects:
|
|
12370
|
+
get:
|
|
12371
|
+
operationId: listGitLabProjectsForGitSyncInstallation
|
|
12372
|
+
summary: List GitLab projects available for a Git Sync installation
|
|
12373
|
+
tags:
|
|
12374
|
+
- git
|
|
12375
|
+
security:
|
|
12376
|
+
- user: []
|
|
12377
|
+
parameters:
|
|
12378
|
+
- $ref: "#/components/parameters/installationId"
|
|
12379
|
+
responses:
|
|
12380
|
+
"200":
|
|
12381
|
+
description: GitLab projects available for the Git Sync installation
|
|
12382
|
+
content:
|
|
12383
|
+
application/json:
|
|
11963
12384
|
schema:
|
|
11964
12385
|
type: object
|
|
11965
12386
|
properties:
|
|
@@ -12006,6 +12427,42 @@ paths:
|
|
|
12006
12427
|
$ref: "#/components/responses/UnauthorizedError"
|
|
12007
12428
|
"404":
|
|
12008
12429
|
$ref: "#/components/responses/NotFoundError"
|
|
12430
|
+
/git/installations/{installationId}/gitlab/projects/{projectId}/file:
|
|
12431
|
+
get:
|
|
12432
|
+
operationId: getGitLabProjectFileForGitSyncInstallation
|
|
12433
|
+
summary: Get a file from a GitLab project for a Git Sync installation
|
|
12434
|
+
tags:
|
|
12435
|
+
- git
|
|
12436
|
+
security:
|
|
12437
|
+
- user: []
|
|
12438
|
+
parameters:
|
|
12439
|
+
- $ref: "#/components/parameters/installationId"
|
|
12440
|
+
- name: projectId
|
|
12441
|
+
in: path
|
|
12442
|
+
required: true
|
|
12443
|
+
schema:
|
|
12444
|
+
type: number
|
|
12445
|
+
- name: path
|
|
12446
|
+
in: query
|
|
12447
|
+
required: true
|
|
12448
|
+
schema:
|
|
12449
|
+
type: string
|
|
12450
|
+
- name: ref
|
|
12451
|
+
in: query
|
|
12452
|
+
required: true
|
|
12453
|
+
schema:
|
|
12454
|
+
type: string
|
|
12455
|
+
responses:
|
|
12456
|
+
"200":
|
|
12457
|
+
description: File found in the selected GitLab project
|
|
12458
|
+
content:
|
|
12459
|
+
application/json:
|
|
12460
|
+
schema:
|
|
12461
|
+
$ref: "#/components/schemas/GitSyncRepositoryFile"
|
|
12462
|
+
"401":
|
|
12463
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
12464
|
+
"404":
|
|
12465
|
+
$ref: "#/components/responses/NotFoundError"
|
|
12009
12466
|
components:
|
|
12010
12467
|
securitySchemes:
|
|
12011
12468
|
user:
|
|
@@ -12213,6 +12670,16 @@ components:
|
|
|
12213
12670
|
description: The unique ID of the change request or its number identifier in the space
|
|
12214
12671
|
schema:
|
|
12215
12672
|
$ref: "#/components/schemas/EntityId"
|
|
12673
|
+
returnPreference:
|
|
12674
|
+
in: header
|
|
12675
|
+
name: prefer
|
|
12676
|
+
description: Control whether a successful response includes the updated resource representation.
|
|
12677
|
+
required: false
|
|
12678
|
+
schema:
|
|
12679
|
+
type: string
|
|
12680
|
+
enum:
|
|
12681
|
+
- return=minimal
|
|
12682
|
+
- return=representation
|
|
12216
12683
|
reviewId:
|
|
12217
12684
|
name: reviewId
|
|
12218
12685
|
in: path
|
|
@@ -13006,6 +13473,20 @@ components:
|
|
|
13006
13473
|
enum:
|
|
13007
13474
|
- export
|
|
13008
13475
|
- import
|
|
13476
|
+
GitSyncOperationErrorAction:
|
|
13477
|
+
type: object
|
|
13478
|
+
description: An action the user can take to resolve a failed Git Sync operation.
|
|
13479
|
+
properties:
|
|
13480
|
+
label:
|
|
13481
|
+
type: string
|
|
13482
|
+
description: Label for the action.
|
|
13483
|
+
url:
|
|
13484
|
+
type: string
|
|
13485
|
+
format: uri
|
|
13486
|
+
description: URL where the user can resolve the failure.
|
|
13487
|
+
required:
|
|
13488
|
+
- label
|
|
13489
|
+
- url
|
|
13009
13490
|
GitSyncState:
|
|
13010
13491
|
type: object
|
|
13011
13492
|
properties:
|
|
@@ -13044,6 +13525,8 @@ components:
|
|
|
13044
13525
|
error:
|
|
13045
13526
|
type: string
|
|
13046
13527
|
description: Why the operation failed, when it did.
|
|
13528
|
+
errorAction:
|
|
13529
|
+
$ref: "#/components/schemas/GitSyncOperationErrorAction"
|
|
13047
13530
|
required:
|
|
13048
13531
|
- state
|
|
13049
13532
|
- direction
|
|
@@ -13055,6 +13538,137 @@ components:
|
|
|
13055
13538
|
- installationId
|
|
13056
13539
|
- installationProvider
|
|
13057
13540
|
- installationStatus
|
|
13541
|
+
ContentImportSource:
|
|
13542
|
+
oneOf:
|
|
13543
|
+
- type: object
|
|
13544
|
+
properties:
|
|
13545
|
+
type:
|
|
13546
|
+
type: string
|
|
13547
|
+
enum:
|
|
13548
|
+
- website
|
|
13549
|
+
url:
|
|
13550
|
+
$ref: "#/components/schemas/URL"
|
|
13551
|
+
required:
|
|
13552
|
+
- type
|
|
13553
|
+
- url
|
|
13554
|
+
- type: object
|
|
13555
|
+
properties:
|
|
13556
|
+
type:
|
|
13557
|
+
type: string
|
|
13558
|
+
enum:
|
|
13559
|
+
- file
|
|
13560
|
+
files:
|
|
13561
|
+
description: Files to import
|
|
13562
|
+
type: array
|
|
13563
|
+
maxItems: 50
|
|
13564
|
+
items:
|
|
13565
|
+
description: Key of file
|
|
13566
|
+
type: string
|
|
13567
|
+
required:
|
|
13568
|
+
- type
|
|
13569
|
+
- files
|
|
13570
|
+
ContentImportTarget:
|
|
13571
|
+
type: object
|
|
13572
|
+
properties:
|
|
13573
|
+
space:
|
|
13574
|
+
type: string
|
|
13575
|
+
description: ID of the space to import in
|
|
13576
|
+
changeRequest:
|
|
13577
|
+
type: string
|
|
13578
|
+
description: ID of the change request to import in
|
|
13579
|
+
page:
|
|
13580
|
+
type: string
|
|
13581
|
+
description: ID of the page to import in
|
|
13582
|
+
required:
|
|
13583
|
+
- space
|
|
13584
|
+
ContentImportRun:
|
|
13585
|
+
type: object
|
|
13586
|
+
properties:
|
|
13587
|
+
object:
|
|
13588
|
+
description: Type of Object, always equals to "import-run"
|
|
13589
|
+
type: string
|
|
13590
|
+
enum:
|
|
13591
|
+
- import-run
|
|
13592
|
+
id:
|
|
13593
|
+
description: Unique ID of the import
|
|
13594
|
+
type: string
|
|
13595
|
+
startedAt:
|
|
13596
|
+
description: Date when the import has started
|
|
13597
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13598
|
+
completedAt:
|
|
13599
|
+
description: Filled when the imported is in status "completed"
|
|
13600
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13601
|
+
createdAt:
|
|
13602
|
+
description: Date when the import was requested
|
|
13603
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13604
|
+
updatedAt:
|
|
13605
|
+
description: Date when the import was last updated
|
|
13606
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13607
|
+
status:
|
|
13608
|
+
description: Status of the import
|
|
13609
|
+
type: string
|
|
13610
|
+
enum:
|
|
13611
|
+
- pending
|
|
13612
|
+
- in-progress
|
|
13613
|
+
- completed
|
|
13614
|
+
- failed
|
|
13615
|
+
- cancelled
|
|
13616
|
+
reason:
|
|
13617
|
+
description: Reason for the import failure when `status` is `failed`.
|
|
13618
|
+
type: string
|
|
13619
|
+
source:
|
|
13620
|
+
description: Where the content is imported from.
|
|
13621
|
+
$ref: "#/components/schemas/ContentImportSource"
|
|
13622
|
+
target:
|
|
13623
|
+
description: Where the content is imported into.
|
|
13624
|
+
$ref: "#/components/schemas/ContentImportTarget"
|
|
13625
|
+
site:
|
|
13626
|
+
description: ID of the site the target space belongs to, when it belongs to exactly one.
|
|
13627
|
+
type: string
|
|
13628
|
+
createdBy:
|
|
13629
|
+
description: ID of the user who started the import.
|
|
13630
|
+
type: string
|
|
13631
|
+
urls:
|
|
13632
|
+
type: object
|
|
13633
|
+
description: URLs associated with the object
|
|
13634
|
+
properties:
|
|
13635
|
+
location:
|
|
13636
|
+
description: URL of the import run in the API
|
|
13637
|
+
type: string
|
|
13638
|
+
format: uri
|
|
13639
|
+
required:
|
|
13640
|
+
- location
|
|
13641
|
+
pages:
|
|
13642
|
+
description: Pages included in the import
|
|
13643
|
+
type: array
|
|
13644
|
+
items:
|
|
13645
|
+
type: object
|
|
13646
|
+
properties:
|
|
13647
|
+
id:
|
|
13648
|
+
description: ID of page
|
|
13649
|
+
type: string
|
|
13650
|
+
sourceURL:
|
|
13651
|
+
description: Source URL where the page has been imported from
|
|
13652
|
+
type: string
|
|
13653
|
+
type:
|
|
13654
|
+
description: Type of page
|
|
13655
|
+
type: string
|
|
13656
|
+
enum:
|
|
13657
|
+
- page
|
|
13658
|
+
- folder
|
|
13659
|
+
status:
|
|
13660
|
+
description: Status of the page
|
|
13661
|
+
type: string
|
|
13662
|
+
enum:
|
|
13663
|
+
- complete
|
|
13664
|
+
- pending
|
|
13665
|
+
required:
|
|
13666
|
+
- id
|
|
13667
|
+
- type
|
|
13668
|
+
- status
|
|
13669
|
+
required:
|
|
13670
|
+
- id
|
|
13671
|
+
- status
|
|
13058
13672
|
VisitorAuthCustomBackend:
|
|
13059
13673
|
type: object
|
|
13060
13674
|
title: Custom backend for authenticated access
|
|
@@ -13146,7 +13760,7 @@ components:
|
|
|
13146
13760
|
$ref: "#/components/schemas/SpaceEditMode"
|
|
13147
13761
|
type:
|
|
13148
13762
|
type: string
|
|
13149
|
-
description: Kind of space. Only set to `styleguide` for spaces holding a team's writing
|
|
13763
|
+
description: Kind of space. Only set to `styleguide` for spaces holding a team's writing style guide; omitted for regular spaces.
|
|
13150
13764
|
enum:
|
|
13151
13765
|
- styleguide
|
|
13152
13766
|
mergeRules:
|
|
@@ -13187,6 +13801,12 @@ components:
|
|
|
13187
13801
|
$ref: "#/components/schemas/TranslationLanguage"
|
|
13188
13802
|
gitSync:
|
|
13189
13803
|
$ref: "#/components/schemas/GitSyncState"
|
|
13804
|
+
imports:
|
|
13805
|
+
description: |
|
|
13806
|
+
Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.
|
|
13807
|
+
type: array
|
|
13808
|
+
items:
|
|
13809
|
+
$ref: "#/components/schemas/ContentImportRun"
|
|
13190
13810
|
visitorAuth:
|
|
13191
13811
|
$ref: "#/components/schemas/VisitorAuth"
|
|
13192
13812
|
revision:
|
|
@@ -13456,10 +14076,17 @@ components:
|
|
|
13456
14076
|
type: string
|
|
13457
14077
|
title:
|
|
13458
14078
|
type: string
|
|
14079
|
+
description:
|
|
14080
|
+
type: string
|
|
14081
|
+
description: Description of the page, suitable for presenting a page-root search destination.
|
|
13459
14082
|
path:
|
|
13460
14083
|
type: string
|
|
13461
14084
|
score:
|
|
13462
14085
|
$ref: "#/components/schemas/SearchResultScore"
|
|
14086
|
+
rank:
|
|
14087
|
+
type: integer
|
|
14088
|
+
minimum: 1
|
|
14089
|
+
description: One-based position in the globally ranked result set, preserved when results are paginated and grouped by space.
|
|
13463
14090
|
resultType:
|
|
13464
14091
|
type: string
|
|
13465
14092
|
description: Whether the page matched on its own fields (title, description) or on the content of one of its sections.
|
|
@@ -13493,8 +14120,10 @@ components:
|
|
|
13493
14120
|
required:
|
|
13494
14121
|
- id
|
|
13495
14122
|
- title
|
|
14123
|
+
- description
|
|
13496
14124
|
- path
|
|
13497
14125
|
- score
|
|
14126
|
+
- rank
|
|
13498
14127
|
- ancestors
|
|
13499
14128
|
- urls
|
|
13500
14129
|
UpdateSpaceGitInfo:
|
|
@@ -17413,6 +18042,9 @@ components:
|
|
|
17413
18042
|
type: object
|
|
17414
18043
|
description: External link associated with a change request.
|
|
17415
18044
|
properties:
|
|
18045
|
+
id:
|
|
18046
|
+
type: string
|
|
18047
|
+
description: The ID of an existing link, as served on the change request. Pass it back to update that link; omit it to add a new one. Links created before links were stored individually have no ID and are matched on their URL instead.
|
|
17416
18048
|
ref:
|
|
17417
18049
|
$ref: "#/components/schemas/ContentRefURL"
|
|
17418
18050
|
title:
|
|
@@ -17489,6 +18121,9 @@ components:
|
|
|
17489
18121
|
- $ref: "#/components/schemas/ChangeRequestLinkInput"
|
|
17490
18122
|
- type: object
|
|
17491
18123
|
properties:
|
|
18124
|
+
id:
|
|
18125
|
+
type: string
|
|
18126
|
+
description: The ID of the link. Absent on links not yet stored relationally.
|
|
17492
18127
|
expanded:
|
|
17493
18128
|
$ref: "#/components/schemas/ChangeRequestLinkExpanded"
|
|
17494
18129
|
readOnly: true
|
|
@@ -17567,6 +18202,12 @@ components:
|
|
|
17567
18202
|
outdated:
|
|
17568
18203
|
type: boolean
|
|
17569
18204
|
description: If true, the change request is not up-to-date with latest changes in the main content.
|
|
18205
|
+
imports:
|
|
18206
|
+
description: |
|
|
18207
|
+
Import runs targeting this change request, still running or ended recently, most recent first. Only returned when fetching a single change request.
|
|
18208
|
+
type: array
|
|
18209
|
+
items:
|
|
18210
|
+
$ref: "#/components/schemas/ContentImportRun"
|
|
17570
18211
|
links:
|
|
17571
18212
|
$ref: "#/components/schemas/ChangeRequestLinks"
|
|
17572
18213
|
urls:
|
|
@@ -19301,7 +19942,7 @@ components:
|
|
|
19301
19942
|
- 13500_1500
|
|
19302
19943
|
- 24000_6000
|
|
19303
19944
|
- 42000_18000
|
|
19304
|
-
-
|
|
19945
|
+
- 60000_40000
|
|
19305
19946
|
OrganizationBilling:
|
|
19306
19947
|
type: object
|
|
19307
19948
|
properties:
|
|
@@ -19368,6 +20009,13 @@ components:
|
|
|
19368
20009
|
oneOf:
|
|
19369
20010
|
- $ref: "#/components/schemas/BillingCreditsBundle"
|
|
19370
20011
|
- type: "null"
|
|
20012
|
+
aiCreditAlertThreshold:
|
|
20013
|
+
description: Percentage of total AI credits remaining at which to send a low-balance alert, or null when the alert is disabled.
|
|
20014
|
+
oneOf:
|
|
20015
|
+
- type: number
|
|
20016
|
+
minimum: 0
|
|
20017
|
+
maximum: 100
|
|
20018
|
+
- type: "null"
|
|
19371
20019
|
required:
|
|
19372
20020
|
- interval
|
|
19373
20021
|
- endDate
|
|
@@ -19379,6 +20027,7 @@ components:
|
|
|
19379
20027
|
- canChangeInterval
|
|
19380
20028
|
- canUseSAML
|
|
19381
20029
|
- creditsBundle
|
|
20030
|
+
- aiCreditAlertThreshold
|
|
19382
20031
|
BillingTrialStatus:
|
|
19383
20032
|
type: string
|
|
19384
20033
|
description: |
|
|
@@ -19439,6 +20088,9 @@ components:
|
|
|
19439
20088
|
inviteLinks:
|
|
19440
20089
|
description: If true, invite links are enabled for this organization.
|
|
19441
20090
|
type: boolean
|
|
20091
|
+
auditLogs:
|
|
20092
|
+
description: Whether audit logs can currently be accessed for this organization.
|
|
20093
|
+
type: boolean
|
|
19442
20094
|
plan:
|
|
19443
20095
|
$ref: "#/components/schemas/BillingProduct"
|
|
19444
20096
|
billing:
|
|
@@ -20995,12 +21647,14 @@ components:
|
|
|
20995
21647
|
- sites-ai-search
|
|
20996
21648
|
- sites-ai-assistant
|
|
20997
21649
|
- sites-ai-insights
|
|
21650
|
+
- sites-fix-broken-links
|
|
20998
21651
|
- sites-connections
|
|
20999
21652
|
- sites-content-gaps
|
|
21000
21653
|
- sites-channels
|
|
21001
21654
|
- sites-embed
|
|
21002
21655
|
- sites-api-playground
|
|
21003
21656
|
- sites-basic-customization
|
|
21657
|
+
- sites-broken-links
|
|
21004
21658
|
- sites-custom-domain
|
|
21005
21659
|
- sites-custom-fonts
|
|
21006
21660
|
- sites-custom-subdirectory
|
|
@@ -21095,6 +21749,12 @@ components:
|
|
|
21095
21749
|
access:
|
|
21096
21750
|
type: boolean
|
|
21097
21751
|
description: Can the user access the site in the application.
|
|
21752
|
+
edit:
|
|
21753
|
+
type: boolean
|
|
21754
|
+
description: Can the user edit content associated with the site.
|
|
21755
|
+
create:
|
|
21756
|
+
type: boolean
|
|
21757
|
+
description: Can the user create content in the site.
|
|
21098
21758
|
admin:
|
|
21099
21759
|
type: boolean
|
|
21100
21760
|
description: Can the user edit the site and manage its settings.
|
|
@@ -21110,6 +21770,8 @@ components:
|
|
|
21110
21770
|
required:
|
|
21111
21771
|
- view
|
|
21112
21772
|
- access
|
|
21773
|
+
- edit
|
|
21774
|
+
- create
|
|
21113
21775
|
- admin
|
|
21114
21776
|
- installIntegration
|
|
21115
21777
|
- viewAdaptiveSchema
|
|
@@ -21137,8 +21799,8 @@ components:
|
|
|
21137
21799
|
styleguide:
|
|
21138
21800
|
$ref: "#/components/schemas/ContentRefSpace"
|
|
21139
21801
|
description: |
|
|
21140
|
-
Reference to a GitBook space holding the team's writing
|
|
21141
|
-
When present on a site, the editing agent receives the
|
|
21802
|
+
Reference to a GitBook space holding the team's writing style guide.
|
|
21803
|
+
When present on a site, the editing agent receives the style guide
|
|
21142
21804
|
table of contents in its system prompt and can fetch sections on
|
|
21143
21805
|
demand to check edits against the rules.
|
|
21144
21806
|
features:
|
|
@@ -22371,36 +23033,164 @@ components:
|
|
|
22371
23033
|
- sites
|
|
22372
23034
|
- spaces
|
|
22373
23035
|
- deletedSpaces
|
|
22374
|
-
|
|
23036
|
+
AuditEventAction:
|
|
22375
23037
|
type: object
|
|
22376
|
-
description: A styleguide space and all the sites referencing it.
|
|
22377
23038
|
properties:
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
23039
|
+
object:
|
|
23040
|
+
type: string
|
|
23041
|
+
enum:
|
|
23042
|
+
- audit-event-action
|
|
23043
|
+
id:
|
|
23044
|
+
type: string
|
|
23045
|
+
description: Stable action identifier stored on audit events.
|
|
23046
|
+
label:
|
|
23047
|
+
type: string
|
|
23048
|
+
description: Human-readable label for the action.
|
|
22385
23049
|
required:
|
|
22386
|
-
-
|
|
22387
|
-
-
|
|
22388
|
-
|
|
23050
|
+
- object
|
|
23051
|
+
- id
|
|
23052
|
+
- label
|
|
23053
|
+
AuditEventActor:
|
|
22389
23054
|
type: object
|
|
22390
23055
|
properties:
|
|
22391
|
-
|
|
22392
|
-
type:
|
|
22393
|
-
|
|
23056
|
+
type:
|
|
23057
|
+
type: string
|
|
23058
|
+
enum:
|
|
23059
|
+
- user
|
|
23060
|
+
- integration
|
|
23061
|
+
- installation
|
|
23062
|
+
- system
|
|
23063
|
+
- support
|
|
23064
|
+
description: Kind of actor that initiated the change.
|
|
23065
|
+
id:
|
|
23066
|
+
type: string
|
|
23067
|
+
description: Stable identifier of the actor.
|
|
23068
|
+
label:
|
|
23069
|
+
type: string
|
|
23070
|
+
description: Display label captured when the event was recorded.
|
|
23071
|
+
required:
|
|
23072
|
+
- type
|
|
23073
|
+
- id
|
|
23074
|
+
AuditEventTarget:
|
|
23075
|
+
type: object
|
|
23076
|
+
properties:
|
|
23077
|
+
type:
|
|
23078
|
+
type: string
|
|
23079
|
+
description: Kind of resource affected by the change.
|
|
23080
|
+
id:
|
|
23081
|
+
type: string
|
|
23082
|
+
description: Stable identifier of the affected resource.
|
|
23083
|
+
label:
|
|
23084
|
+
type: string
|
|
23085
|
+
description: Display label captured when the event was recorded.
|
|
23086
|
+
required:
|
|
23087
|
+
- type
|
|
23088
|
+
- id
|
|
23089
|
+
AuditEvent:
|
|
23090
|
+
type: object
|
|
23091
|
+
properties:
|
|
23092
|
+
object:
|
|
23093
|
+
type: string
|
|
23094
|
+
enum:
|
|
23095
|
+
- audit-event
|
|
23096
|
+
id:
|
|
23097
|
+
type: string
|
|
23098
|
+
format: uuid
|
|
23099
|
+
description: Unique identifier of the audit event.
|
|
23100
|
+
occurredAt:
|
|
23101
|
+
$ref: "#/components/schemas/Timestamp"
|
|
23102
|
+
action:
|
|
23103
|
+
type: string
|
|
23104
|
+
description: Stable action name describing the recorded change.
|
|
23105
|
+
actor:
|
|
23106
|
+
$ref: "#/components/schemas/AuditEventActor"
|
|
23107
|
+
source:
|
|
23108
|
+
type: string
|
|
23109
|
+
enum:
|
|
23110
|
+
- ui
|
|
23111
|
+
- api
|
|
23112
|
+
- integration
|
|
23113
|
+
- webhook
|
|
23114
|
+
- workflow
|
|
23115
|
+
- script
|
|
23116
|
+
- support
|
|
23117
|
+
description: Entry point that initiated the change.
|
|
23118
|
+
target:
|
|
23119
|
+
$ref: "#/components/schemas/AuditEventTarget"
|
|
23120
|
+
urls:
|
|
23121
|
+
type: object
|
|
23122
|
+
properties:
|
|
23123
|
+
location:
|
|
23124
|
+
type: string
|
|
23125
|
+
format: uri
|
|
23126
|
+
description: URL of the audit event in the API.
|
|
23127
|
+
required:
|
|
23128
|
+
- location
|
|
23129
|
+
required:
|
|
23130
|
+
- object
|
|
23131
|
+
- id
|
|
23132
|
+
- occurredAt
|
|
23133
|
+
- action
|
|
23134
|
+
- actor
|
|
23135
|
+
- source
|
|
23136
|
+
- target
|
|
23137
|
+
- urls
|
|
23138
|
+
AuditEventDetails:
|
|
23139
|
+
allOf:
|
|
23140
|
+
- $ref: "#/components/schemas/AuditEvent"
|
|
23141
|
+
- type: object
|
|
23142
|
+
properties:
|
|
23143
|
+
executionId:
|
|
23144
|
+
type: string
|
|
23145
|
+
description: Identifier of the operation that recorded the event.
|
|
23146
|
+
correlationId:
|
|
23147
|
+
type: string
|
|
23148
|
+
description: Identifier shared by events produced by the same user action.
|
|
23149
|
+
causedByEventId:
|
|
23150
|
+
type: string
|
|
23151
|
+
format: uuid
|
|
23152
|
+
description: Audit event that caused this later system effect.
|
|
23153
|
+
schemaVersion:
|
|
23154
|
+
type: integer
|
|
23155
|
+
minimum: 1
|
|
23156
|
+
description: Version of the action payload schema.
|
|
23157
|
+
payload:
|
|
23158
|
+
type: object
|
|
23159
|
+
additionalProperties: true
|
|
23160
|
+
description: Allowlisted details specific to the action.
|
|
23161
|
+
required:
|
|
23162
|
+
- schemaVersion
|
|
23163
|
+
- payload
|
|
23164
|
+
OrganizationStyleguide:
|
|
23165
|
+
type: object
|
|
23166
|
+
description: A style guide space and all the sites referencing it.
|
|
23167
|
+
properties:
|
|
23168
|
+
space:
|
|
23169
|
+
$ref: "#/components/schemas/Space"
|
|
23170
|
+
sites:
|
|
23171
|
+
type: array
|
|
23172
|
+
description: Sites in the organization that reference this style guide.
|
|
23173
|
+
items:
|
|
23174
|
+
$ref: "#/components/schemas/Site"
|
|
23175
|
+
required:
|
|
23176
|
+
- space
|
|
23177
|
+
- sites
|
|
23178
|
+
OrganizationStyleguides:
|
|
23179
|
+
type: object
|
|
23180
|
+
properties:
|
|
23181
|
+
styleguides:
|
|
23182
|
+
type: array
|
|
23183
|
+
items:
|
|
22394
23184
|
$ref: "#/components/schemas/OrganizationStyleguide"
|
|
22395
23185
|
required:
|
|
22396
23186
|
- styleguides
|
|
22397
23187
|
StyleguideTemplate:
|
|
22398
23188
|
type: object
|
|
22399
|
-
description: A built-in
|
|
23189
|
+
description: A built-in style guide starter template used to seed and preview a style guide.
|
|
22400
23190
|
properties:
|
|
22401
23191
|
id:
|
|
22402
23192
|
type: string
|
|
22403
|
-
description: Identifier of the template, passed to createSiteStyleguideById to seed a
|
|
23193
|
+
description: Identifier of the template, passed to createSiteStyleguideById to seed a style guide from it.
|
|
22404
23194
|
title:
|
|
22405
23195
|
type: string
|
|
22406
23196
|
description: Human-readable name of the template.
|
|
@@ -23259,17 +24049,56 @@ components:
|
|
|
23259
24049
|
type: boolean
|
|
23260
24050
|
enum:
|
|
23261
24051
|
- true
|
|
24052
|
+
InstalledIntegrationTarget:
|
|
24053
|
+
description: The resource on which an integration is installed.
|
|
24054
|
+
oneOf:
|
|
24055
|
+
- type: object
|
|
24056
|
+
required:
|
|
24057
|
+
- type
|
|
24058
|
+
- organizationId
|
|
24059
|
+
properties:
|
|
24060
|
+
type:
|
|
24061
|
+
type: string
|
|
24062
|
+
enum:
|
|
24063
|
+
- organization
|
|
24064
|
+
organizationId:
|
|
24065
|
+
type: string
|
|
24066
|
+
- type: object
|
|
24067
|
+
required:
|
|
24068
|
+
- type
|
|
24069
|
+
- siteId
|
|
24070
|
+
properties:
|
|
24071
|
+
type:
|
|
24072
|
+
type: string
|
|
24073
|
+
enum:
|
|
24074
|
+
- site
|
|
24075
|
+
siteId:
|
|
24076
|
+
type: string
|
|
24077
|
+
- type: object
|
|
24078
|
+
required:
|
|
24079
|
+
- type
|
|
24080
|
+
- spaceId
|
|
24081
|
+
properties:
|
|
24082
|
+
type:
|
|
24083
|
+
type: string
|
|
24084
|
+
enum:
|
|
24085
|
+
- space
|
|
24086
|
+
spaceId:
|
|
24087
|
+
type: string
|
|
23262
24088
|
InstalledIntegration:
|
|
23263
24089
|
type: object
|
|
23264
|
-
description: An
|
|
24090
|
+
description: An integration installation, its current status, and the resource it targets.
|
|
23265
24091
|
required:
|
|
23266
24092
|
- status
|
|
23267
24093
|
- integration
|
|
24094
|
+
- target
|
|
23268
24095
|
properties:
|
|
23269
24096
|
status:
|
|
23270
24097
|
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
23271
24098
|
integration:
|
|
23272
24099
|
$ref: "#/components/schemas/Integration"
|
|
24100
|
+
target:
|
|
24101
|
+
$ref: "#/components/schemas/InstalledIntegrationTarget"
|
|
23273
24102
|
SAMLProviderLabel:
|
|
23274
24103
|
type: string
|
|
23275
24104
|
minLength: 1
|
|
@@ -24099,6 +24928,7 @@ components:
|
|
|
24099
24928
|
enum:
|
|
24100
24929
|
- customization_font
|
|
24101
24930
|
- import_file
|
|
24931
|
+
- organization_file
|
|
24102
24932
|
StorageUploadURL:
|
|
24103
24933
|
type: object
|
|
24104
24934
|
properties:
|
|
@@ -24201,104 +25031,6 @@ components:
|
|
|
24201
25031
|
description: The path of the file in the storage bucket
|
|
24202
25032
|
minLength: 1
|
|
24203
25033
|
maxLength: 512
|
|
24204
|
-
ContentImportSource:
|
|
24205
|
-
oneOf:
|
|
24206
|
-
- type: object
|
|
24207
|
-
properties:
|
|
24208
|
-
type:
|
|
24209
|
-
type: string
|
|
24210
|
-
enum:
|
|
24211
|
-
- website
|
|
24212
|
-
url:
|
|
24213
|
-
$ref: "#/components/schemas/URL"
|
|
24214
|
-
required:
|
|
24215
|
-
- type
|
|
24216
|
-
- url
|
|
24217
|
-
- type: object
|
|
24218
|
-
properties:
|
|
24219
|
-
type:
|
|
24220
|
-
type: string
|
|
24221
|
-
enum:
|
|
24222
|
-
- file
|
|
24223
|
-
files:
|
|
24224
|
-
description: Files to import
|
|
24225
|
-
type: array
|
|
24226
|
-
maxItems: 50
|
|
24227
|
-
items:
|
|
24228
|
-
description: Key of file
|
|
24229
|
-
type: string
|
|
24230
|
-
required:
|
|
24231
|
-
- type
|
|
24232
|
-
- files
|
|
24233
|
-
ContentImportTarget:
|
|
24234
|
-
type: object
|
|
24235
|
-
properties:
|
|
24236
|
-
space:
|
|
24237
|
-
type: string
|
|
24238
|
-
description: ID of the space to import in
|
|
24239
|
-
changeRequest:
|
|
24240
|
-
type: string
|
|
24241
|
-
description: ID of the change request to import in
|
|
24242
|
-
page:
|
|
24243
|
-
type: string
|
|
24244
|
-
description: ID of the page to import in
|
|
24245
|
-
required:
|
|
24246
|
-
- space
|
|
24247
|
-
ContentImportRun:
|
|
24248
|
-
type: object
|
|
24249
|
-
properties:
|
|
24250
|
-
id:
|
|
24251
|
-
description: Unique ID of the import
|
|
24252
|
-
type: string
|
|
24253
|
-
startedAt:
|
|
24254
|
-
description: Date when the import has started
|
|
24255
|
-
$ref: "#/components/schemas/Timestamp"
|
|
24256
|
-
completedAt:
|
|
24257
|
-
description: Filled when the imported is in status "completed"
|
|
24258
|
-
$ref: "#/components/schemas/Timestamp"
|
|
24259
|
-
status:
|
|
24260
|
-
description: Status of the import
|
|
24261
|
-
type: string
|
|
24262
|
-
enum:
|
|
24263
|
-
- pending
|
|
24264
|
-
- in-progress
|
|
24265
|
-
- completed
|
|
24266
|
-
- failed
|
|
24267
|
-
- cancelled
|
|
24268
|
-
reason:
|
|
24269
|
-
description: Reason for the import failure when `status` is `failed`.
|
|
24270
|
-
type: string
|
|
24271
|
-
pages:
|
|
24272
|
-
description: Pages included in the import
|
|
24273
|
-
type: array
|
|
24274
|
-
items:
|
|
24275
|
-
type: object
|
|
24276
|
-
properties:
|
|
24277
|
-
id:
|
|
24278
|
-
description: ID of page
|
|
24279
|
-
type: string
|
|
24280
|
-
sourceURL:
|
|
24281
|
-
description: Source URL where the page has been imported from
|
|
24282
|
-
type: string
|
|
24283
|
-
type:
|
|
24284
|
-
description: Type of page
|
|
24285
|
-
type: string
|
|
24286
|
-
enum:
|
|
24287
|
-
- page
|
|
24288
|
-
- folder
|
|
24289
|
-
status:
|
|
24290
|
-
description: Status of the page
|
|
24291
|
-
type: string
|
|
24292
|
-
enum:
|
|
24293
|
-
- complete
|
|
24294
|
-
- pending
|
|
24295
|
-
required:
|
|
24296
|
-
- id
|
|
24297
|
-
- type
|
|
24298
|
-
- status
|
|
24299
|
-
required:
|
|
24300
|
-
- id
|
|
24301
|
-
- status
|
|
24302
25034
|
SitePublishOperationPreviewResponse:
|
|
24303
25035
|
description: |
|
|
24304
25036
|
A response to a request to preview the publishing of a site. It indicates whether the operation can proceed immediately, requires checkout, if a trial is available or if a trial extension is available.
|
|
@@ -24910,6 +25642,12 @@ components:
|
|
|
24910
25642
|
oneOf:
|
|
24911
25643
|
- $ref: "#/components/schemas/CustomizationDefaultFont"
|
|
24912
25644
|
- $ref: "#/components/schemas/CustomizationFontDefinitionInput"
|
|
25645
|
+
CustomizationHeadingFont:
|
|
25646
|
+
description: Font used for headings. `null` means headings use the main font (`styling.font`).
|
|
25647
|
+
oneOf:
|
|
25648
|
+
- $ref: "#/components/schemas/CustomizationDefaultFont"
|
|
25649
|
+
- $ref: "#/components/schemas/CustomizationFontDefinitionInput"
|
|
25650
|
+
- type: "null"
|
|
24913
25651
|
CustomizationDefaultMonospaceFont:
|
|
24914
25652
|
type: string
|
|
24915
25653
|
enum:
|
|
@@ -25187,6 +25925,10 @@ components:
|
|
|
25187
25925
|
- none
|
|
25188
25926
|
- search
|
|
25189
25927
|
- assistant
|
|
25928
|
+
CustomizationAIGreeting:
|
|
25929
|
+
type: string
|
|
25930
|
+
description: Initial greeting displayed by the AI Assistant when a visitor starts a conversation.
|
|
25931
|
+
maxLength: 256
|
|
25190
25932
|
CustomizationSuggestedQuestion:
|
|
25191
25933
|
type: string
|
|
25192
25934
|
minLength: 3
|
|
@@ -25306,6 +26048,8 @@ components:
|
|
|
25306
26048
|
$ref: "#/components/schemas/CustomizationLinksStyle"
|
|
25307
26049
|
font:
|
|
25308
26050
|
$ref: "#/components/schemas/CustomizationFont"
|
|
26051
|
+
headingFont:
|
|
26052
|
+
$ref: "#/components/schemas/CustomizationHeadingFont"
|
|
25309
26053
|
monospaceFont:
|
|
25310
26054
|
$ref: "#/components/schemas/CustomizationMonospaceFont"
|
|
25311
26055
|
background:
|
|
@@ -25429,6 +26173,10 @@ components:
|
|
|
25429
26173
|
properties:
|
|
25430
26174
|
mode:
|
|
25431
26175
|
$ref: "#/components/schemas/CustomizationAIMode"
|
|
26176
|
+
greeting:
|
|
26177
|
+
$ref: "#/components/schemas/CustomizationAIGreeting"
|
|
26178
|
+
localizedGreeting:
|
|
26179
|
+
$ref: "#/components/schemas/LocalizedString128"
|
|
25432
26180
|
suggestions:
|
|
25433
26181
|
$ref: "#/components/schemas/CustomizationSuggestedQuestions"
|
|
25434
26182
|
instructions:
|
|
@@ -25847,6 +26595,12 @@ components:
|
|
|
25847
26595
|
type: string
|
|
25848
26596
|
maxLength: 1024
|
|
25849
26597
|
description: The end goal the agent is trying to accomplish on behalf of the user. Unlike the immediate query, the goal describes the broader task or outcome the agent is working towards.
|
|
26598
|
+
AgentFeedbackSource:
|
|
26599
|
+
type: string
|
|
26600
|
+
description: "The surface the agent was running on when it submitted the feedback: the MCP server exposed by the site, or the site assistant."
|
|
26601
|
+
enum:
|
|
26602
|
+
- mcp
|
|
26603
|
+
- assistant
|
|
25850
26604
|
SiteInsightsSession:
|
|
25851
26605
|
type: object
|
|
25852
26606
|
description: Identifiers for a GitBook site session, used for analytics and adaptive content.
|
|
@@ -26074,11 +26828,13 @@ components:
|
|
|
26074
26828
|
- Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
|
|
26075
26829
|
- Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
26076
26830
|
- Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
26831
|
+
- Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
|
|
26077
26832
|
- Other: Any other type of finding not covered by the above categories.
|
|
26078
26833
|
enum:
|
|
26079
26834
|
- content-outdated
|
|
26080
26835
|
- content-incorrect
|
|
26081
26836
|
- content-gap
|
|
26837
|
+
- broken-link
|
|
26082
26838
|
- other
|
|
26083
26839
|
SiteFindingSeverity:
|
|
26084
26840
|
type: string
|
|
@@ -26111,6 +26867,107 @@ components:
|
|
|
26111
26867
|
type: string
|
|
26112
26868
|
description: Short finding title
|
|
26113
26869
|
maxLength: 256
|
|
26870
|
+
SiteRedirectSourcePath:
|
|
26871
|
+
type: string
|
|
26872
|
+
description: The source path to redirect from.
|
|
26873
|
+
maxLength: 512
|
|
26874
|
+
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
|
+
SiteRedirectInputDestinationPath:
|
|
26937
|
+
type: object
|
|
26938
|
+
properties:
|
|
26939
|
+
kind:
|
|
26940
|
+
type: string
|
|
26941
|
+
enum:
|
|
26942
|
+
- path
|
|
26943
|
+
spaceId:
|
|
26944
|
+
type: string
|
|
26945
|
+
description: Unique identifier for the space containing the page referenced by the path.
|
|
26946
|
+
path:
|
|
26947
|
+
type: string
|
|
26948
|
+
description: Path to the page within the space revision to resolve.
|
|
26949
|
+
required:
|
|
26950
|
+
- kind
|
|
26951
|
+
- spaceId
|
|
26952
|
+
- path
|
|
26953
|
+
SiteRedirectInputDestination:
|
|
26954
|
+
oneOf:
|
|
26955
|
+
- $ref: "#/components/schemas/SiteRedirectDestination"
|
|
26956
|
+
- $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
26957
|
+
SiteFindingBrokenLinkAction:
|
|
26958
|
+
type: object
|
|
26959
|
+
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).
|
|
26960
|
+
properties:
|
|
26961
|
+
source:
|
|
26962
|
+
$ref: "#/components/schemas/SiteRedirectSourcePath"
|
|
26963
|
+
captureWildcard:
|
|
26964
|
+
type: boolean
|
|
26965
|
+
description: Whether the redirect appends the wildcard-matched suffix of the source path to the destination.
|
|
26966
|
+
destination:
|
|
26967
|
+
$ref: "#/components/schemas/SiteRedirectInputDestination"
|
|
26968
|
+
required:
|
|
26969
|
+
- source
|
|
26970
|
+
- destination
|
|
26114
26971
|
SiteFinding:
|
|
26115
26972
|
type: object
|
|
26116
26973
|
properties:
|
|
@@ -26154,6 +27011,8 @@ components:
|
|
|
26154
27011
|
autoFixable:
|
|
26155
27012
|
type: boolean
|
|
26156
27013
|
description: Whether an AI agent should be able to fix this finding directly
|
|
27014
|
+
brokenLinkAction:
|
|
27015
|
+
$ref: "#/components/schemas/SiteFindingBrokenLinkAction"
|
|
26157
27016
|
createdAt:
|
|
26158
27017
|
$ref: "#/components/schemas/Timestamp"
|
|
26159
27018
|
updatedAt:
|
|
@@ -26451,6 +27310,15 @@ components:
|
|
|
26451
27310
|
- syncing
|
|
26452
27311
|
- succeeded
|
|
26453
27312
|
- failed
|
|
27313
|
+
ContextConnectionFailureReason:
|
|
27314
|
+
type: string
|
|
27315
|
+
description: Why a synchronization failed, indicating who can resolve it. `authentication` and `misconfigured` need the connection to be reconfigured; `rate_limited` and `upstream_unavailable` are the source's own limits or downtime and are retried; `unknown` could not be attributed to the source's response.
|
|
27316
|
+
enum:
|
|
27317
|
+
- authentication
|
|
27318
|
+
- misconfigured
|
|
27319
|
+
- rate_limited
|
|
27320
|
+
- upstream_unavailable
|
|
27321
|
+
- unknown
|
|
26454
27322
|
ContextSearchBoost:
|
|
26455
27323
|
type: string
|
|
26456
27324
|
description: Relative score adjustment applied to records from a connection when searching.
|
|
@@ -26827,6 +27695,8 @@ components:
|
|
|
26827
27695
|
failureMessage:
|
|
26828
27696
|
type: string
|
|
26829
27697
|
description: Failure message when synchronization fails
|
|
27698
|
+
failureReason:
|
|
27699
|
+
$ref: "#/components/schemas/ContextConnectionFailureReason"
|
|
26830
27700
|
email:
|
|
26831
27701
|
type: object
|
|
26832
27702
|
description: Parameters associated with the connection when it is an email connection
|
|
@@ -27731,6 +28601,27 @@ components:
|
|
|
27731
28601
|
- tool
|
|
27732
28602
|
- spaceId
|
|
27733
28603
|
- changeRequestId
|
|
28604
|
+
AIToolCallArchiveChangeRequest:
|
|
28605
|
+
type: object
|
|
28606
|
+
properties:
|
|
28607
|
+
tool:
|
|
28608
|
+
type: string
|
|
28609
|
+
enum:
|
|
28610
|
+
- archiveChangeRequest
|
|
28611
|
+
spaceId:
|
|
28612
|
+
type: string
|
|
28613
|
+
description: The ID of the space the change request belongs to.
|
|
28614
|
+
changeRequestId:
|
|
28615
|
+
type: string
|
|
28616
|
+
description: The ID of the change request.
|
|
28617
|
+
reason:
|
|
28618
|
+
type: string
|
|
28619
|
+
description: Why the agent gave up on implementing the change request.
|
|
28620
|
+
required:
|
|
28621
|
+
- tool
|
|
28622
|
+
- spaceId
|
|
28623
|
+
- changeRequestId
|
|
28624
|
+
- reason
|
|
27734
28625
|
AIToolCallComment:
|
|
27735
28626
|
type: object
|
|
27736
28627
|
properties:
|
|
@@ -27823,6 +28714,66 @@ components:
|
|
|
27823
28714
|
- status
|
|
27824
28715
|
- reviewId
|
|
27825
28716
|
- commentId
|
|
28717
|
+
AIToolCallStartContentImport:
|
|
28718
|
+
type: object
|
|
28719
|
+
properties:
|
|
28720
|
+
tool:
|
|
28721
|
+
type: string
|
|
28722
|
+
enum:
|
|
28723
|
+
- startContentImport
|
|
28724
|
+
spaceId:
|
|
28725
|
+
type: string
|
|
28726
|
+
description: The ID of the space the content is imported into.
|
|
28727
|
+
changeRequestId:
|
|
28728
|
+
type: string
|
|
28729
|
+
description: The ID of the change request the content is imported into.
|
|
28730
|
+
runId:
|
|
28731
|
+
type: string
|
|
28732
|
+
description: The ID of the import run.
|
|
28733
|
+
url:
|
|
28734
|
+
type: string
|
|
28735
|
+
description: The URL the content is imported from, when importing a website.
|
|
28736
|
+
files:
|
|
28737
|
+
type: array
|
|
28738
|
+
description: Names of the attached files the content is imported from, when importing files.
|
|
28739
|
+
items:
|
|
28740
|
+
type: string
|
|
28741
|
+
required:
|
|
28742
|
+
- tool
|
|
28743
|
+
- spaceId
|
|
28744
|
+
- changeRequestId
|
|
28745
|
+
- runId
|
|
28746
|
+
AIToolCallCheckContentImport:
|
|
28747
|
+
type: object
|
|
28748
|
+
properties:
|
|
28749
|
+
tool:
|
|
28750
|
+
type: string
|
|
28751
|
+
enum:
|
|
28752
|
+
- checkContentImport
|
|
28753
|
+
runId:
|
|
28754
|
+
type: string
|
|
28755
|
+
description: The ID of the import run.
|
|
28756
|
+
status:
|
|
28757
|
+
type: string
|
|
28758
|
+
description: Status of the import when it was checked.
|
|
28759
|
+
enum:
|
|
28760
|
+
- pending
|
|
28761
|
+
- in-progress
|
|
28762
|
+
- completed
|
|
28763
|
+
- failed
|
|
28764
|
+
- cancelled
|
|
28765
|
+
importedPages:
|
|
28766
|
+
type: number
|
|
28767
|
+
description: Number of pages imported when the import was checked.
|
|
28768
|
+
totalPages:
|
|
28769
|
+
type: number
|
|
28770
|
+
description: Number of pages the import has discovered so far.
|
|
28771
|
+
required:
|
|
28772
|
+
- tool
|
|
28773
|
+
- runId
|
|
28774
|
+
- status
|
|
28775
|
+
- importedPages
|
|
28776
|
+
- totalPages
|
|
27826
28777
|
AIToolCallMCP:
|
|
27827
28778
|
type: object
|
|
27828
28779
|
description: Tool called from an MCP server
|
|
@@ -27893,10 +28844,13 @@ components:
|
|
|
27893
28844
|
- $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
|
|
27894
28845
|
- $ref: "#/components/schemas/AIToolCallGetChangeRequestDetails"
|
|
27895
28846
|
- $ref: "#/components/schemas/AIToolCallSetChangeRequestDetails"
|
|
28847
|
+
- $ref: "#/components/schemas/AIToolCallArchiveChangeRequest"
|
|
27896
28848
|
- $ref: "#/components/schemas/AIToolCallComment"
|
|
27897
28849
|
- $ref: "#/components/schemas/AIToolCallReplyToComment"
|
|
27898
28850
|
- $ref: "#/components/schemas/AIToolCallGetComments"
|
|
27899
28851
|
- $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
|
|
28852
|
+
- $ref: "#/components/schemas/AIToolCallStartContentImport"
|
|
28853
|
+
- $ref: "#/components/schemas/AIToolCallCheckContentImport"
|
|
27900
28854
|
- $ref: "#/components/schemas/AIToolCallMCP"
|
|
27901
28855
|
- $ref: "#/components/schemas/AIToolCallOther"
|
|
27902
28856
|
AIMessageStepPhase:
|
|
@@ -27921,22 +28875,43 @@ components:
|
|
|
27921
28875
|
type:
|
|
27922
28876
|
type: string
|
|
27923
28877
|
enum:
|
|
27924
|
-
- image
|
|
28878
|
+
- image
|
|
28879
|
+
url:
|
|
28880
|
+
$ref: "#/components/schemas/URL"
|
|
28881
|
+
filename:
|
|
28882
|
+
type: string
|
|
28883
|
+
description: Name of the image file.
|
|
28884
|
+
required:
|
|
28885
|
+
- type
|
|
28886
|
+
- url
|
|
28887
|
+
AIAttachmentFile:
|
|
28888
|
+
type: object
|
|
28889
|
+
properties:
|
|
28890
|
+
type:
|
|
28891
|
+
type: string
|
|
28892
|
+
enum:
|
|
28893
|
+
- file
|
|
27925
28894
|
url:
|
|
27926
28895
|
$ref: "#/components/schemas/URL"
|
|
27927
28896
|
filename:
|
|
27928
28897
|
type: string
|
|
27929
|
-
description: Name of the
|
|
28898
|
+
description: Name of the file.
|
|
28899
|
+
contentType:
|
|
28900
|
+
type: string
|
|
28901
|
+
description: MIME type of the file. Must be a file type supported by the underlying model (see the OpenAI file-inputs documentation).
|
|
27930
28902
|
required:
|
|
27931
28903
|
- type
|
|
27932
28904
|
- url
|
|
27933
|
-
|
|
28905
|
+
- filename
|
|
28906
|
+
- contentType
|
|
28907
|
+
AIAttachmentImportFile:
|
|
27934
28908
|
type: object
|
|
28909
|
+
description: A file attached for the sole purpose of being imported. Its content is never given to the model — the type is one the importer accepts but the model cannot read, such as a ZIP archive — so the model only learns that the file is attached and can import it.
|
|
27935
28910
|
properties:
|
|
27936
28911
|
type:
|
|
27937
28912
|
type: string
|
|
27938
28913
|
enum:
|
|
27939
|
-
- file
|
|
28914
|
+
- import-file
|
|
27940
28915
|
url:
|
|
27941
28916
|
$ref: "#/components/schemas/URL"
|
|
27942
28917
|
filename:
|
|
@@ -27944,7 +28919,7 @@ components:
|
|
|
27944
28919
|
description: Name of the file.
|
|
27945
28920
|
contentType:
|
|
27946
28921
|
type: string
|
|
27947
|
-
description: MIME type of the file. Must be a file type supported by the
|
|
28922
|
+
description: MIME type of the file. Must be a file type supported by the content import.
|
|
27948
28923
|
required:
|
|
27949
28924
|
- type
|
|
27950
28925
|
- url
|
|
@@ -27954,6 +28929,7 @@ components:
|
|
|
27954
28929
|
oneOf:
|
|
27955
28930
|
- $ref: "#/components/schemas/AIAttachmentImage"
|
|
27956
28931
|
- $ref: "#/components/schemas/AIAttachmentFile"
|
|
28932
|
+
- $ref: "#/components/schemas/AIAttachmentImportFile"
|
|
27957
28933
|
AIMessageContext:
|
|
27958
28934
|
type: object
|
|
27959
28935
|
description: Context about the current user sending a message.
|
|
@@ -29268,6 +30244,24 @@ components:
|
|
|
29268
30244
|
SiteInsightsQueryEventsColumn:
|
|
29269
30245
|
oneOf:
|
|
29270
30246
|
- $ref: "#/components/schemas/SiteInsightsQueryDateTimeColumn"
|
|
30247
|
+
- type: object
|
|
30248
|
+
description: Day of the week the event happened, in UTC, from 1 (Monday) to 7 (Sunday). Group by it alongside `hourOfDay` to fold any range into a weekly activity profile.
|
|
30249
|
+
required:
|
|
30250
|
+
- column
|
|
30251
|
+
properties:
|
|
30252
|
+
column:
|
|
30253
|
+
type: string
|
|
30254
|
+
enum:
|
|
30255
|
+
- dayOfWeek
|
|
30256
|
+
- type: object
|
|
30257
|
+
description: Hour of the day the event happened, in UTC, from 0 to 23.
|
|
30258
|
+
required:
|
|
30259
|
+
- column
|
|
30260
|
+
properties:
|
|
30261
|
+
column:
|
|
30262
|
+
type: string
|
|
30263
|
+
enum:
|
|
30264
|
+
- hourOfDay
|
|
29271
30265
|
- type: object
|
|
29272
30266
|
required:
|
|
29273
30267
|
- column
|
|
@@ -29472,6 +30466,14 @@ components:
|
|
|
29472
30466
|
type: string
|
|
29473
30467
|
enum:
|
|
29474
30468
|
- eventLLMSVariant
|
|
30469
|
+
- type: object
|
|
30470
|
+
required:
|
|
30471
|
+
- column
|
|
30472
|
+
properties:
|
|
30473
|
+
column:
|
|
30474
|
+
type: string
|
|
30475
|
+
enum:
|
|
30476
|
+
- eventPageNotFoundType
|
|
29475
30477
|
- type: object
|
|
29476
30478
|
required:
|
|
29477
30479
|
- column
|
|
@@ -29584,6 +30586,15 @@ components:
|
|
|
29584
30586
|
type: string
|
|
29585
30587
|
enum:
|
|
29586
30588
|
- utmContent
|
|
30589
|
+
- type: object
|
|
30590
|
+
description: Whether the visitor was authenticated when the event happened. Recorded at ingest from the site's visibility and the visitor's claims, so it is only exact for events tracked after that became available; older events fall back to the presence of any claim.
|
|
30591
|
+
required:
|
|
30592
|
+
- column
|
|
30593
|
+
properties:
|
|
30594
|
+
column:
|
|
30595
|
+
type: string
|
|
30596
|
+
enum:
|
|
30597
|
+
- visitorAuthenticated
|
|
29587
30598
|
- type: object
|
|
29588
30599
|
required:
|
|
29589
30600
|
- column
|
|
@@ -29707,6 +30718,11 @@ components:
|
|
|
29707
30718
|
- claude-code
|
|
29708
30719
|
- codex
|
|
29709
30720
|
- opencode
|
|
30721
|
+
SiteInsightsPageNotFoundType:
|
|
30722
|
+
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
|
+
type: string
|
|
30724
|
+
enum:
|
|
30725
|
+
- conditional
|
|
29710
30726
|
SiteInsightsQueryEventsValues:
|
|
29711
30727
|
oneOf:
|
|
29712
30728
|
- type: object
|
|
@@ -29722,6 +30738,36 @@ components:
|
|
|
29722
30738
|
type: array
|
|
29723
30739
|
items:
|
|
29724
30740
|
$ref: "#/components/schemas/Timestamp"
|
|
30741
|
+
- type: object
|
|
30742
|
+
required:
|
|
30743
|
+
- column
|
|
30744
|
+
- values
|
|
30745
|
+
properties:
|
|
30746
|
+
column:
|
|
30747
|
+
type: string
|
|
30748
|
+
enum:
|
|
30749
|
+
- dayOfWeek
|
|
30750
|
+
values:
|
|
30751
|
+
type: array
|
|
30752
|
+
items:
|
|
30753
|
+
type: integer
|
|
30754
|
+
minimum: 1
|
|
30755
|
+
maximum: 7
|
|
30756
|
+
- type: object
|
|
30757
|
+
required:
|
|
30758
|
+
- column
|
|
30759
|
+
- values
|
|
30760
|
+
properties:
|
|
30761
|
+
column:
|
|
30762
|
+
type: string
|
|
30763
|
+
enum:
|
|
30764
|
+
- hourOfDay
|
|
30765
|
+
values:
|
|
30766
|
+
type: array
|
|
30767
|
+
items:
|
|
30768
|
+
type: integer
|
|
30769
|
+
minimum: 0
|
|
30770
|
+
maximum: 23
|
|
29725
30771
|
- type: object
|
|
29726
30772
|
required:
|
|
29727
30773
|
- column
|
|
@@ -29816,6 +30862,21 @@ components:
|
|
|
29816
30862
|
type: array
|
|
29817
30863
|
items:
|
|
29818
30864
|
type: string
|
|
30865
|
+
- type: object
|
|
30866
|
+
required:
|
|
30867
|
+
- column
|
|
30868
|
+
- values
|
|
30869
|
+
properties:
|
|
30870
|
+
column:
|
|
30871
|
+
type: string
|
|
30872
|
+
enum:
|
|
30873
|
+
- visitorAuthenticated
|
|
30874
|
+
values:
|
|
30875
|
+
type: array
|
|
30876
|
+
items:
|
|
30877
|
+
type:
|
|
30878
|
+
- boolean
|
|
30879
|
+
- "null"
|
|
29819
30880
|
- type: object
|
|
29820
30881
|
required:
|
|
29821
30882
|
- column
|
|
@@ -29963,6 +31024,21 @@ components:
|
|
|
29963
31024
|
oneOf:
|
|
29964
31025
|
- type: "null"
|
|
29965
31026
|
- $ref: "#/components/schemas/SiteInsightsLLMSVariant"
|
|
31027
|
+
- type: object
|
|
31028
|
+
required:
|
|
31029
|
+
- column
|
|
31030
|
+
- values
|
|
31031
|
+
properties:
|
|
31032
|
+
column:
|
|
31033
|
+
type: string
|
|
31034
|
+
enum:
|
|
31035
|
+
- eventPageNotFoundType
|
|
31036
|
+
values:
|
|
31037
|
+
type: array
|
|
31038
|
+
items:
|
|
31039
|
+
oneOf:
|
|
31040
|
+
- type: "null"
|
|
31041
|
+
- $ref: "#/components/schemas/SiteInsightsPageNotFoundType"
|
|
29966
31042
|
- type: object
|
|
29967
31043
|
required:
|
|
29968
31044
|
- column
|
|
@@ -30495,72 +31571,6 @@ components:
|
|
|
30495
31571
|
type: number
|
|
30496
31572
|
revenue:
|
|
30497
31573
|
type: string
|
|
30498
|
-
SiteRedirectSourcePath:
|
|
30499
|
-
type: string
|
|
30500
|
-
description: The source path to redirect from.
|
|
30501
|
-
maxLength: 512
|
|
30502
|
-
pattern: ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
|
|
30503
|
-
SiteRedirectDestinationSiteSection:
|
|
30504
|
-
type: object
|
|
30505
|
-
properties:
|
|
30506
|
-
kind:
|
|
30507
|
-
type: string
|
|
30508
|
-
enum:
|
|
30509
|
-
- site-section
|
|
30510
|
-
siteSectionId:
|
|
30511
|
-
type: string
|
|
30512
|
-
description: Unique identifier for the site section to redirect to
|
|
30513
|
-
required:
|
|
30514
|
-
- kind
|
|
30515
|
-
- siteSectionId
|
|
30516
|
-
SiteRedirectDestinationSiteSpace:
|
|
30517
|
-
type: object
|
|
30518
|
-
properties:
|
|
30519
|
-
kind:
|
|
30520
|
-
type: string
|
|
30521
|
-
enum:
|
|
30522
|
-
- site-space
|
|
30523
|
-
siteSpaceId:
|
|
30524
|
-
type: string
|
|
30525
|
-
description: Unique identifier for the site space to redirect to
|
|
30526
|
-
required:
|
|
30527
|
-
- kind
|
|
30528
|
-
- siteSpaceId
|
|
30529
|
-
SiteRedirectDestinationPage:
|
|
30530
|
-
type: object
|
|
30531
|
-
properties:
|
|
30532
|
-
kind:
|
|
30533
|
-
type: string
|
|
30534
|
-
enum:
|
|
30535
|
-
- site-page
|
|
30536
|
-
siteSpaceId:
|
|
30537
|
-
type: string
|
|
30538
|
-
description: Unique identifier for the site space of the page
|
|
30539
|
-
pageId:
|
|
30540
|
-
type: string
|
|
30541
|
-
description: Unique identifier for the page within the site space to redirect to
|
|
30542
|
-
required:
|
|
30543
|
-
- kind
|
|
30544
|
-
- siteSpaceId
|
|
30545
|
-
- pageId
|
|
30546
|
-
SiteRedirectDestinationExternal:
|
|
30547
|
-
type: object
|
|
30548
|
-
properties:
|
|
30549
|
-
kind:
|
|
30550
|
-
type: string
|
|
30551
|
-
enum:
|
|
30552
|
-
- external
|
|
30553
|
-
url:
|
|
30554
|
-
$ref: "#/components/schemas/URL"
|
|
30555
|
-
required:
|
|
30556
|
-
- kind
|
|
30557
|
-
- url
|
|
30558
|
-
SiteRedirectDestination:
|
|
30559
|
-
oneOf:
|
|
30560
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
30561
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
30562
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationPage"
|
|
30563
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationExternal"
|
|
30564
31574
|
SiteRedirect:
|
|
30565
31575
|
type: object
|
|
30566
31576
|
properties:
|
|
@@ -30588,27 +31598,6 @@ components:
|
|
|
30588
31598
|
- draft
|
|
30589
31599
|
- captureWildcard
|
|
30590
31600
|
- destination
|
|
30591
|
-
SiteRedirectInputDestinationPath:
|
|
30592
|
-
type: object
|
|
30593
|
-
properties:
|
|
30594
|
-
kind:
|
|
30595
|
-
type: string
|
|
30596
|
-
enum:
|
|
30597
|
-
- path
|
|
30598
|
-
spaceId:
|
|
30599
|
-
type: string
|
|
30600
|
-
description: Unique identifier for the space containing the page referenced by the path.
|
|
30601
|
-
path:
|
|
30602
|
-
type: string
|
|
30603
|
-
description: Path to the page within the space revision to resolve.
|
|
30604
|
-
required:
|
|
30605
|
-
- kind
|
|
30606
|
-
- spaceId
|
|
30607
|
-
- path
|
|
30608
|
-
SiteRedirectInputDestination:
|
|
30609
|
-
oneOf:
|
|
30610
|
-
- $ref: "#/components/schemas/SiteRedirectDestination"
|
|
30611
|
-
- $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
30612
31601
|
SiteMcpServerName:
|
|
30613
31602
|
type: string
|
|
30614
31603
|
description: Name of the MCP server
|
|
@@ -31241,6 +32230,9 @@ components:
|
|
|
31241
32230
|
aiCreditRollover:
|
|
31242
32231
|
description: Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.
|
|
31243
32232
|
$ref: "#/components/schemas/OrganizationBillingPercentageOverride"
|
|
32233
|
+
aiCreditAlertThreshold:
|
|
32234
|
+
description: Percentage of total AI credits remaining at which to send a low-balance alert.
|
|
32235
|
+
$ref: "#/components/schemas/OrganizationBillingPercentageOverride"
|
|
31244
32236
|
minUsers:
|
|
31245
32237
|
description: Current minimum users override, when set.
|
|
31246
32238
|
$ref: "#/components/schemas/OrganizationBillingNumericOverride"
|
|
@@ -31377,6 +32369,12 @@ components:
|
|
|
31377
32369
|
type: object
|
|
31378
32370
|
description: An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims.
|
|
31379
32371
|
properties:
|
|
32372
|
+
type:
|
|
32373
|
+
type: string
|
|
32374
|
+
enum:
|
|
32375
|
+
- human
|
|
32376
|
+
- agent
|
|
32377
|
+
description: Whether the visitor is a human or an AI agent. Defaults to human when omitted.
|
|
31380
32378
|
jwtToken:
|
|
31381
32379
|
type: string
|
|
31382
32380
|
description: JWT token generated for a authenticated access session.
|
|
@@ -31415,6 +32413,23 @@ components:
|
|
|
31415
32413
|
required:
|
|
31416
32414
|
- name
|
|
31417
32415
|
- ref
|
|
32416
|
+
GitSyncRepositoryFile:
|
|
32417
|
+
type: object
|
|
32418
|
+
description: A file found in a Git Sync repository at a specific ref.
|
|
32419
|
+
properties:
|
|
32420
|
+
name:
|
|
32421
|
+
type: string
|
|
32422
|
+
path:
|
|
32423
|
+
type: string
|
|
32424
|
+
sha:
|
|
32425
|
+
type: string
|
|
32426
|
+
size:
|
|
32427
|
+
type: number
|
|
32428
|
+
required:
|
|
32429
|
+
- name
|
|
32430
|
+
- path
|
|
32431
|
+
- sha
|
|
32432
|
+
- size
|
|
31418
32433
|
GitSyncGitLabProject:
|
|
31419
32434
|
type: object
|
|
31420
32435
|
description: GitLab project that can be selected for Git Sync.
|
|
@@ -32029,6 +33044,8 @@ components:
|
|
|
32029
33044
|
error:
|
|
32030
33045
|
type: string
|
|
32031
33046
|
description: Error details, defined if state is `failure`.
|
|
33047
|
+
errorAction:
|
|
33048
|
+
$ref: "#/components/schemas/GitSyncOperationErrorAction"
|
|
32032
33049
|
required:
|
|
32033
33050
|
- state
|
|
32034
33051
|
- direction
|
|
@@ -32063,6 +33080,8 @@ components:
|
|
|
32063
33080
|
error:
|
|
32064
33081
|
type: string
|
|
32065
33082
|
description: Error details, defined if state is `failure`.
|
|
33083
|
+
errorAction:
|
|
33084
|
+
$ref: "#/components/schemas/GitSyncOperationErrorAction"
|
|
32066
33085
|
spaces:
|
|
32067
33086
|
type: object
|
|
32068
33087
|
additionalProperties:
|
|
@@ -32093,6 +33112,7 @@ components:
|
|
|
32093
33112
|
Stable identifier for this section group, used as the Git Sync key.
|
|
32094
33113
|
Must be unique amongst all other section groups of the site. For
|
|
32095
33114
|
example: `section-group-product` or `section-group-1`.
|
|
33115
|
+
You can nest section groups only one level deep. For example, `section-group-1` can have a child section group `section-group-1-1`, but `section-group-1-1` cannot have a child section group.
|
|
32096
33116
|
minLength: 1
|
|
32097
33117
|
title:
|
|
32098
33118
|
$ref: "#/components/schemas/SiteSectionGroupTitle"
|
|
@@ -32126,6 +33146,9 @@ components:
|
|
|
32126
33146
|
when `content.directory` is `null`. Hierarchy comes from where the space
|
|
32127
33147
|
appears in the YAML (under a section, a section group, or at the root), not
|
|
32128
33148
|
from an explicit parent reference.
|
|
33149
|
+
|
|
33150
|
+
The directory is read as one book — the Markdown files it holds become the
|
|
33151
|
+
pages of the space.
|
|
32129
33152
|
properties:
|
|
32130
33153
|
type:
|
|
32131
33154
|
type: string
|
|
@@ -32148,7 +33171,10 @@ components:
|
|
|
32148
33171
|
$ref: "#/components/schemas/SiteSpacePath"
|
|
32149
33172
|
default:
|
|
32150
33173
|
type: boolean
|
|
32151
|
-
description:
|
|
33174
|
+
description: |
|
|
33175
|
+
Whether this is the default space of its parent — the one opened when the
|
|
33176
|
+
site or the section is visited without a space path. Exactly one space
|
|
33177
|
+
among each set of siblings carries it.
|
|
32152
33178
|
hidden:
|
|
32153
33179
|
type: boolean
|
|
32154
33180
|
description: Whether the space is hidden from the site's navigation.
|
|
@@ -32165,7 +33191,12 @@ components:
|
|
|
32165
33191
|
directory:
|
|
32166
33192
|
oneOf:
|
|
32167
33193
|
- type: string
|
|
32168
|
-
description:
|
|
33194
|
+
description: |
|
|
33195
|
+
Directory holding this space's content, resolved from the site's
|
|
33196
|
+
project directory — `./guides` under a site rooted at `docs/`
|
|
33197
|
+
reads `docs/guides`. A leading slash escapes to the repository
|
|
33198
|
+
root instead, so `/guides` always reads `guides`. Parent-directory
|
|
33199
|
+
segments (`..`) are rejected.
|
|
32169
33200
|
minLength: 1
|
|
32170
33201
|
- type: "null"
|
|
32171
33202
|
description: The space does not inherit the site's repository.
|
|
@@ -32186,8 +33217,10 @@ components:
|
|
|
32186
33217
|
A section — a group of spaces sharing a top-level navigation entry.
|
|
32187
33218
|
Discriminated by `type: section`.
|
|
32188
33219
|
|
|
32189
|
-
Spaces inside a section are listed inline under `children
|
|
32190
|
-
|
|
33220
|
+
Spaces inside a section are listed inline under `children`; a section holds
|
|
33221
|
+
nothing else — nest sections under a section group instead. A site with
|
|
33222
|
+
sections must mark exactly one section with `default: true`, and cannot also
|
|
33223
|
+
list spaces at the top level of its structure.
|
|
32191
33224
|
properties:
|
|
32192
33225
|
type:
|
|
32193
33226
|
type: string
|
|
@@ -32241,14 +33274,94 @@ components:
|
|
|
32241
33274
|
description: |
|
|
32242
33275
|
Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
|
|
32243
33276
|
three node types: a section group, a section, or a space.
|
|
33277
|
+
|
|
33278
|
+
A **space** is a leaf holding content, pointed at a repository directory. A
|
|
33279
|
+
**section** gathers spaces behind one top-level navigation entry. A
|
|
33280
|
+
**section group** gathers sections. A site either uses sections or lists its
|
|
33281
|
+
spaces at the top level, never both.
|
|
33282
|
+
|
|
33283
|
+
```yaml
|
|
33284
|
+
structure:
|
|
33285
|
+
- type: space
|
|
33286
|
+
key: space-guides
|
|
33287
|
+
title: Guides
|
|
33288
|
+
path: guides
|
|
33289
|
+
default: true
|
|
33290
|
+
content:
|
|
33291
|
+
directory: ./guides
|
|
33292
|
+
- type: space
|
|
33293
|
+
key: space-api
|
|
33294
|
+
title: API reference
|
|
33295
|
+
path: api
|
|
33296
|
+
content:
|
|
33297
|
+
directory: ./api
|
|
33298
|
+
```
|
|
33299
|
+
|
|
33300
|
+
The same two spaces behind top-level navigation entries:
|
|
33301
|
+
|
|
33302
|
+
```yaml
|
|
33303
|
+
structure:
|
|
33304
|
+
- type: section
|
|
33305
|
+
key: section-product
|
|
33306
|
+
title: Product
|
|
33307
|
+
path: product
|
|
33308
|
+
default: true
|
|
33309
|
+
children:
|
|
33310
|
+
- type: space
|
|
33311
|
+
key: space-guides
|
|
33312
|
+
title: Guides
|
|
33313
|
+
path: guides
|
|
33314
|
+
default: true
|
|
33315
|
+
content:
|
|
33316
|
+
directory: ./guides
|
|
33317
|
+
- type: section
|
|
33318
|
+
key: section-reference
|
|
33319
|
+
title: Reference
|
|
33320
|
+
path: reference
|
|
33321
|
+
children:
|
|
33322
|
+
- type: space
|
|
33323
|
+
key: space-api
|
|
33324
|
+
title: API reference
|
|
33325
|
+
path: api
|
|
33326
|
+
default: true
|
|
33327
|
+
content:
|
|
33328
|
+
directory: ./api
|
|
33329
|
+
```
|
|
33330
|
+
|
|
33331
|
+
Rules checked on import — a violation fails the sync, naming the offending
|
|
33332
|
+
node:
|
|
33333
|
+
|
|
33334
|
+
- Every `key` is unique across the file, whatever the node type. Git Sync
|
|
33335
|
+
recognises a node from one sync to the next by its key, so a reused key
|
|
33336
|
+
leaves two nodes indistinguishable.
|
|
33337
|
+
- Each section marks exactly one of its spaces `default: true`, and a site
|
|
33338
|
+
without sections marks one among its top-level spaces. The default is the
|
|
33339
|
+
space that opens when the site or the section is visited without a space
|
|
33340
|
+
path of its own.
|
|
33341
|
+
- A site declaring any section marks exactly one of those sections
|
|
33342
|
+
`default: true`, and lists no space at the top level: once a section
|
|
33343
|
+
exists, every space belongs inside one.
|
|
33344
|
+
- Sections hold only spaces. Section groups hold only sections, or one
|
|
33345
|
+
further level of section groups — nothing nests deeper than that.
|
|
33346
|
+
- Spaces pointed at the same `content.directory` declare the same
|
|
33347
|
+
`content.language`. One directory is read once, so it cannot produce two
|
|
33348
|
+
languages at the same time.
|
|
32244
33349
|
items:
|
|
32245
33350
|
$ref: "#/components/schemas/GitSyncSiteStructureNode"
|
|
32246
33351
|
GitSyncSiteConfig:
|
|
32247
33352
|
type: object
|
|
32248
33353
|
description: |
|
|
32249
33354
|
Schema for a site `docs.yaml` file — the canonical contract for what
|
|
32250
|
-
can be authored in Git Sync to drive a site's
|
|
33355
|
+
can be authored in Git Sync to drive a site's structure.
|
|
33356
|
+
|
|
33357
|
+
The file lives at the root of the site's project directory in the synced
|
|
33358
|
+
repository. It names the site and maps the repository's content directories
|
|
33359
|
+
onto the site's navigation.
|
|
32251
33360
|
properties:
|
|
33361
|
+
$schema:
|
|
33362
|
+
type: string
|
|
33363
|
+
format: uri
|
|
33364
|
+
description: URL of the schema used by editors to validate the site configuration.
|
|
32252
33365
|
version:
|
|
32253
33366
|
type: integer
|
|
32254
33367
|
description: |
|
|
@@ -32422,6 +33535,12 @@ components:
|
|
|
32422
33535
|
items:
|
|
32423
33536
|
type: string
|
|
32424
33537
|
description: List of spaces that the token is allowed to access.
|
|
33538
|
+
visitorType:
|
|
33539
|
+
type: string
|
|
33540
|
+
enum:
|
|
33541
|
+
- human
|
|
33542
|
+
- agent
|
|
33543
|
+
description: Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted.
|
|
32425
33544
|
claims:
|
|
32426
33545
|
type: object
|
|
32427
33546
|
description: Attributes or assertions that provide specific details about the visitor for which the token was generated.
|
|
@@ -34000,12 +35119,6 @@ components:
|
|
|
34000
35119
|
required:
|
|
34001
35120
|
- code
|
|
34002
35121
|
- message
|
|
34003
|
-
UnexpectedError:
|
|
34004
|
-
description: Unexpected Error
|
|
34005
|
-
content:
|
|
34006
|
-
application/json:
|
|
34007
|
-
schema:
|
|
34008
|
-
$ref: "#/components/schemas/Error"
|
|
34009
35122
|
UnauthorizedError:
|
|
34010
35123
|
description: Unauthorized
|
|
34011
35124
|
content:
|
|
@@ -34028,3 +35141,38 @@ components:
|
|
|
34028
35141
|
required:
|
|
34029
35142
|
- code
|
|
34030
35143
|
- message
|
|
35144
|
+
ForbiddenError:
|
|
35145
|
+
description: Forbidden
|
|
35146
|
+
content:
|
|
35147
|
+
application/json:
|
|
35148
|
+
schema:
|
|
35149
|
+
type: object
|
|
35150
|
+
required:
|
|
35151
|
+
- error
|
|
35152
|
+
properties:
|
|
35153
|
+
error:
|
|
35154
|
+
type: object
|
|
35155
|
+
properties:
|
|
35156
|
+
code:
|
|
35157
|
+
type: integer
|
|
35158
|
+
format: int32
|
|
35159
|
+
enum:
|
|
35160
|
+
- 403
|
|
35161
|
+
message:
|
|
35162
|
+
type: string
|
|
35163
|
+
required:
|
|
35164
|
+
- code
|
|
35165
|
+
- message
|
|
35166
|
+
UnexpectedError:
|
|
35167
|
+
description: Unexpected Error
|
|
35168
|
+
content:
|
|
35169
|
+
application/json:
|
|
35170
|
+
schema:
|
|
35171
|
+
$ref: "#/components/schemas/Error"
|
|
35172
|
+
headers:
|
|
35173
|
+
returnPreferenceApplied:
|
|
35174
|
+
description: Confirms that the requested minimal response preference was applied.
|
|
35175
|
+
schema:
|
|
35176
|
+
type: string
|
|
35177
|
+
enum:
|
|
35178
|
+
- return=minimal
|