@gitbook/api 0.37.0 → 0.38.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/dist/client.d.ts CHANGED
@@ -1998,6 +1998,7 @@ export interface SyncedBlock {
1998
1998
  /** URL of the synced block in the API */
1999
1999
  location: URL;
2000
2000
  };
2001
+ document: JSONDocument;
2001
2002
  files?: RevisionFile[];
2002
2003
  }
2003
2004
  /** Content audit relation */
@@ -3144,6 +3145,10 @@ export interface BillingPortal {
3144
3145
  }
3145
3146
  /** Name of the product */
3146
3147
  export declare enum BillingProduct {
3148
+ Free2024 = "free_2024",
3149
+ Plus2024 = "plus_2024",
3150
+ Pro2024 = "pro_2024",
3151
+ Enterprise2024 = "enterprise_2024",
3147
3152
  Free = "free",
3148
3153
  Plus = "plus",
3149
3154
  Pro = "pro",
@@ -4225,7 +4230,7 @@ export interface Site {
4225
4230
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
4226
4231
  hostname?: SiteHostname;
4227
4232
  /** Basename for the site. For e.g. api */
4228
- basename: SiteBasename;
4233
+ basename?: SiteBasename;
4229
4234
  /**
4230
4235
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
4231
4236
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
@@ -4329,6 +4334,90 @@ export interface SiteCustomizationSettings {
4329
4334
  url?: URL;
4330
4335
  };
4331
4336
  }
4337
+ export interface SiteSpaceCustomizationOverrides {
4338
+ styling?: {
4339
+ /** The primary color used for links and UI text. Set to null to reset the override. */
4340
+ primaryColor?: CustomizationThemedColor | null;
4341
+ /** The style of the corners to use. Set to null to reset the override. */
4342
+ corners?: CustomizationCorners | null;
4343
+ /** The font family to use for the content. Set to null to reset the override. */
4344
+ font?: CustomizationFont | null;
4345
+ /** The style of background to use. Set to null to reset the override. */
4346
+ background?: CustomizationBackground | null;
4347
+ };
4348
+ internationalization?: {
4349
+ /** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
4350
+ locale: CustomizationLocale | null;
4351
+ };
4352
+ /** The favicon to use. Set to null to reset the override. */
4353
+ favicon?: {
4354
+ icon: CustomizationThemedURL;
4355
+ } | {
4356
+ /** Unicode codepoint or character of the emoji */
4357
+ emoji: Emoji;
4358
+ } | object | null;
4359
+ header?: {
4360
+ /** The theme preset to use. Set to null to reset the override. */
4361
+ preset?: CustomizationHeaderPreset | null;
4362
+ /** The header logo to use. Set to null to reset the override. */
4363
+ logo?: CustomizationThemedURL | null;
4364
+ /** The background color used in the header. Set to null to reset the override. */
4365
+ backgroundColor?: CustomizationThemedColor | null;
4366
+ /** The color used by the links in the header. Set to null to reset the override. */
4367
+ linkColor?: CustomizationThemedColor | null;
4368
+ /** The links that are displayed in the header. Set to null to reset the override. */
4369
+ links?: CustomizationHeaderLink[] | null;
4370
+ };
4371
+ footer?: {
4372
+ /** The logo displayed in the footer. Set to null to reset the override. */
4373
+ logo?: CustomizationThemedURL | null;
4374
+ /** The links groups that are displayed in the footer. Set to null to reset the override. */
4375
+ groups?: CustomizationFooterGroup[] | null;
4376
+ /**
4377
+ * The copyright text that is displayed in the footer. Set to null to reset the override.
4378
+ * @maxLength 300
4379
+ */
4380
+ copyright?: string | null;
4381
+ };
4382
+ themes?: {
4383
+ /** The theme mode default value. Set to null to reset the override. */
4384
+ default?: CustomizationThemeMode | null;
4385
+ /** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
4386
+ toggeable?: boolean | null;
4387
+ };
4388
+ pdf?: {
4389
+ /** If true, PDF export is enabled for the published site. Set to null to reset the override. */
4390
+ enabled: boolean | null;
4391
+ };
4392
+ feedback?: {
4393
+ /** If true, feedback gathering is enabled. Set to null to reset the override. */
4394
+ enabled: boolean | null;
4395
+ };
4396
+ aiSearch?: {
4397
+ /** If true, AI search is enabled. Set to null to reset the override. */
4398
+ enabled: boolean | null;
4399
+ };
4400
+ git?: {
4401
+ /** 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. */
4402
+ showEditLink: boolean | null;
4403
+ };
4404
+ pagination?: {
4405
+ /** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
4406
+ enabled: boolean | null;
4407
+ };
4408
+ trademark?: {
4409
+ /** Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override. */
4410
+ enabled: boolean | null;
4411
+ };
4412
+ privacyPolicy?: {
4413
+ /** The custom link to the privacy policy. Set to null to reset the override. */
4414
+ url?: URL | null;
4415
+ };
4416
+ socialPreview?: {
4417
+ /** The URL for the social preview image. Set to null to reset the override. */
4418
+ url?: URL | null;
4419
+ };
4420
+ }
4332
4421
  /**
4333
4422
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
4334
4423
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
@@ -8544,6 +8633,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8544
8633
  message: string;
8545
8634
  };
8546
8635
  }>>;
8636
+ /**
8637
+ * No description
8638
+ *
8639
+ * @tags sites
8640
+ * @name OverrideSiteSpaceCustomizationById
8641
+ * @summary Override the customization configuration for a site space.
8642
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
8643
+ * @secure
8644
+ */
8645
+ overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data: SiteSpaceCustomizationOverrides, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8646
+ error: {
8647
+ /** @format int32 */
8648
+ code: 400;
8649
+ message: string;
8650
+ };
8651
+ }>>;
8547
8652
  /**
8548
8653
  * No description
8549
8654
  *
package/dist/index.cjs CHANGED
@@ -238,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
238
238
 
239
239
  // package.json
240
240
  var name = "@gitbook/api";
241
- var version = "0.37.0";
241
+ var version = "0.38.0";
242
242
 
243
243
  // src/client.ts
244
244
  var import_event_iterator = __toESM(require_node(), 1);
@@ -555,6 +555,10 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
555
555
  return BillingInterval2;
556
556
  })(BillingInterval || {});
557
557
  var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
558
+ BillingProduct2["Free2024"] = "free_2024";
559
+ BillingProduct2["Plus2024"] = "plus_2024";
560
+ BillingProduct2["Pro2024"] = "pro_2024";
561
+ BillingProduct2["Enterprise2024"] = "enterprise_2024";
558
562
  BillingProduct2["Free"] = "free";
559
563
  BillingProduct2["Plus"] = "plus";
560
564
  BillingProduct2["Pro"] = "pro";
@@ -2916,6 +2920,15 @@ var Api = class extends HttpClient {
2916
2920
  format: "json",
2917
2921
  ...params
2918
2922
  }),
2923
+ overrideSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2924
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
2925
+ method: "PATCH",
2926
+ body: data,
2927
+ secure: true,
2928
+ type: "application/json" /* Json */,
2929
+ format: "json",
2930
+ ...params
2931
+ }),
2919
2932
  listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
2920
2933
  path: `/orgs/${organizationId}/seats`,
2921
2934
  method: "GET",
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.37.0";
175
+ var version = "0.38.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -489,6 +489,10 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
489
489
  return BillingInterval2;
490
490
  })(BillingInterval || {});
491
491
  var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
492
+ BillingProduct2["Free2024"] = "free_2024";
493
+ BillingProduct2["Plus2024"] = "plus_2024";
494
+ BillingProduct2["Pro2024"] = "pro_2024";
495
+ BillingProduct2["Enterprise2024"] = "enterprise_2024";
492
496
  BillingProduct2["Free"] = "free";
493
497
  BillingProduct2["Plus"] = "plus";
494
498
  BillingProduct2["Pro"] = "pro";
@@ -2850,6 +2854,15 @@ var Api = class extends HttpClient {
2850
2854
  format: "json",
2851
2855
  ...params
2852
2856
  }),
2857
+ overrideSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2858
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
2859
+ method: "PATCH",
2860
+ body: data,
2861
+ secure: true,
2862
+ type: "application/json" /* Json */,
2863
+ format: "json",
2864
+ ...params
2865
+ }),
2853
2866
  listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
2854
2867
  path: `/orgs/${organizationId}/seats`,
2855
2868
  method: "GET",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.37.0",
7
+ "version": "0.38.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -7374,6 +7374,9 @@
7374
7374
  "location"
7375
7375
  ]
7376
7376
  },
7377
+ "document": {
7378
+ "$ref": "#/components/schemas/JSONDocument"
7379
+ },
7377
7380
  "files": {
7378
7381
  "type": "array",
7379
7382
  "items": {
@@ -7386,7 +7389,8 @@
7386
7389
  "organization",
7387
7390
  "source",
7388
7391
  "createdAt",
7389
- "urls"
7392
+ "urls",
7393
+ "document"
7390
7394
  ]
7391
7395
  },
7392
7396
  "ContentAuditRelation": {
@@ -10548,6 +10552,10 @@
10548
10552
  "type": "string",
10549
10553
  "description": "Name of the product",
10550
10554
  "enum": [
10555
+ "free_2024",
10556
+ "plus_2024",
10557
+ "pro_2024",
10558
+ "enterprise_2024",
10551
10559
  "free",
10552
10560
  "plus",
10553
10561
  "pro",
@@ -14677,7 +14685,6 @@
14677
14685
  "object",
14678
14686
  "id",
14679
14687
  "title",
14680
- "basename",
14681
14688
  "visibility",
14682
14689
  "createdAt",
14683
14690
  "siteSpaces",
@@ -14930,6 +14937,382 @@
14930
14937
  "socialPreview"
14931
14938
  ]
14932
14939
  },
14940
+ "SiteSpaceCustomizationOverrides": {
14941
+ "type": "object",
14942
+ "properties": {
14943
+ "styling": {
14944
+ "type": "object",
14945
+ "properties": {
14946
+ "primaryColor": {
14947
+ "description": "The primary color used for links and UI text. Set to null to reset the override.",
14948
+ "oneOf": [
14949
+ {
14950
+ "$ref": "#/components/schemas/CustomizationThemedColor"
14951
+ },
14952
+ {
14953
+ "type": "string",
14954
+ "nullable": true,
14955
+ "enum": [
14956
+ null
14957
+ ]
14958
+ }
14959
+ ]
14960
+ },
14961
+ "corners": {
14962
+ "description": "The style of the corners to use. Set to null to reset the override.",
14963
+ "oneOf": [
14964
+ {
14965
+ "$ref": "#/components/schemas/CustomizationCorners"
14966
+ },
14967
+ {
14968
+ "type": "string",
14969
+ "nullable": true,
14970
+ "enum": [
14971
+ null
14972
+ ]
14973
+ }
14974
+ ]
14975
+ },
14976
+ "font": {
14977
+ "description": "The font family to use for the content. Set to null to reset the override.",
14978
+ "oneOf": [
14979
+ {
14980
+ "$ref": "#/components/schemas/CustomizationFont"
14981
+ },
14982
+ {
14983
+ "type": "string",
14984
+ "nullable": true,
14985
+ "enum": [
14986
+ null
14987
+ ]
14988
+ }
14989
+ ]
14990
+ },
14991
+ "background": {
14992
+ "description": "The style of background to use. Set to null to reset the override.",
14993
+ "oneOf": [
14994
+ {
14995
+ "$ref": "#/components/schemas/CustomizationBackground"
14996
+ },
14997
+ {
14998
+ "type": "string",
14999
+ "nullable": true,
15000
+ "enum": [
15001
+ null
15002
+ ]
15003
+ }
15004
+ ]
15005
+ }
15006
+ }
15007
+ },
15008
+ "internationalization": {
15009
+ "type": "object",
15010
+ "properties": {
15011
+ "locale": {
15012
+ "description": "The locale to use for the non-custom elements of the UI. Set to null to reset the override.",
15013
+ "oneOf": [
15014
+ {
15015
+ "$ref": "#/components/schemas/CustomizationLocale"
15016
+ },
15017
+ {
15018
+ "type": "string",
15019
+ "nullable": true,
15020
+ "enum": [
15021
+ null
15022
+ ]
15023
+ }
15024
+ ]
15025
+ }
15026
+ },
15027
+ "required": [
15028
+ "locale"
15029
+ ]
15030
+ },
15031
+ "favicon": {
15032
+ "description": "The favicon to use. Set to null to reset the override.",
15033
+ "oneOf": [
15034
+ {
15035
+ "type": "object",
15036
+ "properties": {
15037
+ "icon": {
15038
+ "$ref": "#/components/schemas/CustomizationThemedURL"
15039
+ }
15040
+ },
15041
+ "required": [
15042
+ "icon"
15043
+ ]
15044
+ },
15045
+ {
15046
+ "type": "object",
15047
+ "properties": {
15048
+ "emoji": {
15049
+ "$ref": "#/components/schemas/Emoji"
15050
+ }
15051
+ },
15052
+ "required": [
15053
+ "emoji"
15054
+ ]
15055
+ },
15056
+ {
15057
+ "type": "object",
15058
+ "nullable": true,
15059
+ "properties": {},
15060
+ "additionalProperties": false
15061
+ }
15062
+ ]
15063
+ },
15064
+ "header": {
15065
+ "type": "object",
15066
+ "properties": {
15067
+ "preset": {
15068
+ "description": "The theme preset to use. Set to null to reset the override.",
15069
+ "oneOf": [
15070
+ {
15071
+ "$ref": "#/components/schemas/CustomizationHeaderPreset"
15072
+ },
15073
+ {
15074
+ "type": "string",
15075
+ "nullable": true,
15076
+ "enum": [
15077
+ null
15078
+ ]
15079
+ }
15080
+ ]
15081
+ },
15082
+ "logo": {
15083
+ "description": "The header logo to use. Set to null to reset the override.",
15084
+ "oneOf": [
15085
+ {
15086
+ "$ref": "#/components/schemas/CustomizationThemedURL"
15087
+ },
15088
+ {
15089
+ "type": "string",
15090
+ "nullable": true,
15091
+ "enum": [
15092
+ null
15093
+ ]
15094
+ }
15095
+ ]
15096
+ },
15097
+ "backgroundColor": {
15098
+ "description": "The background color used in the header. Set to null to reset the override.",
15099
+ "oneOf": [
15100
+ {
15101
+ "$ref": "#/components/schemas/CustomizationThemedColor"
15102
+ },
15103
+ {
15104
+ "type": "string",
15105
+ "nullable": true,
15106
+ "enum": [
15107
+ null
15108
+ ]
15109
+ }
15110
+ ]
15111
+ },
15112
+ "linkColor": {
15113
+ "description": "The color used by the links in the header. Set to null to reset the override.",
15114
+ "oneOf": [
15115
+ {
15116
+ "$ref": "#/components/schemas/CustomizationThemedColor"
15117
+ },
15118
+ {
15119
+ "type": "string",
15120
+ "nullable": true,
15121
+ "enum": [
15122
+ null
15123
+ ]
15124
+ }
15125
+ ]
15126
+ },
15127
+ "links": {
15128
+ "type": "array",
15129
+ "description": "The links that are displayed in the header. Set to null to reset the override.",
15130
+ "nullable": true,
15131
+ "items": {
15132
+ "$ref": "#/components/schemas/CustomizationHeaderLink"
15133
+ }
15134
+ }
15135
+ }
15136
+ },
15137
+ "footer": {
15138
+ "type": "object",
15139
+ "properties": {
15140
+ "logo": {
15141
+ "description": "The logo displayed in the footer. Set to null to reset the override.",
15142
+ "oneOf": [
15143
+ {
15144
+ "$ref": "#/components/schemas/CustomizationThemedURL"
15145
+ },
15146
+ {
15147
+ "type": "string",
15148
+ "nullable": true,
15149
+ "enum": [
15150
+ null
15151
+ ]
15152
+ }
15153
+ ]
15154
+ },
15155
+ "groups": {
15156
+ "type": "array",
15157
+ "description": "The links groups that are displayed in the footer. Set to null to reset the override.",
15158
+ "nullable": true,
15159
+ "items": {
15160
+ "$ref": "#/components/schemas/CustomizationFooterGroup"
15161
+ }
15162
+ },
15163
+ "copyright": {
15164
+ "type": "string",
15165
+ "description": "The copyright text that is displayed in the footer. Set to null to reset the override.",
15166
+ "nullable": true,
15167
+ "maxLength": 300
15168
+ }
15169
+ }
15170
+ },
15171
+ "themes": {
15172
+ "type": "object",
15173
+ "properties": {
15174
+ "default": {
15175
+ "description": "The theme mode default value. Set to null to reset the override.",
15176
+ "oneOf": [
15177
+ {
15178
+ "$ref": "#/components/schemas/CustomizationThemeMode"
15179
+ },
15180
+ {
15181
+ "type": "string",
15182
+ "nullable": true,
15183
+ "enum": [
15184
+ null
15185
+ ]
15186
+ }
15187
+ ]
15188
+ },
15189
+ "toggeable": {
15190
+ "description": "Should the reader be able to switch between dark and light mode. Set to null to reset the override.",
15191
+ "type": "boolean",
15192
+ "nullable": true
15193
+ }
15194
+ }
15195
+ },
15196
+ "pdf": {
15197
+ "type": "object",
15198
+ "properties": {
15199
+ "enabled": {
15200
+ "type": "boolean",
15201
+ "description": "If true, PDF export is enabled for the published site. Set to null to reset the override.",
15202
+ "nullable": true
15203
+ }
15204
+ },
15205
+ "required": [
15206
+ "enabled"
15207
+ ]
15208
+ },
15209
+ "feedback": {
15210
+ "type": "object",
15211
+ "properties": {
15212
+ "enabled": {
15213
+ "type": "boolean",
15214
+ "description": "If true, feedback gathering is enabled. Set to null to reset the override.",
15215
+ "nullable": true
15216
+ }
15217
+ },
15218
+ "required": [
15219
+ "enabled"
15220
+ ]
15221
+ },
15222
+ "aiSearch": {
15223
+ "type": "object",
15224
+ "properties": {
15225
+ "enabled": {
15226
+ "type": "boolean",
15227
+ "description": "If true, AI search is enabled. Set to null to reset the override.",
15228
+ "nullable": true
15229
+ }
15230
+ },
15231
+ "required": [
15232
+ "enabled"
15233
+ ]
15234
+ },
15235
+ "git": {
15236
+ "type": "object",
15237
+ "properties": {
15238
+ "showEditLink": {
15239
+ "type": "boolean",
15240
+ "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.",
15241
+ "nullable": true
15242
+ }
15243
+ },
15244
+ "required": [
15245
+ "showEditLink"
15246
+ ]
15247
+ },
15248
+ "pagination": {
15249
+ "type": "object",
15250
+ "properties": {
15251
+ "enabled": {
15252
+ "type": "boolean",
15253
+ "description": "Whether the pagination navigation should be displayed on pages. Set to null to reset the override.",
15254
+ "nullable": true
15255
+ }
15256
+ },
15257
+ "required": [
15258
+ "enabled"
15259
+ ]
15260
+ },
15261
+ "trademark": {
15262
+ "type": "object",
15263
+ "properties": {
15264
+ "enabled": {
15265
+ "type": "boolean",
15266
+ "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible. Set to null to reset the override.",
15267
+ "nullable": true
15268
+ }
15269
+ },
15270
+ "required": [
15271
+ "enabled"
15272
+ ]
15273
+ },
15274
+ "privacyPolicy": {
15275
+ "type": "object",
15276
+ "properties": {
15277
+ "url": {
15278
+ "description": "The custom link to the privacy policy. Set to null to reset the override.",
15279
+ "oneOf": [
15280
+ {
15281
+ "$ref": "#/components/schemas/URL"
15282
+ },
15283
+ {
15284
+ "type": "string",
15285
+ "nullable": true,
15286
+ "enum": [
15287
+ null
15288
+ ]
15289
+ }
15290
+ ]
15291
+ }
15292
+ }
15293
+ },
15294
+ "socialPreview": {
15295
+ "type": "object",
15296
+ "properties": {
15297
+ "url": {
15298
+ "description": "The URL for the social preview image. Set to null to reset the override.",
15299
+ "oneOf": [
15300
+ {
15301
+ "$ref": "#/components/schemas/URL"
15302
+ },
15303
+ {
15304
+ "type": "string",
15305
+ "nullable": true,
15306
+ "enum": [
15307
+ null
15308
+ ]
15309
+ }
15310
+ ]
15311
+ }
15312
+ }
15313
+ }
15314
+ }
15315
+ },
14933
15316
  "SiteVisibility": {
14934
15317
  "type": "string",
14935
15318
  "description": "* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n* `unpublished`: The site is not accessible to anyone.\n",
@@ -27684,6 +28067,58 @@
27684
28067
  "$ref": "#/components/responses/UnexpectedError"
27685
28068
  }
27686
28069
  }
28070
+ },
28071
+ "patch": {
28072
+ "operationId": "overrideSiteSpaceCustomizationById",
28073
+ "summary": "Override the customization configuration for a site space.",
28074
+ "tags": [
28075
+ "sites"
28076
+ ],
28077
+ "security": [
28078
+ {
28079
+ "user": []
28080
+ }
28081
+ ],
28082
+ "parameters": [
28083
+ {
28084
+ "$ref": "#/components/parameters/organizationId"
28085
+ },
28086
+ {
28087
+ "$ref": "#/components/parameters/siteId"
28088
+ },
28089
+ {
28090
+ "$ref": "#/components/parameters/siteSpaceId"
28091
+ }
28092
+ ],
28093
+ "requestBody": {
28094
+ "required": true,
28095
+ "content": {
28096
+ "application/json": {
28097
+ "schema": {
28098
+ "description": "The settings that overrides the site customization settings.",
28099
+ "$ref": "#/components/schemas/SiteSpaceCustomizationOverrides"
28100
+ }
28101
+ }
28102
+ }
28103
+ },
28104
+ "responses": {
28105
+ "200": {
28106
+ "description": "OK",
28107
+ "content": {
28108
+ "application/json": {
28109
+ "schema": {
28110
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
28111
+ }
28112
+ }
28113
+ }
28114
+ },
28115
+ "400": {
28116
+ "$ref": "#/components/responses/BadRequestError"
28117
+ },
28118
+ "default": {
28119
+ "$ref": "#/components/responses/UnexpectedError"
28120
+ }
28121
+ }
27687
28122
  }
27688
28123
  },
27689
28124
  "/orgs/{organizationId}/seats": {
package/spec/openapi.yaml CHANGED
@@ -4872,6 +4872,8 @@ components:
4872
4872
  $ref: "#/components/schemas/URL"
4873
4873
  required:
4874
4874
  - location
4875
+ document:
4876
+ $ref: "#/components/schemas/JSONDocument"
4875
4877
  files:
4876
4878
  type: array
4877
4879
  items:
@@ -4882,6 +4884,7 @@ components:
4882
4884
  - source
4883
4885
  - createdAt
4884
4886
  - urls
4887
+ - document
4885
4888
  ContentAuditRelation:
4886
4889
  type: object
4887
4890
  description: Content audit relation
@@ -7031,6 +7034,10 @@ components:
7031
7034
  type: string
7032
7035
  description: Name of the product
7033
7036
  enum:
7037
+ - free_2024
7038
+ - plus_2024
7039
+ - pro_2024
7040
+ - enterprise_2024
7034
7041
  - free
7035
7042
  - plus
7036
7043
  - pro
@@ -9706,7 +9713,6 @@ components:
9706
9713
  - object
9707
9714
  - id
9708
9715
  - title
9709
- - basename
9710
9716
  - visibility
9711
9717
  - createdAt
9712
9718
  - siteSpaces
@@ -9877,6 +9883,230 @@ components:
9877
9883
  - git
9878
9884
  - privacyPolicy
9879
9885
  - socialPreview
9886
+ SiteSpaceCustomizationOverrides:
9887
+ type: object
9888
+ properties:
9889
+ styling:
9890
+ type: object
9891
+ properties:
9892
+ primaryColor:
9893
+ description: The primary color used for links and UI text. Set to null to reset the override.
9894
+ oneOf:
9895
+ - $ref: "#/components/schemas/CustomizationThemedColor"
9896
+ - type: string
9897
+ nullable: true
9898
+ enum:
9899
+ - null
9900
+ corners:
9901
+ description: The style of the corners to use. Set to null to reset the override.
9902
+ oneOf:
9903
+ - $ref: "#/components/schemas/CustomizationCorners"
9904
+ - type: string
9905
+ nullable: true
9906
+ enum:
9907
+ - null
9908
+ font:
9909
+ description: The font family to use for the content. Set to null to reset the override.
9910
+ oneOf:
9911
+ - $ref: "#/components/schemas/CustomizationFont"
9912
+ - type: string
9913
+ nullable: true
9914
+ enum:
9915
+ - null
9916
+ background:
9917
+ description: The style of background to use. Set to null to reset the override.
9918
+ oneOf:
9919
+ - $ref: "#/components/schemas/CustomizationBackground"
9920
+ - type: string
9921
+ nullable: true
9922
+ enum:
9923
+ - null
9924
+ internationalization:
9925
+ type: object
9926
+ properties:
9927
+ locale:
9928
+ description: The locale to use for the non-custom elements of the UI. Set to null to reset the override.
9929
+ oneOf:
9930
+ - $ref: "#/components/schemas/CustomizationLocale"
9931
+ - type: string
9932
+ nullable: true
9933
+ enum:
9934
+ - null
9935
+ required:
9936
+ - locale
9937
+ favicon:
9938
+ description: The favicon to use. Set to null to reset the override.
9939
+ oneOf:
9940
+ - type: object
9941
+ properties:
9942
+ icon:
9943
+ $ref: "#/components/schemas/CustomizationThemedURL"
9944
+ required:
9945
+ - icon
9946
+ - type: object
9947
+ properties:
9948
+ emoji:
9949
+ $ref: "#/components/schemas/Emoji"
9950
+ required:
9951
+ - emoji
9952
+ - type: object
9953
+ nullable: true
9954
+ properties: {}
9955
+ additionalProperties: false
9956
+ header:
9957
+ type: object
9958
+ properties:
9959
+ preset:
9960
+ description: The theme preset to use. Set to null to reset the override.
9961
+ oneOf:
9962
+ - $ref: "#/components/schemas/CustomizationHeaderPreset"
9963
+ - type: string
9964
+ nullable: true
9965
+ enum:
9966
+ - null
9967
+ logo:
9968
+ description: The header logo to use. Set to null to reset the override.
9969
+ oneOf:
9970
+ - $ref: "#/components/schemas/CustomizationThemedURL"
9971
+ - type: string
9972
+ nullable: true
9973
+ enum:
9974
+ - null
9975
+ backgroundColor:
9976
+ description: The background color used in the header. Set to null to reset the override.
9977
+ oneOf:
9978
+ - $ref: "#/components/schemas/CustomizationThemedColor"
9979
+ - type: string
9980
+ nullable: true
9981
+ enum:
9982
+ - null
9983
+ linkColor:
9984
+ description: The color used by the links in the header. Set to null to reset the override.
9985
+ oneOf:
9986
+ - $ref: "#/components/schemas/CustomizationThemedColor"
9987
+ - type: string
9988
+ nullable: true
9989
+ enum:
9990
+ - null
9991
+ links:
9992
+ type: array
9993
+ description: The links that are displayed in the header. Set to null to reset the override.
9994
+ nullable: true
9995
+ items:
9996
+ $ref: "#/components/schemas/CustomizationHeaderLink"
9997
+ footer:
9998
+ type: object
9999
+ properties:
10000
+ logo:
10001
+ description: The logo displayed in the footer. Set to null to reset the override.
10002
+ oneOf:
10003
+ - $ref: "#/components/schemas/CustomizationThemedURL"
10004
+ - type: string
10005
+ nullable: true
10006
+ enum:
10007
+ - null
10008
+ groups:
10009
+ type: array
10010
+ description: The links groups that are displayed in the footer. Set to null to reset the override.
10011
+ nullable: true
10012
+ items:
10013
+ $ref: "#/components/schemas/CustomizationFooterGroup"
10014
+ copyright:
10015
+ type: string
10016
+ description: The copyright text that is displayed in the footer. Set to null to reset the override.
10017
+ nullable: true
10018
+ maxLength: 300
10019
+ themes:
10020
+ type: object
10021
+ properties:
10022
+ default:
10023
+ description: The theme mode default value. Set to null to reset the override.
10024
+ oneOf:
10025
+ - $ref: "#/components/schemas/CustomizationThemeMode"
10026
+ - type: string
10027
+ nullable: true
10028
+ enum:
10029
+ - null
10030
+ toggeable:
10031
+ description: Should the reader be able to switch between dark and light mode. Set to null to reset the override.
10032
+ type: boolean
10033
+ nullable: true
10034
+ pdf:
10035
+ type: object
10036
+ properties:
10037
+ enabled:
10038
+ type: boolean
10039
+ description: If true, PDF export is enabled for the published site. Set to null to reset the override.
10040
+ nullable: true
10041
+ required:
10042
+ - enabled
10043
+ feedback:
10044
+ type: object
10045
+ properties:
10046
+ enabled:
10047
+ type: boolean
10048
+ description: If true, feedback gathering is enabled. Set to null to reset the override.
10049
+ nullable: true
10050
+ required:
10051
+ - enabled
10052
+ aiSearch:
10053
+ type: object
10054
+ properties:
10055
+ enabled:
10056
+ type: boolean
10057
+ description: If true, AI search is enabled. Set to null to reset the override.
10058
+ nullable: true
10059
+ required:
10060
+ - enabled
10061
+ git:
10062
+ type: object
10063
+ properties:
10064
+ showEditLink:
10065
+ type: boolean
10066
+ 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.
10067
+ nullable: true
10068
+ required:
10069
+ - showEditLink
10070
+ pagination:
10071
+ type: object
10072
+ properties:
10073
+ enabled:
10074
+ type: boolean
10075
+ description: Whether the pagination navigation should be displayed on pages. Set to null to reset the override.
10076
+ nullable: true
10077
+ required:
10078
+ - enabled
10079
+ trademark:
10080
+ type: object
10081
+ properties:
10082
+ enabled:
10083
+ type: boolean
10084
+ description: Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override.
10085
+ nullable: true
10086
+ required:
10087
+ - enabled
10088
+ privacyPolicy:
10089
+ type: object
10090
+ properties:
10091
+ url:
10092
+ description: The custom link to the privacy policy. Set to null to reset the override.
10093
+ oneOf:
10094
+ - $ref: "#/components/schemas/URL"
10095
+ - type: string
10096
+ nullable: true
10097
+ enum:
10098
+ - null
10099
+ socialPreview:
10100
+ type: object
10101
+ properties:
10102
+ url:
10103
+ description: The URL for the social preview image. Set to null to reset the override.
10104
+ oneOf:
10105
+ - $ref: "#/components/schemas/URL"
10106
+ - type: string
10107
+ nullable: true
10108
+ enum:
10109
+ - null
9880
10110
  SiteVisibility:
9881
10111
  type: string
9882
10112
  description: |
@@ -17039,6 +17269,35 @@ paths:
17039
17269
  $ref: "#/components/responses/BadRequestError"
17040
17270
  default:
17041
17271
  $ref: "#/components/responses/UnexpectedError"
17272
+ patch:
17273
+ operationId: overrideSiteSpaceCustomizationById
17274
+ summary: Override the customization configuration for a site space.
17275
+ tags:
17276
+ - sites
17277
+ security:
17278
+ - user: []
17279
+ parameters:
17280
+ - $ref: "#/components/parameters/organizationId"
17281
+ - $ref: "#/components/parameters/siteId"
17282
+ - $ref: "#/components/parameters/siteSpaceId"
17283
+ requestBody:
17284
+ required: true
17285
+ content:
17286
+ application/json:
17287
+ schema:
17288
+ description: The settings that overrides the site customization settings.
17289
+ $ref: "#/components/schemas/SiteSpaceCustomizationOverrides"
17290
+ responses:
17291
+ "200":
17292
+ description: OK
17293
+ content:
17294
+ application/json:
17295
+ schema:
17296
+ $ref: "#/components/schemas/SiteCustomizationSettings"
17297
+ "400":
17298
+ $ref: "#/components/responses/BadRequestError"
17299
+ default:
17300
+ $ref: "#/components/responses/UnexpectedError"
17042
17301
  "/orgs/{organizationId}/seats":
17043
17302
  get:
17044
17303
  operationId: listSeatsInOrganizationById