@gitbook/api 0.12.0 → 0.14.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/index.js CHANGED
@@ -212,6 +212,49 @@ var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
212
212
  CustomFieldType2["SelectSingle"] = "select:single";
213
213
  return CustomFieldType2;
214
214
  })(CustomFieldType || {});
215
+ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
216
+ CustomizationLocale2["En"] = "en";
217
+ CustomizationLocale2["Fr"] = "fr";
218
+ CustomizationLocale2["Es"] = "es";
219
+ CustomizationLocale2["Zh"] = "zh";
220
+ CustomizationLocale2["Ja"] = "ja";
221
+ return CustomizationLocale2;
222
+ })(CustomizationLocale || {});
223
+ var CustomizationFont = /* @__PURE__ */ ((CustomizationFont2) => {
224
+ CustomizationFont2["Inter"] = "Inter";
225
+ CustomizationFont2["Roboto"] = "Roboto";
226
+ CustomizationFont2["RobotoSlab"] = "RobotoSlab";
227
+ CustomizationFont2["OpenSans"] = "OpenSans";
228
+ CustomizationFont2["SourceSansPro"] = "SourceSansPro";
229
+ CustomizationFont2["Lato"] = "Lato";
230
+ CustomizationFont2["Ubuntu"] = "Ubuntu";
231
+ CustomizationFont2["Raleway"] = "Raleway";
232
+ CustomizationFont2["Merriweather"] = "Merriweather";
233
+ CustomizationFont2["Overpass"] = "Overpass";
234
+ CustomizationFont2["NotoSans"] = "NotoSans";
235
+ CustomizationFont2["IBMPlexSerif"] = "IBMPlexSerif";
236
+ CustomizationFont2["Poppins"] = "Poppins";
237
+ CustomizationFont2["FiraSans"] = "FiraSans";
238
+ return CustomizationFont2;
239
+ })(CustomizationFont || {});
240
+ var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
241
+ CustomizationHeaderPreset2["Default"] = "default";
242
+ CustomizationHeaderPreset2["Bold"] = "bold";
243
+ CustomizationHeaderPreset2["Contrast"] = "contrast";
244
+ CustomizationHeaderPreset2["Custom"] = "custom";
245
+ CustomizationHeaderPreset2["None"] = "none";
246
+ return CustomizationHeaderPreset2;
247
+ })(CustomizationHeaderPreset || {});
248
+ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
249
+ CustomizationThemeMode2["Light"] = "light";
250
+ CustomizationThemeMode2["Dark"] = "dark";
251
+ return CustomizationThemeMode2;
252
+ })(CustomizationThemeMode || {});
253
+ var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
254
+ CustomizationCorners2["Straight"] = "straight";
255
+ CustomizationCorners2["Rounded"] = "rounded";
256
+ return CustomizationCorners2;
257
+ })(CustomizationCorners || {});
215
258
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
216
259
  ContentType2["Json"] = "application/json";
217
260
  ContentType2["FormData"] = "multipart/form-data";
@@ -908,6 +951,22 @@ var Api = class extends HttpClient {
908
951
  format: "json",
909
952
  ...params
910
953
  }),
954
+ getSpacePublishingCustomizationById: (spaceId, params = {}) => this.request({
955
+ path: `/spaces/${spaceId}/publishing/customization`,
956
+ method: "GET",
957
+ secure: true,
958
+ format: "json",
959
+ ...params
960
+ }),
961
+ updateSpacePublishingCustomizationById: (spaceId, data, params = {}) => this.request({
962
+ path: `/spaces/${spaceId}/publishing/customization`,
963
+ method: "PUT",
964
+ body: data,
965
+ secure: true,
966
+ type: "application/json" /* Json */,
967
+ format: "json",
968
+ ...params
969
+ }),
911
970
  getSpacePublishingAuthById: (spaceId, params = {}) => this.request({
912
971
  path: `/spaces/${spaceId}/publishing/auth`,
913
972
  method: "GET",
@@ -997,6 +1056,22 @@ var Api = class extends HttpClient {
997
1056
  type: "application/json" /* Json */,
998
1057
  format: "json",
999
1058
  ...params
1059
+ }),
1060
+ getCollectionPublishingCustomizationById: (collectionId, params = {}) => this.request({
1061
+ path: `/collections/${collectionId}/publishing/customization`,
1062
+ method: "GET",
1063
+ secure: true,
1064
+ format: "json",
1065
+ ...params
1066
+ }),
1067
+ updateCollectionPublishingCustomizationById: (collectionId, data, params = {}) => this.request({
1068
+ path: `/collections/${collectionId}/publishing/customization`,
1069
+ method: "PUT",
1070
+ body: data,
1071
+ secure: true,
1072
+ type: "application/json" /* Json */,
1073
+ format: "json",
1074
+ ...params
1000
1075
  })
1001
1076
  };
1002
1077
  this.integrations = {
@@ -1422,6 +1497,15 @@ var Api = class extends HttpClient {
1422
1497
  format: "json",
1423
1498
  ...params
1424
1499
  }),
1500
+ createCollection: (organizationId, data, params = {}) => this.request({
1501
+ path: `/orgs/${organizationId}/collections`,
1502
+ method: "POST",
1503
+ body: data,
1504
+ secure: true,
1505
+ type: "application/json" /* Json */,
1506
+ format: "json",
1507
+ ...params
1508
+ }),
1425
1509
  setupDirectorySync: (organizationId, params = {}) => this.request({
1426
1510
  path: `/orgs/${organizationId}/dsync`,
1427
1511
  method: "POST",
@@ -1724,6 +1808,11 @@ export {
1724
1808
  ContentType,
1725
1809
  ContentVisibility,
1726
1810
  CustomFieldType,
1811
+ CustomizationCorners,
1812
+ CustomizationFont,
1813
+ CustomizationHeaderPreset,
1814
+ CustomizationLocale,
1815
+ CustomizationThemeMode,
1727
1816
  GITBOOK_DEFAULT_ENDPOINT,
1728
1817
  GitBookAPI,
1729
1818
  GitSyncOperationState,
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.12.0",
7
+ "version": "0.14.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",