@gitbook/api 0.120.0 → 0.122.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
@@ -31,6 +31,9 @@
31
31
  {
32
32
  "user-staff": []
33
33
  },
34
+ {
35
+ "user-internal-or-staff": []
36
+ },
34
37
  {
35
38
  "integration": []
36
39
  },
@@ -2814,6 +2817,40 @@
2814
2817
  }
2815
2818
  }
2816
2819
  },
2820
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers/{userId}": {
2821
+ "delete": {
2822
+ "operationId": "removeRequestedReviewerFromChangeRequest",
2823
+ "summary": "Remove a reviewer from a change request",
2824
+ "tags": [
2825
+ "change-request-reviewers"
2826
+ ],
2827
+ "security": [
2828
+ {
2829
+ "user": []
2830
+ }
2831
+ ],
2832
+ "parameters": [
2833
+ {
2834
+ "$ref": "#/components/parameters/spaceId"
2835
+ },
2836
+ {
2837
+ "$ref": "#/components/parameters/changeRequestId"
2838
+ },
2839
+ {
2840
+ "$ref": "#/components/parameters/userId"
2841
+ }
2842
+ ],
2843
+ "responses": {
2844
+ "205": {
2845
+ "description": "The reviewer has been removed from the change request"
2846
+ },
2847
+ "404": {
2848
+ "description": "The reviewer could not be found",
2849
+ "$ref": "#/components/responses/NotFoundError"
2850
+ }
2851
+ }
2852
+ }
2853
+ },
2817
2854
  "/spaces/{spaceId}/change-requests/{changeRequestId}/links": {
2818
2855
  "get": {
2819
2856
  "operationId": "listChangeRequestLinks",
@@ -6109,6 +6146,9 @@
6109
6146
  },
6110
6147
  {
6111
6148
  "$ref": "#/components/parameters/integrationSearchScope"
6149
+ },
6150
+ {
6151
+ "$ref": "#/components/parameters/integrationSearchTarget"
6112
6152
  }
6113
6153
  ],
6114
6154
  "responses": {
@@ -9069,6 +9109,9 @@
9069
9109
  },
9070
9110
  {
9071
9111
  "$ref": "#/components/parameters/integrationSearchScope"
9112
+ },
9113
+ {
9114
+ "$ref": "#/components/parameters/integrationSearchTarget"
9072
9115
  }
9073
9116
  ],
9074
9117
  "responses": {
@@ -12238,6 +12281,74 @@
12238
12281
  }
12239
12282
  }
12240
12283
  },
12284
+ "/orgs/{organizationId}/sites/{siteId}/structure/sort": {
12285
+ "patch": {
12286
+ "operationId": "sortSiteStructure",
12287
+ "summary": "Move a site space, site section or site section group to a new position in the site structure.",
12288
+ "tags": [
12289
+ "sites"
12290
+ ],
12291
+ "security": [
12292
+ {
12293
+ "user": []
12294
+ }
12295
+ ],
12296
+ "parameters": [
12297
+ {
12298
+ "$ref": "#/components/parameters/organizationId"
12299
+ },
12300
+ {
12301
+ "$ref": "#/components/parameters/siteId"
12302
+ }
12303
+ ],
12304
+ "requestBody": {
12305
+ "content": {
12306
+ "application/json": {
12307
+ "schema": {
12308
+ "type": "object",
12309
+ "properties": {
12310
+ "item": {
12311
+ "description": "pointer to the item (site space, site section or site section group) being moved.",
12312
+ "$ref": "#/components/schemas/SiteStructureItemPointer"
12313
+ },
12314
+ "position": {
12315
+ "description": "The position to move the item to. When not provided the item is moved to the end of the site structure.",
12316
+ "$ref": "#/components/schemas/SiteStructureItemMovePosition"
12317
+ }
12318
+ },
12319
+ "required": [
12320
+ "item",
12321
+ "position"
12322
+ ]
12323
+ }
12324
+ }
12325
+ }
12326
+ },
12327
+ "responses": {
12328
+ "200": {
12329
+ "description": "Item successfully moved",
12330
+ "content": {
12331
+ "application/json": {
12332
+ "schema": {
12333
+ "$ref": "#/components/schemas/SiteStructureItem"
12334
+ }
12335
+ }
12336
+ }
12337
+ },
12338
+ "400": {
12339
+ "description": "Invalid move position provided",
12340
+ "$ref": "#/components/responses/BadRequestError"
12341
+ },
12342
+ "404": {
12343
+ "description": "No matching item found",
12344
+ "$ref": "#/components/responses/NotFoundError"
12345
+ },
12346
+ "default": {
12347
+ "$ref": "#/components/responses/UnexpectedError"
12348
+ }
12349
+ }
12350
+ }
12351
+ },
12241
12352
  "/orgs/{organizationId}/sites/{siteId}/publishing/auth": {
12242
12353
  "get": {
12243
12354
  "operationId": "getSitePublishingAuthById",
@@ -13095,9 +13206,32 @@
13095
13206
  "description": "ID of the space to be added to the section as a site space variant"
13096
13207
  },
13097
13208
  "title": {
13098
- "type": "string",
13099
- "description": "Title of the section",
13100
- "maxLength": 64
13209
+ "oneOf": [
13210
+ {
13211
+ "$ref": "#/components/schemas/SiteSectionTitle"
13212
+ },
13213
+ {
13214
+ "type": "string",
13215
+ "nullable": true,
13216
+ "enum": [
13217
+ null
13218
+ ]
13219
+ }
13220
+ ]
13221
+ },
13222
+ "icon": {
13223
+ "oneOf": [
13224
+ {
13225
+ "$ref": "#/components/schemas/Icon"
13226
+ },
13227
+ {
13228
+ "type": "string",
13229
+ "nullable": true,
13230
+ "enum": [
13231
+ null
13232
+ ]
13233
+ }
13234
+ ]
13101
13235
  }
13102
13236
  },
13103
13237
  "required": [
@@ -13626,6 +13760,10 @@
13626
13760
  ]
13627
13761
  }
13628
13762
  ]
13763
+ },
13764
+ "spaceId": {
13765
+ "type": "string",
13766
+ "description": "The content that this site space points to. If not set, the space will remain unchanged."
13629
13767
  }
13630
13768
  }
13631
13769
  }
@@ -14357,7 +14495,8 @@
14357
14495
  "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/move": {
14358
14496
  "post": {
14359
14497
  "operationId": "moveSiteSectionGroup",
14360
- "summary": "Move a site section group to a new position",
14498
+ "deprecated": true,
14499
+ "summary": "Move a site section group to a new position. (Deprecated) use sortSiteStructure instead.",
14361
14500
  "tags": [
14362
14501
  "site-section-groups"
14363
14502
  ],
@@ -14417,7 +14556,8 @@
14417
14556
  "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move": {
14418
14557
  "post": {
14419
14558
  "operationId": "moveSiteSection",
14420
- "summary": "Move a site section to a new position",
14559
+ "deprecated": true,
14560
+ "summary": "Move a site section to a new position. (Deprecated) use sortSiteStructure instead.",
14421
14561
  "tags": [
14422
14562
  "site-sections"
14423
14563
  ],
@@ -14477,7 +14617,8 @@
14477
14617
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
14478
14618
  "post": {
14479
14619
  "operationId": "moveSiteSpace",
14480
- "summary": "Move a site space to a new position",
14620
+ "deprecated": true,
14621
+ "summary": "Move a site space to a new position. (Deprecated) use sortSiteStructure instead.",
14481
14622
  "tags": [
14482
14623
  "site-spaces"
14483
14624
  ],
@@ -15147,7 +15288,7 @@
15147
15288
  ],
15148
15289
  "security": [
15149
15290
  {
15150
- "user-internal": []
15291
+ "user-internal-or-staff": []
15151
15292
  }
15152
15293
  ],
15153
15294
  "parameters": [
@@ -15628,7 +15769,7 @@
15628
15769
  "name": "visitorAuthToken",
15629
15770
  "in": "query",
15630
15771
  "required": false,
15631
- "description": "JWT token generated for a visitor auth session",
15772
+ "description": "JWT token generated for a authenticated access session",
15632
15773
  "schema": {
15633
15774
  "type": "string"
15634
15775
  }
@@ -15637,7 +15778,7 @@
15637
15778
  "name": "redirectOnError",
15638
15779
  "in": "query",
15639
15780
  "required": false,
15640
- "description": "When true redirects the user to the authentication/fallback URL if the visitor auth token is invalid",
15781
+ "description": "When true redirects the user to the authentication/fallback URL if the access token is invalid",
15641
15782
  "schema": {
15642
15783
  "type": "boolean",
15643
15784
  "default": false
@@ -15680,7 +15821,7 @@
15680
15821
  },
15681
15822
  "redirectOnError": {
15682
15823
  "type": "boolean",
15683
- "description": "When true redirects the user to the authentication/fallback URL if the visitor auth token is invalid",
15824
+ "description": "When true redirects the user to the authentication/fallback URL if the access token is invalid",
15684
15825
  "default": false
15685
15826
  },
15686
15827
  "visitor": {
@@ -15727,6 +15868,10 @@
15727
15868
  "type": "http",
15728
15869
  "scheme": "bearer"
15729
15870
  },
15871
+ "user-internal-or-staff": {
15872
+ "type": "http",
15873
+ "scheme": "bearer"
15874
+ },
15730
15875
  "integration": {
15731
15876
  "type": "http",
15732
15877
  "scheme": "bearer"
@@ -16036,6 +16181,14 @@
16036
16181
  "$ref": "#/components/schemas/IntegrationScope"
16037
16182
  }
16038
16183
  },
16184
+ "integrationSearchTarget": {
16185
+ "name": "target",
16186
+ "in": "query",
16187
+ "description": "Filter the integrations by target",
16188
+ "schema": {
16189
+ "$ref": "#/components/schemas/IntegrationTarget"
16190
+ }
16191
+ },
16039
16192
  "integrationName": {
16040
16193
  "name": "integrationName",
16041
16194
  "in": "path",
@@ -16273,24 +16426,6 @@
16273
16426
  },
16274
16427
  "required": true
16275
16428
  },
16276
- "visitorId": {
16277
- "name": "visitorId",
16278
- "in": "path",
16279
- "required": true,
16280
- "description": "The id of the visitor",
16281
- "schema": {
16282
- "type": "string"
16283
- }
16284
- },
16285
- "ifUnmodifiedSince": {
16286
- "in": "header",
16287
- "name": "If-Unmodified-Since",
16288
- "description": "If provided, the operation will be rejected if the underlying resource has been modified since the date provided in the header.",
16289
- "schema": {
16290
- "type": "string",
16291
- "format": "date-time"
16292
- }
16293
- },
16294
16429
  "pageFormat": {
16295
16430
  "$ref": "#/components/parameters/documentFormat"
16296
16431
  },
@@ -16507,11 +16642,11 @@
16507
16642
  },
16508
16643
  "VisitorAuthCustomBackend": {
16509
16644
  "type": "object",
16510
- "title": "Custom backend for Visitor Authentication",
16645
+ "title": "Custom backend for authenticated access",
16511
16646
  "properties": {
16512
16647
  "backend": {
16513
16648
  "type": "string",
16514
- "description": "Custom backend for Visitor Authentication",
16649
+ "description": "Custom backend for authenticated access",
16515
16650
  "enum": [
16516
16651
  "custom"
16517
16652
  ]
@@ -16523,11 +16658,11 @@
16523
16658
  },
16524
16659
  "VisitorAuthIntegrationBackend": {
16525
16660
  "type": "object",
16526
- "title": "Integration backend for Visitor Authentication",
16661
+ "title": "Integration backend for authenticated access",
16527
16662
  "properties": {
16528
16663
  "backend": {
16529
16664
  "type": "string",
16530
- "description": "Integration as backend for Visitor Authentication",
16665
+ "description": "Integration as backend for authenticated access",
16531
16666
  "enum": [
16532
16667
  "integration"
16533
16668
  ]
@@ -16552,7 +16687,7 @@
16552
16687
  "properties": {
16553
16688
  "integration": {
16554
16689
  "type": "string",
16555
- "description": "Name of integration being used as the backend for Visitor Authentication"
16690
+ "description": "Name of integration being used as the backend for authenticated access"
16556
16691
  }
16557
16692
  },
16558
16693
  "required": [
@@ -18027,6 +18162,49 @@
18027
18162
  "isVoid"
18028
18163
  ]
18029
18164
  },
18165
+ "DocumentInlineIcon": {
18166
+ "type": "object",
18167
+ "properties": {
18168
+ "object": {
18169
+ "type": "string",
18170
+ "enum": [
18171
+ "inline"
18172
+ ]
18173
+ },
18174
+ "type": {
18175
+ "type": "string",
18176
+ "enum": [
18177
+ "icon"
18178
+ ]
18179
+ },
18180
+ "key": {
18181
+ "type": "string"
18182
+ },
18183
+ "data": {
18184
+ "type": "object",
18185
+ "properties": {
18186
+ "icon": {
18187
+ "type": "string"
18188
+ }
18189
+ },
18190
+ "required": [
18191
+ "icon"
18192
+ ]
18193
+ },
18194
+ "isVoid": {
18195
+ "type": "boolean",
18196
+ "enum": [
18197
+ true
18198
+ ]
18199
+ }
18200
+ },
18201
+ "required": [
18202
+ "object",
18203
+ "type",
18204
+ "data",
18205
+ "isVoid"
18206
+ ]
18207
+ },
18030
18208
  "DocumentInlineExpression": {
18031
18209
  "type": "object",
18032
18210
  "properties": {
@@ -18152,7 +18330,11 @@
18152
18330
  },
18153
18331
  "data": {
18154
18332
  "type": "object",
18155
- "properties": {},
18333
+ "properties": {
18334
+ "align": {
18335
+ "$ref": "#/components/schemas/TextAlignment"
18336
+ }
18337
+ },
18156
18338
  "additionalProperties": false
18157
18339
  }
18158
18340
  },
@@ -18170,6 +18352,9 @@
18170
18352
  {
18171
18353
  "$ref": "#/components/schemas/DocumentInlineEmoji"
18172
18354
  },
18355
+ {
18356
+ "$ref": "#/components/schemas/DocumentInlineIcon"
18357
+ },
18173
18358
  {
18174
18359
  "$ref": "#/components/schemas/DocumentInlineExpression"
18175
18360
  },
@@ -18190,6 +18375,14 @@
18190
18375
  }
18191
18376
  ]
18192
18377
  },
18378
+ "TextAlignment": {
18379
+ "type": "string",
18380
+ "enum": [
18381
+ "start",
18382
+ "center",
18383
+ "end"
18384
+ ]
18385
+ },
18193
18386
  "DocumentBlockHeading": {
18194
18387
  "type": "object",
18195
18388
  "properties": {
@@ -18229,6 +18422,9 @@
18229
18422
  "id": {
18230
18423
  "type": "string",
18231
18424
  "pattern": "^[-a-z0-9.+_]+$"
18425
+ },
18426
+ "align": {
18427
+ "$ref": "#/components/schemas/TextAlignment"
18232
18428
  }
18233
18429
  }
18234
18430
  },
@@ -18390,6 +18586,9 @@
18390
18586
  },
18391
18587
  {
18392
18588
  "$ref": "#/components/schemas/DocumentInlineAnnotation"
18589
+ },
18590
+ {
18591
+ "$ref": "#/components/schemas/DocumentInlineExpression"
18393
18592
  }
18394
18593
  ]
18395
18594
  }
@@ -20755,6 +20954,33 @@
20755
20954
  },
20756
20955
  {
20757
20956
  "$ref": "#/components/schemas/DocumentBlockImages"
20957
+ },
20958
+ {
20959
+ "$ref": "#/components/schemas/DocumentBlockCode"
20960
+ },
20961
+ {
20962
+ "$ref": "#/components/schemas/DocumentBlockHint"
20963
+ },
20964
+ {
20965
+ "$ref": "#/components/schemas/DocumentBlockContentRef"
20966
+ },
20967
+ {
20968
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
20969
+ },
20970
+ {
20971
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
20972
+ },
20973
+ {
20974
+ "$ref": "#/components/schemas/DocumentBlockFile"
20975
+ },
20976
+ {
20977
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
20978
+ },
20979
+ {
20980
+ "$ref": "#/components/schemas/DocumentBlockMath"
20981
+ },
20982
+ {
20983
+ "$ref": "#/components/schemas/DocumentBlockQuote"
20758
20984
  }
20759
20985
  ]
20760
20986
  }
@@ -21004,6 +21230,9 @@
21004
21230
  "primary",
21005
21231
  "secondary"
21006
21232
  ]
21233
+ },
21234
+ "icon": {
21235
+ "$ref": "#/components/schemas/Icon"
21007
21236
  }
21008
21237
  },
21009
21238
  "required": [
@@ -26265,7 +26494,7 @@
26265
26494
  },
26266
26495
  {
26267
26496
  "type": "object",
26268
- "description": "Common properties for all events related to visitor authentication from an installation",
26497
+ "description": "Common properties for all events related to authenticated access from an installation",
26269
26498
  "properties": {
26270
26499
  "type": {
26271
26500
  "type": "string",
@@ -27033,6 +27262,39 @@
27033
27262
  "included"
27034
27263
  ]
27035
27264
  },
27265
+ "SiteFeatureKey": {
27266
+ "type": "string",
27267
+ "description": "The site feature identifier",
27268
+ "enum": [
27269
+ "sites-adaptive-content",
27270
+ "sites-advanced-customization",
27271
+ "sites-advanced-insights",
27272
+ "sites-ads",
27273
+ "sites-ai-search",
27274
+ "sites-api-playground",
27275
+ "sites-basic-customization",
27276
+ "sites-custom-domain",
27277
+ "sites-custom-fonts",
27278
+ "sites-custom-subdirectory",
27279
+ "sites-full-text-search",
27280
+ "sites-multivariant-site",
27281
+ "sites-no-custom-domain",
27282
+ "sites-page-feedback",
27283
+ "sites-page-traffic-insights",
27284
+ "sites-pdf-export",
27285
+ "sites-preview-deployments",
27286
+ "sites-public-visibility",
27287
+ "sites-redirects",
27288
+ "sites-search-insights",
27289
+ "sites-sections",
27290
+ "sites-seo",
27291
+ "sites-share-links",
27292
+ "sites-unlisted-visibility",
27293
+ "sites-user-contribution",
27294
+ "sites-visitor-authentication",
27295
+ "sites-visitors"
27296
+ ]
27297
+ },
27036
27298
  "SiteCustomizationFeature": {
27037
27299
  "type": "string",
27038
27300
  "description": "A list of all premium customizations.",
@@ -27048,75 +27310,31 @@
27048
27310
  ]
27049
27311
  },
27050
27312
  "SiteFeature": {
27051
- "oneOf": [
27052
- {
27053
- "type": "object",
27054
- "description": "A site feature and the plan it is available on.",
27055
- "properties": {
27056
- "id": {
27057
- "description": "The feature identifier, matching the feature table keys in the pricing definition",
27058
- "type": "string",
27059
- "enum": [
27060
- "sites-sections",
27061
- "sites-visitor-authentication",
27062
- "sites-adaptive-content",
27063
- "sites-redirects",
27064
- "sites-custom-domain",
27065
- "sites-ai-search",
27066
- "sites-pdf-export",
27067
- "sites-page-feedback",
27068
- "sites-unlisted-visibility",
27069
- "sites-share-links",
27070
- "sites-custom-fonts"
27071
- ]
27072
- },
27073
- "plan": {
27074
- "$ref": "#/components/schemas/SiteType"
27075
- },
27076
- "frozen": {
27077
- "description": "A frozen feature is still enabled but cannot be changed or modified.",
27078
- "type": "boolean"
27079
- }
27080
- },
27081
- "required": [
27082
- "id",
27083
- "plan",
27084
- "frozen"
27085
- ]
27313
+ "type": "object",
27314
+ "description": "A site feature and the plan it is available on.",
27315
+ "properties": {
27316
+ "id": {
27317
+ "$ref": "#/components/schemas/SiteFeatureKey"
27086
27318
  },
27087
- {
27088
- "type": "object",
27089
- "description": "The advanced customizations feature, carrying also which individual customization are used",
27090
- "properties": {
27091
- "id": {
27092
- "description": "The feature identifier, always set to `sites-advanced-customization`",
27093
- "type": "string",
27094
- "enum": [
27095
- "sites-advanced-customization"
27096
- ]
27097
- },
27098
- "plan": {
27099
- "$ref": "#/components/schemas/SiteType"
27100
- },
27101
- "frozen": {
27102
- "description": "A frozen feature is still enabled but cannot be changed or modified.",
27103
- "type": "boolean"
27104
- },
27105
- "customizations": {
27106
- "description": "A list of the actual advanced customizations used",
27107
- "type": "array",
27108
- "items": {
27109
- "$ref": "#/components/schemas/SiteCustomizationFeature"
27110
- }
27111
- }
27112
- },
27113
- "required": [
27114
- "id",
27115
- "plan",
27116
- "frozen",
27117
- "customizations"
27118
- ]
27319
+ "plan": {
27320
+ "$ref": "#/components/schemas/SiteType"
27321
+ },
27322
+ "frozen": {
27323
+ "description": "A frozen feature is still enabled but cannot be changed or modified.",
27324
+ "type": "boolean"
27325
+ },
27326
+ "customizations": {
27327
+ "description": "A list of the actual advanced customizations used (only applicable for sites-advanced-customization)",
27328
+ "type": "array",
27329
+ "items": {
27330
+ "$ref": "#/components/schemas/SiteCustomizationFeature"
27331
+ }
27119
27332
  }
27333
+ },
27334
+ "required": [
27335
+ "id",
27336
+ "plan",
27337
+ "frozen"
27120
27338
  ]
27121
27339
  },
27122
27340
  "Site": {
@@ -29324,6 +29542,68 @@
29324
29542
  }
29325
29543
  ]
29326
29544
  },
29545
+ "SubscriptionChanges": {
29546
+ "type": "object",
29547
+ "description": "Changes to apply during a subscription upgrade or downgrade",
29548
+ "properties": {
29549
+ "removeMembers": {
29550
+ "description": "A list of member identifiers to be removed",
29551
+ "type": "array",
29552
+ "items": {
29553
+ "type": "string"
29554
+ }
29555
+ },
29556
+ "updateSites": {
29557
+ "description": "A list of site updates to be applied before upgrading. If a site is not present in this list, it'll be upgraded to whichever type matches its features and its published status will be unchanged. When downgrading to a lower type all relevant paid features will be disabled before applying the new type.\n",
29558
+ "type": "array",
29559
+ "items": {
29560
+ "oneOf": [
29561
+ {
29562
+ "type": "object",
29563
+ "properties": {
29564
+ "id": {
29565
+ "description": "The site identifier",
29566
+ "type": "string"
29567
+ },
29568
+ "type": {
29569
+ "description": "The site type to migrate to",
29570
+ "$ref": "#/components/schemas/SiteType"
29571
+ }
29572
+ },
29573
+ "required": [
29574
+ "id",
29575
+ "type"
29576
+ ]
29577
+ },
29578
+ {
29579
+ "type": "object",
29580
+ "properties": {
29581
+ "id": {
29582
+ "description": "The site identifier",
29583
+ "type": "string"
29584
+ },
29585
+ "isPublished": {
29586
+ "description": "Can be set to `false` to unpublish a site",
29587
+ "type": "boolean",
29588
+ "enum": [
29589
+ false
29590
+ ]
29591
+ }
29592
+ },
29593
+ "required": [
29594
+ "id",
29595
+ "isPublished"
29596
+ ]
29597
+ }
29598
+ ]
29599
+ }
29600
+ }
29601
+ },
29602
+ "required": [
29603
+ "removeMembers",
29604
+ "updateSites"
29605
+ ]
29606
+ },
29327
29607
  "UpgradeOrganizationBilling": {
29328
29608
  "type": "object",
29329
29609
  "properties": {
@@ -29333,9 +29613,13 @@
29333
29613
  "interval": {
29334
29614
  "$ref": "#/components/schemas/BillingInterval"
29335
29615
  },
29616
+ "changes": {
29617
+ "$ref": "#/components/schemas/SubscriptionChanges"
29618
+ },
29336
29619
  "exclude": {
29620
+ "deprecated": true,
29337
29621
  "type": "object",
29338
- "description": "Members to remove or sites to unpublish before upgrading",
29622
+ "description": "Deprecated. Use `changes` instead.",
29339
29623
  "minProperties": 1,
29340
29624
  "properties": {
29341
29625
  "members": {
@@ -29566,66 +29850,7 @@
29566
29850
  ]
29567
29851
  },
29568
29852
  "changes": {
29569
- "type": "object",
29570
- "description": "Changes to apply to the organization and its sites before upgrading",
29571
- "properties": {
29572
- "removeMembers": {
29573
- "description": "A list of member identifiers to be removed",
29574
- "type": "array",
29575
- "items": {
29576
- "type": "string"
29577
- }
29578
- },
29579
- "updateSites": {
29580
- "description": "A list of site updates to be applied before upgrading. If a site is not present in this list, it'll be upgraded to whichever type matches its features and its published status will be unchanged. When downgrading to a lower type all relevant paid features will be disabled before applying the new type.\n",
29581
- "type": "array",
29582
- "items": {
29583
- "oneOf": [
29584
- {
29585
- "type": "object",
29586
- "properties": {
29587
- "id": {
29588
- "description": "The site identifier",
29589
- "type": "string"
29590
- },
29591
- "type": {
29592
- "description": "The site type to migrate to",
29593
- "$ref": "#/components/schemas/SiteType"
29594
- }
29595
- },
29596
- "required": [
29597
- "id",
29598
- "type"
29599
- ]
29600
- },
29601
- {
29602
- "type": "object",
29603
- "properties": {
29604
- "id": {
29605
- "description": "The site identifier",
29606
- "type": "string"
29607
- },
29608
- "isPublished": {
29609
- "description": "Can be set to `false` to unpublish a site",
29610
- "type": "boolean",
29611
- "enum": [
29612
- false
29613
- ]
29614
- }
29615
- },
29616
- "required": [
29617
- "id",
29618
- "isPublished"
29619
- ]
29620
- }
29621
- ]
29622
- }
29623
- }
29624
- },
29625
- "required": [
29626
- "removeMembers",
29627
- "updateSites"
29628
- ]
29853
+ "$ref": "#/components/schemas/SubscriptionChanges"
29629
29854
  }
29630
29855
  },
29631
29856
  "required": [
@@ -31615,6 +31840,10 @@
31615
31840
  "items": {
31616
31841
  "$ref": "#/components/schemas/CustomizationContentLink"
31617
31842
  }
31843
+ },
31844
+ "condition": {
31845
+ "description": "Conditional expression used to evaluate whether the header item should be shown to the site's visitor.",
31846
+ "$ref": "#/components/schemas/Condition"
31618
31847
  }
31619
31848
  },
31620
31849
  "required": [
@@ -32127,6 +32356,73 @@
32127
32356
  "urls"
32128
32357
  ]
32129
32358
  },
32359
+ "SiteStructureItemPointer": {
32360
+ "type": "object",
32361
+ "properties": {
32362
+ "type": {
32363
+ "type": "string",
32364
+ "enum": [
32365
+ "site-space",
32366
+ "site-section",
32367
+ "site-section-group"
32368
+ ]
32369
+ },
32370
+ "id": {
32371
+ "type": "string",
32372
+ "description": "Unique identifier for the site structure item (site space, site section or site section group)."
32373
+ }
32374
+ },
32375
+ "required": [
32376
+ "type",
32377
+ "id"
32378
+ ]
32379
+ },
32380
+ "SiteStructureItemMovePosition": {
32381
+ "type": "object",
32382
+ "description": "Position at which to move the site structure item (site space, site section or site section group).",
32383
+ "properties": {
32384
+ "before": {
32385
+ "$ref": "#/components/schemas/SiteStructureItemPointer"
32386
+ },
32387
+ "after": {
32388
+ "$ref": "#/components/schemas/SiteStructureItemPointer"
32389
+ }
32390
+ }
32391
+ },
32392
+ "SiteStructureItem": {
32393
+ "title": "Site Structure Item",
32394
+ "type": "object",
32395
+ "description": "A site structure item can be a site space, a site section or a site section group.\nIt is used to represent the structure of a site.\n",
32396
+ "oneOf": [
32397
+ {
32398
+ "$ref": "#/components/schemas/SiteSpace"
32399
+ },
32400
+ {
32401
+ "$ref": "#/components/schemas/SiteSection"
32402
+ },
32403
+ {
32404
+ "$ref": "#/components/schemas/SiteSectionGroup"
32405
+ }
32406
+ ]
32407
+ },
32408
+ "SiteUpgradeReason": {
32409
+ "type": "string",
32410
+ "description": "The reason or feature that triggered the site upgrade",
32411
+ "oneOf": [
32412
+ {
32413
+ "$ref": "#/components/schemas/SiteFeatureKey"
32414
+ },
32415
+ {
32416
+ "type": "string",
32417
+ "enum": [
32418
+ "settings",
32419
+ "publish-downgrade",
32420
+ "from-billing-modal",
32421
+ "payment-failed-modal"
32422
+ ]
32423
+ }
32424
+ ]
32425
+ },
32130
32426
  "SitePublishingAuth": {
32131
32427
  "allOf": [
32132
32428
  {
@@ -32156,11 +32452,11 @@
32156
32452
  "fallbackURL": {
32157
32453
  "type": "string",
32158
32454
  "format": "uri",
32159
- "description": "URL to redirect to when the visitor auth secret is invalid."
32455
+ "description": "URL to redirect to when the authenticated access secret is invalid."
32160
32456
  },
32161
32457
  "integration": {
32162
32458
  "type": "string",
32163
- "description": "Name of the Visitor Authentication integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
32459
+ "description": "Name of the authenticated access integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
32164
32460
  }
32165
32461
  },
32166
32462
  "required": [
@@ -36197,7 +36493,7 @@
36197
36493
  },
36198
36494
  "contextId": {
36199
36495
  "type": "string",
36200
- "description": "Context returned only for a visitor authentication session to track changes in the visitor session context that affect content rendering (used for cache invalidation)."
36496
+ "description": "Context returned only for a authenticated access session to track changes in the visitor session context that affect content rendering (used for cache invalidation)."
36201
36497
  },
36202
36498
  "canonicalUrl": {
36203
36499
  "type": "string",
@@ -36252,7 +36548,7 @@
36252
36548
  "properties": {
36253
36549
  "jwtToken": {
36254
36550
  "type": "string",
36255
- "description": "JWT token generated for a visitor auth session."
36551
+ "description": "JWT token generated for a authenticated access session."
36256
36552
  },
36257
36553
  "unsignedClaims": {
36258
36554
  "$ref": "#/components/schemas/PlainObject"
@@ -36418,24 +36714,6 @@
36418
36714
  }
36419
36715
  }
36420
36716
  },
36421
- "TriggerContentIndexingContext": {
36422
- "type": "object",
36423
- "description": "The context to send when triggering a content indexing.",
36424
- "properties": {
36425
- "spaceId": {
36426
- "type": "string",
36427
- "description": "The unique identifier of the Space to index."
36428
- },
36429
- "force": {
36430
- "type": "boolean",
36431
- "description": "Whether to force a complete re-indexing of the Space."
36432
- }
36433
- },
36434
- "required": [
36435
- "spaceId",
36436
- "force"
36437
- ]
36438
- },
36439
36717
  "GitBookUsers": {
36440
36718
  "type": "string",
36441
36719
  "description": "Predefined GitBook user identifiers",
@@ -36443,36 +36721,6 @@
36443
36721
  "gitbook:agent"
36444
36722
  ]
36445
36723
  },
36446
- "ContentPublishingAuth": {
36447
- "type": "object",
36448
- "properties": {
36449
- "object": {
36450
- "type": "string",
36451
- "description": "Type of Object, always equals to \"publishing-auth\"",
36452
- "enum": [
36453
- "publishing-auth"
36454
- ]
36455
- },
36456
- "id": {
36457
- "type": "string",
36458
- "description": "Unique identifier for the content."
36459
- },
36460
- "privateKey": {
36461
- "type": "string",
36462
- "description": "Private key used to sign JWT tokens."
36463
- },
36464
- "fallbackURL": {
36465
- "type": "string",
36466
- "format": "uri",
36467
- "description": "URL to redirect to when the visitor auth secret is invalid."
36468
- }
36469
- },
36470
- "required": [
36471
- "object",
36472
- "id",
36473
- "privateKey"
36474
- ]
36475
- },
36476
36724
  "ComputedContentSource": {
36477
36725
  "oneOf": [
36478
36726
  {
@@ -36814,22 +37062,6 @@
36814
37062
  "updatedAt"
36815
37063
  ]
36816
37064
  },
36817
- "OrganizationTransferResponse": {
36818
- "type": "object",
36819
- "required": [
36820
- "collection"
36821
- ],
36822
- "properties": {
36823
- "collection": {
36824
- "type": "string",
36825
- "description": "The unique id of the collection created in the target organization containing the content of the source organization."
36826
- },
36827
- "newSourceHostname": {
36828
- "type": "string",
36829
- "description": "The new hostname if the source organization needed to change hostname."
36830
- }
36831
- }
36832
- },
36833
37065
  "IntegrationEnvironmentSpaceInstallation": {
36834
37066
  "allOf": [
36835
37067
  {
@@ -38804,230 +39036,6 @@
38804
39036
  "propertyName": "channel"
38805
39037
  }
38806
39038
  },
38807
- "VariableName": {
38808
- "type": "string",
38809
- "pattern": "^[a-z_\\-0-9]+$",
38810
- "minLength": 1,
38811
- "maxLength": 50
38812
- },
38813
- "CustomizationSettings": {
38814
- "type": "object",
38815
- "properties": {
38816
- "inherit": {
38817
- "type": "boolean",
38818
- "description": "Inherit customization settings from the parent collection."
38819
- },
38820
- "title": {
38821
- "type": "string",
38822
- "description": "Title to use for the published content. If not defined, it'll fallback to the content title."
38823
- },
38824
- "styling": {
38825
- "type": "object",
38826
- "properties": {
38827
- "primaryColor": {
38828
- "$ref": "#/components/schemas/CustomizationThemedColor"
38829
- },
38830
- "corners": {
38831
- "$ref": "#/components/schemas/CustomizationCorners"
38832
- },
38833
- "font": {
38834
- "$ref": "#/components/schemas/CustomizationDefaultFont"
38835
- },
38836
- "background": {
38837
- "$ref": "#/components/schemas/CustomizationBackground"
38838
- }
38839
- },
38840
- "required": [
38841
- "primaryColor",
38842
- "corners",
38843
- "font"
38844
- ]
38845
- },
38846
- "internationalization": {
38847
- "type": "object",
38848
- "properties": {
38849
- "locale": {
38850
- "$ref": "#/components/schemas/CustomizationLocale"
38851
- }
38852
- },
38853
- "required": [
38854
- "locale"
38855
- ]
38856
- },
38857
- "favicon": {
38858
- "$ref": "#/components/schemas/CustomizationFavicon"
38859
- },
38860
- "header": {
38861
- "type": "object",
38862
- "properties": {
38863
- "preset": {
38864
- "$ref": "#/components/schemas/CustomizationHeaderPreset"
38865
- },
38866
- "logo": {
38867
- "$ref": "#/components/schemas/CustomizationThemedURL"
38868
- },
38869
- "backgroundColor": {
38870
- "$ref": "#/components/schemas/CustomizationThemedColor"
38871
- },
38872
- "linkColor": {
38873
- "$ref": "#/components/schemas/CustomizationThemedColor"
38874
- },
38875
- "links": {
38876
- "type": "array",
38877
- "items": {
38878
- "$ref": "#/components/schemas/CustomizationHeaderItem"
38879
- }
38880
- }
38881
- },
38882
- "required": [
38883
- "preset",
38884
- "links"
38885
- ]
38886
- },
38887
- "footer": {
38888
- "type": "object",
38889
- "properties": {
38890
- "logo": {
38891
- "$ref": "#/components/schemas/CustomizationThemedURL"
38892
- },
38893
- "groups": {
38894
- "type": "array",
38895
- "items": {
38896
- "$ref": "#/components/schemas/CustomizationFooterGroup"
38897
- }
38898
- },
38899
- "copyright": {
38900
- "type": "string",
38901
- "maxLength": 300
38902
- }
38903
- },
38904
- "required": [
38905
- "groups"
38906
- ]
38907
- },
38908
- "themes": {
38909
- "type": "object",
38910
- "properties": {
38911
- "default": {
38912
- "$ref": "#/components/schemas/CustomizationThemeMode"
38913
- },
38914
- "toggeable": {
38915
- "description": "Should the reader be able to switch between dark and light mode",
38916
- "type": "boolean"
38917
- }
38918
- },
38919
- "required": [
38920
- "default",
38921
- "toggeable"
38922
- ]
38923
- },
38924
- "pdf": {
38925
- "type": "object",
38926
- "properties": {
38927
- "enabled": {
38928
- "type": "boolean",
38929
- "description": "If true, PDF export is enabled for the published content."
38930
- }
38931
- },
38932
- "required": [
38933
- "enabled"
38934
- ]
38935
- },
38936
- "feedback": {
38937
- "type": "object",
38938
- "properties": {
38939
- "enabled": {
38940
- "type": "boolean",
38941
- "description": "If true, feedback gathering is enabled"
38942
- }
38943
- },
38944
- "required": [
38945
- "enabled"
38946
- ]
38947
- },
38948
- "aiSearch": {
38949
- "type": "object",
38950
- "properties": {
38951
- "enabled": {
38952
- "type": "boolean",
38953
- "description": "If true, AI search is enabled"
38954
- }
38955
- },
38956
- "required": [
38957
- "enabled"
38958
- ]
38959
- },
38960
- "git": {
38961
- "type": "object",
38962
- "properties": {
38963
- "showEditLink": {
38964
- "type": "boolean",
38965
- "description": "Whether the public content should show a link to edit the content on the git provider set up in the GitSync"
38966
- }
38967
- },
38968
- "required": [
38969
- "showEditLink"
38970
- ]
38971
- },
38972
- "pagination": {
38973
- "type": "object",
38974
- "properties": {
38975
- "enabled": {
38976
- "type": "boolean",
38977
- "description": "Whether the pagination navigation should be displayed on pages."
38978
- }
38979
- },
38980
- "required": [
38981
- "enabled"
38982
- ]
38983
- },
38984
- "trademark": {
38985
- "type": "object",
38986
- "properties": {
38987
- "enabled": {
38988
- "type": "boolean",
38989
- "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible"
38990
- }
38991
- },
38992
- "required": [
38993
- "enabled"
38994
- ]
38995
- },
38996
- "privacyPolicy": {
38997
- "type": "object",
38998
- "properties": {
38999
- "url": {
39000
- "$ref": "#/components/schemas/URL"
39001
- }
39002
- }
39003
- },
39004
- "socialPreview": {
39005
- "type": "object",
39006
- "properties": {
39007
- "url": {
39008
- "$ref": "#/components/schemas/URL"
39009
- }
39010
- }
39011
- }
39012
- },
39013
- "required": [
39014
- "inherit",
39015
- "styling",
39016
- "internationalization",
39017
- "favicon",
39018
- "header",
39019
- "footer",
39020
- "themes",
39021
- "pdf",
39022
- "feedback",
39023
- "aiSearch",
39024
- "trademark",
39025
- "pagination",
39026
- "git",
39027
- "privacyPolicy",
39028
- "socialPreview"
39029
- ]
39030
- },
39031
39039
  "SiteAdsStatus": {
39032
39040
  "type": "string",
39033
39041
  "description": "The status of ads on the site",