@gitbook/api 0.199.0 → 0.201.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 +305 -68
- package/dist/constants.d.ts +8 -0
- package/dist/index.cjs +67 -1
- package/dist/index.js +57 -1
- package/package.json +1 -1
- package/spec/openapi.json +762 -196
- package/spec/openapi.yaml +547 -142
package/spec/openapi.json
CHANGED
|
@@ -2010,6 +2010,9 @@
|
|
|
2010
2010
|
{
|
|
2011
2011
|
"$ref": "#/components/parameters/revisionMetadata"
|
|
2012
2012
|
},
|
|
2013
|
+
{
|
|
2014
|
+
"$ref": "#/components/parameters/revisionCachedMetadata"
|
|
2015
|
+
},
|
|
2013
2016
|
{
|
|
2014
2017
|
"$ref": "#/components/parameters/revisionComputed"
|
|
2015
2018
|
}
|
|
@@ -4885,6 +4888,9 @@
|
|
|
4885
4888
|
{
|
|
4886
4889
|
"$ref": "#/components/parameters/revisionMetadata"
|
|
4887
4890
|
},
|
|
4891
|
+
{
|
|
4892
|
+
"$ref": "#/components/parameters/revisionCachedMetadata"
|
|
4893
|
+
},
|
|
4888
4894
|
{
|
|
4889
4895
|
"$ref": "#/components/parameters/revisionComputed"
|
|
4890
4896
|
}
|
|
@@ -4998,6 +5004,9 @@
|
|
|
4998
5004
|
{
|
|
4999
5005
|
"$ref": "#/components/parameters/revisionMetadata"
|
|
5000
5006
|
},
|
|
5007
|
+
{
|
|
5008
|
+
"$ref": "#/components/parameters/revisionCachedMetadata"
|
|
5009
|
+
},
|
|
5001
5010
|
{
|
|
5002
5011
|
"$ref": "#/components/parameters/revisionComputed"
|
|
5003
5012
|
}
|
|
@@ -10275,6 +10284,15 @@
|
|
|
10275
10284
|
},
|
|
10276
10285
|
"description": "If defined, only change requests linked to this site topic will be returned."
|
|
10277
10286
|
},
|
|
10287
|
+
{
|
|
10288
|
+
"name": "styleguideRun",
|
|
10289
|
+
"in": "query",
|
|
10290
|
+
"required": false,
|
|
10291
|
+
"schema": {
|
|
10292
|
+
"type": "string"
|
|
10293
|
+
},
|
|
10294
|
+
"description": "If defined, only change requests opened by this style guide check run will be returned."
|
|
10295
|
+
},
|
|
10278
10296
|
{
|
|
10279
10297
|
"name": "finding",
|
|
10280
10298
|
"in": "query",
|
|
@@ -16723,7 +16741,9 @@
|
|
|
16723
16741
|
"/orgs/{organizationId}/sites/{siteId}/findings": {
|
|
16724
16742
|
"get": {
|
|
16725
16743
|
"operationId": "listSiteFindings",
|
|
16726
|
-
"summary": "List
|
|
16744
|
+
"summary": "List documentation issues GitBook has found on a site",
|
|
16745
|
+
"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.",
|
|
16746
|
+
"x-gitbook-mcp": true,
|
|
16727
16747
|
"tags": [
|
|
16728
16748
|
"site-context"
|
|
16729
16749
|
],
|
|
@@ -16881,7 +16901,9 @@
|
|
|
16881
16901
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}": {
|
|
16882
16902
|
"get": {
|
|
16883
16903
|
"operationId": "getSiteFindingById",
|
|
16884
|
-
"summary": "Get a
|
|
16904
|
+
"summary": "Get details of a single documentation issue",
|
|
16905
|
+
"description": "Retrieves the full detail of one documentation issue found by GitBook's AI. Use this after `listSiteFindings` to inspect a specific issue before deciding to fix, dismiss, or investigate it further.",
|
|
16906
|
+
"x-gitbook-mcp": true,
|
|
16885
16907
|
"tags": [
|
|
16886
16908
|
"site-context"
|
|
16887
16909
|
],
|
|
@@ -16921,7 +16943,9 @@
|
|
|
16921
16943
|
},
|
|
16922
16944
|
"patch": {
|
|
16923
16945
|
"operationId": "updateSiteFindingById",
|
|
16924
|
-
"summary": "
|
|
16946
|
+
"summary": "Resolve, dismiss, or reopen a documentation issue",
|
|
16947
|
+
"description": "Changes the status of a documentation issue found by GitBook's AI, typically after fixing it (for example via `triggerChangeRequestsForSiteFinding`) or dismissing it as not worth acting on. This does not edit any content itself — it only records the outcome.",
|
|
16948
|
+
"x-gitbook-mcp": true,
|
|
16925
16949
|
"tags": [
|
|
16926
16950
|
"site-context"
|
|
16927
16951
|
],
|
|
@@ -16981,7 +17005,9 @@
|
|
|
16981
17005
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests": {
|
|
16982
17006
|
"get": {
|
|
16983
17007
|
"operationId": "listChangeRequestsForSiteFinding",
|
|
16984
|
-
"summary": "List
|
|
17008
|
+
"summary": "List content fixes already proposed for a documentation issue",
|
|
17009
|
+
"description": "Lists the change requests created to fix a documentation issue. Use this to check whether an issue already has a pending or merged fix before triggering a new one.",
|
|
17010
|
+
"x-gitbook-mcp": true,
|
|
16985
17011
|
"tags": [
|
|
16986
17012
|
"site-context"
|
|
16987
17013
|
],
|
|
@@ -17045,7 +17071,9 @@
|
|
|
17045
17071
|
},
|
|
17046
17072
|
"post": {
|
|
17047
17073
|
"operationId": "triggerChangeRequestsForSiteFinding",
|
|
17048
|
-
"summary": "
|
|
17074
|
+
"summary": "Fix a documentation issue by generating a change request",
|
|
17075
|
+
"description": "Starts GitBook's AI on fixing a documentation issue directly: it drafts the content change and opens it as a change request for review, rather than editing content in place. This is the primary way to act on \"fix issues/gaps/broken links in my docs\" requests once `listSiteFindings` has surfaced the relevant findings. Processing is asynchronous; poll `listChangeRequestsForSiteFinding` for the resulting change request, then review and merge it with `submitOrMergeChangeRequest`.",
|
|
17076
|
+
"x-gitbook-mcp": true,
|
|
17049
17077
|
"tags": [
|
|
17050
17078
|
"site-context"
|
|
17051
17079
|
],
|
|
@@ -17080,7 +17108,9 @@
|
|
|
17080
17108
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages": {
|
|
17081
17109
|
"get": {
|
|
17082
17110
|
"operationId": "listPagesForSiteFinding",
|
|
17083
|
-
"summary": "List pages
|
|
17111
|
+
"summary": "List the pages affected by a documentation issue",
|
|
17112
|
+
"description": "Lists the site pages a documentation issue relates to. Use this to locate which page(s) to edit when fixing an issue manually instead of via `triggerChangeRequestsForSiteFinding`.",
|
|
17113
|
+
"x-gitbook-mcp": true,
|
|
17084
17114
|
"tags": [
|
|
17085
17115
|
"site-context"
|
|
17086
17116
|
],
|
|
@@ -17146,7 +17176,9 @@
|
|
|
17146
17176
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions": {
|
|
17147
17177
|
"get": {
|
|
17148
17178
|
"operationId": "listQuestionsForSiteFinding",
|
|
17149
|
-
"summary": "List questions
|
|
17179
|
+
"summary": "List the Ask-AI questions evidencing a documentation issue",
|
|
17180
|
+
"description": "Lists the questions end users asked GitBook's Ask-AI assistant that were used as evidence for a documentation issue. Use this to see what users actually wanted to know before deciding how to fix the issue.",
|
|
17181
|
+
"x-gitbook-mcp": true,
|
|
17150
17182
|
"tags": [
|
|
17151
17183
|
"site-context"
|
|
17152
17184
|
],
|
|
@@ -17212,7 +17244,9 @@
|
|
|
17212
17244
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records": {
|
|
17213
17245
|
"get": {
|
|
17214
17246
|
"operationId": "listRecordsForSiteFinding",
|
|
17215
|
-
"summary": "List
|
|
17247
|
+
"summary": "List the source content evidencing a documentation issue",
|
|
17248
|
+
"description": "Lists the context records that GitBook's AI used as evidence for a documentation issue. Use this to see what real-world signal led to the finding before deciding how to fix it.",
|
|
17249
|
+
"x-gitbook-mcp": true,
|
|
17216
17250
|
"tags": [
|
|
17217
17251
|
"site-context"
|
|
17218
17252
|
],
|
|
@@ -17278,8 +17312,9 @@
|
|
|
17278
17312
|
"/orgs/{organizationId}/sites/{siteId}/stats/findings": {
|
|
17279
17313
|
"get": {
|
|
17280
17314
|
"operationId": "getSiteFindingStats",
|
|
17281
|
-
"summary": "Get
|
|
17282
|
-
"description": "Returns aggregate statistics about the
|
|
17315
|
+
"summary": "Get a summary of documentation issues found on a site",
|
|
17316
|
+
"description": "Returns aggregate statistics about the documentation issues GitBook identified on a site. Accepts the same filters as `listSiteFindings`. Use this to answer \"how healthy are my docs\" before drilling into individual findings.",
|
|
17317
|
+
"x-gitbook-mcp": true,
|
|
17283
17318
|
"tags": [
|
|
17284
17319
|
"site-context"
|
|
17285
17320
|
],
|
|
@@ -17900,7 +17935,9 @@
|
|
|
17900
17935
|
"/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings": {
|
|
17901
17936
|
"delete": {
|
|
17902
17937
|
"operationId": "deleteSiteTopicFindings",
|
|
17903
|
-
"summary": "Delete all
|
|
17938
|
+
"summary": "Delete all documentation issues found under a topic",
|
|
17939
|
+
"description": "Permanently deletes every finding associated with a site topic, regardless of status. This is a bulk, irreversible cleanup operation — use `updateSiteFindingById` to resolve or dismiss individual issues instead unless the intent is to wipe every issue under a topic, for example when the topic itself is being removed.",
|
|
17940
|
+
"x-gitbook-mcp": true,
|
|
17904
17941
|
"tags": [
|
|
17905
17942
|
"site-context"
|
|
17906
17943
|
],
|
|
@@ -19370,7 +19407,7 @@
|
|
|
19370
19407
|
"null"
|
|
19371
19408
|
],
|
|
19372
19409
|
"description": "The copyright text that is displayed in the footer. Set to null to reset the override.",
|
|
19373
|
-
"maxLength":
|
|
19410
|
+
"maxLength": 512
|
|
19374
19411
|
}
|
|
19375
19412
|
}
|
|
19376
19413
|
},
|
|
@@ -20482,6 +20519,153 @@
|
|
|
20482
20519
|
}
|
|
20483
20520
|
}
|
|
20484
20521
|
},
|
|
20522
|
+
"/orgs/{organizationId}/sites/{siteId}/styleguide/runs": {
|
|
20523
|
+
"post": {
|
|
20524
|
+
"operationId": "createSiteStyleguideRun",
|
|
20525
|
+
"summary": "Start a style guide check run for a site",
|
|
20526
|
+
"description": "Starts a style guide check: GitBook Agent reviews the given spaces against the site's style guide and proposes fixes. One draft change request is opened per space, each marked as belonging to the returned run. Fails if the site has no style guide.",
|
|
20527
|
+
"x-gitbook-mcp": true,
|
|
20528
|
+
"tags": [
|
|
20529
|
+
"sites"
|
|
20530
|
+
],
|
|
20531
|
+
"security": [
|
|
20532
|
+
{
|
|
20533
|
+
"user": []
|
|
20534
|
+
},
|
|
20535
|
+
{
|
|
20536
|
+
"oauth": [
|
|
20537
|
+
"site:write"
|
|
20538
|
+
]
|
|
20539
|
+
}
|
|
20540
|
+
],
|
|
20541
|
+
"parameters": [
|
|
20542
|
+
{
|
|
20543
|
+
"$ref": "#/components/parameters/organizationId"
|
|
20544
|
+
},
|
|
20545
|
+
{
|
|
20546
|
+
"$ref": "#/components/parameters/siteId"
|
|
20547
|
+
}
|
|
20548
|
+
],
|
|
20549
|
+
"requestBody": {
|
|
20550
|
+
"required": true,
|
|
20551
|
+
"content": {
|
|
20552
|
+
"application/json": {
|
|
20553
|
+
"schema": {
|
|
20554
|
+
"type": "object",
|
|
20555
|
+
"properties": {
|
|
20556
|
+
"spaces": {
|
|
20557
|
+
"type": "array",
|
|
20558
|
+
"description": "IDs of the site's spaces to check. Each must be an editable content space of the site, and not the style guide itself.",
|
|
20559
|
+
"items": {
|
|
20560
|
+
"type": "string"
|
|
20561
|
+
},
|
|
20562
|
+
"minItems": 1,
|
|
20563
|
+
"maxItems": 3
|
|
20564
|
+
}
|
|
20565
|
+
},
|
|
20566
|
+
"required": [
|
|
20567
|
+
"spaces"
|
|
20568
|
+
]
|
|
20569
|
+
}
|
|
20570
|
+
}
|
|
20571
|
+
}
|
|
20572
|
+
},
|
|
20573
|
+
"responses": {
|
|
20574
|
+
"201": {
|
|
20575
|
+
"description": "Style guide check run started",
|
|
20576
|
+
"content": {
|
|
20577
|
+
"application/json": {
|
|
20578
|
+
"schema": {
|
|
20579
|
+
"type": "object",
|
|
20580
|
+
"properties": {
|
|
20581
|
+
"run": {
|
|
20582
|
+
"$ref": "#/components/schemas/SiteStyleguideRun"
|
|
20583
|
+
},
|
|
20584
|
+
"changeRequests": {
|
|
20585
|
+
"type": "array",
|
|
20586
|
+
"description": "The change requests opened by the run, one per space that could be started.",
|
|
20587
|
+
"items": {
|
|
20588
|
+
"$ref": "#/components/schemas/ChangeRequest"
|
|
20589
|
+
}
|
|
20590
|
+
}
|
|
20591
|
+
},
|
|
20592
|
+
"required": [
|
|
20593
|
+
"run",
|
|
20594
|
+
"changeRequests"
|
|
20595
|
+
]
|
|
20596
|
+
}
|
|
20597
|
+
}
|
|
20598
|
+
}
|
|
20599
|
+
},
|
|
20600
|
+
"404": {
|
|
20601
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
20602
|
+
}
|
|
20603
|
+
}
|
|
20604
|
+
},
|
|
20605
|
+
"get": {
|
|
20606
|
+
"operationId": "listSiteStyleguideRuns",
|
|
20607
|
+
"summary": "List the style guide check runs of a site",
|
|
20608
|
+
"description": "Returns the site's style guide check runs, most recent first. Use the `styleguideRun` filter on the organization change requests endpoint to get the change requests a run opened.",
|
|
20609
|
+
"x-gitbook-mcp": true,
|
|
20610
|
+
"tags": [
|
|
20611
|
+
"sites"
|
|
20612
|
+
],
|
|
20613
|
+
"security": [
|
|
20614
|
+
{
|
|
20615
|
+
"user": []
|
|
20616
|
+
},
|
|
20617
|
+
{
|
|
20618
|
+
"oauth": [
|
|
20619
|
+
"site:read"
|
|
20620
|
+
]
|
|
20621
|
+
}
|
|
20622
|
+
],
|
|
20623
|
+
"parameters": [
|
|
20624
|
+
{
|
|
20625
|
+
"$ref": "#/components/parameters/organizationId"
|
|
20626
|
+
},
|
|
20627
|
+
{
|
|
20628
|
+
"$ref": "#/components/parameters/siteId"
|
|
20629
|
+
},
|
|
20630
|
+
{
|
|
20631
|
+
"$ref": "#/components/parameters/listPage"
|
|
20632
|
+
},
|
|
20633
|
+
{
|
|
20634
|
+
"$ref": "#/components/parameters/listLimit"
|
|
20635
|
+
}
|
|
20636
|
+
],
|
|
20637
|
+
"responses": {
|
|
20638
|
+
"200": {
|
|
20639
|
+
"description": "OK",
|
|
20640
|
+
"content": {
|
|
20641
|
+
"application/json": {
|
|
20642
|
+
"schema": {
|
|
20643
|
+
"allOf": [
|
|
20644
|
+
{
|
|
20645
|
+
"$ref": "#/components/schemas/List"
|
|
20646
|
+
},
|
|
20647
|
+
{
|
|
20648
|
+
"type": "object",
|
|
20649
|
+
"required": [
|
|
20650
|
+
"items"
|
|
20651
|
+
],
|
|
20652
|
+
"properties": {
|
|
20653
|
+
"items": {
|
|
20654
|
+
"type": "array",
|
|
20655
|
+
"items": {
|
|
20656
|
+
"$ref": "#/components/schemas/SiteStyleguideRun"
|
|
20657
|
+
}
|
|
20658
|
+
}
|
|
20659
|
+
}
|
|
20660
|
+
}
|
|
20661
|
+
]
|
|
20662
|
+
}
|
|
20663
|
+
}
|
|
20664
|
+
}
|
|
20665
|
+
}
|
|
20666
|
+
}
|
|
20667
|
+
}
|
|
20668
|
+
},
|
|
20485
20669
|
"/orgs/{organizationId}/sites/{siteId}/insights/events": {
|
|
20486
20670
|
"post": {
|
|
20487
20671
|
"operationId": "trackEventsInSiteById",
|
|
@@ -20726,6 +20910,11 @@
|
|
|
20726
20910
|
"default": false,
|
|
20727
20911
|
"description": "Whether the redirect is draft and not live."
|
|
20728
20912
|
},
|
|
20913
|
+
"permanent": {
|
|
20914
|
+
"type": "boolean",
|
|
20915
|
+
"default": false,
|
|
20916
|
+
"description": "Whether the redirect is permanent for public live traffic."
|
|
20917
|
+
},
|
|
20729
20918
|
"destination": {
|
|
20730
20919
|
"$ref": "#/components/schemas/SiteRedirectInputDestination"
|
|
20731
20920
|
}
|
|
@@ -20829,6 +21018,10 @@
|
|
|
20829
21018
|
"default": false,
|
|
20830
21019
|
"description": "Capture and append the wildcard-matched suffix to the destination URL."
|
|
20831
21020
|
},
|
|
21021
|
+
"permanent": {
|
|
21022
|
+
"type": "boolean",
|
|
21023
|
+
"description": "Whether the redirect is permanent for public live traffic."
|
|
21024
|
+
},
|
|
20832
21025
|
"destination": {
|
|
20833
21026
|
"description": "If set to null, the redirect matching the source+intent target will be deleted.",
|
|
20834
21027
|
"oneOf": [
|
|
@@ -21159,6 +21352,10 @@
|
|
|
21159
21352
|
"type": "boolean",
|
|
21160
21353
|
"description": "When true, it can be used to promote a draft redirect to live."
|
|
21161
21354
|
},
|
|
21355
|
+
"permanent": {
|
|
21356
|
+
"type": "boolean",
|
|
21357
|
+
"description": "Whether the redirect is permanent for public live traffic."
|
|
21358
|
+
},
|
|
21162
21359
|
"destination": {
|
|
21163
21360
|
"$ref": "#/components/schemas/SiteRedirectDestination"
|
|
21164
21361
|
}
|
|
@@ -23090,28 +23287,28 @@
|
|
|
23090
23287
|
"tokenUrl": "https://oauth.gitbook.com/token",
|
|
23091
23288
|
"scopes": {
|
|
23092
23289
|
"user:read": "Read your GitBook user profile.",
|
|
23093
|
-
"organization:read": "Read
|
|
23094
|
-
"organization:write": "Create and update organization settings.",
|
|
23095
|
-
"organization:members:read": "Read organization members, invites and link invites.",
|
|
23096
|
-
"organization:members:write": "Manage organization members, invites and link invites.",
|
|
23290
|
+
"organization:read": "Read the organizations you belong to, their settings and metadata, and their AI agent conversations.",
|
|
23291
|
+
"organization:write": "Create organizations, and update organization settings and AI agent conversations.",
|
|
23292
|
+
"organization:members:read": "Read organization members, teams, invites and link invites.",
|
|
23293
|
+
"organization:members:write": "Manage organization members, teams, invites and link invites.",
|
|
23097
23294
|
"organization:ask": "Ask AI questions across an organization's content.",
|
|
23098
23295
|
"organization:search": "Search across an organization's content.",
|
|
23099
|
-
"space:read": "Read spaces and their content.",
|
|
23100
|
-
"space:write": "Create, update and delete spaces and their content, including imports.",
|
|
23101
|
-
"space:permissions:read": "Read
|
|
23102
|
-
"space:permissions:write": "Manage
|
|
23103
|
-
"change-request:merge": "Merge change requests, publishing their changes to the space.",
|
|
23104
|
-
"site:read": "Read sites and their settings.",
|
|
23105
|
-
"site:write": "Create, update and delete sites, sections and
|
|
23296
|
+
"space:read": "Read spaces and their content, including pages, change requests and their reviews, comments, files and revision history.",
|
|
23297
|
+
"space:write": "Create, update and delete spaces and their content, including change requests (create, edit, review), comments, and content imports and exports. Merging a change request also requires change-request:merge.",
|
|
23298
|
+
"space:permissions:read": "Read the users and teams who have access to spaces and collections.",
|
|
23299
|
+
"space:permissions:write": "Manage who has access to spaces and collections, including inviting users and teams.",
|
|
23300
|
+
"change-request:merge": "Merge change requests, publishing their changes to the space. Creating, editing and reviewing change requests only requires space:write.",
|
|
23301
|
+
"site:read": "Read sites and their settings, including navigation structure, linked spaces, customization, redirects, topics, AI configuration and documentation issues.",
|
|
23302
|
+
"site:write": "Create, update and delete sites and their settings, including navigation structure (sections, linked spaces, external links), customization, redirects, topics and AI configuration.",
|
|
23106
23303
|
"site:publish": "Publish and unpublish sites, controlling their public exposure.",
|
|
23107
|
-
"site:permissions:read": "Read
|
|
23108
|
-
"site:permissions:write": "Manage
|
|
23109
|
-
"site:auth:read": "Read site
|
|
23110
|
-
"site:auth:write": "Manage site
|
|
23111
|
-
"site:insights:read": "Read site analytics and insights.",
|
|
23304
|
+
"site:permissions:read": "Read the users and teams who have access to sites.",
|
|
23305
|
+
"site:permissions:write": "Manage who has access to sites, including inviting users and teams.",
|
|
23306
|
+
"site:auth:read": "Read how visitors authenticate on a site and its security configuration, including private share links.",
|
|
23307
|
+
"site:auth:write": "Manage how visitors authenticate on a site and its security configuration, including private share links.",
|
|
23308
|
+
"site:insights:read": "Read site analytics and insights, including the questions visitors asked Ask AI and the answers they received.",
|
|
23112
23309
|
"site:ask": "Ask AI questions across a site's content.",
|
|
23113
23310
|
"site:search": "Search across a site's content.",
|
|
23114
|
-
"integration:read": "Read integrations and where they are installed.",
|
|
23311
|
+
"integration:read": "Read integrations, their status and where they are installed.",
|
|
23115
23312
|
"integration:installations:read": "Read integration installations and their configuration, which can include credentials for third-party services.",
|
|
23116
23313
|
"integration:installations:write": "Install and configure integrations on an organization, its spaces and its sites.",
|
|
23117
23314
|
"integration:publish": "Publish integrations, which can request their own permissions on your content, and route their events to a development tunnel.",
|
|
@@ -23294,6 +23491,15 @@
|
|
|
23294
23491
|
"type": "string"
|
|
23295
23492
|
}
|
|
23296
23493
|
},
|
|
23494
|
+
"revisionCachedMetadata": {
|
|
23495
|
+
"name": "cachedMetadata",
|
|
23496
|
+
"in": "query",
|
|
23497
|
+
"description": "If `true` is passed, mutable Git metadata may be served from a cache.",
|
|
23498
|
+
"schema": {
|
|
23499
|
+
"type": "boolean",
|
|
23500
|
+
"default": false
|
|
23501
|
+
}
|
|
23502
|
+
},
|
|
23297
23503
|
"reusableContentId": {
|
|
23298
23504
|
"name": "reusableContentId",
|
|
23299
23505
|
"in": "path",
|
|
@@ -27154,166 +27360,6 @@
|
|
|
27154
27360
|
"isVoid"
|
|
27155
27361
|
]
|
|
27156
27362
|
},
|
|
27157
|
-
"DocumentBlockHint": {
|
|
27158
|
-
"type": "object",
|
|
27159
|
-
"properties": {
|
|
27160
|
-
"object": {
|
|
27161
|
-
"type": "string",
|
|
27162
|
-
"enum": [
|
|
27163
|
-
"block"
|
|
27164
|
-
]
|
|
27165
|
-
},
|
|
27166
|
-
"type": {
|
|
27167
|
-
"type": "string",
|
|
27168
|
-
"enum": [
|
|
27169
|
-
"hint"
|
|
27170
|
-
]
|
|
27171
|
-
},
|
|
27172
|
-
"key": {
|
|
27173
|
-
"type": "string"
|
|
27174
|
-
},
|
|
27175
|
-
"data": {
|
|
27176
|
-
"type": "object",
|
|
27177
|
-
"properties": {
|
|
27178
|
-
"style": {
|
|
27179
|
-
"type": "string",
|
|
27180
|
-
"enum": [
|
|
27181
|
-
"info",
|
|
27182
|
-
"warning",
|
|
27183
|
-
"danger",
|
|
27184
|
-
"success"
|
|
27185
|
-
]
|
|
27186
|
-
},
|
|
27187
|
-
"icon": {
|
|
27188
|
-
"$ref": "#/components/schemas/Icon"
|
|
27189
|
-
}
|
|
27190
|
-
},
|
|
27191
|
-
"required": [
|
|
27192
|
-
"style"
|
|
27193
|
-
]
|
|
27194
|
-
},
|
|
27195
|
-
"nodes": {
|
|
27196
|
-
"type": "array",
|
|
27197
|
-
"items": {
|
|
27198
|
-
"oneOf": [
|
|
27199
|
-
{
|
|
27200
|
-
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
27201
|
-
},
|
|
27202
|
-
{
|
|
27203
|
-
"$ref": "#/components/schemas/DocumentBlockEmbed"
|
|
27204
|
-
},
|
|
27205
|
-
{
|
|
27206
|
-
"$ref": "#/components/schemas/DocumentBlockIntegration"
|
|
27207
|
-
}
|
|
27208
|
-
]
|
|
27209
|
-
}
|
|
27210
|
-
},
|
|
27211
|
-
"isVoid": {
|
|
27212
|
-
"type": "boolean",
|
|
27213
|
-
"enum": [
|
|
27214
|
-
false
|
|
27215
|
-
]
|
|
27216
|
-
}
|
|
27217
|
-
},
|
|
27218
|
-
"required": [
|
|
27219
|
-
"object",
|
|
27220
|
-
"type",
|
|
27221
|
-
"data",
|
|
27222
|
-
"nodes"
|
|
27223
|
-
]
|
|
27224
|
-
},
|
|
27225
|
-
"DocumentBlockQuote": {
|
|
27226
|
-
"type": "object",
|
|
27227
|
-
"properties": {
|
|
27228
|
-
"object": {
|
|
27229
|
-
"type": "string",
|
|
27230
|
-
"enum": [
|
|
27231
|
-
"block"
|
|
27232
|
-
]
|
|
27233
|
-
},
|
|
27234
|
-
"type": {
|
|
27235
|
-
"type": "string",
|
|
27236
|
-
"enum": [
|
|
27237
|
-
"blockquote"
|
|
27238
|
-
]
|
|
27239
|
-
},
|
|
27240
|
-
"key": {
|
|
27241
|
-
"type": "string"
|
|
27242
|
-
},
|
|
27243
|
-
"nodes": {
|
|
27244
|
-
"type": "array",
|
|
27245
|
-
"items": {
|
|
27246
|
-
"oneOf": [
|
|
27247
|
-
{
|
|
27248
|
-
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
27249
|
-
},
|
|
27250
|
-
{
|
|
27251
|
-
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
27252
|
-
}
|
|
27253
|
-
]
|
|
27254
|
-
}
|
|
27255
|
-
},
|
|
27256
|
-
"isVoid": {
|
|
27257
|
-
"type": "boolean",
|
|
27258
|
-
"enum": [
|
|
27259
|
-
false
|
|
27260
|
-
]
|
|
27261
|
-
},
|
|
27262
|
-
"data": {
|
|
27263
|
-
"type": "object",
|
|
27264
|
-
"properties": {},
|
|
27265
|
-
"additionalProperties": false
|
|
27266
|
-
}
|
|
27267
|
-
},
|
|
27268
|
-
"required": [
|
|
27269
|
-
"object",
|
|
27270
|
-
"type",
|
|
27271
|
-
"nodes"
|
|
27272
|
-
]
|
|
27273
|
-
},
|
|
27274
|
-
"DocumentBlockMath": {
|
|
27275
|
-
"type": "object",
|
|
27276
|
-
"properties": {
|
|
27277
|
-
"object": {
|
|
27278
|
-
"type": "string",
|
|
27279
|
-
"enum": [
|
|
27280
|
-
"block"
|
|
27281
|
-
]
|
|
27282
|
-
},
|
|
27283
|
-
"type": {
|
|
27284
|
-
"type": "string",
|
|
27285
|
-
"enum": [
|
|
27286
|
-
"math"
|
|
27287
|
-
]
|
|
27288
|
-
},
|
|
27289
|
-
"key": {
|
|
27290
|
-
"type": "string"
|
|
27291
|
-
},
|
|
27292
|
-
"data": {
|
|
27293
|
-
"type": "object",
|
|
27294
|
-
"properties": {
|
|
27295
|
-
"formula": {
|
|
27296
|
-
"type": "string"
|
|
27297
|
-
}
|
|
27298
|
-
},
|
|
27299
|
-
"required": [
|
|
27300
|
-
"formula"
|
|
27301
|
-
]
|
|
27302
|
-
},
|
|
27303
|
-
"isVoid": {
|
|
27304
|
-
"type": "boolean",
|
|
27305
|
-
"enum": [
|
|
27306
|
-
true
|
|
27307
|
-
]
|
|
27308
|
-
}
|
|
27309
|
-
},
|
|
27310
|
-
"required": [
|
|
27311
|
-
"object",
|
|
27312
|
-
"type",
|
|
27313
|
-
"data",
|
|
27314
|
-
"isVoid"
|
|
27315
|
-
]
|
|
27316
|
-
},
|
|
27317
27363
|
"DocumentTableViewGrid": {
|
|
27318
27364
|
"type": "object",
|
|
27319
27365
|
"properties": {
|
|
@@ -27950,6 +27996,169 @@
|
|
|
27950
27996
|
"fragments"
|
|
27951
27997
|
]
|
|
27952
27998
|
},
|
|
27999
|
+
"DocumentBlockHint": {
|
|
28000
|
+
"type": "object",
|
|
28001
|
+
"properties": {
|
|
28002
|
+
"object": {
|
|
28003
|
+
"type": "string",
|
|
28004
|
+
"enum": [
|
|
28005
|
+
"block"
|
|
28006
|
+
]
|
|
28007
|
+
},
|
|
28008
|
+
"type": {
|
|
28009
|
+
"type": "string",
|
|
28010
|
+
"enum": [
|
|
28011
|
+
"hint"
|
|
28012
|
+
]
|
|
28013
|
+
},
|
|
28014
|
+
"key": {
|
|
28015
|
+
"type": "string"
|
|
28016
|
+
},
|
|
28017
|
+
"data": {
|
|
28018
|
+
"type": "object",
|
|
28019
|
+
"properties": {
|
|
28020
|
+
"style": {
|
|
28021
|
+
"type": "string",
|
|
28022
|
+
"enum": [
|
|
28023
|
+
"info",
|
|
28024
|
+
"warning",
|
|
28025
|
+
"danger",
|
|
28026
|
+
"success"
|
|
28027
|
+
]
|
|
28028
|
+
},
|
|
28029
|
+
"icon": {
|
|
28030
|
+
"$ref": "#/components/schemas/Icon"
|
|
28031
|
+
}
|
|
28032
|
+
},
|
|
28033
|
+
"required": [
|
|
28034
|
+
"style"
|
|
28035
|
+
]
|
|
28036
|
+
},
|
|
28037
|
+
"nodes": {
|
|
28038
|
+
"type": "array",
|
|
28039
|
+
"items": {
|
|
28040
|
+
"oneOf": [
|
|
28041
|
+
{
|
|
28042
|
+
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
28043
|
+
},
|
|
28044
|
+
{
|
|
28045
|
+
"$ref": "#/components/schemas/DocumentBlockEmbed"
|
|
28046
|
+
},
|
|
28047
|
+
{
|
|
28048
|
+
"$ref": "#/components/schemas/DocumentBlockIntegration"
|
|
28049
|
+
},
|
|
28050
|
+
{
|
|
28051
|
+
"$ref": "#/components/schemas/DocumentBlockTable"
|
|
28052
|
+
}
|
|
28053
|
+
]
|
|
28054
|
+
}
|
|
28055
|
+
},
|
|
28056
|
+
"isVoid": {
|
|
28057
|
+
"type": "boolean",
|
|
28058
|
+
"enum": [
|
|
28059
|
+
false
|
|
28060
|
+
]
|
|
28061
|
+
}
|
|
28062
|
+
},
|
|
28063
|
+
"required": [
|
|
28064
|
+
"object",
|
|
28065
|
+
"type",
|
|
28066
|
+
"data",
|
|
28067
|
+
"nodes"
|
|
28068
|
+
]
|
|
28069
|
+
},
|
|
28070
|
+
"DocumentBlockQuote": {
|
|
28071
|
+
"type": "object",
|
|
28072
|
+
"properties": {
|
|
28073
|
+
"object": {
|
|
28074
|
+
"type": "string",
|
|
28075
|
+
"enum": [
|
|
28076
|
+
"block"
|
|
28077
|
+
]
|
|
28078
|
+
},
|
|
28079
|
+
"type": {
|
|
28080
|
+
"type": "string",
|
|
28081
|
+
"enum": [
|
|
28082
|
+
"blockquote"
|
|
28083
|
+
]
|
|
28084
|
+
},
|
|
28085
|
+
"key": {
|
|
28086
|
+
"type": "string"
|
|
28087
|
+
},
|
|
28088
|
+
"nodes": {
|
|
28089
|
+
"type": "array",
|
|
28090
|
+
"items": {
|
|
28091
|
+
"oneOf": [
|
|
28092
|
+
{
|
|
28093
|
+
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
28094
|
+
},
|
|
28095
|
+
{
|
|
28096
|
+
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
28097
|
+
}
|
|
28098
|
+
]
|
|
28099
|
+
}
|
|
28100
|
+
},
|
|
28101
|
+
"isVoid": {
|
|
28102
|
+
"type": "boolean",
|
|
28103
|
+
"enum": [
|
|
28104
|
+
false
|
|
28105
|
+
]
|
|
28106
|
+
},
|
|
28107
|
+
"data": {
|
|
28108
|
+
"type": "object",
|
|
28109
|
+
"properties": {},
|
|
28110
|
+
"additionalProperties": false
|
|
28111
|
+
}
|
|
28112
|
+
},
|
|
28113
|
+
"required": [
|
|
28114
|
+
"object",
|
|
28115
|
+
"type",
|
|
28116
|
+
"nodes"
|
|
28117
|
+
]
|
|
28118
|
+
},
|
|
28119
|
+
"DocumentBlockMath": {
|
|
28120
|
+
"type": "object",
|
|
28121
|
+
"properties": {
|
|
28122
|
+
"object": {
|
|
28123
|
+
"type": "string",
|
|
28124
|
+
"enum": [
|
|
28125
|
+
"block"
|
|
28126
|
+
]
|
|
28127
|
+
},
|
|
28128
|
+
"type": {
|
|
28129
|
+
"type": "string",
|
|
28130
|
+
"enum": [
|
|
28131
|
+
"math"
|
|
28132
|
+
]
|
|
28133
|
+
},
|
|
28134
|
+
"key": {
|
|
28135
|
+
"type": "string"
|
|
28136
|
+
},
|
|
28137
|
+
"data": {
|
|
28138
|
+
"type": "object",
|
|
28139
|
+
"properties": {
|
|
28140
|
+
"formula": {
|
|
28141
|
+
"type": "string"
|
|
28142
|
+
}
|
|
28143
|
+
},
|
|
28144
|
+
"required": [
|
|
28145
|
+
"formula"
|
|
28146
|
+
]
|
|
28147
|
+
},
|
|
28148
|
+
"isVoid": {
|
|
28149
|
+
"type": "boolean",
|
|
28150
|
+
"enum": [
|
|
28151
|
+
true
|
|
28152
|
+
]
|
|
28153
|
+
}
|
|
28154
|
+
},
|
|
28155
|
+
"required": [
|
|
28156
|
+
"object",
|
|
28157
|
+
"type",
|
|
28158
|
+
"data",
|
|
28159
|
+
"isVoid"
|
|
28160
|
+
]
|
|
28161
|
+
},
|
|
27953
28162
|
"DocumentBlockListItem": {
|
|
27954
28163
|
"type": "object",
|
|
27955
28164
|
"properties": {
|
|
@@ -31631,7 +31840,7 @@
|
|
|
31631
31840
|
"properties": {
|
|
31632
31841
|
"id": {
|
|
31633
31842
|
"type": "string",
|
|
31634
|
-
"description": "The ID of an existing link, as served on the change request. Pass it back to update that link
|
|
31843
|
+
"description": "The ID of an existing link, as served on the change request. Pass it back to update that link, or omit it to add a new one."
|
|
31635
31844
|
},
|
|
31636
31845
|
"ref": {
|
|
31637
31846
|
"$ref": "#/components/schemas/ContentRefURL"
|
|
@@ -31749,13 +31958,16 @@
|
|
|
31749
31958
|
"properties": {
|
|
31750
31959
|
"id": {
|
|
31751
31960
|
"type": "string",
|
|
31752
|
-
"description": "The ID of the link.
|
|
31961
|
+
"description": "The ID of the link."
|
|
31753
31962
|
},
|
|
31754
31963
|
"expanded": {
|
|
31755
31964
|
"$ref": "#/components/schemas/ChangeRequestLinkExpanded",
|
|
31756
31965
|
"readOnly": true
|
|
31757
31966
|
}
|
|
31758
|
-
}
|
|
31967
|
+
},
|
|
31968
|
+
"required": [
|
|
31969
|
+
"id"
|
|
31970
|
+
]
|
|
31759
31971
|
}
|
|
31760
31972
|
]
|
|
31761
31973
|
},
|
|
@@ -31857,6 +32069,28 @@
|
|
|
31857
32069
|
"topic"
|
|
31858
32070
|
]
|
|
31859
32071
|
},
|
|
32072
|
+
"styleguide": {
|
|
32073
|
+
"type": "object",
|
|
32074
|
+
"description": "Style guide check run that opened the change request, when it came from one.",
|
|
32075
|
+
"properties": {
|
|
32076
|
+
"site": {
|
|
32077
|
+
"type": "string",
|
|
32078
|
+
"description": "ID of the site the style guide belongs to."
|
|
32079
|
+
},
|
|
32080
|
+
"run": {
|
|
32081
|
+
"type": "string",
|
|
32082
|
+
"description": "ID of the style guide check run that opened the change request."
|
|
32083
|
+
},
|
|
32084
|
+
"changedPages": {
|
|
32085
|
+
"type": "number",
|
|
32086
|
+
"description": "Number of pages the check changed, recorded when it finished. Absent while it is still running, or when it never completed.\n"
|
|
32087
|
+
}
|
|
32088
|
+
},
|
|
32089
|
+
"required": [
|
|
32090
|
+
"site",
|
|
32091
|
+
"run"
|
|
32092
|
+
]
|
|
32093
|
+
},
|
|
31860
32094
|
"outdated": {
|
|
31861
32095
|
"type": "boolean",
|
|
31862
32096
|
"description": "If true, the change request is not up-to-date with latest changes in the main content."
|
|
@@ -39900,6 +40134,175 @@
|
|
|
39900
40134
|
"updateSites"
|
|
39901
40135
|
]
|
|
39902
40136
|
},
|
|
40137
|
+
"BillingCancellationComment": {
|
|
40138
|
+
"type": "string",
|
|
40139
|
+
"description": "Free-text detail a user typed alongside their cancellation reason.",
|
|
40140
|
+
"minLength": 1,
|
|
40141
|
+
"maxLength": 500
|
|
40142
|
+
},
|
|
40143
|
+
"BillingCancellationFeedback": {
|
|
40144
|
+
"type": "object",
|
|
40145
|
+
"description": "Why an organization is cancelling its subscription, as answered by the user in the app. Recorded for analytics only: it never changes how the cancellation is applied.\n",
|
|
40146
|
+
"oneOf": [
|
|
40147
|
+
{
|
|
40148
|
+
"type": "object",
|
|
40149
|
+
"properties": {
|
|
40150
|
+
"reason": {
|
|
40151
|
+
"type": "string",
|
|
40152
|
+
"enum": [
|
|
40153
|
+
"not_satisfied_with_product"
|
|
40154
|
+
]
|
|
40155
|
+
},
|
|
40156
|
+
"reasonDetail": {
|
|
40157
|
+
"description": "The feature that was not satisfactory",
|
|
40158
|
+
"type": "string",
|
|
40159
|
+
"enum": [
|
|
40160
|
+
"editor",
|
|
40161
|
+
"gitsync",
|
|
40162
|
+
"ai_features"
|
|
40163
|
+
]
|
|
40164
|
+
}
|
|
40165
|
+
},
|
|
40166
|
+
"additionalProperties": false,
|
|
40167
|
+
"required": [
|
|
40168
|
+
"reason",
|
|
40169
|
+
"reasonDetail"
|
|
40170
|
+
]
|
|
40171
|
+
},
|
|
40172
|
+
{
|
|
40173
|
+
"type": "object",
|
|
40174
|
+
"properties": {
|
|
40175
|
+
"reason": {
|
|
40176
|
+
"type": "string",
|
|
40177
|
+
"enum": [
|
|
40178
|
+
"not_satisfied_with_product"
|
|
40179
|
+
]
|
|
40180
|
+
},
|
|
40181
|
+
"reasonDetail": {
|
|
40182
|
+
"description": "The feature that was not satisfactory",
|
|
40183
|
+
"type": "string",
|
|
40184
|
+
"enum": [
|
|
40185
|
+
"other"
|
|
40186
|
+
]
|
|
40187
|
+
},
|
|
40188
|
+
"reasonComment": {
|
|
40189
|
+
"$ref": "#/components/schemas/BillingCancellationComment"
|
|
40190
|
+
}
|
|
40191
|
+
},
|
|
40192
|
+
"additionalProperties": false,
|
|
40193
|
+
"required": [
|
|
40194
|
+
"reason",
|
|
40195
|
+
"reasonDetail",
|
|
40196
|
+
"reasonComment"
|
|
40197
|
+
]
|
|
40198
|
+
},
|
|
40199
|
+
{
|
|
40200
|
+
"type": "object",
|
|
40201
|
+
"properties": {
|
|
40202
|
+
"reason": {
|
|
40203
|
+
"type": "string",
|
|
40204
|
+
"enum": [
|
|
40205
|
+
"will_vibe_code_our_own_app"
|
|
40206
|
+
]
|
|
40207
|
+
},
|
|
40208
|
+
"reasonDetail": {
|
|
40209
|
+
"description": "The tool the organization is moving to",
|
|
40210
|
+
"type": "string",
|
|
40211
|
+
"enum": [
|
|
40212
|
+
"claude",
|
|
40213
|
+
"codex",
|
|
40214
|
+
"replit"
|
|
40215
|
+
]
|
|
40216
|
+
}
|
|
40217
|
+
},
|
|
40218
|
+
"additionalProperties": false,
|
|
40219
|
+
"required": [
|
|
40220
|
+
"reason",
|
|
40221
|
+
"reasonDetail"
|
|
40222
|
+
]
|
|
40223
|
+
},
|
|
40224
|
+
{
|
|
40225
|
+
"type": "object",
|
|
40226
|
+
"properties": {
|
|
40227
|
+
"reason": {
|
|
40228
|
+
"type": "string",
|
|
40229
|
+
"enum": [
|
|
40230
|
+
"will_vibe_code_our_own_app"
|
|
40231
|
+
]
|
|
40232
|
+
},
|
|
40233
|
+
"reasonDetail": {
|
|
40234
|
+
"description": "The tool the organization is moving to",
|
|
40235
|
+
"type": "string",
|
|
40236
|
+
"enum": [
|
|
40237
|
+
"other"
|
|
40238
|
+
]
|
|
40239
|
+
},
|
|
40240
|
+
"reasonComment": {
|
|
40241
|
+
"$ref": "#/components/schemas/BillingCancellationComment"
|
|
40242
|
+
}
|
|
40243
|
+
},
|
|
40244
|
+
"additionalProperties": false,
|
|
40245
|
+
"required": [
|
|
40246
|
+
"reason",
|
|
40247
|
+
"reasonDetail",
|
|
40248
|
+
"reasonComment"
|
|
40249
|
+
]
|
|
40250
|
+
},
|
|
40251
|
+
{
|
|
40252
|
+
"type": "object",
|
|
40253
|
+
"properties": {
|
|
40254
|
+
"reason": {
|
|
40255
|
+
"type": "string",
|
|
40256
|
+
"enum": [
|
|
40257
|
+
"found_better_alternative"
|
|
40258
|
+
]
|
|
40259
|
+
},
|
|
40260
|
+
"reasonComment": {
|
|
40261
|
+
"$ref": "#/components/schemas/BillingCancellationComment"
|
|
40262
|
+
}
|
|
40263
|
+
},
|
|
40264
|
+
"additionalProperties": false,
|
|
40265
|
+
"required": [
|
|
40266
|
+
"reason",
|
|
40267
|
+
"reasonComment"
|
|
40268
|
+
]
|
|
40269
|
+
},
|
|
40270
|
+
{
|
|
40271
|
+
"type": "object",
|
|
40272
|
+
"properties": {
|
|
40273
|
+
"reason": {
|
|
40274
|
+
"type": "string",
|
|
40275
|
+
"enum": [
|
|
40276
|
+
"company_shutdown"
|
|
40277
|
+
]
|
|
40278
|
+
}
|
|
40279
|
+
},
|
|
40280
|
+
"additionalProperties": false,
|
|
40281
|
+
"required": [
|
|
40282
|
+
"reason"
|
|
40283
|
+
]
|
|
40284
|
+
},
|
|
40285
|
+
{
|
|
40286
|
+
"type": "object",
|
|
40287
|
+
"properties": {
|
|
40288
|
+
"reason": {
|
|
40289
|
+
"type": "string",
|
|
40290
|
+
"enum": [
|
|
40291
|
+
"other_reason"
|
|
40292
|
+
]
|
|
40293
|
+
},
|
|
40294
|
+
"reasonComment": {
|
|
40295
|
+
"$ref": "#/components/schemas/BillingCancellationComment"
|
|
40296
|
+
}
|
|
40297
|
+
},
|
|
40298
|
+
"additionalProperties": false,
|
|
40299
|
+
"required": [
|
|
40300
|
+
"reason",
|
|
40301
|
+
"reasonComment"
|
|
40302
|
+
]
|
|
40303
|
+
}
|
|
40304
|
+
]
|
|
40305
|
+
},
|
|
39903
40306
|
"BillingCoupon": {
|
|
39904
40307
|
"type": "string",
|
|
39905
40308
|
"description": "Coupon or promotion code to apply to billing operations.",
|
|
@@ -39931,6 +40334,9 @@
|
|
|
39931
40334
|
"type": "string",
|
|
39932
40335
|
"description": "Reason that triggered the billing upgrade"
|
|
39933
40336
|
},
|
|
40337
|
+
"cancellationFeedback": {
|
|
40338
|
+
"$ref": "#/components/schemas/BillingCancellationFeedback"
|
|
40339
|
+
},
|
|
39934
40340
|
"coupon": {
|
|
39935
40341
|
"$ref": "#/components/schemas/BillingCoupon",
|
|
39936
40342
|
"description": "Coupon or promotion code to apply to the subscription"
|
|
@@ -40561,6 +40967,23 @@
|
|
|
40561
40967
|
"entries"
|
|
40562
40968
|
]
|
|
40563
40969
|
},
|
|
40970
|
+
"OrganizationFeature": {
|
|
40971
|
+
"type": "string",
|
|
40972
|
+
"description": "An organization feature used for plan access and upgrade prompts.",
|
|
40973
|
+
"enum": [
|
|
40974
|
+
"max-members",
|
|
40975
|
+
"ai-lens",
|
|
40976
|
+
"pdf-export",
|
|
40977
|
+
"ai-writing",
|
|
40978
|
+
"reusable-content",
|
|
40979
|
+
"translations",
|
|
40980
|
+
"members-advanced-roles",
|
|
40981
|
+
"members-teams",
|
|
40982
|
+
"members-team-owners",
|
|
40983
|
+
"security-saml",
|
|
40984
|
+
"change-requests-merge-rules"
|
|
40985
|
+
]
|
|
40986
|
+
},
|
|
40564
40987
|
"SearchSpaceResult": {
|
|
40565
40988
|
"type": "object",
|
|
40566
40989
|
"description": "Search result representing a space.",
|
|
@@ -43591,7 +44014,7 @@
|
|
|
43591
44014
|
},
|
|
43592
44015
|
"copyright": {
|
|
43593
44016
|
"type": "string",
|
|
43594
|
-
"maxLength":
|
|
44017
|
+
"maxLength": 512
|
|
43595
44018
|
}
|
|
43596
44019
|
},
|
|
43597
44020
|
"required": [
|
|
@@ -44281,6 +44704,11 @@
|
|
|
44281
44704
|
"maxLength": 512,
|
|
44282
44705
|
"description": "User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in."
|
|
44283
44706
|
},
|
|
44707
|
+
"correlationId": {
|
|
44708
|
+
"type": "string",
|
|
44709
|
+
"maxLength": 100,
|
|
44710
|
+
"description": "Identifier the surface gave the agent for the call being reported, used to find that call in the surface's own logs. Not an identifier of this report."
|
|
44711
|
+
},
|
|
44284
44712
|
"onDemand": {
|
|
44285
44713
|
"type": "boolean",
|
|
44286
44714
|
"default": false,
|
|
@@ -48980,6 +49408,52 @@
|
|
|
48980
49408
|
}
|
|
48981
49409
|
]
|
|
48982
49410
|
},
|
|
49411
|
+
"SiteStyleguideRun": {
|
|
49412
|
+
"type": "object",
|
|
49413
|
+
"description": "A style guide check run: one time a user asked GitBook Agent to check a set of the site's spaces against the site's style guide, opening a change request for each.",
|
|
49414
|
+
"properties": {
|
|
49415
|
+
"object": {
|
|
49416
|
+
"type": "string",
|
|
49417
|
+
"enum": [
|
|
49418
|
+
"styleguide-run"
|
|
49419
|
+
]
|
|
49420
|
+
},
|
|
49421
|
+
"id": {
|
|
49422
|
+
"type": "string",
|
|
49423
|
+
"description": "The ID of the run"
|
|
49424
|
+
},
|
|
49425
|
+
"site": {
|
|
49426
|
+
"type": "string",
|
|
49427
|
+
"description": "ID of the site the run belongs to"
|
|
49428
|
+
},
|
|
49429
|
+
"styleguide": {
|
|
49430
|
+
"type": "string",
|
|
49431
|
+
"description": "ID of the style guide space the run checked against"
|
|
49432
|
+
},
|
|
49433
|
+
"spaces": {
|
|
49434
|
+
"type": "array",
|
|
49435
|
+
"description": "IDs of the spaces the run was asked to check. A change request may have failed to open for one of them, so this is the intent rather than the result.",
|
|
49436
|
+
"items": {
|
|
49437
|
+
"type": "string"
|
|
49438
|
+
}
|
|
49439
|
+
},
|
|
49440
|
+
"createdAt": {
|
|
49441
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
49442
|
+
},
|
|
49443
|
+
"createdBy": {
|
|
49444
|
+
"$ref": "#/components/schemas/User"
|
|
49445
|
+
}
|
|
49446
|
+
},
|
|
49447
|
+
"required": [
|
|
49448
|
+
"object",
|
|
49449
|
+
"id",
|
|
49450
|
+
"site",
|
|
49451
|
+
"styleguide",
|
|
49452
|
+
"spaces",
|
|
49453
|
+
"createdAt",
|
|
49454
|
+
"createdBy"
|
|
49455
|
+
]
|
|
49456
|
+
},
|
|
48983
49457
|
"SiteInsightsEventSession": {
|
|
48984
49458
|
"allOf": [
|
|
48985
49459
|
{
|
|
@@ -52182,6 +52656,10 @@
|
|
|
52182
52656
|
"type": "boolean",
|
|
52183
52657
|
"description": "Capture and append the wildcard-matched suffix to the destination URL."
|
|
52184
52658
|
},
|
|
52659
|
+
"permanent": {
|
|
52660
|
+
"type": "boolean",
|
|
52661
|
+
"description": "Whether the redirect is configured as permanent. Permanent redirects are served as HTTP 308 for public live traffic and HTTP 307 in non-public contexts."
|
|
52662
|
+
},
|
|
52185
52663
|
"destination": {
|
|
52186
52664
|
"$ref": "#/components/schemas/SiteRedirectDestination"
|
|
52187
52665
|
},
|
|
@@ -52202,6 +52680,7 @@
|
|
|
52202
52680
|
"source",
|
|
52203
52681
|
"draft",
|
|
52204
52682
|
"captureWildcard",
|
|
52683
|
+
"permanent",
|
|
52205
52684
|
"destination",
|
|
52206
52685
|
"createdAt"
|
|
52207
52686
|
]
|
|
@@ -54488,7 +54967,7 @@
|
|
|
54488
54967
|
},
|
|
54489
54968
|
"children": {
|
|
54490
54969
|
"type": "array",
|
|
54491
|
-
"description": "Section
|
|
54970
|
+
"description": "Section, section group, or external link nodes nested under this group.",
|
|
54492
54971
|
"items": {
|
|
54493
54972
|
"oneOf": [
|
|
54494
54973
|
{
|
|
@@ -54496,6 +54975,9 @@
|
|
|
54496
54975
|
},
|
|
54497
54976
|
{
|
|
54498
54977
|
"$ref": "#/components/schemas/GitSyncSiteStructureSection"
|
|
54978
|
+
},
|
|
54979
|
+
{
|
|
54980
|
+
"$ref": "#/components/schemas/GitSyncSiteStructureExternalLink"
|
|
54499
54981
|
}
|
|
54500
54982
|
]
|
|
54501
54983
|
}
|
|
@@ -54641,8 +55123,71 @@
|
|
|
54641
55123
|
"path"
|
|
54642
55124
|
]
|
|
54643
55125
|
},
|
|
55126
|
+
"SiteExternalLinkTitle": {
|
|
55127
|
+
"type": "string",
|
|
55128
|
+
"description": "Title of the external link",
|
|
55129
|
+
"minLength": 2,
|
|
55130
|
+
"maxLength": 128
|
|
55131
|
+
},
|
|
55132
|
+
"SiteExternalLinkDescription": {
|
|
55133
|
+
"type": "string",
|
|
55134
|
+
"description": "Description of the external link",
|
|
55135
|
+
"minLength": 0,
|
|
55136
|
+
"maxLength": 256
|
|
55137
|
+
},
|
|
55138
|
+
"GitSyncSiteStructureExternalLink": {
|
|
55139
|
+
"type": "object",
|
|
55140
|
+
"additionalProperties": false,
|
|
55141
|
+
"description": "An external link — a leaf that navigates away from the site to an absolute\nHTTP(S) URL. Discriminated by `type: external-link`.\n\nAn external link only exists in a section-based site structure: it may sit\nat the root alongside sections and section groups, or nested under a\nsection group, but never inside a section.\n",
|
|
55142
|
+
"properties": {
|
|
55143
|
+
"type": {
|
|
55144
|
+
"type": "string",
|
|
55145
|
+
"enum": [
|
|
55146
|
+
"external-link"
|
|
55147
|
+
],
|
|
55148
|
+
"description": "Discriminator for an external link node."
|
|
55149
|
+
},
|
|
55150
|
+
"key": {
|
|
55151
|
+
"type": "string",
|
|
55152
|
+
"description": "Stable identifier for this external link, used as the Git Sync key.\nMust be unique amongst all other nodes of the site. For example:\n`link-status` or `link-1`.\n",
|
|
55153
|
+
"minLength": 1
|
|
55154
|
+
},
|
|
55155
|
+
"title": {
|
|
55156
|
+
"$ref": "#/components/schemas/SiteExternalLinkTitle"
|
|
55157
|
+
},
|
|
55158
|
+
"localizedTitle": {
|
|
55159
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
55160
|
+
},
|
|
55161
|
+
"description": {
|
|
55162
|
+
"$ref": "#/components/schemas/SiteExternalLinkDescription"
|
|
55163
|
+
},
|
|
55164
|
+
"localizedDescription": {
|
|
55165
|
+
"$ref": "#/components/schemas/LocalizedString256"
|
|
55166
|
+
},
|
|
55167
|
+
"icon": {
|
|
55168
|
+
"$ref": "#/components/schemas/Icon"
|
|
55169
|
+
},
|
|
55170
|
+
"url": {
|
|
55171
|
+
"$ref": "#/components/schemas/URL",
|
|
55172
|
+
"description": "Absolute HTTP or HTTPS URL opened by the external link."
|
|
55173
|
+
},
|
|
55174
|
+
"draft": {
|
|
55175
|
+
"type": "boolean",
|
|
55176
|
+
"description": "Whether the external link is draft and not live."
|
|
55177
|
+
},
|
|
55178
|
+
"condition": {
|
|
55179
|
+
"$ref": "#/components/schemas/Expression"
|
|
55180
|
+
}
|
|
55181
|
+
},
|
|
55182
|
+
"required": [
|
|
55183
|
+
"type",
|
|
55184
|
+
"key",
|
|
55185
|
+
"title",
|
|
55186
|
+
"url"
|
|
55187
|
+
]
|
|
55188
|
+
},
|
|
54644
55189
|
"GitSyncSiteStructureNode": {
|
|
54645
|
-
"description": "A single node in a Git Sync site structure tree — a section group, a\nsection,
|
|
55190
|
+
"description": "A single node in a Git Sync site structure tree — a section group, a\nsection, a space, or an external link, discriminated by `type`.\n",
|
|
54646
55191
|
"oneOf": [
|
|
54647
55192
|
{
|
|
54648
55193
|
"$ref": "#/components/schemas/GitSyncSiteStructureSectionGroup"
|
|
@@ -54652,12 +55197,15 @@
|
|
|
54652
55197
|
},
|
|
54653
55198
|
{
|
|
54654
55199
|
"$ref": "#/components/schemas/GitSyncSiteStructureSpace"
|
|
55200
|
+
},
|
|
55201
|
+
{
|
|
55202
|
+
"$ref": "#/components/schemas/GitSyncSiteStructureExternalLink"
|
|
54655
55203
|
}
|
|
54656
55204
|
]
|
|
54657
55205
|
},
|
|
54658
55206
|
"GitSyncSiteStructure": {
|
|
54659
55207
|
"type": "array",
|
|
54660
|
-
"description": "Hierarchical structure of a site in a Git Sync YAML. Each entry is one of\
|
|
55208
|
+
"description": "Hierarchical structure of a site in a Git Sync YAML. Each entry is one of\nfour node types: a section group, a section, a space, or an external link.\n\nA **space** is a leaf holding content, pointed at a repository directory. A\n**section** gathers spaces behind one top-level navigation entry. A\n**section group** gathers sections. An **external link** is a leaf that\nnavigates away from the site to an absolute HTTP(S) URL — it may sit at the\nroot or under a section group, but never inside a section, and only exists\nin a site that also has at least one section. A site either uses sections\n(optionally alongside external links) or lists its spaces at the top level,\nnever both.\n\n```yaml\nstructure:\n - type: space\n key: space-guides\n title: Guides\n path: guides\n default: true\n content:\n directory: ./guides\n - type: space\n key: space-api\n title: API reference\n path: api\n content:\n directory: ./api\n```\n\nThe same two spaces behind top-level navigation entries:\n\n```yaml\nstructure:\n - type: section\n key: section-product\n title: Product\n path: product\n default: true\n children:\n - type: space\n key: space-guides\n title: Guides\n path: guides\n default: true\n content:\n directory: ./guides\n - type: section\n key: section-reference\n title: Reference\n path: reference\n children:\n - type: space\n key: space-api\n title: API reference\n path: api\n default: true\n content:\n directory: ./api\n```\n\nRules checked on import — a violation fails the sync, naming the offending\nnode:\n\n- Every `key` is unique across the file, whatever the node type. Git Sync\n recognises a node from one sync to the next by its key, so a reused key\n leaves two nodes indistinguishable.\n- Each section marks exactly one of its spaces `default: true`, and a site\n without sections marks one among its top-level spaces. The default is the\n space that opens when the site or the section is visited without a space\n path of its own.\n- A site declaring any section marks exactly one of those sections\n `default: true`, and lists no space at the top level: once a section\n exists, every space belongs inside one.\n- Sections hold only spaces. Section groups hold only sections, nested\n section groups (one further level), or external links — nothing nests\n deeper than that.\n- External links are only valid at the root or nested in a section group,\n never inside a section. A site containing an external link must use\n sections, with at least one section declared.\n- Spaces pointed at the same `content.directory` declare the same\n `content.language`. One directory is read once, so it cannot produce two\n languages at the same time.\n",
|
|
54661
55209
|
"items": {
|
|
54662
55210
|
"$ref": "#/components/schemas/GitSyncSiteStructureNode"
|
|
54663
55211
|
}
|
|
@@ -57086,6 +57634,16 @@
|
|
|
57086
57634
|
"spaceId"
|
|
57087
57635
|
]
|
|
57088
57636
|
},
|
|
57637
|
+
"AgentEditScope": {
|
|
57638
|
+
"type": "string",
|
|
57639
|
+
"description": "Steering on how far an agent should reach when it changes content.\nOnly `read-only` is a hard boundary: the editing tools are not given to the agent, so it cannot change content whatever it is asked. The other values are guidance the agent follows — they steer where the work belongs. Agents can still make small edits elsewhere when the change it was asked for would otherwise leave the documentation broken (e.g. an inbound link to a page it renamed).\n`all` sets no specific focus, which is the default. `read-only` reads, searches and comments without editing. `current-page` focuses on the page the user is on and its subpages. `modified-pages` focuses on the pages a change request has already touched.\n",
|
|
57640
|
+
"enum": [
|
|
57641
|
+
"all",
|
|
57642
|
+
"read-only",
|
|
57643
|
+
"current-page",
|
|
57644
|
+
"modified-pages"
|
|
57645
|
+
]
|
|
57646
|
+
},
|
|
57089
57647
|
"AgentState": {
|
|
57090
57648
|
"type": "object",
|
|
57091
57649
|
"properties": {
|
|
@@ -57124,6 +57682,14 @@
|
|
|
57124
57682
|
"editTarget": {
|
|
57125
57683
|
"$ref": "#/components/schemas/AgentEditTarget",
|
|
57126
57684
|
"description": "Where the agent currently edits content. Absent until something is attached: the organization agent starts read-only, while a change request agent always edits the change request it belongs to.\n"
|
|
57685
|
+
},
|
|
57686
|
+
"editScope": {
|
|
57687
|
+
"$ref": "#/components/schemas/AgentEditScope",
|
|
57688
|
+
"description": "How far this conversation should reach when it changes content.\n"
|
|
57689
|
+
},
|
|
57690
|
+
"consultOnly": {
|
|
57691
|
+
"type": "boolean",
|
|
57692
|
+
"description": "Whether this conversation can only be read. Set on a transcript the agent produced on its own — an agent review — which is published for its requester to consult rather than to be continued: the client shows no composer and the agent refuses a message sent to it anyway.\n"
|
|
57127
57693
|
}
|
|
57128
57694
|
},
|
|
57129
57695
|
"required": [
|