@gitbook/api 0.139.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
@@ -3178,27 +3192,6 @@ paths:
3178
3192
  $ref: "#/components/schemas/SpaceIntegrationBlocks"
3179
3193
  "404":
3180
3194
  $ref: "#/components/responses/NotFoundError"
3181
- "/spaces/{spaceId}/integration-scripts":
3182
- get:
3183
- operationId: listSpaceIntegrationScripts
3184
- summary: List all the scripts to embed in published content for a space
3185
- tags:
3186
- - space-integrations
3187
- security:
3188
- - user: []
3189
- parameters:
3190
- - $ref: "#/components/parameters/spaceId"
3191
- responses:
3192
- "200":
3193
- description: OK
3194
- content:
3195
- application/json:
3196
- schema:
3197
- type: array
3198
- items:
3199
- $ref: "#/components/schemas/SpaceIntegrationScript"
3200
- "400":
3201
- $ref: "#/components/responses/BadRequestError"
3202
3195
  "/spaces/{spaceId}/pdf":
3203
3196
  get:
3204
3197
  operationId: getSpacePDF
@@ -4502,6 +4495,8 @@ paths:
4502
4495
  type: boolean
4503
4496
  inviteLinks:
4504
4497
  type: boolean
4498
+ mergeRules:
4499
+ $ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
4505
4500
  responses:
4506
4501
  "200":
4507
4502
  description: The organization has been updated
@@ -5217,6 +5212,12 @@ paths:
5217
5212
  $ref: "#/components/schemas/ChangeRequestStatus"
5218
5213
  default: open
5219
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.
5220
5221
  - name: contributor
5221
5222
  in: query
5222
5223
  required: false
@@ -5464,10 +5465,19 @@ paths:
5464
5465
  - $ref: "#/components/parameters/organizationId"
5465
5466
  - $ref: "#/components/parameters/listPage"
5466
5467
  - $ref: "#/components/parameters/listLimit"
5467
- - $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
5468
5478
  responses:
5469
5479
  "200":
5470
- description: List of integrations.
5480
+ description: List of installed integrations and their statuses
5471
5481
  content:
5472
5482
  application/json:
5473
5483
  schema:
@@ -5480,15 +5490,7 @@ paths:
5480
5490
  items:
5481
5491
  type: array
5482
5492
  items:
5483
- type: object
5484
- required:
5485
- - status
5486
- - integration
5487
- properties:
5488
- status:
5489
- $ref: "#/components/schemas/IntegrationInstallationStatus"
5490
- integration:
5491
- $ref: "#/components/schemas/Integration"
5493
+ $ref: "#/components/schemas/InstalledIntegration"
5492
5494
  "/orgs/{organizationId}/saml":
5493
5495
  get:
5494
5496
  operationId: listSAMLProvidersInOrganizationById
@@ -6703,6 +6705,42 @@ paths:
6703
6705
  description: Organization or font not found.
6704
6706
  "205":
6705
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"
6706
6744
  "/orgs/{organizationId}/sites":
6707
6745
  get:
6708
6746
  operationId: listSites
@@ -7773,7 +7811,7 @@ paths:
7773
7811
  condition:
7774
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.
7775
7813
  oneOf:
7776
- - $ref: "#/components/schemas/Condition"
7814
+ - $ref: "#/components/schemas/Expression"
7777
7815
  - type: string
7778
7816
  nullable: true
7779
7817
  enum:
@@ -7999,7 +8037,7 @@ paths:
7999
8037
  condition:
8000
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.
8001
8039
  oneOf:
8002
- - $ref: "#/components/schemas/Condition"
8040
+ - $ref: "#/components/schemas/Expression"
8003
8041
  - type: string
8004
8042
  nullable: true
8005
8043
  enum:
@@ -9967,6 +10005,123 @@ components:
9967
10005
  enum:
9968
10006
  - live
9969
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"
9970
10125
  TranslationLanguage:
9971
10126
  type: string
9972
10127
  enum:
@@ -10124,6 +10279,8 @@ components:
10124
10279
  $ref: "#/components/schemas/Timestamp"
10125
10280
  editMode:
10126
10281
  $ref: "#/components/schemas/SpaceEditMode"
10282
+ mergeRules:
10283
+ $ref: "#/components/schemas/MergeRulesSpaceConfiguration"
10127
10284
  urls:
10128
10285
  type: object
10129
10286
  description: URLs associated with the object
@@ -10238,6 +10395,7 @@ components:
10238
10395
  - changeRequests
10239
10396
  - changeRequestsOpen
10240
10397
  - changeRequestsDraft
10398
+ - mergeRules
10241
10399
  - urls
10242
10400
  - defaultLevel
10243
10401
  - permissions
@@ -14235,6 +14393,8 @@ components:
14235
14393
  billing:
14236
14394
  description: Billing details, only available for org members.
14237
14395
  $ref: "#/components/schemas/OrganizationBilling"
14396
+ mergeRules:
14397
+ $ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
14238
14398
  urls:
14239
14399
  type: object
14240
14400
  description: URLs associated with the object
@@ -14359,6 +14519,7 @@ components:
14359
14519
  - inviteLinks
14360
14520
  - type
14361
14521
  - emailDomains
14522
+ - mergeRules
14362
14523
  - urls
14363
14524
  - trial
14364
14525
  - permissions
@@ -14639,6 +14800,19 @@ components:
14639
14800
  - FETCH_TIMEOUT
14640
14801
  - FETCH_ERROR
14641
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
14642
14816
  OpenAPISpec:
14643
14817
  type: object
14644
14818
  properties:
@@ -14672,6 +14846,10 @@ components:
14672
14846
  $ref: "#/components/schemas/Timestamp"
14673
14847
  lastProcessErrorCode:
14674
14848
  $ref: "#/components/schemas/OpenAPISpecProcessingErrorCode"
14849
+ lastProcessedErrors:
14850
+ type: array
14851
+ items:
14852
+ $ref: "#/components/schemas/OpenAPIErrorObject"
14675
14853
  permissions:
14676
14854
  type: object
14677
14855
  description: The set of permissions for the OpenAPI specification.
@@ -15206,10 +15384,16 @@ components:
15206
15384
  type: integer
15207
15385
  user:
15208
15386
  $ref: "#/components/schemas/User"
15387
+ actionType:
15388
+ type: string
15389
+ enum:
15390
+ - edit
15391
+ - comment
15209
15392
  required:
15210
15393
  - updatedAt
15211
15394
  - count
15212
15395
  - user
15396
+ - actionType
15213
15397
  RevisionPageType:
15214
15398
  type: string
15215
15399
  enum:
@@ -15668,15 +15852,11 @@ components:
15668
15852
  IntegrationScope:
15669
15853
  type: string
15670
15854
  enum:
15671
- - space:views:read
15672
15855
  - space:content:read
15673
15856
  - space:content:write
15674
15857
  - space:metadata:read
15675
15858
  - space:metadata:write
15676
- - space:script:inject
15677
- - space:script:cookies
15678
15859
  - space:git:sync
15679
- - space:visitor:auth
15680
15860
  - site:metadata:read
15681
15861
  - site:views:read
15682
15862
  - site:script:inject
@@ -15684,7 +15864,6 @@ components:
15684
15864
  - site:visitor:auth
15685
15865
  - site:adaptive:read
15686
15866
  - site:adaptive:write
15687
- - site:ai:ask
15688
15867
  - openapi:read
15689
15868
  - openapi:write
15690
15869
  - conversations:ingest
@@ -16038,21 +16217,6 @@ components:
16038
16217
  type: array
16039
16218
  items:
16040
16219
  $ref: "#/components/schemas/IntegrationBlock"
16041
- SpaceIntegrationScript:
16042
- type: object
16043
- properties:
16044
- script:
16045
- description: Script URL to load.
16046
- $ref: "#/components/schemas/URL"
16047
- contentSecurityPolicy:
16048
- description: Content Security Policy to secure the loading of this script.
16049
- type: string
16050
- cookies:
16051
- type: boolean
16052
- description: If true, the script will potentially load use cookies and visitors should be aware.
16053
- required:
16054
- - script
16055
- - cookies
16056
16220
  IntegrationSecrets:
16057
16221
  type: object
16058
16222
  description: Secrets stored on the integration and passed at runtime.
@@ -16402,56 +16566,6 @@ components:
16402
16566
  required:
16403
16567
  - type
16404
16568
  - previous
16405
- SpaceViewEvent:
16406
- allOf:
16407
- - $ref: "#/components/schemas/SpaceEvent"
16408
- - type: object
16409
- description: Event received when a page has been visited.
16410
- properties:
16411
- type:
16412
- type: string
16413
- enum:
16414
- - space_view
16415
- pageId:
16416
- type: string
16417
- description: Unique identifier of the visited page.
16418
- visitor:
16419
- type: object
16420
- description: Analytics info on the GitBook's content visitor.
16421
- properties:
16422
- anonymousId:
16423
- type: string
16424
- description: GitBook's unique identifier of the visitor.
16425
- cookies:
16426
- type: object
16427
- description: The visitors cookies.
16428
- additionalProperties:
16429
- type: string
16430
- userAgent:
16431
- type: string
16432
- description: User-agent of the visitor.
16433
- ip:
16434
- type: string
16435
- description: IP address of the visitor.
16436
- language:
16437
- type: string
16438
- description: Language of the visitor.
16439
- required:
16440
- - anonymousId
16441
- - cookies
16442
- - userAgent
16443
- - ip
16444
- url:
16445
- type: string
16446
- description: The GitBook content's URL visited (including URL params).
16447
- referrer:
16448
- type: string
16449
- description: The URL of referrer that linked to the page.
16450
- required:
16451
- - type
16452
- - visitor
16453
- - url
16454
- - referrer
16455
16569
  SiteViewEvent:
16456
16570
  allOf:
16457
16571
  - $ref: "#/components/schemas/SiteEvent"
@@ -16643,9 +16757,7 @@ components:
16643
16757
  - request
16644
16758
  FetchPublishedScriptEvent:
16645
16759
  allOf:
16646
- - oneOf:
16647
- - $ref: "#/components/schemas/SpaceEvent"
16648
- - $ref: "#/components/schemas/SiteEvent"
16760
+ - $ref: "#/components/schemas/SiteEvent"
16649
16761
  - type: object
16650
16762
  description: Common properties for all events related to fetching a published script from an installation
16651
16763
  properties:
@@ -16657,9 +16769,7 @@ components:
16657
16769
  - type
16658
16770
  FetchVisitorAuthenticationEvent:
16659
16771
  allOf:
16660
- - oneOf:
16661
- - $ref: "#/components/schemas/SpaceEvent"
16662
- - $ref: "#/components/schemas/SiteEvent"
16772
+ - $ref: "#/components/schemas/SiteEvent"
16663
16773
  - type: object
16664
16774
  description: Common properties for all events related to authenticated access from an installation
16665
16775
  properties:
@@ -16871,7 +16981,6 @@ components:
16871
16981
  - $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
16872
16982
  - $ref: "#/components/schemas/SiteInstallationSetupEvent"
16873
16983
  - $ref: "#/components/schemas/SiteInstallationDeletedEvent"
16874
- - $ref: "#/components/schemas/SpaceViewEvent"
16875
16984
  - $ref: "#/components/schemas/SiteViewEvent"
16876
16985
  - $ref: "#/components/schemas/SpaceContentUpdatedEvent"
16877
16986
  - $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
@@ -18205,10 +18314,6 @@ components:
18205
18314
  description: Path to the section on the site
18206
18315
  minLength: 1
18207
18316
  maxLength: 100
18208
- Condition:
18209
- type: string
18210
- minLength: 1
18211
- maxLength: 1024
18212
18317
  SiteSpacePath:
18213
18318
  type: string
18214
18319
  description: Path to the space on the site
@@ -18239,7 +18344,7 @@ components:
18239
18344
  description: Whether this is the default space for the site
18240
18345
  condition:
18241
18346
  description: Conditional expression used to evaluate whether the site space should be shown to the site's visitor.
18242
- $ref: "#/components/schemas/Condition"
18347
+ $ref: "#/components/schemas/Expression"
18243
18348
  hasAdvancedCustomizationFeature:
18244
18349
  type: boolean
18245
18350
  description: Whether the space has advanced customization feature enabled
@@ -18280,7 +18385,7 @@ components:
18280
18385
  $ref: "#/components/schemas/SiteSectionPath"
18281
18386
  condition:
18282
18387
  description: Conditional expression used to evaluate whether the site section should be shown to the site's visitor.
18283
- $ref: "#/components/schemas/Condition"
18388
+ $ref: "#/components/schemas/Expression"
18284
18389
  sectionGroup:
18285
18390
  type: string
18286
18391
  description: ID of the section group the section belongs to in the site
@@ -18977,6 +19082,17 @@ components:
18977
19082
  properties:
18978
19083
  computedSource:
18979
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"
18980
19096
  SAMLProviderLabel:
18981
19097
  type: string
18982
19098
  minLength: 1
@@ -20070,6 +20186,68 @@ components:
20070
20186
  description: The path of the file in the storage bucket
20071
20187
  minLength: 1
20072
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
20073
20251
  BillingOperationPreviewResponse:
20074
20252
  description: |
20075
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.
@@ -20479,7 +20657,7 @@ components:
20479
20657
  $ref: "#/components/schemas/CustomizationContentLink"
20480
20658
  condition:
20481
20659
  description: Conditional expression used to evaluate whether the header item should be shown to the site's visitor.
20482
- $ref: "#/components/schemas/Condition"
20660
+ $ref: "#/components/schemas/Expression"
20483
20661
  required:
20484
20662
  - title
20485
20663
  - links
@@ -20535,7 +20713,6 @@ components:
20535
20713
  - none
20536
20714
  - search
20537
20715
  - assistant
20538
- - integration
20539
20716
  SiteExternalLinksTarget:
20540
20717
  type: string
20541
20718
  description: |
@@ -20693,9 +20870,6 @@ components:
20693
20870
  properties:
20694
20871
  mode:
20695
20872
  $ref: "#/components/schemas/CustomizationAIMode"
20696
- integrationId:
20697
- type: string
20698
- description: The integration to use for the AI features on the site. Only required if mode is set to "integration".
20699
20873
  required:
20700
20874
  - mode
20701
20875
  advancedCustomization:
@@ -20965,8 +21139,15 @@ components:
20965
21139
  type: string
20966
21140
  enum:
20967
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.
20968
21146
  includedSiteSpaces:
20969
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.
20970
21151
  items:
20971
21152
  type: string
20972
21153
  - type: object
@@ -24385,6 +24566,21 @@ components:
24385
24566
  - integration
24386
24567
  - signingSecrets
24387
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
24388
24584
  ContentComputeDocumentEventResponse:
24389
24585
  type: object
24390
24586
  description: Response expected for an event of type `content_compute_document`.
@@ -25435,6 +25631,18 @@ components:
25435
25631
  required:
25436
25632
  - channel
25437
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
25438
25646
  SubscriptionChannel:
25439
25647
  description: Channel to subscribe to for realtime updates.
25440
25648
  oneOf:
@@ -25508,6 +25716,7 @@ components:
25508
25716
  - $ref: "#/components/schemas/TranslationRunChannel"
25509
25717
  - $ref: "#/components/schemas/AgentTaskChannel"
25510
25718
  - $ref: "#/components/schemas/AgentTasksChannel"
25719
+ - $ref: "#/components/schemas/ImportRunChannel"
25511
25720
  discriminator:
25512
25721
  propertyName: channel
25513
25722
  TranslationRunChannelData:
@@ -25534,6 +25743,18 @@ components:
25534
25743
  required:
25535
25744
  - channel
25536
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
25537
25758
  GitSyncOperationChannelData:
25538
25759
  type: object
25539
25760
  properties:
@@ -25635,6 +25856,7 @@ components:
25635
25856
  - $ref: "#/components/schemas/ChangeRequestContentRefsChannelData"
25636
25857
  - $ref: "#/components/schemas/OrganizationAIIndexationChannelData"
25637
25858
  - $ref: "#/components/schemas/TranslationRunChannelData"
25859
+ - $ref: "#/components/schemas/ImportRunChannelData"
25638
25860
  - $ref: "#/components/schemas/APIChannelMutationData"
25639
25861
  discriminator:
25640
25862
  propertyName: channel
@@ -25837,6 +26059,27 @@ components:
25837
26059
  - $ref: "#/components/schemas/AgentStreamMessages"
25838
26060
  - $ref: "#/components/schemas/AgentStreamMessageResponse"
25839
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
25840
26083
  RequestSpaceTrackPageView:
25841
26084
  $ref: "#/components/schemas/SpaceTrackPageView"
25842
26085
  RequestSiteTrackPageView: