@gitbook/api 0.199.0 → 0.200.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 +266 -63
- package/dist/constants.d.ts +7 -0
- package/dist/index.cjs +48 -1
- package/dist/index.js +40 -1
- package/package.json +1 -1
- package/spec/openapi.json +697 -174
- package/spec/openapi.yaml +495 -121
package/spec/openapi.json
CHANGED
|
@@ -10275,6 +10275,15 @@
|
|
|
10275
10275
|
},
|
|
10276
10276
|
"description": "If defined, only change requests linked to this site topic will be returned."
|
|
10277
10277
|
},
|
|
10278
|
+
{
|
|
10279
|
+
"name": "styleguideRun",
|
|
10280
|
+
"in": "query",
|
|
10281
|
+
"required": false,
|
|
10282
|
+
"schema": {
|
|
10283
|
+
"type": "string"
|
|
10284
|
+
},
|
|
10285
|
+
"description": "If defined, only change requests opened by this style guide check run will be returned."
|
|
10286
|
+
},
|
|
10278
10287
|
{
|
|
10279
10288
|
"name": "finding",
|
|
10280
10289
|
"in": "query",
|
|
@@ -16723,7 +16732,9 @@
|
|
|
16723
16732
|
"/orgs/{organizationId}/sites/{siteId}/findings": {
|
|
16724
16733
|
"get": {
|
|
16725
16734
|
"operationId": "listSiteFindings",
|
|
16726
|
-
"summary": "List
|
|
16735
|
+
"summary": "List documentation issues GitBook has found on a site",
|
|
16736
|
+
"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.",
|
|
16737
|
+
"x-gitbook-mcp": true,
|
|
16727
16738
|
"tags": [
|
|
16728
16739
|
"site-context"
|
|
16729
16740
|
],
|
|
@@ -16881,7 +16892,9 @@
|
|
|
16881
16892
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}": {
|
|
16882
16893
|
"get": {
|
|
16883
16894
|
"operationId": "getSiteFindingById",
|
|
16884
|
-
"summary": "Get a
|
|
16895
|
+
"summary": "Get details of a single documentation issue",
|
|
16896
|
+
"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.",
|
|
16897
|
+
"x-gitbook-mcp": true,
|
|
16885
16898
|
"tags": [
|
|
16886
16899
|
"site-context"
|
|
16887
16900
|
],
|
|
@@ -16921,7 +16934,9 @@
|
|
|
16921
16934
|
},
|
|
16922
16935
|
"patch": {
|
|
16923
16936
|
"operationId": "updateSiteFindingById",
|
|
16924
|
-
"summary": "
|
|
16937
|
+
"summary": "Resolve, dismiss, or reopen a documentation issue",
|
|
16938
|
+
"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.",
|
|
16939
|
+
"x-gitbook-mcp": true,
|
|
16925
16940
|
"tags": [
|
|
16926
16941
|
"site-context"
|
|
16927
16942
|
],
|
|
@@ -16981,7 +16996,9 @@
|
|
|
16981
16996
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests": {
|
|
16982
16997
|
"get": {
|
|
16983
16998
|
"operationId": "listChangeRequestsForSiteFinding",
|
|
16984
|
-
"summary": "List
|
|
16999
|
+
"summary": "List content fixes already proposed for a documentation issue",
|
|
17000
|
+
"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.",
|
|
17001
|
+
"x-gitbook-mcp": true,
|
|
16985
17002
|
"tags": [
|
|
16986
17003
|
"site-context"
|
|
16987
17004
|
],
|
|
@@ -17045,7 +17062,9 @@
|
|
|
17045
17062
|
},
|
|
17046
17063
|
"post": {
|
|
17047
17064
|
"operationId": "triggerChangeRequestsForSiteFinding",
|
|
17048
|
-
"summary": "
|
|
17065
|
+
"summary": "Fix a documentation issue by generating a change request",
|
|
17066
|
+
"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`.",
|
|
17067
|
+
"x-gitbook-mcp": true,
|
|
17049
17068
|
"tags": [
|
|
17050
17069
|
"site-context"
|
|
17051
17070
|
],
|
|
@@ -17080,7 +17099,9 @@
|
|
|
17080
17099
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages": {
|
|
17081
17100
|
"get": {
|
|
17082
17101
|
"operationId": "listPagesForSiteFinding",
|
|
17083
|
-
"summary": "List pages
|
|
17102
|
+
"summary": "List the pages affected by a documentation issue",
|
|
17103
|
+
"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`.",
|
|
17104
|
+
"x-gitbook-mcp": true,
|
|
17084
17105
|
"tags": [
|
|
17085
17106
|
"site-context"
|
|
17086
17107
|
],
|
|
@@ -17146,7 +17167,9 @@
|
|
|
17146
17167
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions": {
|
|
17147
17168
|
"get": {
|
|
17148
17169
|
"operationId": "listQuestionsForSiteFinding",
|
|
17149
|
-
"summary": "List questions
|
|
17170
|
+
"summary": "List the Ask-AI questions evidencing a documentation issue",
|
|
17171
|
+
"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.",
|
|
17172
|
+
"x-gitbook-mcp": true,
|
|
17150
17173
|
"tags": [
|
|
17151
17174
|
"site-context"
|
|
17152
17175
|
],
|
|
@@ -17212,7 +17235,9 @@
|
|
|
17212
17235
|
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records": {
|
|
17213
17236
|
"get": {
|
|
17214
17237
|
"operationId": "listRecordsForSiteFinding",
|
|
17215
|
-
"summary": "List
|
|
17238
|
+
"summary": "List the source content evidencing a documentation issue",
|
|
17239
|
+
"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.",
|
|
17240
|
+
"x-gitbook-mcp": true,
|
|
17216
17241
|
"tags": [
|
|
17217
17242
|
"site-context"
|
|
17218
17243
|
],
|
|
@@ -17278,8 +17303,9 @@
|
|
|
17278
17303
|
"/orgs/{organizationId}/sites/{siteId}/stats/findings": {
|
|
17279
17304
|
"get": {
|
|
17280
17305
|
"operationId": "getSiteFindingStats",
|
|
17281
|
-
"summary": "Get
|
|
17282
|
-
"description": "Returns aggregate statistics about the
|
|
17306
|
+
"summary": "Get a summary of documentation issues found on a site",
|
|
17307
|
+
"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.",
|
|
17308
|
+
"x-gitbook-mcp": true,
|
|
17283
17309
|
"tags": [
|
|
17284
17310
|
"site-context"
|
|
17285
17311
|
],
|
|
@@ -17900,7 +17926,9 @@
|
|
|
17900
17926
|
"/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings": {
|
|
17901
17927
|
"delete": {
|
|
17902
17928
|
"operationId": "deleteSiteTopicFindings",
|
|
17903
|
-
"summary": "Delete all
|
|
17929
|
+
"summary": "Delete all documentation issues found under a topic",
|
|
17930
|
+
"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.",
|
|
17931
|
+
"x-gitbook-mcp": true,
|
|
17904
17932
|
"tags": [
|
|
17905
17933
|
"site-context"
|
|
17906
17934
|
],
|
|
@@ -20482,6 +20510,153 @@
|
|
|
20482
20510
|
}
|
|
20483
20511
|
}
|
|
20484
20512
|
},
|
|
20513
|
+
"/orgs/{organizationId}/sites/{siteId}/styleguide/runs": {
|
|
20514
|
+
"post": {
|
|
20515
|
+
"operationId": "createSiteStyleguideRun",
|
|
20516
|
+
"summary": "Start a style guide check run for a site",
|
|
20517
|
+
"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.",
|
|
20518
|
+
"x-gitbook-mcp": true,
|
|
20519
|
+
"tags": [
|
|
20520
|
+
"sites"
|
|
20521
|
+
],
|
|
20522
|
+
"security": [
|
|
20523
|
+
{
|
|
20524
|
+
"user": []
|
|
20525
|
+
},
|
|
20526
|
+
{
|
|
20527
|
+
"oauth": [
|
|
20528
|
+
"site:write"
|
|
20529
|
+
]
|
|
20530
|
+
}
|
|
20531
|
+
],
|
|
20532
|
+
"parameters": [
|
|
20533
|
+
{
|
|
20534
|
+
"$ref": "#/components/parameters/organizationId"
|
|
20535
|
+
},
|
|
20536
|
+
{
|
|
20537
|
+
"$ref": "#/components/parameters/siteId"
|
|
20538
|
+
}
|
|
20539
|
+
],
|
|
20540
|
+
"requestBody": {
|
|
20541
|
+
"required": true,
|
|
20542
|
+
"content": {
|
|
20543
|
+
"application/json": {
|
|
20544
|
+
"schema": {
|
|
20545
|
+
"type": "object",
|
|
20546
|
+
"properties": {
|
|
20547
|
+
"spaces": {
|
|
20548
|
+
"type": "array",
|
|
20549
|
+
"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.",
|
|
20550
|
+
"items": {
|
|
20551
|
+
"type": "string"
|
|
20552
|
+
},
|
|
20553
|
+
"minItems": 1,
|
|
20554
|
+
"maxItems": 3
|
|
20555
|
+
}
|
|
20556
|
+
},
|
|
20557
|
+
"required": [
|
|
20558
|
+
"spaces"
|
|
20559
|
+
]
|
|
20560
|
+
}
|
|
20561
|
+
}
|
|
20562
|
+
}
|
|
20563
|
+
},
|
|
20564
|
+
"responses": {
|
|
20565
|
+
"201": {
|
|
20566
|
+
"description": "Style guide check run started",
|
|
20567
|
+
"content": {
|
|
20568
|
+
"application/json": {
|
|
20569
|
+
"schema": {
|
|
20570
|
+
"type": "object",
|
|
20571
|
+
"properties": {
|
|
20572
|
+
"run": {
|
|
20573
|
+
"$ref": "#/components/schemas/SiteStyleguideRun"
|
|
20574
|
+
},
|
|
20575
|
+
"changeRequests": {
|
|
20576
|
+
"type": "array",
|
|
20577
|
+
"description": "The change requests opened by the run, one per space that could be started.",
|
|
20578
|
+
"items": {
|
|
20579
|
+
"$ref": "#/components/schemas/ChangeRequest"
|
|
20580
|
+
}
|
|
20581
|
+
}
|
|
20582
|
+
},
|
|
20583
|
+
"required": [
|
|
20584
|
+
"run",
|
|
20585
|
+
"changeRequests"
|
|
20586
|
+
]
|
|
20587
|
+
}
|
|
20588
|
+
}
|
|
20589
|
+
}
|
|
20590
|
+
},
|
|
20591
|
+
"404": {
|
|
20592
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
20593
|
+
}
|
|
20594
|
+
}
|
|
20595
|
+
},
|
|
20596
|
+
"get": {
|
|
20597
|
+
"operationId": "listSiteStyleguideRuns",
|
|
20598
|
+
"summary": "List the style guide check runs of a site",
|
|
20599
|
+
"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.",
|
|
20600
|
+
"x-gitbook-mcp": true,
|
|
20601
|
+
"tags": [
|
|
20602
|
+
"sites"
|
|
20603
|
+
],
|
|
20604
|
+
"security": [
|
|
20605
|
+
{
|
|
20606
|
+
"user": []
|
|
20607
|
+
},
|
|
20608
|
+
{
|
|
20609
|
+
"oauth": [
|
|
20610
|
+
"site:read"
|
|
20611
|
+
]
|
|
20612
|
+
}
|
|
20613
|
+
],
|
|
20614
|
+
"parameters": [
|
|
20615
|
+
{
|
|
20616
|
+
"$ref": "#/components/parameters/organizationId"
|
|
20617
|
+
},
|
|
20618
|
+
{
|
|
20619
|
+
"$ref": "#/components/parameters/siteId"
|
|
20620
|
+
},
|
|
20621
|
+
{
|
|
20622
|
+
"$ref": "#/components/parameters/listPage"
|
|
20623
|
+
},
|
|
20624
|
+
{
|
|
20625
|
+
"$ref": "#/components/parameters/listLimit"
|
|
20626
|
+
}
|
|
20627
|
+
],
|
|
20628
|
+
"responses": {
|
|
20629
|
+
"200": {
|
|
20630
|
+
"description": "OK",
|
|
20631
|
+
"content": {
|
|
20632
|
+
"application/json": {
|
|
20633
|
+
"schema": {
|
|
20634
|
+
"allOf": [
|
|
20635
|
+
{
|
|
20636
|
+
"$ref": "#/components/schemas/List"
|
|
20637
|
+
},
|
|
20638
|
+
{
|
|
20639
|
+
"type": "object",
|
|
20640
|
+
"required": [
|
|
20641
|
+
"items"
|
|
20642
|
+
],
|
|
20643
|
+
"properties": {
|
|
20644
|
+
"items": {
|
|
20645
|
+
"type": "array",
|
|
20646
|
+
"items": {
|
|
20647
|
+
"$ref": "#/components/schemas/SiteStyleguideRun"
|
|
20648
|
+
}
|
|
20649
|
+
}
|
|
20650
|
+
}
|
|
20651
|
+
}
|
|
20652
|
+
]
|
|
20653
|
+
}
|
|
20654
|
+
}
|
|
20655
|
+
}
|
|
20656
|
+
}
|
|
20657
|
+
}
|
|
20658
|
+
}
|
|
20659
|
+
},
|
|
20485
20660
|
"/orgs/{organizationId}/sites/{siteId}/insights/events": {
|
|
20486
20661
|
"post": {
|
|
20487
20662
|
"operationId": "trackEventsInSiteById",
|
|
@@ -20726,6 +20901,11 @@
|
|
|
20726
20901
|
"default": false,
|
|
20727
20902
|
"description": "Whether the redirect is draft and not live."
|
|
20728
20903
|
},
|
|
20904
|
+
"permanent": {
|
|
20905
|
+
"type": "boolean",
|
|
20906
|
+
"default": false,
|
|
20907
|
+
"description": "Whether the redirect is permanent for public live traffic."
|
|
20908
|
+
},
|
|
20729
20909
|
"destination": {
|
|
20730
20910
|
"$ref": "#/components/schemas/SiteRedirectInputDestination"
|
|
20731
20911
|
}
|
|
@@ -20829,6 +21009,10 @@
|
|
|
20829
21009
|
"default": false,
|
|
20830
21010
|
"description": "Capture and append the wildcard-matched suffix to the destination URL."
|
|
20831
21011
|
},
|
|
21012
|
+
"permanent": {
|
|
21013
|
+
"type": "boolean",
|
|
21014
|
+
"description": "Whether the redirect is permanent for public live traffic."
|
|
21015
|
+
},
|
|
20832
21016
|
"destination": {
|
|
20833
21017
|
"description": "If set to null, the redirect matching the source+intent target will be deleted.",
|
|
20834
21018
|
"oneOf": [
|
|
@@ -21159,6 +21343,10 @@
|
|
|
21159
21343
|
"type": "boolean",
|
|
21160
21344
|
"description": "When true, it can be used to promote a draft redirect to live."
|
|
21161
21345
|
},
|
|
21346
|
+
"permanent": {
|
|
21347
|
+
"type": "boolean",
|
|
21348
|
+
"description": "Whether the redirect is permanent for public live traffic."
|
|
21349
|
+
},
|
|
21162
21350
|
"destination": {
|
|
21163
21351
|
"$ref": "#/components/schemas/SiteRedirectDestination"
|
|
21164
21352
|
}
|
|
@@ -27154,166 +27342,6 @@
|
|
|
27154
27342
|
"isVoid"
|
|
27155
27343
|
]
|
|
27156
27344
|
},
|
|
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
27345
|
"DocumentTableViewGrid": {
|
|
27318
27346
|
"type": "object",
|
|
27319
27347
|
"properties": {
|
|
@@ -27950,6 +27978,169 @@
|
|
|
27950
27978
|
"fragments"
|
|
27951
27979
|
]
|
|
27952
27980
|
},
|
|
27981
|
+
"DocumentBlockHint": {
|
|
27982
|
+
"type": "object",
|
|
27983
|
+
"properties": {
|
|
27984
|
+
"object": {
|
|
27985
|
+
"type": "string",
|
|
27986
|
+
"enum": [
|
|
27987
|
+
"block"
|
|
27988
|
+
]
|
|
27989
|
+
},
|
|
27990
|
+
"type": {
|
|
27991
|
+
"type": "string",
|
|
27992
|
+
"enum": [
|
|
27993
|
+
"hint"
|
|
27994
|
+
]
|
|
27995
|
+
},
|
|
27996
|
+
"key": {
|
|
27997
|
+
"type": "string"
|
|
27998
|
+
},
|
|
27999
|
+
"data": {
|
|
28000
|
+
"type": "object",
|
|
28001
|
+
"properties": {
|
|
28002
|
+
"style": {
|
|
28003
|
+
"type": "string",
|
|
28004
|
+
"enum": [
|
|
28005
|
+
"info",
|
|
28006
|
+
"warning",
|
|
28007
|
+
"danger",
|
|
28008
|
+
"success"
|
|
28009
|
+
]
|
|
28010
|
+
},
|
|
28011
|
+
"icon": {
|
|
28012
|
+
"$ref": "#/components/schemas/Icon"
|
|
28013
|
+
}
|
|
28014
|
+
},
|
|
28015
|
+
"required": [
|
|
28016
|
+
"style"
|
|
28017
|
+
]
|
|
28018
|
+
},
|
|
28019
|
+
"nodes": {
|
|
28020
|
+
"type": "array",
|
|
28021
|
+
"items": {
|
|
28022
|
+
"oneOf": [
|
|
28023
|
+
{
|
|
28024
|
+
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
28025
|
+
},
|
|
28026
|
+
{
|
|
28027
|
+
"$ref": "#/components/schemas/DocumentBlockEmbed"
|
|
28028
|
+
},
|
|
28029
|
+
{
|
|
28030
|
+
"$ref": "#/components/schemas/DocumentBlockIntegration"
|
|
28031
|
+
},
|
|
28032
|
+
{
|
|
28033
|
+
"$ref": "#/components/schemas/DocumentBlockTable"
|
|
28034
|
+
}
|
|
28035
|
+
]
|
|
28036
|
+
}
|
|
28037
|
+
},
|
|
28038
|
+
"isVoid": {
|
|
28039
|
+
"type": "boolean",
|
|
28040
|
+
"enum": [
|
|
28041
|
+
false
|
|
28042
|
+
]
|
|
28043
|
+
}
|
|
28044
|
+
},
|
|
28045
|
+
"required": [
|
|
28046
|
+
"object",
|
|
28047
|
+
"type",
|
|
28048
|
+
"data",
|
|
28049
|
+
"nodes"
|
|
28050
|
+
]
|
|
28051
|
+
},
|
|
28052
|
+
"DocumentBlockQuote": {
|
|
28053
|
+
"type": "object",
|
|
28054
|
+
"properties": {
|
|
28055
|
+
"object": {
|
|
28056
|
+
"type": "string",
|
|
28057
|
+
"enum": [
|
|
28058
|
+
"block"
|
|
28059
|
+
]
|
|
28060
|
+
},
|
|
28061
|
+
"type": {
|
|
28062
|
+
"type": "string",
|
|
28063
|
+
"enum": [
|
|
28064
|
+
"blockquote"
|
|
28065
|
+
]
|
|
28066
|
+
},
|
|
28067
|
+
"key": {
|
|
28068
|
+
"type": "string"
|
|
28069
|
+
},
|
|
28070
|
+
"nodes": {
|
|
28071
|
+
"type": "array",
|
|
28072
|
+
"items": {
|
|
28073
|
+
"oneOf": [
|
|
28074
|
+
{
|
|
28075
|
+
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
28076
|
+
},
|
|
28077
|
+
{
|
|
28078
|
+
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
28079
|
+
}
|
|
28080
|
+
]
|
|
28081
|
+
}
|
|
28082
|
+
},
|
|
28083
|
+
"isVoid": {
|
|
28084
|
+
"type": "boolean",
|
|
28085
|
+
"enum": [
|
|
28086
|
+
false
|
|
28087
|
+
]
|
|
28088
|
+
},
|
|
28089
|
+
"data": {
|
|
28090
|
+
"type": "object",
|
|
28091
|
+
"properties": {},
|
|
28092
|
+
"additionalProperties": false
|
|
28093
|
+
}
|
|
28094
|
+
},
|
|
28095
|
+
"required": [
|
|
28096
|
+
"object",
|
|
28097
|
+
"type",
|
|
28098
|
+
"nodes"
|
|
28099
|
+
]
|
|
28100
|
+
},
|
|
28101
|
+
"DocumentBlockMath": {
|
|
28102
|
+
"type": "object",
|
|
28103
|
+
"properties": {
|
|
28104
|
+
"object": {
|
|
28105
|
+
"type": "string",
|
|
28106
|
+
"enum": [
|
|
28107
|
+
"block"
|
|
28108
|
+
]
|
|
28109
|
+
},
|
|
28110
|
+
"type": {
|
|
28111
|
+
"type": "string",
|
|
28112
|
+
"enum": [
|
|
28113
|
+
"math"
|
|
28114
|
+
]
|
|
28115
|
+
},
|
|
28116
|
+
"key": {
|
|
28117
|
+
"type": "string"
|
|
28118
|
+
},
|
|
28119
|
+
"data": {
|
|
28120
|
+
"type": "object",
|
|
28121
|
+
"properties": {
|
|
28122
|
+
"formula": {
|
|
28123
|
+
"type": "string"
|
|
28124
|
+
}
|
|
28125
|
+
},
|
|
28126
|
+
"required": [
|
|
28127
|
+
"formula"
|
|
28128
|
+
]
|
|
28129
|
+
},
|
|
28130
|
+
"isVoid": {
|
|
28131
|
+
"type": "boolean",
|
|
28132
|
+
"enum": [
|
|
28133
|
+
true
|
|
28134
|
+
]
|
|
28135
|
+
}
|
|
28136
|
+
},
|
|
28137
|
+
"required": [
|
|
28138
|
+
"object",
|
|
28139
|
+
"type",
|
|
28140
|
+
"data",
|
|
28141
|
+
"isVoid"
|
|
28142
|
+
]
|
|
28143
|
+
},
|
|
27953
28144
|
"DocumentBlockListItem": {
|
|
27954
28145
|
"type": "object",
|
|
27955
28146
|
"properties": {
|
|
@@ -31857,6 +32048,28 @@
|
|
|
31857
32048
|
"topic"
|
|
31858
32049
|
]
|
|
31859
32050
|
},
|
|
32051
|
+
"styleguide": {
|
|
32052
|
+
"type": "object",
|
|
32053
|
+
"description": "Style guide check run that opened the change request, when it came from one.",
|
|
32054
|
+
"properties": {
|
|
32055
|
+
"site": {
|
|
32056
|
+
"type": "string",
|
|
32057
|
+
"description": "ID of the site the style guide belongs to."
|
|
32058
|
+
},
|
|
32059
|
+
"run": {
|
|
32060
|
+
"type": "string",
|
|
32061
|
+
"description": "ID of the style guide check run that opened the change request."
|
|
32062
|
+
},
|
|
32063
|
+
"changedPages": {
|
|
32064
|
+
"type": "number",
|
|
32065
|
+
"description": "Number of pages the check changed, recorded when it finished. Absent while it is still running, or when it never completed.\n"
|
|
32066
|
+
}
|
|
32067
|
+
},
|
|
32068
|
+
"required": [
|
|
32069
|
+
"site",
|
|
32070
|
+
"run"
|
|
32071
|
+
]
|
|
32072
|
+
},
|
|
31860
32073
|
"outdated": {
|
|
31861
32074
|
"type": "boolean",
|
|
31862
32075
|
"description": "If true, the change request is not up-to-date with latest changes in the main content."
|
|
@@ -39900,6 +40113,175 @@
|
|
|
39900
40113
|
"updateSites"
|
|
39901
40114
|
]
|
|
39902
40115
|
},
|
|
40116
|
+
"BillingCancellationComment": {
|
|
40117
|
+
"type": "string",
|
|
40118
|
+
"description": "Free-text detail a user typed alongside their cancellation reason.",
|
|
40119
|
+
"minLength": 1,
|
|
40120
|
+
"maxLength": 500
|
|
40121
|
+
},
|
|
40122
|
+
"BillingCancellationFeedback": {
|
|
40123
|
+
"type": "object",
|
|
40124
|
+
"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",
|
|
40125
|
+
"oneOf": [
|
|
40126
|
+
{
|
|
40127
|
+
"type": "object",
|
|
40128
|
+
"properties": {
|
|
40129
|
+
"reason": {
|
|
40130
|
+
"type": "string",
|
|
40131
|
+
"enum": [
|
|
40132
|
+
"not_satisfied_with_product"
|
|
40133
|
+
]
|
|
40134
|
+
},
|
|
40135
|
+
"reasonDetail": {
|
|
40136
|
+
"description": "The feature that was not satisfactory",
|
|
40137
|
+
"type": "string",
|
|
40138
|
+
"enum": [
|
|
40139
|
+
"editor",
|
|
40140
|
+
"gitsync",
|
|
40141
|
+
"ai_features"
|
|
40142
|
+
]
|
|
40143
|
+
}
|
|
40144
|
+
},
|
|
40145
|
+
"additionalProperties": false,
|
|
40146
|
+
"required": [
|
|
40147
|
+
"reason",
|
|
40148
|
+
"reasonDetail"
|
|
40149
|
+
]
|
|
40150
|
+
},
|
|
40151
|
+
{
|
|
40152
|
+
"type": "object",
|
|
40153
|
+
"properties": {
|
|
40154
|
+
"reason": {
|
|
40155
|
+
"type": "string",
|
|
40156
|
+
"enum": [
|
|
40157
|
+
"not_satisfied_with_product"
|
|
40158
|
+
]
|
|
40159
|
+
},
|
|
40160
|
+
"reasonDetail": {
|
|
40161
|
+
"description": "The feature that was not satisfactory",
|
|
40162
|
+
"type": "string",
|
|
40163
|
+
"enum": [
|
|
40164
|
+
"other"
|
|
40165
|
+
]
|
|
40166
|
+
},
|
|
40167
|
+
"reasonComment": {
|
|
40168
|
+
"$ref": "#/components/schemas/BillingCancellationComment"
|
|
40169
|
+
}
|
|
40170
|
+
},
|
|
40171
|
+
"additionalProperties": false,
|
|
40172
|
+
"required": [
|
|
40173
|
+
"reason",
|
|
40174
|
+
"reasonDetail",
|
|
40175
|
+
"reasonComment"
|
|
40176
|
+
]
|
|
40177
|
+
},
|
|
40178
|
+
{
|
|
40179
|
+
"type": "object",
|
|
40180
|
+
"properties": {
|
|
40181
|
+
"reason": {
|
|
40182
|
+
"type": "string",
|
|
40183
|
+
"enum": [
|
|
40184
|
+
"will_vibe_code_our_own_app"
|
|
40185
|
+
]
|
|
40186
|
+
},
|
|
40187
|
+
"reasonDetail": {
|
|
40188
|
+
"description": "The tool the organization is moving to",
|
|
40189
|
+
"type": "string",
|
|
40190
|
+
"enum": [
|
|
40191
|
+
"claude",
|
|
40192
|
+
"codex",
|
|
40193
|
+
"replit"
|
|
40194
|
+
]
|
|
40195
|
+
}
|
|
40196
|
+
},
|
|
40197
|
+
"additionalProperties": false,
|
|
40198
|
+
"required": [
|
|
40199
|
+
"reason",
|
|
40200
|
+
"reasonDetail"
|
|
40201
|
+
]
|
|
40202
|
+
},
|
|
40203
|
+
{
|
|
40204
|
+
"type": "object",
|
|
40205
|
+
"properties": {
|
|
40206
|
+
"reason": {
|
|
40207
|
+
"type": "string",
|
|
40208
|
+
"enum": [
|
|
40209
|
+
"will_vibe_code_our_own_app"
|
|
40210
|
+
]
|
|
40211
|
+
},
|
|
40212
|
+
"reasonDetail": {
|
|
40213
|
+
"description": "The tool the organization is moving to",
|
|
40214
|
+
"type": "string",
|
|
40215
|
+
"enum": [
|
|
40216
|
+
"other"
|
|
40217
|
+
]
|
|
40218
|
+
},
|
|
40219
|
+
"reasonComment": {
|
|
40220
|
+
"$ref": "#/components/schemas/BillingCancellationComment"
|
|
40221
|
+
}
|
|
40222
|
+
},
|
|
40223
|
+
"additionalProperties": false,
|
|
40224
|
+
"required": [
|
|
40225
|
+
"reason",
|
|
40226
|
+
"reasonDetail",
|
|
40227
|
+
"reasonComment"
|
|
40228
|
+
]
|
|
40229
|
+
},
|
|
40230
|
+
{
|
|
40231
|
+
"type": "object",
|
|
40232
|
+
"properties": {
|
|
40233
|
+
"reason": {
|
|
40234
|
+
"type": "string",
|
|
40235
|
+
"enum": [
|
|
40236
|
+
"found_better_alternative"
|
|
40237
|
+
]
|
|
40238
|
+
},
|
|
40239
|
+
"reasonComment": {
|
|
40240
|
+
"$ref": "#/components/schemas/BillingCancellationComment"
|
|
40241
|
+
}
|
|
40242
|
+
},
|
|
40243
|
+
"additionalProperties": false,
|
|
40244
|
+
"required": [
|
|
40245
|
+
"reason",
|
|
40246
|
+
"reasonComment"
|
|
40247
|
+
]
|
|
40248
|
+
},
|
|
40249
|
+
{
|
|
40250
|
+
"type": "object",
|
|
40251
|
+
"properties": {
|
|
40252
|
+
"reason": {
|
|
40253
|
+
"type": "string",
|
|
40254
|
+
"enum": [
|
|
40255
|
+
"company_shutdown"
|
|
40256
|
+
]
|
|
40257
|
+
}
|
|
40258
|
+
},
|
|
40259
|
+
"additionalProperties": false,
|
|
40260
|
+
"required": [
|
|
40261
|
+
"reason"
|
|
40262
|
+
]
|
|
40263
|
+
},
|
|
40264
|
+
{
|
|
40265
|
+
"type": "object",
|
|
40266
|
+
"properties": {
|
|
40267
|
+
"reason": {
|
|
40268
|
+
"type": "string",
|
|
40269
|
+
"enum": [
|
|
40270
|
+
"other_reason"
|
|
40271
|
+
]
|
|
40272
|
+
},
|
|
40273
|
+
"reasonComment": {
|
|
40274
|
+
"$ref": "#/components/schemas/BillingCancellationComment"
|
|
40275
|
+
}
|
|
40276
|
+
},
|
|
40277
|
+
"additionalProperties": false,
|
|
40278
|
+
"required": [
|
|
40279
|
+
"reason",
|
|
40280
|
+
"reasonComment"
|
|
40281
|
+
]
|
|
40282
|
+
}
|
|
40283
|
+
]
|
|
40284
|
+
},
|
|
39903
40285
|
"BillingCoupon": {
|
|
39904
40286
|
"type": "string",
|
|
39905
40287
|
"description": "Coupon or promotion code to apply to billing operations.",
|
|
@@ -39931,6 +40313,9 @@
|
|
|
39931
40313
|
"type": "string",
|
|
39932
40314
|
"description": "Reason that triggered the billing upgrade"
|
|
39933
40315
|
},
|
|
40316
|
+
"cancellationFeedback": {
|
|
40317
|
+
"$ref": "#/components/schemas/BillingCancellationFeedback"
|
|
40318
|
+
},
|
|
39934
40319
|
"coupon": {
|
|
39935
40320
|
"$ref": "#/components/schemas/BillingCoupon",
|
|
39936
40321
|
"description": "Coupon or promotion code to apply to the subscription"
|
|
@@ -48980,6 +49365,52 @@
|
|
|
48980
49365
|
}
|
|
48981
49366
|
]
|
|
48982
49367
|
},
|
|
49368
|
+
"SiteStyleguideRun": {
|
|
49369
|
+
"type": "object",
|
|
49370
|
+
"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.",
|
|
49371
|
+
"properties": {
|
|
49372
|
+
"object": {
|
|
49373
|
+
"type": "string",
|
|
49374
|
+
"enum": [
|
|
49375
|
+
"styleguide-run"
|
|
49376
|
+
]
|
|
49377
|
+
},
|
|
49378
|
+
"id": {
|
|
49379
|
+
"type": "string",
|
|
49380
|
+
"description": "The ID of the run"
|
|
49381
|
+
},
|
|
49382
|
+
"site": {
|
|
49383
|
+
"type": "string",
|
|
49384
|
+
"description": "ID of the site the run belongs to"
|
|
49385
|
+
},
|
|
49386
|
+
"styleguide": {
|
|
49387
|
+
"type": "string",
|
|
49388
|
+
"description": "ID of the style guide space the run checked against"
|
|
49389
|
+
},
|
|
49390
|
+
"spaces": {
|
|
49391
|
+
"type": "array",
|
|
49392
|
+
"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.",
|
|
49393
|
+
"items": {
|
|
49394
|
+
"type": "string"
|
|
49395
|
+
}
|
|
49396
|
+
},
|
|
49397
|
+
"createdAt": {
|
|
49398
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
49399
|
+
},
|
|
49400
|
+
"createdBy": {
|
|
49401
|
+
"$ref": "#/components/schemas/User"
|
|
49402
|
+
}
|
|
49403
|
+
},
|
|
49404
|
+
"required": [
|
|
49405
|
+
"object",
|
|
49406
|
+
"id",
|
|
49407
|
+
"site",
|
|
49408
|
+
"styleguide",
|
|
49409
|
+
"spaces",
|
|
49410
|
+
"createdAt",
|
|
49411
|
+
"createdBy"
|
|
49412
|
+
]
|
|
49413
|
+
},
|
|
48983
49414
|
"SiteInsightsEventSession": {
|
|
48984
49415
|
"allOf": [
|
|
48985
49416
|
{
|
|
@@ -52182,6 +52613,10 @@
|
|
|
52182
52613
|
"type": "boolean",
|
|
52183
52614
|
"description": "Capture and append the wildcard-matched suffix to the destination URL."
|
|
52184
52615
|
},
|
|
52616
|
+
"permanent": {
|
|
52617
|
+
"type": "boolean",
|
|
52618
|
+
"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."
|
|
52619
|
+
},
|
|
52185
52620
|
"destination": {
|
|
52186
52621
|
"$ref": "#/components/schemas/SiteRedirectDestination"
|
|
52187
52622
|
},
|
|
@@ -52202,6 +52637,7 @@
|
|
|
52202
52637
|
"source",
|
|
52203
52638
|
"draft",
|
|
52204
52639
|
"captureWildcard",
|
|
52640
|
+
"permanent",
|
|
52205
52641
|
"destination",
|
|
52206
52642
|
"createdAt"
|
|
52207
52643
|
]
|
|
@@ -54488,7 +54924,7 @@
|
|
|
54488
54924
|
},
|
|
54489
54925
|
"children": {
|
|
54490
54926
|
"type": "array",
|
|
54491
|
-
"description": "Section
|
|
54927
|
+
"description": "Section, section group, or external link nodes nested under this group.",
|
|
54492
54928
|
"items": {
|
|
54493
54929
|
"oneOf": [
|
|
54494
54930
|
{
|
|
@@ -54496,6 +54932,9 @@
|
|
|
54496
54932
|
},
|
|
54497
54933
|
{
|
|
54498
54934
|
"$ref": "#/components/schemas/GitSyncSiteStructureSection"
|
|
54935
|
+
},
|
|
54936
|
+
{
|
|
54937
|
+
"$ref": "#/components/schemas/GitSyncSiteStructureExternalLink"
|
|
54499
54938
|
}
|
|
54500
54939
|
]
|
|
54501
54940
|
}
|
|
@@ -54641,8 +55080,71 @@
|
|
|
54641
55080
|
"path"
|
|
54642
55081
|
]
|
|
54643
55082
|
},
|
|
55083
|
+
"SiteExternalLinkTitle": {
|
|
55084
|
+
"type": "string",
|
|
55085
|
+
"description": "Title of the external link",
|
|
55086
|
+
"minLength": 2,
|
|
55087
|
+
"maxLength": 128
|
|
55088
|
+
},
|
|
55089
|
+
"SiteExternalLinkDescription": {
|
|
55090
|
+
"type": "string",
|
|
55091
|
+
"description": "Description of the external link",
|
|
55092
|
+
"minLength": 0,
|
|
55093
|
+
"maxLength": 256
|
|
55094
|
+
},
|
|
55095
|
+
"GitSyncSiteStructureExternalLink": {
|
|
55096
|
+
"type": "object",
|
|
55097
|
+
"additionalProperties": false,
|
|
55098
|
+
"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",
|
|
55099
|
+
"properties": {
|
|
55100
|
+
"type": {
|
|
55101
|
+
"type": "string",
|
|
55102
|
+
"enum": [
|
|
55103
|
+
"external-link"
|
|
55104
|
+
],
|
|
55105
|
+
"description": "Discriminator for an external link node."
|
|
55106
|
+
},
|
|
55107
|
+
"key": {
|
|
55108
|
+
"type": "string",
|
|
55109
|
+
"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",
|
|
55110
|
+
"minLength": 1
|
|
55111
|
+
},
|
|
55112
|
+
"title": {
|
|
55113
|
+
"$ref": "#/components/schemas/SiteExternalLinkTitle"
|
|
55114
|
+
},
|
|
55115
|
+
"localizedTitle": {
|
|
55116
|
+
"$ref": "#/components/schemas/LocalizedString128"
|
|
55117
|
+
},
|
|
55118
|
+
"description": {
|
|
55119
|
+
"$ref": "#/components/schemas/SiteExternalLinkDescription"
|
|
55120
|
+
},
|
|
55121
|
+
"localizedDescription": {
|
|
55122
|
+
"$ref": "#/components/schemas/LocalizedString256"
|
|
55123
|
+
},
|
|
55124
|
+
"icon": {
|
|
55125
|
+
"$ref": "#/components/schemas/Icon"
|
|
55126
|
+
},
|
|
55127
|
+
"url": {
|
|
55128
|
+
"$ref": "#/components/schemas/URL",
|
|
55129
|
+
"description": "Absolute HTTP or HTTPS URL opened by the external link."
|
|
55130
|
+
},
|
|
55131
|
+
"draft": {
|
|
55132
|
+
"type": "boolean",
|
|
55133
|
+
"description": "Whether the external link is draft and not live."
|
|
55134
|
+
},
|
|
55135
|
+
"condition": {
|
|
55136
|
+
"$ref": "#/components/schemas/Expression"
|
|
55137
|
+
}
|
|
55138
|
+
},
|
|
55139
|
+
"required": [
|
|
55140
|
+
"type",
|
|
55141
|
+
"key",
|
|
55142
|
+
"title",
|
|
55143
|
+
"url"
|
|
55144
|
+
]
|
|
55145
|
+
},
|
|
54644
55146
|
"GitSyncSiteStructureNode": {
|
|
54645
|
-
"description": "A single node in a Git Sync site structure tree — a section group, a\nsection,
|
|
55147
|
+
"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
55148
|
"oneOf": [
|
|
54647
55149
|
{
|
|
54648
55150
|
"$ref": "#/components/schemas/GitSyncSiteStructureSectionGroup"
|
|
@@ -54652,12 +55154,15 @@
|
|
|
54652
55154
|
},
|
|
54653
55155
|
{
|
|
54654
55156
|
"$ref": "#/components/schemas/GitSyncSiteStructureSpace"
|
|
55157
|
+
},
|
|
55158
|
+
{
|
|
55159
|
+
"$ref": "#/components/schemas/GitSyncSiteStructureExternalLink"
|
|
54655
55160
|
}
|
|
54656
55161
|
]
|
|
54657
55162
|
},
|
|
54658
55163
|
"GitSyncSiteStructure": {
|
|
54659
55164
|
"type": "array",
|
|
54660
|
-
"description": "Hierarchical structure of a site in a Git Sync YAML. Each entry is one of\
|
|
55165
|
+
"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
55166
|
"items": {
|
|
54662
55167
|
"$ref": "#/components/schemas/GitSyncSiteStructureNode"
|
|
54663
55168
|
}
|
|
@@ -57086,6 +57591,16 @@
|
|
|
57086
57591
|
"spaceId"
|
|
57087
57592
|
]
|
|
57088
57593
|
},
|
|
57594
|
+
"AgentEditScope": {
|
|
57595
|
+
"type": "string",
|
|
57596
|
+
"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",
|
|
57597
|
+
"enum": [
|
|
57598
|
+
"all",
|
|
57599
|
+
"read-only",
|
|
57600
|
+
"current-page",
|
|
57601
|
+
"modified-pages"
|
|
57602
|
+
]
|
|
57603
|
+
},
|
|
57089
57604
|
"AgentState": {
|
|
57090
57605
|
"type": "object",
|
|
57091
57606
|
"properties": {
|
|
@@ -57124,6 +57639,14 @@
|
|
|
57124
57639
|
"editTarget": {
|
|
57125
57640
|
"$ref": "#/components/schemas/AgentEditTarget",
|
|
57126
57641
|
"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"
|
|
57642
|
+
},
|
|
57643
|
+
"editScope": {
|
|
57644
|
+
"$ref": "#/components/schemas/AgentEditScope",
|
|
57645
|
+
"description": "How far this conversation should reach when it changes content.\n"
|
|
57646
|
+
},
|
|
57647
|
+
"consultOnly": {
|
|
57648
|
+
"type": "boolean",
|
|
57649
|
+
"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
57650
|
}
|
|
57128
57651
|
},
|
|
57129
57652
|
"required": [
|