@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.json CHANGED
@@ -308,6 +308,13 @@
308
308
  "x-parent": "translations",
309
309
  "description": "Enable or disable specific languages, configure default text direction, or adjust advanced translation settings to ensure clarity for your global audience.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"TranslationLanguageSettings\" grouped=\"false\" %}\n The TranslationLanguageSettings object\n{% endopenapi-schemas %}\n"
310
310
  },
311
+ {
312
+ "name": "imports",
313
+ "x-page-icon": "cloud-arrow-up",
314
+ "x-page-title": "Imports",
315
+ "x-page-description": "Import content into GitBook.",
316
+ "description": "The Imports API provides allows you to import content into GitBook.\n"
317
+ },
311
318
  {
312
319
  "name": "glossary",
313
320
  "x-page-title": "Glossary",
@@ -646,6 +653,9 @@
646
653
  },
647
654
  "language": {
648
655
  "$ref": "#/components/schemas/TranslationLanguage"
656
+ },
657
+ "mergeRules": {
658
+ "$ref": "#/components/schemas/MergeRulesSpaceConfiguration"
649
659
  }
650
660
  }
651
661
  },
@@ -2413,6 +2423,15 @@
2413
2423
  },
2414
2424
  "description": "If defined, only change requests matching this status will be returned."
2415
2425
  },
2426
+ {
2427
+ "name": "creator",
2428
+ "in": "query",
2429
+ "required": false,
2430
+ "schema": {
2431
+ "type": "string"
2432
+ },
2433
+ "description": "If defined, only change requests created by this user will be returned."
2434
+ },
2416
2435
  {
2417
2436
  "name": "contributor",
2418
2437
  "in": "query",
@@ -5474,43 +5493,6 @@
5474
5493
  }
5475
5494
  }
5476
5495
  },
5477
- "/spaces/{spaceId}/integration-scripts": {
5478
- "get": {
5479
- "operationId": "listSpaceIntegrationScripts",
5480
- "summary": "List all the scripts to embed in published content for a space",
5481
- "tags": [
5482
- "space-integrations"
5483
- ],
5484
- "security": [
5485
- {
5486
- "user": []
5487
- }
5488
- ],
5489
- "parameters": [
5490
- {
5491
- "$ref": "#/components/parameters/spaceId"
5492
- }
5493
- ],
5494
- "responses": {
5495
- "200": {
5496
- "description": "OK",
5497
- "content": {
5498
- "application/json": {
5499
- "schema": {
5500
- "type": "array",
5501
- "items": {
5502
- "$ref": "#/components/schemas/SpaceIntegrationScript"
5503
- }
5504
- }
5505
- }
5506
- }
5507
- },
5508
- "400": {
5509
- "$ref": "#/components/responses/BadRequestError"
5510
- }
5511
- }
5512
- }
5513
- },
5514
5496
  "/spaces/{spaceId}/pdf": {
5515
5497
  "get": {
5516
5498
  "operationId": "getSpacePDF",
@@ -7823,6 +7805,9 @@
7823
7805
  },
7824
7806
  "inviteLinks": {
7825
7807
  "type": "boolean"
7808
+ },
7809
+ "mergeRules": {
7810
+ "$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
7826
7811
  }
7827
7812
  }
7828
7813
  }
@@ -9128,6 +9113,15 @@
9128
9113
  },
9129
9114
  "description": "If defined, only change requests matching this status will be returned."
9130
9115
  },
9116
+ {
9117
+ "name": "creator",
9118
+ "in": "query",
9119
+ "required": false,
9120
+ "schema": {
9121
+ "type": "string"
9122
+ },
9123
+ "description": "If defined, only change requests created by this user will be returned."
9124
+ },
9131
9125
  {
9132
9126
  "name": "contributor",
9133
9127
  "in": "query",
@@ -9593,12 +9587,23 @@
9593
9587
  "$ref": "#/components/parameters/listLimit"
9594
9588
  },
9595
9589
  {
9596
- "$ref": "#/components/parameters/integrationSearchQuery"
9590
+ "name": "target",
9591
+ "in": "query",
9592
+ "description": "Filter installations by their target (organization, space, or site). When not provided, defaults to organization-level installations for backwards compatibility",
9593
+ "schema": {
9594
+ "type": "string",
9595
+ "default": "organization",
9596
+ "enum": [
9597
+ "organization",
9598
+ "space",
9599
+ "site"
9600
+ ]
9601
+ }
9597
9602
  }
9598
9603
  ],
9599
9604
  "responses": {
9600
9605
  "200": {
9601
- "description": "List of integrations.",
9606
+ "description": "List of installed integrations and their statuses",
9602
9607
  "content": {
9603
9608
  "application/json": {
9604
9609
  "schema": {
@@ -9615,19 +9620,7 @@
9615
9620
  "items": {
9616
9621
  "type": "array",
9617
9622
  "items": {
9618
- "type": "object",
9619
- "required": [
9620
- "status",
9621
- "integration"
9622
- ],
9623
- "properties": {
9624
- "status": {
9625
- "$ref": "#/components/schemas/IntegrationInstallationStatus"
9626
- },
9627
- "integration": {
9628
- "$ref": "#/components/schemas/Integration"
9629
- }
9630
- }
9623
+ "$ref": "#/components/schemas/InstalledIntegration"
9631
9624
  }
9632
9625
  }
9633
9626
  }
@@ -11803,6 +11796,66 @@
11803
11796
  }
11804
11797
  }
11805
11798
  },
11799
+ "/org/{organizationId}/imports": {
11800
+ "post": {
11801
+ "operationId": "startImportRun",
11802
+ "summary": "Import content into a space from a website",
11803
+ "tags": [
11804
+ "imports"
11805
+ ],
11806
+ "x-internal": true,
11807
+ "security": [
11808
+ {
11809
+ "user-internal": []
11810
+ }
11811
+ ],
11812
+ "parameters": [
11813
+ {
11814
+ "$ref": "#/components/parameters/organizationId"
11815
+ }
11816
+ ],
11817
+ "requestBody": {
11818
+ "required": true,
11819
+ "content": {
11820
+ "application/json": {
11821
+ "schema": {
11822
+ "type": "object",
11823
+ "properties": {
11824
+ "source": {
11825
+ "$ref": "#/components/schemas/ContentImportSource"
11826
+ },
11827
+ "target": {
11828
+ "$ref": "#/components/schemas/ContentImportTarget"
11829
+ }
11830
+ },
11831
+ "required": [
11832
+ "source",
11833
+ "target"
11834
+ ]
11835
+ }
11836
+ }
11837
+ }
11838
+ },
11839
+ "responses": {
11840
+ "201": {
11841
+ "description": "Import run created successfully.",
11842
+ "content": {
11843
+ "application/json": {
11844
+ "schema": {
11845
+ "$ref": "#/components/schemas/ContentImportRun"
11846
+ }
11847
+ }
11848
+ }
11849
+ },
11850
+ "400": {
11851
+ "$ref": "#/components/responses/BadRequestError"
11852
+ },
11853
+ "404": {
11854
+ "$ref": "#/components/responses/NotFoundError"
11855
+ }
11856
+ }
11857
+ }
11858
+ },
11806
11859
  "/orgs/{organizationId}/sites": {
11807
11860
  "get": {
11808
11861
  "operationId": "listSites",
@@ -13731,7 +13784,7 @@
13731
13784
  "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.",
13732
13785
  "oneOf": [
13733
13786
  {
13734
- "$ref": "#/components/schemas/Condition"
13787
+ "$ref": "#/components/schemas/Expression"
13735
13788
  },
13736
13789
  {
13737
13790
  "type": "string",
@@ -14135,7 +14188,7 @@
14135
14188
  "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.",
14136
14189
  "oneOf": [
14137
14190
  {
14138
- "$ref": "#/components/schemas/Condition"
14191
+ "$ref": "#/components/schemas/Expression"
14139
14192
  },
14140
14193
  {
14141
14194
  "type": "string",
@@ -17322,6 +17375,192 @@
17322
17375
  "locked"
17323
17376
  ]
17324
17377
  },
17378
+ "MergeRulesConfigurationInherit": {
17379
+ "type": "object",
17380
+ "description": "The merge rules inherits from the organization configuration.",
17381
+ "properties": {
17382
+ "type": {
17383
+ "type": "string",
17384
+ "enum": [
17385
+ "inherit"
17386
+ ]
17387
+ }
17388
+ },
17389
+ "required": [
17390
+ "type"
17391
+ ]
17392
+ },
17393
+ "Expression": {
17394
+ "type": "string",
17395
+ "description": "Expression to evaluate",
17396
+ "minLength": 0,
17397
+ "maxLength": 1024
17398
+ },
17399
+ "MergeRule": {
17400
+ "oneOf": [
17401
+ {
17402
+ "type": "object",
17403
+ "properties": {
17404
+ "rule": {
17405
+ "type": "string",
17406
+ "enum": [
17407
+ "require_specific_reviewers"
17408
+ ]
17409
+ },
17410
+ "users": {
17411
+ "type": "array",
17412
+ "description": "List of user IDs.",
17413
+ "items": {
17414
+ "type": "string"
17415
+ }
17416
+ }
17417
+ },
17418
+ "required": [
17419
+ "rule",
17420
+ "users"
17421
+ ]
17422
+ },
17423
+ {
17424
+ "type": "object",
17425
+ "properties": {
17426
+ "rule": {
17427
+ "type": "string",
17428
+ "enum": [
17429
+ "require_one_of_specific_reviewers"
17430
+ ]
17431
+ },
17432
+ "users": {
17433
+ "type": "array",
17434
+ "description": "List of user IDs.",
17435
+ "items": {
17436
+ "type": "string"
17437
+ }
17438
+ }
17439
+ },
17440
+ "required": [
17441
+ "rule",
17442
+ "users"
17443
+ ]
17444
+ },
17445
+ {
17446
+ "type": "object",
17447
+ "properties": {
17448
+ "rule": {
17449
+ "type": "string",
17450
+ "enum": [
17451
+ "allow_bypass"
17452
+ ]
17453
+ },
17454
+ "users": {
17455
+ "type": "array",
17456
+ "description": "List of user IDs.",
17457
+ "items": {
17458
+ "type": "string"
17459
+ }
17460
+ }
17461
+ },
17462
+ "required": [
17463
+ "rule",
17464
+ "users"
17465
+ ]
17466
+ },
17467
+ {
17468
+ "type": "object",
17469
+ "properties": {
17470
+ "rule": {
17471
+ "type": "string",
17472
+ "enum": [
17473
+ "require_at_least_one_review",
17474
+ "require_all_reviews_approved",
17475
+ "require_agent_review",
17476
+ "require_up_to_date_change_request",
17477
+ "require_change_request_subject",
17478
+ "require_change_request_description"
17479
+ ]
17480
+ }
17481
+ },
17482
+ "required": [
17483
+ "rule"
17484
+ ]
17485
+ },
17486
+ {
17487
+ "type": "object",
17488
+ "description": "The merge rule is written in the advanced custom expression syntax.",
17489
+ "properties": {
17490
+ "rule": {
17491
+ "type": "string",
17492
+ "enum": [
17493
+ "custom"
17494
+ ]
17495
+ },
17496
+ "expression": {
17497
+ "$ref": "#/components/schemas/Expression"
17498
+ }
17499
+ },
17500
+ "required": [
17501
+ "rule",
17502
+ "expression"
17503
+ ]
17504
+ }
17505
+ ]
17506
+ },
17507
+ "MergeRulesConfigurationRules": {
17508
+ "type": "object",
17509
+ "description": "The merge rules are composed of individual rules that must all pass.",
17510
+ "properties": {
17511
+ "type": {
17512
+ "type": "string",
17513
+ "enum": [
17514
+ "rules"
17515
+ ]
17516
+ },
17517
+ "rules": {
17518
+ "type": "array",
17519
+ "items": {
17520
+ "$ref": "#/components/schemas/MergeRule"
17521
+ }
17522
+ }
17523
+ },
17524
+ "required": [
17525
+ "type",
17526
+ "rules"
17527
+ ]
17528
+ },
17529
+ "MergeRulesConfigurationNone": {
17530
+ "type": "object",
17531
+ "description": "The merge rules are disabled, change requests can be merged without review.",
17532
+ "properties": {
17533
+ "type": {
17534
+ "type": "string",
17535
+ "enum": [
17536
+ "none"
17537
+ ]
17538
+ }
17539
+ },
17540
+ "required": [
17541
+ "type"
17542
+ ]
17543
+ },
17544
+ "MergeRulesStandaloneConfiguration": {
17545
+ "oneOf": [
17546
+ {
17547
+ "$ref": "#/components/schemas/MergeRulesConfigurationRules"
17548
+ },
17549
+ {
17550
+ "$ref": "#/components/schemas/MergeRulesConfigurationNone"
17551
+ }
17552
+ ]
17553
+ },
17554
+ "MergeRulesSpaceConfiguration": {
17555
+ "oneOf": [
17556
+ {
17557
+ "$ref": "#/components/schemas/MergeRulesConfigurationInherit"
17558
+ },
17559
+ {
17560
+ "$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
17561
+ }
17562
+ ]
17563
+ },
17325
17564
  "TranslationLanguage": {
17326
17565
  "type": "string",
17327
17566
  "enum": [
@@ -17533,6 +17772,9 @@
17533
17772
  "editMode": {
17534
17773
  "$ref": "#/components/schemas/SpaceEditMode"
17535
17774
  },
17775
+ "mergeRules": {
17776
+ "$ref": "#/components/schemas/MergeRulesSpaceConfiguration"
17777
+ },
17536
17778
  "urls": {
17537
17779
  "type": "object",
17538
17780
  "description": "URLs associated with the object",
@@ -17680,6 +17922,7 @@
17680
17922
  "changeRequests",
17681
17923
  "changeRequestsOpen",
17682
17924
  "changeRequestsDraft",
17925
+ "mergeRules",
17683
17926
  "urls",
17684
17927
  "defaultLevel",
17685
17928
  "permissions"
@@ -24000,6 +24243,9 @@
24000
24243
  "description": "Billing details, only available for org members.",
24001
24244
  "$ref": "#/components/schemas/OrganizationBilling"
24002
24245
  },
24246
+ "mergeRules": {
24247
+ "$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
24248
+ },
24003
24249
  "urls": {
24004
24250
  "type": "object",
24005
24251
  "description": "URLs associated with the object",
@@ -24165,6 +24411,7 @@
24165
24411
  "inviteLinks",
24166
24412
  "type",
24167
24413
  "emailDomains",
24414
+ "mergeRules",
24168
24415
  "urls",
24169
24416
  "trial",
24170
24417
  "permissions"
@@ -24574,6 +24821,24 @@
24574
24821
  "PARSE_ERROR"
24575
24822
  ]
24576
24823
  },
24824
+ "OpenAPIErrorObject": {
24825
+ "type": "object",
24826
+ "description": "OpenAPI error object.",
24827
+ "properties": {
24828
+ "message": {
24829
+ "type": "string",
24830
+ "description": "Description of the error."
24831
+ },
24832
+ "error": {
24833
+ "type": "string",
24834
+ "description": "Unique code of the error."
24835
+ }
24836
+ },
24837
+ "required": [
24838
+ "message",
24839
+ "code"
24840
+ ]
24841
+ },
24577
24842
  "OpenAPISpec": {
24578
24843
  "type": "object",
24579
24844
  "properties": {
@@ -24619,6 +24884,12 @@
24619
24884
  "lastProcessErrorCode": {
24620
24885
  "$ref": "#/components/schemas/OpenAPISpecProcessingErrorCode"
24621
24886
  },
24887
+ "lastProcessedErrors": {
24888
+ "type": "array",
24889
+ "items": {
24890
+ "$ref": "#/components/schemas/OpenAPIErrorObject"
24891
+ }
24892
+ },
24622
24893
  "permissions": {
24623
24894
  "type": "object",
24624
24895
  "description": "The set of permissions for the OpenAPI specification.",
@@ -25383,12 +25654,20 @@
25383
25654
  },
25384
25655
  "user": {
25385
25656
  "$ref": "#/components/schemas/User"
25657
+ },
25658
+ "actionType": {
25659
+ "type": "string",
25660
+ "enum": [
25661
+ "edit",
25662
+ "comment"
25663
+ ]
25386
25664
  }
25387
25665
  },
25388
25666
  "required": [
25389
25667
  "updatedAt",
25390
25668
  "count",
25391
- "user"
25669
+ "user",
25670
+ "actionType"
25392
25671
  ]
25393
25672
  },
25394
25673
  "RevisionPageType": {
@@ -26087,15 +26366,11 @@
26087
26366
  "IntegrationScope": {
26088
26367
  "type": "string",
26089
26368
  "enum": [
26090
- "space:views:read",
26091
26369
  "space:content:read",
26092
26370
  "space:content:write",
26093
26371
  "space:metadata:read",
26094
26372
  "space:metadata:write",
26095
- "space:script:inject",
26096
- "space:script:cookies",
26097
26373
  "space:git:sync",
26098
- "space:visitor:auth",
26099
26374
  "site:metadata:read",
26100
26375
  "site:views:read",
26101
26376
  "site:script:inject",
@@ -26103,7 +26378,6 @@
26103
26378
  "site:visitor:auth",
26104
26379
  "site:adaptive:read",
26105
26380
  "site:adaptive:write",
26106
- "site:ai:ask",
26107
26381
  "openapi:read",
26108
26382
  "openapi:write",
26109
26383
  "conversations:ingest"
@@ -26623,27 +26897,6 @@
26623
26897
  }
26624
26898
  }
26625
26899
  },
26626
- "SpaceIntegrationScript": {
26627
- "type": "object",
26628
- "properties": {
26629
- "script": {
26630
- "description": "Script URL to load.",
26631
- "$ref": "#/components/schemas/URL"
26632
- },
26633
- "contentSecurityPolicy": {
26634
- "description": "Content Security Policy to secure the loading of this script.",
26635
- "type": "string"
26636
- },
26637
- "cookies": {
26638
- "type": "boolean",
26639
- "description": "If true, the script will potentially load use cookies and visitors should be aware."
26640
- }
26641
- },
26642
- "required": [
26643
- "script",
26644
- "cookies"
26645
- ]
26646
- },
26647
26900
  "IntegrationSecrets": {
26648
26901
  "type": "object",
26649
26902
  "description": "Secrets stored on the integration and passed at runtime.",
@@ -27174,78 +27427,6 @@
27174
27427
  }
27175
27428
  ]
27176
27429
  },
27177
- "SpaceViewEvent": {
27178
- "allOf": [
27179
- {
27180
- "$ref": "#/components/schemas/SpaceEvent"
27181
- },
27182
- {
27183
- "type": "object",
27184
- "description": "Event received when a page has been visited.",
27185
- "properties": {
27186
- "type": {
27187
- "type": "string",
27188
- "enum": [
27189
- "space_view"
27190
- ]
27191
- },
27192
- "pageId": {
27193
- "type": "string",
27194
- "description": "Unique identifier of the visited page."
27195
- },
27196
- "visitor": {
27197
- "type": "object",
27198
- "description": "Analytics info on the GitBook's content visitor.",
27199
- "properties": {
27200
- "anonymousId": {
27201
- "type": "string",
27202
- "description": "GitBook's unique identifier of the visitor."
27203
- },
27204
- "cookies": {
27205
- "type": "object",
27206
- "description": "The visitors cookies.",
27207
- "additionalProperties": {
27208
- "type": "string"
27209
- }
27210
- },
27211
- "userAgent": {
27212
- "type": "string",
27213
- "description": "User-agent of the visitor."
27214
- },
27215
- "ip": {
27216
- "type": "string",
27217
- "description": "IP address of the visitor."
27218
- },
27219
- "language": {
27220
- "type": "string",
27221
- "description": "Language of the visitor."
27222
- }
27223
- },
27224
- "required": [
27225
- "anonymousId",
27226
- "cookies",
27227
- "userAgent",
27228
- "ip"
27229
- ]
27230
- },
27231
- "url": {
27232
- "type": "string",
27233
- "description": "The GitBook content's URL visited (including URL params)."
27234
- },
27235
- "referrer": {
27236
- "type": "string",
27237
- "description": "The URL of referrer that linked to the page."
27238
- }
27239
- },
27240
- "required": [
27241
- "type",
27242
- "visitor",
27243
- "url",
27244
- "referrer"
27245
- ]
27246
- }
27247
- ]
27248
- },
27249
27430
  "SiteViewEvent": {
27250
27431
  "allOf": [
27251
27432
  {
@@ -27537,14 +27718,7 @@
27537
27718
  "FetchPublishedScriptEvent": {
27538
27719
  "allOf": [
27539
27720
  {
27540
- "oneOf": [
27541
- {
27542
- "$ref": "#/components/schemas/SpaceEvent"
27543
- },
27544
- {
27545
- "$ref": "#/components/schemas/SiteEvent"
27546
- }
27547
- ]
27721
+ "$ref": "#/components/schemas/SiteEvent"
27548
27722
  },
27549
27723
  {
27550
27724
  "type": "object",
@@ -27566,14 +27740,7 @@
27566
27740
  "FetchVisitorAuthenticationEvent": {
27567
27741
  "allOf": [
27568
27742
  {
27569
- "oneOf": [
27570
- {
27571
- "$ref": "#/components/schemas/SpaceEvent"
27572
- },
27573
- {
27574
- "$ref": "#/components/schemas/SiteEvent"
27575
- }
27576
- ]
27743
+ "$ref": "#/components/schemas/SiteEvent"
27577
27744
  },
27578
27745
  {
27579
27746
  "type": "object",
@@ -27935,9 +28102,6 @@
27935
28102
  {
27936
28103
  "$ref": "#/components/schemas/SiteInstallationDeletedEvent"
27937
28104
  },
27938
- {
27939
- "$ref": "#/components/schemas/SpaceViewEvent"
27940
- },
27941
28105
  {
27942
28106
  "$ref": "#/components/schemas/SiteViewEvent"
27943
28107
  },
@@ -29991,11 +30155,6 @@
29991
30155
  "minLength": 1,
29992
30156
  "maxLength": 100
29993
30157
  },
29994
- "Condition": {
29995
- "type": "string",
29996
- "minLength": 1,
29997
- "maxLength": 1024
29998
- },
29999
30158
  "SiteSpacePath": {
30000
30159
  "type": "string",
30001
30160
  "description": "Path to the space on the site",
@@ -30035,7 +30194,7 @@
30035
30194
  },
30036
30195
  "condition": {
30037
30196
  "description": "Conditional expression used to evaluate whether the site space should be shown to the site's visitor.",
30038
- "$ref": "#/components/schemas/Condition"
30197
+ "$ref": "#/components/schemas/Expression"
30039
30198
  },
30040
30199
  "hasAdvancedCustomizationFeature": {
30041
30200
  "type": "boolean",
@@ -30091,7 +30250,7 @@
30091
30250
  },
30092
30251
  "condition": {
30093
30252
  "description": "Conditional expression used to evaluate whether the site section should be shown to the site's visitor.",
30094
- "$ref": "#/components/schemas/Condition"
30253
+ "$ref": "#/components/schemas/Expression"
30095
30254
  },
30096
30255
  "sectionGroup": {
30097
30256
  "type": "string",
@@ -31132,6 +31291,22 @@
31132
31291
  }
31133
31292
  ]
31134
31293
  },
31294
+ "InstalledIntegration": {
31295
+ "type": "object",
31296
+ "description": "An installed integration with its current status",
31297
+ "required": [
31298
+ "status",
31299
+ "integration"
31300
+ ],
31301
+ "properties": {
31302
+ "status": {
31303
+ "$ref": "#/components/schemas/IntegrationInstallationStatus"
31304
+ },
31305
+ "integration": {
31306
+ "$ref": "#/components/schemas/Integration"
31307
+ }
31308
+ }
31309
+ },
31135
31310
  "SAMLProviderLabel": {
31136
31311
  "type": "string",
31137
31312
  "minLength": 1,
@@ -32647,6 +32822,97 @@
32647
32822
  "minLength": 1,
32648
32823
  "maxLength": 512
32649
32824
  },
32825
+ "ContentImportSource": {
32826
+ "type": "object",
32827
+ "properties": {
32828
+ "type": {
32829
+ "type": "string",
32830
+ "enum": [
32831
+ "website"
32832
+ ]
32833
+ },
32834
+ "url": {
32835
+ "$ref": "#/components/schemas/URL"
32836
+ }
32837
+ },
32838
+ "required": [
32839
+ "type",
32840
+ "url"
32841
+ ]
32842
+ },
32843
+ "ChangeRequestPointer": {
32844
+ "type": "object",
32845
+ "properties": {
32846
+ "type": {
32847
+ "type": "string",
32848
+ "enum": [
32849
+ "change-request"
32850
+ ]
32851
+ },
32852
+ "space": {
32853
+ "type": "string",
32854
+ "description": "Unique identifier for the space"
32855
+ },
32856
+ "changeRequest": {
32857
+ "type": "string",
32858
+ "description": "Unique identifier for the change request"
32859
+ }
32860
+ },
32861
+ "required": [
32862
+ "type",
32863
+ "space",
32864
+ "changeRequest"
32865
+ ]
32866
+ },
32867
+ "ContentImportTarget": {
32868
+ "oneOf": [
32869
+ {
32870
+ "$ref": "#/components/schemas/SpacePointer"
32871
+ },
32872
+ {
32873
+ "$ref": "#/components/schemas/ChangeRequestPointer"
32874
+ }
32875
+ ]
32876
+ },
32877
+ "ContentImportRun": {
32878
+ "type": "object",
32879
+ "properties": {
32880
+ "id": {
32881
+ "description": "Unique ID of the import",
32882
+ "type": "string"
32883
+ },
32884
+ "startedAt": {
32885
+ "description": "Date when the import has started",
32886
+ "$ref": "#/components/schemas/Timestamp"
32887
+ },
32888
+ "completedAt": {
32889
+ "description": "Filled when the imported is in status \"completed\"",
32890
+ "$ref": "#/components/schemas/Timestamp"
32891
+ },
32892
+ "status": {
32893
+ "description": "Status of the import",
32894
+ "type": "string",
32895
+ "enum": [
32896
+ "pending",
32897
+ "in-progress",
32898
+ "completed",
32899
+ "failed",
32900
+ "cancelled"
32901
+ ]
32902
+ },
32903
+ "pages": {
32904
+ "description": "Ids of the imported pages",
32905
+ "type": "array",
32906
+ "items": {
32907
+ "type": "string"
32908
+ }
32909
+ }
32910
+ },
32911
+ "required": [
32912
+ "id",
32913
+ "status"
32914
+ ]
32915
+ },
32650
32916
  "BillingOperationPreviewResponse": {
32651
32917
  "description": "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.\n",
32652
32918
  "oneOf": [
@@ -33217,7 +33483,7 @@
33217
33483
  },
33218
33484
  "condition": {
33219
33485
  "description": "Conditional expression used to evaluate whether the header item should be shown to the site's visitor.",
33220
- "$ref": "#/components/schemas/Condition"
33486
+ "$ref": "#/components/schemas/Expression"
33221
33487
  }
33222
33488
  },
33223
33489
  "required": [
@@ -33293,8 +33559,7 @@
33293
33559
  "enum": [
33294
33560
  "none",
33295
33561
  "search",
33296
- "assistant",
33297
- "integration"
33562
+ "assistant"
33298
33563
  ]
33299
33564
  },
33300
33565
  "SiteExternalLinksTarget": {
@@ -33511,10 +33776,6 @@
33511
33776
  "properties": {
33512
33777
  "mode": {
33513
33778
  "$ref": "#/components/schemas/CustomizationAIMode"
33514
- },
33515
- "integrationId": {
33516
- "type": "string",
33517
- "description": "The integration to use for the AI features on the site. Only required if mode is set to \"integration\"."
33518
33779
  }
33519
33780
  },
33520
33781
  "required": [
@@ -33915,8 +34176,14 @@
33915
34176
  "default"
33916
34177
  ]
33917
34178
  },
34179
+ "currentSiteSpace": {
34180
+ "type": "string",
34181
+ "description": "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.\n"
34182
+ },
33918
34183
  "includedSiteSpaces": {
33919
34184
  "type": "array",
34185
+ "deprecated": true,
34186
+ "description": "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.\n",
33920
34187
  "items": {
33921
34188
  "type": "string"
33922
34189
  }
@@ -39128,6 +39395,27 @@
39128
39395
  "secrets"
39129
39396
  ]
39130
39397
  },
39398
+ "SpaceIntegrationScript": {
39399
+ "type": "object",
39400
+ "properties": {
39401
+ "script": {
39402
+ "description": "Script URL to load.",
39403
+ "$ref": "#/components/schemas/URL"
39404
+ },
39405
+ "contentSecurityPolicy": {
39406
+ "description": "Content Security Policy to secure the loading of this script.",
39407
+ "type": "string"
39408
+ },
39409
+ "cookies": {
39410
+ "type": "boolean",
39411
+ "description": "If true, the script will potentially load use cookies and visitors should be aware."
39412
+ }
39413
+ },
39414
+ "required": [
39415
+ "script",
39416
+ "cookies"
39417
+ ]
39418
+ },
39131
39419
  "ContentComputeDocumentEventResponse": {
39132
39420
  "type": "object",
39133
39421
  "description": "Response expected for an event of type `content_compute_document`.",
@@ -40694,6 +40982,24 @@
40694
40982
  "organization"
40695
40983
  ]
40696
40984
  },
40985
+ "ImportRunChannel": {
40986
+ "type": "object",
40987
+ "properties": {
40988
+ "channel": {
40989
+ "type": "string",
40990
+ "enum": [
40991
+ "import-run"
40992
+ ]
40993
+ },
40994
+ "runId": {
40995
+ "type": "string"
40996
+ }
40997
+ },
40998
+ "required": [
40999
+ "channel",
41000
+ "runId"
41001
+ ]
41002
+ },
40697
41003
  "SubscriptionChannel": {
40698
41004
  "description": "Channel to subscribe to for realtime updates.",
40699
41005
  "oneOf": [
@@ -40906,6 +41212,9 @@
40906
41212
  },
40907
41213
  {
40908
41214
  "$ref": "#/components/schemas/AgentTasksChannel"
41215
+ },
41216
+ {
41217
+ "$ref": "#/components/schemas/ImportRunChannel"
40909
41218
  }
40910
41219
  ],
40911
41220
  "discriminator": {
@@ -40947,6 +41256,24 @@
40947
41256
  "data"
40948
41257
  ]
40949
41258
  },
41259
+ "ImportRunChannelData": {
41260
+ "type": "object",
41261
+ "properties": {
41262
+ "channel": {
41263
+ "type": "string",
41264
+ "enum": [
41265
+ "import-run"
41266
+ ]
41267
+ },
41268
+ "data": {
41269
+ "$ref": "#/components/schemas/ContentImportRun"
41270
+ }
41271
+ },
41272
+ "required": [
41273
+ "channel",
41274
+ "data"
41275
+ ]
41276
+ },
40950
41277
  "GitSyncOperationChannelData": {
40951
41278
  "type": "object",
40952
41279
  "properties": {
@@ -41102,6 +41429,9 @@
41102
41429
  {
41103
41430
  "$ref": "#/components/schemas/TranslationRunChannelData"
41104
41431
  },
41432
+ {
41433
+ "$ref": "#/components/schemas/ImportRunChannelData"
41434
+ },
41105
41435
  {
41106
41436
  "$ref": "#/components/schemas/APIChannelMutationData"
41107
41437
  }
@@ -41399,6 +41729,35 @@
41399
41729
  }
41400
41730
  ]
41401
41731
  },
41732
+ "MergeRulesEvaluationContext": {
41733
+ "type": "object",
41734
+ "description": "Context available when evaluating merge rules expressions.",
41735
+ "properties": {
41736
+ "space": {
41737
+ "$ref": "#/components/schemas/Space"
41738
+ },
41739
+ "changeRequest": {
41740
+ "$ref": "#/components/schemas/ChangeRequest"
41741
+ },
41742
+ "reviews": {
41743
+ "description": "The reviews posted on the change request.",
41744
+ "type": "array",
41745
+ "items": {
41746
+ "$ref": "#/components/schemas/ChangeRequestReview"
41747
+ }
41748
+ },
41749
+ "actor": {
41750
+ "description": "The user who is attempting to merge the change request.",
41751
+ "$ref": "#/components/schemas/User"
41752
+ }
41753
+ },
41754
+ "required": [
41755
+ "space",
41756
+ "changeRequest",
41757
+ "reviews",
41758
+ "actor"
41759
+ ]
41760
+ },
41402
41761
  "RequestSpaceTrackPageView": {
41403
41762
  "$ref": "#/components/schemas/SpaceTrackPageView"
41404
41763
  },