@gitbook/api 0.194.0 → 0.195.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
@@ -5833,6 +5833,7 @@ paths:
5833
5833
  get:
5834
5834
  operationId: listOrganizationIntegrationsStatus
5835
5835
  summary: List all integration statuses
5836
+ description: Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource.
5836
5837
  tags:
5837
5838
  - integrations
5838
5839
  - critical
@@ -5850,6 +5851,16 @@ paths:
5850
5851
  - organization
5851
5852
  - space
5852
5853
  - site
5854
+ - name: site
5855
+ in: query
5856
+ description: Return installations for this site. Only valid when target is site.
5857
+ schema:
5858
+ type: string
5859
+ - name: space
5860
+ in: query
5861
+ description: Return installations for this space. Only valid when target is space.
5862
+ schema:
5863
+ type: string
5853
5864
  responses:
5854
5865
  "200":
5855
5866
  description: List of installed integrations and their statuses
@@ -8665,9 +8676,11 @@ paths:
8665
8676
  $ref: "#/components/schemas/SiteFindingStatus"
8666
8677
  - name: type
8667
8678
  in: query
8668
- description: Filter findings by type.
8679
+ description: Filter findings by type. When multiple types are given, findings matching any of them are returned.
8669
8680
  schema:
8670
- $ref: "#/components/schemas/SiteFindingType"
8681
+ type: array
8682
+ items:
8683
+ $ref: "#/components/schemas/SiteFindingType"
8671
8684
  - name: severity
8672
8685
  in: query
8673
8686
  description: Filter findings by estimated severity.
@@ -8942,9 +8955,11 @@ paths:
8942
8955
  $ref: "#/components/schemas/SiteFindingStatus"
8943
8956
  - name: type
8944
8957
  in: query
8945
- description: Filter findings by type.
8958
+ description: Filter findings by type. When multiple types are given, findings matching any of them are returned.
8946
8959
  schema:
8947
- $ref: "#/components/schemas/SiteFindingType"
8960
+ type: array
8961
+ items:
8962
+ $ref: "#/components/schemas/SiteFindingType"
8948
8963
  - name: severity
8949
8964
  in: query
8950
8965
  description: Filter findings by estimated severity.
@@ -13006,6 +13021,20 @@ components:
13006
13021
  enum:
13007
13022
  - export
13008
13023
  - import
13024
+ GitSyncOperationErrorAction:
13025
+ type: object
13026
+ description: An action the user can take to resolve a failed Git Sync operation.
13027
+ properties:
13028
+ label:
13029
+ type: string
13030
+ description: Label for the action.
13031
+ url:
13032
+ type: string
13033
+ format: uri
13034
+ description: URL where the user can resolve the failure.
13035
+ required:
13036
+ - label
13037
+ - url
13009
13038
  GitSyncState:
13010
13039
  type: object
13011
13040
  properties:
@@ -13044,6 +13073,8 @@ components:
13044
13073
  error:
13045
13074
  type: string
13046
13075
  description: Why the operation failed, when it did.
13076
+ errorAction:
13077
+ $ref: "#/components/schemas/GitSyncOperationErrorAction"
13047
13078
  required:
13048
13079
  - state
13049
13080
  - direction
@@ -19301,7 +19332,7 @@ components:
19301
19332
  - 13500_1500
19302
19333
  - 24000_6000
19303
19334
  - 42000_18000
19304
- - 65000_35000
19335
+ - 60000_40000
19305
19336
  OrganizationBilling:
19306
19337
  type: object
19307
19338
  properties:
@@ -19368,6 +19399,13 @@ components:
19368
19399
  oneOf:
19369
19400
  - $ref: "#/components/schemas/BillingCreditsBundle"
19370
19401
  - type: "null"
19402
+ aiCreditAlertThreshold:
19403
+ description: Percentage of total AI credits remaining at which to send a low-balance alert, or null when the alert is disabled.
19404
+ oneOf:
19405
+ - type: number
19406
+ minimum: 0
19407
+ maximum: 100
19408
+ - type: "null"
19371
19409
  required:
19372
19410
  - interval
19373
19411
  - endDate
@@ -19379,6 +19417,7 @@ components:
19379
19417
  - canChangeInterval
19380
19418
  - canUseSAML
19381
19419
  - creditsBundle
19420
+ - aiCreditAlertThreshold
19382
19421
  BillingTrialStatus:
19383
19422
  type: string
19384
19423
  description: |
@@ -20995,12 +21034,14 @@ components:
20995
21034
  - sites-ai-search
20996
21035
  - sites-ai-assistant
20997
21036
  - sites-ai-insights
21037
+ - sites-fix-broken-links
20998
21038
  - sites-connections
20999
21039
  - sites-content-gaps
21000
21040
  - sites-channels
21001
21041
  - sites-embed
21002
21042
  - sites-api-playground
21003
21043
  - sites-basic-customization
21044
+ - sites-broken-links
21004
21045
  - sites-custom-domain
21005
21046
  - sites-custom-fonts
21006
21047
  - sites-custom-subdirectory
@@ -23259,17 +23300,56 @@ components:
23259
23300
  type: boolean
23260
23301
  enum:
23261
23302
  - true
23303
+ InstalledIntegrationTarget:
23304
+ description: The resource on which an integration is installed.
23305
+ oneOf:
23306
+ - type: object
23307
+ required:
23308
+ - type
23309
+ - organizationId
23310
+ properties:
23311
+ type:
23312
+ type: string
23313
+ enum:
23314
+ - organization
23315
+ organizationId:
23316
+ type: string
23317
+ - type: object
23318
+ required:
23319
+ - type
23320
+ - siteId
23321
+ properties:
23322
+ type:
23323
+ type: string
23324
+ enum:
23325
+ - site
23326
+ siteId:
23327
+ type: string
23328
+ - type: object
23329
+ required:
23330
+ - type
23331
+ - spaceId
23332
+ properties:
23333
+ type:
23334
+ type: string
23335
+ enum:
23336
+ - space
23337
+ spaceId:
23338
+ type: string
23262
23339
  InstalledIntegration:
23263
23340
  type: object
23264
- description: An installed integration with its current status
23341
+ description: An integration installation, its current status, and the resource it targets.
23265
23342
  required:
23266
23343
  - status
23267
23344
  - integration
23345
+ - target
23268
23346
  properties:
23269
23347
  status:
23270
23348
  $ref: "#/components/schemas/IntegrationInstallationStatus"
23271
23349
  integration:
23272
23350
  $ref: "#/components/schemas/Integration"
23351
+ target:
23352
+ $ref: "#/components/schemas/InstalledIntegrationTarget"
23273
23353
  SAMLProviderLabel:
23274
23354
  type: string
23275
23355
  minLength: 1
@@ -25187,6 +25267,10 @@ components:
25187
25267
  - none
25188
25268
  - search
25189
25269
  - assistant
25270
+ CustomizationAIGreeting:
25271
+ type: string
25272
+ description: Initial greeting displayed by the AI Assistant when a visitor starts a conversation.
25273
+ maxLength: 256
25190
25274
  CustomizationSuggestedQuestion:
25191
25275
  type: string
25192
25276
  minLength: 3
@@ -25429,6 +25513,10 @@ components:
25429
25513
  properties:
25430
25514
  mode:
25431
25515
  $ref: "#/components/schemas/CustomizationAIMode"
25516
+ greeting:
25517
+ $ref: "#/components/schemas/CustomizationAIGreeting"
25518
+ localizedGreeting:
25519
+ $ref: "#/components/schemas/LocalizedString128"
25432
25520
  suggestions:
25433
25521
  $ref: "#/components/schemas/CustomizationSuggestedQuestions"
25434
25522
  instructions:
@@ -26074,11 +26162,13 @@ components:
26074
26162
  - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
26075
26163
  - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
26076
26164
  - Content gap: The content is missing important information that should be present to answer user questions effectively.
26165
+ - Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
26077
26166
  - Other: Any other type of finding not covered by the above categories.
26078
26167
  enum:
26079
26168
  - content-outdated
26080
26169
  - content-incorrect
26081
26170
  - content-gap
26171
+ - broken-link
26082
26172
  - other
26083
26173
  SiteFindingSeverity:
26084
26174
  type: string
@@ -26111,6 +26201,107 @@ components:
26111
26201
  type: string
26112
26202
  description: Short finding title
26113
26203
  maxLength: 256
26204
+ SiteRedirectSourcePath:
26205
+ type: string
26206
+ description: The source path to redirect from.
26207
+ maxLength: 512
26208
+ pattern: ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
26209
+ SiteRedirectDestinationSiteSection:
26210
+ type: object
26211
+ properties:
26212
+ kind:
26213
+ type: string
26214
+ enum:
26215
+ - site-section
26216
+ siteSectionId:
26217
+ type: string
26218
+ description: Unique identifier for the site section to redirect to
26219
+ required:
26220
+ - kind
26221
+ - siteSectionId
26222
+ SiteRedirectDestinationSiteSpace:
26223
+ type: object
26224
+ properties:
26225
+ kind:
26226
+ type: string
26227
+ enum:
26228
+ - site-space
26229
+ siteSpaceId:
26230
+ type: string
26231
+ description: Unique identifier for the site space to redirect to
26232
+ required:
26233
+ - kind
26234
+ - siteSpaceId
26235
+ SiteRedirectDestinationPage:
26236
+ type: object
26237
+ properties:
26238
+ kind:
26239
+ type: string
26240
+ enum:
26241
+ - site-page
26242
+ siteSpaceId:
26243
+ type: string
26244
+ description: Unique identifier for the site space of the page
26245
+ pageId:
26246
+ type: string
26247
+ description: Unique identifier for the page within the site space to redirect to
26248
+ required:
26249
+ - kind
26250
+ - siteSpaceId
26251
+ - pageId
26252
+ SiteRedirectDestinationExternal:
26253
+ type: object
26254
+ properties:
26255
+ kind:
26256
+ type: string
26257
+ enum:
26258
+ - external
26259
+ url:
26260
+ $ref: "#/components/schemas/URL"
26261
+ required:
26262
+ - kind
26263
+ - url
26264
+ SiteRedirectDestination:
26265
+ oneOf:
26266
+ - $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
26267
+ - $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
26268
+ - $ref: "#/components/schemas/SiteRedirectDestinationPage"
26269
+ - $ref: "#/components/schemas/SiteRedirectDestinationExternal"
26270
+ SiteRedirectInputDestinationPath:
26271
+ type: object
26272
+ properties:
26273
+ kind:
26274
+ type: string
26275
+ enum:
26276
+ - path
26277
+ spaceId:
26278
+ type: string
26279
+ description: Unique identifier for the space containing the page referenced by the path.
26280
+ path:
26281
+ type: string
26282
+ description: Path to the page within the space revision to resolve.
26283
+ required:
26284
+ - kind
26285
+ - spaceId
26286
+ - path
26287
+ SiteRedirectInputDestination:
26288
+ oneOf:
26289
+ - $ref: "#/components/schemas/SiteRedirectDestination"
26290
+ - $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
26291
+ SiteFindingBrokenLinkAction:
26292
+ type: object
26293
+ 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).
26294
+ properties:
26295
+ source:
26296
+ $ref: "#/components/schemas/SiteRedirectSourcePath"
26297
+ captureWildcard:
26298
+ type: boolean
26299
+ description: Whether the redirect appends the wildcard-matched suffix of the source path to the destination.
26300
+ destination:
26301
+ $ref: "#/components/schemas/SiteRedirectInputDestination"
26302
+ required:
26303
+ - source
26304
+ - destination
26114
26305
  SiteFinding:
26115
26306
  type: object
26116
26307
  properties:
@@ -26154,6 +26345,8 @@ components:
26154
26345
  autoFixable:
26155
26346
  type: boolean
26156
26347
  description: Whether an AI agent should be able to fix this finding directly
26348
+ brokenLinkAction:
26349
+ $ref: "#/components/schemas/SiteFindingBrokenLinkAction"
26157
26350
  createdAt:
26158
26351
  $ref: "#/components/schemas/Timestamp"
26159
26352
  updatedAt:
@@ -27731,6 +27924,27 @@ components:
27731
27924
  - tool
27732
27925
  - spaceId
27733
27926
  - changeRequestId
27927
+ AIToolCallArchiveChangeRequest:
27928
+ type: object
27929
+ properties:
27930
+ tool:
27931
+ type: string
27932
+ enum:
27933
+ - archiveChangeRequest
27934
+ spaceId:
27935
+ type: string
27936
+ description: The ID of the space the change request belongs to.
27937
+ changeRequestId:
27938
+ type: string
27939
+ description: The ID of the change request.
27940
+ reason:
27941
+ type: string
27942
+ description: Why the agent gave up on implementing the change request.
27943
+ required:
27944
+ - tool
27945
+ - spaceId
27946
+ - changeRequestId
27947
+ - reason
27734
27948
  AIToolCallComment:
27735
27949
  type: object
27736
27950
  properties:
@@ -27893,6 +28107,7 @@ components:
27893
28107
  - $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
27894
28108
  - $ref: "#/components/schemas/AIToolCallGetChangeRequestDetails"
27895
28109
  - $ref: "#/components/schemas/AIToolCallSetChangeRequestDetails"
28110
+ - $ref: "#/components/schemas/AIToolCallArchiveChangeRequest"
27896
28111
  - $ref: "#/components/schemas/AIToolCallComment"
27897
28112
  - $ref: "#/components/schemas/AIToolCallReplyToComment"
27898
28113
  - $ref: "#/components/schemas/AIToolCallGetComments"
@@ -29268,6 +29483,24 @@ components:
29268
29483
  SiteInsightsQueryEventsColumn:
29269
29484
  oneOf:
29270
29485
  - $ref: "#/components/schemas/SiteInsightsQueryDateTimeColumn"
29486
+ - type: object
29487
+ description: Day of the week the event happened, in UTC, from 1 (Monday) to 7 (Sunday). Group by it alongside `hourOfDay` to fold any range into a weekly activity profile.
29488
+ required:
29489
+ - column
29490
+ properties:
29491
+ column:
29492
+ type: string
29493
+ enum:
29494
+ - dayOfWeek
29495
+ - type: object
29496
+ description: Hour of the day the event happened, in UTC, from 0 to 23.
29497
+ required:
29498
+ - column
29499
+ properties:
29500
+ column:
29501
+ type: string
29502
+ enum:
29503
+ - hourOfDay
29271
29504
  - type: object
29272
29505
  required:
29273
29506
  - column
@@ -29722,6 +29955,36 @@ components:
29722
29955
  type: array
29723
29956
  items:
29724
29957
  $ref: "#/components/schemas/Timestamp"
29958
+ - type: object
29959
+ required:
29960
+ - column
29961
+ - values
29962
+ properties:
29963
+ column:
29964
+ type: string
29965
+ enum:
29966
+ - dayOfWeek
29967
+ values:
29968
+ type: array
29969
+ items:
29970
+ type: integer
29971
+ minimum: 1
29972
+ maximum: 7
29973
+ - type: object
29974
+ required:
29975
+ - column
29976
+ - values
29977
+ properties:
29978
+ column:
29979
+ type: string
29980
+ enum:
29981
+ - hourOfDay
29982
+ values:
29983
+ type: array
29984
+ items:
29985
+ type: integer
29986
+ minimum: 0
29987
+ maximum: 23
29725
29988
  - type: object
29726
29989
  required:
29727
29990
  - column
@@ -30495,72 +30758,6 @@ components:
30495
30758
  type: number
30496
30759
  revenue:
30497
30760
  type: string
30498
- SiteRedirectSourcePath:
30499
- type: string
30500
- description: The source path to redirect from.
30501
- maxLength: 512
30502
- pattern: ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
30503
- SiteRedirectDestinationSiteSection:
30504
- type: object
30505
- properties:
30506
- kind:
30507
- type: string
30508
- enum:
30509
- - site-section
30510
- siteSectionId:
30511
- type: string
30512
- description: Unique identifier for the site section to redirect to
30513
- required:
30514
- - kind
30515
- - siteSectionId
30516
- SiteRedirectDestinationSiteSpace:
30517
- type: object
30518
- properties:
30519
- kind:
30520
- type: string
30521
- enum:
30522
- - site-space
30523
- siteSpaceId:
30524
- type: string
30525
- description: Unique identifier for the site space to redirect to
30526
- required:
30527
- - kind
30528
- - siteSpaceId
30529
- SiteRedirectDestinationPage:
30530
- type: object
30531
- properties:
30532
- kind:
30533
- type: string
30534
- enum:
30535
- - site-page
30536
- siteSpaceId:
30537
- type: string
30538
- description: Unique identifier for the site space of the page
30539
- pageId:
30540
- type: string
30541
- description: Unique identifier for the page within the site space to redirect to
30542
- required:
30543
- - kind
30544
- - siteSpaceId
30545
- - pageId
30546
- SiteRedirectDestinationExternal:
30547
- type: object
30548
- properties:
30549
- kind:
30550
- type: string
30551
- enum:
30552
- - external
30553
- url:
30554
- $ref: "#/components/schemas/URL"
30555
- required:
30556
- - kind
30557
- - url
30558
- SiteRedirectDestination:
30559
- oneOf:
30560
- - $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
30561
- - $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
30562
- - $ref: "#/components/schemas/SiteRedirectDestinationPage"
30563
- - $ref: "#/components/schemas/SiteRedirectDestinationExternal"
30564
30761
  SiteRedirect:
30565
30762
  type: object
30566
30763
  properties:
@@ -30588,27 +30785,6 @@ components:
30588
30785
  - draft
30589
30786
  - captureWildcard
30590
30787
  - destination
30591
- SiteRedirectInputDestinationPath:
30592
- type: object
30593
- properties:
30594
- kind:
30595
- type: string
30596
- enum:
30597
- - path
30598
- spaceId:
30599
- type: string
30600
- description: Unique identifier for the space containing the page referenced by the path.
30601
- path:
30602
- type: string
30603
- description: Path to the page within the space revision to resolve.
30604
- required:
30605
- - kind
30606
- - spaceId
30607
- - path
30608
- SiteRedirectInputDestination:
30609
- oneOf:
30610
- - $ref: "#/components/schemas/SiteRedirectDestination"
30611
- - $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
30612
30788
  SiteMcpServerName:
30613
30789
  type: string
30614
30790
  description: Name of the MCP server
@@ -31241,6 +31417,9 @@ components:
31241
31417
  aiCreditRollover:
31242
31418
  description: Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.
31243
31419
  $ref: "#/components/schemas/OrganizationBillingPercentageOverride"
31420
+ aiCreditAlertThreshold:
31421
+ description: Percentage of total AI credits remaining at which to send a low-balance alert.
31422
+ $ref: "#/components/schemas/OrganizationBillingPercentageOverride"
31244
31423
  minUsers:
31245
31424
  description: Current minimum users override, when set.
31246
31425
  $ref: "#/components/schemas/OrganizationBillingNumericOverride"
@@ -31377,6 +31556,12 @@ components:
31377
31556
  type: object
31378
31557
  description: An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims.
31379
31558
  properties:
31559
+ type:
31560
+ type: string
31561
+ enum:
31562
+ - human
31563
+ - agent
31564
+ description: Whether the visitor is a human or an AI agent. Defaults to human when omitted.
31380
31565
  jwtToken:
31381
31566
  type: string
31382
31567
  description: JWT token generated for a authenticated access session.
@@ -32029,6 +32214,8 @@ components:
32029
32214
  error:
32030
32215
  type: string
32031
32216
  description: Error details, defined if state is `failure`.
32217
+ errorAction:
32218
+ $ref: "#/components/schemas/GitSyncOperationErrorAction"
32032
32219
  required:
32033
32220
  - state
32034
32221
  - direction
@@ -32063,6 +32250,8 @@ components:
32063
32250
  error:
32064
32251
  type: string
32065
32252
  description: Error details, defined if state is `failure`.
32253
+ errorAction:
32254
+ $ref: "#/components/schemas/GitSyncOperationErrorAction"
32066
32255
  spaces:
32067
32256
  type: object
32068
32257
  additionalProperties:
@@ -32422,6 +32611,12 @@ components:
32422
32611
  items:
32423
32612
  type: string
32424
32613
  description: List of spaces that the token is allowed to access.
32614
+ visitorType:
32615
+ type: string
32616
+ enum:
32617
+ - human
32618
+ - agent
32619
+ description: Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted.
32425
32620
  claims:
32426
32621
  type: object
32427
32622
  description: Attributes or assertions that provide specific details about the visitor for which the token was generated.