@gitbook/api 0.202.0 → 0.204.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
@@ -74,6 +74,14 @@
74
74
  "x-page-description": "Manage your published docs sites.",
75
75
  "description": "The Docs Sites API lets you programmatically manage published documentation sites within your organization. You can list and update all sites created under a specific organization, making it easy to audit or interact with site metadata at scale.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"Site\" grouped=\"false\" %}\n The Site object\n{% endopenapi-schemas %}\n"
76
76
  },
77
+ {
78
+ "name": "site-change-requests",
79
+ "x-page-icon": "code-pull-request",
80
+ "x-page-title": "Site change requests",
81
+ "x-page-description": "Review and collaborate on proposed changes to a site before merging.",
82
+ "x-parent": "sites",
83
+ "description": "A site change request groups changes to a site's structure and to the content of any number of its spaces into one review, with a single lifecycle and a single merge decision.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteChangeRequest\" grouped=\"false\" %}\n The SiteChangeRequest object\n{% endopenapi-schemas %}\n"
84
+ },
77
85
  {
78
86
  "name": "site-share-links",
79
87
  "x-page-title": "Site share links",
@@ -2289,7 +2297,7 @@
2289
2297
  "post": {
2290
2298
  "operationId": "createChangeRequest",
2291
2299
  "summary": "Create a new change request in a space",
2292
- "description": "Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready.",
2300
+ "description": "Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready. When the change request fixes a documentation issue found by GitBook, pass its `siteFindingId` so that merging the change request resolves the finding.",
2293
2301
  "x-gitbook-mcp": true,
2294
2302
  "tags": [
2295
2303
  "change-requests"
@@ -2343,6 +2351,14 @@
2343
2351
  "template": {
2344
2352
  "$ref": "#/components/schemas/ApplySpaceTemplate",
2345
2353
  "description": "Template to apply to the change request"
2354
+ },
2355
+ "description": {
2356
+ "$ref": "#/components/schemas/JSONDocument",
2357
+ "description": "Description of the change request, explaining what it changes and why, for whoever reviews it. Only paragraphs and lists are kept; other blocks are stripped along with their text."
2358
+ },
2359
+ "siteFindingId": {
2360
+ "type": "string",
2361
+ "description": "The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space."
2346
2362
  }
2347
2363
  },
2348
2364
  "additionalProperties": true
@@ -2513,7 +2529,7 @@
2513
2529
  "patch": {
2514
2530
  "operationId": "updateChangeRequestById",
2515
2531
  "summary": "Update a change request's subject, description, or status",
2516
- "description": "Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead.",
2532
+ "description": "Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead. Set `siteFindingId` to record that the change request fixes a documentation issue found by GitBook, so that merging it resolves the finding.",
2517
2533
  "x-gitbook-mcp": true,
2518
2534
  "x-gitbook-return-preference": true,
2519
2535
  "tags": [
@@ -2568,6 +2584,13 @@
2568
2584
  "open",
2569
2585
  "archived"
2570
2586
  ]
2587
+ },
2588
+ "siteFindingId": {
2589
+ "type": [
2590
+ "string",
2591
+ "null"
2592
+ ],
2593
+ "description": "The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space. Pass null to unlink a finding linked by mistake."
2571
2594
  }
2572
2595
  }
2573
2596
  }
@@ -2862,6 +2885,59 @@
2862
2885
  }
2863
2886
  }
2864
2887
  },
2888
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/stats": {
2889
+ "get": {
2890
+ "operationId": "getReviewStatsByChangeRequestId",
2891
+ "summary": "Get review totals for a change request",
2892
+ "description": "Returns how many reviews were approved and how many requested changes, for the same reviews the list endpoint returns under the same filters. Use this to summarise where a change request stands without paginating through every review.",
2893
+ "x-gitbook-mcp": true,
2894
+ "tags": [
2895
+ "change-requests-reviews"
2896
+ ],
2897
+ "security": [
2898
+ {
2899
+ "user": []
2900
+ },
2901
+ {
2902
+ "oauth": [
2903
+ "space:read"
2904
+ ]
2905
+ }
2906
+ ],
2907
+ "parameters": [
2908
+ {
2909
+ "$ref": "#/components/parameters/spaceId"
2910
+ },
2911
+ {
2912
+ "$ref": "#/components/parameters/changeRequestId"
2913
+ },
2914
+ {
2915
+ "in": "query",
2916
+ "name": "outdated",
2917
+ "description": "Filter reviews marked as outdated.",
2918
+ "schema": {
2919
+ "type": "boolean"
2920
+ }
2921
+ }
2922
+ ],
2923
+ "responses": {
2924
+ "200": {
2925
+ "description": "Review totals for the given change request.",
2926
+ "content": {
2927
+ "application/json": {
2928
+ "schema": {
2929
+ "$ref": "#/components/schemas/ChangeRequestReviewStats"
2930
+ }
2931
+ }
2932
+ }
2933
+ },
2934
+ "404": {
2935
+ "description": "The change request or space could not be found.",
2936
+ "$ref": "#/components/responses/NotFoundError"
2937
+ }
2938
+ }
2939
+ }
2940
+ },
2865
2941
  "/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}": {
2866
2942
  "get": {
2867
2943
  "operationId": "getChangeRequestReviewById",
@@ -8412,7 +8488,19 @@
8412
8488
  "content": {
8413
8489
  "application/json": {
8414
8490
  "schema": {
8415
- "$ref": "#/components/schemas/Organization"
8491
+ "allOf": [
8492
+ {
8493
+ "$ref": "#/components/schemas/Organization"
8494
+ },
8495
+ {
8496
+ "type": "object",
8497
+ "properties": {
8498
+ "subscriptionNotice": {
8499
+ "$ref": "#/components/schemas/SubscriptionNotice"
8500
+ }
8501
+ }
8502
+ }
8503
+ ]
8416
8504
  }
8417
8505
  }
8418
8506
  }
@@ -8518,11 +8606,24 @@
8518
8606
  "ai": {
8519
8607
  "type": "boolean"
8520
8608
  },
8609
+ "aiSettings": {
8610
+ "$ref": "#/components/schemas/OrganizationAISettingsUpdate"
8611
+ },
8521
8612
  "inviteLinks": {
8522
8613
  "type": "boolean"
8523
8614
  },
8524
8615
  "mergeRules": {
8525
8616
  "$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
8617
+ },
8618
+ "supportCost": {
8619
+ "oneOf": [
8620
+ {
8621
+ "$ref": "#/components/schemas/OrganizationSupportCost"
8622
+ },
8623
+ {
8624
+ "type": "null"
8625
+ }
8626
+ ]
8526
8627
  }
8527
8628
  }
8528
8629
  }
@@ -9086,6 +9187,46 @@
9086
9187
  }
9087
9188
  }
9088
9189
  },
9190
+ "/orgs/{organizationId}/subscription": {
9191
+ "get": {
9192
+ "operationId": "getOrganizationSubscription",
9193
+ "summary": "Get an organization's subscription",
9194
+ "description": "Returns whether the organization is on a trial, the free plan or a paid plan, when its trial ends, and where to upgrade. Use it to answer questions about the plan or the trial, or to find how to upgrade.",
9195
+ "tags": [
9196
+ "organizations"
9197
+ ],
9198
+ "security": [
9199
+ {
9200
+ "user": []
9201
+ },
9202
+ {
9203
+ "oauth": [
9204
+ "organization:read"
9205
+ ]
9206
+ }
9207
+ ],
9208
+ "parameters": [
9209
+ {
9210
+ "$ref": "#/components/parameters/organizationId"
9211
+ }
9212
+ ],
9213
+ "responses": {
9214
+ "200": {
9215
+ "description": "OK",
9216
+ "content": {
9217
+ "application/json": {
9218
+ "schema": {
9219
+ "$ref": "#/components/schemas/OrganizationSubscription"
9220
+ }
9221
+ }
9222
+ }
9223
+ },
9224
+ "404": {
9225
+ "$ref": "#/components/responses/NotFoundError"
9226
+ }
9227
+ }
9228
+ }
9229
+ },
9089
9230
  "/orgs/{organizationId}/members/{userId}/sso": {
9090
9231
  "post": {
9091
9232
  "operationId": "setUserAsSSOMemberForOrganization",
@@ -13344,7 +13485,7 @@
13344
13485
  "get": {
13345
13486
  "operationId": "listSites",
13346
13487
  "summary": "List all documentation sites in an organization",
13347
- "description": "Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure.",
13488
+ "description": "Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure. Members with access only to individual spaces receive the sites that use those spaces as site items, with site administration fields omitted.",
13348
13489
  "x-gitbook-mcp": true,
13349
13490
  "tags": [
13350
13491
  "sites",
@@ -13518,7 +13659,7 @@
13518
13659
  "get": {
13519
13660
  "operationId": "getSiteById",
13520
13661
  "summary": "Get a documentation site by its ID",
13521
- "description": "Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content.",
13662
+ "description": "Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content. Members with access only through a linked space can retrieve a limited site summary; site administration fields are omitted.",
13522
13663
  "x-gitbook-mcp": true,
13523
13664
  "tags": [
13524
13665
  "sites"
@@ -13825,8 +13966,8 @@
13825
13966
  "type": "object",
13826
13967
  "properties": {
13827
13968
  "jsonSchema": {
13828
- "description": "The JSON schema to set on the site.",
13829
- "$ref": "#/components/schemas/SiteAdaptiveJSONSchema"
13969
+ "description": "The JSON schema to set on the site. `regions` is only accepted for organizations with regions enabled.",
13970
+ "$ref": "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
13830
13971
  }
13831
13972
  },
13832
13973
  "required": [
@@ -13981,7 +14122,19 @@
13981
14122
  "schema": {
13982
14123
  "oneOf": [
13983
14124
  {
13984
- "$ref": "#/components/schemas/Site"
14125
+ "allOf": [
14126
+ {
14127
+ "$ref": "#/components/schemas/Site"
14128
+ },
14129
+ {
14130
+ "type": "object",
14131
+ "properties": {
14132
+ "subscriptionNotice": {
14133
+ "$ref": "#/components/schemas/SubscriptionNotice"
14134
+ }
14135
+ }
14136
+ }
14137
+ ]
13985
14138
  },
13986
14139
  {
13987
14140
  "type": "object",
@@ -13996,6 +14149,9 @@
13996
14149
  "sessionId": {
13997
14150
  "type": "string",
13998
14151
  "description": "Stripe payment session ID"
14152
+ },
14153
+ "subscriptionNotice": {
14154
+ "$ref": "#/components/schemas/SubscriptionNotice"
13999
14155
  }
14000
14156
  },
14001
14157
  "required": [
@@ -14052,6 +14208,376 @@
14052
14208
  }
14053
14209
  }
14054
14210
  },
14211
+ "/orgs/{organizationId}/sites/{siteId}/change-requests": {
14212
+ "get": {
14213
+ "operationId": "listChangeRequestsForSite",
14214
+ "summary": "List all change requests for a site",
14215
+ "description": "Returns a paginated list of change requests reviewing the site. A site change request groups changes to the site structure and to any number of its spaces into one review. Use this to discover existing change requests before creating a new one.",
14216
+ "x-internal": true,
14217
+ "tags": [
14218
+ "site-change-requests"
14219
+ ],
14220
+ "security": [
14221
+ {
14222
+ "user": []
14223
+ },
14224
+ {
14225
+ "oauth": [
14226
+ "site:read"
14227
+ ]
14228
+ }
14229
+ ],
14230
+ "parameters": [
14231
+ {
14232
+ "$ref": "#/components/parameters/organizationId"
14233
+ },
14234
+ {
14235
+ "$ref": "#/components/parameters/siteId"
14236
+ },
14237
+ {
14238
+ "$ref": "#/components/parameters/listPage"
14239
+ },
14240
+ {
14241
+ "$ref": "#/components/parameters/listLimit"
14242
+ },
14243
+ {
14244
+ "name": "status",
14245
+ "in": "query",
14246
+ "required": false,
14247
+ "schema": {
14248
+ "$ref": "#/components/schemas/ChangeRequestStatus",
14249
+ "default": "open"
14250
+ },
14251
+ "description": "If defined, only change requests matching this status will be returned."
14252
+ },
14253
+ {
14254
+ "name": "createdBy",
14255
+ "in": "query",
14256
+ "required": false,
14257
+ "schema": {
14258
+ "type": "string"
14259
+ },
14260
+ "description": "If defined, only change requests created by this user will be returned."
14261
+ },
14262
+ {
14263
+ "name": "openedBy",
14264
+ "in": "query",
14265
+ "required": false,
14266
+ "schema": {
14267
+ "type": "string"
14268
+ },
14269
+ "description": "If defined, only change requests moved out of draft by this user will be returned."
14270
+ },
14271
+ {
14272
+ "name": "archivedBy",
14273
+ "in": "query",
14274
+ "required": false,
14275
+ "schema": {
14276
+ "type": "string"
14277
+ },
14278
+ "description": "If defined, only change requests archived by this user will be returned."
14279
+ },
14280
+ {
14281
+ "name": "mergedBy",
14282
+ "in": "query",
14283
+ "required": false,
14284
+ "schema": {
14285
+ "type": "string"
14286
+ },
14287
+ "description": "If defined, only change requests merged by this user will be returned."
14288
+ },
14289
+ {
14290
+ "name": "contributor",
14291
+ "in": "query",
14292
+ "required": false,
14293
+ "schema": {
14294
+ "type": "string"
14295
+ },
14296
+ "description": "If defined, only change requests with contributions from this user will be returned."
14297
+ },
14298
+ {
14299
+ "name": "memberStatus",
14300
+ "in": "query",
14301
+ "required": false,
14302
+ "schema": {
14303
+ "$ref": "#/components/schemas/SiteChangeRequestMemberStatus",
14304
+ "default": "active"
14305
+ },
14306
+ "description": "Status of the members."
14307
+ },
14308
+ {
14309
+ "name": "orderBy",
14310
+ "in": "query",
14311
+ "required": false,
14312
+ "schema": {
14313
+ "$ref": "#/components/schemas/ChangeRequestOrderBy"
14314
+ }
14315
+ }
14316
+ ],
14317
+ "responses": {
14318
+ "200": {
14319
+ "description": "List of the site's change requests",
14320
+ "content": {
14321
+ "application/json": {
14322
+ "schema": {
14323
+ "allOf": [
14324
+ {
14325
+ "$ref": "#/components/schemas/List"
14326
+ },
14327
+ {
14328
+ "type": "object",
14329
+ "required": [
14330
+ "items"
14331
+ ],
14332
+ "properties": {
14333
+ "items": {
14334
+ "type": "array",
14335
+ "items": {
14336
+ "$ref": "#/components/schemas/SiteChangeRequest"
14337
+ }
14338
+ }
14339
+ }
14340
+ }
14341
+ ]
14342
+ }
14343
+ }
14344
+ }
14345
+ }
14346
+ }
14347
+ },
14348
+ "post": {
14349
+ "operationId": "createSiteChangeRequest",
14350
+ "summary": "Create a new change request in a site",
14351
+ "description": "Creates a change request reviewing the site, as a draft working copy of the content of the spaces it changes. It starts with no members: a space becomes one on its first edit.",
14352
+ "x-internal": true,
14353
+ "tags": [
14354
+ "site-change-requests"
14355
+ ],
14356
+ "security": [
14357
+ {
14358
+ "user": []
14359
+ },
14360
+ {
14361
+ "oauth": [
14362
+ "site:write"
14363
+ ]
14364
+ }
14365
+ ],
14366
+ "parameters": [
14367
+ {
14368
+ "$ref": "#/components/parameters/organizationId"
14369
+ },
14370
+ {
14371
+ "$ref": "#/components/parameters/siteId"
14372
+ }
14373
+ ],
14374
+ "requestBody": {
14375
+ "required": true,
14376
+ "content": {
14377
+ "application/json": {
14378
+ "schema": {
14379
+ "type": "object",
14380
+ "properties": {
14381
+ "subject": {
14382
+ "$ref": "#/components/schemas/ChangeRequestSubject"
14383
+ },
14384
+ "description": {
14385
+ "$ref": "#/components/schemas/JSONDocument"
14386
+ }
14387
+ }
14388
+ }
14389
+ }
14390
+ }
14391
+ },
14392
+ "responses": {
14393
+ "201": {
14394
+ "description": "The change request has been created",
14395
+ "headers": {
14396
+ "Location": {
14397
+ "description": "API URL for the newly created change request",
14398
+ "schema": {
14399
+ "type": "string"
14400
+ }
14401
+ }
14402
+ },
14403
+ "content": {
14404
+ "application/json": {
14405
+ "schema": {
14406
+ "$ref": "#/components/schemas/SiteChangeRequest"
14407
+ }
14408
+ }
14409
+ }
14410
+ }
14411
+ }
14412
+ }
14413
+ },
14414
+ "/orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}": {
14415
+ "get": {
14416
+ "operationId": "getSiteChangeRequestById",
14417
+ "summary": "Get a site change request by its ID",
14418
+ "description": "Retrieves a single site change request, including its status, subject, description, aggregate version and active members. Use this to check its current state before deciding to merge, update or request a review.",
14419
+ "x-internal": true,
14420
+ "tags": [
14421
+ "site-change-requests"
14422
+ ],
14423
+ "security": [
14424
+ {
14425
+ "user": []
14426
+ },
14427
+ {
14428
+ "oauth": [
14429
+ "site:read"
14430
+ ]
14431
+ }
14432
+ ],
14433
+ "parameters": [
14434
+ {
14435
+ "$ref": "#/components/parameters/organizationId"
14436
+ },
14437
+ {
14438
+ "$ref": "#/components/parameters/siteId"
14439
+ },
14440
+ {
14441
+ "$ref": "#/components/parameters/siteChangeRequestId"
14442
+ }
14443
+ ],
14444
+ "responses": {
14445
+ "200": {
14446
+ "description": "The matching change request",
14447
+ "content": {
14448
+ "application/json": {
14449
+ "schema": {
14450
+ "$ref": "#/components/schemas/SiteChangeRequest"
14451
+ }
14452
+ }
14453
+ }
14454
+ },
14455
+ "404": {
14456
+ "description": "The change request could not be found.",
14457
+ "$ref": "#/components/responses/NotFoundError"
14458
+ }
14459
+ }
14460
+ },
14461
+ "patch": {
14462
+ "operationId": "updateSiteChangeRequestById",
14463
+ "summary": "Update a site change request's subject, description, or status",
14464
+ "description": "Updates the metadata of a site change request. Use this to rename it, add context before requesting a review, or change its workflow status without merging. To change the resources it reviews, update its members instead.",
14465
+ "x-internal": true,
14466
+ "tags": [
14467
+ "site-change-requests"
14468
+ ],
14469
+ "security": [
14470
+ {
14471
+ "user": []
14472
+ },
14473
+ {
14474
+ "oauth": [
14475
+ "site:write"
14476
+ ]
14477
+ }
14478
+ ],
14479
+ "parameters": [
14480
+ {
14481
+ "$ref": "#/components/parameters/organizationId"
14482
+ },
14483
+ {
14484
+ "$ref": "#/components/parameters/siteId"
14485
+ },
14486
+ {
14487
+ "$ref": "#/components/parameters/siteChangeRequestId"
14488
+ }
14489
+ ],
14490
+ "requestBody": {
14491
+ "required": true,
14492
+ "content": {
14493
+ "application/json": {
14494
+ "schema": {
14495
+ "type": "object",
14496
+ "minProperties": 1,
14497
+ "properties": {
14498
+ "subject": {
14499
+ "$ref": "#/components/schemas/ChangeRequestSubject"
14500
+ },
14501
+ "description": {
14502
+ "$ref": "#/components/schemas/JSONDocument"
14503
+ },
14504
+ "status": {
14505
+ "type": "string",
14506
+ "enum": [
14507
+ "draft",
14508
+ "open",
14509
+ "archived"
14510
+ ]
14511
+ }
14512
+ }
14513
+ }
14514
+ }
14515
+ }
14516
+ },
14517
+ "responses": {
14518
+ "200": {
14519
+ "description": "The change request has been updated",
14520
+ "content": {
14521
+ "application/json": {
14522
+ "schema": {
14523
+ "$ref": "#/components/schemas/SiteChangeRequest"
14524
+ }
14525
+ }
14526
+ }
14527
+ },
14528
+ "404": {
14529
+ "description": "The change request could not be found.",
14530
+ "$ref": "#/components/responses/NotFoundError"
14531
+ },
14532
+ "409": {
14533
+ "description": "The change request has been merged and can no longer be changed.",
14534
+ "$ref": "#/components/responses/ConflictError"
14535
+ }
14536
+ }
14537
+ },
14538
+ "delete": {
14539
+ "operationId": "deleteSiteChangeRequestById",
14540
+ "summary": "Delete a site change request",
14541
+ "description": "Permanently deletes a change request and its members. Merged change requests cannot be deleted; archive a change request instead to keep its review history.",
14542
+ "x-internal": true,
14543
+ "tags": [
14544
+ "site-change-requests"
14545
+ ],
14546
+ "security": [
14547
+ {
14548
+ "user": []
14549
+ },
14550
+ {
14551
+ "oauth": [
14552
+ "site:write"
14553
+ ]
14554
+ }
14555
+ ],
14556
+ "parameters": [
14557
+ {
14558
+ "$ref": "#/components/parameters/organizationId"
14559
+ },
14560
+ {
14561
+ "$ref": "#/components/parameters/siteId"
14562
+ },
14563
+ {
14564
+ "$ref": "#/components/parameters/siteChangeRequestId"
14565
+ }
14566
+ ],
14567
+ "responses": {
14568
+ "204": {
14569
+ "description": "The change request did not exist"
14570
+ },
14571
+ "205": {
14572
+ "description": "The change request has been deleted"
14573
+ },
14574
+ "409": {
14575
+ "description": "The change request has been merged and cannot be deleted.",
14576
+ "$ref": "#/components/responses/ConflictError"
14577
+ }
14578
+ }
14579
+ }
14580
+ },
14055
14581
  "/orgs/{organizationId}/sites/{siteId}/share-links": {
14056
14582
  "get": {
14057
14583
  "operationId": "listSiteShareLinks",
@@ -14293,7 +14819,7 @@
14293
14819
  "get": {
14294
14820
  "operationId": "getSiteStructure",
14295
14821
  "summary": "Get the full navigation structure of a site",
14296
- "description": "Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site.",
14822
+ "description": "Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site. Members with access only to individual spaces receive only the site items backed by those spaces and their parent sections.",
14297
14823
  "x-gitbook-mcp": true,
14298
14824
  "tags": [
14299
14825
  "site-structure"
@@ -14607,6 +15133,14 @@
14607
15133
  "type": "string"
14608
15134
  }
14609
15135
  },
15136
+ {
15137
+ "name": "country",
15138
+ "in": "query",
15139
+ "description": "ISO 3166-1 alpha-2 code of the country of the visitor for which we want to preview the site. It is matched against the `regions` of the site adaptive schema to resolve `visitor.region`.",
15140
+ "schema": {
15141
+ "type": "string"
15142
+ }
15143
+ },
14610
15144
  {
14611
15145
  "name": "draft",
14612
15146
  "in": "query",
@@ -14738,7 +15272,19 @@
14738
15272
  "content": {
14739
15273
  "application/json": {
14740
15274
  "schema": {
14741
- "$ref": "#/components/schemas/SiteCustomizationSettings"
15275
+ "allOf": [
15276
+ {
15277
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
15278
+ },
15279
+ {
15280
+ "type": "object",
15281
+ "properties": {
15282
+ "subscriptionNotice": {
15283
+ "$ref": "#/components/schemas/SubscriptionNotice"
15284
+ }
15285
+ }
15286
+ }
15287
+ ]
14742
15288
  }
14743
15289
  }
14744
15290
  }
@@ -14977,7 +15523,7 @@
14977
15523
  "get": {
14978
15524
  "operationId": "listSiteSpaces",
14979
15525
  "summary": "List all spaces linked to a site as content sources",
14980
- "description": "Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts.",
15526
+ "description": "Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts. Members with access only to individual spaces receive only site-space links for those spaces.",
14981
15527
  "x-gitbook-mcp": true,
14982
15528
  "tags": [
14983
15529
  "site-spaces",
@@ -15197,7 +15743,19 @@
15197
15743
  "content": {
15198
15744
  "application/json": {
15199
15745
  "schema": {
15200
- "$ref": "#/components/schemas/SiteSectionGroup"
15746
+ "allOf": [
15747
+ {
15748
+ "$ref": "#/components/schemas/SiteSectionGroup"
15749
+ },
15750
+ {
15751
+ "type": "object",
15752
+ "properties": {
15753
+ "subscriptionNotice": {
15754
+ "$ref": "#/components/schemas/SubscriptionNotice"
15755
+ }
15756
+ }
15757
+ }
15758
+ ]
15201
15759
  }
15202
15760
  }
15203
15761
  }
@@ -15445,7 +16003,19 @@
15445
16003
  "content": {
15446
16004
  "application/json": {
15447
16005
  "schema": {
15448
- "$ref": "#/components/schemas/SiteSection"
16006
+ "allOf": [
16007
+ {
16008
+ "$ref": "#/components/schemas/SiteSection"
16009
+ },
16010
+ {
16011
+ "type": "object",
16012
+ "properties": {
16013
+ "subscriptionNotice": {
16014
+ "$ref": "#/components/schemas/SubscriptionNotice"
16015
+ }
16016
+ }
16017
+ }
16018
+ ]
15449
16019
  }
15450
16020
  }
15451
16021
  }
@@ -15689,7 +16259,7 @@
15689
16259
  "post": {
15690
16260
  "operationId": "addExternalLinkToSite",
15691
16261
  "summary": "Add an external link to a site's navigation",
15692
- "description": "Creates an external navigation link at the site root or in a section group. External links require a section-based site structure and cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.",
16262
+ "description": "Creates an external navigation link at the site root or in a section group. On a site with root variants and no sections, creating the first external link enables sections and moves those variants into a default section. Links cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.",
15693
16263
  "x-gitbook-mcp": true,
15694
16264
  "tags": [
15695
16265
  "site-external-links"
@@ -15807,7 +16377,7 @@
15807
16377
  }
15808
16378
  },
15809
16379
  "400": {
15810
- "description": "The site has a simple structure or the parent group is invalid",
16380
+ "description": "The parent group is invalid, or the site has no sections or root variants",
15811
16381
  "$ref": "#/components/responses/BadRequestError"
15812
16382
  },
15813
16383
  "default": {
@@ -16808,7 +17378,7 @@
16808
17378
  "get": {
16809
17379
  "operationId": "listSiteFindings",
16810
17380
  "summary": "List documentation issues GitBook has found on a site",
16811
- "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.",
17381
+ "description": "Lists the quality issues GitBook's AI has identified on a site by comparing its content against real usage and external sources — content gaps, outdated or incorrect content, and broken or outbound links. Use this when asked to find, audit, or fix problems in a site's docs. Only findings with status \"open\" need work; \"candidate\" ones have not been confirmed yet. A \"broken-link\" finding is fixed by a redirect rather than a content edit: pass its `brokenLinkAction` to createSiteRedirect. Fix the rest by opening a change request with its `siteFindingId` set, so merging the change request resolves it.",
16812
17382
  "x-gitbook-mcp": true,
16813
17383
  "tags": [
16814
17384
  "site-context"
@@ -16871,6 +17441,14 @@
16871
17441
  }
16872
17442
  }
16873
17443
  },
17444
+ {
17445
+ "name": "url",
17446
+ "in": "query",
17447
+ "description": "Filter link findings whose URL contains this text: the broken path of a `broken-link` finding, or the checked URL of an `outbound-link-error` one. Findings of any other type never match, so this narrows the list to link findings on its own.",
17448
+ "schema": {
17449
+ "type": "string"
17450
+ }
17451
+ },
16874
17452
  {
16875
17453
  "name": "severity",
16876
17454
  "in": "query",
@@ -20963,6 +21541,10 @@
20963
21541
  "schema": {
20964
21542
  "type": "object",
20965
21543
  "properties": {
21544
+ "siteFindingId": {
21545
+ "type": "string",
21546
+ "description": "The broken-link finding that prompted this redirect. Must belong to this site. Used to attribute redirect creation, including drafts, to the finding."
21547
+ },
20966
21548
  "source": {
20967
21549
  "$ref": "#/components/schemas/SiteRedirectSourcePath"
20968
21550
  },
@@ -21978,6 +22560,221 @@
21978
22560
  }
21979
22561
  }
21980
22562
  },
22563
+ "/orgs/{organizationId}/sites/{siteId}/channels/scopes": {
22564
+ "post": {
22565
+ "operationId": "listSiteChannelScopes",
22566
+ "summary": "List available site channel scopes",
22567
+ "description": "Lists accessible Linear teams, GitHub repositories, Slack channels or Jira projects. Requires site admin permission. Linear, GitHub and Slack require an already-connected channel belonging to this site and matching the provider. Jira credentials are verified without saving a connection. Slack includes public channels and accessible private channels, excluding archived channels. To fetch another page, pass the opaque token from `next.page` as the `page` query parameter with the same request body. An absent `next` means there are no more pages; an empty `items` array alone does not indicate the end of the list.",
22568
+ "x-gitbook-mcp": true,
22569
+ "tags": [
22570
+ "site-channels"
22571
+ ],
22572
+ "security": [
22573
+ {
22574
+ "user": []
22575
+ },
22576
+ {
22577
+ "oauth": [
22578
+ "site:read"
22579
+ ]
22580
+ }
22581
+ ],
22582
+ "parameters": [
22583
+ {
22584
+ "$ref": "#/components/parameters/organizationId"
22585
+ },
22586
+ {
22587
+ "$ref": "#/components/parameters/siteId"
22588
+ },
22589
+ {
22590
+ "$ref": "#/components/parameters/listPage"
22591
+ }
22592
+ ],
22593
+ "requestBody": {
22594
+ "required": true,
22595
+ "content": {
22596
+ "application/json": {
22597
+ "schema": {
22598
+ "oneOf": [
22599
+ {
22600
+ "type": "object",
22601
+ "required": [
22602
+ "provider",
22603
+ "siteChannelId"
22604
+ ],
22605
+ "properties": {
22606
+ "provider": {
22607
+ "type": "string",
22608
+ "enum": [
22609
+ "linear"
22610
+ ]
22611
+ },
22612
+ "siteChannelId": {
22613
+ "type": "string",
22614
+ "description": "ID of an already-connected channel belonging to this site and matching the provider."
22615
+ }
22616
+ }
22617
+ },
22618
+ {
22619
+ "type": "object",
22620
+ "required": [
22621
+ "provider",
22622
+ "siteChannelId"
22623
+ ],
22624
+ "properties": {
22625
+ "provider": {
22626
+ "type": "string",
22627
+ "enum": [
22628
+ "github"
22629
+ ]
22630
+ },
22631
+ "siteChannelId": {
22632
+ "type": "string",
22633
+ "description": "ID of an already-connected channel belonging to this site and matching the provider."
22634
+ }
22635
+ }
22636
+ },
22637
+ {
22638
+ "type": "object",
22639
+ "required": [
22640
+ "provider",
22641
+ "siteChannelId"
22642
+ ],
22643
+ "properties": {
22644
+ "provider": {
22645
+ "type": "string",
22646
+ "enum": [
22647
+ "slack"
22648
+ ]
22649
+ },
22650
+ "siteChannelId": {
22651
+ "type": "string",
22652
+ "description": "ID of an already-connected channel belonging to this site and matching the provider."
22653
+ }
22654
+ }
22655
+ },
22656
+ {
22657
+ "type": "object",
22658
+ "required": [
22659
+ "provider",
22660
+ "credentials"
22661
+ ],
22662
+ "properties": {
22663
+ "provider": {
22664
+ "type": "string",
22665
+ "enum": [
22666
+ "jira"
22667
+ ]
22668
+ },
22669
+ "credentials": {
22670
+ "type": "object",
22671
+ "required": [
22672
+ "baseUrl",
22673
+ "apiEmail",
22674
+ "apiToken"
22675
+ ],
22676
+ "properties": {
22677
+ "baseUrl": {
22678
+ "type": "string",
22679
+ "format": "uri",
22680
+ "minLength": 1,
22681
+ "maxLength": 2048,
22682
+ "description": "Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net."
22683
+ },
22684
+ "apiEmail": {
22685
+ "type": "string",
22686
+ "format": "email",
22687
+ "minLength": 1,
22688
+ "maxLength": 254,
22689
+ "description": "Email of the Atlassian account whose API token is used."
22690
+ },
22691
+ "apiToken": {
22692
+ "type": "string",
22693
+ "minLength": 1,
22694
+ "maxLength": 1024,
22695
+ "description": "Atlassian API token used to verify the account and list accessible projects. Not saved."
22696
+ }
22697
+ }
22698
+ }
22699
+ }
22700
+ }
22701
+ ],
22702
+ "discriminator": {
22703
+ "propertyName": "provider"
22704
+ }
22705
+ }
22706
+ }
22707
+ }
22708
+ },
22709
+ "responses": {
22710
+ "200": {
22711
+ "description": "Scopes available through the connected provider or supplied Jira credentials",
22712
+ "content": {
22713
+ "application/json": {
22714
+ "schema": {
22715
+ "allOf": [
22716
+ {
22717
+ "$ref": "#/components/schemas/List"
22718
+ },
22719
+ {
22720
+ "type": "object",
22721
+ "required": [
22722
+ "object",
22723
+ "items",
22724
+ "connection"
22725
+ ],
22726
+ "properties": {
22727
+ "object": {
22728
+ "type": "string",
22729
+ "enum": [
22730
+ "site-channel-scopes"
22731
+ ]
22732
+ },
22733
+ "connection": {
22734
+ "type": "string",
22735
+ "description": "Linear workspace name, GitHub account name, Slack workspace name (or ID if unavailable), or Jira Cloud hostname."
22736
+ },
22737
+ "items": {
22738
+ "type": "array",
22739
+ "items": {
22740
+ "type": "object",
22741
+ "required": [
22742
+ "key",
22743
+ "name"
22744
+ ],
22745
+ "properties": {
22746
+ "key": {
22747
+ "type": "string",
22748
+ "description": "Value accepted by the provider scope settings, such as a team key, repository full name, channel name, Jira project key."
22749
+ },
22750
+ "name": {
22751
+ "type": "string"
22752
+ }
22753
+ }
22754
+ }
22755
+ }
22756
+ }
22757
+ }
22758
+ ]
22759
+ }
22760
+ }
22761
+ }
22762
+ },
22763
+ "400": {
22764
+ "$ref": "#/components/responses/BadRequestError"
22765
+ },
22766
+ "401": {
22767
+ "$ref": "#/components/responses/UnauthorizedError"
22768
+ },
22769
+ "403": {
22770
+ "$ref": "#/components/responses/ForbiddenError"
22771
+ },
22772
+ "404": {
22773
+ "$ref": "#/components/responses/NotFoundError"
22774
+ }
22775
+ }
22776
+ }
22777
+ },
21981
22778
  "/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}": {
21982
22779
  "get": {
21983
22780
  "operationId": "getSiteChannelById",
@@ -22088,6 +22885,7 @@
22088
22885
  "delete": {
22089
22886
  "operationId": "deleteSiteChannelById",
22090
22887
  "summary": "Delete a GitBook Agent channel from a site",
22888
+ "description": "Removes the channel configuration from the site, so GitBook Agent stops answering and collaborating through the connected platform. The app itself is not uninstalled and its access is not revoked on the platform, so remove it there as well to fully disconnect.",
22091
22889
  "tags": [
22092
22890
  "site-channels"
22093
22891
  ],
@@ -23960,6 +24758,15 @@
23960
24758
  "type": "string"
23961
24759
  }
23962
24760
  },
24761
+ "siteChangeRequestId": {
24762
+ "name": "changeRequestId",
24763
+ "in": "path",
24764
+ "required": true,
24765
+ "description": "The unique ID of the change request or its number identifier in the site",
24766
+ "schema": {
24767
+ "$ref": "#/components/schemas/EntityId"
24768
+ }
24769
+ },
23963
24770
  "shareLinkId": {
23964
24771
  "name": "shareLinkId",
23965
24772
  "in": "path",
@@ -24720,6 +25527,10 @@
24720
25527
  "type": "string",
24721
25528
  "description": "The URL to the repository tree, used when rendering public content."
24722
25529
  },
25530
+ "installationProjectDirectory": {
25531
+ "type": "string",
25532
+ "description": "Directory in the repository this content syncs from, resolved against the parent installation when the installation is managed by a site. Absent when the content syncs from the root of the repository."
25533
+ },
24723
25534
  "operation": {
24724
25535
  "type": "object",
24725
25536
  "description": "The latest operation on the Git Sync installation.",
@@ -24765,6 +25576,19 @@
24765
25576
  "installationStatus"
24766
25577
  ]
24767
25578
  },
25579
+ "PreviousGitSyncState": {
25580
+ "type": "object",
25581
+ "description": "What is still known about a target's Git Sync after its installation was removed. Never returned alongside `gitSync`, which describes a live installation.",
25582
+ "required": [
25583
+ "url"
25584
+ ],
25585
+ "properties": {
25586
+ "url": {
25587
+ "type": "string",
25588
+ "description": "The URL to the directory of the repository tree the content synced with before its Git Sync installation was removed, at the branch it synced."
25589
+ }
25590
+ }
25591
+ },
24768
25592
  "ContentImportSource": {
24769
25593
  "oneOf": [
24770
25594
  {
@@ -25139,6 +25963,9 @@
25139
25963
  "gitSync": {
25140
25964
  "$ref": "#/components/schemas/GitSyncState"
25141
25965
  },
25966
+ "previousGitSync": {
25967
+ "$ref": "#/components/schemas/PreviousGitSyncState"
25968
+ },
25142
25969
  "imports": {
25143
25970
  "description": "Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.\n",
25144
25971
  "type": "array",
@@ -30564,6 +31391,11 @@
30564
31391
  "description": {
30565
31392
  "type": "string"
30566
31393
  },
31394
+ "tagTitle": {
31395
+ "description": "Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself.",
31396
+ "type": "string",
31397
+ "maxLength": 100
31398
+ },
30567
31399
  "pages": {
30568
31400
  "type": "array",
30569
31401
  "items": {
@@ -31944,7 +32776,8 @@
31944
32776
  "provider": {
31945
32777
  "type": "string",
31946
32778
  "enum": [
31947
- "jira"
32779
+ "jira",
32780
+ "linear"
31948
32781
  ]
31949
32782
  },
31950
32783
  "state": {
@@ -32005,7 +32838,8 @@
32005
32838
  "provider": {
32006
32839
  "type": "string",
32007
32840
  "enum": [
32008
- "jira"
32841
+ "jira",
32842
+ "linear"
32009
32843
  ]
32010
32844
  },
32011
32845
  "state": {
@@ -32035,13 +32869,19 @@
32035
32869
  "type": "string",
32036
32870
  "description": "The ID of the link."
32037
32871
  },
32872
+ "isSyncing": {
32873
+ "type": "boolean",
32874
+ "readOnly": true,
32875
+ "description": "Whether this link owns synchronization with the external issue. Other links are references only."
32876
+ },
32038
32877
  "expanded": {
32039
32878
  "$ref": "#/components/schemas/ChangeRequestLinkExpanded",
32040
32879
  "readOnly": true
32041
32880
  }
32042
32881
  },
32043
32882
  "required": [
32044
- "id"
32883
+ "id",
32884
+ "isSyncing"
32045
32885
  ]
32046
32886
  }
32047
32887
  ]
@@ -32124,7 +32964,7 @@
32124
32964
  },
32125
32965
  "siteTopic": {
32126
32966
  "type": "object",
32127
- "description": "Site context associated with the change request when it was created from a site topic or finding.",
32967
+ "description": "Site topic the change request was created from, when it came from one.",
32128
32968
  "properties": {
32129
32969
  "site": {
32130
32970
  "type": "string",
@@ -32136,7 +32976,8 @@
32136
32976
  },
32137
32977
  "finding": {
32138
32978
  "type": "string",
32139
- "description": "ID of the site finding associated with the change request, when applicable."
32979
+ "deprecated": true,
32980
+ "description": "ID of the site finding the change request fixes. Use `siteFinding` instead: a change request can fix a finding without belonging to a topic, and this field is absent in that case."
32140
32981
  }
32141
32982
  },
32142
32983
  "required": [
@@ -32144,6 +32985,24 @@
32144
32985
  "topic"
32145
32986
  ]
32146
32987
  },
32988
+ "siteFinding": {
32989
+ "type": "object",
32990
+ "description": "Site finding the change request fixes, when it is linked to one. Merging the change request resolves the finding, once every change request linked to it is merged.",
32991
+ "properties": {
32992
+ "site": {
32993
+ "type": "string",
32994
+ "description": "ID of the site the finding belongs to."
32995
+ },
32996
+ "finding": {
32997
+ "type": "string",
32998
+ "description": "ID of the site finding the change request fixes."
32999
+ }
33000
+ },
33001
+ "required": [
33002
+ "site",
33003
+ "finding"
33004
+ ]
33005
+ },
32147
33006
  "styleguide": {
32148
33007
  "type": "object",
32149
33008
  "description": "Style guide check that opened the change request, when it came from one. A check can be run again on the change request already open on a space, rather than opening a second one, so several checks can share a change request.\n",
@@ -32745,6 +33604,20 @@
32745
33604
  "urls"
32746
33605
  ]
32747
33606
  },
33607
+ "ChangeRequestReviewStats": {
33608
+ "type": "object",
33609
+ "description": "Exact review totals for the applied filters, independent of pagination. Keyed by review status, with a count of zero for a status nobody used.",
33610
+ "propertyNames": {
33611
+ "$ref": "#/components/schemas/ChangeRequestReviewStatus"
33612
+ },
33613
+ "additionalProperties": {
33614
+ "type": "number"
33615
+ },
33616
+ "required": [
33617
+ "approved",
33618
+ "changes-requested"
33619
+ ]
33620
+ },
32748
33621
  "Team": {
32749
33622
  "type": "object",
32750
33623
  "properties": {
@@ -33075,6 +33948,16 @@
33075
33948
  "type": "string",
33076
33949
  "description": "Description of the page."
33077
33950
  },
33951
+ "linkTitle": {
33952
+ "description": "Optional custom title used for the page in the table of contents and mentions instead of its page title. Set to an empty string to remove it.",
33953
+ "type": "string",
33954
+ "maxLength": 100
33955
+ },
33956
+ "tagTitle": {
33957
+ "description": "Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself. Set to an empty string to remove it.",
33958
+ "type": "string",
33959
+ "maxLength": 100
33960
+ },
33078
33961
  "hidden": {
33079
33962
  "type": "boolean",
33080
33963
  "description": "If true, the page is not displayed in the navigation, while still being accessible."
@@ -34651,6 +35534,100 @@
34651
35534
  }
34652
35535
  ]
34653
35536
  },
35537
+ "AICreditThreshold": {
35538
+ "description": "An AI credit threshold from 5% to 50%, or null when disabled.",
35539
+ "oneOf": [
35540
+ {
35541
+ "type": "number",
35542
+ "minimum": 5,
35543
+ "maximum": 50
35544
+ },
35545
+ {
35546
+ "type": "null"
35547
+ }
35548
+ ]
35549
+ },
35550
+ "OrganizationAISettings": {
35551
+ "type": "object",
35552
+ "description": "AI preferences and automatic pause status. Missing feature keys leave features enabled, subject to the master AI setting and feature eligibility.",
35553
+ "additionalProperties": false,
35554
+ "properties": {
35555
+ "aiPaused": {
35556
+ "type": "boolean",
35557
+ "readOnly": true,
35558
+ "description": "Whether AI features are automatically paused because credits are low."
35559
+ },
35560
+ "ai-agent": {
35561
+ "type": "boolean",
35562
+ "enum": [
35563
+ false
35564
+ ]
35565
+ },
35566
+ "ai-assistant": {
35567
+ "type": "boolean",
35568
+ "enum": [
35569
+ false
35570
+ ]
35571
+ },
35572
+ "ai-broken-links": {
35573
+ "type": "boolean",
35574
+ "enum": [
35575
+ false
35576
+ ]
35577
+ },
35578
+ "ai-content-gap": {
35579
+ "type": "boolean",
35580
+ "enum": [
35581
+ false
35582
+ ]
35583
+ },
35584
+ "ai-insight": {
35585
+ "type": "boolean",
35586
+ "enum": [
35587
+ false
35588
+ ]
35589
+ },
35590
+ "ai-import": {
35591
+ "type": "boolean",
35592
+ "enum": [
35593
+ false
35594
+ ]
35595
+ },
35596
+ "ai-platform": {
35597
+ "type": "boolean",
35598
+ "enum": [
35599
+ false
35600
+ ]
35601
+ },
35602
+ "ai-style-guide": {
35603
+ "type": "boolean",
35604
+ "enum": [
35605
+ false
35606
+ ]
35607
+ },
35608
+ "ai-translation": {
35609
+ "type": "boolean",
35610
+ "enum": [
35611
+ false
35612
+ ]
35613
+ },
35614
+ "aiCreditAlertThreshold": {
35615
+ "$ref": "#/components/schemas/AICreditThreshold"
35616
+ },
35617
+ "aiCreditPauseEnabled": {
35618
+ "description": "Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.",
35619
+ "type": "boolean"
35620
+ },
35621
+ "aiAlertNotificationAlertId": {
35622
+ "type": "string",
35623
+ "readOnly": true
35624
+ },
35625
+ "aiPauseNotificationAlertId": {
35626
+ "type": "string",
35627
+ "readOnly": true
35628
+ }
35629
+ }
35630
+ },
34654
35631
  "BillingProduct": {
34655
35632
  "type": "string",
34656
35633
  "description": "Name of the product",
@@ -34754,10 +35731,10 @@
34754
35731
  "description": "The AI credit bundle to top up every month",
34755
35732
  "enum": [
34756
35733
  "none",
34757
- 135001500,
34758
- 240006000,
34759
- 4200018000,
34760
- 6000040000
35734
+ 4750250,
35735
+ 90001000,
35736
+ 127502250,
35737
+ 3000010000
34761
35738
  ]
34762
35739
  },
34763
35740
  "OrganizationBilling": {
@@ -34843,6 +35820,10 @@
34843
35820
  "description": "Whether configuring SAML is allowed",
34844
35821
  "type": "boolean"
34845
35822
  },
35823
+ "canUseAI": {
35824
+ "description": "Whether AI can be enabled for the organization",
35825
+ "type": "boolean"
35826
+ },
34846
35827
  "creditsBundle": {
34847
35828
  "description": "The AI credit bundle the organization tops up every month, or null when the organization is not billed for AI usage. `none` means pay as you go.",
34848
35829
  "oneOf": [
@@ -34854,18 +35835,22 @@
34854
35835
  }
34855
35836
  ]
34856
35837
  },
34857
- "aiCreditAlertThreshold": {
34858
- "description": "Percentage of total AI credits remaining at which to send a low-balance alert, or null when the alert is disabled.",
35838
+ "aiCreditAllowance": {
35839
+ "description": "The yearly AI credit allowance agreed in the organization's contract, or null when none is set.",
34859
35840
  "oneOf": [
34860
35841
  {
34861
- "type": "number",
34862
- "minimum": 0,
34863
- "maximum": 100
35842
+ "type": "integer"
34864
35843
  },
34865
35844
  {
34866
35845
  "type": "null"
34867
35846
  }
34868
35847
  ]
35848
+ },
35849
+ "aiCreditRollover": {
35850
+ "description": "The percentage of unused paid bundle credits carried over to the next monthly AI billing period.",
35851
+ "type": "integer",
35852
+ "minimum": 0,
35853
+ "maximum": 100
34869
35854
  }
34870
35855
  },
34871
35856
  "required": [
@@ -34878,8 +35863,55 @@
34878
35863
  "usageAddons",
34879
35864
  "canChangeInterval",
34880
35865
  "canUseSAML",
35866
+ "canUseAI",
34881
35867
  "creditsBundle",
34882
- "aiCreditAlertThreshold"
35868
+ "aiCreditAllowance",
35869
+ "aiCreditRollover"
35870
+ ]
35871
+ },
35872
+ "OrganizationSupportCost": {
35873
+ "description": "What support costs the organization, per ticket or per hour of agent time, used to estimate how much AI answers save in site insights.",
35874
+ "oneOf": [
35875
+ {
35876
+ "type": "object",
35877
+ "additionalProperties": false,
35878
+ "properties": {
35879
+ "perTicket": {
35880
+ "type": "number",
35881
+ "minimum": 0.01,
35882
+ "description": "Cost of one support ticket, in `currency`."
35883
+ },
35884
+ "currency": {
35885
+ "type": "string",
35886
+ "pattern": "^[A-Z]{3}$",
35887
+ "description": "ISO 4217 currency code."
35888
+ }
35889
+ },
35890
+ "required": [
35891
+ "perTicket",
35892
+ "currency"
35893
+ ]
35894
+ },
35895
+ {
35896
+ "type": "object",
35897
+ "additionalProperties": false,
35898
+ "properties": {
35899
+ "perHour": {
35900
+ "type": "number",
35901
+ "minimum": 0.01,
35902
+ "description": "Cost of one hour of support agent time, in `currency`."
35903
+ },
35904
+ "currency": {
35905
+ "type": "string",
35906
+ "pattern": "^[A-Z]{3}$",
35907
+ "description": "ISO 4217 currency code."
35908
+ }
35909
+ },
35910
+ "required": [
35911
+ "perHour",
35912
+ "currency"
35913
+ ]
35914
+ }
34883
35915
  ]
34884
35916
  },
34885
35917
  "BillingTrialStatus": {
@@ -34957,6 +35989,9 @@
34957
35989
  "description": "If true, the organization is configured to use all our AI features.",
34958
35990
  "type": "boolean"
34959
35991
  },
35992
+ "aiSettings": {
35993
+ "$ref": "#/components/schemas/OrganizationAISettings"
35994
+ },
34960
35995
  "inviteLinks": {
34961
35996
  "description": "If true, invite links are enabled for this organization.",
34962
35997
  "type": "boolean"
@@ -34975,6 +36010,10 @@
34975
36010
  "mergeRules": {
34976
36011
  "$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
34977
36012
  },
36013
+ "supportCost": {
36014
+ "description": "Support cost set by the organization, only available for org members.",
36015
+ "$ref": "#/components/schemas/OrganizationSupportCost"
36016
+ },
34978
36017
  "urls": {
34979
36018
  "type": "object",
34980
36019
  "description": "URLs associated with the object",
@@ -37333,6 +38372,7 @@
37333
38372
  "sites-sections",
37334
38373
  "sites-seo",
37335
38374
  "sites-share-links",
38375
+ "sites-style-guide",
37336
38376
  "sites-unlisted-visibility",
37337
38377
  "sites-user-contribution",
37338
38378
  "sites-visitor-authentication",
@@ -39065,6 +40105,137 @@
39065
40105
  "title"
39066
40106
  ]
39067
40107
  },
40108
+ "SubscriptionTrial": {
40109
+ "type": "object",
40110
+ "description": "The current or last trial of an organization.",
40111
+ "properties": {
40112
+ "status": {
40113
+ "$ref": "#/components/schemas/BillingTrialStatus"
40114
+ },
40115
+ "endDate": {
40116
+ "description": "When the trial ends, or ended.",
40117
+ "$ref": "#/components/schemas/Timestamp"
40118
+ },
40119
+ "daysRemaining": {
40120
+ "type": "integer",
40121
+ "description": "Days left in the trial, rounded up, so 1 is its last day. 0 once it has ended."
40122
+ }
40123
+ },
40124
+ "required": [
40125
+ "status",
40126
+ "endDate",
40127
+ "daysRemaining"
40128
+ ]
40129
+ },
40130
+ "SubscriptionNotice": {
40131
+ "type": "object",
40132
+ "description": "A notice about the organization's subscription to relay to the user, such as how many days are left in their trial. It is returned by the operations whose features may require a paid plan once a trial ends.\n",
40133
+ "properties": {
40134
+ "type": {
40135
+ "type": "string",
40136
+ "description": "- trial_started, the operation started the organization's trial. - trial_countdown, the organization's trial ends soon. - checkout_required, the operation needs a paid plan to complete.\n",
40137
+ "enum": [
40138
+ "trial_started",
40139
+ "trial_countdown",
40140
+ "checkout_required"
40141
+ ]
40142
+ },
40143
+ "context": {
40144
+ "type": "string",
40145
+ "description": "What the user was doing when the notice was given.",
40146
+ "enum": [
40147
+ "trial_started",
40148
+ "site_publishing",
40149
+ "site_features",
40150
+ "site_customization"
40151
+ ]
40152
+ },
40153
+ "commercialStatus": {
40154
+ "type": "string",
40155
+ "description": "Whether the organization is on a trial, the free plan, or a paid plan.",
40156
+ "enum": [
40157
+ "trial",
40158
+ "free",
40159
+ "paid"
40160
+ ]
40161
+ },
40162
+ "message": {
40163
+ "type": "string",
40164
+ "description": "Message to show the user. For users who cannot upgrade, it asks them to reach out to an administrator of the organization."
40165
+ },
40166
+ "trial": {
40167
+ "$ref": "#/components/schemas/SubscriptionTrial"
40168
+ },
40169
+ "canManageBilling": {
40170
+ "type": "boolean",
40171
+ "description": "Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade."
40172
+ },
40173
+ "upgradeUrl": {
40174
+ "description": "Where to upgrade in the application. Only set when `canManageBilling` is true.",
40175
+ "$ref": "#/components/schemas/URL"
40176
+ },
40177
+ "pricingUrl": {
40178
+ "description": "Public page comparing the GitBook plans.",
40179
+ "$ref": "#/components/schemas/URL"
40180
+ }
40181
+ },
40182
+ "required": [
40183
+ "type",
40184
+ "context",
40185
+ "commercialStatus",
40186
+ "message",
40187
+ "canManageBilling",
40188
+ "pricingUrl"
40189
+ ]
40190
+ },
40191
+ "OptOutUpdate": {
40192
+ "description": "Set false to disable, or null to remove the opt-out. Omit to leave unchanged.",
40193
+ "oneOf": [
40194
+ {
40195
+ "type": "boolean",
40196
+ "enum": [
40197
+ false
40198
+ ]
40199
+ },
40200
+ {
40201
+ "type": "null"
40202
+ }
40203
+ ]
40204
+ },
40205
+ "OrganizationAISettingsUpdate": {
40206
+ "type": "object",
40207
+ "description": "Partial AI preference update. Omitted keys are unchanged; null removes an opt-out.",
40208
+ "additionalProperties": false,
40209
+ "properties": {
40210
+ "ai-agent": {
40211
+ "$ref": "#/components/schemas/OptOutUpdate"
40212
+ },
40213
+ "ai-assistant": {
40214
+ "$ref": "#/components/schemas/OptOutUpdate"
40215
+ },
40216
+ "ai-broken-links": {
40217
+ "$ref": "#/components/schemas/OptOutUpdate"
40218
+ },
40219
+ "ai-content-gap": {
40220
+ "$ref": "#/components/schemas/OptOutUpdate"
40221
+ },
40222
+ "ai-insight": {
40223
+ "$ref": "#/components/schemas/OptOutUpdate"
40224
+ },
40225
+ "ai-import": {
40226
+ "$ref": "#/components/schemas/OptOutUpdate"
40227
+ },
40228
+ "ai-platform": {
40229
+ "$ref": "#/components/schemas/OptOutUpdate"
40230
+ },
40231
+ "ai-style-guide": {
40232
+ "$ref": "#/components/schemas/OptOutUpdate"
40233
+ },
40234
+ "ai-translation": {
40235
+ "$ref": "#/components/schemas/OptOutUpdate"
40236
+ }
40237
+ }
40238
+ },
39068
40239
  "SiteSectionTitle": {
39069
40240
  "type": "string",
39070
40241
  "description": "Title of the site section",
@@ -39584,6 +40755,23 @@
39584
40755
  "label": {
39585
40756
  "type": "string",
39586
40757
  "description": "Display label captured when the event was recorded."
40758
+ },
40759
+ "impersonator": {
40760
+ "type": "object",
40761
+ "description": "GitBook staff member acting as this user. Present only for recorded impersonation; older events may not have this information. The actor ID remains the effective user for filtering.",
40762
+ "properties": {
40763
+ "id": {
40764
+ "type": "string",
40765
+ "description": "Stable ID of the impersonating staff member."
40766
+ },
40767
+ "label": {
40768
+ "type": "string",
40769
+ "description": "Staff display name captured when the event was recorded, if available."
40770
+ }
40771
+ },
40772
+ "required": [
40773
+ "id"
40774
+ ]
39587
40775
  }
39588
40776
  },
39589
40777
  "required": [
@@ -39795,6 +40983,68 @@
39795
40983
  "templates"
39796
40984
  ]
39797
40985
  },
40986
+ "OrganizationSubscription": {
40987
+ "type": "object",
40988
+ "description": "An organization's subscription, as needed to tell a user their plan, trial and how to upgrade.",
40989
+ "properties": {
40990
+ "object": {
40991
+ "type": "string",
40992
+ "description": "Type of Object, always equals to \"organization-subscription\"",
40993
+ "enum": [
40994
+ "organization-subscription"
40995
+ ]
40996
+ },
40997
+ "status": {
40998
+ "type": "string",
40999
+ "description": "Whether the organization is on a trial, the free plan, or a paid plan.",
41000
+ "enum": [
41001
+ "trial",
41002
+ "free",
41003
+ "paid"
41004
+ ]
41005
+ },
41006
+ "plan": {
41007
+ "type": "object",
41008
+ "description": "The plan in effect, which is the trial's plan while trialing.",
41009
+ "properties": {
41010
+ "id": {
41011
+ "$ref": "#/components/schemas/BillingProduct"
41012
+ },
41013
+ "title": {
41014
+ "type": "string",
41015
+ "description": "Name of the plan shown to users, e.g. Pro."
41016
+ }
41017
+ },
41018
+ "required": [
41019
+ "id",
41020
+ "title"
41021
+ ]
41022
+ },
41023
+ "trial": {
41024
+ "description": "The current or last trial. Absent when the organization never had one.",
41025
+ "$ref": "#/components/schemas/SubscriptionTrial"
41026
+ },
41027
+ "canManageBilling": {
41028
+ "type": "boolean",
41029
+ "description": "Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade."
41030
+ },
41031
+ "upgradeUrl": {
41032
+ "description": "Where to upgrade in the application. Only set when `canManageBilling` is true.",
41033
+ "$ref": "#/components/schemas/URL"
41034
+ },
41035
+ "pricingUrl": {
41036
+ "description": "Public page comparing the GitBook plans.",
41037
+ "$ref": "#/components/schemas/URL"
41038
+ }
41039
+ },
41040
+ "required": [
41041
+ "object",
41042
+ "status",
41043
+ "plan",
41044
+ "canManageBilling",
41045
+ "pricingUrl"
41046
+ ]
41047
+ },
39798
41048
  "MemberContentPermission": {
39799
41049
  "type": "object",
39800
41050
  "description": "Permission of a member in a content.",
@@ -40613,16 +41863,21 @@
40613
41863
  "properties": {
40614
41864
  "type": {
40615
41865
  "type": "string",
40616
- "description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.",
41866
+ "description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.",
40617
41867
  "enum": [
40618
41868
  "paid",
40619
41869
  "bonus",
40620
41870
  "site",
40621
- "rollover"
41871
+ "rollover",
41872
+ "custom"
40622
41873
  ]
40623
41874
  },
41875
+ "priority": {
41876
+ "type": "number",
41877
+ "description": "Stripe spending priority. Lower values are consumed first."
41878
+ },
40624
41879
  "grantedCredits": {
40625
- "description": "Credits the grant was created with.",
41880
+ "description": "Credits available from this grant before the current invoice usage.",
40626
41881
  "type": "number"
40627
41882
  },
40628
41883
  "usedCredits": {
@@ -40698,7 +41953,7 @@
40698
41953
  "$ref": "#/components/schemas/BillingCreditsTotals"
40699
41954
  },
40700
41955
  "free": {
40701
- "description": "The credits included at no extra cost, from the bundle, sites and rollover.",
41956
+ "description": "The bonus, site and custom credits.",
40702
41957
  "$ref": "#/components/schemas/BillingCreditsTotals"
40703
41958
  },
40704
41959
  "bundle": {
@@ -40841,7 +42096,7 @@
40841
42096
  "$ref": "#/components/schemas/BillingCreditsTotals"
40842
42097
  },
40843
42098
  "free": {
40844
- "description": "The credits included at no extra cost, from the bundle, sites and rollover.",
42099
+ "description": "The bonus, site and custom credits.",
40845
42100
  "$ref": "#/components/schemas/BillingCreditsTotals"
40846
42101
  },
40847
42102
  "bundle": {
@@ -40868,16 +42123,21 @@
40868
42123
  "properties": {
40869
42124
  "type": {
40870
42125
  "type": "string",
40871
- "description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.",
42126
+ "description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.",
40872
42127
  "enum": [
40873
42128
  "paid",
40874
42129
  "bonus",
40875
42130
  "site",
40876
- "rollover"
42131
+ "rollover",
42132
+ "custom"
40877
42133
  ]
40878
42134
  },
42135
+ "priority": {
42136
+ "type": "number",
42137
+ "description": "Stripe spending priority. Lower values are consumed first."
42138
+ },
40879
42139
  "grantedCredits": {
40880
- "description": "Credits the grant was created with.",
42140
+ "description": "Credits available from this grant before the current invoice usage.",
40881
42141
  "type": "number"
40882
42142
  },
40883
42143
  "usedCredits": {
@@ -41264,6 +42524,7 @@
41264
42524
  "description": "An organization feature used for plan access and upgrade prompts.",
41265
42525
  "enum": [
41266
42526
  "max-members",
42527
+ "ai",
41267
42528
  "ai-lens",
41268
42529
  "pdf-export",
41269
42530
  "ai-writing",
@@ -41867,6 +43128,10 @@
41867
43128
  "type": "string",
41868
43129
  "description": "The space ID owning the page."
41869
43130
  },
43131
+ "title": {
43132
+ "type": "string",
43133
+ "description": "The title of the page, as of `revision`."
43134
+ },
41870
43135
  "sections": {
41871
43136
  "type": "array",
41872
43137
  "items": {
@@ -41880,6 +43145,7 @@
41880
43145
  "page",
41881
43146
  "revision",
41882
43147
  "space",
43148
+ "title",
41883
43149
  "sections"
41884
43150
  ]
41885
43151
  },
@@ -43291,6 +44557,282 @@
43291
44557
  }
43292
44558
  ]
43293
44559
  },
44560
+ "SiteAdaptiveRegions": {
44561
+ "type": "object",
44562
+ "description": "Groups of countries exposed to adaptive content as `visitor.region`. The key of each entry is the region name; `visitor.region` is undefined for a visitor whose country is in none of the regions. A site can declare at most 10 regions.",
44563
+ "maxProperties": 10,
44564
+ "propertyNames": {
44565
+ "pattern": "^[a-zA-Z0-9_-]+$"
44566
+ },
44567
+ "additionalProperties": {
44568
+ "type": "object",
44569
+ "properties": {
44570
+ "countries": {
44571
+ "type": "array",
44572
+ "description": "ISO 3166-1 alpha-2 codes of the countries in the region.",
44573
+ "items": {
44574
+ "type": "string",
44575
+ "enum": [
44576
+ "AD",
44577
+ "AE",
44578
+ "AF",
44579
+ "AG",
44580
+ "AI",
44581
+ "AL",
44582
+ "AM",
44583
+ "AO",
44584
+ "AQ",
44585
+ "AR",
44586
+ "AS",
44587
+ "AT",
44588
+ "AU",
44589
+ "AW",
44590
+ "AX",
44591
+ "AZ",
44592
+ "BA",
44593
+ "BB",
44594
+ "BD",
44595
+ "BE",
44596
+ "BF",
44597
+ "BG",
44598
+ "BH",
44599
+ "BI",
44600
+ "BJ",
44601
+ "BL",
44602
+ "BM",
44603
+ "BN",
44604
+ "BO",
44605
+ "BQ",
44606
+ "BR",
44607
+ "BS",
44608
+ "BT",
44609
+ "BV",
44610
+ "BW",
44611
+ "BY",
44612
+ "BZ",
44613
+ "CA",
44614
+ "CC",
44615
+ "CD",
44616
+ "CF",
44617
+ "CG",
44618
+ "CH",
44619
+ "CI",
44620
+ "CK",
44621
+ "CL",
44622
+ "CM",
44623
+ "CN",
44624
+ "CO",
44625
+ "CR",
44626
+ "CU",
44627
+ "CV",
44628
+ "CW",
44629
+ "CX",
44630
+ "CY",
44631
+ "CZ",
44632
+ "DE",
44633
+ "DJ",
44634
+ "DK",
44635
+ "DM",
44636
+ "DO",
44637
+ "DZ",
44638
+ "EC",
44639
+ "EE",
44640
+ "EG",
44641
+ "EH",
44642
+ "ER",
44643
+ "ES",
44644
+ "ET",
44645
+ "FI",
44646
+ "FJ",
44647
+ "FK",
44648
+ "FM",
44649
+ "FO",
44650
+ "FR",
44651
+ "GA",
44652
+ "GB",
44653
+ "GD",
44654
+ "GE",
44655
+ "GF",
44656
+ "GG",
44657
+ "GH",
44658
+ "GI",
44659
+ "GL",
44660
+ "GM",
44661
+ "GN",
44662
+ "GP",
44663
+ "GQ",
44664
+ "GR",
44665
+ "GS",
44666
+ "GT",
44667
+ "GU",
44668
+ "GW",
44669
+ "GY",
44670
+ "HK",
44671
+ "HM",
44672
+ "HN",
44673
+ "HR",
44674
+ "HT",
44675
+ "HU",
44676
+ "ID",
44677
+ "IE",
44678
+ "IL",
44679
+ "IM",
44680
+ "IN",
44681
+ "IO",
44682
+ "IQ",
44683
+ "IR",
44684
+ "IS",
44685
+ "IT",
44686
+ "JE",
44687
+ "JM",
44688
+ "JO",
44689
+ "JP",
44690
+ "KE",
44691
+ "KG",
44692
+ "KH",
44693
+ "KI",
44694
+ "KM",
44695
+ "KN",
44696
+ "KP",
44697
+ "KR",
44698
+ "KW",
44699
+ "KY",
44700
+ "KZ",
44701
+ "LA",
44702
+ "LB",
44703
+ "LC",
44704
+ "LI",
44705
+ "LK",
44706
+ "LR",
44707
+ "LS",
44708
+ "LT",
44709
+ "LU",
44710
+ "LV",
44711
+ "LY",
44712
+ "MA",
44713
+ "MC",
44714
+ "MD",
44715
+ "ME",
44716
+ "MF",
44717
+ "MG",
44718
+ "MH",
44719
+ "MK",
44720
+ "ML",
44721
+ "MM",
44722
+ "MN",
44723
+ "MO",
44724
+ "MP",
44725
+ "MQ",
44726
+ "MR",
44727
+ "MS",
44728
+ "MT",
44729
+ "MU",
44730
+ "MV",
44731
+ "MW",
44732
+ "MX",
44733
+ "MY",
44734
+ "MZ",
44735
+ "NA",
44736
+ "NC",
44737
+ "NE",
44738
+ "NF",
44739
+ "NG",
44740
+ "NI",
44741
+ "NL",
44742
+ "NO",
44743
+ "NP",
44744
+ "NR",
44745
+ "NU",
44746
+ "NZ",
44747
+ "OM",
44748
+ "PA",
44749
+ "PE",
44750
+ "PF",
44751
+ "PG",
44752
+ "PH",
44753
+ "PK",
44754
+ "PL",
44755
+ "PM",
44756
+ "PN",
44757
+ "PR",
44758
+ "PS",
44759
+ "PT",
44760
+ "PW",
44761
+ "PY",
44762
+ "QA",
44763
+ "RE",
44764
+ "RO",
44765
+ "RS",
44766
+ "RU",
44767
+ "RW",
44768
+ "SA",
44769
+ "SB",
44770
+ "SC",
44771
+ "SD",
44772
+ "SE",
44773
+ "SG",
44774
+ "SH",
44775
+ "SI",
44776
+ "SJ",
44777
+ "SK",
44778
+ "SL",
44779
+ "SM",
44780
+ "SN",
44781
+ "SO",
44782
+ "SR",
44783
+ "SS",
44784
+ "ST",
44785
+ "SV",
44786
+ "SX",
44787
+ "SY",
44788
+ "SZ",
44789
+ "TC",
44790
+ "TD",
44791
+ "TF",
44792
+ "TG",
44793
+ "TH",
44794
+ "TJ",
44795
+ "TK",
44796
+ "TL",
44797
+ "TM",
44798
+ "TN",
44799
+ "TO",
44800
+ "TR",
44801
+ "TT",
44802
+ "TV",
44803
+ "TW",
44804
+ "TZ",
44805
+ "UA",
44806
+ "UG",
44807
+ "UM",
44808
+ "US",
44809
+ "UY",
44810
+ "UZ",
44811
+ "VA",
44812
+ "VC",
44813
+ "VE",
44814
+ "VG",
44815
+ "VI",
44816
+ "VN",
44817
+ "VU",
44818
+ "WF",
44819
+ "WS",
44820
+ "XK",
44821
+ "YE",
44822
+ "YT",
44823
+ "ZA",
44824
+ "ZM",
44825
+ "ZW"
44826
+ ]
44827
+ }
44828
+ }
44829
+ },
44830
+ "required": [
44831
+ "countries"
44832
+ ],
44833
+ "additionalProperties": false
44834
+ }
44835
+ },
43294
44836
  "SiteAdaptiveDeterministicJSONSchemaPrimitives": {
43295
44837
  "oneOf": [
43296
44838
  {
@@ -43448,10 +44990,13 @@
43448
44990
  }
43449
44991
  ]
43450
44992
  },
43451
- "SiteAdaptiveJSONSchema": {
44993
+ "SiteAdaptiveJSONSchemaWithRegions": {
43452
44994
  "type": "object",
43453
- "description": "JSON schema describing the expected attributes of an Adaptive site schema.",
44995
+ "description": "JSON schema describing the expected attributes of an Adaptive site schema, with the regions `visitor.region` is resolved from.",
43454
44996
  "properties": {
44997
+ "regions": {
44998
+ "$ref": "#/components/schemas/SiteAdaptiveRegions"
44999
+ },
43455
45000
  "$schema": {
43456
45001
  "type": "string",
43457
45002
  "enum": [
@@ -43532,7 +45077,7 @@
43532
45077
  ]
43533
45078
  },
43534
45079
  "jsonSchema": {
43535
- "$ref": "#/components/schemas/SiteAdaptiveJSONSchema"
45080
+ "$ref": "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
43536
45081
  },
43537
45082
  "updatedAt": {
43538
45083
  "description": "When the adaptive schema was updated.",
@@ -44568,6 +46113,238 @@
44568
46113
  "scripts"
44569
46114
  ]
44570
46115
  },
46116
+ "SiteChangeRequestMemberStatus": {
46117
+ "type": "string",
46118
+ "description": "Whether the member is part of the change request, or a tombstone kept so that a member removed and later re-added keeps its identity, comments and history.",
46119
+ "enum": [
46120
+ "active",
46121
+ "removed"
46122
+ ]
46123
+ },
46124
+ "SiteChangeRequestMember": {
46125
+ "type": "object",
46126
+ "description": "State shared by every resource changed by a site change request. Each resource is versioned independently; the change request reviews and merges them as one.",
46127
+ "properties": {
46128
+ "object": {
46129
+ "type": "string",
46130
+ "enum": [
46131
+ "site-change-request-member"
46132
+ ]
46133
+ },
46134
+ "id": {
46135
+ "type": "string",
46136
+ "description": "Unique identifier for the member"
46137
+ },
46138
+ "status": {
46139
+ "$ref": "#/components/schemas/SiteChangeRequestMemberStatus"
46140
+ },
46141
+ "createdAt": {
46142
+ "$ref": "#/components/schemas/Timestamp"
46143
+ },
46144
+ "updatedAt": {
46145
+ "$ref": "#/components/schemas/Timestamp"
46146
+ }
46147
+ },
46148
+ "required": [
46149
+ "object",
46150
+ "id",
46151
+ "status",
46152
+ "createdAt",
46153
+ "updatedAt"
46154
+ ]
46155
+ },
46156
+ "SiteChangeRequestContentMember": {
46157
+ "allOf": [
46158
+ {
46159
+ "$ref": "#/components/schemas/SiteChangeRequestMember"
46160
+ },
46161
+ {
46162
+ "type": "object",
46163
+ "description": "Content of one space changed by a site change request.",
46164
+ "properties": {
46165
+ "space": {
46166
+ "type": "string",
46167
+ "description": "ID of the space whose content changes."
46168
+ },
46169
+ "baseRevisionId": {
46170
+ "type": "string",
46171
+ "description": "ID of the revision in the space's main content this member diverged from."
46172
+ },
46173
+ "headRevisionId": {
46174
+ "type": "string",
46175
+ "description": "ID of the revision currently proposed for the space."
46176
+ },
46177
+ "mergedRevisionId": {
46178
+ "type": "string",
46179
+ "description": "ID of the revision produced in the space's main content when this member was merged. Only present once the change request has been merged."
46180
+ }
46181
+ },
46182
+ "required": [
46183
+ "space",
46184
+ "baseRevisionId",
46185
+ "headRevisionId"
46186
+ ]
46187
+ }
46188
+ ]
46189
+ },
46190
+ "SiteChangeRequestStructureMember": {
46191
+ "allOf": [
46192
+ {
46193
+ "$ref": "#/components/schemas/SiteChangeRequestMember"
46194
+ },
46195
+ {
46196
+ "type": "object",
46197
+ "description": "Structure of the site changed by a site change request: its space membership, sections, ordering and paths.",
46198
+ "properties": {
46199
+ "base": {
46200
+ "description": "The live site structure this member diverged from.",
46201
+ "$ref": "#/components/schemas/SiteStructure"
46202
+ },
46203
+ "head": {
46204
+ "description": "The site structure currently proposed.",
46205
+ "$ref": "#/components/schemas/SiteStructure"
46206
+ }
46207
+ }
46208
+ }
46209
+ ]
46210
+ },
46211
+ "SiteChangeRequestCustomizationMember": {
46212
+ "allOf": [
46213
+ {
46214
+ "$ref": "#/components/schemas/SiteChangeRequestMember"
46215
+ },
46216
+ {
46217
+ "type": "object",
46218
+ "description": "Customization settings of the site changed by a site change request.",
46219
+ "properties": {
46220
+ "base": {
46221
+ "description": "The live customization settings this member diverged from.",
46222
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
46223
+ },
46224
+ "head": {
46225
+ "description": "The customization settings currently proposed.",
46226
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
46227
+ }
46228
+ }
46229
+ }
46230
+ ]
46231
+ },
46232
+ "SiteChangeRequest": {
46233
+ "type": "object",
46234
+ "description": "A change request reviewing a site as a whole. It groups every proposed change — the site's structure and its content — into one review, one lifecycle and one merge decision.",
46235
+ "properties": {
46236
+ "object": {
46237
+ "type": "string",
46238
+ "enum": [
46239
+ "site-change-request"
46240
+ ]
46241
+ },
46242
+ "id": {
46243
+ "type": "string",
46244
+ "description": "Unique identifier for the change request"
46245
+ },
46246
+ "organization": {
46247
+ "type": "string",
46248
+ "description": "ID of the organization owning the change request."
46249
+ },
46250
+ "site": {
46251
+ "type": "string",
46252
+ "description": "ID of the site reviewed by the change request."
46253
+ },
46254
+ "number": {
46255
+ "type": "number",
46256
+ "description": "Incremental identifier of the change request within the site."
46257
+ },
46258
+ "version": {
46259
+ "type": "number",
46260
+ "description": "Identity of the complete set of member states currently exposed. It increments once per completed update, so a review can detect that it applies to outdated content."
46261
+ },
46262
+ "status": {
46263
+ "$ref": "#/components/schemas/ChangeRequestStatus"
46264
+ },
46265
+ "subject": {
46266
+ "$ref": "#/components/schemas/ChangeRequestSubject"
46267
+ },
46268
+ "description": {
46269
+ "$ref": "#/components/schemas/JSONDocument"
46270
+ },
46271
+ "links": {
46272
+ "$ref": "#/components/schemas/ChangeRequestLinks"
46273
+ },
46274
+ "content": {
46275
+ "type": "array",
46276
+ "description": "Spaces whose content the change request changes, one entry per space. Empty when it only changes the site itself.",
46277
+ "items": {
46278
+ "$ref": "#/components/schemas/SiteChangeRequestContentMember"
46279
+ }
46280
+ },
46281
+ "structure": {
46282
+ "$ref": "#/components/schemas/SiteChangeRequestStructureMember",
46283
+ "description": "Only present when the change request changes the site structure."
46284
+ },
46285
+ "customization": {
46286
+ "$ref": "#/components/schemas/SiteChangeRequestCustomizationMember",
46287
+ "description": "Only present when the change request changes the site customization settings."
46288
+ },
46289
+ "comments": {
46290
+ "type": "number",
46291
+ "description": "Count of opened comments across all members of the change request."
46292
+ },
46293
+ "createdBy": {
46294
+ "$ref": "#/components/schemas/User"
46295
+ },
46296
+ "createdAt": {
46297
+ "$ref": "#/components/schemas/Timestamp"
46298
+ },
46299
+ "updatedAt": {
46300
+ "$ref": "#/components/schemas/Timestamp"
46301
+ },
46302
+ "mergedBy": {
46303
+ "$ref": "#/components/schemas/User",
46304
+ "description": "User who merged the change request. Only present when it has been merged."
46305
+ },
46306
+ "mergedAt": {
46307
+ "$ref": "#/components/schemas/Timestamp",
46308
+ "description": "Date at which the change request was merged. Only present when it has been merged."
46309
+ },
46310
+ "urls": {
46311
+ "type": "object",
46312
+ "description": "URLs associated with the object",
46313
+ "properties": {
46314
+ "app": {
46315
+ "type": "string",
46316
+ "description": "URL of the change request in the application",
46317
+ "format": "uri"
46318
+ },
46319
+ "location": {
46320
+ "type": "string",
46321
+ "description": "URL of the change request in the API",
46322
+ "format": "uri"
46323
+ }
46324
+ },
46325
+ "required": [
46326
+ "app",
46327
+ "location"
46328
+ ]
46329
+ }
46330
+ },
46331
+ "required": [
46332
+ "object",
46333
+ "id",
46334
+ "organization",
46335
+ "site",
46336
+ "number",
46337
+ "version",
46338
+ "status",
46339
+ "subject",
46340
+ "content",
46341
+ "comments",
46342
+ "createdBy",
46343
+ "createdAt",
46344
+ "updatedAt",
46345
+ "urls"
46346
+ ]
46347
+ },
44571
46348
  "ShareLinkName": {
44572
46349
  "type": "string",
44573
46350
  "description": "Name of the share link",
@@ -45590,10 +47367,11 @@
45590
47367
  "enum": [
45591
47368
  "updatedAt",
45592
47369
  "severity",
45593
- "sources"
47370
+ "sources",
47371
+ "suggestedFix"
45594
47372
  ],
45595
47373
  "default": "updatedAt",
45596
- "description": "The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. Defaults to 'updatedAt'."
47374
+ "description": "The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. `suggestedFix` is for link findings: those that come with a fix (a suggested redirect, or an outbound link to correct) come before broken URLs the audit found no page for, most severe first within each group. Other finding types sort with the second group. Defaults to 'updatedAt'."
45597
47375
  },
45598
47376
  "SiteFindingTitle": {
45599
47377
  "type": "string",
@@ -45632,7 +47410,7 @@
45632
47410
  },
45633
47411
  "SiteFindingBrokenLinkAction": {
45634
47412
  "type": "object",
45635
- "description": "Suggested fix for a broken-link finding, shaped as the input for `createSiteRedirect` so it can be applied directly. Absent when the finding has no directly applicable redirect (for example, a suggestion to create a new page).",
47413
+ "description": "Suggested fix for a broken-link finding, shaped as the input for `createSiteRedirect` so it can be applied directly. Absent when the finding has no directly applicable redirect (for example, a suggestion to create a new page). The destination is absent when the audit judged the URL and found no page to redirect to: a redirect can still be created from the source with a destination of your choosing.",
45636
47414
  "properties": {
45637
47415
  "source": {
45638
47416
  "$ref": "#/components/schemas/SiteRedirectSourcePath"
@@ -45646,8 +47424,7 @@
45646
47424
  }
45647
47425
  },
45648
47426
  "required": [
45649
- "source",
45650
- "destination"
47427
+ "source"
45651
47428
  ]
45652
47429
  },
45653
47430
  "SiteFindingOutboundLink": {
@@ -46108,6 +47885,24 @@
46108
47885
  "type": "number"
46109
47886
  }
46110
47887
  },
47888
+ "SiteFindingStatsBrokenLinks": {
47889
+ "type": "object",
47890
+ "description": "Breakdown of the broken-link findings included in the aggregation.",
47891
+ "properties": {
47892
+ "redirectSuggested": {
47893
+ "type": "number",
47894
+ "description": "Broken URLs the audit found a page to redirect to."
47895
+ },
47896
+ "noMatchingPage": {
47897
+ "type": "number",
47898
+ "description": "Broken URLs the audit judged and found no page to redirect to."
47899
+ }
47900
+ },
47901
+ "required": [
47902
+ "redirectSuggested",
47903
+ "noMatchingPage"
47904
+ ]
47905
+ },
46111
47906
  "SiteFindingStats": {
46112
47907
  "type": "object",
46113
47908
  "description": "Aggregated stats for the findings identified on a site.",
@@ -46125,6 +47920,9 @@
46125
47920
  "connectors": {
46126
47921
  "$ref": "#/components/schemas/SiteFindingStatsConnectors"
46127
47922
  },
47923
+ "brokenLinks": {
47924
+ "$ref": "#/components/schemas/SiteFindingStatsBrokenLinks"
47925
+ },
46128
47926
  "questions": {
46129
47927
  "type": "number",
46130
47928
  "description": "Count of findings with at least one piece of evidence coming from a site question."
@@ -46139,6 +47937,7 @@
46139
47937
  "statuses",
46140
47938
  "severities",
46141
47939
  "connectors",
47940
+ "brokenLinks",
46142
47941
  "questions",
46143
47942
  "mergedChangeRequests"
46144
47943
  ]
@@ -46161,7 +47960,8 @@
46161
47960
  "pending",
46162
47961
  "syncing",
46163
47962
  "succeeded",
46164
- "failed"
47963
+ "failed",
47964
+ "skipped"
46165
47965
  ]
46166
47966
  },
46167
47967
  "ContextConnectionFailureReason": {
@@ -46175,6 +47975,17 @@
46175
47975
  "unknown"
46176
47976
  ]
46177
47977
  },
47978
+ "AISkipReason": {
47979
+ "type": "string",
47980
+ "description": "Why an AI task was skipped before execution.\n\n- `ai_unavailable_for_organization`: The organization's effective plan does not include AI or a\n required feature. Takes precedence when both the organization and site plans block the task.\n- `ai_unavailable_for_site`: The site's effective plan does not include the required feature.\n The site's applied plan takes precedence over its own plan.\n- `ai_paused`: AI usage is temporarily paused by automatic usage controls.\n- `ai_disabled`: AI or a required AI feature has been turned off in the organization's settings.\n- `ai_restricted`: AI is blocked by GitBook or a contractual restriction and cannot be enabled\n through organization settings.",
47981
+ "enum": [
47982
+ "ai_unavailable_for_organization",
47983
+ "ai_unavailable_for_site",
47984
+ "ai_disabled",
47985
+ "ai_restricted",
47986
+ "ai_paused"
47987
+ ]
47988
+ },
46178
47989
  "ContextSearchBoost": {
46179
47990
  "type": "string",
46180
47991
  "description": "Relative score adjustment applied to records from a connection when searching.",
@@ -46677,6 +48488,17 @@
46677
48488
  "maxLength": 1024,
46678
48489
  "description": "Atlassian API token used for outbound writes. Redacted when read back."
46679
48490
  },
48491
+ "projectKeys": {
48492
+ "type": "array",
48493
+ "maxItems": 100,
48494
+ "uniqueItems": true,
48495
+ "description": "Projects where GitBook handles issues. Empty means all accessible projects.",
48496
+ "items": {
48497
+ "type": "string",
48498
+ "minLength": 1,
48499
+ "maxLength": 255
48500
+ }
48501
+ },
46680
48502
  "statusMapping": {
46681
48503
  "type": "object",
46682
48504
  "description": "Jira status to move the linked issue to when the change request reaches a given status, e.g. `{ \"merged\": \"Done\" }`. A status left out is not synced.",
@@ -46745,6 +48567,9 @@
46745
48567
  "failureReason": {
46746
48568
  "$ref": "#/components/schemas/ContextConnectionFailureReason"
46747
48569
  },
48570
+ "skipReason": {
48571
+ "$ref": "#/components/schemas/AISkipReason"
48572
+ },
46748
48573
  "email": {
46749
48574
  "type": "object",
46750
48575
  "description": "Parameters associated with the connection when it is an email connection",
@@ -47439,6 +49264,10 @@
47439
49264
  "type": "string",
47440
49265
  "description": "The revision ID of the result"
47441
49266
  },
49267
+ "path": {
49268
+ "type": "string",
49269
+ "description": "The path of the page within its space, as the published site serves it."
49270
+ },
47442
49271
  "anchor": {
47443
49272
  "type": "string",
47444
49273
  "description": "The anchor of the result"
@@ -48280,6 +50109,48 @@
48280
50109
  "totalPages"
48281
50110
  ]
48282
50111
  },
50112
+ "AIToolCallStartBackgroundAgent": {
50113
+ "type": "object",
50114
+ "description": "Tool call recording that the agent started a background agent: a child conversation running one bounded task on its own, in parallel with the conversation that started it. The client renders its live status from `AgentState.backgroundAgents`, matched on `agentId`, and can open the child conversation to read what it did.\n",
50115
+ "properties": {
50116
+ "tool": {
50117
+ "type": "string",
50118
+ "enum": [
50119
+ "startBackgroundAgent"
50120
+ ]
50121
+ },
50122
+ "agentId": {
50123
+ "type": "string",
50124
+ "description": "Identifier of the background agent within the conversation that started it."
50125
+ },
50126
+ "conversationId": {
50127
+ "type": "string",
50128
+ "description": "The child conversation holding the background agent's transcript. It can only be read, never continued.\n"
50129
+ },
50130
+ "title": {
50131
+ "type": "string",
50132
+ "description": "A few words naming what the background agent is doing, for a tab and a line of a transcript. The task itself is a brief and far too long to label anything with.\n"
50133
+ },
50134
+ "task": {
50135
+ "type": "string",
50136
+ "description": "The task the background agent was given."
50137
+ },
50138
+ "pages": {
50139
+ "type": "array",
50140
+ "description": "IDs of the pages the background agent owns, when it was started to change content. Two background agents of the same conversation never own the same page.\n",
50141
+ "items": {
50142
+ "type": "string"
50143
+ }
50144
+ }
50145
+ },
50146
+ "required": [
50147
+ "tool",
50148
+ "agentId",
50149
+ "conversationId",
50150
+ "title",
50151
+ "task"
50152
+ ]
50153
+ },
48283
50154
  "AIToolCallMCP": {
48284
50155
  "type": "object",
48285
50156
  "description": "Tool called from an MCP server",
@@ -48434,6 +50305,9 @@
48434
50305
  {
48435
50306
  "$ref": "#/components/schemas/AIToolCallCheckContentImport"
48436
50307
  },
50308
+ {
50309
+ "$ref": "#/components/schemas/AIToolCallStartBackgroundAgent"
50310
+ },
48437
50311
  {
48438
50312
  "$ref": "#/components/schemas/AIToolCallMCP"
48439
50313
  },
@@ -48764,6 +50638,26 @@
48764
50638
  "spaceId",
48765
50639
  "changeRequestId"
48766
50640
  ]
50641
+ },
50642
+ {
50643
+ "type": "object",
50644
+ "description": "When the agent is a background agent running one task for the conversation that started it.\n",
50645
+ "properties": {
50646
+ "type": {
50647
+ "type": "string",
50648
+ "enum": [
50649
+ "background_agent"
50650
+ ]
50651
+ },
50652
+ "parentConversationId": {
50653
+ "type": "string",
50654
+ "description": "The conversation that started this background agent."
50655
+ }
50656
+ },
50657
+ "required": [
50658
+ "type",
50659
+ "parentConversationId"
50660
+ ]
48767
50661
  }
48768
50662
  ]
48769
50663
  },
@@ -49834,6 +51728,17 @@
49834
51728
  "description": "URL of the location.",
49835
51729
  "$ref": "#/components/schemas/URL"
49836
51730
  },
51731
+ "previousUrl": {
51732
+ "description": "URL of the page of the site the visitor was on before this one, if any. Unlike the session referrer, it follows navigation within the site. Only recorded when it has the same origin as `url`; any other value is discarded.",
51733
+ "oneOf": [
51734
+ {
51735
+ "type": "null"
51736
+ },
51737
+ {
51738
+ "$ref": "#/components/schemas/URL"
51739
+ }
51740
+ ]
51741
+ },
49837
51742
  "displayContext": {
49838
51743
  "description": "Whether the event was tracked on the site, the server, or an embed widget.",
49839
51744
  "$ref": "#/components/schemas/SiteInsightsDisplayContext",
@@ -50208,6 +52113,17 @@
50208
52113
  "enum": [
50209
52114
  "ask_view"
50210
52115
  ]
52116
+ },
52117
+ "trigger": {
52118
+ "type": "string",
52119
+ "enum": [
52120
+ "hover",
52121
+ "selection",
52122
+ "site",
52123
+ "page",
52124
+ "code",
52125
+ "embed"
52126
+ ]
50211
52127
  }
50212
52128
  },
50213
52129
  "required": [
@@ -50216,6 +52132,39 @@
50216
52132
  }
50217
52133
  ]
50218
52134
  },
52135
+ "SiteInsightsEventAskTriggerClick": {
52136
+ "description": "Event when a user clicks an entry point that opens the ask UI.",
52137
+ "allOf": [
52138
+ {
52139
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
52140
+ },
52141
+ {
52142
+ "type": "object",
52143
+ "properties": {
52144
+ "type": {
52145
+ "type": "string",
52146
+ "enum": [
52147
+ "ask_trigger_click"
52148
+ ]
52149
+ },
52150
+ "trigger": {
52151
+ "type": "string",
52152
+ "enum": [
52153
+ "hover",
52154
+ "selection",
52155
+ "site",
52156
+ "page",
52157
+ "code"
52158
+ ]
52159
+ }
52160
+ },
52161
+ "required": [
52162
+ "type",
52163
+ "trigger"
52164
+ ]
52165
+ }
52166
+ ]
52167
+ },
50219
52168
  "SiteInsightsEventAskRateResponse": {
50220
52169
  "allOf": [
50221
52170
  {
@@ -50568,6 +52517,9 @@
50568
52517
  {
50569
52518
  "$ref": "#/components/schemas/SiteInsightsEventAskView"
50570
52519
  },
52520
+ {
52521
+ "$ref": "#/components/schemas/SiteInsightsEventAskTriggerClick"
52522
+ },
50571
52523
  {
50572
52524
  "$ref": "#/components/schemas/SiteInsightsEventAskRateResponse"
50573
52525
  },
@@ -51113,6 +53065,7 @@
51113
53065
  },
51114
53066
  {
51115
53067
  "type": "object",
53068
+ "description": "How a page was rated, counted once per rating a reader submitted rather than once per\nevent: rating a page and then commenting on it records two events carrying the same\nrating, and a reader may rate a page again on a later visit.\n",
51116
53069
  "required": [
51117
53070
  "column"
51118
53071
  ],
@@ -51167,6 +53120,21 @@
51167
53120
  }
51168
53121
  }
51169
53122
  },
53123
+ {
53124
+ "type": "object",
53125
+ "description": "Path of the page of the site the visitor was on before the event, without the origin, share-link prefix, query string or fragment. Empty when the visitor came from another origin, or for events tracked before it was recorded.",
53126
+ "required": [
53127
+ "column"
53128
+ ],
53129
+ "properties": {
53130
+ "column": {
53131
+ "type": "string",
53132
+ "enum": [
53133
+ "previousUrl"
53134
+ ]
53135
+ }
53136
+ }
53137
+ },
51170
53138
  {
51171
53139
  "type": "object",
51172
53140
  "required": [
@@ -51341,6 +53309,7 @@
51341
53309
  "agent_feedback",
51342
53310
  "ask_question",
51343
53311
  "ask_view",
53312
+ "ask_trigger_click",
51344
53313
  "ask_rate_response",
51345
53314
  "link_click",
51346
53315
  "api_client_open",
@@ -51426,7 +53395,15 @@
51426
53395
  "meta-ads",
51427
53396
  "duckassist",
51428
53397
  "amzn-searchbot",
51429
- "amzn-user"
53398
+ "amzn-user",
53399
+ "other-bot",
53400
+ "parallel",
53401
+ "exa",
53402
+ "linkup",
53403
+ "vertex-ai",
53404
+ "atlassian",
53405
+ "kapa",
53406
+ "bedrock"
51430
53407
  ]
51431
53408
  },
51432
53409
  "SiteInsightsPageNotFoundType": {
@@ -52296,6 +54273,7 @@
52296
54273
  },
52297
54274
  {
52298
54275
  "type": "object",
54276
+ "description": "Ratings submitted on a page, counted once per rating a reader submitted rather than once\nper event.\n",
52299
54277
  "required": [
52300
54278
  "column",
52301
54279
  "values"
@@ -52469,6 +54447,27 @@
52469
54447
  }
52470
54448
  }
52471
54449
  },
54450
+ {
54451
+ "type": "object",
54452
+ "required": [
54453
+ "column",
54454
+ "values"
54455
+ ],
54456
+ "properties": {
54457
+ "column": {
54458
+ "type": "string",
54459
+ "enum": [
54460
+ "previousUrl"
54461
+ ]
54462
+ },
54463
+ "values": {
54464
+ "type": "array",
54465
+ "items": {
54466
+ "type": "string"
54467
+ }
54468
+ }
54469
+ }
54470
+ },
52472
54471
  {
52473
54472
  "type": "object",
52474
54473
  "required": [
@@ -52668,6 +54667,7 @@
52668
54667
  "SiteInsightsQueryRangePreset": {
52669
54668
  "type": "string",
52670
54669
  "enum": [
54670
+ "yearToDate",
52671
54671
  "lastYear",
52672
54672
  "last3Months",
52673
54673
  "last30Days",
@@ -53879,11 +55879,11 @@
53879
55879
  "minimum": 0,
53880
55880
  "description": "Current numeric billing override, when set."
53881
55881
  },
53882
- "OrganizationBillingPercentageOverride": {
55882
+ "Percentage": {
53883
55883
  "type": "number",
53884
55884
  "minimum": 0,
53885
55885
  "maximum": 100,
53886
- "description": "Current percentage billing override, when set."
55886
+ "description": "A percentage from 0 to 100."
53887
55887
  },
53888
55888
  "OrganizationBillingOverrides": {
53889
55889
  "type": "object",
@@ -53905,11 +55905,22 @@
53905
55905
  },
53906
55906
  "aiCreditRollover": {
53907
55907
  "description": "Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.",
53908
- "$ref": "#/components/schemas/OrganizationBillingPercentageOverride"
55908
+ "$ref": "#/components/schemas/Percentage"
53909
55909
  },
53910
55910
  "aiCreditAlertThreshold": {
53911
55911
  "description": "Percentage of total AI credits remaining at which to send a low-balance alert.",
53912
- "$ref": "#/components/schemas/OrganizationBillingPercentageOverride"
55912
+ "$ref": "#/components/schemas/Percentage"
55913
+ },
55914
+ "aiCreditPauseEnabled": {
55915
+ "description": "Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.",
55916
+ "type": "boolean"
55917
+ },
55918
+ "hasAI": {
55919
+ "description": "False when the organization's contract requires AI to stay off, regardless of the admin setting.",
55920
+ "type": "boolean",
55921
+ "enum": [
55922
+ false
55923
+ ]
53913
55924
  },
53914
55925
  "minUsers": {
53915
55926
  "description": "Current minimum users override, when set.",
@@ -53942,6 +55953,17 @@
53942
55953
  "overrides"
53943
55954
  ]
53944
55955
  },
55956
+ "PercentageThreshold": {
55957
+ "description": "A percentage threshold, or null when disabled.",
55958
+ "oneOf": [
55959
+ {
55960
+ "$ref": "#/components/schemas/Percentage"
55961
+ },
55962
+ {
55963
+ "type": "null"
55964
+ }
55965
+ ]
55966
+ },
53945
55967
  "BackOfficeSite": {
53946
55968
  "allOf": [
53947
55969
  {
@@ -54122,6 +56144,10 @@
54122
56144
  "type": "string",
54123
56145
  "description": "JWT token generated for a authenticated access session."
54124
56146
  },
56147
+ "country": {
56148
+ "type": "string",
56149
+ "description": "ISO 3166-1 alpha-2 code of the country the visitor is browsing from, as detected by the renderer."
56150
+ },
54125
56151
  "unsignedClaims": {
54126
56152
  "$ref": "#/components/schemas/PlainObject"
54127
56153
  }
@@ -54392,7 +56418,8 @@
54392
56418
  "type": "string",
54393
56419
  "description": "Predefined GitBook user identifiers",
54394
56420
  "enum": [
54395
- "gitbook:agent"
56421
+ "gitbook:agent",
56422
+ "gitbook:gitsync"
54396
56423
  ]
54397
56424
  },
54398
56425
  "ContentLocationRevisionContext": {
@@ -54885,6 +56912,12 @@
54885
56912
  "maxLength": 300,
54886
56913
  "minLength": 0
54887
56914
  },
56915
+ "tagTitle": {
56916
+ "description": "Optional custom title overriding only the page-title segment of the composed `<title>` tag (`<tagTitle || title> | <section> | <site>`).",
56917
+ "type": "string",
56918
+ "maxLength": 100,
56919
+ "minLength": 0
56920
+ },
54888
56921
  "slug": {
54889
56922
  "description": "Page's slug in its direct parent",
54890
56923
  "type": "string"
@@ -55776,6 +57809,10 @@
55776
57809
  ],
55777
57810
  "description": "Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted."
55778
57811
  },
57812
+ "visitorRegion": {
57813
+ "type": "string",
57814
+ "description": "The region containing the country of the visitor for whom the token was generated. Omitted if the country isn't in any region."
57815
+ },
55779
57816
  "claims": {
55780
57817
  "type": "object",
55781
57818
  "description": "Attributes or assertions that provide specific details about the visitor for which the token was generated.",
@@ -57672,6 +59709,80 @@
57672
59709
  "dark"
57673
59710
  ]
57674
59711
  },
59712
+ "SiteAdaptiveJSONSchema": {
59713
+ "type": "object",
59714
+ "description": "JSON schema describing the expected attributes of an Adaptive site schema.",
59715
+ "properties": {
59716
+ "$schema": {
59717
+ "type": "string",
59718
+ "enum": [
59719
+ "http://json-schema.org/draft-07/schema#"
59720
+ ]
59721
+ },
59722
+ "type": {
59723
+ "type": "string",
59724
+ "enum": [
59725
+ "object"
59726
+ ]
59727
+ },
59728
+ "properties": {
59729
+ "type": "object",
59730
+ "properties": {
59731
+ "unsigned": {
59732
+ "type": "object",
59733
+ "description": "Unsigned claims of the site visitor.",
59734
+ "properties": {
59735
+ "type": {
59736
+ "type": "string",
59737
+ "enum": [
59738
+ "object"
59739
+ ]
59740
+ },
59741
+ "description": {
59742
+ "type": "string",
59743
+ "enum": [
59744
+ "Unsigned claims of the site visitor."
59745
+ ]
59746
+ },
59747
+ "properties": {
59748
+ "type": "object",
59749
+ "additionalProperties": {
59750
+ "$ref": "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
59751
+ }
59752
+ },
59753
+ "additionalProperties": {
59754
+ "type": "boolean",
59755
+ "enum": [
59756
+ false
59757
+ ]
59758
+ }
59759
+ },
59760
+ "required": [
59761
+ "type",
59762
+ "description",
59763
+ "properties",
59764
+ "additionalProperties"
59765
+ ]
59766
+ }
59767
+ },
59768
+ "additionalProperties": {
59769
+ "$ref": "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
59770
+ }
59771
+ },
59772
+ "additionalProperties": {
59773
+ "type": "boolean",
59774
+ "enum": [
59775
+ false
59776
+ ]
59777
+ }
59778
+ },
59779
+ "required": [
59780
+ "type",
59781
+ "properties",
59782
+ "additionalProperties"
59783
+ ],
59784
+ "additionalProperties": false
59785
+ },
57675
59786
  "SiteAdaptiveDeterministicJSONSchemaClaimsProperties": {
57676
59787
  "oneOf": [
57677
59788
  {
@@ -57941,6 +60052,63 @@
57941
60052
  "modified-pages"
57942
60053
  ]
57943
60054
  },
60055
+ "AgentBackgroundAgentStatus": {
60056
+ "type": "string",
60057
+ "description": "What became of a background agent.\n`running` while it works, `completed` when it reported its result, `failed` when it crashed without recovering or its request was refused, and `stopped` when someone stopped it.\n",
60058
+ "enum": [
60059
+ "running",
60060
+ "completed",
60061
+ "failed",
60062
+ "stopped"
60063
+ ]
60064
+ },
60065
+ "AgentBackgroundAgent": {
60066
+ "type": "object",
60067
+ "description": "A background agent of the conversation: a child running one task on its own. Carries what a client shows about it and nothing of what it produced — the report it writes goes to the agent that started it, and its transcript is read by opening its conversation.\n",
60068
+ "properties": {
60069
+ "id": {
60070
+ "type": "string",
60071
+ "description": "Identifier of the background agent within the conversation that started it."
60072
+ },
60073
+ "conversationId": {
60074
+ "type": "string",
60075
+ "description": "The child conversation holding its transcript, which can only be read."
60076
+ },
60077
+ "title": {
60078
+ "type": "string",
60079
+ "description": "A few words naming what it is doing, for a tab and a line of a transcript."
60080
+ },
60081
+ "task": {
60082
+ "type": "string",
60083
+ "description": "The task it was given."
60084
+ },
60085
+ "status": {
60086
+ "$ref": "#/components/schemas/AgentBackgroundAgentStatus"
60087
+ },
60088
+ "startedAt": {
60089
+ "type": "string",
60090
+ "format": "date-time",
60091
+ "description": "When it was started."
60092
+ },
60093
+ "finishedAt": {
60094
+ "type": "string",
60095
+ "format": "date-time",
60096
+ "description": "When it stopped running. Absent while it still runs."
60097
+ },
60098
+ "error": {
60099
+ "type": "string",
60100
+ "description": "Why it failed, when it did."
60101
+ }
60102
+ },
60103
+ "required": [
60104
+ "id",
60105
+ "conversationId",
60106
+ "title",
60107
+ "task",
60108
+ "status",
60109
+ "startedAt"
60110
+ ]
60111
+ },
57944
60112
  "AgentState": {
57945
60113
  "type": "object",
57946
60114
  "properties": {
@@ -57984,6 +60152,13 @@
57984
60152
  "$ref": "#/components/schemas/AgentEditScope",
57985
60153
  "description": "How far this conversation should reach when it changes content.\n"
57986
60154
  },
60155
+ "backgroundAgents": {
60156
+ "type": "array",
60157
+ "description": "The background agents this conversation has started, oldest first. Present on every state event so a client can render each one's live status against the tool call that started it.\n",
60158
+ "items": {
60159
+ "$ref": "#/components/schemas/AgentBackgroundAgent"
60160
+ }
60161
+ },
57987
60162
  "consultOnly": {
57988
60163
  "type": "boolean",
57989
60164
  "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"