@gitbook/api 0.37.0 → 0.39.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
@@ -4706,15 +4706,11 @@
4706
4706
  },
4707
4707
  "syncedBlock": {
4708
4708
  "type": "string"
4709
- },
4710
- "organization": {
4711
- "type": "string"
4712
4709
  }
4713
4710
  },
4714
4711
  "required": [
4715
4712
  "kind",
4716
- "syncedBlock",
4717
- "organization"
4713
+ "syncedBlock"
4718
4714
  ]
4719
4715
  },
4720
4716
  "ContentLocation": {
@@ -4782,6 +4778,9 @@
4782
4778
  "changeRequest": {
4783
4779
  "$ref": "#/components/schemas/ChangeRequest"
4784
4780
  },
4781
+ "revision": {
4782
+ "$ref": "#/components/schemas/Revision"
4783
+ },
4785
4784
  "file": {
4786
4785
  "$ref": "#/components/schemas/RevisionFile"
4787
4786
  }
@@ -4814,7 +4813,15 @@
4814
4813
  "changeRequest": {
4815
4814
  "$ref": "#/components/schemas/ChangeRequest"
4816
4815
  },
4816
+ "revision": {
4817
+ "$ref": "#/components/schemas/Revision"
4818
+ },
4817
4819
  "anchor": {
4820
+ "description": "The anchor within the page.",
4821
+ "type": "string"
4822
+ },
4823
+ "node": {
4824
+ "description": "The node id within the page.",
4818
4825
  "type": "string"
4819
4826
  }
4820
4827
  },
@@ -7373,12 +7380,6 @@
7373
7380
  "required": [
7374
7381
  "location"
7375
7382
  ]
7376
- },
7377
- "files": {
7378
- "type": "array",
7379
- "items": {
7380
- "$ref": "#/components/schemas/RevisionFile"
7381
- }
7382
7383
  }
7383
7384
  },
7384
7385
  "required": [
@@ -8725,6 +8726,7 @@
8725
8726
  "space:script:cookies",
8726
8727
  "space:git:sync",
8727
8728
  "space:visitor:auth",
8729
+ "site:script:inject",
8728
8730
  "site:visitor:auth"
8729
8731
  ]
8730
8732
  },
@@ -8913,6 +8915,14 @@
8913
8915
  "selected"
8914
8916
  ]
8915
8917
  },
8918
+ "IntegrationInstallationSiteSelection": {
8919
+ "type": "string",
8920
+ "description": "Describe whether all sites have been selected or there's a selection involved",
8921
+ "enum": [
8922
+ "all",
8923
+ "selected"
8924
+ ]
8925
+ },
8916
8926
  "IntegrationCategory": {
8917
8927
  "type": "string",
8918
8928
  "enum": [
@@ -8933,6 +8943,9 @@
8933
8943
  },
8934
8944
  "space": {
8935
8945
  "$ref": "#/components/schemas/IntegrationConfiguration"
8946
+ },
8947
+ "site": {
8948
+ "$ref": "#/components/schemas/IntegrationConfiguration"
8936
8949
  }
8937
8950
  }
8938
8951
  },
@@ -9302,6 +9315,9 @@
9302
9315
  "spaceInstallation": {
9303
9316
  "$ref": "#/components/schemas/IntegrationSpaceInstallation"
9304
9317
  },
9318
+ "siteInstallation": {
9319
+ "$ref": "#/components/schemas/IntegrationSiteInstallation"
9320
+ },
9305
9321
  "secrets": {
9306
9322
  "$ref": "#/components/schemas/IntegrationSecrets"
9307
9323
  },
@@ -9324,6 +9340,10 @@
9324
9340
  "spaceInstallation": {
9325
9341
  "type": "string",
9326
9342
  "description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation."
9343
+ },
9344
+ "siteInstallation": {
9345
+ "type": "string",
9346
+ "description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the site installation."
9327
9347
  }
9328
9348
  },
9329
9349
  "required": [
@@ -9935,7 +9955,82 @@
9935
9955
  "$ref": "#/components/schemas/SpaceInstallationDeletedEvent"
9936
9956
  },
9937
9957
  {
9938
- "$ref": "#/components/schemas/SpaceViewEvent"
9958
+ "allOf": [
9959
+ {
9960
+ "$ref": "#/components/schemas/SiteEvent"
9961
+ },
9962
+ {
9963
+ "type": "object",
9964
+ "description": "Event received when integration has been installed or updated on a site.",
9965
+ "properties": {
9966
+ "type": {
9967
+ "type": "string",
9968
+ "enum": [
9969
+ "site_installation_setup"
9970
+ ]
9971
+ },
9972
+ "status": {
9973
+ "$ref": "#/components/schemas/IntegrationInstallationStatus"
9974
+ },
9975
+ "previous": {
9976
+ "type": "object",
9977
+ "description": "The state of the site installation before it was updated.",
9978
+ "properties": {
9979
+ "status": {
9980
+ "$ref": "#/components/schemas/IntegrationInstallationStatus"
9981
+ },
9982
+ "configuration": {
9983
+ "type": "object",
9984
+ "description": "The previous configuration of the site installation."
9985
+ }
9986
+ },
9987
+ "required": [
9988
+ "status"
9989
+ ]
9990
+ }
9991
+ },
9992
+ "required": [
9993
+ "type",
9994
+ "status"
9995
+ ]
9996
+ }
9997
+ ]
9998
+ },
9999
+ {
10000
+ "allOf": [
10001
+ {
10002
+ "$ref": "#/components/schemas/SiteEvent"
10003
+ },
10004
+ {
10005
+ "type": "object",
10006
+ "description": "Event received when integration has been uninstalled from a site.",
10007
+ "properties": {
10008
+ "type": {
10009
+ "type": "string",
10010
+ "enum": [
10011
+ "site_installation_deleted"
10012
+ ]
10013
+ },
10014
+ "previous": {
10015
+ "type": "object",
10016
+ "description": "The state of the site installation before it was deleted.",
10017
+ "properties": {
10018
+ "configuration": {
10019
+ "type": "object",
10020
+ "description": "The previous configuration of the site installation."
10021
+ }
10022
+ }
10023
+ }
10024
+ },
10025
+ "required": [
10026
+ "type",
10027
+ "previous"
10028
+ ]
10029
+ }
10030
+ ]
10031
+ },
10032
+ {
10033
+ "$ref": "#/components/schemas/SiteViewEvent"
9939
10034
  },
9940
10035
  {
9941
10036
  "$ref": "#/components/schemas/SpaceContentUpdatedEvent"
@@ -10024,6 +10119,26 @@
10024
10119
  }
10025
10120
  ]
10026
10121
  },
10122
+ "SiteEvent": {
10123
+ "allOf": [
10124
+ {
10125
+ "$ref": "#/components/schemas/InstallationEvent"
10126
+ },
10127
+ {
10128
+ "type": "object",
10129
+ "description": "Common properties for all events related to a specific site.",
10130
+ "properties": {
10131
+ "siteId": {
10132
+ "type": "string",
10133
+ "description": "ID of the site"
10134
+ }
10135
+ },
10136
+ "required": [
10137
+ "siteId"
10138
+ ]
10139
+ }
10140
+ ]
10141
+ },
10027
10142
  "InstallationSetupEvent": {
10028
10143
  "allOf": [
10029
10144
  {
@@ -10142,6 +10257,9 @@
10142
10257
  ]
10143
10258
  },
10144
10259
  "SpaceViewEvent": {
10260
+ "$ref": "#/components/schemas/SiteViewEvent"
10261
+ },
10262
+ "SiteViewEvent": {
10145
10263
  "allOf": [
10146
10264
  {
10147
10265
  "$ref": "#/components/schemas/SpaceEvent"
@@ -10383,6 +10501,10 @@
10383
10501
  "type": "string",
10384
10502
  "description": "The space ID, if requests are specific to a single space"
10385
10503
  },
10504
+ "siteId": {
10505
+ "type": "string",
10506
+ "description": "The site ID, if requests are specific to a single site"
10507
+ },
10386
10508
  "installationId": {
10387
10509
  "type": "string",
10388
10510
  "description": "The installation ID, if requests are specific to a single installation"
@@ -10419,7 +10541,14 @@
10419
10541
  "FetchPublishedScriptEvent": {
10420
10542
  "allOf": [
10421
10543
  {
10422
- "$ref": "#/components/schemas/SpaceEvent"
10544
+ "oneOf": [
10545
+ {
10546
+ "$ref": "#/components/schemas/SpaceEvent"
10547
+ },
10548
+ {
10549
+ "$ref": "#/components/schemas/SiteEvent"
10550
+ }
10551
+ ]
10423
10552
  },
10424
10553
  {
10425
10554
  "type": "object",
@@ -10441,7 +10570,14 @@
10441
10570
  "FetchVisitorAuthenticationEvent": {
10442
10571
  "allOf": [
10443
10572
  {
10444
- "$ref": "#/components/schemas/SpaceEvent"
10573
+ "oneOf": [
10574
+ {
10575
+ "$ref": "#/components/schemas/SpaceEvent"
10576
+ },
10577
+ {
10578
+ "$ref": "#/components/schemas/SiteEvent"
10579
+ }
10580
+ ]
10445
10581
  },
10446
10582
  {
10447
10583
  "type": "object",
@@ -10470,6 +10606,9 @@
10470
10606
  {
10471
10607
  "$ref": "#/components/schemas/SpaceEvent"
10472
10608
  },
10609
+ {
10610
+ "$ref": "#/components/schemas/SiteEvent"
10611
+ },
10473
10612
  {
10474
10613
  "$ref": "#/components/schemas/InstallationEvent"
10475
10614
  }
@@ -10548,6 +10687,10 @@
10548
10687
  "type": "string",
10549
10688
  "description": "Name of the product",
10550
10689
  "enum": [
10690
+ "free_2024",
10691
+ "plus_2024",
10692
+ "pro_2024",
10693
+ "enterprise_2024",
10551
10694
  "free",
10552
10695
  "plus",
10553
10696
  "pro",
@@ -14677,7 +14820,6 @@
14677
14820
  "object",
14678
14821
  "id",
14679
14822
  "title",
14680
- "basename",
14681
14823
  "visibility",
14682
14824
  "createdAt",
14683
14825
  "siteSpaces",
@@ -14803,33 +14945,396 @@
14803
14945
  "type": "string",
14804
14946
  "maxLength": 300
14805
14947
  }
14806
- },
14807
- "required": [
14808
- "groups"
14809
- ]
14948
+ },
14949
+ "required": [
14950
+ "groups"
14951
+ ]
14952
+ },
14953
+ "themes": {
14954
+ "type": "object",
14955
+ "properties": {
14956
+ "default": {
14957
+ "$ref": "#/components/schemas/CustomizationThemeMode"
14958
+ },
14959
+ "toggeable": {
14960
+ "description": "Should the reader be able to switch between dark and light mode",
14961
+ "type": "boolean"
14962
+ }
14963
+ },
14964
+ "required": [
14965
+ "default",
14966
+ "toggeable"
14967
+ ]
14968
+ },
14969
+ "pdf": {
14970
+ "type": "object",
14971
+ "properties": {
14972
+ "enabled": {
14973
+ "type": "boolean",
14974
+ "description": "If true, PDF export is enabled for the published site."
14975
+ }
14976
+ },
14977
+ "required": [
14978
+ "enabled"
14979
+ ]
14980
+ },
14981
+ "feedback": {
14982
+ "type": "object",
14983
+ "properties": {
14984
+ "enabled": {
14985
+ "type": "boolean",
14986
+ "description": "If true, feedback gathering is enabled"
14987
+ }
14988
+ },
14989
+ "required": [
14990
+ "enabled"
14991
+ ]
14992
+ },
14993
+ "aiSearch": {
14994
+ "type": "object",
14995
+ "properties": {
14996
+ "enabled": {
14997
+ "type": "boolean",
14998
+ "description": "If true, AI search is enabled"
14999
+ }
15000
+ },
15001
+ "required": [
15002
+ "enabled"
15003
+ ]
15004
+ },
15005
+ "git": {
15006
+ "type": "object",
15007
+ "properties": {
15008
+ "showEditLink": {
15009
+ "type": "boolean",
15010
+ "description": "Whether the published site should show a link to edit the content on the git provider set up in the Git Sync"
15011
+ }
15012
+ },
15013
+ "required": [
15014
+ "showEditLink"
15015
+ ]
15016
+ },
15017
+ "pagination": {
15018
+ "type": "object",
15019
+ "properties": {
15020
+ "enabled": {
15021
+ "type": "boolean",
15022
+ "description": "Whether the pagination navigation should be displayed on pages."
15023
+ }
15024
+ },
15025
+ "required": [
15026
+ "enabled"
15027
+ ]
15028
+ },
15029
+ "trademark": {
15030
+ "type": "object",
15031
+ "properties": {
15032
+ "enabled": {
15033
+ "type": "boolean",
15034
+ "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible"
15035
+ }
15036
+ },
15037
+ "required": [
15038
+ "enabled"
15039
+ ]
15040
+ },
15041
+ "privacyPolicy": {
15042
+ "type": "object",
15043
+ "properties": {
15044
+ "url": {
15045
+ "$ref": "#/components/schemas/URL"
15046
+ }
15047
+ }
15048
+ },
15049
+ "socialPreview": {
15050
+ "type": "object",
15051
+ "properties": {
15052
+ "url": {
15053
+ "$ref": "#/components/schemas/URL"
15054
+ }
15055
+ }
15056
+ }
15057
+ },
15058
+ "required": [
15059
+ "styling",
15060
+ "internationalization",
15061
+ "favicon",
15062
+ "header",
15063
+ "footer",
15064
+ "themes",
15065
+ "pdf",
15066
+ "feedback",
15067
+ "aiSearch",
15068
+ "trademark",
15069
+ "pagination",
15070
+ "git",
15071
+ "privacyPolicy",
15072
+ "socialPreview"
15073
+ ]
15074
+ },
15075
+ "SiteSpaceCustomizationOverrides": {
15076
+ "type": "object",
15077
+ "properties": {
15078
+ "styling": {
15079
+ "type": "object",
15080
+ "properties": {
15081
+ "primaryColor": {
15082
+ "description": "The primary color used for links and UI text. Set to null to reset the override.",
15083
+ "oneOf": [
15084
+ {
15085
+ "$ref": "#/components/schemas/CustomizationThemedColor"
15086
+ },
15087
+ {
15088
+ "type": "string",
15089
+ "nullable": true,
15090
+ "enum": [
15091
+ null
15092
+ ]
15093
+ }
15094
+ ]
15095
+ },
15096
+ "corners": {
15097
+ "description": "The style of the corners to use. Set to null to reset the override.",
15098
+ "oneOf": [
15099
+ {
15100
+ "$ref": "#/components/schemas/CustomizationCorners"
15101
+ },
15102
+ {
15103
+ "type": "string",
15104
+ "nullable": true,
15105
+ "enum": [
15106
+ null
15107
+ ]
15108
+ }
15109
+ ]
15110
+ },
15111
+ "font": {
15112
+ "description": "The font family to use for the content. Set to null to reset the override.",
15113
+ "oneOf": [
15114
+ {
15115
+ "$ref": "#/components/schemas/CustomizationFont"
15116
+ },
15117
+ {
15118
+ "type": "string",
15119
+ "nullable": true,
15120
+ "enum": [
15121
+ null
15122
+ ]
15123
+ }
15124
+ ]
15125
+ },
15126
+ "background": {
15127
+ "description": "The style of background to use. Set to null to reset the override.",
15128
+ "oneOf": [
15129
+ {
15130
+ "$ref": "#/components/schemas/CustomizationBackground"
15131
+ },
15132
+ {
15133
+ "type": "string",
15134
+ "nullable": true,
15135
+ "enum": [
15136
+ null
15137
+ ]
15138
+ }
15139
+ ]
15140
+ }
15141
+ }
15142
+ },
15143
+ "internationalization": {
15144
+ "type": "object",
15145
+ "properties": {
15146
+ "locale": {
15147
+ "description": "The locale to use for the non-custom elements of the UI. Set to null to reset the override.",
15148
+ "oneOf": [
15149
+ {
15150
+ "$ref": "#/components/schemas/CustomizationLocale"
15151
+ },
15152
+ {
15153
+ "type": "string",
15154
+ "nullable": true,
15155
+ "enum": [
15156
+ null
15157
+ ]
15158
+ }
15159
+ ]
15160
+ }
15161
+ },
15162
+ "required": [
15163
+ "locale"
15164
+ ]
15165
+ },
15166
+ "favicon": {
15167
+ "description": "The favicon to use. Set to null to reset the override.",
15168
+ "oneOf": [
15169
+ {
15170
+ "type": "object",
15171
+ "properties": {
15172
+ "icon": {
15173
+ "$ref": "#/components/schemas/CustomizationThemedURL"
15174
+ }
15175
+ },
15176
+ "required": [
15177
+ "icon"
15178
+ ]
15179
+ },
15180
+ {
15181
+ "type": "object",
15182
+ "properties": {
15183
+ "emoji": {
15184
+ "$ref": "#/components/schemas/Emoji"
15185
+ }
15186
+ },
15187
+ "required": [
15188
+ "emoji"
15189
+ ]
15190
+ },
15191
+ {
15192
+ "type": "object",
15193
+ "nullable": true,
15194
+ "properties": {},
15195
+ "additionalProperties": false
15196
+ }
15197
+ ]
15198
+ },
15199
+ "header": {
15200
+ "type": "object",
15201
+ "properties": {
15202
+ "preset": {
15203
+ "description": "The theme preset to use. Set to null to reset the override.",
15204
+ "oneOf": [
15205
+ {
15206
+ "$ref": "#/components/schemas/CustomizationHeaderPreset"
15207
+ },
15208
+ {
15209
+ "type": "string",
15210
+ "nullable": true,
15211
+ "enum": [
15212
+ null
15213
+ ]
15214
+ }
15215
+ ]
15216
+ },
15217
+ "logo": {
15218
+ "description": "The header logo to use. Set to null to reset the override.",
15219
+ "oneOf": [
15220
+ {
15221
+ "$ref": "#/components/schemas/CustomizationThemedURL"
15222
+ },
15223
+ {
15224
+ "type": "string",
15225
+ "nullable": true,
15226
+ "enum": [
15227
+ null
15228
+ ]
15229
+ }
15230
+ ]
15231
+ },
15232
+ "backgroundColor": {
15233
+ "description": "The background color used in the header. Set to null to reset the override.",
15234
+ "oneOf": [
15235
+ {
15236
+ "$ref": "#/components/schemas/CustomizationThemedColor"
15237
+ },
15238
+ {
15239
+ "type": "string",
15240
+ "nullable": true,
15241
+ "enum": [
15242
+ null
15243
+ ]
15244
+ }
15245
+ ]
15246
+ },
15247
+ "linkColor": {
15248
+ "description": "The color used by the links in the header. Set to null to reset the override.",
15249
+ "oneOf": [
15250
+ {
15251
+ "$ref": "#/components/schemas/CustomizationThemedColor"
15252
+ },
15253
+ {
15254
+ "type": "string",
15255
+ "nullable": true,
15256
+ "enum": [
15257
+ null
15258
+ ]
15259
+ }
15260
+ ]
15261
+ },
15262
+ "links": {
15263
+ "type": "array",
15264
+ "description": "The links that are displayed in the header. Set to null to reset the override.",
15265
+ "nullable": true,
15266
+ "items": {
15267
+ "$ref": "#/components/schemas/CustomizationHeaderLink"
15268
+ }
15269
+ }
15270
+ }
15271
+ },
15272
+ "footer": {
15273
+ "type": "object",
15274
+ "properties": {
15275
+ "logo": {
15276
+ "description": "The logo displayed in the footer. Set to null to reset the override.",
15277
+ "oneOf": [
15278
+ {
15279
+ "$ref": "#/components/schemas/CustomizationThemedURL"
15280
+ },
15281
+ {
15282
+ "type": "string",
15283
+ "nullable": true,
15284
+ "enum": [
15285
+ null
15286
+ ]
15287
+ }
15288
+ ]
15289
+ },
15290
+ "groups": {
15291
+ "type": "array",
15292
+ "description": "The links groups that are displayed in the footer. Set to null to reset the override.",
15293
+ "nullable": true,
15294
+ "items": {
15295
+ "$ref": "#/components/schemas/CustomizationFooterGroup"
15296
+ }
15297
+ },
15298
+ "copyright": {
15299
+ "type": "string",
15300
+ "description": "The copyright text that is displayed in the footer. Set to null to reset the override.",
15301
+ "nullable": true,
15302
+ "maxLength": 300
15303
+ }
15304
+ }
14810
15305
  },
14811
15306
  "themes": {
14812
15307
  "type": "object",
14813
15308
  "properties": {
14814
15309
  "default": {
14815
- "$ref": "#/components/schemas/CustomizationThemeMode"
15310
+ "description": "The theme mode default value. Set to null to reset the override.",
15311
+ "oneOf": [
15312
+ {
15313
+ "$ref": "#/components/schemas/CustomizationThemeMode"
15314
+ },
15315
+ {
15316
+ "type": "string",
15317
+ "nullable": true,
15318
+ "enum": [
15319
+ null
15320
+ ]
15321
+ }
15322
+ ]
14816
15323
  },
14817
15324
  "toggeable": {
14818
- "description": "Should the reader be able to switch between dark and light mode",
14819
- "type": "boolean"
15325
+ "description": "Should the reader be able to switch between dark and light mode. Set to null to reset the override.",
15326
+ "type": "boolean",
15327
+ "nullable": true
14820
15328
  }
14821
- },
14822
- "required": [
14823
- "default",
14824
- "toggeable"
14825
- ]
15329
+ }
14826
15330
  },
14827
15331
  "pdf": {
14828
15332
  "type": "object",
14829
15333
  "properties": {
14830
15334
  "enabled": {
14831
15335
  "type": "boolean",
14832
- "description": "If true, PDF export is enabled for the published site."
15336
+ "description": "If true, PDF export is enabled for the published site. Set to null to reset the override.",
15337
+ "nullable": true
14833
15338
  }
14834
15339
  },
14835
15340
  "required": [
@@ -14841,7 +15346,8 @@
14841
15346
  "properties": {
14842
15347
  "enabled": {
14843
15348
  "type": "boolean",
14844
- "description": "If true, feedback gathering is enabled"
15349
+ "description": "If true, feedback gathering is enabled. Set to null to reset the override.",
15350
+ "nullable": true
14845
15351
  }
14846
15352
  },
14847
15353
  "required": [
@@ -14853,7 +15359,8 @@
14853
15359
  "properties": {
14854
15360
  "enabled": {
14855
15361
  "type": "boolean",
14856
- "description": "If true, AI search is enabled"
15362
+ "description": "If true, AI search is enabled. Set to null to reset the override.",
15363
+ "nullable": true
14857
15364
  }
14858
15365
  },
14859
15366
  "required": [
@@ -14865,7 +15372,8 @@
14865
15372
  "properties": {
14866
15373
  "showEditLink": {
14867
15374
  "type": "boolean",
14868
- "description": "Whether the published site should show a link to edit the content on the git provider set up in the Git Sync"
15375
+ "description": "Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override.",
15376
+ "nullable": true
14869
15377
  }
14870
15378
  },
14871
15379
  "required": [
@@ -14877,7 +15385,8 @@
14877
15385
  "properties": {
14878
15386
  "enabled": {
14879
15387
  "type": "boolean",
14880
- "description": "Whether the pagination navigation should be displayed on pages."
15388
+ "description": "Whether the pagination navigation should be displayed on pages. Set to null to reset the override.",
15389
+ "nullable": true
14881
15390
  }
14882
15391
  },
14883
15392
  "required": [
@@ -14889,7 +15398,8 @@
14889
15398
  "properties": {
14890
15399
  "enabled": {
14891
15400
  "type": "boolean",
14892
- "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible"
15401
+ "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible. Set to null to reset the override.",
15402
+ "nullable": true
14893
15403
  }
14894
15404
  },
14895
15405
  "required": [
@@ -14900,7 +15410,19 @@
14900
15410
  "type": "object",
14901
15411
  "properties": {
14902
15412
  "url": {
14903
- "$ref": "#/components/schemas/URL"
15413
+ "description": "The custom link to the privacy policy. Set to null to reset the override.",
15414
+ "oneOf": [
15415
+ {
15416
+ "$ref": "#/components/schemas/URL"
15417
+ },
15418
+ {
15419
+ "type": "string",
15420
+ "nullable": true,
15421
+ "enum": [
15422
+ null
15423
+ ]
15424
+ }
15425
+ ]
14904
15426
  }
14905
15427
  }
14906
15428
  },
@@ -14908,27 +15430,23 @@
14908
15430
  "type": "object",
14909
15431
  "properties": {
14910
15432
  "url": {
14911
- "$ref": "#/components/schemas/URL"
15433
+ "description": "The URL for the social preview image. Set to null to reset the override.",
15434
+ "oneOf": [
15435
+ {
15436
+ "$ref": "#/components/schemas/URL"
15437
+ },
15438
+ {
15439
+ "type": "string",
15440
+ "nullable": true,
15441
+ "enum": [
15442
+ null
15443
+ ]
15444
+ }
15445
+ ]
14912
15446
  }
14913
15447
  }
14914
15448
  }
14915
- },
14916
- "required": [
14917
- "styling",
14918
- "internationalization",
14919
- "favicon",
14920
- "header",
14921
- "footer",
14922
- "themes",
14923
- "pdf",
14924
- "feedback",
14925
- "aiSearch",
14926
- "trademark",
14927
- "pagination",
14928
- "git",
14929
- "privacyPolicy",
14930
- "socialPreview"
14931
- ]
15449
+ }
14932
15450
  },
14933
15451
  "SiteVisibility": {
14934
15452
  "type": "string",
@@ -17154,6 +17672,14 @@
17154
17672
  "properties": {
17155
17673
  "subject": {
17156
17674
  "$ref": "#/components/schemas/ChangeRequestSubject"
17675
+ },
17676
+ "status": {
17677
+ "type": "string",
17678
+ "enum": [
17679
+ "draft",
17680
+ "open",
17681
+ "archived"
17682
+ ]
17157
17683
  }
17158
17684
  }
17159
17685
  }
@@ -26324,6 +26850,58 @@
26324
26850
  }
26325
26851
  }
26326
26852
  },
26853
+ "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content": {
26854
+ "get": {
26855
+ "operationId": "getSyncedBlockContent",
26856
+ "summary": "Get a synced block content",
26857
+ "tags": [
26858
+ "organizations"
26859
+ ],
26860
+ "security": [
26861
+ {
26862
+ "user": []
26863
+ }
26864
+ ],
26865
+ "parameters": [
26866
+ {
26867
+ "$ref": "#/components/parameters/organizationId"
26868
+ },
26869
+ {
26870
+ "$ref": "#/components/parameters/syncedBlockId"
26871
+ }
26872
+ ],
26873
+ "responses": {
26874
+ "200": {
26875
+ "description": "OK",
26876
+ "content": {
26877
+ "application/json": {
26878
+ "schema": {
26879
+ "type": "object",
26880
+ "properties": {
26881
+ "document": {
26882
+ "$ref": "#/components/schemas/JSONDocument"
26883
+ },
26884
+ "files": {
26885
+ "type": "array",
26886
+ "items": {
26887
+ "$ref": "#/components/schemas/RevisionFile"
26888
+ }
26889
+ }
26890
+ },
26891
+ "required": [
26892
+ "document",
26893
+ "files"
26894
+ ]
26895
+ }
26896
+ }
26897
+ }
26898
+ },
26899
+ "default": {
26900
+ "$ref": "#/components/responses/UnexpectedError"
26901
+ }
26902
+ }
26903
+ }
26904
+ },
26327
26905
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks": {
26328
26906
  "get": {
26329
26907
  "operationId": "getSyncedBlockBacklinks",
@@ -27684,6 +28262,150 @@
27684
28262
  "$ref": "#/components/responses/UnexpectedError"
27685
28263
  }
27686
28264
  }
28265
+ },
28266
+ "patch": {
28267
+ "operationId": "overrideSiteSpaceCustomizationById",
28268
+ "summary": "Override the customization configuration for a site space.",
28269
+ "tags": [
28270
+ "sites"
28271
+ ],
28272
+ "security": [
28273
+ {
28274
+ "user": []
28275
+ }
28276
+ ],
28277
+ "parameters": [
28278
+ {
28279
+ "$ref": "#/components/parameters/organizationId"
28280
+ },
28281
+ {
28282
+ "$ref": "#/components/parameters/siteId"
28283
+ },
28284
+ {
28285
+ "$ref": "#/components/parameters/siteSpaceId"
28286
+ }
28287
+ ],
28288
+ "requestBody": {
28289
+ "required": true,
28290
+ "content": {
28291
+ "application/json": {
28292
+ "schema": {
28293
+ "description": "The settings that overrides the site customization settings.",
28294
+ "$ref": "#/components/schemas/SiteSpaceCustomizationOverrides"
28295
+ }
28296
+ }
28297
+ }
28298
+ },
28299
+ "responses": {
28300
+ "200": {
28301
+ "description": "OK",
28302
+ "content": {
28303
+ "application/json": {
28304
+ "schema": {
28305
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
28306
+ }
28307
+ }
28308
+ }
28309
+ },
28310
+ "400": {
28311
+ "$ref": "#/components/responses/BadRequestError"
28312
+ },
28313
+ "default": {
28314
+ "$ref": "#/components/responses/UnexpectedError"
28315
+ }
28316
+ }
28317
+ }
28318
+ },
28319
+ "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
28320
+ "get": {
28321
+ "operationId": "listPermissionsAggregateInSite",
28322
+ "summary": "List permissions for all users of a site.",
28323
+ "tags": [
28324
+ "permissions",
28325
+ "sites"
28326
+ ],
28327
+ "security": [
28328
+ {
28329
+ "user": []
28330
+ }
28331
+ ],
28332
+ "parameters": [
28333
+ {
28334
+ "$ref": "#/components/parameters/organizationId"
28335
+ },
28336
+ {
28337
+ "$ref": "#/components/parameters/siteId"
28338
+ },
28339
+ {
28340
+ "$ref": "#/components/parameters/listPage"
28341
+ },
28342
+ {
28343
+ "$ref": "#/components/parameters/listLimit"
28344
+ },
28345
+ {
28346
+ "name": "role",
28347
+ "in": "query",
28348
+ "description": "If defined, only members with this role will be returned.",
28349
+ "schema": {
28350
+ "$ref": "#/components/schemas/MemberRole"
28351
+ }
28352
+ }
28353
+ ],
28354
+ "responses": {
28355
+ "200": {
28356
+ "description": "Listing of users who can access the site.",
28357
+ "content": {
28358
+ "application/json": {
28359
+ "schema": {
28360
+ "allOf": [
28361
+ {
28362
+ "$ref": "#/components/schemas/List"
28363
+ },
28364
+ {
28365
+ "type": "object",
28366
+ "required": [
28367
+ "items"
28368
+ ],
28369
+ "properties": {
28370
+ "items": {
28371
+ "type": "array",
28372
+ "items": {
28373
+ "type": "object",
28374
+ "description": "Permission of a user in a site.",
28375
+ "properties": {
28376
+ "permission": {
28377
+ "$ref": "#/components/schemas/MemberRole"
28378
+ },
28379
+ "user": {
28380
+ "$ref": "#/components/schemas/User"
28381
+ },
28382
+ "origin": {
28383
+ "description": "The content or organization that enforced this permission level.",
28384
+ "oneOf": [
28385
+ {
28386
+ "$ref": "#/components/schemas/SpacePointer"
28387
+ }
28388
+ ]
28389
+ }
28390
+ },
28391
+ "required": [
28392
+ "permission",
28393
+ "user",
28394
+ "origin"
28395
+ ]
28396
+ }
28397
+ }
28398
+ }
28399
+ }
28400
+ ]
28401
+ }
28402
+ }
28403
+ }
28404
+ },
28405
+ "default": {
28406
+ "$ref": "#/components/responses/UnexpectedError"
28407
+ }
28408
+ }
27687
28409
  }
27688
28410
  },
27689
28411
  "/orgs/{organizationId}/seats": {
@@ -28290,9 +29012,17 @@
28290
29012
  "type": "object",
28291
29013
  "properties": {
28292
29014
  "spaces": {
29015
+ "deprecated": true,
29016
+ "type": "array",
29017
+ "items": {
29018
+ "description": "Deprecated. Use contentIds.",
29019
+ "type": "string"
29020
+ }
29021
+ },
29022
+ "contentIds": {
28293
29023
  "type": "array",
28294
29024
  "items": {
28295
- "description": "ID of a space, potentially not directly listed in user permissions",
29025
+ "description": "Content IDs to retrieve permissions for.",
28296
29026
  "type": "string"
28297
29027
  }
28298
29028
  }