@gitbook/api 0.184.0 → 0.185.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
@@ -1915,6 +1915,80 @@ paths:
1915
1915
  description: Reviewer was not found
1916
1916
  "205":
1917
1917
  description: The reviewer has been removed from the change request
1918
+ /spaces/{spaceId}/change-requests/{changeRequestId}/conversations:
1919
+ get:
1920
+ operationId: listChangeRequestConversations
1921
+ summary: List the agent conversations of a change request
1922
+ tags:
1923
+ - change-request-conversations
1924
+ security:
1925
+ - user: []
1926
+ parameters:
1927
+ - $ref: "#/components/parameters/spaceId"
1928
+ - $ref: "#/components/parameters/changeRequestId"
1929
+ - $ref: "#/components/parameters/listPage"
1930
+ - $ref: "#/components/parameters/listLimit"
1931
+ responses:
1932
+ "200":
1933
+ description: A list of agent conversations
1934
+ content:
1935
+ application/json:
1936
+ schema:
1937
+ allOf:
1938
+ - $ref: "#/components/schemas/List"
1939
+ - type: object
1940
+ required:
1941
+ - items
1942
+ properties:
1943
+ items:
1944
+ type: array
1945
+ items:
1946
+ $ref: "#/components/schemas/AgentConversation"
1947
+ /spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}:
1948
+ patch:
1949
+ operationId: updateChangeRequestConversation
1950
+ summary: Update an agent conversation
1951
+ tags:
1952
+ - change-request-conversations
1953
+ security:
1954
+ - user: []
1955
+ parameters:
1956
+ - $ref: "#/components/parameters/spaceId"
1957
+ - $ref: "#/components/parameters/changeRequestId"
1958
+ - $ref: "#/components/parameters/conversationId"
1959
+ requestBody:
1960
+ required: true
1961
+ content:
1962
+ application/json:
1963
+ schema:
1964
+ type: object
1965
+ properties:
1966
+ title:
1967
+ type: string
1968
+ description: The new title of the conversation.
1969
+ required:
1970
+ - title
1971
+ responses:
1972
+ "200":
1973
+ description: The updated conversation.
1974
+ content:
1975
+ application/json:
1976
+ schema:
1977
+ $ref: "#/components/schemas/AgentConversation"
1978
+ delete:
1979
+ operationId: deleteChangeRequestConversation
1980
+ summary: Delete an agent conversation
1981
+ tags:
1982
+ - change-request-conversations
1983
+ security:
1984
+ - user: []
1985
+ parameters:
1986
+ - $ref: "#/components/parameters/spaceId"
1987
+ - $ref: "#/components/parameters/changeRequestId"
1988
+ - $ref: "#/components/parameters/conversationId"
1989
+ responses:
1990
+ "205":
1991
+ description: The conversation has been deleted.
1918
1992
  /spaces/{spaceId}/change-requests/{changeRequestId}/links:
1919
1993
  get:
1920
1994
  operationId: listChangeRequestLinks
@@ -2251,6 +2325,44 @@ paths:
2251
2325
  application/json:
2252
2326
  schema:
2253
2327
  $ref: "#/components/schemas/Revision"
2328
+ post:
2329
+ operationId: updateChangeRequestContent
2330
+ summary: |
2331
+ Update the content of a change request. This endpoint allows you to update the content of a change request by providing an array of changes.
2332
+ Each change is ran sequentially. This operation will create a single new revision in the change request, apply all changes, and then point the change request to the new revision.
2333
+ This endpoint will only run if all changes in the request are valid. If any change fails, the entire request will fail and no changes will be applied.
2334
+ tags:
2335
+ - change-request-content
2336
+ security:
2337
+ - user: []
2338
+ parameters:
2339
+ - $ref: "#/components/parameters/spaceId"
2340
+ - $ref: "#/components/parameters/changeRequestId"
2341
+ requestBody:
2342
+ required: true
2343
+ content:
2344
+ application/json:
2345
+ schema:
2346
+ type: object
2347
+ required:
2348
+ - changes
2349
+ properties:
2350
+ changes:
2351
+ type: array
2352
+ minItems: 1
2353
+ maxItems: 50
2354
+ items:
2355
+ $ref: "#/components/schemas/ChangeRequestContentChange"
2356
+ responses:
2357
+ "200":
2358
+ description: The change request has been updated
2359
+ content:
2360
+ application/json:
2361
+ schema:
2362
+ $ref: "#/components/schemas/ChangeRequest"
2363
+ "404":
2364
+ description: The change request could not be found.
2365
+ $ref: "#/components/responses/NotFoundError"
2254
2366
  /spaces/{spaceId}/change-requests/{changeRequestId}/content/pages:
2255
2367
  get:
2256
2368
  operationId: listPagesInChangeRequest
@@ -5266,6 +5378,15 @@ paths:
5266
5378
  schema:
5267
5379
  type: string
5268
5380
  description: If defined, only change requests linked to this site topic will be returned.
5381
+ - name: finding
5382
+ in: query
5383
+ required: false
5384
+ schema:
5385
+ type: string
5386
+ enum:
5387
+ - none
5388
+ - all
5389
+ description: Controls whether change requests from triage are included. Pass `none` to exclude change requests from triage, or `all` to include them. Default is `none`.
5269
5390
  - name: orderBy
5270
5391
  in: query
5271
5392
  required: false
@@ -7852,6 +7973,11 @@ paths:
7852
7973
  properties:
7853
7974
  siteSpaceId:
7854
7975
  type: string
7976
+ goal:
7977
+ type: string
7978
+ maxLength: 1024
7979
+ description: |
7980
+ The end goal the agent is trying to accomplish on behalf of the user. Unlike the question, which is the immediate query, the goal describes the broader task or outcome the agent is working towards. GitBook uses this to steer the answer towards what is ultimately useful for that goal.
7855
7981
  scope:
7856
7982
  $ref: "#/components/schemas/SiteSearchScope"
7857
7983
  session:
@@ -11119,7 +11245,30 @@ components:
11119
11245
  authorizationUrl: https://oauth.gitbook.com/authorize
11120
11246
  tokenUrl: https://oauth.gitbook.com/token
11121
11247
  scopes:
11122
- api:read: Read GitBook API resources.
11248
+ user:read: Read your GitBook user profile.
11249
+ organization:read: Read organization settings and metadata.
11250
+ organization:write: Create and update organization settings.
11251
+ organization:members:read: Read organization members, invites and link invites.
11252
+ organization:members:write: Manage organization members, invites and link invites.
11253
+ organization:ask: Ask AI questions across an organization's content.
11254
+ organization:search: Search across an organization's content.
11255
+ space:read: Read spaces and their content.
11256
+ space:write: Create, update and delete spaces and their content, including imports.
11257
+ space:permissions:read: Read space permissions.
11258
+ space:permissions:write: Manage space permissions.
11259
+ change-request:merge: Merge change requests, publishing their changes to the space.
11260
+ site:read: Read sites and their settings.
11261
+ site:write: Create, update and delete sites, sections and their settings.
11262
+ site:publish: Publish and unpublish sites, controlling their public exposure.
11263
+ site:permissions:read: Read site permissions.
11264
+ site:permissions:write: Manage site permissions.
11265
+ site:auth:read: Read site authentication and security configuration.
11266
+ site:auth:write: Manage site authentication and security configuration.
11267
+ site:insights:read: Read site analytics and insights.
11268
+ site:ask: Ask AI questions across a site's content.
11269
+ site:search: Search across a site's content.
11270
+ openapi:read: Read OpenAPI specifications.
11271
+ openapi:write: Create, update and delete OpenAPI specifications.
11123
11272
  parameters:
11124
11273
  listPage:
11125
11274
  name: page
@@ -11286,6 +11435,13 @@ components:
11286
11435
  description: The unique ID of the change request review.
11287
11436
  schema:
11288
11437
  type: string
11438
+ conversationId:
11439
+ name: conversationId
11440
+ in: path
11441
+ required: true
11442
+ description: The unique ID of the agent conversation (its client-generated local id, or "default" for the default conversation)
11443
+ schema:
11444
+ type: string
11289
11445
  listOrder:
11290
11446
  name: order
11291
11447
  in: query
@@ -14043,11 +14199,53 @@ components:
14043
14199
  - type
14044
14200
  - isVoid
14045
14201
  - data
14202
+ DocumentBlockPrompt:
14203
+ type: object
14204
+ properties:
14205
+ object:
14206
+ type: string
14207
+ enum:
14208
+ - block
14209
+ type:
14210
+ type: string
14211
+ enum:
14212
+ - prompt
14213
+ key:
14214
+ type: string
14215
+ data:
14216
+ type: object
14217
+ properties:
14218
+ description:
14219
+ type: string
14220
+ icon:
14221
+ $ref: "#/components/schemas/Icon"
14222
+ openInAIProviders:
14223
+ type: boolean
14224
+ required:
14225
+ - description
14226
+ additionalProperties: false
14227
+ nodes:
14228
+ type: array
14229
+ items:
14230
+ oneOf:
14231
+ - $ref: "#/components/schemas/DocumentBlockCode"
14232
+ minItems: 1
14233
+ maxItems: 1
14234
+ isVoid:
14235
+ type: boolean
14236
+ enum:
14237
+ - false
14238
+ required:
14239
+ - object
14240
+ - type
14241
+ - data
14242
+ - nodes
14046
14243
  DocumentBlocksTopLevels:
14047
14244
  oneOf:
14048
14245
  - $ref: "#/components/schemas/DocumentBlocksEssentials"
14049
14246
  - $ref: "#/components/schemas/DocumentBlockQuote"
14050
14247
  - $ref: "#/components/schemas/DocumentBlockHint"
14248
+ - $ref: "#/components/schemas/DocumentBlockPrompt"
14051
14249
  - $ref: "#/components/schemas/DocumentBlockImages"
14052
14250
  - $ref: "#/components/schemas/DocumentBlockFile"
14053
14251
  - $ref: "#/components/schemas/DocumentBlockDrawing"
@@ -14556,6 +14754,7 @@ components:
14556
14754
  - $ref: "#/components/schemas/DocumentBlockCode"
14557
14755
  - $ref: "#/components/schemas/DocumentBlockTable"
14558
14756
  - $ref: "#/components/schemas/DocumentBlockHint"
14757
+ - $ref: "#/components/schemas/DocumentBlockPrompt"
14559
14758
  - $ref: "#/components/schemas/DocumentBlockQuote"
14560
14759
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
14561
14760
  - $ref: "#/components/schemas/DocumentBlockIntegration"
@@ -14632,6 +14831,7 @@ components:
14632
14831
  - $ref: "#/components/schemas/DocumentBlockImages"
14633
14832
  - $ref: "#/components/schemas/DocumentBlockDrawing"
14634
14833
  - $ref: "#/components/schemas/DocumentBlockHint"
14834
+ - $ref: "#/components/schemas/DocumentBlockPrompt"
14635
14835
  - $ref: "#/components/schemas/DocumentBlockQuote"
14636
14836
  - $ref: "#/components/schemas/DocumentBlockMath"
14637
14837
  - $ref: "#/components/schemas/DocumentBlockIntegration"
@@ -14932,6 +15132,7 @@ components:
14932
15132
  - $ref: "#/components/schemas/DocumentBlockImages"
14933
15133
  - $ref: "#/components/schemas/DocumentBlockDrawing"
14934
15134
  - $ref: "#/components/schemas/DocumentBlockHint"
15135
+ - $ref: "#/components/schemas/DocumentBlockPrompt"
14935
15136
  - $ref: "#/components/schemas/DocumentBlockQuote"
14936
15137
  - $ref: "#/components/schemas/DocumentBlockMath"
14937
15138
  - $ref: "#/components/schemas/DocumentBlockIntegration"
@@ -15000,6 +15201,7 @@ components:
15000
15201
  - $ref: "#/components/schemas/DocumentBlockImages"
15001
15202
  - $ref: "#/components/schemas/DocumentBlockCode"
15002
15203
  - $ref: "#/components/schemas/DocumentBlockHint"
15204
+ - $ref: "#/components/schemas/DocumentBlockPrompt"
15003
15205
  - $ref: "#/components/schemas/DocumentBlockContentRef"
15004
15206
  - $ref: "#/components/schemas/DocumentBlockDrawing"
15005
15207
  - $ref: "#/components/schemas/DocumentBlockEmbed"
@@ -15084,6 +15286,7 @@ components:
15084
15286
  - $ref: "#/components/schemas/DocumentBlockImages"
15085
15287
  - $ref: "#/components/schemas/DocumentBlockDrawing"
15086
15288
  - $ref: "#/components/schemas/DocumentBlockHint"
15289
+ - $ref: "#/components/schemas/DocumentBlockPrompt"
15087
15290
  - $ref: "#/components/schemas/DocumentBlockQuote"
15088
15291
  - $ref: "#/components/schemas/DocumentBlockMath"
15089
15292
  - $ref: "#/components/schemas/DocumentBlockIntegration"
@@ -15160,6 +15363,7 @@ components:
15160
15363
  - $ref: "#/components/schemas/DocumentBlockDivider"
15161
15364
  - $ref: "#/components/schemas/DocumentBlockQuote"
15162
15365
  - $ref: "#/components/schemas/DocumentBlockHint"
15366
+ - $ref: "#/components/schemas/DocumentBlockPrompt"
15163
15367
  - $ref: "#/components/schemas/DocumentBlockIf"
15164
15368
  - $ref: "#/components/schemas/DocumentBlockImages"
15165
15369
  - $ref: "#/components/schemas/DocumentBlockImage"
@@ -16587,6 +16791,12 @@ components:
16587
16791
  paidUltimateSites:
16588
16792
  description: The number of paid ultimate sites on the current subscription.
16589
16793
  type: number
16794
+ canChangeInterval:
16795
+ description: Whether changing billing interval is allowed
16796
+ type: boolean
16797
+ canUseSAML:
16798
+ description: Whether configuring SAML is allowed
16799
+ type: boolean
16590
16800
  required:
16591
16801
  - interval
16592
16802
  - endDate
@@ -16595,6 +16805,8 @@ components:
16595
16805
  - isScheduledToCancel
16596
16806
  - pricing
16597
16807
  - usageAddons
16808
+ - canChangeInterval
16809
+ - canUseSAML
16598
16810
  BillingTrialStatus:
16599
16811
  type: string
16600
16812
  description: |
@@ -17566,6 +17778,29 @@ components:
17566
17778
  required:
17567
17779
  - kind
17568
17780
  - team
17781
+ AgentConversation:
17782
+ type: object
17783
+ properties:
17784
+ object:
17785
+ type: string
17786
+ description: Type of Object, always equals to "agent-conversation"
17787
+ enum:
17788
+ - agent-conversation
17789
+ id:
17790
+ type: string
17791
+ description: The unique ID of the conversation. This is the client-generated identifier used to address the conversation; for the default conversation of a change request it is "default".
17792
+ title:
17793
+ type: string
17794
+ description: The title of the conversation, generated from the first message. Absent until generated.
17795
+ createdAt:
17796
+ $ref: "#/components/schemas/Timestamp"
17797
+ updatedAt:
17798
+ $ref: "#/components/schemas/Timestamp"
17799
+ required:
17800
+ - object
17801
+ - id
17802
+ - createdAt
17803
+ - updatedAt
17569
17804
  PostCommentSchema:
17570
17805
  type: object
17571
17806
  properties:
@@ -17682,6 +17917,28 @@ components:
17682
17917
  - comment
17683
17918
  required:
17684
17919
  - actionType
17920
+ ChangeRequestContentChangeUpdatePage:
17921
+ type: object
17922
+ description: Replace the document of an existing page with another document.
17923
+ required:
17924
+ - operation
17925
+ - page
17926
+ - document
17927
+ properties:
17928
+ operation:
17929
+ type: string
17930
+ enum:
17931
+ - update_page
17932
+ page:
17933
+ type: string
17934
+ description: ID of the page whose content should be updated.
17935
+ document:
17936
+ $ref: "#/components/schemas/Document"
17937
+ ChangeRequestContentChange:
17938
+ oneOf:
17939
+ - $ref: "#/components/schemas/ChangeRequestContentChangeUpdatePage"
17940
+ discriminator:
17941
+ propertyName: operation
17685
17942
  RevisionPageType:
17686
17943
  type: string
17687
17944
  enum:
@@ -24020,6 +24277,7 @@ components:
24020
24277
  - builtin:github-discussions
24021
24278
  - builtin:github-issues
24022
24279
  - builtin:intercom
24280
+ - builtin:zendesk
24023
24281
  ContextRecordTitle:
24024
24282
  type: string
24025
24283
  description: Title for the context record
@@ -24635,6 +24893,31 @@ components:
24635
24893
  required:
24636
24894
  - connector
24637
24895
  - setupSettings
24896
+ - type: object
24897
+ properties:
24898
+ connector:
24899
+ type: string
24900
+ enum:
24901
+ - builtin:zendesk
24902
+ setupSettings:
24903
+ type: object
24904
+ properties:
24905
+ subdomain:
24906
+ type: string
24907
+ minLength: 1
24908
+ email:
24909
+ type: string
24910
+ minLength: 1
24911
+ apiToken:
24912
+ type: string
24913
+ minLength: 1
24914
+ required:
24915
+ - subdomain
24916
+ - email
24917
+ - apiToken
24918
+ required:
24919
+ - connector
24920
+ - setupSettings
24638
24921
  ContextConnection:
24639
24922
  allOf:
24640
24923
  - type: object
@@ -28910,6 +29193,49 @@ components:
28910
29193
  - organizations
28911
29194
  - collections
28912
29195
  - spaces
29196
+ OrganizationBillingDateOverride:
29197
+ description: Date-based billing override value, either indefinite or a timestamp.
29198
+ oneOf:
29199
+ - type: boolean
29200
+ enum:
29201
+ - true
29202
+ - $ref: "#/components/schemas/Timestamp"
29203
+ OrganizationBillingNumericOverride:
29204
+ type: integer
29205
+ minimum: 0
29206
+ description: Current numeric billing override, when set.
29207
+ OrganizationBillingOverrides:
29208
+ type: object
29209
+ properties:
29210
+ overrides:
29211
+ type: object
29212
+ properties:
29213
+ frozenInterval:
29214
+ description: Current interval-change override, when set.
29215
+ $ref: "#/components/schemas/OrganizationBillingDateOverride"
29216
+ enableSAML:
29217
+ description: Current SAML override, when set.
29218
+ $ref: "#/components/schemas/OrganizationBillingDateOverride"
29219
+ minUsers:
29220
+ description: Current minimum users override, when set.
29221
+ $ref: "#/components/schemas/OrganizationBillingNumericOverride"
29222
+ maxUsers:
29223
+ description: Current maximum users override, when set.
29224
+ $ref: "#/components/schemas/OrganizationBillingNumericOverride"
29225
+ minPremiumSites:
29226
+ description: Current minimum premium sites override, when set.
29227
+ $ref: "#/components/schemas/OrganizationBillingNumericOverride"
29228
+ maxPremiumSites:
29229
+ description: Current maximum premium sites override, when set.
29230
+ $ref: "#/components/schemas/OrganizationBillingNumericOverride"
29231
+ minUltimateSites:
29232
+ description: Current minimum ultimate sites override, when set.
29233
+ $ref: "#/components/schemas/OrganizationBillingNumericOverride"
29234
+ maxUltimateSites:
29235
+ description: Current maximum ultimate sites override, when set.
29236
+ $ref: "#/components/schemas/OrganizationBillingNumericOverride"
29237
+ required:
29238
+ - overrides
28913
29239
  BackOfficeSite:
28914
29240
  allOf:
28915
29241
  - $ref: "#/components/schemas/Site"
@@ -29505,66 +29831,806 @@ components:
29505
29831
  - completedTasks
29506
29832
  - startedAt
29507
29833
  - updatedAt
29508
- IntegrationEnvironmentSpaceInstallation:
29509
- allOf:
29510
- - $ref: "#/components/schemas/IntegrationContentInstallationBase"
29511
- - type: object
29512
- properties:
29513
- space:
29514
- description: The space the integration is installed on.
29515
- type: string
29516
- required:
29517
- - space
29518
- IntegrationEnvironmentSiteInstallation:
29519
- allOf:
29520
- - $ref: "#/components/schemas/IntegrationContentInstallationBase"
29521
- - type: object
29522
- properties:
29523
- site:
29524
- description: The site the integration is installed on.
29525
- type: string
29526
- required:
29527
- - site
29528
- IntegrationEnvironment:
29834
+ GitSyncSiteStructureSectionGroup:
29529
29835
  type: object
29530
- description: Runtime environment provided during the execution of integration's code.
29836
+ additionalProperties: false
29837
+ description: |
29838
+ A section group — a container that nests sections (and other section
29839
+ groups). Discriminated by `type: section-group`. Up to one level of nested
29840
+ section groups is allowed.
29531
29841
  properties:
29532
- authToken:
29533
- type: string
29534
- description: Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration.
29535
- deprecated: true
29536
- integration:
29537
- $ref: "#/components/schemas/Integration"
29538
- installation:
29539
- $ref: "#/components/schemas/IntegrationInstallation"
29540
- spaceInstallation:
29541
- $ref: "#/components/schemas/IntegrationEnvironmentSpaceInstallation"
29542
- siteInstallation:
29543
- $ref: "#/components/schemas/IntegrationEnvironmentSiteInstallation"
29544
- secrets:
29545
- $ref: "#/components/schemas/IntegrationSecrets"
29546
- signingSecret:
29842
+ type:
29547
29843
  type: string
29548
- description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
29549
- deprecated: true
29550
- signingSecrets:
29551
- type: object
29552
- properties:
29553
- integration:
29554
- type: string
29555
- description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
29556
- installation:
29557
- type: string
29558
- description: Secret that can be used to verify the authenticity of incoming HTTP requests to the installation.
29559
- spaceInstallation:
29560
- type: string
29561
- description: Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation.
29562
- siteInstallation:
29563
- type: string
29564
- description: Secret that can be used to verify the authenticity of incoming HTTP requests to the site installation.
29565
- required:
29566
- - integration
29567
- apiEndpoint:
29844
+ enum:
29845
+ - section-group
29846
+ description: Discriminator for a section group node.
29847
+ key:
29848
+ type: string
29849
+ description: |
29850
+ Stable identifier for this section group, used as the Git Sync key.
29851
+ Must be unique amongst all other section groups of the site. For
29852
+ example: `section-group-product` or `section-group-1`.
29853
+ minLength: 1
29854
+ title:
29855
+ $ref: "#/components/schemas/SiteSectionGroupTitle"
29856
+ localizedTitle:
29857
+ $ref: "#/components/schemas/LocalizedString128"
29858
+ icon:
29859
+ $ref: "#/components/schemas/Icon"
29860
+ draft:
29861
+ type: boolean
29862
+ description: Whether the section group is draft and not live.
29863
+ children:
29864
+ type: array
29865
+ description: Section or section group nodes nested under this group.
29866
+ items:
29867
+ oneOf:
29868
+ - $ref: "#/components/schemas/GitSyncSiteStructureSectionGroup"
29869
+ - $ref: "#/components/schemas/GitSyncSiteStructureSection"
29870
+ required:
29871
+ - type
29872
+ - key
29873
+ - title
29874
+ GitSyncSiteStructureSpace:
29875
+ type: object
29876
+ additionalProperties: false
29877
+ description: |
29878
+ A space — a single content unit in the site's navigation tree. Discriminated
29879
+ by `type: space`.
29880
+
29881
+ The space's content lives in the synced repository at the directory pointed
29882
+ to by `content.directory`. Hierarchy comes from where the space appears in
29883
+ the YAML (under a section, a section group, or at the root), not from an
29884
+ explicit parent reference.
29885
+ properties:
29886
+ type:
29887
+ type: string
29888
+ enum:
29889
+ - space
29890
+ description: Discriminator for a space node.
29891
+ key:
29892
+ type: string
29893
+ description: |
29894
+ Stable identifier for this space, used as the Git Sync key. Must be
29895
+ unique amongst all other spaces of the site. For example: `space-docs`
29896
+ or `space-1`.
29897
+ minLength: 1
29898
+ title:
29899
+ type: string
29900
+ minLength: 1
29901
+ localizedTitle:
29902
+ $ref: "#/components/schemas/LocalizedString128"
29903
+ path:
29904
+ $ref: "#/components/schemas/SiteSpacePath"
29905
+ default:
29906
+ type: boolean
29907
+ description: Whether this is the default space for the site.
29908
+ hidden:
29909
+ type: boolean
29910
+ description: Whether the space is hidden from the site's navigation.
29911
+ draft:
29912
+ type: boolean
29913
+ description: Whether the space is draft and not live.
29914
+ condition:
29915
+ $ref: "#/components/schemas/Expression"
29916
+ content:
29917
+ type: object
29918
+ additionalProperties: false
29919
+ description: Where the space's content lives in the synced repository.
29920
+ properties:
29921
+ directory:
29922
+ type: string
29923
+ description: Repository-relative directory containing this space's content.
29924
+ minLength: 1
29925
+ language:
29926
+ $ref: "#/components/schemas/TranslationLanguage"
29927
+ required:
29928
+ - directory
29929
+ required:
29930
+ - type
29931
+ - key
29932
+ - title
29933
+ - path
29934
+ - content
29935
+ GitSyncSiteStructureSection:
29936
+ type: object
29937
+ additionalProperties: false
29938
+ description: |
29939
+ A section — a group of spaces sharing a top-level navigation entry.
29940
+ Discriminated by `type: section`.
29941
+
29942
+ Spaces inside a section are listed inline under `children`. A site with
29943
+ sections must mark exactly one section with `default: true`.
29944
+ properties:
29945
+ type:
29946
+ type: string
29947
+ enum:
29948
+ - section
29949
+ description: Discriminator for a section node.
29950
+ key:
29951
+ type: string
29952
+ description: |
29953
+ Stable identifier for this section, used as the Git Sync key. Must be
29954
+ unique amongst all other sections of the site. For example:
29955
+ `section-guides` or `section-1`.
29956
+ minLength: 1
29957
+ title:
29958
+ $ref: "#/components/schemas/SiteSectionTitle"
29959
+ localizedTitle:
29960
+ $ref: "#/components/schemas/LocalizedString128"
29961
+ description:
29962
+ $ref: "#/components/schemas/SiteSectionDescription"
29963
+ localizedDescription:
29964
+ $ref: "#/components/schemas/LocalizedString256"
29965
+ icon:
29966
+ $ref: "#/components/schemas/Icon"
29967
+ default:
29968
+ type: boolean
29969
+ description: Whether this is the default section for the site.
29970
+ draft:
29971
+ type: boolean
29972
+ description: Whether the section is draft and not live.
29973
+ path:
29974
+ $ref: "#/components/schemas/SiteSectionPath"
29975
+ condition:
29976
+ $ref: "#/components/schemas/Expression"
29977
+ children:
29978
+ type: array
29979
+ description: Space nodes nested under this section.
29980
+ items:
29981
+ $ref: "#/components/schemas/GitSyncSiteStructureSpace"
29982
+ required:
29983
+ - type
29984
+ - key
29985
+ - title
29986
+ - path
29987
+ GitSyncSiteStructureNode:
29988
+ description: |
29989
+ A single node in a Git Sync site structure tree — a section group, a
29990
+ section, or a space, discriminated by `type`.
29991
+ oneOf:
29992
+ - $ref: "#/components/schemas/GitSyncSiteStructureSectionGroup"
29993
+ - $ref: "#/components/schemas/GitSyncSiteStructureSection"
29994
+ - $ref: "#/components/schemas/GitSyncSiteStructureSpace"
29995
+ GitSyncSiteStructure:
29996
+ type: array
29997
+ description: |
29998
+ Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
29999
+ three node types: a section group, a section, or a space.
30000
+ items:
30001
+ $ref: "#/components/schemas/GitSyncSiteStructureNode"
30002
+ GitSyncSiteCustomizationFontSource:
30003
+ type: string
30004
+ description: |
30005
+ Reserved repository-relative path to the font file:
30006
+ `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
30007
+ font definition's `key`, `<weight>` is this face's `weight`, and
30008
+ `<ext>` is one of `woff2`, `woff`.
30009
+
30010
+ For example, a font with `key: brand` and a `700` face is read from
30011
+ `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
30012
+ minLength: 1
30013
+ GitSyncSiteCustomizationFontDefinition:
30014
+ type: object
30015
+ description: |
30016
+ Custom font definition for a `site.fonts[]` entry. Referenced from
30017
+ `customization.styling.font` or `customization.styling.monospaceFont` via
30018
+ its `key`.
30019
+
30020
+ Rules enforced on a definition:
30021
+ - It must declare exactly one face for the `400` weight and one for the
30022
+ `700` weight; the `600` weight is optional. No other weights are allowed,
30023
+ and a weight may not be declared more than once.
30024
+ - Each face has a single source file whose `url` is the reserved repository
30025
+ asset path `.gitbook/assets/<key>-<weight>.<ext>` (`<ext>` is `woff2` or
30026
+ `woff`). For example a definition with `key: brand` is read from
30027
+ `.gitbook/assets/brand-400.woff2` and `.gitbook/assets/brand-700.woff2`.
30028
+ properties:
30029
+ key:
30030
+ type: string
30031
+ description: |
30032
+ Stable identifier referenced from `styling.font` /
30033
+ `styling.monospaceFont`, and used as the prefix of each face's
30034
+ reserved asset path (`.gitbook/assets/<key>-<weight>.<ext>`).
30035
+ minLength: 1
30036
+ pattern: ^[A-Za-z0-9][A-Za-z0-9_-]*$
30037
+ fontFamily:
30038
+ $ref: "#/components/schemas/FontFamily"
30039
+ fontFaces:
30040
+ type: object
30041
+ description: |
30042
+ Font-face declarations keyed by weight, each specifying its single
30043
+ source file. The `400` and `700` weights are required; `600` is
30044
+ optional.
30045
+ properties:
30046
+ "400":
30047
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
30048
+ "600":
30049
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
30050
+ "700":
30051
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
30052
+ required:
30053
+ - "400"
30054
+ - "700"
30055
+ additionalProperties: false
30056
+ required:
30057
+ - key
30058
+ - fontFamily
30059
+ - fontFaces
30060
+ GitSyncSiteCustomizationThemedColor:
30061
+ type: object
30062
+ description: |
30063
+ Themed color (light + dark).
30064
+ properties:
30065
+ light:
30066
+ $ref: "#/components/schemas/Color"
30067
+ dark:
30068
+ $ref: "#/components/schemas/Color"
30069
+ required:
30070
+ - light
30071
+ - dark
30072
+ GitSyncSiteCustomizationTint:
30073
+ type: object
30074
+ description: |
30075
+ Tint configuration.
30076
+ properties:
30077
+ color:
30078
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
30079
+ required:
30080
+ - color
30081
+ GitSyncSiteCustomizationFontReference:
30082
+ type: object
30083
+ description: |
30084
+ Reference to a custom font defined under `site.fonts[]`. Matches by `key`.
30085
+ properties:
30086
+ key:
30087
+ type: string
30088
+ description: Matches the `key` of an entry in `site.fonts[]`.
30089
+ minLength: 1
30090
+ required:
30091
+ - key
30092
+ GitSyncSiteCustomizationFont:
30093
+ description: |
30094
+ Body font for the site. Either one of the built-in `CustomizationDefaultFont`
30095
+ values, or a reference to a custom font declared in `site.fonts[]`.
30096
+ oneOf:
30097
+ - $ref: "#/components/schemas/CustomizationDefaultFont"
30098
+ - $ref: "#/components/schemas/GitSyncSiteCustomizationFontReference"
30099
+ GitSyncSiteCustomizationMonospaceFont:
30100
+ description: |
30101
+ Monospace font for the site. Either one of the built-in
30102
+ `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
30103
+ declared in `site.fonts[]`.
30104
+ oneOf:
30105
+ - $ref: "#/components/schemas/CustomizationDefaultMonospaceFont"
30106
+ - $ref: "#/components/schemas/GitSyncSiteCustomizationFontReference"
30107
+ GitSyncSiteCustomizationThemedCodeTheme:
30108
+ type: object
30109
+ description: |
30110
+ Themed code theme (light + dark).
30111
+ properties:
30112
+ light:
30113
+ $ref: "#/components/schemas/CustomizationCodeTheme"
30114
+ dark:
30115
+ $ref: "#/components/schemas/CustomizationCodeTheme"
30116
+ required:
30117
+ - light
30118
+ - dark
30119
+ GitSyncSiteCustomizationCodeThemes:
30120
+ type: object
30121
+ description: |
30122
+ Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples.
30123
+ properties:
30124
+ default:
30125
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedCodeTheme"
30126
+ openapi:
30127
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedCodeTheme"
30128
+ required:
30129
+ - default
30130
+ - openapi
30131
+ GitSyncSiteCustomizationSidebar:
30132
+ type: object
30133
+ description: |
30134
+ Sidebar style settings.
30135
+ properties:
30136
+ background:
30137
+ $ref: "#/components/schemas/CustomizationSidebarBackgroundStyle"
30138
+ list:
30139
+ $ref: "#/components/schemas/CustomizationSidebarListStyle"
30140
+ required:
30141
+ - background
30142
+ - list
30143
+ GitSyncSiteCustomizationStyling:
30144
+ type: object
30145
+ description: |
30146
+ Styling settings.
30147
+ properties:
30148
+ theme:
30149
+ $ref: "#/components/schemas/CustomizationTheme"
30150
+ primaryColor:
30151
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
30152
+ tint:
30153
+ $ref: "#/components/schemas/GitSyncSiteCustomizationTint"
30154
+ infoColor:
30155
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
30156
+ successColor:
30157
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
30158
+ warningColor:
30159
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
30160
+ dangerColor:
30161
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
30162
+ corners:
30163
+ $ref: "#/components/schemas/CustomizationCorners"
30164
+ depth:
30165
+ $ref: "#/components/schemas/CustomizationDepth"
30166
+ links:
30167
+ $ref: "#/components/schemas/CustomizationLinksStyle"
30168
+ font:
30169
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFont"
30170
+ monospaceFont:
30171
+ $ref: "#/components/schemas/GitSyncSiteCustomizationMonospaceFont"
30172
+ icons:
30173
+ $ref: "#/components/schemas/CustomizationIconsStyle"
30174
+ codeTheme:
30175
+ $ref: "#/components/schemas/GitSyncSiteCustomizationCodeThemes"
30176
+ sidebar:
30177
+ $ref: "#/components/schemas/GitSyncSiteCustomizationSidebar"
30178
+ search:
30179
+ $ref: "#/components/schemas/CustomizationSearchStyle"
30180
+ GitSyncSiteCustomizationAssetPath:
30181
+ type: string
30182
+ description: |
30183
+ Repository-relative path to an asset in a site Git Sync, e.g.
30184
+ `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
30185
+ here — Git Sync assets must live in the synced repository under
30186
+ `.gitbook/assets/`.
30187
+
30188
+ This is the shared base type and only validates the `.gitbook/assets/`
30189
+ prefix. Each field that uses it additionally reserves a specific filename
30190
+ and set of allowed extensions (e.g. the header logo must be
30191
+ `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
30192
+ on the consuming field for the exact reserved path.
30193
+ pattern: ^\.gitbook/assets/.+
30194
+ maxLength: 2048
30195
+ GitSyncSiteCustomizationThemedAssetPath:
30196
+ type: object
30197
+ description: |
30198
+ Light/dark variants of a Git Sync repository asset path. Used for logos and
30199
+ favicons that switch with the active theme. Both variants are required.
30200
+
30201
+ Each consuming field reserves the exact light/dark filenames and allowed
30202
+ extensions (e.g. header logo → `header-logo-light.<ext>` /
30203
+ `header-logo-dark.<ext>`); see the description on the consuming field.
30204
+ properties:
30205
+ light:
30206
+ $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
30207
+ dark:
30208
+ $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
30209
+ required:
30210
+ - light
30211
+ - dark
30212
+ GitSyncSiteCustomizationFavicon:
30213
+ description: |
30214
+ Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character;
30215
+ oneOf:
30216
+ - type: object
30217
+ properties:
30218
+ icon:
30219
+ description: |
30220
+ Themed favicon. Each variant must use its reserved repository
30221
+ asset path — light: `.gitbook/assets/favicon-light.<ext>`,
30222
+ dark: `.gitbook/assets/favicon-dark.<ext>`, where `<ext>` is
30223
+ the image's file extension (e.g. `png`, `svg`, `ico`). Any
30224
+ other filename is rejected.
30225
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
30226
+ required:
30227
+ - icon
30228
+ - type: object
30229
+ properties:
30230
+ emoji:
30231
+ $ref: "#/components/schemas/Emoji"
30232
+ required:
30233
+ - emoji
30234
+ GitSyncSiteCustomizationContentLinkTo:
30235
+ type: string
30236
+ description: |
30237
+ Link destination, written as a path-string in YAML. Same format as
30238
+ markdown content links, e.g. `https://example.com`, `/pages/<id>`,
30239
+ `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
30240
+ GitSyncSiteCustomizationContentLink:
30241
+ type: object
30242
+ description: |
30243
+ A label plus a destination, used inside header items, footer groups, and announcements.
30244
+ properties:
30245
+ title:
30246
+ $ref: "#/components/schemas/CustomizationContentLinkTitle"
30247
+ localizedTitle:
30248
+ description: Localized overrides for the link title, keyed by locale.
30249
+ $ref: "#/components/schemas/LocalizedString64"
30250
+ to:
30251
+ $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
30252
+ required:
30253
+ - title
30254
+ - to
30255
+ GitSyncSiteCustomizationHeaderItem:
30256
+ type: object
30257
+ description: |
30258
+ A single item in the published site's top navigation bar.
30259
+ properties:
30260
+ title:
30261
+ type: string
30262
+ localizedTitle:
30263
+ description: Localized overrides for the header item title, keyed by locale.
30264
+ $ref: "#/components/schemas/LocalizedString"
30265
+ style:
30266
+ type: string
30267
+ enum:
30268
+ - link
30269
+ - button-primary
30270
+ - button-secondary
30271
+ to:
30272
+ description: |
30273
+ Header item destination. Use `null` for items that act as a
30274
+ dropdown root without a link of their own.
30275
+ oneOf:
30276
+ - $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
30277
+ - type: "null"
30278
+ links:
30279
+ type: array
30280
+ description: Sub-links shown as a dropdown under this header item. Empty array means no dropdown.
30281
+ items:
30282
+ $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
30283
+ condition:
30284
+ description: Conditional expression evaluated to decide whether the item is shown to the visitor.
30285
+ $ref: "#/components/schemas/Expression"
30286
+ required:
30287
+ - title
30288
+ - to
30289
+ - links
30290
+ GitSyncSiteCustomizationHeader:
30291
+ type: object
30292
+ description: |
30293
+ Header settings.
30294
+ properties:
30295
+ logo:
30296
+ description: |
30297
+ Themed header logo. Each variant must use its reserved repository
30298
+ asset path — light: `.gitbook/assets/header-logo-light.<ext>`, dark:
30299
+ `.gitbook/assets/header-logo-dark.<ext>`, where `<ext>` is the
30300
+ image's file extension (e.g. `png`, `svg`). Any other filename is
30301
+ rejected.
30302
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
30303
+ primaryLink:
30304
+ $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
30305
+ links:
30306
+ type: array
30307
+ items:
30308
+ $ref: "#/components/schemas/GitSyncSiteCustomizationHeaderItem"
30309
+ GitSyncSiteCustomizationFooterGroup:
30310
+ type: object
30311
+ description: |
30312
+ A group of links shown in the published site's footer.
30313
+ properties:
30314
+ title:
30315
+ type: string
30316
+ localizedTitle:
30317
+ description: Localized overrides for the footer group title, keyed by locale.
30318
+ $ref: "#/components/schemas/LocalizedString"
30319
+ links:
30320
+ type: array
30321
+ items:
30322
+ $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
30323
+ required:
30324
+ - title
30325
+ - links
30326
+ GitSyncSiteCustomizationFooter:
30327
+ type: object
30328
+ description: |
30329
+ Footer settings.
30330
+ properties:
30331
+ logo:
30332
+ description: |
30333
+ Themed footer logo. Each variant must use its reserved repository
30334
+ asset path — light: `.gitbook/assets/footer-logo-light.<ext>`, dark:
30335
+ `.gitbook/assets/footer-logo-dark.<ext>`, where `<ext>` is the
30336
+ image's file extension (e.g. `png`, `svg`). Any other filename is
30337
+ rejected.
30338
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
30339
+ groups:
30340
+ type: array
30341
+ items:
30342
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFooterGroup"
30343
+ copyright:
30344
+ type: string
30345
+ maxLength: 300
30346
+ GitSyncSiteCustomizationAnnouncement:
30347
+ type: object
30348
+ description: |
30349
+ Announcement banner shown above the published site.
30350
+ properties:
30351
+ enabled:
30352
+ description: Whether to show the site's announcement.
30353
+ type: boolean
30354
+ message:
30355
+ $ref: "#/components/schemas/CustomizationAnnouncementMessage"
30356
+ localizedMessage:
30357
+ description: Localized overrides for the announcement message, keyed by locale.
30358
+ $ref: "#/components/schemas/LocalizedString128"
30359
+ link:
30360
+ description: The content or URL the announcement links to when clicked.
30361
+ $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
30362
+ style:
30363
+ description: Semantic style of the announcement banner.
30364
+ type: string
30365
+ enum:
30366
+ - info
30367
+ - warning
30368
+ - danger
30369
+ - success
30370
+ required:
30371
+ - enabled
30372
+ - message
30373
+ - style
30374
+ GitSyncSiteCustomizationThemeModes:
30375
+ type: object
30376
+ description: |
30377
+ Dark/light theme mode settings.
30378
+ properties:
30379
+ default:
30380
+ $ref: "#/components/schemas/CustomizationDefaultThemeMode"
30381
+ toggeable:
30382
+ description: Whether readers can switch between dark and light mode.
30383
+ type: boolean
30384
+ required:
30385
+ - default
30386
+ - toggeable
30387
+ GitSyncSiteCustomizationFeedback:
30388
+ type: object
30389
+ description: |
30390
+ Reader feedback settings.
30391
+ properties:
30392
+ enabled:
30393
+ type: boolean
30394
+ description: Whether reader feedback gathering is enabled.
30395
+ required:
30396
+ - enabled
30397
+ GitSyncSiteCustomizationAI:
30398
+ type: object
30399
+ description: |
30400
+ AI assistant settings.
30401
+ properties:
30402
+ mode:
30403
+ $ref: "#/components/schemas/CustomizationAIMode"
30404
+ suggestions:
30405
+ $ref: "#/components/schemas/CustomizationSuggestedQuestions"
30406
+ required:
30407
+ - mode
30408
+ GitSyncSiteCustomizationPageActions:
30409
+ type: array
30410
+ description: |
30411
+ Ordered page-level action buttons exposed in the published site's page menu.
30412
+ uniqueItems: true
30413
+ items:
30414
+ $ref: "#/components/schemas/CustomizationPageActionType"
30415
+ GitSyncSiteCustomizationExternalLinks:
30416
+ type: object
30417
+ description: |
30418
+ External link behavior.
30419
+ properties:
30420
+ target:
30421
+ $ref: "#/components/schemas/SiteExternalLinksTarget"
30422
+ required:
30423
+ - target
30424
+ GitSyncSiteCustomizationPagination:
30425
+ type: object
30426
+ description: |
30427
+ Pagination navigation settings.
30428
+ properties:
30429
+ enabled:
30430
+ type: boolean
30431
+ description: Whether the prev/next pagination navigation is shown on pages.
30432
+ required:
30433
+ - enabled
30434
+ GitSyncSiteCustomizationPrivacyPolicy:
30435
+ type: object
30436
+ description: |
30437
+ Privacy policy link shown on the published site.
30438
+ properties:
30439
+ url:
30440
+ $ref: "#/components/schemas/URL"
30441
+ GitSyncSiteCustomizationSocialPreview:
30442
+ type: object
30443
+ description: |
30444
+ Social preview asset.
30445
+ properties:
30446
+ url:
30447
+ description: |
30448
+ Reserved repository asset path for the social preview image:
30449
+ `.gitbook/assets/social-preview.<ext>`, where `<ext>` is the
30450
+ image's file extension (e.g. `png`, `jpg`). Any other filename is
30451
+ rejected.
30452
+ $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
30453
+ GitSyncSiteCustomizationSocialAccount:
30454
+ type: object
30455
+ description: |
30456
+ A single social account entry.
30457
+ properties:
30458
+ platform:
30459
+ $ref: "#/components/schemas/SiteSocialAccountPlatform"
30460
+ handle:
30461
+ $ref: "#/components/schemas/SiteSocialAccountHandle"
30462
+ display:
30463
+ type: object
30464
+ properties:
30465
+ footer:
30466
+ type: boolean
30467
+ header:
30468
+ type: boolean
30469
+ required:
30470
+ - footer
30471
+ - header
30472
+ required:
30473
+ - platform
30474
+ - handle
30475
+ - display
30476
+ GitSyncSiteCustomizationInsights:
30477
+ type: object
30478
+ description: |
30479
+ Visitor insights settings.
30480
+ properties:
30481
+ trackingCookie:
30482
+ type: boolean
30483
+ description: Whether GitBook identifies visitors on the site using a cookie.
30484
+ required:
30485
+ - trackingCookie
30486
+ GitSyncSiteCustomization:
30487
+ type: object
30488
+ description: |
30489
+ Customization settings for the published site, authored in `docs.yaml`.
30490
+
30491
+ Every top-level field is optional — a Git Sync YAML is a **sparse override** of
30492
+ the live customization. Fields you don't include stay at whatever the site
30493
+ has as default.
30494
+
30495
+ Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
30496
+ have a matching definition under `site.fonts[]`.
30497
+ properties:
30498
+ publishedTitle:
30499
+ description: Title to use for the published site. If omitted, falls back to the default site title.
30500
+ $ref: "#/components/schemas/SiteTitle"
30501
+ localizedPublishedTitles:
30502
+ description: Localized titles for the published site, keyed by locale.
30503
+ $ref: "#/components/schemas/LocalizedString128"
30504
+ styling:
30505
+ $ref: "#/components/schemas/GitSyncSiteCustomizationStyling"
30506
+ favicon:
30507
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFavicon"
30508
+ header:
30509
+ $ref: "#/components/schemas/GitSyncSiteCustomizationHeader"
30510
+ footer:
30511
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFooter"
30512
+ announcement:
30513
+ $ref: "#/components/schemas/GitSyncSiteCustomizationAnnouncement"
30514
+ themeModes:
30515
+ $ref: "#/components/schemas/GitSyncSiteCustomizationThemeModes"
30516
+ feedback:
30517
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFeedback"
30518
+ ai:
30519
+ $ref: "#/components/schemas/GitSyncSiteCustomizationAI"
30520
+ pageActions:
30521
+ $ref: "#/components/schemas/GitSyncSiteCustomizationPageActions"
30522
+ externalLinks:
30523
+ $ref: "#/components/schemas/GitSyncSiteCustomizationExternalLinks"
30524
+ pagination:
30525
+ $ref: "#/components/schemas/GitSyncSiteCustomizationPagination"
30526
+ privacyPolicy:
30527
+ $ref: "#/components/schemas/GitSyncSiteCustomizationPrivacyPolicy"
30528
+ socialPreview:
30529
+ $ref: "#/components/schemas/GitSyncSiteCustomizationSocialPreview"
30530
+ socialAccounts:
30531
+ type: array
30532
+ description: Social accounts to surface on the site.
30533
+ items:
30534
+ $ref: "#/components/schemas/GitSyncSiteCustomizationSocialAccount"
30535
+ maxItems: 10
30536
+ insights:
30537
+ $ref: "#/components/schemas/GitSyncSiteCustomizationInsights"
30538
+ GitSyncSiteConfig:
30539
+ type: object
30540
+ description: |
30541
+ Schema for a site `docs.yaml` file — the canonical contract for what
30542
+ can be authored in Git Sync to drive a site's customization and structure.
30543
+ properties:
30544
+ version:
30545
+ type: integer
30546
+ description: |
30547
+ Reserved for future use. When a breaking schema change ships, this
30548
+ field lets the parser branch on the version; absence means v1.
30549
+ enum:
30550
+ - 1
30551
+ default: 1
30552
+ site:
30553
+ type: object
30554
+ additionalProperties: false
30555
+ properties:
30556
+ title:
30557
+ type: string
30558
+ description: Display title for the site.
30559
+ minLength: 1
30560
+ structure:
30561
+ $ref: "#/components/schemas/GitSyncSiteStructure"
30562
+ fonts:
30563
+ type: array
30564
+ description: Custom font definitions referenced from `site.customization.styling`.
30565
+ items:
30566
+ $ref: "#/components/schemas/GitSyncSiteCustomizationFontDefinition"
30567
+ customization:
30568
+ $ref: "#/components/schemas/GitSyncSiteCustomization"
30569
+ required:
30570
+ - title
30571
+ - structure
30572
+ required:
30573
+ - site
30574
+ IntegrationEnvironmentSpaceInstallation:
30575
+ allOf:
30576
+ - $ref: "#/components/schemas/IntegrationContentInstallationBase"
30577
+ - type: object
30578
+ properties:
30579
+ space:
30580
+ description: The space the integration is installed on.
30581
+ type: string
30582
+ required:
30583
+ - space
30584
+ IntegrationEnvironmentSiteInstallation:
30585
+ allOf:
30586
+ - $ref: "#/components/schemas/IntegrationContentInstallationBase"
30587
+ - type: object
30588
+ properties:
30589
+ site:
30590
+ description: The site the integration is installed on.
30591
+ type: string
30592
+ required:
30593
+ - site
30594
+ IntegrationEnvironment:
30595
+ type: object
30596
+ description: Runtime environment provided during the execution of integration's code.
30597
+ properties:
30598
+ authToken:
30599
+ type: string
30600
+ description: Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration.
30601
+ deprecated: true
30602
+ integration:
30603
+ $ref: "#/components/schemas/Integration"
30604
+ installation:
30605
+ $ref: "#/components/schemas/IntegrationInstallation"
30606
+ spaceInstallation:
30607
+ $ref: "#/components/schemas/IntegrationEnvironmentSpaceInstallation"
30608
+ siteInstallation:
30609
+ $ref: "#/components/schemas/IntegrationEnvironmentSiteInstallation"
30610
+ secrets:
30611
+ $ref: "#/components/schemas/IntegrationSecrets"
30612
+ signingSecret:
30613
+ type: string
30614
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
30615
+ deprecated: true
30616
+ signingSecrets:
30617
+ type: object
30618
+ properties:
30619
+ integration:
30620
+ type: string
30621
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
30622
+ installation:
30623
+ type: string
30624
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the installation.
30625
+ spaceInstallation:
30626
+ type: string
30627
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation.
30628
+ siteInstallation:
30629
+ type: string
30630
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the site installation.
30631
+ required:
30632
+ - integration
30633
+ apiEndpoint:
29568
30634
  type: string
29569
30635
  description: URL of the HTTP API
29570
30636
  apiTokens:
@@ -31003,6 +32069,25 @@ components:
31003
32069
  - idle
31004
32070
  - processing
31005
32071
  - errored
32072
+ AgentActivity:
32073
+ type: object
32074
+ description: |
32075
+ Describes what the agent is currently doing while processing, used to display a live activity indicator in the conversation.
32076
+ properties:
32077
+ type:
32078
+ type: string
32079
+ description: |
32080
+ The kind of activity the agent is currently performing. `thinking` while it reasons or decides on a next action, `tool` while it runs a tool, and `responding` while it writes its answer.
32081
+ enum:
32082
+ - thinking
32083
+ - tool
32084
+ - responding
32085
+ tool:
32086
+ type: string
32087
+ description: |
32088
+ When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`).
32089
+ required:
32090
+ - type
31006
32091
  AgentState:
31007
32092
  type: object
31008
32093
  properties:
@@ -31018,6 +32103,10 @@ components:
31018
32103
  description: List of messages sent by the users queued to processed.
31019
32104
  items:
31020
32105
  $ref: "#/components/schemas/AIMessageInput"
32106
+ activity:
32107
+ $ref: "#/components/schemas/AgentActivity"
32108
+ description: |
32109
+ What the agent is currently doing. Only set while the agent is processing.
31021
32110
  required:
31022
32111
  - status
31023
32112
  - suggestions