@gitbook/api 0.199.0 → 0.200.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/spec/openapi.yaml CHANGED
@@ -5865,6 +5865,12 @@ paths:
5865
5865
  schema:
5866
5866
  type: string
5867
5867
  description: If defined, only change requests linked to this site topic will be returned.
5868
+ - name: styleguideRun
5869
+ in: query
5870
+ required: false
5871
+ schema:
5872
+ type: string
5873
+ description: If defined, only change requests opened by this style guide check run will be returned.
5868
5874
  - name: finding
5869
5875
  in: query
5870
5876
  required: false
@@ -9446,7 +9452,9 @@ paths:
9446
9452
  /orgs/{organizationId}/sites/{siteId}/findings:
9447
9453
  get:
9448
9454
  operationId: listSiteFindings
9449
- summary: List all site context findings
9455
+ summary: List documentation issues GitBook has found on a site
9456
+ 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.
9457
+ x-gitbook-mcp: true
9450
9458
  tags:
9451
9459
  - site-context
9452
9460
  security:
@@ -9535,7 +9543,9 @@ paths:
9535
9543
  /orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}:
9536
9544
  get:
9537
9545
  operationId: getSiteFindingById
9538
- summary: Get a site finding by ID
9546
+ summary: Get details of a single documentation issue
9547
+ description: Retrieves the full detail of one documentation issue found by GitBook's AI. Use this after `listSiteFindings` to inspect a specific issue before deciding to fix, dismiss, or investigate it further.
9548
+ x-gitbook-mcp: true
9539
9549
  tags:
9540
9550
  - site-context
9541
9551
  security:
@@ -9555,7 +9565,9 @@ paths:
9555
9565
  $ref: "#/components/schemas/SiteFinding"
9556
9566
  patch:
9557
9567
  operationId: updateSiteFindingById
9558
- summary: Update a site finding
9568
+ summary: Resolve, dismiss, or reopen a documentation issue
9569
+ description: Changes the status of a documentation issue found by GitBook's AI, typically after fixing it (for example via `triggerChangeRequestsForSiteFinding`) or dismissing it as not worth acting on. This does not edit any content itself — it only records the outcome.
9570
+ x-gitbook-mcp: true
9559
9571
  tags:
9560
9572
  - site-context
9561
9573
  security:
@@ -9587,7 +9599,9 @@ paths:
9587
9599
  /orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests:
9588
9600
  get:
9589
9601
  operationId: listChangeRequestsForSiteFinding
9590
- summary: List change requests linked to a site finding
9602
+ summary: List content fixes already proposed for a documentation issue
9603
+ description: Lists the change requests created to fix a documentation issue. Use this to check whether an issue already has a pending or merged fix before triggering a new one.
9604
+ x-gitbook-mcp: true
9591
9605
  tags:
9592
9606
  - site-context
9593
9607
  security:
@@ -9618,7 +9632,9 @@ paths:
9618
9632
  $ref: "#/components/schemas/ChangeRequest"
9619
9633
  post:
9620
9634
  operationId: triggerChangeRequestsForSiteFinding
9621
- summary: Process a site finding into change requests
9635
+ summary: Fix a documentation issue by generating a change request
9636
+ description: "Starts GitBook's AI on fixing a documentation issue directly: it drafts the content change and opens it as a change request for review, rather than editing content in place. This is the primary way to act on \"fix issues/gaps/broken links in my docs\" requests once `listSiteFindings` has surfaced the relevant findings. Processing is asynchronous; poll `listChangeRequestsForSiteFinding` for the resulting change request, then review and merge it with `submitOrMergeChangeRequest`."
9637
+ x-gitbook-mcp: true
9622
9638
  tags:
9623
9639
  - site-context
9624
9640
  security:
@@ -9635,7 +9651,9 @@ paths:
9635
9651
  /orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages:
9636
9652
  get:
9637
9653
  operationId: listPagesForSiteFinding
9638
- summary: List pages linked to a site finding
9654
+ summary: List the pages affected by a documentation issue
9655
+ description: Lists the site pages a documentation issue relates to. Use this to locate which page(s) to edit when fixing an issue manually instead of via `triggerChangeRequestsForSiteFinding`.
9656
+ x-gitbook-mcp: true
9639
9657
  tags:
9640
9658
  - site-context
9641
9659
  security:
@@ -9667,7 +9685,9 @@ paths:
9667
9685
  /orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions:
9668
9686
  get:
9669
9687
  operationId: listQuestionsForSiteFinding
9670
- summary: List questions linked to a site finding
9688
+ summary: List the Ask-AI questions evidencing a documentation issue
9689
+ description: Lists the questions end users asked GitBook's Ask-AI assistant that were used as evidence for a documentation issue. Use this to see what users actually wanted to know before deciding how to fix the issue.
9690
+ x-gitbook-mcp: true
9671
9691
  tags:
9672
9692
  - site-context
9673
9693
  security:
@@ -9699,7 +9719,9 @@ paths:
9699
9719
  /orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records:
9700
9720
  get:
9701
9721
  operationId: listRecordsForSiteFinding
9702
- summary: List records linked to a site finding
9722
+ summary: List the source content evidencing a documentation issue
9723
+ description: Lists the context records that GitBook's AI used as evidence for a documentation issue. Use this to see what real-world signal led to the finding before deciding how to fix it.
9724
+ x-gitbook-mcp: true
9703
9725
  tags:
9704
9726
  - site-context
9705
9727
  security:
@@ -9731,8 +9753,9 @@ paths:
9731
9753
  /orgs/{organizationId}/sites/{siteId}/stats/findings:
9732
9754
  get:
9733
9755
  operationId: getSiteFindingStats
9734
- summary: Get aggregate statistics about the findings identified on a site
9735
- description: Returns aggregate statistics about the findings GitBook identified on a site — how many were found, how they break down by status and severity, which connectors surfaced them, and how many change requests created to fix them have been merged. Accepts the same filters as the finding list endpoint, so the stats can follow the list the user is looking at. Use it for a high-level view before drilling into individual findings.
9756
+ summary: Get a summary of documentation issues found on a site
9757
+ description: Returns aggregate statistics about the documentation issues GitBook identified on a site. Accepts the same filters as `listSiteFindings`. Use this to answer "how healthy are my docs" before drilling into individual findings.
9758
+ x-gitbook-mcp: true
9736
9759
  tags:
9737
9760
  - site-context
9738
9761
  security:
@@ -10058,7 +10081,9 @@ paths:
10058
10081
  /orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings:
10059
10082
  delete:
10060
10083
  operationId: deleteSiteTopicFindings
10061
- summary: Delete all findings for a topic
10084
+ summary: Delete all documentation issues found under a topic
10085
+ description: Permanently deletes every finding associated with a site topic, regardless of status. This is a bulk, irreversible cleanup operation — use `updateSiteFindingById` to resolve or dismiss individual issues instead unless the intent is to wipe every issue under a topic, for example when the topic itself is being removed.
10086
+ x-gitbook-mcp: true
10062
10087
  tags:
10063
10088
  - site-context
10064
10089
  security:
@@ -11458,6 +11483,89 @@ paths:
11458
11483
  $ref: "#/components/schemas/Space"
11459
11484
  "404":
11460
11485
  $ref: "#/components/responses/NotFoundError"
11486
+ /orgs/{organizationId}/sites/{siteId}/styleguide/runs:
11487
+ post:
11488
+ operationId: createSiteStyleguideRun
11489
+ summary: Start a style guide check run for a site
11490
+ description: "Starts a style guide check: GitBook Agent reviews the given spaces against the site's style guide and proposes fixes. One draft change request is opened per space, each marked as belonging to the returned run. Fails if the site has no style guide."
11491
+ x-gitbook-mcp: true
11492
+ tags:
11493
+ - sites
11494
+ security:
11495
+ - user: []
11496
+ - oauth:
11497
+ - site:write
11498
+ parameters:
11499
+ - $ref: "#/components/parameters/organizationId"
11500
+ - $ref: "#/components/parameters/siteId"
11501
+ requestBody:
11502
+ required: true
11503
+ content:
11504
+ application/json:
11505
+ schema:
11506
+ type: object
11507
+ properties:
11508
+ spaces:
11509
+ type: array
11510
+ description: IDs of the site's spaces to check. Each must be an editable content space of the site, and not the style guide itself.
11511
+ items:
11512
+ type: string
11513
+ minItems: 1
11514
+ maxItems: 3
11515
+ required:
11516
+ - spaces
11517
+ responses:
11518
+ "201":
11519
+ description: Style guide check run started
11520
+ content:
11521
+ application/json:
11522
+ schema:
11523
+ type: object
11524
+ properties:
11525
+ run:
11526
+ $ref: "#/components/schemas/SiteStyleguideRun"
11527
+ changeRequests:
11528
+ type: array
11529
+ description: The change requests opened by the run, one per space that could be started.
11530
+ items:
11531
+ $ref: "#/components/schemas/ChangeRequest"
11532
+ required:
11533
+ - run
11534
+ - changeRequests
11535
+ "404":
11536
+ $ref: "#/components/responses/NotFoundError"
11537
+ get:
11538
+ operationId: listSiteStyleguideRuns
11539
+ summary: List the style guide check runs of a site
11540
+ description: Returns the site's style guide check runs, most recent first. Use the `styleguideRun` filter on the organization change requests endpoint to get the change requests a run opened.
11541
+ x-gitbook-mcp: true
11542
+ tags:
11543
+ - sites
11544
+ security:
11545
+ - user: []
11546
+ - oauth:
11547
+ - site:read
11548
+ parameters:
11549
+ - $ref: "#/components/parameters/organizationId"
11550
+ - $ref: "#/components/parameters/siteId"
11551
+ - $ref: "#/components/parameters/listPage"
11552
+ - $ref: "#/components/parameters/listLimit"
11553
+ responses:
11554
+ "200":
11555
+ description: OK
11556
+ content:
11557
+ application/json:
11558
+ schema:
11559
+ allOf:
11560
+ - $ref: "#/components/schemas/List"
11561
+ - type: object
11562
+ required:
11563
+ - items
11564
+ properties:
11565
+ items:
11566
+ type: array
11567
+ items:
11568
+ $ref: "#/components/schemas/SiteStyleguideRun"
11461
11569
  /orgs/{organizationId}/sites/{siteId}/insights/events:
11462
11570
  post:
11463
11571
  operationId: trackEventsInSiteById
@@ -11600,6 +11708,10 @@ paths:
11600
11708
  type: boolean
11601
11709
  default: false
11602
11710
  description: Whether the redirect is draft and not live.
11711
+ permanent:
11712
+ type: boolean
11713
+ default: false
11714
+ description: Whether the redirect is permanent for public live traffic.
11603
11715
  destination:
11604
11716
  $ref: "#/components/schemas/SiteRedirectInputDestination"
11605
11717
  required:
@@ -11670,6 +11782,9 @@ paths:
11670
11782
  type: boolean
11671
11783
  default: false
11672
11784
  description: Capture and append the wildcard-matched suffix to the destination URL.
11785
+ permanent:
11786
+ type: boolean
11787
+ description: Whether the redirect is permanent for public live traffic.
11673
11788
  destination:
11674
11789
  description: If set to null, the redirect matching the source+intent target will be deleted.
11675
11790
  oneOf:
@@ -11869,6 +11984,9 @@ paths:
11869
11984
  draft:
11870
11985
  type: boolean
11871
11986
  description: When true, it can be used to promote a draft redirect to live.
11987
+ permanent:
11988
+ type: boolean
11989
+ description: Whether the redirect is permanent for public live traffic.
11872
11990
  destination:
11873
11991
  $ref: "#/components/schemas/SiteRedirectDestination"
11874
11992
  responses:
@@ -15820,109 +15938,6 @@ components:
15820
15938
  - type
15821
15939
  - data
15822
15940
  - isVoid
15823
- DocumentBlockHint:
15824
- type: object
15825
- properties:
15826
- object:
15827
- type: string
15828
- enum:
15829
- - block
15830
- type:
15831
- type: string
15832
- enum:
15833
- - hint
15834
- key:
15835
- type: string
15836
- data:
15837
- type: object
15838
- properties:
15839
- style:
15840
- type: string
15841
- enum:
15842
- - info
15843
- - warning
15844
- - danger
15845
- - success
15846
- icon:
15847
- $ref: "#/components/schemas/Icon"
15848
- required:
15849
- - style
15850
- nodes:
15851
- type: array
15852
- items:
15853
- oneOf:
15854
- - $ref: "#/components/schemas/DocumentBlocksEssentials"
15855
- - $ref: "#/components/schemas/DocumentBlockEmbed"
15856
- - $ref: "#/components/schemas/DocumentBlockIntegration"
15857
- isVoid:
15858
- type: boolean
15859
- enum:
15860
- - false
15861
- required:
15862
- - object
15863
- - type
15864
- - data
15865
- - nodes
15866
- DocumentBlockQuote:
15867
- type: object
15868
- properties:
15869
- object:
15870
- type: string
15871
- enum:
15872
- - block
15873
- type:
15874
- type: string
15875
- enum:
15876
- - blockquote
15877
- key:
15878
- type: string
15879
- nodes:
15880
- type: array
15881
- items:
15882
- oneOf:
15883
- - $ref: "#/components/schemas/DocumentBlocksEssentials"
15884
- - $ref: "#/components/schemas/DocumentBlockQuote"
15885
- isVoid:
15886
- type: boolean
15887
- enum:
15888
- - false
15889
- data:
15890
- type: object
15891
- properties: {}
15892
- additionalProperties: false
15893
- required:
15894
- - object
15895
- - type
15896
- - nodes
15897
- DocumentBlockMath:
15898
- type: object
15899
- properties:
15900
- object:
15901
- type: string
15902
- enum:
15903
- - block
15904
- type:
15905
- type: string
15906
- enum:
15907
- - math
15908
- key:
15909
- type: string
15910
- data:
15911
- type: object
15912
- properties:
15913
- formula:
15914
- type: string
15915
- required:
15916
- - formula
15917
- isVoid:
15918
- type: boolean
15919
- enum:
15920
- - true
15921
- required:
15922
- - object
15923
- - type
15924
- - data
15925
- - isVoid
15926
15941
  DocumentTableViewGrid:
15927
15942
  type: object
15928
15943
  properties:
@@ -16321,6 +16336,110 @@ components:
16321
16336
  - data
16322
16337
  - isVoid
16323
16338
  - fragments
16339
+ DocumentBlockHint:
16340
+ type: object
16341
+ properties:
16342
+ object:
16343
+ type: string
16344
+ enum:
16345
+ - block
16346
+ type:
16347
+ type: string
16348
+ enum:
16349
+ - hint
16350
+ key:
16351
+ type: string
16352
+ data:
16353
+ type: object
16354
+ properties:
16355
+ style:
16356
+ type: string
16357
+ enum:
16358
+ - info
16359
+ - warning
16360
+ - danger
16361
+ - success
16362
+ icon:
16363
+ $ref: "#/components/schemas/Icon"
16364
+ required:
16365
+ - style
16366
+ nodes:
16367
+ type: array
16368
+ items:
16369
+ oneOf:
16370
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
16371
+ - $ref: "#/components/schemas/DocumentBlockEmbed"
16372
+ - $ref: "#/components/schemas/DocumentBlockIntegration"
16373
+ - $ref: "#/components/schemas/DocumentBlockTable"
16374
+ isVoid:
16375
+ type: boolean
16376
+ enum:
16377
+ - false
16378
+ required:
16379
+ - object
16380
+ - type
16381
+ - data
16382
+ - nodes
16383
+ DocumentBlockQuote:
16384
+ type: object
16385
+ properties:
16386
+ object:
16387
+ type: string
16388
+ enum:
16389
+ - block
16390
+ type:
16391
+ type: string
16392
+ enum:
16393
+ - blockquote
16394
+ key:
16395
+ type: string
16396
+ nodes:
16397
+ type: array
16398
+ items:
16399
+ oneOf:
16400
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
16401
+ - $ref: "#/components/schemas/DocumentBlockQuote"
16402
+ isVoid:
16403
+ type: boolean
16404
+ enum:
16405
+ - false
16406
+ data:
16407
+ type: object
16408
+ properties: {}
16409
+ additionalProperties: false
16410
+ required:
16411
+ - object
16412
+ - type
16413
+ - nodes
16414
+ DocumentBlockMath:
16415
+ type: object
16416
+ properties:
16417
+ object:
16418
+ type: string
16419
+ enum:
16420
+ - block
16421
+ type:
16422
+ type: string
16423
+ enum:
16424
+ - math
16425
+ key:
16426
+ type: string
16427
+ data:
16428
+ type: object
16429
+ properties:
16430
+ formula:
16431
+ type: string
16432
+ required:
16433
+ - formula
16434
+ isVoid:
16435
+ type: boolean
16436
+ enum:
16437
+ - true
16438
+ required:
16439
+ - object
16440
+ - type
16441
+ - data
16442
+ - isVoid
16324
16443
  DocumentBlockListItem:
16325
16444
  type: object
16326
16445
  properties:
@@ -18738,6 +18857,23 @@ components:
18738
18857
  required:
18739
18858
  - site
18740
18859
  - topic
18860
+ styleguide:
18861
+ type: object
18862
+ description: Style guide check run that opened the change request, when it came from one.
18863
+ properties:
18864
+ site:
18865
+ type: string
18866
+ description: ID of the site the style guide belongs to.
18867
+ run:
18868
+ type: string
18869
+ description: ID of the style guide check run that opened the change request.
18870
+ changedPages:
18871
+ type: number
18872
+ description: |
18873
+ Number of pages the check changed, recorded when it finished. Absent while it is still running, or when it never completed.
18874
+ required:
18875
+ - site
18876
+ - run
18741
18877
  outdated:
18742
18878
  type: boolean
18743
18879
  description: If true, the change request is not up-to-date with latest changes in the main content.
@@ -24143,6 +24279,119 @@ components:
24143
24279
  required:
24144
24280
  - removeMembers
24145
24281
  - updateSites
24282
+ BillingCancellationComment:
24283
+ type: string
24284
+ description: Free-text detail a user typed alongside their cancellation reason.
24285
+ minLength: 1
24286
+ maxLength: 500
24287
+ BillingCancellationFeedback:
24288
+ type: object
24289
+ description: |
24290
+ Why an organization is cancelling its subscription, as answered by the user in the app. Recorded for analytics only: it never changes how the cancellation is applied.
24291
+ oneOf:
24292
+ - type: object
24293
+ properties:
24294
+ reason:
24295
+ type: string
24296
+ enum:
24297
+ - not_satisfied_with_product
24298
+ reasonDetail:
24299
+ description: The feature that was not satisfactory
24300
+ type: string
24301
+ enum:
24302
+ - editor
24303
+ - gitsync
24304
+ - ai_features
24305
+ additionalProperties: false
24306
+ required:
24307
+ - reason
24308
+ - reasonDetail
24309
+ - type: object
24310
+ properties:
24311
+ reason:
24312
+ type: string
24313
+ enum:
24314
+ - not_satisfied_with_product
24315
+ reasonDetail:
24316
+ description: The feature that was not satisfactory
24317
+ type: string
24318
+ enum:
24319
+ - other
24320
+ reasonComment:
24321
+ $ref: "#/components/schemas/BillingCancellationComment"
24322
+ additionalProperties: false
24323
+ required:
24324
+ - reason
24325
+ - reasonDetail
24326
+ - reasonComment
24327
+ - type: object
24328
+ properties:
24329
+ reason:
24330
+ type: string
24331
+ enum:
24332
+ - will_vibe_code_our_own_app
24333
+ reasonDetail:
24334
+ description: The tool the organization is moving to
24335
+ type: string
24336
+ enum:
24337
+ - claude
24338
+ - codex
24339
+ - replit
24340
+ additionalProperties: false
24341
+ required:
24342
+ - reason
24343
+ - reasonDetail
24344
+ - type: object
24345
+ properties:
24346
+ reason:
24347
+ type: string
24348
+ enum:
24349
+ - will_vibe_code_our_own_app
24350
+ reasonDetail:
24351
+ description: The tool the organization is moving to
24352
+ type: string
24353
+ enum:
24354
+ - other
24355
+ reasonComment:
24356
+ $ref: "#/components/schemas/BillingCancellationComment"
24357
+ additionalProperties: false
24358
+ required:
24359
+ - reason
24360
+ - reasonDetail
24361
+ - reasonComment
24362
+ - type: object
24363
+ properties:
24364
+ reason:
24365
+ type: string
24366
+ enum:
24367
+ - found_better_alternative
24368
+ reasonComment:
24369
+ $ref: "#/components/schemas/BillingCancellationComment"
24370
+ additionalProperties: false
24371
+ required:
24372
+ - reason
24373
+ - reasonComment
24374
+ - type: object
24375
+ properties:
24376
+ reason:
24377
+ type: string
24378
+ enum:
24379
+ - company_shutdown
24380
+ additionalProperties: false
24381
+ required:
24382
+ - reason
24383
+ - type: object
24384
+ properties:
24385
+ reason:
24386
+ type: string
24387
+ enum:
24388
+ - other_reason
24389
+ reasonComment:
24390
+ $ref: "#/components/schemas/BillingCancellationComment"
24391
+ additionalProperties: false
24392
+ required:
24393
+ - reason
24394
+ - reasonComment
24146
24395
  BillingCoupon:
24147
24396
  type: string
24148
24397
  description: Coupon or promotion code to apply to billing operations.
@@ -24167,6 +24416,8 @@ components:
24167
24416
  reason:
24168
24417
  type: string
24169
24418
  description: Reason that triggered the billing upgrade
24419
+ cancellationFeedback:
24420
+ $ref: "#/components/schemas/BillingCancellationFeedback"
24170
24421
  coupon:
24171
24422
  $ref: "#/components/schemas/BillingCoupon"
24172
24423
  description: Coupon or promotion code to apply to the subscription
@@ -30566,6 +30817,40 @@ components:
30566
30817
  - object
30567
30818
  - urls
30568
30819
  - $ref: "#/components/schemas/SiteAgentSettingsInput"
30820
+ SiteStyleguideRun:
30821
+ type: object
30822
+ description: "A style guide check run: one time a user asked GitBook Agent to check a set of the site's spaces against the site's style guide, opening a change request for each."
30823
+ properties:
30824
+ object:
30825
+ type: string
30826
+ enum:
30827
+ - styleguide-run
30828
+ id:
30829
+ type: string
30830
+ description: The ID of the run
30831
+ site:
30832
+ type: string
30833
+ description: ID of the site the run belongs to
30834
+ styleguide:
30835
+ type: string
30836
+ description: ID of the style guide space the run checked against
30837
+ spaces:
30838
+ type: array
30839
+ description: IDs of the spaces the run was asked to check. A change request may have failed to open for one of them, so this is the intent rather than the result.
30840
+ items:
30841
+ type: string
30842
+ createdAt:
30843
+ $ref: "#/components/schemas/Timestamp"
30844
+ createdBy:
30845
+ $ref: "#/components/schemas/User"
30846
+ required:
30847
+ - object
30848
+ - id
30849
+ - site
30850
+ - styleguide
30851
+ - spaces
30852
+ - createdAt
30853
+ - createdBy
30569
30854
  SiteInsightsEventSession:
30570
30855
  allOf:
30571
30856
  - $ref: "#/components/schemas/SiteInsightsSession"
@@ -32543,6 +32828,9 @@ components:
32543
32828
  captureWildcard:
32544
32829
  type: boolean
32545
32830
  description: Capture and append the wildcard-matched suffix to the destination URL.
32831
+ permanent:
32832
+ type: boolean
32833
+ description: Whether the redirect is configured as permanent. Permanent redirects are served as HTTP 308 for public live traffic and HTTP 307 in non-public contexts.
32546
32834
  destination:
32547
32835
  $ref: "#/components/schemas/SiteRedirectDestination"
32548
32836
  createdAt:
@@ -32559,6 +32847,7 @@ components:
32559
32847
  - source
32560
32848
  - draft
32561
32849
  - captureWildcard
32850
+ - permanent
32562
32851
  - destination
32563
32852
  - createdAt
32564
32853
  SiteRedirectInputDestination:
@@ -34117,11 +34406,12 @@ components:
34117
34406
  description: Whether the section group is draft and not live.
34118
34407
  children:
34119
34408
  type: array
34120
- description: Section or section group nodes nested under this group.
34409
+ description: Section, section group, or external link nodes nested under this group.
34121
34410
  items:
34122
34411
  oneOf:
34123
34412
  - $ref: "#/components/schemas/GitSyncSiteStructureSectionGroup"
34124
34413
  - $ref: "#/components/schemas/GitSyncSiteStructureSection"
34414
+ - $ref: "#/components/schemas/GitSyncSiteStructureExternalLink"
34125
34415
  required:
34126
34416
  - type
34127
34417
  - key
@@ -34253,24 +34543,85 @@ components:
34253
34543
  - key
34254
34544
  - title
34255
34545
  - path
34546
+ SiteExternalLinkTitle:
34547
+ type: string
34548
+ description: Title of the external link
34549
+ minLength: 2
34550
+ maxLength: 128
34551
+ SiteExternalLinkDescription:
34552
+ type: string
34553
+ description: Description of the external link
34554
+ minLength: 0
34555
+ maxLength: 256
34556
+ GitSyncSiteStructureExternalLink:
34557
+ type: object
34558
+ additionalProperties: false
34559
+ description: |
34560
+ An external link — a leaf that navigates away from the site to an absolute
34561
+ HTTP(S) URL. Discriminated by `type: external-link`.
34562
+
34563
+ An external link only exists in a section-based site structure: it may sit
34564
+ at the root alongside sections and section groups, or nested under a
34565
+ section group, but never inside a section.
34566
+ properties:
34567
+ type:
34568
+ type: string
34569
+ enum:
34570
+ - external-link
34571
+ description: Discriminator for an external link node.
34572
+ key:
34573
+ type: string
34574
+ description: |
34575
+ Stable identifier for this external link, used as the Git Sync key.
34576
+ Must be unique amongst all other nodes of the site. For example:
34577
+ `link-status` or `link-1`.
34578
+ minLength: 1
34579
+ title:
34580
+ $ref: "#/components/schemas/SiteExternalLinkTitle"
34581
+ localizedTitle:
34582
+ $ref: "#/components/schemas/LocalizedString128"
34583
+ description:
34584
+ $ref: "#/components/schemas/SiteExternalLinkDescription"
34585
+ localizedDescription:
34586
+ $ref: "#/components/schemas/LocalizedString256"
34587
+ icon:
34588
+ $ref: "#/components/schemas/Icon"
34589
+ url:
34590
+ $ref: "#/components/schemas/URL"
34591
+ description: Absolute HTTP or HTTPS URL opened by the external link.
34592
+ draft:
34593
+ type: boolean
34594
+ description: Whether the external link is draft and not live.
34595
+ condition:
34596
+ $ref: "#/components/schemas/Expression"
34597
+ required:
34598
+ - type
34599
+ - key
34600
+ - title
34601
+ - url
34256
34602
  GitSyncSiteStructureNode:
34257
34603
  description: |
34258
34604
  A single node in a Git Sync site structure tree — a section group, a
34259
- section, or a space, discriminated by `type`.
34605
+ section, a space, or an external link, discriminated by `type`.
34260
34606
  oneOf:
34261
34607
  - $ref: "#/components/schemas/GitSyncSiteStructureSectionGroup"
34262
34608
  - $ref: "#/components/schemas/GitSyncSiteStructureSection"
34263
34609
  - $ref: "#/components/schemas/GitSyncSiteStructureSpace"
34610
+ - $ref: "#/components/schemas/GitSyncSiteStructureExternalLink"
34264
34611
  GitSyncSiteStructure:
34265
34612
  type: array
34266
34613
  description: |
34267
34614
  Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
34268
- three node types: a section group, a section, or a space.
34615
+ four node types: a section group, a section, a space, or an external link.
34269
34616
 
34270
34617
  A **space** is a leaf holding content, pointed at a repository directory. A
34271
34618
  **section** gathers spaces behind one top-level navigation entry. A
34272
- **section group** gathers sections. A site either uses sections or lists its
34273
- spaces at the top level, never both.
34619
+ **section group** gathers sections. An **external link** is a leaf that
34620
+ navigates away from the site to an absolute HTTP(S) URL — it may sit at the
34621
+ root or under a section group, but never inside a section, and only exists
34622
+ in a site that also has at least one section. A site either uses sections
34623
+ (optionally alongside external links) or lists its spaces at the top level,
34624
+ never both.
34274
34625
 
34275
34626
  ```yaml
34276
34627
  structure:
@@ -34333,8 +34684,12 @@ components:
34333
34684
  - A site declaring any section marks exactly one of those sections
34334
34685
  `default: true`, and lists no space at the top level: once a section
34335
34686
  exists, every space belongs inside one.
34336
- - Sections hold only spaces. Section groups hold only sections, or one
34337
- further level of section groups — nothing nests deeper than that.
34687
+ - Sections hold only spaces. Section groups hold only sections, nested
34688
+ section groups (one further level), or external links — nothing nests
34689
+ deeper than that.
34690
+ - External links are only valid at the root or nested in a section group,
34691
+ never inside a section. A site containing an external link must use
34692
+ sections, with at least one section declared.
34338
34693
  - Spaces pointed at the same `content.directory` declare the same
34339
34694
  `content.language`. One directory is read once, so it cannot produce two
34340
34695
  languages at the same time.
@@ -35919,6 +36274,17 @@ components:
35919
36274
  The ID of the change request the edits are made in. Absent when the space itself is the target, through its unlocked live edits.
35920
36275
  required:
35921
36276
  - spaceId
36277
+ AgentEditScope:
36278
+ type: string
36279
+ description: |
36280
+ Steering on how far an agent should reach when it changes content.
36281
+ Only `read-only` is a hard boundary: the editing tools are not given to the agent, so it cannot change content whatever it is asked. The other values are guidance the agent follows — they steer where the work belongs. Agents can still make small edits elsewhere when the change it was asked for would otherwise leave the documentation broken (e.g. an inbound link to a page it renamed).
36282
+ `all` sets no specific focus, which is the default. `read-only` reads, searches and comments without editing. `current-page` focuses on the page the user is on and its subpages. `modified-pages` focuses on the pages a change request has already touched.
36283
+ enum:
36284
+ - all
36285
+ - read-only
36286
+ - current-page
36287
+ - modified-pages
35922
36288
  AgentState:
35923
36289
  type: object
35924
36290
  properties:
@@ -35953,6 +36319,14 @@ components:
35953
36319
  $ref: "#/components/schemas/AgentEditTarget"
35954
36320
  description: |
35955
36321
  Where the agent currently edits content. Absent until something is attached: the organization agent starts read-only, while a change request agent always edits the change request it belongs to.
36322
+ editScope:
36323
+ $ref: "#/components/schemas/AgentEditScope"
36324
+ description: |
36325
+ How far this conversation should reach when it changes content.
36326
+ consultOnly:
36327
+ type: boolean
36328
+ description: |
36329
+ 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.
35956
36330
  required:
35957
36331
  - status
35958
36332
  - suggestions