@gitbook/api 0.202.0 → 0.203.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 +692 -48
- package/dist/constants.d.ts +7 -5
- package/dist/index.cjs +101 -10
- package/dist/index.js +97 -10
- package/package.json +1 -1
- package/spec/openapi.json +2131 -50
- package/spec/openapi.yaml +1506 -42
package/spec/openapi.yaml
CHANGED
|
@@ -58,6 +58,17 @@ tags:
|
|
|
58
58
|
{% openapi-schemas spec="gitbook" schemas="Site" grouped="false" %}
|
|
59
59
|
The Site object
|
|
60
60
|
{% endopenapi-schemas %}
|
|
61
|
+
- name: site-change-requests
|
|
62
|
+
x-page-icon: code-pull-request
|
|
63
|
+
x-page-title: Site change requests
|
|
64
|
+
x-page-description: Review and collaborate on proposed changes to a site before merging.
|
|
65
|
+
x-parent: sites
|
|
66
|
+
description: |
|
|
67
|
+
A site change request groups changes to a site's structure and to the content of any number of its spaces into one review, with a single lifecycle and a single merge decision.
|
|
68
|
+
|
|
69
|
+
{% openapi-schemas spec="gitbook" schemas="SiteChangeRequest" grouped="false" %}
|
|
70
|
+
The SiteChangeRequest object
|
|
71
|
+
{% endopenapi-schemas %}
|
|
61
72
|
- name: site-share-links
|
|
62
73
|
x-page-title: Site share links
|
|
63
74
|
x-page-description: Control how you share docs externally by managing share links for a site.
|
|
@@ -1526,7 +1537,7 @@ paths:
|
|
|
1526
1537
|
post:
|
|
1527
1538
|
operationId: createChangeRequest
|
|
1528
1539
|
summary: Create a new change request in a space
|
|
1529
|
-
description: Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready.
|
|
1540
|
+
description: Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready. When the change request fixes a documentation issue found by GitBook, pass its `siteFindingId` so that merging the change request resolves the finding.
|
|
1530
1541
|
x-gitbook-mcp: true
|
|
1531
1542
|
tags:
|
|
1532
1543
|
- change-requests
|
|
@@ -1561,6 +1572,12 @@ paths:
|
|
|
1561
1572
|
template:
|
|
1562
1573
|
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
1563
1574
|
description: Template to apply to the change request
|
|
1575
|
+
description:
|
|
1576
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
1577
|
+
description: Description of the change request, explaining what it changes and why, for whoever reviews it. Only paragraphs and lists are kept; other blocks are stripped along with their text.
|
|
1578
|
+
siteFindingId:
|
|
1579
|
+
type: string
|
|
1580
|
+
description: The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space.
|
|
1564
1581
|
additionalProperties: true
|
|
1565
1582
|
get:
|
|
1566
1583
|
operationId: listChangeRequestsForSpace
|
|
@@ -1657,7 +1674,7 @@ paths:
|
|
|
1657
1674
|
patch:
|
|
1658
1675
|
operationId: updateChangeRequestById
|
|
1659
1676
|
summary: Update a change request's subject, description, or status
|
|
1660
|
-
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.
|
|
1677
|
+
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. Set `siteFindingId` to record that the change request fixes a documentation issue found by GitBook, so that merging it resolves the finding.
|
|
1661
1678
|
x-gitbook-mcp: true
|
|
1662
1679
|
x-gitbook-return-preference: true
|
|
1663
1680
|
tags:
|
|
@@ -1693,6 +1710,11 @@ paths:
|
|
|
1693
1710
|
- draft
|
|
1694
1711
|
- open
|
|
1695
1712
|
- archived
|
|
1713
|
+
siteFindingId:
|
|
1714
|
+
type:
|
|
1715
|
+
- string
|
|
1716
|
+
- "null"
|
|
1717
|
+
description: The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space. Pass null to unlink a finding linked by mistake.
|
|
1696
1718
|
responses:
|
|
1697
1719
|
"200":
|
|
1698
1720
|
description: The change request has been updated
|
|
@@ -1856,6 +1878,36 @@ paths:
|
|
|
1856
1878
|
$ref: "#/components/schemas/Document"
|
|
1857
1879
|
required:
|
|
1858
1880
|
- status
|
|
1881
|
+
/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/stats:
|
|
1882
|
+
get:
|
|
1883
|
+
operationId: getReviewStatsByChangeRequestId
|
|
1884
|
+
summary: Get review totals for a change request
|
|
1885
|
+
description: Returns how many reviews were approved and how many requested changes, for the same reviews the list endpoint returns under the same filters. Use this to summarise where a change request stands without paginating through every review.
|
|
1886
|
+
x-gitbook-mcp: true
|
|
1887
|
+
tags:
|
|
1888
|
+
- change-requests-reviews
|
|
1889
|
+
security:
|
|
1890
|
+
- user: []
|
|
1891
|
+
- oauth:
|
|
1892
|
+
- space:read
|
|
1893
|
+
parameters:
|
|
1894
|
+
- $ref: "#/components/parameters/spaceId"
|
|
1895
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
1896
|
+
- in: query
|
|
1897
|
+
name: outdated
|
|
1898
|
+
description: Filter reviews marked as outdated.
|
|
1899
|
+
schema:
|
|
1900
|
+
type: boolean
|
|
1901
|
+
responses:
|
|
1902
|
+
"200":
|
|
1903
|
+
description: Review totals for the given change request.
|
|
1904
|
+
content:
|
|
1905
|
+
application/json:
|
|
1906
|
+
schema:
|
|
1907
|
+
$ref: "#/components/schemas/ChangeRequestReviewStats"
|
|
1908
|
+
"404":
|
|
1909
|
+
description: The change request or space could not be found.
|
|
1910
|
+
$ref: "#/components/responses/NotFoundError"
|
|
1859
1911
|
/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}:
|
|
1860
1912
|
get:
|
|
1861
1913
|
operationId: getChangeRequestReviewById
|
|
@@ -4833,7 +4885,12 @@ paths:
|
|
|
4833
4885
|
content:
|
|
4834
4886
|
application/json:
|
|
4835
4887
|
schema:
|
|
4836
|
-
|
|
4888
|
+
allOf:
|
|
4889
|
+
- $ref: "#/components/schemas/Organization"
|
|
4890
|
+
- type: object
|
|
4891
|
+
properties:
|
|
4892
|
+
subscriptionNotice:
|
|
4893
|
+
$ref: "#/components/schemas/SubscriptionNotice"
|
|
4837
4894
|
/orgs/{organizationId}:
|
|
4838
4895
|
get:
|
|
4839
4896
|
operationId: getOrganizationById
|
|
@@ -4893,10 +4950,16 @@ paths:
|
|
|
4893
4950
|
type: boolean
|
|
4894
4951
|
ai:
|
|
4895
4952
|
type: boolean
|
|
4953
|
+
aiSettings:
|
|
4954
|
+
$ref: "#/components/schemas/OrganizationAISettingsUpdate"
|
|
4896
4955
|
inviteLinks:
|
|
4897
4956
|
type: boolean
|
|
4898
4957
|
mergeRules:
|
|
4899
4958
|
$ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
|
|
4959
|
+
supportCost:
|
|
4960
|
+
oneOf:
|
|
4961
|
+
- $ref: "#/components/schemas/OrganizationSupportCost"
|
|
4962
|
+
- type: "null"
|
|
4900
4963
|
responses:
|
|
4901
4964
|
"200":
|
|
4902
4965
|
description: The organization has been updated
|
|
@@ -5215,6 +5278,28 @@ paths:
|
|
|
5215
5278
|
gitbookVisitorClaims:
|
|
5216
5279
|
description: A JTW token containing the claims to attach to this user.
|
|
5217
5280
|
type: string
|
|
5281
|
+
/orgs/{organizationId}/subscription:
|
|
5282
|
+
get:
|
|
5283
|
+
operationId: getOrganizationSubscription
|
|
5284
|
+
summary: Get an organization's subscription
|
|
5285
|
+
description: Returns whether the organization is on a trial, the free plan or a paid plan, when its trial ends, and where to upgrade. Use it to answer questions about the plan or the trial, or to find how to upgrade.
|
|
5286
|
+
tags:
|
|
5287
|
+
- organizations
|
|
5288
|
+
security:
|
|
5289
|
+
- user: []
|
|
5290
|
+
- oauth:
|
|
5291
|
+
- organization:read
|
|
5292
|
+
parameters:
|
|
5293
|
+
- $ref: "#/components/parameters/organizationId"
|
|
5294
|
+
responses:
|
|
5295
|
+
"200":
|
|
5296
|
+
description: OK
|
|
5297
|
+
content:
|
|
5298
|
+
application/json:
|
|
5299
|
+
schema:
|
|
5300
|
+
$ref: "#/components/schemas/OrganizationSubscription"
|
|
5301
|
+
"404":
|
|
5302
|
+
$ref: "#/components/responses/NotFoundError"
|
|
5218
5303
|
/orgs/{organizationId}/members/{userId}/sso:
|
|
5219
5304
|
post:
|
|
5220
5305
|
operationId: setUserAsSSOMemberForOrganization
|
|
@@ -7577,7 +7662,7 @@ paths:
|
|
|
7577
7662
|
get:
|
|
7578
7663
|
operationId: listSites
|
|
7579
7664
|
summary: List all documentation sites in an organization
|
|
7580
|
-
description: Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure.
|
|
7665
|
+
description: Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure. Members with access only to individual spaces receive the sites that use those spaces as site items, with site administration fields omitted.
|
|
7581
7666
|
x-gitbook-mcp: true
|
|
7582
7667
|
tags:
|
|
7583
7668
|
- sites
|
|
@@ -7682,7 +7767,7 @@ paths:
|
|
|
7682
7767
|
get:
|
|
7683
7768
|
operationId: getSiteById
|
|
7684
7769
|
summary: Get a documentation site by its ID
|
|
7685
|
-
description: Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content.
|
|
7770
|
+
description: Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content. Members with access only through a linked space can retrieve a limited site summary; site administration fields are omitted.
|
|
7686
7771
|
x-gitbook-mcp: true
|
|
7687
7772
|
tags:
|
|
7688
7773
|
- sites
|
|
@@ -7857,8 +7942,8 @@ paths:
|
|
|
7857
7942
|
type: object
|
|
7858
7943
|
properties:
|
|
7859
7944
|
jsonSchema:
|
|
7860
|
-
description: The JSON schema to set on the site.
|
|
7861
|
-
$ref: "#/components/schemas/
|
|
7945
|
+
description: The JSON schema to set on the site. `regions` is only accepted for organizations with regions enabled.
|
|
7946
|
+
$ref: "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
|
|
7862
7947
|
required:
|
|
7863
7948
|
- jsonSchema
|
|
7864
7949
|
responses:
|
|
@@ -7945,7 +8030,12 @@ paths:
|
|
|
7945
8030
|
application/json:
|
|
7946
8031
|
schema:
|
|
7947
8032
|
oneOf:
|
|
7948
|
-
-
|
|
8033
|
+
- allOf:
|
|
8034
|
+
- $ref: "#/components/schemas/Site"
|
|
8035
|
+
- type: object
|
|
8036
|
+
properties:
|
|
8037
|
+
subscriptionNotice:
|
|
8038
|
+
$ref: "#/components/schemas/SubscriptionNotice"
|
|
7949
8039
|
- type: object
|
|
7950
8040
|
description: User needs to checkout in order to publish the site.
|
|
7951
8041
|
properties:
|
|
@@ -7956,6 +8046,8 @@ paths:
|
|
|
7956
8046
|
sessionId:
|
|
7957
8047
|
type: string
|
|
7958
8048
|
description: Stripe payment session ID
|
|
8049
|
+
subscriptionNotice:
|
|
8050
|
+
$ref: "#/components/schemas/SubscriptionNotice"
|
|
7959
8051
|
required:
|
|
7960
8052
|
- type
|
|
7961
8053
|
- sessionId
|
|
@@ -7981,6 +8073,220 @@ paths:
|
|
|
7981
8073
|
application/json:
|
|
7982
8074
|
schema:
|
|
7983
8075
|
$ref: "#/components/schemas/Site"
|
|
8076
|
+
/orgs/{organizationId}/sites/{siteId}/change-requests:
|
|
8077
|
+
get:
|
|
8078
|
+
operationId: listChangeRequestsForSite
|
|
8079
|
+
summary: List all change requests for a site
|
|
8080
|
+
description: Returns a paginated list of change requests reviewing the site. A site change request groups changes to the site structure and to any number of its spaces into one review. Use this to discover existing change requests before creating a new one.
|
|
8081
|
+
x-internal: true
|
|
8082
|
+
tags:
|
|
8083
|
+
- site-change-requests
|
|
8084
|
+
security:
|
|
8085
|
+
- user: []
|
|
8086
|
+
- oauth:
|
|
8087
|
+
- site:read
|
|
8088
|
+
parameters:
|
|
8089
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8090
|
+
- $ref: "#/components/parameters/siteId"
|
|
8091
|
+
- $ref: "#/components/parameters/listPage"
|
|
8092
|
+
- $ref: "#/components/parameters/listLimit"
|
|
8093
|
+
- name: status
|
|
8094
|
+
in: query
|
|
8095
|
+
required: false
|
|
8096
|
+
schema:
|
|
8097
|
+
$ref: "#/components/schemas/ChangeRequestStatus"
|
|
8098
|
+
default: open
|
|
8099
|
+
description: If defined, only change requests matching this status will be returned.
|
|
8100
|
+
- name: createdBy
|
|
8101
|
+
in: query
|
|
8102
|
+
required: false
|
|
8103
|
+
schema:
|
|
8104
|
+
type: string
|
|
8105
|
+
description: If defined, only change requests created by this user will be returned.
|
|
8106
|
+
- name: openedBy
|
|
8107
|
+
in: query
|
|
8108
|
+
required: false
|
|
8109
|
+
schema:
|
|
8110
|
+
type: string
|
|
8111
|
+
description: If defined, only change requests moved out of draft by this user will be returned.
|
|
8112
|
+
- name: archivedBy
|
|
8113
|
+
in: query
|
|
8114
|
+
required: false
|
|
8115
|
+
schema:
|
|
8116
|
+
type: string
|
|
8117
|
+
description: If defined, only change requests archived by this user will be returned.
|
|
8118
|
+
- name: mergedBy
|
|
8119
|
+
in: query
|
|
8120
|
+
required: false
|
|
8121
|
+
schema:
|
|
8122
|
+
type: string
|
|
8123
|
+
description: If defined, only change requests merged by this user will be returned.
|
|
8124
|
+
- name: contributor
|
|
8125
|
+
in: query
|
|
8126
|
+
required: false
|
|
8127
|
+
schema:
|
|
8128
|
+
type: string
|
|
8129
|
+
description: If defined, only change requests with contributions from this user will be returned.
|
|
8130
|
+
- name: memberStatus
|
|
8131
|
+
in: query
|
|
8132
|
+
required: false
|
|
8133
|
+
schema:
|
|
8134
|
+
$ref: "#/components/schemas/SiteChangeRequestMemberStatus"
|
|
8135
|
+
default: active
|
|
8136
|
+
description: Status of the members.
|
|
8137
|
+
- name: orderBy
|
|
8138
|
+
in: query
|
|
8139
|
+
required: false
|
|
8140
|
+
schema:
|
|
8141
|
+
$ref: "#/components/schemas/ChangeRequestOrderBy"
|
|
8142
|
+
responses:
|
|
8143
|
+
"200":
|
|
8144
|
+
description: List of the site's change requests
|
|
8145
|
+
content:
|
|
8146
|
+
application/json:
|
|
8147
|
+
schema:
|
|
8148
|
+
allOf:
|
|
8149
|
+
- $ref: "#/components/schemas/List"
|
|
8150
|
+
- type: object
|
|
8151
|
+
required:
|
|
8152
|
+
- items
|
|
8153
|
+
properties:
|
|
8154
|
+
items:
|
|
8155
|
+
type: array
|
|
8156
|
+
items:
|
|
8157
|
+
$ref: "#/components/schemas/SiteChangeRequest"
|
|
8158
|
+
post:
|
|
8159
|
+
operationId: createSiteChangeRequest
|
|
8160
|
+
summary: Create a new change request in a site
|
|
8161
|
+
description: "Creates a change request reviewing the site, as a draft working copy of the content of the spaces it changes. It starts with no members: a space becomes one on its first edit."
|
|
8162
|
+
x-internal: true
|
|
8163
|
+
tags:
|
|
8164
|
+
- site-change-requests
|
|
8165
|
+
security:
|
|
8166
|
+
- user: []
|
|
8167
|
+
- oauth:
|
|
8168
|
+
- site:write
|
|
8169
|
+
parameters:
|
|
8170
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8171
|
+
- $ref: "#/components/parameters/siteId"
|
|
8172
|
+
requestBody:
|
|
8173
|
+
required: true
|
|
8174
|
+
content:
|
|
8175
|
+
application/json:
|
|
8176
|
+
schema:
|
|
8177
|
+
type: object
|
|
8178
|
+
properties:
|
|
8179
|
+
subject:
|
|
8180
|
+
$ref: "#/components/schemas/ChangeRequestSubject"
|
|
8181
|
+
description:
|
|
8182
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
8183
|
+
responses:
|
|
8184
|
+
"201":
|
|
8185
|
+
description: The change request has been created
|
|
8186
|
+
headers:
|
|
8187
|
+
Location:
|
|
8188
|
+
description: API URL for the newly created change request
|
|
8189
|
+
schema:
|
|
8190
|
+
type: string
|
|
8191
|
+
content:
|
|
8192
|
+
application/json:
|
|
8193
|
+
schema:
|
|
8194
|
+
$ref: "#/components/schemas/SiteChangeRequest"
|
|
8195
|
+
/orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}:
|
|
8196
|
+
get:
|
|
8197
|
+
operationId: getSiteChangeRequestById
|
|
8198
|
+
summary: Get a site change request by its ID
|
|
8199
|
+
description: Retrieves a single site change request, including its status, subject, description, aggregate version and active members. Use this to check its current state before deciding to merge, update or request a review.
|
|
8200
|
+
x-internal: true
|
|
8201
|
+
tags:
|
|
8202
|
+
- site-change-requests
|
|
8203
|
+
security:
|
|
8204
|
+
- user: []
|
|
8205
|
+
- oauth:
|
|
8206
|
+
- site:read
|
|
8207
|
+
parameters:
|
|
8208
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8209
|
+
- $ref: "#/components/parameters/siteId"
|
|
8210
|
+
- $ref: "#/components/parameters/siteChangeRequestId"
|
|
8211
|
+
responses:
|
|
8212
|
+
"200":
|
|
8213
|
+
description: The matching change request
|
|
8214
|
+
content:
|
|
8215
|
+
application/json:
|
|
8216
|
+
schema:
|
|
8217
|
+
$ref: "#/components/schemas/SiteChangeRequest"
|
|
8218
|
+
"404":
|
|
8219
|
+
description: The change request could not be found.
|
|
8220
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8221
|
+
patch:
|
|
8222
|
+
operationId: updateSiteChangeRequestById
|
|
8223
|
+
summary: Update a site change request's subject, description, or status
|
|
8224
|
+
description: Updates the metadata of a site change request. Use this to rename it, add context before requesting a review, or change its workflow status without merging. To change the resources it reviews, update its members instead.
|
|
8225
|
+
x-internal: true
|
|
8226
|
+
tags:
|
|
8227
|
+
- site-change-requests
|
|
8228
|
+
security:
|
|
8229
|
+
- user: []
|
|
8230
|
+
- oauth:
|
|
8231
|
+
- site:write
|
|
8232
|
+
parameters:
|
|
8233
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8234
|
+
- $ref: "#/components/parameters/siteId"
|
|
8235
|
+
- $ref: "#/components/parameters/siteChangeRequestId"
|
|
8236
|
+
requestBody:
|
|
8237
|
+
required: true
|
|
8238
|
+
content:
|
|
8239
|
+
application/json:
|
|
8240
|
+
schema:
|
|
8241
|
+
type: object
|
|
8242
|
+
minProperties: 1
|
|
8243
|
+
properties:
|
|
8244
|
+
subject:
|
|
8245
|
+
$ref: "#/components/schemas/ChangeRequestSubject"
|
|
8246
|
+
description:
|
|
8247
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
8248
|
+
status:
|
|
8249
|
+
type: string
|
|
8250
|
+
enum:
|
|
8251
|
+
- draft
|
|
8252
|
+
- open
|
|
8253
|
+
- archived
|
|
8254
|
+
responses:
|
|
8255
|
+
"200":
|
|
8256
|
+
description: The change request has been updated
|
|
8257
|
+
content:
|
|
8258
|
+
application/json:
|
|
8259
|
+
schema:
|
|
8260
|
+
$ref: "#/components/schemas/SiteChangeRequest"
|
|
8261
|
+
"404":
|
|
8262
|
+
description: The change request could not be found.
|
|
8263
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8264
|
+
"409":
|
|
8265
|
+
description: The change request has been merged and can no longer be changed.
|
|
8266
|
+
$ref: "#/components/responses/ConflictError"
|
|
8267
|
+
delete:
|
|
8268
|
+
operationId: deleteSiteChangeRequestById
|
|
8269
|
+
summary: Delete a site change request
|
|
8270
|
+
description: Permanently deletes a change request and its members. Merged change requests cannot be deleted; archive a change request instead to keep its review history.
|
|
8271
|
+
x-internal: true
|
|
8272
|
+
tags:
|
|
8273
|
+
- site-change-requests
|
|
8274
|
+
security:
|
|
8275
|
+
- user: []
|
|
8276
|
+
- oauth:
|
|
8277
|
+
- site:write
|
|
8278
|
+
parameters:
|
|
8279
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8280
|
+
- $ref: "#/components/parameters/siteId"
|
|
8281
|
+
- $ref: "#/components/parameters/siteChangeRequestId"
|
|
8282
|
+
responses:
|
|
8283
|
+
"204":
|
|
8284
|
+
description: The change request did not exist
|
|
8285
|
+
"205":
|
|
8286
|
+
description: The change request has been deleted
|
|
8287
|
+
"409":
|
|
8288
|
+
description: The change request has been merged and cannot be deleted.
|
|
8289
|
+
$ref: "#/components/responses/ConflictError"
|
|
7984
8290
|
/orgs/{organizationId}/sites/{siteId}/share-links:
|
|
7985
8291
|
get:
|
|
7986
8292
|
operationId: listSiteShareLinks
|
|
@@ -8113,7 +8419,7 @@ paths:
|
|
|
8113
8419
|
get:
|
|
8114
8420
|
operationId: getSiteStructure
|
|
8115
8421
|
summary: Get the full navigation structure of a site
|
|
8116
|
-
description: Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site.
|
|
8422
|
+
description: Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site. Members with access only to individual spaces receive only the site items backed by those spaces and their parent sections.
|
|
8117
8423
|
x-gitbook-mcp: true
|
|
8118
8424
|
tags:
|
|
8119
8425
|
- site-structure
|
|
@@ -8290,6 +8596,11 @@ paths:
|
|
|
8290
8596
|
description: Rison encoded string of attributes/assertions about the visitor for which we want to preview the site.
|
|
8291
8597
|
schema:
|
|
8292
8598
|
type: string
|
|
8599
|
+
- name: country
|
|
8600
|
+
in: query
|
|
8601
|
+
description: ISO 3166-1 alpha-2 code of the country of the visitor for which we want to preview the site. It is matched against the `regions` of the site adaptive schema to resolve `visitor.region`.
|
|
8602
|
+
schema:
|
|
8603
|
+
type: string
|
|
8293
8604
|
- name: draft
|
|
8294
8605
|
in: query
|
|
8295
8606
|
description: Whether to include draft content in the preview. Defaults to true
|
|
@@ -8366,7 +8677,12 @@ paths:
|
|
|
8366
8677
|
content:
|
|
8367
8678
|
application/json:
|
|
8368
8679
|
schema:
|
|
8369
|
-
|
|
8680
|
+
allOf:
|
|
8681
|
+
- $ref: "#/components/schemas/SiteCustomizationSettings"
|
|
8682
|
+
- type: object
|
|
8683
|
+
properties:
|
|
8684
|
+
subscriptionNotice:
|
|
8685
|
+
$ref: "#/components/schemas/SubscriptionNotice"
|
|
8370
8686
|
"400":
|
|
8371
8687
|
$ref: "#/components/responses/BadRequestError"
|
|
8372
8688
|
/orgs/{organizationId}/sites/{siteId}/integration-scripts:
|
|
@@ -8498,7 +8814,7 @@ paths:
|
|
|
8498
8814
|
get:
|
|
8499
8815
|
operationId: listSiteSpaces
|
|
8500
8816
|
summary: List all spaces linked to a site as content sources
|
|
8501
|
-
description: Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts.
|
|
8817
|
+
description: Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts. Members with access only to individual spaces receive only site-space links for those spaces.
|
|
8502
8818
|
x-gitbook-mcp: true
|
|
8503
8819
|
tags:
|
|
8504
8820
|
- site-spaces
|
|
@@ -8618,7 +8934,12 @@ paths:
|
|
|
8618
8934
|
content:
|
|
8619
8935
|
application/json:
|
|
8620
8936
|
schema:
|
|
8621
|
-
|
|
8937
|
+
allOf:
|
|
8938
|
+
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
8939
|
+
- type: object
|
|
8940
|
+
properties:
|
|
8941
|
+
subscriptionNotice:
|
|
8942
|
+
$ref: "#/components/schemas/SubscriptionNotice"
|
|
8622
8943
|
/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}:
|
|
8623
8944
|
patch:
|
|
8624
8945
|
operationId: updateSiteSectionGroupById
|
|
@@ -8752,7 +9073,12 @@ paths:
|
|
|
8752
9073
|
content:
|
|
8753
9074
|
application/json:
|
|
8754
9075
|
schema:
|
|
8755
|
-
|
|
9076
|
+
allOf:
|
|
9077
|
+
- $ref: "#/components/schemas/SiteSection"
|
|
9078
|
+
- type: object
|
|
9079
|
+
properties:
|
|
9080
|
+
subscriptionNotice:
|
|
9081
|
+
$ref: "#/components/schemas/SubscriptionNotice"
|
|
8756
9082
|
get:
|
|
8757
9083
|
operationId: listSiteSections
|
|
8758
9084
|
summary: List all navigation sections in a site
|
|
@@ -9501,7 +9827,7 @@ paths:
|
|
|
9501
9827
|
get:
|
|
9502
9828
|
operationId: listSiteFindings
|
|
9503
9829
|
summary: List documentation issues GitBook has found on a site
|
|
9504
|
-
description: Lists the quality issues GitBook's AI has identified on a site by comparing its content against real usage and external sources — content gaps, outdated or incorrect content, and broken or outbound links. Use this when asked to find, audit, or fix problems in a site's docs.
|
|
9830
|
+
description: "Lists the quality issues GitBook's AI has identified on a site by comparing its content against real usage and external sources — content gaps, outdated or incorrect content, and broken or outbound links. Use this when asked to find, audit, or fix problems in a site's docs. Only findings with status \"open\" need work; \"candidate\" ones have not been confirmed yet. A \"broken-link\" finding is fixed by a redirect rather than a content edit: pass its `brokenLinkAction` to createSiteRedirect. Fix the rest by opening a change request with its `siteFindingId` set, so merging the change request resolves it."
|
|
9505
9831
|
x-gitbook-mcp: true
|
|
9506
9832
|
tags:
|
|
9507
9833
|
- site-context
|
|
@@ -9536,6 +9862,11 @@ paths:
|
|
|
9536
9862
|
type: array
|
|
9537
9863
|
items:
|
|
9538
9864
|
$ref: "#/components/schemas/SiteFindingType"
|
|
9865
|
+
- name: url
|
|
9866
|
+
in: query
|
|
9867
|
+
description: "Filter link findings whose URL contains this text: the broken path of a `broken-link` finding, or the checked URL of an `outbound-link-error` one. Findings of any other type never match, so this narrows the list to link findings on its own."
|
|
9868
|
+
schema:
|
|
9869
|
+
type: string
|
|
9539
9870
|
- name: severity
|
|
9540
9871
|
in: query
|
|
9541
9872
|
description: Filter findings by estimated severity.
|
|
@@ -11746,6 +12077,9 @@ paths:
|
|
|
11746
12077
|
schema:
|
|
11747
12078
|
type: object
|
|
11748
12079
|
properties:
|
|
12080
|
+
siteFindingId:
|
|
12081
|
+
type: string
|
|
12082
|
+
description: The broken-link finding that prompted this redirect. Must belong to this site. Used to attribute redirect creation, including drafts, to the finding.
|
|
11749
12083
|
source:
|
|
11750
12084
|
$ref: "#/components/schemas/SiteRedirectSourcePath"
|
|
11751
12085
|
captureWildcard:
|
|
@@ -12330,6 +12664,141 @@ paths:
|
|
|
12330
12664
|
application/json:
|
|
12331
12665
|
schema:
|
|
12332
12666
|
$ref: "#/components/schemas/SiteChannel"
|
|
12667
|
+
/orgs/{organizationId}/sites/{siteId}/channels/scopes:
|
|
12668
|
+
post:
|
|
12669
|
+
operationId: listSiteChannelScopes
|
|
12670
|
+
summary: List available site channel scopes
|
|
12671
|
+
description: Lists accessible Linear teams, GitHub repositories, Slack channels or Jira projects. Requires site admin permission. Linear, GitHub and Slack require an already-connected channel belonging to this site and matching the provider. Jira credentials are verified without saving a connection. Slack includes public channels and accessible private channels, excluding archived channels. To fetch another page, pass the opaque token from `next.page` as the `page` query parameter with the same request body. An absent `next` means there are no more pages; an empty `items` array alone does not indicate the end of the list.
|
|
12672
|
+
x-gitbook-mcp: true
|
|
12673
|
+
tags:
|
|
12674
|
+
- site-channels
|
|
12675
|
+
security:
|
|
12676
|
+
- user: []
|
|
12677
|
+
- oauth:
|
|
12678
|
+
- site:read
|
|
12679
|
+
parameters:
|
|
12680
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12681
|
+
- $ref: "#/components/parameters/siteId"
|
|
12682
|
+
- $ref: "#/components/parameters/listPage"
|
|
12683
|
+
requestBody:
|
|
12684
|
+
required: true
|
|
12685
|
+
content:
|
|
12686
|
+
application/json:
|
|
12687
|
+
schema:
|
|
12688
|
+
oneOf:
|
|
12689
|
+
- type: object
|
|
12690
|
+
required:
|
|
12691
|
+
- provider
|
|
12692
|
+
- siteChannelId
|
|
12693
|
+
properties:
|
|
12694
|
+
provider:
|
|
12695
|
+
type: string
|
|
12696
|
+
enum:
|
|
12697
|
+
- linear
|
|
12698
|
+
siteChannelId:
|
|
12699
|
+
type: string
|
|
12700
|
+
description: ID of an already-connected channel belonging to this site and matching the provider.
|
|
12701
|
+
- type: object
|
|
12702
|
+
required:
|
|
12703
|
+
- provider
|
|
12704
|
+
- siteChannelId
|
|
12705
|
+
properties:
|
|
12706
|
+
provider:
|
|
12707
|
+
type: string
|
|
12708
|
+
enum:
|
|
12709
|
+
- github
|
|
12710
|
+
siteChannelId:
|
|
12711
|
+
type: string
|
|
12712
|
+
description: ID of an already-connected channel belonging to this site and matching the provider.
|
|
12713
|
+
- type: object
|
|
12714
|
+
required:
|
|
12715
|
+
- provider
|
|
12716
|
+
- siteChannelId
|
|
12717
|
+
properties:
|
|
12718
|
+
provider:
|
|
12719
|
+
type: string
|
|
12720
|
+
enum:
|
|
12721
|
+
- slack
|
|
12722
|
+
siteChannelId:
|
|
12723
|
+
type: string
|
|
12724
|
+
description: ID of an already-connected channel belonging to this site and matching the provider.
|
|
12725
|
+
- type: object
|
|
12726
|
+
required:
|
|
12727
|
+
- provider
|
|
12728
|
+
- credentials
|
|
12729
|
+
properties:
|
|
12730
|
+
provider:
|
|
12731
|
+
type: string
|
|
12732
|
+
enum:
|
|
12733
|
+
- jira
|
|
12734
|
+
credentials:
|
|
12735
|
+
type: object
|
|
12736
|
+
required:
|
|
12737
|
+
- baseUrl
|
|
12738
|
+
- apiEmail
|
|
12739
|
+
- apiToken
|
|
12740
|
+
properties:
|
|
12741
|
+
baseUrl:
|
|
12742
|
+
type: string
|
|
12743
|
+
format: uri
|
|
12744
|
+
minLength: 1
|
|
12745
|
+
maxLength: 2048
|
|
12746
|
+
description: Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net.
|
|
12747
|
+
apiEmail:
|
|
12748
|
+
type: string
|
|
12749
|
+
format: email
|
|
12750
|
+
minLength: 1
|
|
12751
|
+
maxLength: 254
|
|
12752
|
+
description: Email of the Atlassian account whose API token is used.
|
|
12753
|
+
apiToken:
|
|
12754
|
+
type: string
|
|
12755
|
+
minLength: 1
|
|
12756
|
+
maxLength: 1024
|
|
12757
|
+
description: Atlassian API token used to verify the account and list accessible projects. Not saved.
|
|
12758
|
+
discriminator:
|
|
12759
|
+
propertyName: provider
|
|
12760
|
+
responses:
|
|
12761
|
+
"200":
|
|
12762
|
+
description: Scopes available through the connected provider or supplied Jira credentials
|
|
12763
|
+
content:
|
|
12764
|
+
application/json:
|
|
12765
|
+
schema:
|
|
12766
|
+
allOf:
|
|
12767
|
+
- $ref: "#/components/schemas/List"
|
|
12768
|
+
- type: object
|
|
12769
|
+
required:
|
|
12770
|
+
- object
|
|
12771
|
+
- items
|
|
12772
|
+
- connection
|
|
12773
|
+
properties:
|
|
12774
|
+
object:
|
|
12775
|
+
type: string
|
|
12776
|
+
enum:
|
|
12777
|
+
- site-channel-scopes
|
|
12778
|
+
connection:
|
|
12779
|
+
type: string
|
|
12780
|
+
description: Linear workspace name, GitHub account name, Slack workspace name (or ID if unavailable), or Jira Cloud hostname.
|
|
12781
|
+
items:
|
|
12782
|
+
type: array
|
|
12783
|
+
items:
|
|
12784
|
+
type: object
|
|
12785
|
+
required:
|
|
12786
|
+
- key
|
|
12787
|
+
- name
|
|
12788
|
+
properties:
|
|
12789
|
+
key:
|
|
12790
|
+
type: string
|
|
12791
|
+
description: Value accepted by the provider scope settings, such as a team key, repository full name, channel name, Jira project key.
|
|
12792
|
+
name:
|
|
12793
|
+
type: string
|
|
12794
|
+
"400":
|
|
12795
|
+
$ref: "#/components/responses/BadRequestError"
|
|
12796
|
+
"401":
|
|
12797
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
12798
|
+
"403":
|
|
12799
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
12800
|
+
"404":
|
|
12801
|
+
$ref: "#/components/responses/NotFoundError"
|
|
12333
12802
|
/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}:
|
|
12334
12803
|
get:
|
|
12335
12804
|
operationId: getSiteChannelById
|
|
@@ -12389,6 +12858,7 @@ paths:
|
|
|
12389
12858
|
delete:
|
|
12390
12859
|
operationId: deleteSiteChannelById
|
|
12391
12860
|
summary: Delete a GitBook Agent channel from a site
|
|
12861
|
+
description: Removes the channel configuration from the site, so GitBook Agent stops answering and collaborating through the connected platform. The app itself is not uninstalled and its access is not revoked on the platform, so remove it there as well to fully disconnect.
|
|
12392
12862
|
tags:
|
|
12393
12863
|
- site-channels
|
|
12394
12864
|
security:
|
|
@@ -13615,6 +14085,13 @@ components:
|
|
|
13615
14085
|
description: The unique id of the import run
|
|
13616
14086
|
schema:
|
|
13617
14087
|
type: string
|
|
14088
|
+
siteChangeRequestId:
|
|
14089
|
+
name: changeRequestId
|
|
14090
|
+
in: path
|
|
14091
|
+
required: true
|
|
14092
|
+
description: The unique ID of the change request or its number identifier in the site
|
|
14093
|
+
schema:
|
|
14094
|
+
$ref: "#/components/schemas/EntityId"
|
|
13618
14095
|
shareLinkId:
|
|
13619
14096
|
name: shareLinkId
|
|
13620
14097
|
in: path
|
|
@@ -14184,6 +14661,9 @@ components:
|
|
|
14184
14661
|
url:
|
|
14185
14662
|
type: string
|
|
14186
14663
|
description: The URL to the repository tree, used when rendering public content.
|
|
14664
|
+
installationProjectDirectory:
|
|
14665
|
+
type: string
|
|
14666
|
+
description: Directory in the repository this content syncs from, resolved against the parent installation when the installation is managed by a site. Absent when the content syncs from the root of the repository.
|
|
14187
14667
|
operation:
|
|
14188
14668
|
type: object
|
|
14189
14669
|
description: The latest operation on the Git Sync installation.
|
|
@@ -14215,6 +14695,15 @@ components:
|
|
|
14215
14695
|
- installationId
|
|
14216
14696
|
- installationProvider
|
|
14217
14697
|
- installationStatus
|
|
14698
|
+
PreviousGitSyncState:
|
|
14699
|
+
type: object
|
|
14700
|
+
description: What is still known about a target's Git Sync after its installation was removed. Never returned alongside `gitSync`, which describes a live installation.
|
|
14701
|
+
required:
|
|
14702
|
+
- url
|
|
14703
|
+
properties:
|
|
14704
|
+
url:
|
|
14705
|
+
type: string
|
|
14706
|
+
description: The URL to the directory of the repository tree the content synced with before its Git Sync installation was removed, at the branch it synced.
|
|
14218
14707
|
ContentImportSource:
|
|
14219
14708
|
oneOf:
|
|
14220
14709
|
- type: object
|
|
@@ -14478,6 +14967,8 @@ components:
|
|
|
14478
14967
|
$ref: "#/components/schemas/TranslationLanguage"
|
|
14479
14968
|
gitSync:
|
|
14480
14969
|
$ref: "#/components/schemas/GitSyncState"
|
|
14970
|
+
previousGitSync:
|
|
14971
|
+
$ref: "#/components/schemas/PreviousGitSyncState"
|
|
14481
14972
|
imports:
|
|
14482
14973
|
description: |
|
|
14483
14974
|
Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.
|
|
@@ -18785,6 +19276,7 @@ components:
|
|
|
18785
19276
|
type: string
|
|
18786
19277
|
enum:
|
|
18787
19278
|
- jira
|
|
19279
|
+
- linear
|
|
18788
19280
|
state:
|
|
18789
19281
|
type: string
|
|
18790
19282
|
enum:
|
|
@@ -18828,6 +19320,7 @@ components:
|
|
|
18828
19320
|
type: string
|
|
18829
19321
|
enum:
|
|
18830
19322
|
- jira
|
|
19323
|
+
- linear
|
|
18831
19324
|
state:
|
|
18832
19325
|
type: string
|
|
18833
19326
|
enum:
|
|
@@ -18844,11 +19337,16 @@ components:
|
|
|
18844
19337
|
id:
|
|
18845
19338
|
type: string
|
|
18846
19339
|
description: The ID of the link.
|
|
19340
|
+
isSyncing:
|
|
19341
|
+
type: boolean
|
|
19342
|
+
readOnly: true
|
|
19343
|
+
description: Whether this link owns synchronization with the external issue. Other links are references only.
|
|
18847
19344
|
expanded:
|
|
18848
19345
|
$ref: "#/components/schemas/ChangeRequestLinkExpanded"
|
|
18849
19346
|
readOnly: true
|
|
18850
19347
|
required:
|
|
18851
19348
|
- id
|
|
19349
|
+
- isSyncing
|
|
18852
19350
|
ChangeRequestLinks:
|
|
18853
19351
|
type: array
|
|
18854
19352
|
description: External links associated with the change request.
|
|
@@ -18907,7 +19405,7 @@ components:
|
|
|
18907
19405
|
description: Count of opened comments on the change request.
|
|
18908
19406
|
siteTopic:
|
|
18909
19407
|
type: object
|
|
18910
|
-
description: Site
|
|
19408
|
+
description: Site topic the change request was created from, when it came from one.
|
|
18911
19409
|
properties:
|
|
18912
19410
|
site:
|
|
18913
19411
|
type: string
|
|
@@ -18917,10 +19415,24 @@ components:
|
|
|
18917
19415
|
description: ID of the site topic associated with the change request.
|
|
18918
19416
|
finding:
|
|
18919
19417
|
type: string
|
|
18920
|
-
|
|
19418
|
+
deprecated: true
|
|
19419
|
+
description: "ID of the site finding the change request fixes. Use `siteFinding` instead: a change request can fix a finding without belonging to a topic, and this field is absent in that case."
|
|
18921
19420
|
required:
|
|
18922
19421
|
- site
|
|
18923
19422
|
- topic
|
|
19423
|
+
siteFinding:
|
|
19424
|
+
type: object
|
|
19425
|
+
description: Site finding the change request fixes, when it is linked to one. Merging the change request resolves the finding, once every change request linked to it is merged.
|
|
19426
|
+
properties:
|
|
19427
|
+
site:
|
|
19428
|
+
type: string
|
|
19429
|
+
description: ID of the site the finding belongs to.
|
|
19430
|
+
finding:
|
|
19431
|
+
type: string
|
|
19432
|
+
description: ID of the site finding the change request fixes.
|
|
19433
|
+
required:
|
|
19434
|
+
- site
|
|
19435
|
+
- finding
|
|
18924
19436
|
styleguide:
|
|
18925
19437
|
type: object
|
|
18926
19438
|
description: |
|
|
@@ -19335,6 +19847,16 @@ components:
|
|
|
19335
19847
|
- createdAt
|
|
19336
19848
|
- updatedAt
|
|
19337
19849
|
- urls
|
|
19850
|
+
ChangeRequestReviewStats:
|
|
19851
|
+
type: object
|
|
19852
|
+
description: Exact review totals for the applied filters, independent of pagination. Keyed by review status, with a count of zero for a status nobody used.
|
|
19853
|
+
propertyNames:
|
|
19854
|
+
$ref: "#/components/schemas/ChangeRequestReviewStatus"
|
|
19855
|
+
additionalProperties:
|
|
19856
|
+
type: number
|
|
19857
|
+
required:
|
|
19858
|
+
- approved
|
|
19859
|
+
- changes-requested
|
|
19338
19860
|
Team:
|
|
19339
19861
|
type: object
|
|
19340
19862
|
properties:
|
|
@@ -20618,6 +21140,69 @@ components:
|
|
|
20618
21140
|
description: The default content for the organization
|
|
20619
21141
|
oneOf:
|
|
20620
21142
|
- $ref: "#/components/schemas/SitePointer"
|
|
21143
|
+
AICreditThreshold:
|
|
21144
|
+
description: An AI credit threshold from 5% to 50%, or null when disabled.
|
|
21145
|
+
oneOf:
|
|
21146
|
+
- type: number
|
|
21147
|
+
minimum: 5
|
|
21148
|
+
maximum: 50
|
|
21149
|
+
- type: "null"
|
|
21150
|
+
OrganizationAISettings:
|
|
21151
|
+
type: object
|
|
21152
|
+
description: AI preferences and automatic pause status. Missing feature keys leave features enabled, subject to the master AI setting and feature eligibility.
|
|
21153
|
+
additionalProperties: false
|
|
21154
|
+
properties:
|
|
21155
|
+
aiPaused:
|
|
21156
|
+
type: boolean
|
|
21157
|
+
readOnly: true
|
|
21158
|
+
description: Whether AI features are automatically paused because credits are low.
|
|
21159
|
+
ai-agent:
|
|
21160
|
+
type: boolean
|
|
21161
|
+
enum:
|
|
21162
|
+
- false
|
|
21163
|
+
ai-assistant:
|
|
21164
|
+
type: boolean
|
|
21165
|
+
enum:
|
|
21166
|
+
- false
|
|
21167
|
+
ai-broken-links:
|
|
21168
|
+
type: boolean
|
|
21169
|
+
enum:
|
|
21170
|
+
- false
|
|
21171
|
+
ai-content-gap:
|
|
21172
|
+
type: boolean
|
|
21173
|
+
enum:
|
|
21174
|
+
- false
|
|
21175
|
+
ai-insight:
|
|
21176
|
+
type: boolean
|
|
21177
|
+
enum:
|
|
21178
|
+
- false
|
|
21179
|
+
ai-import:
|
|
21180
|
+
type: boolean
|
|
21181
|
+
enum:
|
|
21182
|
+
- false
|
|
21183
|
+
ai-platform:
|
|
21184
|
+
type: boolean
|
|
21185
|
+
enum:
|
|
21186
|
+
- false
|
|
21187
|
+
ai-style-guide:
|
|
21188
|
+
type: boolean
|
|
21189
|
+
enum:
|
|
21190
|
+
- false
|
|
21191
|
+
ai-translation:
|
|
21192
|
+
type: boolean
|
|
21193
|
+
enum:
|
|
21194
|
+
- false
|
|
21195
|
+
aiCreditAlertThreshold:
|
|
21196
|
+
$ref: "#/components/schemas/AICreditThreshold"
|
|
21197
|
+
aiCreditPauseEnabled:
|
|
21198
|
+
description: Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.
|
|
21199
|
+
type: boolean
|
|
21200
|
+
aiAlertNotificationAlertId:
|
|
21201
|
+
type: string
|
|
21202
|
+
readOnly: true
|
|
21203
|
+
aiPauseNotificationAlertId:
|
|
21204
|
+
type: string
|
|
21205
|
+
readOnly: true
|
|
20621
21206
|
BillingProduct:
|
|
20622
21207
|
type: string
|
|
20623
21208
|
description: Name of the product
|
|
@@ -20695,10 +21280,10 @@ components:
|
|
|
20695
21280
|
description: The AI credit bundle to top up every month
|
|
20696
21281
|
enum:
|
|
20697
21282
|
- none
|
|
20698
|
-
-
|
|
20699
|
-
-
|
|
20700
|
-
-
|
|
20701
|
-
-
|
|
21283
|
+
- 4750_250
|
|
21284
|
+
- 9000_1000
|
|
21285
|
+
- 12750_2250
|
|
21286
|
+
- 30000_10000
|
|
20702
21287
|
OrganizationBilling:
|
|
20703
21288
|
type: object
|
|
20704
21289
|
properties:
|
|
@@ -20765,13 +21350,16 @@ components:
|
|
|
20765
21350
|
oneOf:
|
|
20766
21351
|
- $ref: "#/components/schemas/BillingCreditsBundle"
|
|
20767
21352
|
- type: "null"
|
|
20768
|
-
|
|
20769
|
-
description:
|
|
21353
|
+
aiCreditAllowance:
|
|
21354
|
+
description: The yearly AI credit allowance agreed in the organization's contract, or null when none is set.
|
|
20770
21355
|
oneOf:
|
|
20771
|
-
- type:
|
|
20772
|
-
minimum: 0
|
|
20773
|
-
maximum: 100
|
|
21356
|
+
- type: integer
|
|
20774
21357
|
- type: "null"
|
|
21358
|
+
aiCreditRollover:
|
|
21359
|
+
description: The percentage of unused paid bundle credits carried over to the next monthly AI billing period.
|
|
21360
|
+
type: integer
|
|
21361
|
+
minimum: 0
|
|
21362
|
+
maximum: 100
|
|
20775
21363
|
required:
|
|
20776
21364
|
- interval
|
|
20777
21365
|
- endDate
|
|
@@ -20783,7 +21371,39 @@ components:
|
|
|
20783
21371
|
- canChangeInterval
|
|
20784
21372
|
- canUseSAML
|
|
20785
21373
|
- creditsBundle
|
|
20786
|
-
-
|
|
21374
|
+
- aiCreditAllowance
|
|
21375
|
+
- aiCreditRollover
|
|
21376
|
+
OrganizationSupportCost:
|
|
21377
|
+
description: What support costs the organization, per ticket or per hour of agent time, used to estimate how much AI answers save in site insights.
|
|
21378
|
+
oneOf:
|
|
21379
|
+
- type: object
|
|
21380
|
+
additionalProperties: false
|
|
21381
|
+
properties:
|
|
21382
|
+
perTicket:
|
|
21383
|
+
type: number
|
|
21384
|
+
minimum: 0.01
|
|
21385
|
+
description: Cost of one support ticket, in `currency`.
|
|
21386
|
+
currency:
|
|
21387
|
+
type: string
|
|
21388
|
+
pattern: ^[A-Z]{3}$
|
|
21389
|
+
description: ISO 4217 currency code.
|
|
21390
|
+
required:
|
|
21391
|
+
- perTicket
|
|
21392
|
+
- currency
|
|
21393
|
+
- type: object
|
|
21394
|
+
additionalProperties: false
|
|
21395
|
+
properties:
|
|
21396
|
+
perHour:
|
|
21397
|
+
type: number
|
|
21398
|
+
minimum: 0.01
|
|
21399
|
+
description: Cost of one hour of support agent time, in `currency`.
|
|
21400
|
+
currency:
|
|
21401
|
+
type: string
|
|
21402
|
+
pattern: ^[A-Z]{3}$
|
|
21403
|
+
description: ISO 4217 currency code.
|
|
21404
|
+
required:
|
|
21405
|
+
- perHour
|
|
21406
|
+
- currency
|
|
20787
21407
|
BillingTrialStatus:
|
|
20788
21408
|
type: string
|
|
20789
21409
|
description: |
|
|
@@ -20841,6 +21461,8 @@ components:
|
|
|
20841
21461
|
ai:
|
|
20842
21462
|
description: If true, the organization is configured to use all our AI features.
|
|
20843
21463
|
type: boolean
|
|
21464
|
+
aiSettings:
|
|
21465
|
+
$ref: "#/components/schemas/OrganizationAISettings"
|
|
20844
21466
|
inviteLinks:
|
|
20845
21467
|
description: If true, invite links are enabled for this organization.
|
|
20846
21468
|
type: boolean
|
|
@@ -20854,6 +21476,9 @@ components:
|
|
|
20854
21476
|
$ref: "#/components/schemas/OrganizationBilling"
|
|
20855
21477
|
mergeRules:
|
|
20856
21478
|
$ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
|
|
21479
|
+
supportCost:
|
|
21480
|
+
description: Support cost set by the organization, only available for org members.
|
|
21481
|
+
$ref: "#/components/schemas/OrganizationSupportCost"
|
|
20857
21482
|
urls:
|
|
20858
21483
|
type: object
|
|
20859
21484
|
description: URLs associated with the object
|
|
@@ -22432,6 +23057,7 @@ components:
|
|
|
22432
23057
|
- sites-sections
|
|
22433
23058
|
- sites-seo
|
|
22434
23059
|
- sites-share-links
|
|
23060
|
+
- sites-style-guide
|
|
22435
23061
|
- sites-unlisted-visibility
|
|
22436
23062
|
- sites-user-contribution
|
|
22437
23063
|
- sites-visitor-authentication
|
|
@@ -23555,6 +24181,101 @@ components:
|
|
|
23555
24181
|
$ref: "#/components/schemas/SiteOnboardingPreferences"
|
|
23556
24182
|
required:
|
|
23557
24183
|
- title
|
|
24184
|
+
SubscriptionTrial:
|
|
24185
|
+
type: object
|
|
24186
|
+
description: The current or last trial of an organization.
|
|
24187
|
+
properties:
|
|
24188
|
+
status:
|
|
24189
|
+
$ref: "#/components/schemas/BillingTrialStatus"
|
|
24190
|
+
endDate:
|
|
24191
|
+
description: When the trial ends, or ended.
|
|
24192
|
+
$ref: "#/components/schemas/Timestamp"
|
|
24193
|
+
daysRemaining:
|
|
24194
|
+
type: integer
|
|
24195
|
+
description: Days left in the trial, rounded up, so 1 is its last day. 0 once it has ended.
|
|
24196
|
+
required:
|
|
24197
|
+
- status
|
|
24198
|
+
- endDate
|
|
24199
|
+
- daysRemaining
|
|
24200
|
+
SubscriptionNotice:
|
|
24201
|
+
type: object
|
|
24202
|
+
description: |
|
|
24203
|
+
A notice about the organization's subscription to relay to the user, such as how many days are left in their trial. It is returned by the operations whose features may require a paid plan once a trial ends.
|
|
24204
|
+
properties:
|
|
24205
|
+
type:
|
|
24206
|
+
type: string
|
|
24207
|
+
description: |
|
|
24208
|
+
- trial_started, the operation started the organization's trial. - trial_countdown, the organization's trial ends soon. - checkout_required, the operation needs a paid plan to complete.
|
|
24209
|
+
enum:
|
|
24210
|
+
- trial_started
|
|
24211
|
+
- trial_countdown
|
|
24212
|
+
- checkout_required
|
|
24213
|
+
context:
|
|
24214
|
+
type: string
|
|
24215
|
+
description: What the user was doing when the notice was given.
|
|
24216
|
+
enum:
|
|
24217
|
+
- trial_started
|
|
24218
|
+
- site_publishing
|
|
24219
|
+
- site_features
|
|
24220
|
+
- site_customization
|
|
24221
|
+
commercialStatus:
|
|
24222
|
+
type: string
|
|
24223
|
+
description: Whether the organization is on a trial, the free plan, or a paid plan.
|
|
24224
|
+
enum:
|
|
24225
|
+
- trial
|
|
24226
|
+
- free
|
|
24227
|
+
- paid
|
|
24228
|
+
message:
|
|
24229
|
+
type: string
|
|
24230
|
+
description: Message to show the user. For users who cannot upgrade, it asks them to reach out to an administrator of the organization.
|
|
24231
|
+
trial:
|
|
24232
|
+
$ref: "#/components/schemas/SubscriptionTrial"
|
|
24233
|
+
canManageBilling:
|
|
24234
|
+
type: boolean
|
|
24235
|
+
description: Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade.
|
|
24236
|
+
upgradeUrl:
|
|
24237
|
+
description: Where to upgrade in the application. Only set when `canManageBilling` is true.
|
|
24238
|
+
$ref: "#/components/schemas/URL"
|
|
24239
|
+
pricingUrl:
|
|
24240
|
+
description: Public page comparing the GitBook plans.
|
|
24241
|
+
$ref: "#/components/schemas/URL"
|
|
24242
|
+
required:
|
|
24243
|
+
- type
|
|
24244
|
+
- context
|
|
24245
|
+
- commercialStatus
|
|
24246
|
+
- message
|
|
24247
|
+
- canManageBilling
|
|
24248
|
+
- pricingUrl
|
|
24249
|
+
OptOutUpdate:
|
|
24250
|
+
description: Set false to disable, or null to remove the opt-out. Omit to leave unchanged.
|
|
24251
|
+
oneOf:
|
|
24252
|
+
- type: boolean
|
|
24253
|
+
enum:
|
|
24254
|
+
- false
|
|
24255
|
+
- type: "null"
|
|
24256
|
+
OrganizationAISettingsUpdate:
|
|
24257
|
+
type: object
|
|
24258
|
+
description: Partial AI preference update. Omitted keys are unchanged; null removes an opt-out.
|
|
24259
|
+
additionalProperties: false
|
|
24260
|
+
properties:
|
|
24261
|
+
ai-agent:
|
|
24262
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
24263
|
+
ai-assistant:
|
|
24264
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
24265
|
+
ai-broken-links:
|
|
24266
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
24267
|
+
ai-content-gap:
|
|
24268
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
24269
|
+
ai-insight:
|
|
24270
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
24271
|
+
ai-import:
|
|
24272
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
24273
|
+
ai-platform:
|
|
24274
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
24275
|
+
ai-style-guide:
|
|
24276
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
24277
|
+
ai-translation:
|
|
24278
|
+
$ref: "#/components/schemas/OptOutUpdate"
|
|
23558
24279
|
SiteSectionTitle:
|
|
23559
24280
|
type: string
|
|
23560
24281
|
description: Title of the site section
|
|
@@ -23911,6 +24632,18 @@ components:
|
|
|
23911
24632
|
label:
|
|
23912
24633
|
type: string
|
|
23913
24634
|
description: Display label captured when the event was recorded.
|
|
24635
|
+
impersonator:
|
|
24636
|
+
type: object
|
|
24637
|
+
description: GitBook staff member acting as this user. Present only for recorded impersonation; older events may not have this information. The actor ID remains the effective user for filtering.
|
|
24638
|
+
properties:
|
|
24639
|
+
id:
|
|
24640
|
+
type: string
|
|
24641
|
+
description: Stable ID of the impersonating staff member.
|
|
24642
|
+
label:
|
|
24643
|
+
type: string
|
|
24644
|
+
description: Staff display name captured when the event was recorded, if available.
|
|
24645
|
+
required:
|
|
24646
|
+
- id
|
|
23914
24647
|
required:
|
|
23915
24648
|
- type
|
|
23916
24649
|
- id
|
|
@@ -24059,6 +24792,52 @@ components:
|
|
|
24059
24792
|
$ref: "#/components/schemas/StyleguideTemplate"
|
|
24060
24793
|
required:
|
|
24061
24794
|
- templates
|
|
24795
|
+
OrganizationSubscription:
|
|
24796
|
+
type: object
|
|
24797
|
+
description: An organization's subscription, as needed to tell a user their plan, trial and how to upgrade.
|
|
24798
|
+
properties:
|
|
24799
|
+
object:
|
|
24800
|
+
type: string
|
|
24801
|
+
description: Type of Object, always equals to "organization-subscription"
|
|
24802
|
+
enum:
|
|
24803
|
+
- organization-subscription
|
|
24804
|
+
status:
|
|
24805
|
+
type: string
|
|
24806
|
+
description: Whether the organization is on a trial, the free plan, or a paid plan.
|
|
24807
|
+
enum:
|
|
24808
|
+
- trial
|
|
24809
|
+
- free
|
|
24810
|
+
- paid
|
|
24811
|
+
plan:
|
|
24812
|
+
type: object
|
|
24813
|
+
description: The plan in effect, which is the trial's plan while trialing.
|
|
24814
|
+
properties:
|
|
24815
|
+
id:
|
|
24816
|
+
$ref: "#/components/schemas/BillingProduct"
|
|
24817
|
+
title:
|
|
24818
|
+
type: string
|
|
24819
|
+
description: Name of the plan shown to users, e.g. Pro.
|
|
24820
|
+
required:
|
|
24821
|
+
- id
|
|
24822
|
+
- title
|
|
24823
|
+
trial:
|
|
24824
|
+
description: The current or last trial. Absent when the organization never had one.
|
|
24825
|
+
$ref: "#/components/schemas/SubscriptionTrial"
|
|
24826
|
+
canManageBilling:
|
|
24827
|
+
type: boolean
|
|
24828
|
+
description: Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade.
|
|
24829
|
+
upgradeUrl:
|
|
24830
|
+
description: Where to upgrade in the application. Only set when `canManageBilling` is true.
|
|
24831
|
+
$ref: "#/components/schemas/URL"
|
|
24832
|
+
pricingUrl:
|
|
24833
|
+
description: Public page comparing the GitBook plans.
|
|
24834
|
+
$ref: "#/components/schemas/URL"
|
|
24835
|
+
required:
|
|
24836
|
+
- object
|
|
24837
|
+
- status
|
|
24838
|
+
- plan
|
|
24839
|
+
- canManageBilling
|
|
24840
|
+
- pricingUrl
|
|
24062
24841
|
MemberContentPermission:
|
|
24063
24842
|
type: object
|
|
24064
24843
|
description: Permission of a member in a content.
|
|
@@ -24637,14 +25416,18 @@ components:
|
|
|
24637
25416
|
properties:
|
|
24638
25417
|
type:
|
|
24639
25418
|
type: string
|
|
24640
|
-
description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.
|
|
25419
|
+
description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.
|
|
24641
25420
|
enum:
|
|
24642
25421
|
- paid
|
|
24643
25422
|
- bonus
|
|
24644
25423
|
- site
|
|
24645
25424
|
- rollover
|
|
25425
|
+
- custom
|
|
25426
|
+
priority:
|
|
25427
|
+
type: number
|
|
25428
|
+
description: Stripe spending priority. Lower values are consumed first.
|
|
24646
25429
|
grantedCredits:
|
|
24647
|
-
description: Credits
|
|
25430
|
+
description: Credits available from this grant before the current invoice usage.
|
|
24648
25431
|
type: number
|
|
24649
25432
|
usedCredits:
|
|
24650
25433
|
description: Credits of the grant spent by the usage metered so far.
|
|
@@ -24700,7 +25483,7 @@ components:
|
|
|
24700
25483
|
description: The credits the organization pays for.
|
|
24701
25484
|
$ref: "#/components/schemas/BillingCreditsTotals"
|
|
24702
25485
|
free:
|
|
24703
|
-
description: The
|
|
25486
|
+
description: The bonus, site and custom credits.
|
|
24704
25487
|
$ref: "#/components/schemas/BillingCreditsTotals"
|
|
24705
25488
|
bundle:
|
|
24706
25489
|
description: The credits of the monthly bundle, both paid and bonus.
|
|
@@ -24805,7 +25588,7 @@ components:
|
|
|
24805
25588
|
description: The credits the organization pays for.
|
|
24806
25589
|
$ref: "#/components/schemas/BillingCreditsTotals"
|
|
24807
25590
|
free:
|
|
24808
|
-
description: The
|
|
25591
|
+
description: The bonus, site and custom credits.
|
|
24809
25592
|
$ref: "#/components/schemas/BillingCreditsTotals"
|
|
24810
25593
|
bundle:
|
|
24811
25594
|
description: The credits of the monthly bundle, both paid and bonus.
|
|
@@ -24827,14 +25610,18 @@ components:
|
|
|
24827
25610
|
properties:
|
|
24828
25611
|
type:
|
|
24829
25612
|
type: string
|
|
24830
|
-
description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.
|
|
25613
|
+
description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.
|
|
24831
25614
|
enum:
|
|
24832
25615
|
- paid
|
|
24833
25616
|
- bonus
|
|
24834
25617
|
- site
|
|
24835
25618
|
- rollover
|
|
25619
|
+
- custom
|
|
25620
|
+
priority:
|
|
25621
|
+
type: number
|
|
25622
|
+
description: Stripe spending priority. Lower values are consumed first.
|
|
24836
25623
|
grantedCredits:
|
|
24837
|
-
description: Credits
|
|
25624
|
+
description: Credits available from this grant before the current invoice usage.
|
|
24838
25625
|
type: number
|
|
24839
25626
|
usedCredits:
|
|
24840
25627
|
description: Credits of the grant spent by the usage metered so far.
|
|
@@ -25102,6 +25889,7 @@ components:
|
|
|
25102
25889
|
description: An organization feature used for plan access and upgrade prompts.
|
|
25103
25890
|
enum:
|
|
25104
25891
|
- max-members
|
|
25892
|
+
- ai
|
|
25105
25893
|
- ai-lens
|
|
25106
25894
|
- pdf-export
|
|
25107
25895
|
- ai-writing
|
|
@@ -25525,6 +26313,9 @@ components:
|
|
|
25525
26313
|
space:
|
|
25526
26314
|
type: string
|
|
25527
26315
|
description: The space ID owning the page.
|
|
26316
|
+
title:
|
|
26317
|
+
type: string
|
|
26318
|
+
description: The title of the page, as of `revision`.
|
|
25528
26319
|
sections:
|
|
25529
26320
|
type: array
|
|
25530
26321
|
items:
|
|
@@ -25535,6 +26326,7 @@ components:
|
|
|
25535
26326
|
- page
|
|
25536
26327
|
- revision
|
|
25537
26328
|
- space
|
|
26329
|
+
- title
|
|
25538
26330
|
- sections
|
|
25539
26331
|
SearchAIAnswerSourceRecord:
|
|
25540
26332
|
type: object
|
|
@@ -26517,6 +27309,274 @@ components:
|
|
|
26517
27309
|
- createdBy
|
|
26518
27310
|
- updatedAt
|
|
26519
27311
|
- urls
|
|
27312
|
+
SiteAdaptiveRegions:
|
|
27313
|
+
type: object
|
|
27314
|
+
description: Groups of countries exposed to adaptive content as `visitor.region`. The key of each entry is the region name; `visitor.region` is undefined for a visitor whose country is in none of the regions. A site can declare at most 10 regions.
|
|
27315
|
+
maxProperties: 10
|
|
27316
|
+
propertyNames:
|
|
27317
|
+
pattern: ^[a-zA-Z0-9_-]+$
|
|
27318
|
+
additionalProperties:
|
|
27319
|
+
type: object
|
|
27320
|
+
properties:
|
|
27321
|
+
countries:
|
|
27322
|
+
type: array
|
|
27323
|
+
description: ISO 3166-1 alpha-2 codes of the countries in the region.
|
|
27324
|
+
items:
|
|
27325
|
+
type: string
|
|
27326
|
+
enum:
|
|
27327
|
+
- AD
|
|
27328
|
+
- AE
|
|
27329
|
+
- AF
|
|
27330
|
+
- AG
|
|
27331
|
+
- AI
|
|
27332
|
+
- AL
|
|
27333
|
+
- AM
|
|
27334
|
+
- AO
|
|
27335
|
+
- AQ
|
|
27336
|
+
- AR
|
|
27337
|
+
- AS
|
|
27338
|
+
- AT
|
|
27339
|
+
- AU
|
|
27340
|
+
- AW
|
|
27341
|
+
- AX
|
|
27342
|
+
- AZ
|
|
27343
|
+
- BA
|
|
27344
|
+
- BB
|
|
27345
|
+
- BD
|
|
27346
|
+
- BE
|
|
27347
|
+
- BF
|
|
27348
|
+
- BG
|
|
27349
|
+
- BH
|
|
27350
|
+
- BI
|
|
27351
|
+
- BJ
|
|
27352
|
+
- BL
|
|
27353
|
+
- BM
|
|
27354
|
+
- BN
|
|
27355
|
+
- BO
|
|
27356
|
+
- BQ
|
|
27357
|
+
- BR
|
|
27358
|
+
- BS
|
|
27359
|
+
- BT
|
|
27360
|
+
- BV
|
|
27361
|
+
- BW
|
|
27362
|
+
- BY
|
|
27363
|
+
- BZ
|
|
27364
|
+
- CA
|
|
27365
|
+
- CC
|
|
27366
|
+
- CD
|
|
27367
|
+
- CF
|
|
27368
|
+
- CG
|
|
27369
|
+
- CH
|
|
27370
|
+
- CI
|
|
27371
|
+
- CK
|
|
27372
|
+
- CL
|
|
27373
|
+
- CM
|
|
27374
|
+
- CN
|
|
27375
|
+
- CO
|
|
27376
|
+
- CR
|
|
27377
|
+
- CU
|
|
27378
|
+
- CV
|
|
27379
|
+
- CW
|
|
27380
|
+
- CX
|
|
27381
|
+
- CY
|
|
27382
|
+
- CZ
|
|
27383
|
+
- DE
|
|
27384
|
+
- DJ
|
|
27385
|
+
- DK
|
|
27386
|
+
- DM
|
|
27387
|
+
- DO
|
|
27388
|
+
- DZ
|
|
27389
|
+
- EC
|
|
27390
|
+
- EE
|
|
27391
|
+
- EG
|
|
27392
|
+
- EH
|
|
27393
|
+
- ER
|
|
27394
|
+
- ES
|
|
27395
|
+
- ET
|
|
27396
|
+
- FI
|
|
27397
|
+
- FJ
|
|
27398
|
+
- FK
|
|
27399
|
+
- FM
|
|
27400
|
+
- FO
|
|
27401
|
+
- FR
|
|
27402
|
+
- GA
|
|
27403
|
+
- GB
|
|
27404
|
+
- GD
|
|
27405
|
+
- GE
|
|
27406
|
+
- GF
|
|
27407
|
+
- GG
|
|
27408
|
+
- GH
|
|
27409
|
+
- GI
|
|
27410
|
+
- GL
|
|
27411
|
+
- GM
|
|
27412
|
+
- GN
|
|
27413
|
+
- GP
|
|
27414
|
+
- GQ
|
|
27415
|
+
- GR
|
|
27416
|
+
- GS
|
|
27417
|
+
- GT
|
|
27418
|
+
- GU
|
|
27419
|
+
- GW
|
|
27420
|
+
- GY
|
|
27421
|
+
- HK
|
|
27422
|
+
- HM
|
|
27423
|
+
- HN
|
|
27424
|
+
- HR
|
|
27425
|
+
- HT
|
|
27426
|
+
- HU
|
|
27427
|
+
- ID
|
|
27428
|
+
- IE
|
|
27429
|
+
- IL
|
|
27430
|
+
- IM
|
|
27431
|
+
- IN
|
|
27432
|
+
- IO
|
|
27433
|
+
- IQ
|
|
27434
|
+
- IR
|
|
27435
|
+
- IS
|
|
27436
|
+
- IT
|
|
27437
|
+
- JE
|
|
27438
|
+
- JM
|
|
27439
|
+
- JO
|
|
27440
|
+
- JP
|
|
27441
|
+
- KE
|
|
27442
|
+
- KG
|
|
27443
|
+
- KH
|
|
27444
|
+
- KI
|
|
27445
|
+
- KM
|
|
27446
|
+
- KN
|
|
27447
|
+
- KP
|
|
27448
|
+
- KR
|
|
27449
|
+
- KW
|
|
27450
|
+
- KY
|
|
27451
|
+
- KZ
|
|
27452
|
+
- LA
|
|
27453
|
+
- LB
|
|
27454
|
+
- LC
|
|
27455
|
+
- LI
|
|
27456
|
+
- LK
|
|
27457
|
+
- LR
|
|
27458
|
+
- LS
|
|
27459
|
+
- LT
|
|
27460
|
+
- LU
|
|
27461
|
+
- LV
|
|
27462
|
+
- LY
|
|
27463
|
+
- MA
|
|
27464
|
+
- MC
|
|
27465
|
+
- MD
|
|
27466
|
+
- ME
|
|
27467
|
+
- MF
|
|
27468
|
+
- MG
|
|
27469
|
+
- MH
|
|
27470
|
+
- MK
|
|
27471
|
+
- ML
|
|
27472
|
+
- MM
|
|
27473
|
+
- MN
|
|
27474
|
+
- MO
|
|
27475
|
+
- MP
|
|
27476
|
+
- MQ
|
|
27477
|
+
- MR
|
|
27478
|
+
- MS
|
|
27479
|
+
- MT
|
|
27480
|
+
- MU
|
|
27481
|
+
- MV
|
|
27482
|
+
- MW
|
|
27483
|
+
- MX
|
|
27484
|
+
- MY
|
|
27485
|
+
- MZ
|
|
27486
|
+
- NA
|
|
27487
|
+
- NC
|
|
27488
|
+
- NE
|
|
27489
|
+
- NF
|
|
27490
|
+
- NG
|
|
27491
|
+
- NI
|
|
27492
|
+
- NL
|
|
27493
|
+
- NO
|
|
27494
|
+
- NP
|
|
27495
|
+
- NR
|
|
27496
|
+
- NU
|
|
27497
|
+
- NZ
|
|
27498
|
+
- OM
|
|
27499
|
+
- PA
|
|
27500
|
+
- PE
|
|
27501
|
+
- PF
|
|
27502
|
+
- PG
|
|
27503
|
+
- PH
|
|
27504
|
+
- PK
|
|
27505
|
+
- PL
|
|
27506
|
+
- PM
|
|
27507
|
+
- PN
|
|
27508
|
+
- PR
|
|
27509
|
+
- PS
|
|
27510
|
+
- PT
|
|
27511
|
+
- PW
|
|
27512
|
+
- PY
|
|
27513
|
+
- QA
|
|
27514
|
+
- RE
|
|
27515
|
+
- RO
|
|
27516
|
+
- RS
|
|
27517
|
+
- RU
|
|
27518
|
+
- RW
|
|
27519
|
+
- SA
|
|
27520
|
+
- SB
|
|
27521
|
+
- SC
|
|
27522
|
+
- SD
|
|
27523
|
+
- SE
|
|
27524
|
+
- SG
|
|
27525
|
+
- SH
|
|
27526
|
+
- SI
|
|
27527
|
+
- SJ
|
|
27528
|
+
- SK
|
|
27529
|
+
- SL
|
|
27530
|
+
- SM
|
|
27531
|
+
- SN
|
|
27532
|
+
- SO
|
|
27533
|
+
- SR
|
|
27534
|
+
- SS
|
|
27535
|
+
- ST
|
|
27536
|
+
- SV
|
|
27537
|
+
- SX
|
|
27538
|
+
- SY
|
|
27539
|
+
- SZ
|
|
27540
|
+
- TC
|
|
27541
|
+
- TD
|
|
27542
|
+
- TF
|
|
27543
|
+
- TG
|
|
27544
|
+
- TH
|
|
27545
|
+
- TJ
|
|
27546
|
+
- TK
|
|
27547
|
+
- TL
|
|
27548
|
+
- TM
|
|
27549
|
+
- TN
|
|
27550
|
+
- TO
|
|
27551
|
+
- TR
|
|
27552
|
+
- TT
|
|
27553
|
+
- TV
|
|
27554
|
+
- TW
|
|
27555
|
+
- TZ
|
|
27556
|
+
- UA
|
|
27557
|
+
- UG
|
|
27558
|
+
- UM
|
|
27559
|
+
- US
|
|
27560
|
+
- UY
|
|
27561
|
+
- UZ
|
|
27562
|
+
- VA
|
|
27563
|
+
- VC
|
|
27564
|
+
- VE
|
|
27565
|
+
- VG
|
|
27566
|
+
- VI
|
|
27567
|
+
- VN
|
|
27568
|
+
- VU
|
|
27569
|
+
- WF
|
|
27570
|
+
- WS
|
|
27571
|
+
- XK
|
|
27572
|
+
- YE
|
|
27573
|
+
- YT
|
|
27574
|
+
- ZA
|
|
27575
|
+
- ZM
|
|
27576
|
+
- ZW
|
|
27577
|
+
required:
|
|
27578
|
+
- countries
|
|
27579
|
+
additionalProperties: false
|
|
26520
27580
|
SiteAdaptiveDeterministicJSONSchemaPrimitives:
|
|
26521
27581
|
oneOf:
|
|
26522
27582
|
- type: object
|
|
@@ -26615,10 +27675,12 @@ components:
|
|
|
26615
27675
|
- properties
|
|
26616
27676
|
- additionalProperties
|
|
26617
27677
|
additionalProperties: false
|
|
26618
|
-
|
|
27678
|
+
SiteAdaptiveJSONSchemaWithRegions:
|
|
26619
27679
|
type: object
|
|
26620
|
-
description: JSON schema describing the expected attributes of an Adaptive site schema.
|
|
27680
|
+
description: JSON schema describing the expected attributes of an Adaptive site schema, with the regions `visitor.region` is resolved from.
|
|
26621
27681
|
properties:
|
|
27682
|
+
regions:
|
|
27683
|
+
$ref: "#/components/schemas/SiteAdaptiveRegions"
|
|
26622
27684
|
$schema:
|
|
26623
27685
|
type: string
|
|
26624
27686
|
enum:
|
|
@@ -26674,7 +27736,7 @@ components:
|
|
|
26674
27736
|
enum:
|
|
26675
27737
|
- site-adaptive-schema
|
|
26676
27738
|
jsonSchema:
|
|
26677
|
-
$ref: "#/components/schemas/
|
|
27739
|
+
$ref: "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
|
|
26678
27740
|
updatedAt:
|
|
26679
27741
|
description: When the adaptive schema was updated.
|
|
26680
27742
|
$ref: "#/components/schemas/Timestamp"
|
|
@@ -27459,6 +28521,168 @@ components:
|
|
|
27459
28521
|
- structure
|
|
27460
28522
|
- customizations
|
|
27461
28523
|
- scripts
|
|
28524
|
+
SiteChangeRequestMemberStatus:
|
|
28525
|
+
type: string
|
|
28526
|
+
description: Whether the member is part of the change request, or a tombstone kept so that a member removed and later re-added keeps its identity, comments and history.
|
|
28527
|
+
enum:
|
|
28528
|
+
- active
|
|
28529
|
+
- removed
|
|
28530
|
+
SiteChangeRequestMember:
|
|
28531
|
+
type: object
|
|
28532
|
+
description: State shared by every resource changed by a site change request. Each resource is versioned independently; the change request reviews and merges them as one.
|
|
28533
|
+
properties:
|
|
28534
|
+
object:
|
|
28535
|
+
type: string
|
|
28536
|
+
enum:
|
|
28537
|
+
- site-change-request-member
|
|
28538
|
+
id:
|
|
28539
|
+
type: string
|
|
28540
|
+
description: Unique identifier for the member
|
|
28541
|
+
status:
|
|
28542
|
+
$ref: "#/components/schemas/SiteChangeRequestMemberStatus"
|
|
28543
|
+
createdAt:
|
|
28544
|
+
$ref: "#/components/schemas/Timestamp"
|
|
28545
|
+
updatedAt:
|
|
28546
|
+
$ref: "#/components/schemas/Timestamp"
|
|
28547
|
+
required:
|
|
28548
|
+
- object
|
|
28549
|
+
- id
|
|
28550
|
+
- status
|
|
28551
|
+
- createdAt
|
|
28552
|
+
- updatedAt
|
|
28553
|
+
SiteChangeRequestContentMember:
|
|
28554
|
+
allOf:
|
|
28555
|
+
- $ref: "#/components/schemas/SiteChangeRequestMember"
|
|
28556
|
+
- type: object
|
|
28557
|
+
description: Content of one space changed by a site change request.
|
|
28558
|
+
properties:
|
|
28559
|
+
space:
|
|
28560
|
+
type: string
|
|
28561
|
+
description: ID of the space whose content changes.
|
|
28562
|
+
baseRevisionId:
|
|
28563
|
+
type: string
|
|
28564
|
+
description: ID of the revision in the space's main content this member diverged from.
|
|
28565
|
+
headRevisionId:
|
|
28566
|
+
type: string
|
|
28567
|
+
description: ID of the revision currently proposed for the space.
|
|
28568
|
+
mergedRevisionId:
|
|
28569
|
+
type: string
|
|
28570
|
+
description: ID of the revision produced in the space's main content when this member was merged. Only present once the change request has been merged.
|
|
28571
|
+
required:
|
|
28572
|
+
- space
|
|
28573
|
+
- baseRevisionId
|
|
28574
|
+
- headRevisionId
|
|
28575
|
+
SiteChangeRequestStructureMember:
|
|
28576
|
+
allOf:
|
|
28577
|
+
- $ref: "#/components/schemas/SiteChangeRequestMember"
|
|
28578
|
+
- type: object
|
|
28579
|
+
description: "Structure of the site changed by a site change request: its space membership, sections, ordering and paths."
|
|
28580
|
+
properties:
|
|
28581
|
+
base:
|
|
28582
|
+
description: The live site structure this member diverged from.
|
|
28583
|
+
$ref: "#/components/schemas/SiteStructure"
|
|
28584
|
+
head:
|
|
28585
|
+
description: The site structure currently proposed.
|
|
28586
|
+
$ref: "#/components/schemas/SiteStructure"
|
|
28587
|
+
SiteChangeRequestCustomizationMember:
|
|
28588
|
+
allOf:
|
|
28589
|
+
- $ref: "#/components/schemas/SiteChangeRequestMember"
|
|
28590
|
+
- type: object
|
|
28591
|
+
description: Customization settings of the site changed by a site change request.
|
|
28592
|
+
properties:
|
|
28593
|
+
base:
|
|
28594
|
+
description: The live customization settings this member diverged from.
|
|
28595
|
+
$ref: "#/components/schemas/SiteCustomizationSettings"
|
|
28596
|
+
head:
|
|
28597
|
+
description: The customization settings currently proposed.
|
|
28598
|
+
$ref: "#/components/schemas/SiteCustomizationSettings"
|
|
28599
|
+
SiteChangeRequest:
|
|
28600
|
+
type: object
|
|
28601
|
+
description: A change request reviewing a site as a whole. It groups every proposed change — the site's structure and its content — into one review, one lifecycle and one merge decision.
|
|
28602
|
+
properties:
|
|
28603
|
+
object:
|
|
28604
|
+
type: string
|
|
28605
|
+
enum:
|
|
28606
|
+
- site-change-request
|
|
28607
|
+
id:
|
|
28608
|
+
type: string
|
|
28609
|
+
description: Unique identifier for the change request
|
|
28610
|
+
organization:
|
|
28611
|
+
type: string
|
|
28612
|
+
description: ID of the organization owning the change request.
|
|
28613
|
+
site:
|
|
28614
|
+
type: string
|
|
28615
|
+
description: ID of the site reviewed by the change request.
|
|
28616
|
+
number:
|
|
28617
|
+
type: number
|
|
28618
|
+
description: Incremental identifier of the change request within the site.
|
|
28619
|
+
version:
|
|
28620
|
+
type: number
|
|
28621
|
+
description: Identity of the complete set of member states currently exposed. It increments once per completed update, so a review can detect that it applies to outdated content.
|
|
28622
|
+
status:
|
|
28623
|
+
$ref: "#/components/schemas/ChangeRequestStatus"
|
|
28624
|
+
subject:
|
|
28625
|
+
$ref: "#/components/schemas/ChangeRequestSubject"
|
|
28626
|
+
description:
|
|
28627
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
28628
|
+
links:
|
|
28629
|
+
$ref: "#/components/schemas/ChangeRequestLinks"
|
|
28630
|
+
content:
|
|
28631
|
+
type: array
|
|
28632
|
+
description: Spaces whose content the change request changes, one entry per space. Empty when it only changes the site itself.
|
|
28633
|
+
items:
|
|
28634
|
+
$ref: "#/components/schemas/SiteChangeRequestContentMember"
|
|
28635
|
+
structure:
|
|
28636
|
+
$ref: "#/components/schemas/SiteChangeRequestStructureMember"
|
|
28637
|
+
description: Only present when the change request changes the site structure.
|
|
28638
|
+
customization:
|
|
28639
|
+
$ref: "#/components/schemas/SiteChangeRequestCustomizationMember"
|
|
28640
|
+
description: Only present when the change request changes the site customization settings.
|
|
28641
|
+
comments:
|
|
28642
|
+
type: number
|
|
28643
|
+
description: Count of opened comments across all members of the change request.
|
|
28644
|
+
createdBy:
|
|
28645
|
+
$ref: "#/components/schemas/User"
|
|
28646
|
+
createdAt:
|
|
28647
|
+
$ref: "#/components/schemas/Timestamp"
|
|
28648
|
+
updatedAt:
|
|
28649
|
+
$ref: "#/components/schemas/Timestamp"
|
|
28650
|
+
mergedBy:
|
|
28651
|
+
$ref: "#/components/schemas/User"
|
|
28652
|
+
description: User who merged the change request. Only present when it has been merged.
|
|
28653
|
+
mergedAt:
|
|
28654
|
+
$ref: "#/components/schemas/Timestamp"
|
|
28655
|
+
description: Date at which the change request was merged. Only present when it has been merged.
|
|
28656
|
+
urls:
|
|
28657
|
+
type: object
|
|
28658
|
+
description: URLs associated with the object
|
|
28659
|
+
properties:
|
|
28660
|
+
app:
|
|
28661
|
+
type: string
|
|
28662
|
+
description: URL of the change request in the application
|
|
28663
|
+
format: uri
|
|
28664
|
+
location:
|
|
28665
|
+
type: string
|
|
28666
|
+
description: URL of the change request in the API
|
|
28667
|
+
format: uri
|
|
28668
|
+
required:
|
|
28669
|
+
- app
|
|
28670
|
+
- location
|
|
28671
|
+
required:
|
|
28672
|
+
- object
|
|
28673
|
+
- id
|
|
28674
|
+
- organization
|
|
28675
|
+
- site
|
|
28676
|
+
- number
|
|
28677
|
+
- version
|
|
28678
|
+
- status
|
|
28679
|
+
- subject
|
|
28680
|
+
- content
|
|
28681
|
+
- comments
|
|
28682
|
+
- createdBy
|
|
28683
|
+
- createdAt
|
|
28684
|
+
- updatedAt
|
|
28685
|
+
- urls
|
|
27462
28686
|
ShareLinkName:
|
|
27463
28687
|
type: string
|
|
27464
28688
|
description: Name of the share link
|
|
@@ -28204,8 +29428,9 @@ components:
|
|
|
28204
29428
|
- updatedAt
|
|
28205
29429
|
- severity
|
|
28206
29430
|
- sources
|
|
29431
|
+
- suggestedFix
|
|
28207
29432
|
default: updatedAt
|
|
28208
|
-
description: The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. Defaults to 'updatedAt'.
|
|
29433
|
+
description: "The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. `suggestedFix` is for link findings: those that come with a fix (a suggested redirect, or an outbound link to correct) come before broken URLs the audit found no page for, most severe first within each group. Other finding types sort with the second group. Defaults to 'updatedAt'."
|
|
28209
29434
|
SiteFindingTitle:
|
|
28210
29435
|
type: string
|
|
28211
29436
|
description: Short finding title
|
|
@@ -28234,7 +29459,7 @@ components:
|
|
|
28234
29459
|
- path
|
|
28235
29460
|
SiteFindingBrokenLinkAction:
|
|
28236
29461
|
type: object
|
|
28237
|
-
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).
|
|
29462
|
+
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). The destination is absent when the audit judged the URL and found no page to redirect to: a redirect can still be created from the source with a destination of your choosing."
|
|
28238
29463
|
properties:
|
|
28239
29464
|
source:
|
|
28240
29465
|
$ref: "#/components/schemas/SiteRedirectSourcePath"
|
|
@@ -28245,7 +29470,6 @@ components:
|
|
|
28245
29470
|
$ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
28246
29471
|
required:
|
|
28247
29472
|
- source
|
|
28248
|
-
- destination
|
|
28249
29473
|
SiteFindingOutboundLink:
|
|
28250
29474
|
type: object
|
|
28251
29475
|
description: "Details of an `outbound-link-error` finding: the failing external URL and the observed failure, sourced from the site's outbound link checks. Absent on findings of any other type."
|
|
@@ -28585,6 +29809,19 @@ components:
|
|
|
28585
29809
|
description: Count of findings by the connector their evidence came from, keyed by connector (e.g. `builtin:intercom`). A finding is counted once per connector that contributed at least one piece of evidence to it, so the counts can add up to more than the total.
|
|
28586
29810
|
additionalProperties:
|
|
28587
29811
|
type: number
|
|
29812
|
+
SiteFindingStatsBrokenLinks:
|
|
29813
|
+
type: object
|
|
29814
|
+
description: Breakdown of the broken-link findings included in the aggregation.
|
|
29815
|
+
properties:
|
|
29816
|
+
redirectSuggested:
|
|
29817
|
+
type: number
|
|
29818
|
+
description: Broken URLs the audit found a page to redirect to.
|
|
29819
|
+
noMatchingPage:
|
|
29820
|
+
type: number
|
|
29821
|
+
description: Broken URLs the audit judged and found no page to redirect to.
|
|
29822
|
+
required:
|
|
29823
|
+
- redirectSuggested
|
|
29824
|
+
- noMatchingPage
|
|
28588
29825
|
SiteFindingStats:
|
|
28589
29826
|
type: object
|
|
28590
29827
|
description: Aggregated stats for the findings identified on a site.
|
|
@@ -28598,6 +29835,8 @@ components:
|
|
|
28598
29835
|
$ref: "#/components/schemas/SiteFindingStatsSeverities"
|
|
28599
29836
|
connectors:
|
|
28600
29837
|
$ref: "#/components/schemas/SiteFindingStatsConnectors"
|
|
29838
|
+
brokenLinks:
|
|
29839
|
+
$ref: "#/components/schemas/SiteFindingStatsBrokenLinks"
|
|
28601
29840
|
questions:
|
|
28602
29841
|
type: number
|
|
28603
29842
|
description: Count of findings with at least one piece of evidence coming from a site question.
|
|
@@ -28609,6 +29848,7 @@ components:
|
|
|
28609
29848
|
- statuses
|
|
28610
29849
|
- severities
|
|
28611
29850
|
- connectors
|
|
29851
|
+
- brokenLinks
|
|
28612
29852
|
- questions
|
|
28613
29853
|
- mergedChangeRequests
|
|
28614
29854
|
ContextConnectionLabel:
|
|
@@ -28970,6 +30210,15 @@ components:
|
|
|
28970
30210
|
minLength: 1
|
|
28971
30211
|
maxLength: 1024
|
|
28972
30212
|
description: Atlassian API token used for outbound writes. Redacted when read back.
|
|
30213
|
+
projectKeys:
|
|
30214
|
+
type: array
|
|
30215
|
+
maxItems: 100
|
|
30216
|
+
uniqueItems: true
|
|
30217
|
+
description: Projects where GitBook handles issues. Empty means all accessible projects.
|
|
30218
|
+
items:
|
|
30219
|
+
type: string
|
|
30220
|
+
minLength: 1
|
|
30221
|
+
maxLength: 255
|
|
28973
30222
|
statusMapping:
|
|
28974
30223
|
type: object
|
|
28975
30224
|
description: 'Jira status to move the linked issue to when the change request reaches a given status, e.g. `{ "merged": "Done" }`. A status left out is not synced.'
|
|
@@ -29500,6 +30749,9 @@ components:
|
|
|
29500
30749
|
revisionId:
|
|
29501
30750
|
type: string
|
|
29502
30751
|
description: The revision ID of the result
|
|
30752
|
+
path:
|
|
30753
|
+
type: string
|
|
30754
|
+
description: The path of the page within its space, as the published site serves it.
|
|
29503
30755
|
anchor:
|
|
29504
30756
|
type: string
|
|
29505
30757
|
description: The anchor of the result
|
|
@@ -30112,6 +31364,41 @@ components:
|
|
|
30112
31364
|
- status
|
|
30113
31365
|
- importedPages
|
|
30114
31366
|
- totalPages
|
|
31367
|
+
AIToolCallStartBackgroundAgent:
|
|
31368
|
+
type: object
|
|
31369
|
+
description: |
|
|
31370
|
+
Tool call recording that the agent started a background agent: a child conversation running one bounded task on its own, in parallel with the conversation that started it. The client renders its live status from `AgentState.backgroundAgents`, matched on `agentId`, and can open the child conversation to read what it did.
|
|
31371
|
+
properties:
|
|
31372
|
+
tool:
|
|
31373
|
+
type: string
|
|
31374
|
+
enum:
|
|
31375
|
+
- startBackgroundAgent
|
|
31376
|
+
agentId:
|
|
31377
|
+
type: string
|
|
31378
|
+
description: Identifier of the background agent within the conversation that started it.
|
|
31379
|
+
conversationId:
|
|
31380
|
+
type: string
|
|
31381
|
+
description: |
|
|
31382
|
+
The child conversation holding the background agent's transcript. It can only be read, never continued.
|
|
31383
|
+
title:
|
|
31384
|
+
type: string
|
|
31385
|
+
description: |
|
|
31386
|
+
A few words naming what the background agent is doing, for a tab and a line of a transcript. The task itself is a brief and far too long to label anything with.
|
|
31387
|
+
task:
|
|
31388
|
+
type: string
|
|
31389
|
+
description: The task the background agent was given.
|
|
31390
|
+
pages:
|
|
31391
|
+
type: array
|
|
31392
|
+
description: |
|
|
31393
|
+
IDs of the pages the background agent owns, when it was started to change content. Two background agents of the same conversation never own the same page.
|
|
31394
|
+
items:
|
|
31395
|
+
type: string
|
|
31396
|
+
required:
|
|
31397
|
+
- tool
|
|
31398
|
+
- agentId
|
|
31399
|
+
- conversationId
|
|
31400
|
+
- title
|
|
31401
|
+
- task
|
|
30115
31402
|
AIToolCallMCP:
|
|
30116
31403
|
type: object
|
|
30117
31404
|
description: Tool called from an MCP server
|
|
@@ -30189,6 +31476,7 @@ components:
|
|
|
30189
31476
|
- $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
|
|
30190
31477
|
- $ref: "#/components/schemas/AIToolCallStartContentImport"
|
|
30191
31478
|
- $ref: "#/components/schemas/AIToolCallCheckContentImport"
|
|
31479
|
+
- $ref: "#/components/schemas/AIToolCallStartBackgroundAgent"
|
|
30192
31480
|
- $ref: "#/components/schemas/AIToolCallMCP"
|
|
30193
31481
|
- $ref: "#/components/schemas/AIToolCallOther"
|
|
30194
31482
|
AIMessageStepPhase:
|
|
@@ -30406,6 +31694,20 @@ components:
|
|
|
30406
31694
|
- type
|
|
30407
31695
|
- spaceId
|
|
30408
31696
|
- changeRequestId
|
|
31697
|
+
- type: object
|
|
31698
|
+
description: |
|
|
31699
|
+
When the agent is a background agent running one task for the conversation that started it.
|
|
31700
|
+
properties:
|
|
31701
|
+
type:
|
|
31702
|
+
type: string
|
|
31703
|
+
enum:
|
|
31704
|
+
- background_agent
|
|
31705
|
+
parentConversationId:
|
|
31706
|
+
type: string
|
|
31707
|
+
description: The conversation that started this background agent.
|
|
31708
|
+
required:
|
|
31709
|
+
- type
|
|
31710
|
+
- parentConversationId
|
|
30409
31711
|
AIMessageResponseMetadata:
|
|
30410
31712
|
description: The response that generated this message.
|
|
30411
31713
|
type: object
|
|
@@ -31165,6 +32467,11 @@ components:
|
|
|
31165
32467
|
url:
|
|
31166
32468
|
description: URL of the location.
|
|
31167
32469
|
$ref: "#/components/schemas/URL"
|
|
32470
|
+
previousUrl:
|
|
32471
|
+
description: URL of the page of the site the visitor was on before this one, if any. Unlike the session referrer, it follows navigation within the site. Only recorded when it has the same origin as `url`; any other value is discarded.
|
|
32472
|
+
oneOf:
|
|
32473
|
+
- type: "null"
|
|
32474
|
+
- $ref: "#/components/schemas/URL"
|
|
31168
32475
|
displayContext:
|
|
31169
32476
|
description: Whether the event was tracked on the site, the server, or an embed widget.
|
|
31170
32477
|
$ref: "#/components/schemas/SiteInsightsDisplayContext"
|
|
@@ -31394,6 +32701,14 @@ components:
|
|
|
31394
32701
|
type: string
|
|
31395
32702
|
enum:
|
|
31396
32703
|
- ask_view
|
|
32704
|
+
trigger:
|
|
32705
|
+
type: string
|
|
32706
|
+
enum:
|
|
32707
|
+
- hover
|
|
32708
|
+
- selection
|
|
32709
|
+
- site
|
|
32710
|
+
- page
|
|
32711
|
+
- embed
|
|
31397
32712
|
required:
|
|
31398
32713
|
- type
|
|
31399
32714
|
SiteInsightsEventAskRateResponse:
|
|
@@ -31907,6 +33222,10 @@ components:
|
|
|
31907
33222
|
enum:
|
|
31908
33223
|
- eventAskResponseRating
|
|
31909
33224
|
- type: object
|
|
33225
|
+
description: |
|
|
33226
|
+
How a page was rated, counted once per rating a reader submitted rather than once per
|
|
33227
|
+
event: rating a page and then commenting on it records two events carrying the same
|
|
33228
|
+
rating, and a reader may rate a page again on a later visit.
|
|
31910
33229
|
required:
|
|
31911
33230
|
- column
|
|
31912
33231
|
properties:
|
|
@@ -31938,6 +33257,15 @@ components:
|
|
|
31938
33257
|
type: string
|
|
31939
33258
|
enum:
|
|
31940
33259
|
- referrerDomain
|
|
33260
|
+
- type: object
|
|
33261
|
+
description: Path of the page of the site the visitor was on before the event, without the origin, share-link prefix, query string or fragment. Empty when the visitor came from another origin, or for events tracked before it was recorded.
|
|
33262
|
+
required:
|
|
33263
|
+
- column
|
|
33264
|
+
properties:
|
|
33265
|
+
column:
|
|
33266
|
+
type: string
|
|
33267
|
+
enum:
|
|
33268
|
+
- previousUrl
|
|
31941
33269
|
- type: object
|
|
31942
33270
|
required:
|
|
31943
33271
|
- column
|
|
@@ -32655,6 +33983,9 @@ components:
|
|
|
32655
33983
|
- string
|
|
32656
33984
|
- "null"
|
|
32657
33985
|
- type: object
|
|
33986
|
+
description: |
|
|
33987
|
+
Ratings submitted on a page, counted once per rating a reader submitted rather than once
|
|
33988
|
+
per event.
|
|
32658
33989
|
required:
|
|
32659
33990
|
- column
|
|
32660
33991
|
- values
|
|
@@ -32764,6 +34095,19 @@ components:
|
|
|
32764
34095
|
type: array
|
|
32765
34096
|
items:
|
|
32766
34097
|
type: string
|
|
34098
|
+
- type: object
|
|
34099
|
+
required:
|
|
34100
|
+
- column
|
|
34101
|
+
- values
|
|
34102
|
+
properties:
|
|
34103
|
+
column:
|
|
34104
|
+
type: string
|
|
34105
|
+
enum:
|
|
34106
|
+
- previousUrl
|
|
34107
|
+
values:
|
|
34108
|
+
type: array
|
|
34109
|
+
items:
|
|
34110
|
+
type: string
|
|
32767
34111
|
- type: object
|
|
32768
34112
|
required:
|
|
32769
34113
|
- column
|
|
@@ -32887,6 +34231,7 @@ components:
|
|
|
32887
34231
|
SiteInsightsQueryRangePreset:
|
|
32888
34232
|
type: string
|
|
32889
34233
|
enum:
|
|
34234
|
+
- yearToDate
|
|
32890
34235
|
- lastYear
|
|
32891
34236
|
- last3Months
|
|
32892
34237
|
- last30Days
|
|
@@ -33711,11 +35056,11 @@ components:
|
|
|
33711
35056
|
type: integer
|
|
33712
35057
|
minimum: 0
|
|
33713
35058
|
description: Current numeric billing override, when set.
|
|
33714
|
-
|
|
35059
|
+
Percentage:
|
|
33715
35060
|
type: number
|
|
33716
35061
|
minimum: 0
|
|
33717
35062
|
maximum: 100
|
|
33718
|
-
description:
|
|
35063
|
+
description: A percentage from 0 to 100.
|
|
33719
35064
|
OrganizationBillingOverrides:
|
|
33720
35065
|
type: object
|
|
33721
35066
|
properties:
|
|
@@ -33733,10 +35078,13 @@ components:
|
|
|
33733
35078
|
$ref: "#/components/schemas/OrganizationBillingNumericOverride"
|
|
33734
35079
|
aiCreditRollover:
|
|
33735
35080
|
description: Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.
|
|
33736
|
-
$ref: "#/components/schemas/
|
|
35081
|
+
$ref: "#/components/schemas/Percentage"
|
|
33737
35082
|
aiCreditAlertThreshold:
|
|
33738
35083
|
description: Percentage of total AI credits remaining at which to send a low-balance alert.
|
|
33739
|
-
$ref: "#/components/schemas/
|
|
35084
|
+
$ref: "#/components/schemas/Percentage"
|
|
35085
|
+
aiCreditPauseEnabled:
|
|
35086
|
+
description: Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.
|
|
35087
|
+
type: boolean
|
|
33740
35088
|
minUsers:
|
|
33741
35089
|
description: Current minimum users override, when set.
|
|
33742
35090
|
$ref: "#/components/schemas/OrganizationBillingNumericOverride"
|
|
@@ -33757,6 +35105,11 @@ components:
|
|
|
33757
35105
|
$ref: "#/components/schemas/OrganizationBillingNumericOverride"
|
|
33758
35106
|
required:
|
|
33759
35107
|
- overrides
|
|
35108
|
+
PercentageThreshold:
|
|
35109
|
+
description: A percentage threshold, or null when disabled.
|
|
35110
|
+
oneOf:
|
|
35111
|
+
- $ref: "#/components/schemas/Percentage"
|
|
35112
|
+
- type: "null"
|
|
33760
35113
|
BackOfficeSite:
|
|
33761
35114
|
allOf:
|
|
33762
35115
|
- $ref: "#/components/schemas/Site"
|
|
@@ -33882,6 +35235,9 @@ components:
|
|
|
33882
35235
|
jwtToken:
|
|
33883
35236
|
type: string
|
|
33884
35237
|
description: JWT token generated for a authenticated access session.
|
|
35238
|
+
country:
|
|
35239
|
+
type: string
|
|
35240
|
+
description: ISO 3166-1 alpha-2 code of the country the visitor is browsing from, as detected by the renderer.
|
|
33885
35241
|
unsignedClaims:
|
|
33886
35242
|
$ref: "#/components/schemas/PlainObject"
|
|
33887
35243
|
GitSyncGitHubRepository:
|
|
@@ -34082,6 +35438,7 @@ components:
|
|
|
34082
35438
|
description: Predefined GitBook user identifiers
|
|
34083
35439
|
enum:
|
|
34084
35440
|
- gitbook:agent
|
|
35441
|
+
- gitbook:gitsync
|
|
34085
35442
|
ContentLocationRevisionContext:
|
|
34086
35443
|
type: object
|
|
34087
35444
|
required:
|
|
@@ -35140,6 +36497,9 @@ components:
|
|
|
35140
36497
|
- human
|
|
35141
36498
|
- agent
|
|
35142
36499
|
description: Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted.
|
|
36500
|
+
visitorRegion:
|
|
36501
|
+
type: string
|
|
36502
|
+
description: The region containing the country of the visitor for whom the token was generated. Omitted if the country isn't in any region.
|
|
35143
36503
|
claims:
|
|
35144
36504
|
type: object
|
|
35145
36505
|
description: Attributes or assertions that provide specific details about the visitor for which the token was generated.
|
|
@@ -36332,6 +37692,57 @@ components:
|
|
|
36332
37692
|
enum:
|
|
36333
37693
|
- light
|
|
36334
37694
|
- dark
|
|
37695
|
+
SiteAdaptiveJSONSchema:
|
|
37696
|
+
type: object
|
|
37697
|
+
description: JSON schema describing the expected attributes of an Adaptive site schema.
|
|
37698
|
+
properties:
|
|
37699
|
+
$schema:
|
|
37700
|
+
type: string
|
|
37701
|
+
enum:
|
|
37702
|
+
- http://json-schema.org/draft-07/schema#
|
|
37703
|
+
type:
|
|
37704
|
+
type: string
|
|
37705
|
+
enum:
|
|
37706
|
+
- object
|
|
37707
|
+
properties:
|
|
37708
|
+
type: object
|
|
37709
|
+
properties:
|
|
37710
|
+
unsigned:
|
|
37711
|
+
type: object
|
|
37712
|
+
description: Unsigned claims of the site visitor.
|
|
37713
|
+
properties:
|
|
37714
|
+
type:
|
|
37715
|
+
type: string
|
|
37716
|
+
enum:
|
|
37717
|
+
- object
|
|
37718
|
+
description:
|
|
37719
|
+
type: string
|
|
37720
|
+
enum:
|
|
37721
|
+
- Unsigned claims of the site visitor.
|
|
37722
|
+
properties:
|
|
37723
|
+
type: object
|
|
37724
|
+
additionalProperties:
|
|
37725
|
+
$ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
|
|
37726
|
+
additionalProperties:
|
|
37727
|
+
type: boolean
|
|
37728
|
+
enum:
|
|
37729
|
+
- false
|
|
37730
|
+
required:
|
|
37731
|
+
- type
|
|
37732
|
+
- description
|
|
37733
|
+
- properties
|
|
37734
|
+
- additionalProperties
|
|
37735
|
+
additionalProperties:
|
|
37736
|
+
$ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
|
|
37737
|
+
additionalProperties:
|
|
37738
|
+
type: boolean
|
|
37739
|
+
enum:
|
|
37740
|
+
- false
|
|
37741
|
+
required:
|
|
37742
|
+
- type
|
|
37743
|
+
- properties
|
|
37744
|
+
- additionalProperties
|
|
37745
|
+
additionalProperties: false
|
|
36335
37746
|
SiteAdaptiveDeterministicJSONSchemaClaimsProperties:
|
|
36336
37747
|
oneOf:
|
|
36337
37748
|
- $ref: "#/components/schemas/SiteAdaptiveDeterministicJSONSchemaPrimitives"
|
|
@@ -36537,6 +37948,53 @@ components:
|
|
|
36537
37948
|
- read-only
|
|
36538
37949
|
- current-page
|
|
36539
37950
|
- modified-pages
|
|
37951
|
+
AgentBackgroundAgentStatus:
|
|
37952
|
+
type: string
|
|
37953
|
+
description: |
|
|
37954
|
+
What became of a background agent.
|
|
37955
|
+
`running` while it works, `completed` when it reported its result, `failed` when it crashed without recovering or its request was refused, and `stopped` when someone stopped it.
|
|
37956
|
+
enum:
|
|
37957
|
+
- running
|
|
37958
|
+
- completed
|
|
37959
|
+
- failed
|
|
37960
|
+
- stopped
|
|
37961
|
+
AgentBackgroundAgent:
|
|
37962
|
+
type: object
|
|
37963
|
+
description: |
|
|
37964
|
+
A background agent of the conversation: a child running one task on its own. Carries what a client shows about it and nothing of what it produced — the report it writes goes to the agent that started it, and its transcript is read by opening its conversation.
|
|
37965
|
+
properties:
|
|
37966
|
+
id:
|
|
37967
|
+
type: string
|
|
37968
|
+
description: Identifier of the background agent within the conversation that started it.
|
|
37969
|
+
conversationId:
|
|
37970
|
+
type: string
|
|
37971
|
+
description: The child conversation holding its transcript, which can only be read.
|
|
37972
|
+
title:
|
|
37973
|
+
type: string
|
|
37974
|
+
description: A few words naming what it is doing, for a tab and a line of a transcript.
|
|
37975
|
+
task:
|
|
37976
|
+
type: string
|
|
37977
|
+
description: The task it was given.
|
|
37978
|
+
status:
|
|
37979
|
+
$ref: "#/components/schemas/AgentBackgroundAgentStatus"
|
|
37980
|
+
startedAt:
|
|
37981
|
+
type: string
|
|
37982
|
+
format: date-time
|
|
37983
|
+
description: When it was started.
|
|
37984
|
+
finishedAt:
|
|
37985
|
+
type: string
|
|
37986
|
+
format: date-time
|
|
37987
|
+
description: When it stopped running. Absent while it still runs.
|
|
37988
|
+
error:
|
|
37989
|
+
type: string
|
|
37990
|
+
description: Why it failed, when it did.
|
|
37991
|
+
required:
|
|
37992
|
+
- id
|
|
37993
|
+
- conversationId
|
|
37994
|
+
- title
|
|
37995
|
+
- task
|
|
37996
|
+
- status
|
|
37997
|
+
- startedAt
|
|
36540
37998
|
AgentState:
|
|
36541
37999
|
type: object
|
|
36542
38000
|
properties:
|
|
@@ -36575,6 +38033,12 @@ components:
|
|
|
36575
38033
|
$ref: "#/components/schemas/AgentEditScope"
|
|
36576
38034
|
description: |
|
|
36577
38035
|
How far this conversation should reach when it changes content.
|
|
38036
|
+
backgroundAgents:
|
|
38037
|
+
type: array
|
|
38038
|
+
description: |
|
|
38039
|
+
The background agents this conversation has started, oldest first. Present on every state event so a client can render each one's live status against the tool call that started it.
|
|
38040
|
+
items:
|
|
38041
|
+
$ref: "#/components/schemas/AgentBackgroundAgent"
|
|
36578
38042
|
consultOnly:
|
|
36579
38043
|
type: boolean
|
|
36580
38044
|
description: |
|