@gitbook/api 0.198.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/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",
@@ -12078,6 +12087,184 @@
12078
12087
  }
12079
12088
  }
12080
12089
  },
12090
+ "/orgs/{organizationId}/agent/conversations": {
12091
+ "get": {
12092
+ "operationId": "listOrganizationAgentConversations",
12093
+ "summary": "List AI agent conversations in an organization",
12094
+ "description": "Returns a paginated list of the calling user's AI agent conversations with the organization agent. Unlike change request conversations, these are not tied to a single change request: the agent works across the organization and only attaches a change request when it needs to edit content. A conversation belongs to the user who started it and is never visible to anyone else.",
12095
+ "x-gitbook-mcp": true,
12096
+ "tags": [
12097
+ "organizations",
12098
+ "agents"
12099
+ ],
12100
+ "security": [
12101
+ {
12102
+ "user": []
12103
+ },
12104
+ {
12105
+ "oauth": [
12106
+ "organization:read"
12107
+ ]
12108
+ }
12109
+ ],
12110
+ "parameters": [
12111
+ {
12112
+ "$ref": "#/components/parameters/organizationId"
12113
+ },
12114
+ {
12115
+ "$ref": "#/components/parameters/listPage"
12116
+ },
12117
+ {
12118
+ "$ref": "#/components/parameters/listLimit"
12119
+ }
12120
+ ],
12121
+ "responses": {
12122
+ "200": {
12123
+ "description": "A list of agent conversations",
12124
+ "content": {
12125
+ "application/json": {
12126
+ "schema": {
12127
+ "allOf": [
12128
+ {
12129
+ "$ref": "#/components/schemas/List"
12130
+ },
12131
+ {
12132
+ "type": "object",
12133
+ "required": [
12134
+ "items"
12135
+ ],
12136
+ "properties": {
12137
+ "items": {
12138
+ "type": "array",
12139
+ "items": {
12140
+ "$ref": "#/components/schemas/AgentConversation"
12141
+ }
12142
+ }
12143
+ }
12144
+ }
12145
+ ]
12146
+ }
12147
+ }
12148
+ }
12149
+ }
12150
+ }
12151
+ }
12152
+ },
12153
+ "/orgs/{organizationId}/agent/conversations/{conversationId}": {
12154
+ "put": {
12155
+ "operationId": "provisionOrganizationAgentConversation",
12156
+ "summary": "Provision an AI agent conversation in an organization",
12157
+ "description": "Prepares a conversation so the client can connect to it, giving the agent the credentials it acts with. Call this before opening a conversation; connecting to one that was never provisioned yields an agent whose tools all fail. The conversation itself is only recorded once the user sends a first message, so opening the agent and closing it again leaves nothing behind. Safe to call again to refresh an expiring session.",
12158
+ "tags": [
12159
+ "organizations",
12160
+ "agents"
12161
+ ],
12162
+ "security": [
12163
+ {
12164
+ "user": []
12165
+ }
12166
+ ],
12167
+ "parameters": [
12168
+ {
12169
+ "$ref": "#/components/parameters/organizationId"
12170
+ },
12171
+ {
12172
+ "$ref": "#/components/parameters/conversationId"
12173
+ }
12174
+ ],
12175
+ "responses": {
12176
+ "204": {
12177
+ "description": "The conversation is ready to be connected to."
12178
+ }
12179
+ }
12180
+ },
12181
+ "patch": {
12182
+ "operationId": "updateOrganizationAgentConversation",
12183
+ "summary": "Update an AI agent conversation in an organization",
12184
+ "description": "Updates one of the calling user's conversations with the organization agent. Use this to rename it.",
12185
+ "x-gitbook-mcp": true,
12186
+ "tags": [
12187
+ "organizations",
12188
+ "agents"
12189
+ ],
12190
+ "security": [
12191
+ {
12192
+ "user": []
12193
+ },
12194
+ {
12195
+ "oauth": [
12196
+ "organization:write"
12197
+ ]
12198
+ }
12199
+ ],
12200
+ "parameters": [
12201
+ {
12202
+ "$ref": "#/components/parameters/organizationId"
12203
+ },
12204
+ {
12205
+ "$ref": "#/components/parameters/conversationId"
12206
+ }
12207
+ ],
12208
+ "requestBody": {
12209
+ "required": true,
12210
+ "content": {
12211
+ "application/json": {
12212
+ "schema": {
12213
+ "type": "object",
12214
+ "required": [
12215
+ "title"
12216
+ ],
12217
+ "properties": {
12218
+ "title": {
12219
+ "type": "string",
12220
+ "description": "The new title of the conversation."
12221
+ }
12222
+ }
12223
+ }
12224
+ }
12225
+ }
12226
+ },
12227
+ "responses": {
12228
+ "200": {
12229
+ "description": "The updated conversation.",
12230
+ "content": {
12231
+ "application/json": {
12232
+ "schema": {
12233
+ "$ref": "#/components/schemas/AgentConversation"
12234
+ }
12235
+ }
12236
+ }
12237
+ }
12238
+ }
12239
+ },
12240
+ "delete": {
12241
+ "operationId": "deleteOrganizationAgentConversation",
12242
+ "summary": "Delete an agent conversation in an organization",
12243
+ "description": "Deletes one of the calling user's conversations with the organization agent, destroying the messages it holds. This cannot be undone.",
12244
+ "tags": [
12245
+ "organizations",
12246
+ "agents"
12247
+ ],
12248
+ "security": [
12249
+ {
12250
+ "user": []
12251
+ }
12252
+ ],
12253
+ "parameters": [
12254
+ {
12255
+ "$ref": "#/components/parameters/organizationId"
12256
+ },
12257
+ {
12258
+ "$ref": "#/components/parameters/conversationId"
12259
+ }
12260
+ ],
12261
+ "responses": {
12262
+ "205": {
12263
+ "description": "The conversation has been deleted."
12264
+ }
12265
+ }
12266
+ }
12267
+ },
12081
12268
  "/orgs/{organizationId}/translations": {
12082
12269
  "get": {
12083
12270
  "operationId": "listTranslations",
@@ -16545,7 +16732,9 @@
16545
16732
  "/orgs/{organizationId}/sites/{siteId}/findings": {
16546
16733
  "get": {
16547
16734
  "operationId": "listSiteFindings",
16548
- "summary": "List all site context findings",
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,
16549
16738
  "tags": [
16550
16739
  "site-context"
16551
16740
  ],
@@ -16703,7 +16892,9 @@
16703
16892
  "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}": {
16704
16893
  "get": {
16705
16894
  "operationId": "getSiteFindingById",
16706
- "summary": "Get a site finding by ID",
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,
16707
16898
  "tags": [
16708
16899
  "site-context"
16709
16900
  ],
@@ -16743,7 +16934,9 @@
16743
16934
  },
16744
16935
  "patch": {
16745
16936
  "operationId": "updateSiteFindingById",
16746
- "summary": "Update a site finding",
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,
16747
16940
  "tags": [
16748
16941
  "site-context"
16749
16942
  ],
@@ -16803,7 +16996,9 @@
16803
16996
  "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests": {
16804
16997
  "get": {
16805
16998
  "operationId": "listChangeRequestsForSiteFinding",
16806
- "summary": "List change requests linked to a site finding",
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,
16807
17002
  "tags": [
16808
17003
  "site-context"
16809
17004
  ],
@@ -16867,7 +17062,9 @@
16867
17062
  },
16868
17063
  "post": {
16869
17064
  "operationId": "triggerChangeRequestsForSiteFinding",
16870
- "summary": "Process a site finding into change requests",
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,
16871
17068
  "tags": [
16872
17069
  "site-context"
16873
17070
  ],
@@ -16902,7 +17099,9 @@
16902
17099
  "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages": {
16903
17100
  "get": {
16904
17101
  "operationId": "listPagesForSiteFinding",
16905
- "summary": "List pages linked to a site finding",
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,
16906
17105
  "tags": [
16907
17106
  "site-context"
16908
17107
  ],
@@ -16968,7 +17167,9 @@
16968
17167
  "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions": {
16969
17168
  "get": {
16970
17169
  "operationId": "listQuestionsForSiteFinding",
16971
- "summary": "List questions linked to a site finding",
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,
16972
17173
  "tags": [
16973
17174
  "site-context"
16974
17175
  ],
@@ -17034,7 +17235,9 @@
17034
17235
  "/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records": {
17035
17236
  "get": {
17036
17237
  "operationId": "listRecordsForSiteFinding",
17037
- "summary": "List records linked to a site finding",
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,
17038
17241
  "tags": [
17039
17242
  "site-context"
17040
17243
  ],
@@ -17100,8 +17303,9 @@
17100
17303
  "/orgs/{organizationId}/sites/{siteId}/stats/findings": {
17101
17304
  "get": {
17102
17305
  "operationId": "getSiteFindingStats",
17103
- "summary": "Get aggregate statistics about the findings identified on a site",
17104
- "description": "Returns aggregate statistics about the findings GitBook identified on a site — how many were found, how they break down by status and severity, which connectors surfaced them, and how many change requests created to fix them have been merged. Accepts the same filters as the finding list endpoint, so the stats can follow the list the user is looking at. Use it for a high-level view before drilling into individual findings.",
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,
17105
17309
  "tags": [
17106
17310
  "site-context"
17107
17311
  ],
@@ -17722,7 +17926,9 @@
17722
17926
  "/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings": {
17723
17927
  "delete": {
17724
17928
  "operationId": "deleteSiteTopicFindings",
17725
- "summary": "Delete all findings for a topic",
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,
17726
17932
  "tags": [
17727
17933
  "site-context"
17728
17934
  ],
@@ -20304,6 +20510,153 @@
20304
20510
  }
20305
20511
  }
20306
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
+ },
20307
20660
  "/orgs/{organizationId}/sites/{siteId}/insights/events": {
20308
20661
  "post": {
20309
20662
  "operationId": "trackEventsInSiteById",
@@ -20548,6 +20901,11 @@
20548
20901
  "default": false,
20549
20902
  "description": "Whether the redirect is draft and not live."
20550
20903
  },
20904
+ "permanent": {
20905
+ "type": "boolean",
20906
+ "default": false,
20907
+ "description": "Whether the redirect is permanent for public live traffic."
20908
+ },
20551
20909
  "destination": {
20552
20910
  "$ref": "#/components/schemas/SiteRedirectInputDestination"
20553
20911
  }
@@ -20651,6 +21009,10 @@
20651
21009
  "default": false,
20652
21010
  "description": "Capture and append the wildcard-matched suffix to the destination URL."
20653
21011
  },
21012
+ "permanent": {
21013
+ "type": "boolean",
21014
+ "description": "Whether the redirect is permanent for public live traffic."
21015
+ },
20654
21016
  "destination": {
20655
21017
  "description": "If set to null, the redirect matching the source+intent target will be deleted.",
20656
21018
  "oneOf": [
@@ -20981,6 +21343,10 @@
20981
21343
  "type": "boolean",
20982
21344
  "description": "When true, it can be used to promote a draft redirect to live."
20983
21345
  },
21346
+ "permanent": {
21347
+ "type": "boolean",
21348
+ "description": "Whether the redirect is permanent for public live traffic."
21349
+ },
20984
21350
  "destination": {
20985
21351
  "$ref": "#/components/schemas/SiteRedirectDestination"
20986
21352
  }
@@ -26976,166 +27342,6 @@
26976
27342
  "isVoid"
26977
27343
  ]
26978
27344
  },
26979
- "DocumentBlockHint": {
26980
- "type": "object",
26981
- "properties": {
26982
- "object": {
26983
- "type": "string",
26984
- "enum": [
26985
- "block"
26986
- ]
26987
- },
26988
- "type": {
26989
- "type": "string",
26990
- "enum": [
26991
- "hint"
26992
- ]
26993
- },
26994
- "key": {
26995
- "type": "string"
26996
- },
26997
- "data": {
26998
- "type": "object",
26999
- "properties": {
27000
- "style": {
27001
- "type": "string",
27002
- "enum": [
27003
- "info",
27004
- "warning",
27005
- "danger",
27006
- "success"
27007
- ]
27008
- },
27009
- "icon": {
27010
- "$ref": "#/components/schemas/Icon"
27011
- }
27012
- },
27013
- "required": [
27014
- "style"
27015
- ]
27016
- },
27017
- "nodes": {
27018
- "type": "array",
27019
- "items": {
27020
- "oneOf": [
27021
- {
27022
- "$ref": "#/components/schemas/DocumentBlocksEssentials"
27023
- },
27024
- {
27025
- "$ref": "#/components/schemas/DocumentBlockEmbed"
27026
- },
27027
- {
27028
- "$ref": "#/components/schemas/DocumentBlockIntegration"
27029
- }
27030
- ]
27031
- }
27032
- },
27033
- "isVoid": {
27034
- "type": "boolean",
27035
- "enum": [
27036
- false
27037
- ]
27038
- }
27039
- },
27040
- "required": [
27041
- "object",
27042
- "type",
27043
- "data",
27044
- "nodes"
27045
- ]
27046
- },
27047
- "DocumentBlockQuote": {
27048
- "type": "object",
27049
- "properties": {
27050
- "object": {
27051
- "type": "string",
27052
- "enum": [
27053
- "block"
27054
- ]
27055
- },
27056
- "type": {
27057
- "type": "string",
27058
- "enum": [
27059
- "blockquote"
27060
- ]
27061
- },
27062
- "key": {
27063
- "type": "string"
27064
- },
27065
- "nodes": {
27066
- "type": "array",
27067
- "items": {
27068
- "oneOf": [
27069
- {
27070
- "$ref": "#/components/schemas/DocumentBlocksEssentials"
27071
- },
27072
- {
27073
- "$ref": "#/components/schemas/DocumentBlockQuote"
27074
- }
27075
- ]
27076
- }
27077
- },
27078
- "isVoid": {
27079
- "type": "boolean",
27080
- "enum": [
27081
- false
27082
- ]
27083
- },
27084
- "data": {
27085
- "type": "object",
27086
- "properties": {},
27087
- "additionalProperties": false
27088
- }
27089
- },
27090
- "required": [
27091
- "object",
27092
- "type",
27093
- "nodes"
27094
- ]
27095
- },
27096
- "DocumentBlockMath": {
27097
- "type": "object",
27098
- "properties": {
27099
- "object": {
27100
- "type": "string",
27101
- "enum": [
27102
- "block"
27103
- ]
27104
- },
27105
- "type": {
27106
- "type": "string",
27107
- "enum": [
27108
- "math"
27109
- ]
27110
- },
27111
- "key": {
27112
- "type": "string"
27113
- },
27114
- "data": {
27115
- "type": "object",
27116
- "properties": {
27117
- "formula": {
27118
- "type": "string"
27119
- }
27120
- },
27121
- "required": [
27122
- "formula"
27123
- ]
27124
- },
27125
- "isVoid": {
27126
- "type": "boolean",
27127
- "enum": [
27128
- true
27129
- ]
27130
- }
27131
- },
27132
- "required": [
27133
- "object",
27134
- "type",
27135
- "data",
27136
- "isVoid"
27137
- ]
27138
- },
27139
27345
  "DocumentTableViewGrid": {
27140
27346
  "type": "object",
27141
27347
  "properties": {
@@ -27615,6 +27821,47 @@
27615
27821
  }
27616
27822
  ]
27617
27823
  },
27824
+ "DocumentTableCellSpan": {
27825
+ "description": "Number of rows or columns covered by a table cell merge",
27826
+ "type": "integer",
27827
+ "minimum": 1,
27828
+ "maximum": 50
27829
+ },
27830
+ "DocumentTableCellMerge": {
27831
+ "description": "Positional table cell merge range. The anchor and spans are resolved against the current sorted record order and visible column order. The current document model applies only non-overlapping horizontal or vertical merges of adjacent Text or Number body cells; unsupported ranges are removed during normalization.",
27832
+ "type": "object",
27833
+ "properties": {
27834
+ "anchor": {
27835
+ "type": "object",
27836
+ "description": "Cell at the top-left of the merged range",
27837
+ "properties": {
27838
+ "record": {
27839
+ "type": "string",
27840
+ "description": "ID of the anchor record"
27841
+ },
27842
+ "column": {
27843
+ "type": "string",
27844
+ "description": "ID of the anchor column"
27845
+ }
27846
+ },
27847
+ "required": [
27848
+ "record",
27849
+ "column"
27850
+ ]
27851
+ },
27852
+ "rowSpan": {
27853
+ "$ref": "#/components/schemas/DocumentTableCellSpan"
27854
+ },
27855
+ "colSpan": {
27856
+ "$ref": "#/components/schemas/DocumentTableCellSpan"
27857
+ }
27858
+ },
27859
+ "required": [
27860
+ "anchor",
27861
+ "rowSpan",
27862
+ "colSpan"
27863
+ ]
27864
+ },
27618
27865
  "DocumentFragment": {
27619
27866
  "type": "object",
27620
27867
  "properties": {
@@ -27694,6 +27941,13 @@
27694
27941
  "$ref": "#/components/schemas/DocumentTableDefinition"
27695
27942
  }
27696
27943
  },
27944
+ "cellMerges": {
27945
+ "type": "array",
27946
+ "description": "Positional table cell merge ranges. The current document model retains only non-overlapping horizontal or vertical merges between adjacent Text or Number body cells. Anchors and spans are resolved against the table's current sorted record order and visible column order.",
27947
+ "items": {
27948
+ "$ref": "#/components/schemas/DocumentTableCellMerge"
27949
+ }
27950
+ },
27697
27951
  "fullWidth": {
27698
27952
  "type": "boolean",
27699
27953
  "description": "Whether to render the block as a full width one"
@@ -27724,7 +27978,7 @@
27724
27978
  "fragments"
27725
27979
  ]
27726
27980
  },
27727
- "DocumentBlockListItem": {
27981
+ "DocumentBlockHint": {
27728
27982
  "type": "object",
27729
27983
  "properties": {
27730
27984
  "object": {
@@ -27736,12 +27990,32 @@
27736
27990
  "type": {
27737
27991
  "type": "string",
27738
27992
  "enum": [
27739
- "list-item"
27993
+ "hint"
27740
27994
  ]
27741
27995
  },
27742
27996
  "key": {
27743
27997
  "type": "string"
27744
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
+ },
27745
28019
  "nodes": {
27746
28020
  "type": "array",
27747
28021
  "items": {
@@ -27750,16 +28024,10 @@
27750
28024
  "$ref": "#/components/schemas/DocumentBlocksEssentials"
27751
28025
  },
27752
28026
  {
27753
- "$ref": "#/components/schemas/DocumentBlockCode"
27754
- },
27755
- {
27756
- "$ref": "#/components/schemas/DocumentBlockHint"
27757
- },
27758
- {
27759
- "$ref": "#/components/schemas/DocumentBlockQuote"
28027
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
27760
28028
  },
27761
28029
  {
27762
- "$ref": "#/components/schemas/DocumentBlockMath"
28030
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
27763
28031
  },
27764
28032
  {
27765
28033
  "$ref": "#/components/schemas/DocumentBlockTable"
@@ -27767,64 +28035,6 @@
27767
28035
  ]
27768
28036
  }
27769
28037
  },
27770
- "isVoid": {
27771
- "type": "boolean",
27772
- "enum": [
27773
- false
27774
- ]
27775
- },
27776
- "data": {
27777
- "type": "object",
27778
- "properties": {
27779
- "checked": {
27780
- "type": "boolean"
27781
- }
27782
- }
27783
- }
27784
- },
27785
- "required": [
27786
- "object",
27787
- "type",
27788
- "nodes"
27789
- ]
27790
- },
27791
- "DocumentBlockListOrdered": {
27792
- "type": "object",
27793
- "properties": {
27794
- "object": {
27795
- "type": "string",
27796
- "enum": [
27797
- "block"
27798
- ]
27799
- },
27800
- "type": {
27801
- "type": "string",
27802
- "enum": [
27803
- "list-ordered"
27804
- ]
27805
- },
27806
- "key": {
27807
- "type": "string"
27808
- },
27809
- "data": {
27810
- "type": "object",
27811
- "properties": {
27812
- "start": {
27813
- "type": "number",
27814
- "description": "An integer to start counting from for the list items."
27815
- }
27816
- }
27817
- },
27818
- "nodes": {
27819
- "type": "array",
27820
- "items": {
27821
- "oneOf": [
27822
- {
27823
- "$ref": "#/components/schemas/DocumentBlockListItem"
27824
- }
27825
- ]
27826
- }
27827
- },
27828
28038
  "isVoid": {
27829
28039
  "type": "boolean",
27830
28040
  "enum": [
@@ -27839,7 +28049,7 @@
27839
28049
  "nodes"
27840
28050
  ]
27841
28051
  },
27842
- "DocumentBlockListUnordered": {
28052
+ "DocumentBlockQuote": {
27843
28053
  "type": "object",
27844
28054
  "properties": {
27845
28055
  "object": {
@@ -27851,7 +28061,7 @@
27851
28061
  "type": {
27852
28062
  "type": "string",
27853
28063
  "enum": [
27854
- "list-unordered"
28064
+ "blockquote"
27855
28065
  ]
27856
28066
  },
27857
28067
  "key": {
@@ -27862,52 +28072,259 @@
27862
28072
  "items": {
27863
28073
  "oneOf": [
27864
28074
  {
27865
- "$ref": "#/components/schemas/DocumentBlockListItem"
27866
- }
27867
- ]
27868
- }
27869
- },
27870
- "data": {
27871
- "type": "object",
27872
- "additionalProperties": false
27873
- },
27874
- "isVoid": {
27875
- "type": "boolean",
27876
- "enum": [
27877
- false
27878
- ]
27879
- }
27880
- },
27881
- "required": [
27882
- "object",
27883
- "type",
27884
- "nodes"
27885
- ]
27886
- },
27887
- "DocumentBlockListTasks": {
27888
- "type": "object",
27889
- "properties": {
27890
- "object": {
27891
- "type": "string",
27892
- "enum": [
27893
- "block"
27894
- ]
27895
- },
27896
- "type": {
27897
- "type": "string",
27898
- "enum": [
27899
- "list-tasks"
27900
- ]
27901
- },
27902
- "key": {
27903
- "type": "string"
27904
- },
27905
- "nodes": {
27906
- "type": "array",
27907
- "items": {
27908
- "oneOf": [
28075
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
28076
+ },
27909
28077
  {
27910
- "$ref": "#/components/schemas/DocumentBlockListItem"
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
+ },
28144
+ "DocumentBlockListItem": {
28145
+ "type": "object",
28146
+ "properties": {
28147
+ "object": {
28148
+ "type": "string",
28149
+ "enum": [
28150
+ "block"
28151
+ ]
28152
+ },
28153
+ "type": {
28154
+ "type": "string",
28155
+ "enum": [
28156
+ "list-item"
28157
+ ]
28158
+ },
28159
+ "key": {
28160
+ "type": "string"
28161
+ },
28162
+ "nodes": {
28163
+ "type": "array",
28164
+ "items": {
28165
+ "oneOf": [
28166
+ {
28167
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
28168
+ },
28169
+ {
28170
+ "$ref": "#/components/schemas/DocumentBlockCode"
28171
+ },
28172
+ {
28173
+ "$ref": "#/components/schemas/DocumentBlockHint"
28174
+ },
28175
+ {
28176
+ "$ref": "#/components/schemas/DocumentBlockQuote"
28177
+ },
28178
+ {
28179
+ "$ref": "#/components/schemas/DocumentBlockMath"
28180
+ },
28181
+ {
28182
+ "$ref": "#/components/schemas/DocumentBlockTable"
28183
+ }
28184
+ ]
28185
+ }
28186
+ },
28187
+ "isVoid": {
28188
+ "type": "boolean",
28189
+ "enum": [
28190
+ false
28191
+ ]
28192
+ },
28193
+ "data": {
28194
+ "type": "object",
28195
+ "properties": {
28196
+ "checked": {
28197
+ "type": "boolean"
28198
+ }
28199
+ }
28200
+ }
28201
+ },
28202
+ "required": [
28203
+ "object",
28204
+ "type",
28205
+ "nodes"
28206
+ ]
28207
+ },
28208
+ "DocumentBlockListOrdered": {
28209
+ "type": "object",
28210
+ "properties": {
28211
+ "object": {
28212
+ "type": "string",
28213
+ "enum": [
28214
+ "block"
28215
+ ]
28216
+ },
28217
+ "type": {
28218
+ "type": "string",
28219
+ "enum": [
28220
+ "list-ordered"
28221
+ ]
28222
+ },
28223
+ "key": {
28224
+ "type": "string"
28225
+ },
28226
+ "data": {
28227
+ "type": "object",
28228
+ "properties": {
28229
+ "start": {
28230
+ "type": "number",
28231
+ "description": "An integer to start counting from for the list items."
28232
+ }
28233
+ }
28234
+ },
28235
+ "nodes": {
28236
+ "type": "array",
28237
+ "items": {
28238
+ "oneOf": [
28239
+ {
28240
+ "$ref": "#/components/schemas/DocumentBlockListItem"
28241
+ }
28242
+ ]
28243
+ }
28244
+ },
28245
+ "isVoid": {
28246
+ "type": "boolean",
28247
+ "enum": [
28248
+ false
28249
+ ]
28250
+ }
28251
+ },
28252
+ "required": [
28253
+ "object",
28254
+ "type",
28255
+ "data",
28256
+ "nodes"
28257
+ ]
28258
+ },
28259
+ "DocumentBlockListUnordered": {
28260
+ "type": "object",
28261
+ "properties": {
28262
+ "object": {
28263
+ "type": "string",
28264
+ "enum": [
28265
+ "block"
28266
+ ]
28267
+ },
28268
+ "type": {
28269
+ "type": "string",
28270
+ "enum": [
28271
+ "list-unordered"
28272
+ ]
28273
+ },
28274
+ "key": {
28275
+ "type": "string"
28276
+ },
28277
+ "nodes": {
28278
+ "type": "array",
28279
+ "items": {
28280
+ "oneOf": [
28281
+ {
28282
+ "$ref": "#/components/schemas/DocumentBlockListItem"
28283
+ }
28284
+ ]
28285
+ }
28286
+ },
28287
+ "data": {
28288
+ "type": "object",
28289
+ "additionalProperties": false
28290
+ },
28291
+ "isVoid": {
28292
+ "type": "boolean",
28293
+ "enum": [
28294
+ false
28295
+ ]
28296
+ }
28297
+ },
28298
+ "required": [
28299
+ "object",
28300
+ "type",
28301
+ "nodes"
28302
+ ]
28303
+ },
28304
+ "DocumentBlockListTasks": {
28305
+ "type": "object",
28306
+ "properties": {
28307
+ "object": {
28308
+ "type": "string",
28309
+ "enum": [
28310
+ "block"
28311
+ ]
28312
+ },
28313
+ "type": {
28314
+ "type": "string",
28315
+ "enum": [
28316
+ "list-tasks"
28317
+ ]
28318
+ },
28319
+ "key": {
28320
+ "type": "string"
28321
+ },
28322
+ "nodes": {
28323
+ "type": "array",
28324
+ "items": {
28325
+ "oneOf": [
28326
+ {
28327
+ "$ref": "#/components/schemas/DocumentBlockListItem"
27911
28328
  }
27912
28329
  ]
27913
28330
  }
@@ -31631,6 +32048,28 @@
31631
32048
  "topic"
31632
32049
  ]
31633
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
+ },
31634
32073
  "outdated": {
31635
32074
  "type": "boolean",
31636
32075
  "description": "If true, the change request is not up-to-date with latest changes in the main content."
@@ -32323,7 +32762,11 @@
32323
32762
  },
32324
32763
  "shared": {
32325
32764
  "type": "boolean",
32326
- "description": "Whether the conversation is shared with everyone who has access to the change request, rather than only its creator. Conversations are shared by default; a private conversation is only ever visible to its creator and stays private for good."
32765
+ "description": "Whether the conversation is shared with everyone who has access to its context, rather than only its creator. Conversations are shared by default; a private conversation is only ever visible to its creator and stays private for good."
32766
+ },
32767
+ "changeRequest": {
32768
+ "type": "string",
32769
+ "description": "The change request the conversation is currently editing in. Only set for organization agent conversations, which start without one and attach a change request the first time the agent needs to change content. Absent for change request conversations, whose change request is the conversation's context."
32327
32770
  },
32328
32771
  "createdAt": {
32329
32772
  "$ref": "#/components/schemas/Timestamp"
@@ -35899,6 +36342,13 @@
35899
36342
  },
35900
36343
  "description": "Whitelisted search parameters from the visitor authentication request."
35901
36344
  },
36345
+ "cookies": {
36346
+ "type": "object",
36347
+ "additionalProperties": {
36348
+ "type": "string"
36349
+ },
36350
+ "description": "Whitelisted cookies from the visitor authentication request."
36351
+ },
35902
36352
  "action": {
35903
36353
  "type": "string",
35904
36354
  "enum": [
@@ -39663,6 +40113,175 @@
39663
40113
  "updateSites"
39664
40114
  ]
39665
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
+ },
39666
40285
  "BillingCoupon": {
39667
40286
  "type": "string",
39668
40287
  "description": "Coupon or promotion code to apply to billing operations.",
@@ -39694,6 +40313,9 @@
39694
40313
  "type": "string",
39695
40314
  "description": "Reason that triggered the billing upgrade"
39696
40315
  },
40316
+ "cancellationFeedback": {
40317
+ "$ref": "#/components/schemas/BillingCancellationFeedback"
40318
+ },
39697
40319
  "coupon": {
39698
40320
  "$ref": "#/components/schemas/BillingCoupon",
39699
40321
  "description": "Coupon or promotion code to apply to the subscription"
@@ -46603,6 +47225,10 @@
46603
47225
  },
46604
47226
  "page": {
46605
47227
  "$ref": "#/components/schemas/ChangedRevisionPage"
47228
+ },
47229
+ "changeRequestId": {
47230
+ "type": "string",
47231
+ "description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
46606
47232
  }
46607
47233
  },
46608
47234
  "required": [
@@ -46631,6 +47257,10 @@
46631
47257
  },
46632
47258
  "page": {
46633
47259
  "$ref": "#/components/schemas/ChangedRevisionPage"
47260
+ },
47261
+ "changeRequestId": {
47262
+ "type": "string",
47263
+ "description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
46634
47264
  }
46635
47265
  },
46636
47266
  "required": [
@@ -46659,6 +47289,10 @@
46659
47289
  },
46660
47290
  "page": {
46661
47291
  "$ref": "#/components/schemas/ChangedRevisionPage"
47292
+ },
47293
+ "changeRequestId": {
47294
+ "type": "string",
47295
+ "description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
46662
47296
  }
46663
47297
  },
46664
47298
  "required": [
@@ -46688,6 +47322,10 @@
46688
47322
  "page": {
46689
47323
  "$ref": "#/components/schemas/ChangedRevisionPage"
46690
47324
  },
47325
+ "changeRequestId": {
47326
+ "type": "string",
47327
+ "description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
47328
+ },
46691
47329
  "title": {
46692
47330
  "type": "string",
46693
47331
  "description": "The new title of the page."
@@ -46721,6 +47359,10 @@
46721
47359
  "page": {
46722
47360
  "$ref": "#/components/schemas/ChangedRevisionPage"
46723
47361
  },
47362
+ "changeRequestId": {
47363
+ "type": "string",
47364
+ "description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
47365
+ },
46724
47366
  "to": {
46725
47367
  "$ref": "#/components/schemas/ChangedRevisionPage"
46726
47368
  },
@@ -47831,6 +48473,11 @@
47831
48473
  },
47832
48474
  "response": {
47833
48475
  "$ref": "#/components/schemas/AIMessageResponseMetadata"
48476
+ },
48477
+ "createdAt": {
48478
+ "type": "string",
48479
+ "format": "date-time",
48480
+ "description": "When the message was added to the conversation. Absent on messages recorded before this field existed.\n"
47834
48481
  }
47835
48482
  },
47836
48483
  "required": [
@@ -48718,6 +49365,52 @@
48718
49365
  }
48719
49366
  ]
48720
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
+ },
48721
49414
  "SiteInsightsEventSession": {
48722
49415
  "allOf": [
48723
49416
  {
@@ -48904,6 +49597,13 @@
48904
49597
  }
48905
49598
  ]
48906
49599
  },
49600
+ "SiteInsightsMarkdownSource": {
49601
+ "description": "How a page's markdown was requested. `page-action` means a reader used the site's page-actions menu — its copy or view-as-markdown action — rather than a client fetching the URL directly.",
49602
+ "type": "string",
49603
+ "enum": [
49604
+ "page-action"
49605
+ ]
49606
+ },
48907
49607
  "SiteInsightsEventPageMarkdownRequest": {
48908
49608
  "allOf": [
48909
49609
  {
@@ -48917,6 +49617,9 @@
48917
49617
  "enum": [
48918
49618
  "page_markdown_request"
48919
49619
  ]
49620
+ },
49621
+ "markdownSource": {
49622
+ "$ref": "#/components/schemas/SiteInsightsMarkdownSource"
48920
49623
  }
48921
49624
  },
48922
49625
  "required": [
@@ -49989,6 +50692,20 @@
49989
50692
  }
49990
50693
  }
49991
50694
  },
50695
+ {
50696
+ "type": "object",
50697
+ "required": [
50698
+ "column"
50699
+ ],
50700
+ "properties": {
50701
+ "column": {
50702
+ "type": "string",
50703
+ "enum": [
50704
+ "eventMarkdownSource"
50705
+ ]
50706
+ }
50707
+ }
50708
+ },
49992
50709
  {
49993
50710
  "type": "object",
49994
50711
  "required": [
@@ -50896,6 +51613,34 @@
50896
51613
  }
50897
51614
  }
50898
51615
  },
51616
+ {
51617
+ "type": "object",
51618
+ "required": [
51619
+ "column",
51620
+ "values"
51621
+ ],
51622
+ "properties": {
51623
+ "column": {
51624
+ "type": "string",
51625
+ "enum": [
51626
+ "eventMarkdownSource"
51627
+ ]
51628
+ },
51629
+ "values": {
51630
+ "type": "array",
51631
+ "items": {
51632
+ "oneOf": [
51633
+ {
51634
+ "type": "null"
51635
+ },
51636
+ {
51637
+ "$ref": "#/components/schemas/SiteInsightsMarkdownSource"
51638
+ }
51639
+ ]
51640
+ }
51641
+ }
51642
+ }
51643
+ },
50899
51644
  {
50900
51645
  "type": "object",
50901
51646
  "required": [
@@ -51868,6 +52613,10 @@
51868
52613
  "type": "boolean",
51869
52614
  "description": "Capture and append the wildcard-matched suffix to the destination URL."
51870
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
+ },
51871
52620
  "destination": {
51872
52621
  "$ref": "#/components/schemas/SiteRedirectDestination"
51873
52622
  },
@@ -51888,6 +52637,7 @@
51888
52637
  "source",
51889
52638
  "draft",
51890
52639
  "captureWildcard",
52640
+ "permanent",
51891
52641
  "destination",
51892
52642
  "createdAt"
51893
52643
  ]
@@ -54107,8 +54857,39 @@
54107
54857
  "direction",
54108
54858
  "stage",
54109
54859
  "startedAt",
54110
- "updatedAt",
54111
- "spaces"
54860
+ "updatedAt"
54861
+ ]
54862
+ },
54863
+ "GitSyncRunOperation": {
54864
+ "type": "string",
54865
+ "description": "Operation performed by a durable Git Sync run.",
54866
+ "enum": [
54867
+ "import",
54868
+ "export",
54869
+ "check",
54870
+ "merge",
54871
+ "recovery"
54872
+ ]
54873
+ },
54874
+ "GitSyncRunState": {
54875
+ "type": "string",
54876
+ "description": "Lifecycle state of a durable Git Sync run.",
54877
+ "enum": [
54878
+ "queued",
54879
+ "running",
54880
+ "success",
54881
+ "failure",
54882
+ "timeout",
54883
+ "cancelled"
54884
+ ]
54885
+ },
54886
+ "GitProviderChangeState": {
54887
+ "type": "string",
54888
+ "description": "Lifecycle state of a pull or merge request on the Git provider.",
54889
+ "enum": [
54890
+ "open",
54891
+ "closed",
54892
+ "merged"
54112
54893
  ]
54113
54894
  },
54114
54895
  "GitSyncSiteStructureSectionGroup": {
@@ -54143,7 +54924,7 @@
54143
54924
  },
54144
54925
  "children": {
54145
54926
  "type": "array",
54146
- "description": "Section or section group nodes nested under this group.",
54927
+ "description": "Section, section group, or external link nodes nested under this group.",
54147
54928
  "items": {
54148
54929
  "oneOf": [
54149
54930
  {
@@ -54151,6 +54932,9 @@
54151
54932
  },
54152
54933
  {
54153
54934
  "$ref": "#/components/schemas/GitSyncSiteStructureSection"
54935
+ },
54936
+ {
54937
+ "$ref": "#/components/schemas/GitSyncSiteStructureExternalLink"
54154
54938
  }
54155
54939
  ]
54156
54940
  }
@@ -54296,8 +55080,71 @@
54296
55080
  "path"
54297
55081
  ]
54298
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
+ },
54299
55146
  "GitSyncSiteStructureNode": {
54300
- "description": "A single node in a Git Sync site structure tree — a section group, a\nsection, or a space, discriminated by `type`.\n",
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",
54301
55148
  "oneOf": [
54302
55149
  {
54303
55150
  "$ref": "#/components/schemas/GitSyncSiteStructureSectionGroup"
@@ -54307,12 +55154,15 @@
54307
55154
  },
54308
55155
  {
54309
55156
  "$ref": "#/components/schemas/GitSyncSiteStructureSpace"
55157
+ },
55158
+ {
55159
+ "$ref": "#/components/schemas/GitSyncSiteStructureExternalLink"
54310
55160
  }
54311
55161
  ]
54312
55162
  },
54313
55163
  "GitSyncSiteStructure": {
54314
55164
  "type": "array",
54315
- "description": "Hierarchical structure of a site in a Git Sync YAML. Each entry is one of\nthree node types: a section group, a section, or a space.\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. A site either uses sections or lists its\nspaces at the top level, never 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, or one\n further level of section groups — nothing nests deeper than that.\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",
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",
54316
55166
  "items": {
54317
55167
  "$ref": "#/components/schemas/GitSyncSiteStructureNode"
54318
55168
  }
@@ -56632,6 +57482,29 @@
56632
57482
  "errored"
56633
57483
  ]
56634
57484
  },
57485
+ "AgentQueuedMessage": {
57486
+ "type": "object",
57487
+ "description": "A message waiting for the agent's current response to finish, held in the order it will be processed. The identifier addresses the entry to remove it from the queue or run it immediately.\n",
57488
+ "properties": {
57489
+ "id": {
57490
+ "type": "string",
57491
+ "description": "Identifier of the queue entry, unique within the conversation."
57492
+ },
57493
+ "message": {
57494
+ "$ref": "#/components/schemas/AIMessageInput"
57495
+ },
57496
+ "queuedAt": {
57497
+ "type": "string",
57498
+ "format": "date-time",
57499
+ "description": "When the message entered the queue."
57500
+ }
57501
+ },
57502
+ "required": [
57503
+ "id",
57504
+ "message",
57505
+ "queuedAt"
57506
+ ]
57507
+ },
56635
57508
  "AgentActivity": {
56636
57509
  "type": "object",
56637
57510
  "description": "Describes what the agent is currently doing while processing, used to display a live activity indicator in the conversation.\n",
@@ -56648,6 +57521,10 @@
56648
57521
  "tool": {
56649
57522
  "type": "string",
56650
57523
  "description": "When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`).\n"
57524
+ },
57525
+ "label": {
57526
+ "type": "string",
57527
+ "description": "What to show the user instead of a label derived from `tool`, for a tool whose name means nothing to them — an MCP server's, say, where it reads \"Searching documentation\".\n"
56651
57528
  }
56652
57529
  },
56653
57530
  "required": [
@@ -56697,6 +57574,33 @@
56697
57574
  "options"
56698
57575
  ]
56699
57576
  },
57577
+ "AgentEditTarget": {
57578
+ "type": "object",
57579
+ "description": "Where the agent's content edits land. Usually a change request, which is how published content is changed; a space whose live edits are unlocked is the exception, and is edited in place. Carries identifiers only: the client resolves the change request's number and subject, or the space's title, through the API.\n",
57580
+ "properties": {
57581
+ "spaceId": {
57582
+ "type": "string",
57583
+ "description": "The ID of the space the edits are made in."
57584
+ },
57585
+ "changeRequestId": {
57586
+ "type": "string",
57587
+ "description": "The ID of the change request the edits are made in. Absent when the space itself is the target, through its unlocked live edits.\n"
57588
+ }
57589
+ },
57590
+ "required": [
57591
+ "spaceId"
57592
+ ]
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
+ },
56700
57604
  "AgentState": {
56701
57605
  "type": "object",
56702
57606
  "properties": {
@@ -56712,11 +57616,18 @@
56712
57616
  },
56713
57617
  "queuedMessages": {
56714
57618
  "type": "array",
56715
- "description": "List of messages sent by the users queued to processed.",
57619
+ "description": "List of messages sent by the users queued to processed. Superseded by `queue`, which carries the same messages with the identifiers needed to act on them; kept for compatibility with clients that predate it.\n",
56716
57620
  "items": {
56717
57621
  "$ref": "#/components/schemas/AIMessageInput"
56718
57622
  }
56719
57623
  },
57624
+ "queue": {
57625
+ "type": "array",
57626
+ "description": "Messages waiting for the current response to finish, in the order they will be processed.\n",
57627
+ "items": {
57628
+ "$ref": "#/components/schemas/AgentQueuedMessage"
57629
+ }
57630
+ },
56720
57631
  "activity": {
56721
57632
  "$ref": "#/components/schemas/AgentActivity",
56722
57633
  "description": "What the agent is currently doing. Only set while the agent is processing.\n"
@@ -56724,6 +57635,18 @@
56724
57635
  "pendingQuestion": {
56725
57636
  "$ref": "#/components/schemas/AgentPendingQuestion",
56726
57637
  "description": "A question the agent is waiting for the user to answer. While set, the client replaces the prompt with a choice control.\n"
57638
+ },
57639
+ "editTarget": {
57640
+ "$ref": "#/components/schemas/AgentEditTarget",
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"
56727
57650
  }
56728
57651
  },
56729
57652
  "required": [