@gitbook/api 0.12.0 → 0.13.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
@@ -15,6 +15,10 @@ export interface List {
15
15
  * @format uri
16
16
  */
17
17
  export declare type URL = string;
18
+ /**
19
+ * @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$
20
+ */
21
+ export declare type Color = string;
18
22
  /**
19
23
  * @format date
20
24
  */
@@ -978,6 +982,7 @@ export declare type RevisionPageGroup = RevisionPageBase & {
978
982
  export declare type RevisionPageLink = RevisionPageBase & {
979
983
  kind: 'link';
980
984
  type: 'link';
985
+ target: ContentRef;
981
986
  href?: string;
982
987
  };
983
988
  export interface RevisionFile {
@@ -1590,10 +1595,17 @@ export interface Collection {
1590
1595
  */
1591
1596
  visibility: ContentVisibility;
1592
1597
  publishingType?: 'variants';
1593
- /** ID of the primary space for this collection */
1594
- primarySpace?: string;
1598
+ /** ID of the organization owning this collection */
1599
+ organization: string;
1600
+ /** ID of the parent collection, if any */
1601
+ parent?: string;
1595
1602
  /** ID of the parent collection, if any */
1596
1603
  collection?: string;
1604
+ /** URLs associated with the object */
1605
+ urls: {
1606
+ location: string;
1607
+ app: string;
1608
+ };
1597
1609
  }
1598
1610
  export interface Integration {
1599
1611
  object: 'integration';
@@ -2320,6 +2332,30 @@ export interface UserImpersonationInfo {
2320
2332
  authURL: string;
2321
2333
  impersonatorId: string;
2322
2334
  }
2335
+ /**
2336
+ * All the permissions of a user
2337
+ */
2338
+ export interface UserPermissions {
2339
+ updatedAt: Date;
2340
+ searchKey: string;
2341
+ organizations: Record<string, {
2342
+ role: MemberRoleOrGuest;
2343
+ teams: Record<string, {
2344
+ role: TeamMemberRole;
2345
+ }>;
2346
+ disabled?: boolean;
2347
+ }>;
2348
+ collections: Record<string, {
2349
+ organization: string;
2350
+ level: MemberRoleOrGuest;
2351
+ collection?: string;
2352
+ }>;
2353
+ spaces: Record<string, {
2354
+ organization: string;
2355
+ level: MemberRoleOrGuest;
2356
+ collection?: string;
2357
+ }>;
2358
+ }
2323
2359
  /**
2324
2360
  * The GitBook User risk evaluation.
2325
2361
  */
@@ -2755,7 +2791,7 @@ export interface ContentKitURL {
2755
2791
  /**
2756
2792
  * Channel to subscribe to for API updates.
2757
2793
  */
2758
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
2794
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
2759
2795
  channel: 'space-comments';
2760
2796
  space: string;
2761
2797
  changeRequest?: string;
@@ -2788,6 +2824,10 @@ export interface SpacePublishingAuthChannel {
2788
2824
  channel: 'space-publishing-auth';
2789
2825
  space: string;
2790
2826
  }
2827
+ export interface SpacePublishingCustomizationChannel {
2828
+ channel: 'space-publishing-customization';
2829
+ space: string;
2830
+ }
2791
2831
  export interface SpaceEntitiesChannel {
2792
2832
  channel: 'space-entities';
2793
2833
  space: string;
@@ -2812,6 +2852,10 @@ export interface UserProfileChannel {
2812
2852
  channel: 'user-profile';
2813
2853
  user: string;
2814
2854
  }
2855
+ export interface CollectionPublishingCustomizationChannel {
2856
+ channel: 'collection-publishing-customization';
2857
+ collection: string;
2858
+ }
2815
2859
  export interface ChangeRequestReviewsChannel {
2816
2860
  channel: 'space-change-request-reviews';
2817
2861
  space: string;
@@ -2857,6 +2901,13 @@ export interface OrganizationSpacesChannel {
2857
2901
  channel: 'organization-spaces';
2858
2902
  organization: string;
2859
2903
  }
2904
+ /**
2905
+ * Subscription channel for changes in collections in an organization.
2906
+ */
2907
+ export interface OrganizationCollectionsChannel {
2908
+ channel: 'organization-collections';
2909
+ organization: string;
2910
+ }
2860
2911
  /**
2861
2912
  * Subscription channel for entities in an organization.
2862
2913
  */
@@ -2948,6 +2999,131 @@ export interface UpdateCustomFieldValues {
2948
2999
  }
2949
3000
  export declare type CustomFieldOptions = string[];
2950
3001
  export declare type CustomFieldPlaceholder = string;
3002
+ export interface CustomizationSettings {
3003
+ /** Inherit customization settings from the parent collection. */
3004
+ inherit: boolean;
3005
+ /** Title to use for the published content. If not defined, it'll fallback to the content title. */
3006
+ title?: string;
3007
+ styling: {
3008
+ primaryColor: CustomizationThemedColor;
3009
+ corners: CustomizationCorners;
3010
+ font: CustomizationFont;
3011
+ };
3012
+ internationalization: {
3013
+ locale: CustomizationLocale;
3014
+ inherit: boolean;
3015
+ };
3016
+ favicon: {
3017
+ icon: CustomizationThemedURL;
3018
+ } | {
3019
+ emoji: Emoji;
3020
+ } | object;
3021
+ header: {
3022
+ preset: CustomizationHeaderPreset;
3023
+ logo?: CustomizationThemedURL;
3024
+ backgroundColor?: CustomizationThemedColor;
3025
+ linkColor?: CustomizationThemedColor;
3026
+ links: CustomizationHeaderLink[];
3027
+ };
3028
+ footer: {
3029
+ logo?: CustomizationThemedURL;
3030
+ groups: CustomizationFooterGroup[];
3031
+ copyright?: string;
3032
+ };
3033
+ themes: {
3034
+ default: CustomizationThemeMode;
3035
+ toggeable: boolean;
3036
+ };
3037
+ pdf: {
3038
+ enabled: boolean;
3039
+ };
3040
+ feedback: {
3041
+ enabled: boolean;
3042
+ };
3043
+ aiSearch: {
3044
+ enabled: boolean;
3045
+ };
3046
+ git: {
3047
+ showEditLink: boolean;
3048
+ };
3049
+ pagination: {
3050
+ enabled: boolean;
3051
+ };
3052
+ trademark: {
3053
+ enabled: boolean;
3054
+ };
3055
+ privacyPolicy: {
3056
+ url?: URL;
3057
+ };
3058
+ socialPreview: {
3059
+ url?: URL;
3060
+ };
3061
+ }
3062
+ export declare type CustomizationCollectionSettings = CustomizationSettings & {
3063
+ collection: {
3064
+ defaultSpace?: string;
3065
+ };
3066
+ };
3067
+ /**
3068
+ * Language for the UI element
3069
+ */
3070
+ export declare enum CustomizationLocale {
3071
+ En = "en",
3072
+ Fr = "fr",
3073
+ Es = "es",
3074
+ Zh = "zh",
3075
+ Ja = "ja"
3076
+ }
3077
+ export declare enum CustomizationFont {
3078
+ Inter = "Inter",
3079
+ Roboto = "Roboto",
3080
+ RobotoSlab = "RobotoSlab",
3081
+ OpenSans = "OpenSans",
3082
+ SourceSansPro = "SourceSansPro",
3083
+ Lato = "Lato",
3084
+ Ubuntu = "Ubuntu",
3085
+ Raleway = "Raleway",
3086
+ Merriweather = "Merriweather",
3087
+ Overpass = "Overpass",
3088
+ NotoSans = "NotoSans",
3089
+ IBMPlexSerif = "IBMPlexSerif",
3090
+ Poppins = "Poppins",
3091
+ FiraSans = "FiraSans"
3092
+ }
3093
+ export declare enum CustomizationHeaderPreset {
3094
+ Default = "default",
3095
+ Bold = "bold",
3096
+ Contrast = "contrast",
3097
+ Custom = "custom",
3098
+ None = "none"
3099
+ }
3100
+ export declare enum CustomizationThemeMode {
3101
+ Light = "light",
3102
+ Dark = "dark"
3103
+ }
3104
+ export declare type CustomizationHeaderLink = CustomizationContentLink & {
3105
+ links?: CustomizationContentLink[];
3106
+ };
3107
+ export interface CustomizationContentLink {
3108
+ title: string;
3109
+ to: ContentRef;
3110
+ }
3111
+ export interface CustomizationFooterGroup {
3112
+ title: string;
3113
+ links: CustomizationContentLink[];
3114
+ }
3115
+ export declare enum CustomizationCorners {
3116
+ Straight = "straight",
3117
+ Rounded = "rounded"
3118
+ }
3119
+ export interface CustomizationThemedURL {
3120
+ light: URL;
3121
+ dark: URL;
3122
+ }
3123
+ export interface CustomizationThemedColor {
3124
+ light: Color;
3125
+ dark: Color;
3126
+ }
2951
3127
  export declare type QueryParamsType = Record<string | number, any>;
2952
3128
  export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
2953
3129
  export interface FullRequestParams extends Omit<RequestInit, 'body'> {
@@ -3846,6 +4022,36 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3846
4022
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3847
4023
  items: UserContentPermission[];
3848
4024
  }, Error>>;
4025
+ /**
4026
+ * No description
4027
+ *
4028
+ * @tags spaces
4029
+ * @name GetSpacePublishingCustomizationById
4030
+ * @summary Get the publishing customization configuration for a space.
4031
+ * @request GET:/spaces/{spaceId}/publishing/customization
4032
+ * @secure
4033
+ */
4034
+ getSpacePublishingCustomizationById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
4035
+ error: {
4036
+ code: 400;
4037
+ message: string;
4038
+ };
4039
+ }>>;
4040
+ /**
4041
+ * No description
4042
+ *
4043
+ * @tags spaces
4044
+ * @name UpdateSpacePublishingCustomizationById
4045
+ * @summary Update the publishing customization configuration for a space.
4046
+ * @request PUT:/spaces/{spaceId}/publishing/customization
4047
+ * @secure
4048
+ */
4049
+ updateSpacePublishingCustomizationById: (spaceId: string, data: CustomizationSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
4050
+ error: {
4051
+ code: 400;
4052
+ message: string;
4053
+ };
4054
+ }>>;
3849
4055
  /**
3850
4056
  * No description
3851
4057
  *
@@ -3996,6 +4202,36 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3996
4202
  message: string;
3997
4203
  };
3998
4204
  }>>;
4205
+ /**
4206
+ * No description
4207
+ *
4208
+ * @tags collections
4209
+ * @name GetCollectionPublishingCustomizationById
4210
+ * @summary Get the publishing customization configuration for a collection.
4211
+ * @request GET:/collections/{collectionId}/publishing/customization
4212
+ * @secure
4213
+ */
4214
+ getCollectionPublishingCustomizationById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
4215
+ error: {
4216
+ code: 400;
4217
+ message: string;
4218
+ };
4219
+ }>>;
4220
+ /**
4221
+ * No description
4222
+ *
4223
+ * @tags collections
4224
+ * @name UpdateCollectionPublishingCustomizationById
4225
+ * @summary Update the publishing customization configuration for a collection.
4226
+ * @request PUT:/collections/{collectionId}/publishing/customization
4227
+ * @secure
4228
+ */
4229
+ updateCollectionPublishingCustomizationById: (collectionId: string, data: CustomizationCollectionSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
4230
+ error: {
4231
+ code: 400;
4232
+ message: string;
4233
+ };
4234
+ }>>;
3999
4235
  };
4000
4236
  integrations: {
4001
4237
  /**
@@ -4728,6 +4964,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4728
4964
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4729
4965
  items: Collection[];
4730
4966
  }, Error>>;
4967
+ /**
4968
+ * No description
4969
+ *
4970
+ * @tags collections
4971
+ * @name CreateCollection
4972
+ * @summary Create an organization collection
4973
+ * @request POST:/orgs/{organizationId}/collections
4974
+ * @secure
4975
+ */
4976
+ createCollection: (organizationId: string, data: {
4977
+ title?: string;
4978
+ parent?: string;
4979
+ }, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
4731
4980
  /**
4732
4981
  * No description
4733
4982
  *
package/dist/index.cjs CHANGED
@@ -34,6 +34,11 @@ __export(src_exports, {
34
34
  ContentType: () => ContentType,
35
35
  ContentVisibility: () => ContentVisibility,
36
36
  CustomFieldType: () => CustomFieldType,
37
+ CustomizationCorners: () => CustomizationCorners,
38
+ CustomizationFont: () => CustomizationFont,
39
+ CustomizationHeaderPreset: () => CustomizationHeaderPreset,
40
+ CustomizationLocale: () => CustomizationLocale,
41
+ CustomizationThemeMode: () => CustomizationThemeMode,
37
42
  GITBOOK_DEFAULT_ENDPOINT: () => GITBOOK_DEFAULT_ENDPOINT,
38
43
  GitBookAPI: () => GitBookAPI,
39
44
  GitSyncOperationState: () => GitSyncOperationState,
@@ -268,6 +273,49 @@ var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
268
273
  CustomFieldType2["SelectSingle"] = "select:single";
269
274
  return CustomFieldType2;
270
275
  })(CustomFieldType || {});
276
+ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
277
+ CustomizationLocale2["En"] = "en";
278
+ CustomizationLocale2["Fr"] = "fr";
279
+ CustomizationLocale2["Es"] = "es";
280
+ CustomizationLocale2["Zh"] = "zh";
281
+ CustomizationLocale2["Ja"] = "ja";
282
+ return CustomizationLocale2;
283
+ })(CustomizationLocale || {});
284
+ var CustomizationFont = /* @__PURE__ */ ((CustomizationFont2) => {
285
+ CustomizationFont2["Inter"] = "Inter";
286
+ CustomizationFont2["Roboto"] = "Roboto";
287
+ CustomizationFont2["RobotoSlab"] = "RobotoSlab";
288
+ CustomizationFont2["OpenSans"] = "OpenSans";
289
+ CustomizationFont2["SourceSansPro"] = "SourceSansPro";
290
+ CustomizationFont2["Lato"] = "Lato";
291
+ CustomizationFont2["Ubuntu"] = "Ubuntu";
292
+ CustomizationFont2["Raleway"] = "Raleway";
293
+ CustomizationFont2["Merriweather"] = "Merriweather";
294
+ CustomizationFont2["Overpass"] = "Overpass";
295
+ CustomizationFont2["NotoSans"] = "NotoSans";
296
+ CustomizationFont2["IBMPlexSerif"] = "IBMPlexSerif";
297
+ CustomizationFont2["Poppins"] = "Poppins";
298
+ CustomizationFont2["FiraSans"] = "FiraSans";
299
+ return CustomizationFont2;
300
+ })(CustomizationFont || {});
301
+ var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
302
+ CustomizationHeaderPreset2["Default"] = "default";
303
+ CustomizationHeaderPreset2["Bold"] = "bold";
304
+ CustomizationHeaderPreset2["Contrast"] = "contrast";
305
+ CustomizationHeaderPreset2["Custom"] = "custom";
306
+ CustomizationHeaderPreset2["None"] = "none";
307
+ return CustomizationHeaderPreset2;
308
+ })(CustomizationHeaderPreset || {});
309
+ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
310
+ CustomizationThemeMode2["Light"] = "light";
311
+ CustomizationThemeMode2["Dark"] = "dark";
312
+ return CustomizationThemeMode2;
313
+ })(CustomizationThemeMode || {});
314
+ var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
315
+ CustomizationCorners2["Straight"] = "straight";
316
+ CustomizationCorners2["Rounded"] = "rounded";
317
+ return CustomizationCorners2;
318
+ })(CustomizationCorners || {});
271
319
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
272
320
  ContentType2["Json"] = "application/json";
273
321
  ContentType2["FormData"] = "multipart/form-data";
@@ -964,6 +1012,22 @@ var Api = class extends HttpClient {
964
1012
  format: "json",
965
1013
  ...params
966
1014
  }),
1015
+ getSpacePublishingCustomizationById: (spaceId, params = {}) => this.request({
1016
+ path: `/spaces/${spaceId}/publishing/customization`,
1017
+ method: "GET",
1018
+ secure: true,
1019
+ format: "json",
1020
+ ...params
1021
+ }),
1022
+ updateSpacePublishingCustomizationById: (spaceId, data, params = {}) => this.request({
1023
+ path: `/spaces/${spaceId}/publishing/customization`,
1024
+ method: "PUT",
1025
+ body: data,
1026
+ secure: true,
1027
+ type: "application/json" /* Json */,
1028
+ format: "json",
1029
+ ...params
1030
+ }),
967
1031
  getSpacePublishingAuthById: (spaceId, params = {}) => this.request({
968
1032
  path: `/spaces/${spaceId}/publishing/auth`,
969
1033
  method: "GET",
@@ -1053,6 +1117,22 @@ var Api = class extends HttpClient {
1053
1117
  type: "application/json" /* Json */,
1054
1118
  format: "json",
1055
1119
  ...params
1120
+ }),
1121
+ getCollectionPublishingCustomizationById: (collectionId, params = {}) => this.request({
1122
+ path: `/collections/${collectionId}/publishing/customization`,
1123
+ method: "GET",
1124
+ secure: true,
1125
+ format: "json",
1126
+ ...params
1127
+ }),
1128
+ updateCollectionPublishingCustomizationById: (collectionId, data, params = {}) => this.request({
1129
+ path: `/collections/${collectionId}/publishing/customization`,
1130
+ method: "PUT",
1131
+ body: data,
1132
+ secure: true,
1133
+ type: "application/json" /* Json */,
1134
+ format: "json",
1135
+ ...params
1056
1136
  })
1057
1137
  };
1058
1138
  this.integrations = {
@@ -1478,6 +1558,15 @@ var Api = class extends HttpClient {
1478
1558
  format: "json",
1479
1559
  ...params
1480
1560
  }),
1561
+ createCollection: (organizationId, data, params = {}) => this.request({
1562
+ path: `/orgs/${organizationId}/collections`,
1563
+ method: "POST",
1564
+ body: data,
1565
+ secure: true,
1566
+ type: "application/json" /* Json */,
1567
+ format: "json",
1568
+ ...params
1569
+ }),
1481
1570
  setupDirectorySync: (organizationId, params = {}) => this.request({
1482
1571
  path: `/orgs/${organizationId}/dsync`,
1483
1572
  method: "POST",
@@ -1781,6 +1870,11 @@ var GitBookAPI = class extends Api {
1781
1870
  ContentType,
1782
1871
  ContentVisibility,
1783
1872
  CustomFieldType,
1873
+ CustomizationCorners,
1874
+ CustomizationFont,
1875
+ CustomizationHeaderPreset,
1876
+ CustomizationLocale,
1877
+ CustomizationThemeMode,
1784
1878
  GITBOOK_DEFAULT_ENDPOINT,
1785
1879
  GitBookAPI,
1786
1880
  GitSyncOperationState,
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.13.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",