@gitbook/api 0.138.0 → 0.140.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
@@ -329,6 +329,12 @@ tags:
329
329
  {% openapi-schemas spec="gitbook" schemas="TranslationLanguageSettings" grouped="false" %}
330
330
  The TranslationLanguageSettings object
331
331
  {% endopenapi-schemas %}
332
+ - name: imports
333
+ x-page-icon: cloud-arrow-up
334
+ x-page-title: Imports
335
+ x-page-description: Import content into GitBook.
336
+ description: |
337
+ The Imports API provides allows you to import content into GitBook.
332
338
  - name: glossary
333
339
  x-page-title: Glossary
334
340
  x-page-description: Manage custom terms translations used by the translation feature.
@@ -614,6 +620,8 @@ paths:
614
620
  $ref: "#/components/schemas/DefaultLevel"
615
621
  language:
616
622
  $ref: "#/components/schemas/TranslationLanguage"
623
+ mergeRules:
624
+ $ref: "#/components/schemas/MergeRulesSpaceConfiguration"
617
625
  - oneOf:
618
626
  - type: object
619
627
  title: Emoji
@@ -1586,6 +1594,12 @@ paths:
1586
1594
  $ref: "#/components/schemas/ChangeRequestStatus"
1587
1595
  default: open
1588
1596
  description: If defined, only change requests matching this status will be returned.
1597
+ - name: creator
1598
+ in: query
1599
+ required: false
1600
+ schema:
1601
+ type: string
1602
+ description: If defined, only change requests created by this user will be returned.
1589
1603
  - name: contributor
1590
1604
  in: query
1591
1605
  required: false
@@ -1648,6 +1662,8 @@ paths:
1648
1662
  properties:
1649
1663
  subject:
1650
1664
  $ref: "#/components/schemas/ChangeRequestSubject"
1665
+ description:
1666
+ $ref: "#/components/schemas/JSONDocument"
1651
1667
  status:
1652
1668
  type: string
1653
1669
  enum:
@@ -1858,6 +1874,9 @@ paths:
1858
1874
  subject:
1859
1875
  type: string
1860
1876
  description: Optionally, update the subject of the change request when requesting reviewers.
1877
+ description:
1878
+ $ref: "#/components/schemas/JSONDocument"
1879
+ description: Optionally, update the description of the change request when requesting reviewers.
1861
1880
  required:
1862
1881
  - users
1863
1882
  "/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers/{userId}":
@@ -3173,27 +3192,6 @@ paths:
3173
3192
  $ref: "#/components/schemas/SpaceIntegrationBlocks"
3174
3193
  "404":
3175
3194
  $ref: "#/components/responses/NotFoundError"
3176
- "/spaces/{spaceId}/integration-scripts":
3177
- get:
3178
- operationId: listSpaceIntegrationScripts
3179
- summary: List all the scripts to embed in published content for a space
3180
- tags:
3181
- - space-integrations
3182
- security:
3183
- - user: []
3184
- parameters:
3185
- - $ref: "#/components/parameters/spaceId"
3186
- responses:
3187
- "200":
3188
- description: OK
3189
- content:
3190
- application/json:
3191
- schema:
3192
- type: array
3193
- items:
3194
- $ref: "#/components/schemas/SpaceIntegrationScript"
3195
- "400":
3196
- $ref: "#/components/responses/BadRequestError"
3197
3195
  "/spaces/{spaceId}/pdf":
3198
3196
  get:
3199
3197
  operationId: getSpacePDF
@@ -4497,6 +4495,8 @@ paths:
4497
4495
  type: boolean
4498
4496
  inviteLinks:
4499
4497
  type: boolean
4498
+ mergeRules:
4499
+ $ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
4500
4500
  responses:
4501
4501
  "200":
4502
4502
  description: The organization has been updated
@@ -5137,6 +5137,28 @@ paths:
5137
5137
  description: Organization invite did not exist
5138
5138
  "205":
5139
5139
  description: The organization invite has been deleted
5140
+ "/orgs/{organizationId}/join":
5141
+ post:
5142
+ operationId: joinOrganization
5143
+ summary: Join an organization
5144
+ description: |
5145
+ Join an organization if the user's verified email domain matches one of the organization's allowed email domains.
5146
+ This endpoint allows existing users to join organizations they're eligible for based on their email domain.
5147
+ tags:
5148
+ - organizations
5149
+ security:
5150
+ - user: []
5151
+ parameters:
5152
+ - $ref: "#/components/parameters/organizationId"
5153
+ responses:
5154
+ "204":
5155
+ description: Successfully joined the organization
5156
+ "400":
5157
+ description: User's email domain is not valid
5158
+ $ref: "#/components/responses/BadRequestError"
5159
+ "404":
5160
+ description: Organization not found
5161
+ $ref: "#/components/responses/NotFoundError"
5140
5162
  "/orgs/{organizationId}/search":
5141
5163
  get:
5142
5164
  operationId: searchOrganizationContent
@@ -5171,6 +5193,53 @@ paths:
5171
5193
  type: array
5172
5194
  items:
5173
5195
  $ref: "#/components/schemas/SearchSpaceResult"
5196
+ "/orgs/{organizationId}/change-requests":
5197
+ get:
5198
+ operationId: listChangeRequestsForOrganization
5199
+ summary: List all change requests in an organization
5200
+ tags:
5201
+ - change-requests
5202
+ security:
5203
+ - user: []
5204
+ parameters:
5205
+ - $ref: "#/components/parameters/listPage"
5206
+ - $ref: "#/components/parameters/listLimit"
5207
+ - $ref: "#/components/parameters/organizationId"
5208
+ - name: status
5209
+ in: query
5210
+ required: false
5211
+ schema:
5212
+ $ref: "#/components/schemas/ChangeRequestStatus"
5213
+ default: open
5214
+ description: If defined, only change requests matching this status will be returned.
5215
+ - name: creator
5216
+ in: query
5217
+ required: false
5218
+ schema:
5219
+ type: string
5220
+ description: If defined, only change requests created by this user will be returned.
5221
+ - name: contributor
5222
+ in: query
5223
+ required: false
5224
+ schema:
5225
+ type: string
5226
+ description: If defined, only change requests with contributions from this user will be returned.
5227
+ responses:
5228
+ "200":
5229
+ description: List of the organization's change requests
5230
+ content:
5231
+ application/json:
5232
+ schema:
5233
+ allOf:
5234
+ - $ref: "#/components/schemas/List"
5235
+ - type: object
5236
+ required:
5237
+ - items
5238
+ properties:
5239
+ items:
5240
+ type: array
5241
+ items:
5242
+ $ref: "#/components/schemas/ChangeRequest"
5174
5243
  "/orgs/{organizationId}/spaces":
5175
5244
  get:
5176
5245
  operationId: listSpacesInOrganizationById
@@ -5396,10 +5465,19 @@ paths:
5396
5465
  - $ref: "#/components/parameters/organizationId"
5397
5466
  - $ref: "#/components/parameters/listPage"
5398
5467
  - $ref: "#/components/parameters/listLimit"
5399
- - $ref: "#/components/parameters/integrationSearchQuery"
5468
+ - name: target
5469
+ in: query
5470
+ description: Filter installations by their target (organization, space, or site). When not provided, defaults to organization-level installations for backwards compatibility
5471
+ schema:
5472
+ type: string
5473
+ default: organization
5474
+ enum:
5475
+ - organization
5476
+ - space
5477
+ - site
5400
5478
  responses:
5401
5479
  "200":
5402
- description: List of integrations.
5480
+ description: List of installed integrations and their statuses
5403
5481
  content:
5404
5482
  application/json:
5405
5483
  schema:
@@ -5412,15 +5490,7 @@ paths:
5412
5490
  items:
5413
5491
  type: array
5414
5492
  items:
5415
- type: object
5416
- required:
5417
- - status
5418
- - integration
5419
- properties:
5420
- status:
5421
- $ref: "#/components/schemas/IntegrationInstallationStatus"
5422
- integration:
5423
- $ref: "#/components/schemas/Integration"
5493
+ $ref: "#/components/schemas/InstalledIntegration"
5424
5494
  "/orgs/{organizationId}/saml":
5425
5495
  get:
5426
5496
  operationId: listSAMLProvidersInOrganizationById
@@ -6635,6 +6705,42 @@ paths:
6635
6705
  description: Organization or font not found.
6636
6706
  "205":
6637
6707
  description: Custom font deleted successfully.
6708
+ "/org/{organizationId}/imports":
6709
+ post:
6710
+ operationId: startImportRun
6711
+ summary: Import content into a space from a website
6712
+ tags:
6713
+ - imports
6714
+ x-internal: true
6715
+ security:
6716
+ - user-internal: []
6717
+ parameters:
6718
+ - $ref: "#/components/parameters/organizationId"
6719
+ requestBody:
6720
+ required: true
6721
+ content:
6722
+ application/json:
6723
+ schema:
6724
+ type: object
6725
+ properties:
6726
+ source:
6727
+ $ref: "#/components/schemas/ContentImportSource"
6728
+ target:
6729
+ $ref: "#/components/schemas/ContentImportTarget"
6730
+ required:
6731
+ - source
6732
+ - target
6733
+ responses:
6734
+ "201":
6735
+ description: Import run created successfully.
6736
+ content:
6737
+ application/json:
6738
+ schema:
6739
+ $ref: "#/components/schemas/ContentImportRun"
6740
+ "400":
6741
+ $ref: "#/components/responses/BadRequestError"
6742
+ "404":
6743
+ $ref: "#/components/responses/NotFoundError"
6638
6744
  "/orgs/{organizationId}/sites":
6639
6745
  get:
6640
6746
  operationId: listSites
@@ -7705,7 +7811,7 @@ paths:
7705
7811
  condition:
7706
7812
  description: Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.
7707
7813
  oneOf:
7708
- - $ref: "#/components/schemas/Condition"
7814
+ - $ref: "#/components/schemas/Expression"
7709
7815
  - type: string
7710
7816
  nullable: true
7711
7817
  enum:
@@ -7931,7 +8037,7 @@ paths:
7931
8037
  condition:
7932
8038
  description: Conditional expression used to evaluate whether the site space should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.
7933
8039
  oneOf:
7934
- - $ref: "#/components/schemas/Condition"
8040
+ - $ref: "#/components/schemas/Expression"
7935
8041
  - type: string
7936
8042
  nullable: true
7937
8043
  enum:
@@ -9899,6 +10005,123 @@ components:
9899
10005
  enum:
9900
10006
  - live
9901
10007
  - locked
10008
+ MergeRulesConfigurationInherit:
10009
+ type: object
10010
+ description: The merge rules inherits from the organization configuration.
10011
+ properties:
10012
+ type:
10013
+ type: string
10014
+ enum:
10015
+ - inherit
10016
+ required:
10017
+ - type
10018
+ Expression:
10019
+ type: string
10020
+ description: Expression to evaluate
10021
+ minLength: 0
10022
+ maxLength: 1024
10023
+ MergeRule:
10024
+ oneOf:
10025
+ - type: object
10026
+ properties:
10027
+ rule:
10028
+ type: string
10029
+ enum:
10030
+ - require_specific_reviewers
10031
+ users:
10032
+ type: array
10033
+ description: List of user IDs.
10034
+ items:
10035
+ type: string
10036
+ required:
10037
+ - rule
10038
+ - users
10039
+ - type: object
10040
+ properties:
10041
+ rule:
10042
+ type: string
10043
+ enum:
10044
+ - require_one_of_specific_reviewers
10045
+ users:
10046
+ type: array
10047
+ description: List of user IDs.
10048
+ items:
10049
+ type: string
10050
+ required:
10051
+ - rule
10052
+ - users
10053
+ - type: object
10054
+ properties:
10055
+ rule:
10056
+ type: string
10057
+ enum:
10058
+ - allow_bypass
10059
+ users:
10060
+ type: array
10061
+ description: List of user IDs.
10062
+ items:
10063
+ type: string
10064
+ required:
10065
+ - rule
10066
+ - users
10067
+ - type: object
10068
+ properties:
10069
+ rule:
10070
+ type: string
10071
+ enum:
10072
+ - require_at_least_one_review
10073
+ - require_all_reviews_approved
10074
+ - require_agent_review
10075
+ - require_up_to_date_change_request
10076
+ - require_change_request_subject
10077
+ - require_change_request_description
10078
+ required:
10079
+ - rule
10080
+ - type: object
10081
+ description: The merge rule is written in the advanced custom expression syntax.
10082
+ properties:
10083
+ rule:
10084
+ type: string
10085
+ enum:
10086
+ - custom
10087
+ expression:
10088
+ $ref: "#/components/schemas/Expression"
10089
+ required:
10090
+ - rule
10091
+ - expression
10092
+ MergeRulesConfigurationRules:
10093
+ type: object
10094
+ description: The merge rules are composed of individual rules that must all pass.
10095
+ properties:
10096
+ type:
10097
+ type: string
10098
+ enum:
10099
+ - rules
10100
+ rules:
10101
+ type: array
10102
+ items:
10103
+ $ref: "#/components/schemas/MergeRule"
10104
+ required:
10105
+ - type
10106
+ - rules
10107
+ MergeRulesConfigurationNone:
10108
+ type: object
10109
+ description: The merge rules are disabled, change requests can be merged without review.
10110
+ properties:
10111
+ type:
10112
+ type: string
10113
+ enum:
10114
+ - none
10115
+ required:
10116
+ - type
10117
+ MergeRulesStandaloneConfiguration:
10118
+ oneOf:
10119
+ - $ref: "#/components/schemas/MergeRulesConfigurationRules"
10120
+ - $ref: "#/components/schemas/MergeRulesConfigurationNone"
10121
+ MergeRulesSpaceConfiguration:
10122
+ oneOf:
10123
+ - $ref: "#/components/schemas/MergeRulesConfigurationInherit"
10124
+ - $ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
9902
10125
  TranslationLanguage:
9903
10126
  type: string
9904
10127
  enum:
@@ -10056,6 +10279,8 @@ components:
10056
10279
  $ref: "#/components/schemas/Timestamp"
10057
10280
  editMode:
10058
10281
  $ref: "#/components/schemas/SpaceEditMode"
10282
+ mergeRules:
10283
+ $ref: "#/components/schemas/MergeRulesSpaceConfiguration"
10059
10284
  urls:
10060
10285
  type: object
10061
10286
  description: URLs associated with the object
@@ -10170,6 +10395,7 @@ components:
10170
10395
  - changeRequests
10171
10396
  - changeRequestsOpen
10172
10397
  - changeRequestsDraft
10398
+ - mergeRules
10173
10399
  - urls
10174
10400
  - defaultLevel
10175
10401
  - permissions
@@ -11496,6 +11722,28 @@ components:
11496
11722
  - type
11497
11723
  - columns
11498
11724
  - cardSize
11725
+ CardsImageObjectFit:
11726
+ type: string
11727
+ description: Object fit for image display in card views
11728
+ enum:
11729
+ - contain
11730
+ - fill
11731
+ - cover
11732
+ DocumentTableImageRecord:
11733
+ description: A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings.
11734
+ oneOf:
11735
+ - $ref: "#/components/schemas/ContentRefFile"
11736
+ - $ref: "#/components/schemas/ContentRefURL"
11737
+ - type: object
11738
+ properties:
11739
+ ref:
11740
+ oneOf:
11741
+ - $ref: "#/components/schemas/ContentRefFile"
11742
+ - $ref: "#/components/schemas/ContentRefURL"
11743
+ objectFit:
11744
+ $ref: "#/components/schemas/CardsImageObjectFit"
11745
+ required:
11746
+ - ref
11499
11747
  DocumentTableRecord:
11500
11748
  type: object
11501
11749
  properties:
@@ -11513,6 +11761,7 @@ components:
11513
11761
  items:
11514
11762
  type: string
11515
11763
  - $ref: "#/components/schemas/ContentRef"
11764
+ - $ref: "#/components/schemas/DocumentTableImageRecord"
11516
11765
  required:
11517
11766
  - orderIndex
11518
11767
  - values
@@ -13754,12 +14003,17 @@ components:
13754
14003
  $ref: "#/components/schemas/ChangeRequestStatus"
13755
14004
  subject:
13756
14005
  $ref: "#/components/schemas/ChangeRequestSubject"
14006
+ description:
14007
+ $ref: "#/components/schemas/JSONDocument"
13757
14008
  createdBy:
13758
14009
  $ref: "#/components/schemas/User"
13759
14010
  createdAt:
13760
14011
  $ref: "#/components/schemas/Timestamp"
13761
14012
  updatedAt:
13762
14013
  $ref: "#/components/schemas/Timestamp"
14014
+ space:
14015
+ type: string
14016
+ description: ID of the space in which the change request was created.
13763
14017
  revision:
13764
14018
  type: string
13765
14019
  description: ID of the active revision in the change request.
@@ -13802,6 +14056,7 @@ components:
13802
14056
  - createdBy
13803
14057
  - createdAt
13804
14058
  - updatedAt
14059
+ - space
13805
14060
  - revision
13806
14061
  - revisionInitial
13807
14062
  - comments
@@ -14138,6 +14393,8 @@ components:
14138
14393
  billing:
14139
14394
  description: Billing details, only available for org members.
14140
14395
  $ref: "#/components/schemas/OrganizationBilling"
14396
+ mergeRules:
14397
+ $ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
14141
14398
  urls:
14142
14399
  type: object
14143
14400
  description: URLs associated with the object
@@ -14262,6 +14519,7 @@ components:
14262
14519
  - inviteLinks
14263
14520
  - type
14264
14521
  - emailDomains
14522
+ - mergeRules
14265
14523
  - urls
14266
14524
  - trial
14267
14525
  - permissions
@@ -14542,6 +14800,19 @@ components:
14542
14800
  - FETCH_TIMEOUT
14543
14801
  - FETCH_ERROR
14544
14802
  - PARSE_ERROR
14803
+ OpenAPIErrorObject:
14804
+ type: object
14805
+ description: OpenAPI error object.
14806
+ properties:
14807
+ message:
14808
+ type: string
14809
+ description: Description of the error.
14810
+ error:
14811
+ type: string
14812
+ description: Unique code of the error.
14813
+ required:
14814
+ - message
14815
+ - code
14545
14816
  OpenAPISpec:
14546
14817
  type: object
14547
14818
  properties:
@@ -14575,6 +14846,10 @@ components:
14575
14846
  $ref: "#/components/schemas/Timestamp"
14576
14847
  lastProcessErrorCode:
14577
14848
  $ref: "#/components/schemas/OpenAPISpecProcessingErrorCode"
14849
+ lastProcessedErrors:
14850
+ type: array
14851
+ items:
14852
+ $ref: "#/components/schemas/OpenAPIErrorObject"
14578
14853
  permissions:
14579
14854
  type: object
14580
14855
  description: The set of permissions for the OpenAPI specification.
@@ -15109,10 +15384,16 @@ components:
15109
15384
  type: integer
15110
15385
  user:
15111
15386
  $ref: "#/components/schemas/User"
15387
+ actionType:
15388
+ type: string
15389
+ enum:
15390
+ - edit
15391
+ - comment
15112
15392
  required:
15113
15393
  - updatedAt
15114
15394
  - count
15115
15395
  - user
15396
+ - actionType
15116
15397
  RevisionPageType:
15117
15398
  type: string
15118
15399
  enum:
@@ -15571,15 +15852,11 @@ components:
15571
15852
  IntegrationScope:
15572
15853
  type: string
15573
15854
  enum:
15574
- - space:views:read
15575
15855
  - space:content:read
15576
15856
  - space:content:write
15577
15857
  - space:metadata:read
15578
15858
  - space:metadata:write
15579
- - space:script:inject
15580
- - space:script:cookies
15581
15859
  - space:git:sync
15582
- - space:visitor:auth
15583
15860
  - site:metadata:read
15584
15861
  - site:views:read
15585
15862
  - site:script:inject
@@ -15587,7 +15864,6 @@ components:
15587
15864
  - site:visitor:auth
15588
15865
  - site:adaptive:read
15589
15866
  - site:adaptive:write
15590
- - site:ai:ask
15591
15867
  - openapi:read
15592
15868
  - openapi:write
15593
15869
  - conversations:ingest
@@ -15941,21 +16217,6 @@ components:
15941
16217
  type: array
15942
16218
  items:
15943
16219
  $ref: "#/components/schemas/IntegrationBlock"
15944
- SpaceIntegrationScript:
15945
- type: object
15946
- properties:
15947
- script:
15948
- description: Script URL to load.
15949
- $ref: "#/components/schemas/URL"
15950
- contentSecurityPolicy:
15951
- description: Content Security Policy to secure the loading of this script.
15952
- type: string
15953
- cookies:
15954
- type: boolean
15955
- description: If true, the script will potentially load use cookies and visitors should be aware.
15956
- required:
15957
- - script
15958
- - cookies
15959
16220
  IntegrationSecrets:
15960
16221
  type: object
15961
16222
  description: Secrets stored on the integration and passed at runtime.
@@ -16305,56 +16566,6 @@ components:
16305
16566
  required:
16306
16567
  - type
16307
16568
  - previous
16308
- SpaceViewEvent:
16309
- allOf:
16310
- - $ref: "#/components/schemas/SpaceEvent"
16311
- - type: object
16312
- description: Event received when a page has been visited.
16313
- properties:
16314
- type:
16315
- type: string
16316
- enum:
16317
- - space_view
16318
- pageId:
16319
- type: string
16320
- description: Unique identifier of the visited page.
16321
- visitor:
16322
- type: object
16323
- description: Analytics info on the GitBook's content visitor.
16324
- properties:
16325
- anonymousId:
16326
- type: string
16327
- description: GitBook's unique identifier of the visitor.
16328
- cookies:
16329
- type: object
16330
- description: The visitors cookies.
16331
- additionalProperties:
16332
- type: string
16333
- userAgent:
16334
- type: string
16335
- description: User-agent of the visitor.
16336
- ip:
16337
- type: string
16338
- description: IP address of the visitor.
16339
- language:
16340
- type: string
16341
- description: Language of the visitor.
16342
- required:
16343
- - anonymousId
16344
- - cookies
16345
- - userAgent
16346
- - ip
16347
- url:
16348
- type: string
16349
- description: The GitBook content's URL visited (including URL params).
16350
- referrer:
16351
- type: string
16352
- description: The URL of referrer that linked to the page.
16353
- required:
16354
- - type
16355
- - visitor
16356
- - url
16357
- - referrer
16358
16569
  SiteViewEvent:
16359
16570
  allOf:
16360
16571
  - $ref: "#/components/schemas/SiteEvent"
@@ -16546,9 +16757,7 @@ components:
16546
16757
  - request
16547
16758
  FetchPublishedScriptEvent:
16548
16759
  allOf:
16549
- - oneOf:
16550
- - $ref: "#/components/schemas/SpaceEvent"
16551
- - $ref: "#/components/schemas/SiteEvent"
16760
+ - $ref: "#/components/schemas/SiteEvent"
16552
16761
  - type: object
16553
16762
  description: Common properties for all events related to fetching a published script from an installation
16554
16763
  properties:
@@ -16560,9 +16769,7 @@ components:
16560
16769
  - type
16561
16770
  FetchVisitorAuthenticationEvent:
16562
16771
  allOf:
16563
- - oneOf:
16564
- - $ref: "#/components/schemas/SpaceEvent"
16565
- - $ref: "#/components/schemas/SiteEvent"
16772
+ - $ref: "#/components/schemas/SiteEvent"
16566
16773
  - type: object
16567
16774
  description: Common properties for all events related to authenticated access from an installation
16568
16775
  properties:
@@ -16774,7 +16981,6 @@ components:
16774
16981
  - $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
16775
16982
  - $ref: "#/components/schemas/SiteInstallationSetupEvent"
16776
16983
  - $ref: "#/components/schemas/SiteInstallationDeletedEvent"
16777
- - $ref: "#/components/schemas/SpaceViewEvent"
16778
16984
  - $ref: "#/components/schemas/SiteViewEvent"
16779
16985
  - $ref: "#/components/schemas/SpaceContentUpdatedEvent"
16780
16986
  - $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
@@ -18108,10 +18314,6 @@ components:
18108
18314
  description: Path to the section on the site
18109
18315
  minLength: 1
18110
18316
  maxLength: 100
18111
- Condition:
18112
- type: string
18113
- minLength: 1
18114
- maxLength: 1024
18115
18317
  SiteSpacePath:
18116
18318
  type: string
18117
18319
  description: Path to the space on the site
@@ -18142,7 +18344,7 @@ components:
18142
18344
  description: Whether this is the default space for the site
18143
18345
  condition:
18144
18346
  description: Conditional expression used to evaluate whether the site space should be shown to the site's visitor.
18145
- $ref: "#/components/schemas/Condition"
18347
+ $ref: "#/components/schemas/Expression"
18146
18348
  hasAdvancedCustomizationFeature:
18147
18349
  type: boolean
18148
18350
  description: Whether the space has advanced customization feature enabled
@@ -18183,7 +18385,7 @@ components:
18183
18385
  $ref: "#/components/schemas/SiteSectionPath"
18184
18386
  condition:
18185
18387
  description: Conditional expression used to evaluate whether the site section should be shown to the site's visitor.
18186
- $ref: "#/components/schemas/Condition"
18388
+ $ref: "#/components/schemas/Expression"
18187
18389
  sectionGroup:
18188
18390
  type: string
18189
18391
  description: ID of the section group the section belongs to in the site
@@ -18880,6 +19082,17 @@ components:
18880
19082
  properties:
18881
19083
  computedSource:
18882
19084
  $ref: "#/components/schemas/ComputedContentSourceRevision"
19085
+ InstalledIntegration:
19086
+ type: object
19087
+ description: An installed integration with its current status
19088
+ required:
19089
+ - status
19090
+ - integration
19091
+ properties:
19092
+ status:
19093
+ $ref: "#/components/schemas/IntegrationInstallationStatus"
19094
+ integration:
19095
+ $ref: "#/components/schemas/Integration"
18883
19096
  SAMLProviderLabel:
18884
19097
  type: string
18885
19098
  minLength: 1
@@ -19973,6 +20186,68 @@ components:
19973
20186
  description: The path of the file in the storage bucket
19974
20187
  minLength: 1
19975
20188
  maxLength: 512
20189
+ ContentImportSource:
20190
+ type: object
20191
+ properties:
20192
+ type:
20193
+ type: string
20194
+ enum:
20195
+ - website
20196
+ url:
20197
+ $ref: "#/components/schemas/URL"
20198
+ required:
20199
+ - type
20200
+ - url
20201
+ ChangeRequestPointer:
20202
+ type: object
20203
+ properties:
20204
+ type:
20205
+ type: string
20206
+ enum:
20207
+ - change-request
20208
+ space:
20209
+ type: string
20210
+ description: Unique identifier for the space
20211
+ changeRequest:
20212
+ type: string
20213
+ description: Unique identifier for the change request
20214
+ required:
20215
+ - type
20216
+ - space
20217
+ - changeRequest
20218
+ ContentImportTarget:
20219
+ oneOf:
20220
+ - $ref: "#/components/schemas/SpacePointer"
20221
+ - $ref: "#/components/schemas/ChangeRequestPointer"
20222
+ ContentImportRun:
20223
+ type: object
20224
+ properties:
20225
+ id:
20226
+ description: Unique ID of the import
20227
+ type: string
20228
+ startedAt:
20229
+ description: Date when the import has started
20230
+ $ref: "#/components/schemas/Timestamp"
20231
+ completedAt:
20232
+ description: Filled when the imported is in status "completed"
20233
+ $ref: "#/components/schemas/Timestamp"
20234
+ status:
20235
+ description: Status of the import
20236
+ type: string
20237
+ enum:
20238
+ - pending
20239
+ - in-progress
20240
+ - completed
20241
+ - failed
20242
+ - cancelled
20243
+ pages:
20244
+ description: Ids of the imported pages
20245
+ type: array
20246
+ items:
20247
+ type: string
20248
+ required:
20249
+ - id
20250
+ - status
19976
20251
  BillingOperationPreviewResponse:
19977
20252
  description: |
19978
20253
  A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.
@@ -20382,7 +20657,7 @@ components:
20382
20657
  $ref: "#/components/schemas/CustomizationContentLink"
20383
20658
  condition:
20384
20659
  description: Conditional expression used to evaluate whether the header item should be shown to the site's visitor.
20385
- $ref: "#/components/schemas/Condition"
20660
+ $ref: "#/components/schemas/Expression"
20386
20661
  required:
20387
20662
  - title
20388
20663
  - links
@@ -20438,7 +20713,6 @@ components:
20438
20713
  - none
20439
20714
  - search
20440
20715
  - assistant
20441
- - integration
20442
20716
  SiteExternalLinksTarget:
20443
20717
  type: string
20444
20718
  description: |
@@ -20596,9 +20870,6 @@ components:
20596
20870
  properties:
20597
20871
  mode:
20598
20872
  $ref: "#/components/schemas/CustomizationAIMode"
20599
- integrationId:
20600
- type: string
20601
- description: The integration to use for the AI features on the site. Only required if mode is set to "integration".
20602
20873
  required:
20603
20874
  - mode
20604
20875
  advancedCustomization:
@@ -20868,8 +21139,15 @@ components:
20868
21139
  type: string
20869
21140
  enum:
20870
21141
  - default
21142
+ currentSiteSpace:
21143
+ type: string
21144
+ description: |
21145
+ The ID of the site space that must always be included in the search results. The language of this site space will be used to match other site spaces with the same language, if applicable.
20871
21146
  includedSiteSpaces:
20872
21147
  type: array
21148
+ deprecated: true
21149
+ description: |
21150
+ Site spaces to include in search results in addition to default site spaces. This is deprecated and will be removed soon. Please use 'currentSiteSpace' instead.
20873
21151
  items:
20874
21152
  type: string
20875
21153
  - type: object
@@ -21461,6 +21739,26 @@ components:
21461
21739
  - spaceId
21462
21740
  - action
21463
21741
  - task
21742
+ AIToolCallComment:
21743
+ type: object
21744
+ properties:
21745
+ tool:
21746
+ type: string
21747
+ enum:
21748
+ - comment
21749
+ spaceId:
21750
+ type: string
21751
+ description: The ID of the space being commented.
21752
+ page:
21753
+ description: The page being commented.
21754
+ $ref: "#/components/schemas/ChangedRevisionPage"
21755
+ commentId:
21756
+ type: string
21757
+ description: The ID of the comment being posted.
21758
+ required:
21759
+ - tool
21760
+ - spaceId
21761
+ - commentId
21464
21762
  AIToolCallMCP:
21465
21763
  type: object
21466
21764
  description: Tool called from an MCP server
@@ -21508,6 +21806,7 @@ components:
21508
21806
  - $ref: "#/components/schemas/AIToolCallListModifiedPages"
21509
21807
  - $ref: "#/components/schemas/AIToolCallGetPageDiff"
21510
21808
  - $ref: "#/components/schemas/AIToolCallCreateAgentTask"
21809
+ - $ref: "#/components/schemas/AIToolCallComment"
21511
21810
  - $ref: "#/components/schemas/AIToolCallMCP"
21512
21811
  - $ref: "#/components/schemas/AIToolCallOther"
21513
21812
  AIStreamResponseToolCall:
@@ -24267,6 +24566,21 @@ components:
24267
24566
  - integration
24268
24567
  - signingSecrets
24269
24568
  - secrets
24569
+ SpaceIntegrationScript:
24570
+ type: object
24571
+ properties:
24572
+ script:
24573
+ description: Script URL to load.
24574
+ $ref: "#/components/schemas/URL"
24575
+ contentSecurityPolicy:
24576
+ description: Content Security Policy to secure the loading of this script.
24577
+ type: string
24578
+ cookies:
24579
+ type: boolean
24580
+ description: If true, the script will potentially load use cookies and visitors should be aware.
24581
+ required:
24582
+ - script
24583
+ - cookies
24270
24584
  ContentComputeDocumentEventResponse:
24271
24585
  type: object
24272
24586
  description: Response expected for an event of type `content_compute_document`.
@@ -24834,6 +25148,19 @@ components:
24834
25148
  required:
24835
25149
  - channel
24836
25150
  - organization
25151
+ OrganizationChangeRequestsChannel:
25152
+ type: object
25153
+ description: Subscription channel for all change requests in an organization.
25154
+ properties:
25155
+ channel:
25156
+ type: string
25157
+ enum:
25158
+ - organization-change-requests
25159
+ organization:
25160
+ type: string
25161
+ required:
25162
+ - channel
25163
+ - organization
24837
25164
  SpaceCommentsChannel:
24838
25165
  type: object
24839
25166
  properties:
@@ -25304,6 +25631,18 @@ components:
25304
25631
  required:
25305
25632
  - channel
25306
25633
  - organization
25634
+ ImportRunChannel:
25635
+ type: object
25636
+ properties:
25637
+ channel:
25638
+ type: string
25639
+ enum:
25640
+ - import-run
25641
+ runId:
25642
+ type: string
25643
+ required:
25644
+ - channel
25645
+ - runId
25307
25646
  SubscriptionChannel:
25308
25647
  description: Channel to subscribe to for realtime updates.
25309
25648
  oneOf:
@@ -25342,6 +25681,7 @@ components:
25342
25681
  - $ref: "#/components/schemas/OrganizationTranslationsChannel"
25343
25682
  - $ref: "#/components/schemas/OrganizationTranslationsGlossaryChannel"
25344
25683
  - $ref: "#/components/schemas/OrganizationCustomFontsChannel"
25684
+ - $ref: "#/components/schemas/OrganizationChangeRequestsChannel"
25345
25685
  - $ref: "#/components/schemas/SpaceCommentsChannel"
25346
25686
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
25347
25687
  - $ref: "#/components/schemas/CommentInfoChannel"
@@ -25376,6 +25716,7 @@ components:
25376
25716
  - $ref: "#/components/schemas/TranslationRunChannel"
25377
25717
  - $ref: "#/components/schemas/AgentTaskChannel"
25378
25718
  - $ref: "#/components/schemas/AgentTasksChannel"
25719
+ - $ref: "#/components/schemas/ImportRunChannel"
25379
25720
  discriminator:
25380
25721
  propertyName: channel
25381
25722
  TranslationRunChannelData:
@@ -25402,6 +25743,18 @@ components:
25402
25743
  required:
25403
25744
  - channel
25404
25745
  - data
25746
+ ImportRunChannelData:
25747
+ type: object
25748
+ properties:
25749
+ channel:
25750
+ type: string
25751
+ enum:
25752
+ - import-run
25753
+ data:
25754
+ $ref: "#/components/schemas/ContentImportRun"
25755
+ required:
25756
+ - channel
25757
+ - data
25405
25758
  GitSyncOperationChannelData:
25406
25759
  type: object
25407
25760
  properties:
@@ -25503,6 +25856,7 @@ components:
25503
25856
  - $ref: "#/components/schemas/ChangeRequestContentRefsChannelData"
25504
25857
  - $ref: "#/components/schemas/OrganizationAIIndexationChannelData"
25505
25858
  - $ref: "#/components/schemas/TranslationRunChannelData"
25859
+ - $ref: "#/components/schemas/ImportRunChannelData"
25506
25860
  - $ref: "#/components/schemas/APIChannelMutationData"
25507
25861
  discriminator:
25508
25862
  propertyName: channel
@@ -25705,6 +26059,27 @@ components:
25705
26059
  - $ref: "#/components/schemas/AgentStreamMessages"
25706
26060
  - $ref: "#/components/schemas/AgentStreamMessageResponse"
25707
26061
  - $ref: "#/components/schemas/AgentStreamState"
26062
+ MergeRulesEvaluationContext:
26063
+ type: object
26064
+ description: Context available when evaluating merge rules expressions.
26065
+ properties:
26066
+ space:
26067
+ $ref: "#/components/schemas/Space"
26068
+ changeRequest:
26069
+ $ref: "#/components/schemas/ChangeRequest"
26070
+ reviews:
26071
+ description: The reviews posted on the change request.
26072
+ type: array
26073
+ items:
26074
+ $ref: "#/components/schemas/ChangeRequestReview"
26075
+ actor:
26076
+ description: The user who is attempting to merge the change request.
26077
+ $ref: "#/components/schemas/User"
26078
+ required:
26079
+ - space
26080
+ - changeRequest
26081
+ - reviews
26082
+ - actor
25708
26083
  RequestSpaceTrackPageView:
25709
26084
  $ref: "#/components/schemas/SpaceTrackPageView"
25710
26085
  RequestSiteTrackPageView: